{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,25]],"date-time":"2026-09-25T04:58:53Z","timestamp":1790312333104,"version":"4.1.0"},"reference-count":23,"publisher":"Springer Science and Business Media LLC","issue":"1","license":[{"start":{"date-parts":[[2026,6,26]],"date-time":"2026-06-26T00:00:00Z","timestamp":1782432000000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2026,9,22]],"date-time":"2026-09-22T00:00:00Z","timestamp":1790035200000},"content-version":"vor","delay-in-days":88,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"Anhui Province School Nature Research Key Project","award":["2023AH050770"],"award-info":[{"award-number":["2023AH050770"]}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Sci Rep"],"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    Acute pancreatitis (AP) concurrent with acute kidney injury (AKI) remarkably elevates the risk of adverse outcomes in affected individuals. Abnormal serum magnesium concentrations have been linked to AKI development across diverse patient populations; however, the prognostic significance of serum magnesium levels at multiple time points (60 days, 90 days, 180 days, and 365 days) remains inadequately explored in AP patients with AKI admitted to the intensive care unit (ICU). This study aimed to assess the dynamic prognostic value of serum magnesium at the aforementioned key time points, clarify its clinical utility for risk stratification in this specific cohort, and investigate prognostic disparities among patients stratified by gender, as well as the presence or absence of diabetes mellitus, congestive heart failure, and pre-existing kidney disease. Study data were extracted from the MIMIC-IV database, which was made publicly available in October 2024. Adult patients (\u2265\u200918 years) diagnosed with AP, who had an ICU length of stay (LOS) exceeding 24\u00a0h and complete mortality data, were enrolled. Exclusion criteria included missing serum magnesium measurements, ICU LOS\u2009&lt;\u200924\u00a0h, incomplete clinical records, and aberrant survival data. Finally, 492 data samples meeting the inclusion criteria were enrolled in the present study. Serum magnesium levels were stratified into three grades using X-tile software, with stratification thresholds determined based on 60-day survival outcomes. Clinical data were retrieved using SQL and PostgreSQL. Intergroup comparisons were performed using statistical methods including the Wilcoxon rank-sum test, chi-square test, and t-test. Survival analyses were conducted to evaluate the association between serum magnesium levels and prognosis. Univariate Cox regression models were used to initially assess the relationship, and multivariate Cox regression models were constructed to adjust for confounding factors based on key patient characteristics. Among the 492 enrolled patients, males accounted for 53.25%. No statistically significant differences were noted in gender distribution or age across the three groups stratified by serum magnesium levels (\n                    <jats:italic>P<\/jats:italic>\n                    \u2009&gt;\u20090.05). The hypermagnesemia group had the longest median ICU length of stay (LOS) (145\u00a0h, interquartile range [IQR]: 62\u2013274\u00a0h), with intergroup differences approaching statistical significance (H\u2009=\u20095.112,\n                    <jats:italic>P<\/jats:italic>\n                    \u2009=\u20090.078). The incidence rates of sepsis and hypertension increased significantly with elevated serum magnesium levels (sepsis: \u03c7\u00b2 = 11.496,\n                    <jats:italic>P<\/jats:italic>\n                    \u2009=\u20090.003; hypertension: \u03c7\u00b2 = 6.065,\n                    <jats:italic>P<\/jats:italic>\n                    \u2009=\u20090.048). Additionally, the utilization rate of continuous renal replacement therapy (CRRT) in the hypermagnesemia group (20.75%) was significantly higher than that in the hypomagnesemia group (9.15%) and normomagnesemia group (11.48%) (\u03c7\u00b2 = 6.302,\n                    <jats:italic>P<\/jats:italic>\n                    \u2009=\u20090.043). In the hypermagnesemia group, serum creatinine, potassium, sodium, and chloride levels were significantly elevated, while serum calcium levels were markedly decreased (all\n                    <jats:italic>P<\/jats:italic>\n                    \u2009&lt;\u20090.05). Disease severity scores, including the Sequential Organ Failure Assessment (SOFA) score, Simplified Acute Physiology Score II (SAPS II), and Logistic Organ Dysfunction System (LODS) score, were significantly higher in the hypermagnesemia group compared to the other two groups (all\n                    <jats:italic>P<\/jats:italic>\n                    \u2009&lt;\u20090.05). Regarding prognostic outcomes, the hypermagnesemia group had the shortest median survival times at 60, 180, and 365 days, with statistically significant intergroup differences (H-values: 6.75, 6.033, 9.235; all\n                    <jats:italic>P<\/jats:italic>\n                    \u2009&lt;\u20090.049). Its 365-day mortality rate (37.74%) was more than twice that of the hypomagnesemia group (18.61%). Kaplan-Meier analysis revealed that the hypermagnesemia group had significantly lower survival rates at all time points compared to the hypomagnesemia group (log-rank test,\n                    <jats:italic>P<\/jats:italic>\n                    \u2009&lt;\u20090.05). Multivariate Cox regression analysis indicated that the risk of death gradually increased with rising serum magnesium levels, and hypermagnesemia was associated with a 54% higher risk of 365-day mortality (HR\u2009=\u20091.54, 95% CI: 0.54\u20134.43). Restricted cubic spline (RCS) analysis demonstrated a significant increase in mortality risk when serum magnesium levels exceeded 1.9\u00a0mg\/dL. Subgroup analysis confirmed that the association between serum magnesium levels and prognosis was consistent across different subgroups. Furthermore, during the 365-day follow-up, the hypermagnesemia-related mortality risk was significantly elevated in obese patients and those with sepsis (\n                    <jats:italic>P<\/jats:italic>\n                    \u2009&lt;\u20090.05). Elevated serum magnesium levels upon ICU admission are closely correlated with increased risks of adverse events and medium- and long-term mortality in patients with acute pancreatitis complicated by acute kidney injury, and can serve as a valuable early clinical indicator for evaluating disease severity and predicting patient prognosis. Abnormally elevated serum magnesium levels effectively reflect the status of severe concomitant organ dysfunction and possess favorable clinical value for disease assessment and prognostic prediction. The stratified cut-off values of serum magnesium established in this study can be applied to early clinical risk stratification and early warning for such patients. Routine dynamic monitoring of serum magnesium is recommended to facilitate early clinical evaluation and risk assessment. Furthermore, it provides a reliable reference for subsequent mechanistic investigations and prospective clinical trials to explore targeted interventions for improving patient outcomes.\n                  <\/jats:p>","DOI":"10.1038\/s41598-026-58658-w","type":"journal-article","created":{"date-parts":[[2026,6,26]],"date-time":"2026-06-26T09:35:22Z","timestamp":1782466522000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Serum magnesium and adverse prognosis in acute pancreatitis with acute kidney injury: a MIMIC-IV retrospective study"],"prefix":"10.1038","volume":"16","author":[{"given":"Wang","family":"Wei","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Wang","family":"Jiaming","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Shen","family":"Tongping","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2026,6,26]]},"reference":[{"issue":"2","key":"58658_CR1","doi-asserted-by":"publisher","first-page":"621","DOI":"10.1053\/j.gastro.2021.10.017","volume":"162","author":"AF Peery","year":"2022","unstructured":"Peery, A. F. et al. Burden and Cost of Gastrointestinal, Liver, and Pancreatic Diseases in the United States: Update 2021. Gastroenterology 162(2), 621\u2013644. https:\/\/doi.org\/10.1053\/j.gastro.2021.10.017 (2022).","journal-title":"Gastroenterology"},{"issue":"1","key":"58658_CR2","doi-asserted-by":"publisher","first-page":"122","DOI":"10.1053\/j.gastro.2021.09.043","volume":"162","author":"JP Iannuzzi","year":"2022","unstructured":"Iannuzzi, J. P. et al. Global Incidence of Acute Pancreatitis Is Increasing Over Time: A Systematic Review and Meta-Analysis. Gastroenterology 162(1), 122\u2013134. https:\/\/doi.org\/10.1053\/j.gastro.2021.09.043 (2022).","journal-title":"Gastroenterology"},{"issue":"1","key":"58658_CR3","doi-asserted-by":"publisher","first-page":"97","DOI":"10.1002\/ueg2.12743","volume":"13","author":"A Beij","year":"2025","unstructured":"Beij, A., Verdonk, R. C., van Santvoort, H. C., de-Madaria, E. & Voermans, R. P. Acute Pancreatitis: An Update of Evidence-Based Management and Recent Trends in Treatment Strategies. United Eur. Gastroenterol. J. 13(1), 97\u2013106. https:\/\/doi.org\/10.1002\/ueg2.12743 (2025).","journal-title":"United Eur. Gastroenterol. J."},{"issue":"9","key":"58658_CR4","doi-asserted-by":"publisher","first-page":"ITC66","DOI":"10.7326\/AITC201711070","volume":"167","author":"AS Levey","year":"2017","unstructured":"Levey, A. S. & James, M. T. Acute Kidney Injury. Ann. Intern. Med. 167(9), ITC66\u2013ITC80. https:\/\/doi.org\/10.7326\/AITC201711070 (2017).","journal-title":"Ann. Intern. Med."},{"issue":"38","key":"58658_CR5","doi-asserted-by":"publisher","first-page":"6453","DOI":"10.3748\/wjg.v27.i38.6453","volume":"27","author":"N Shi","year":"2021","unstructured":"Shi, N. et al. Effects of acute kidney injury on acute pancreatitis patients\u2019 survival rate in intensive care unit: A retrospective study. World J. Gastroenterol. 27(38), 6453\u20136464. https:\/\/doi.org\/10.3748\/wjg.v27.i38.6453 (2021).","journal-title":"World J. Gastroenterol."},{"issue":"1","key":"58658_CR6","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1152\/physrev.00012.2014","volume":"95","author":"JH dde Baaij","year":"2015","unstructured":"dde Baaij, J. H., Hoenderop, J. G. & Bindels, R. J. Magnesium in man: implications for health and disease. Physiol. Rev. 95(1), 1\u201346. https:\/\/doi.org\/10.1152\/physrev.00012.2014 (2015).","journal-title":"Physiol. Rev."},{"issue":"3","key":"58658_CR7","doi-asserted-by":"publisher","first-page":"378S","DOI":"10.3945\/an.112.003483","volume":"4","author":"SL Volpe","year":"2013","unstructured":"Volpe, S. L. Magnesium in disease prevention and overall health. Adv. Nutr. 4(3), 378S\u201383S. https:\/\/doi.org\/10.3945\/an.112.003483 (2013).","journal-title":"Adv. Nutr."},{"issue":"4","key":"58658_CR8","doi-asserted-by":"publisher","DOI":"10.3390\/brainsci13040593","volume":"13","author":"Z Liu","year":"2023","unstructured":"Liu, Z., Wang, R., He, M. & Kang, Y. Hypomagnesemia Is Associated with the Acute Kidney Injury in Traumatic Brain Injury Patients: A Pilot Study. Brain Sci. 13(4), 593. https:\/\/doi.org\/10.3390\/brainsci13040593 (2023).","journal-title":"Brain Sci."},{"issue":"2","key":"58658_CR9","doi-asserted-by":"publisher","first-page":"341","DOI":"10.1007\/s40199-021-00411-x","volume":"29","author":"H Khalili","year":"2021","unstructured":"Khalili, H., Rahmani, H., Mohammadi, M., Salehi, M. & Mostafavi, Z. Intravenous magnesium sulfate for prevention of vancomycin plus piperacillin-tazobactam induced acute kidney injury in critically ill patients: An open-label, placebo-controlled, randomized clinical trial. Daru 29 (2), 341\u2013351. https:\/\/doi.org\/10.1007\/s40199-021-00411-x (2021).","journal-title":"Daru"},{"issue":"10","key":"58658_CR10","doi-asserted-by":"publisher","first-page":"997","DOI":"10.1007\/s10157-022-02245-6","volume":"26","author":"HS Ribeiro","year":"2022","unstructured":"Ribeiro, H. S. et al. Association of magnesium abnormalities at intensive care unit admission with kidney outcomes and mortality: a prospective cohort study. Clin. Exp. Nephrol. 26 (10), 997\u20131004. https:\/\/doi.org\/10.1007\/s10157-022-02245-6 (2022).","journal-title":"Clin. Exp. Nephrol."},{"issue":"7","key":"58658_CR11","doi-asserted-by":"publisher","first-page":"1175","DOI":"10.3109\/0886022X.2015.1057471","volume":"37","author":"W Cheungpasitporn","year":"2015","unstructured":"Cheungpasitporn, W., Thongprayoon, C. & Erickson, S. B. Admission hypomagnesemia and hypermagnesemia increase the risk of acute kidney injury. Ren. Fail. 37 (7), 1175\u20131179. https:\/\/doi.org\/10.3109\/0886022X.2015.1057471 (2015).","journal-title":"Ren. Fail."},{"issue":"2","key":"58658_CR12","doi-asserted-by":"publisher","first-page":"2368088","DOI":"10.1080\/0886022X.2024.2368088","volume":"46","author":"B Lin","year":"2024","unstructured":"Lin, B. et al. Association between serum magnesium concentrations and the risk of developing acute kidney injury in patients with cirrhosis: a retrospective cohort study based on the MIMIC-IV database. Ren. Fail. 46 (2), 2368088. https:\/\/doi.org\/10.1080\/0886022X.2024.2368088 (2024).","journal-title":"Ren. Fail."},{"issue":"1","key":"58658_CR13","doi-asserted-by":"publisher","first-page":"368504251319648","DOI":"10.1177\/00368504251319648","volume":"108","author":"X Zhou","year":"2025","unstructured":"Zhou, X., Jin, S., Wu, D. & Su, W. Serum magnesium levels and the risk of acute kidney injury in ICU patients with acute pancreatitis: A MIMIC-IV cohort study. Sci. Prog. 108 (1), 368504251319648. https:\/\/doi.org\/10.1177\/00368504251319648 (2025).","journal-title":"Sci. Prog"},{"key":"58658_CR14","doi-asserted-by":"publisher","first-page":"7199","DOI":"10.2147\/CMAR.S262674","volume":"12","author":"D Shen","year":"2020","unstructured":"Shen, D. et al. The Effect of Admission Serum Magnesium on the Acute Kidney Injury Among Patients with Malignancy. Cancer Manag Res. 12, 7199\u20137207. https:\/\/doi.org\/10.2147\/CMAR.S262674 (2020).","journal-title":"Cancer Manag Res."},{"key":"58658_CR15","doi-asserted-by":"publisher","unstructured":"Johnson, A. et al. MIMIC-IV (version 3.1). PhysioNet. RRID:SCR_007345. (2024). https:\/\/doi.org\/10.13026\/kpb9-mt58","DOI":"10.13026\/kpb9-mt58"},{"key":"58658_CR16","doi-asserted-by":"publisher","first-page":"1554213","DOI":"10.3389\/fmed.2025.1554213","volume":"12","author":"L Rao","year":"2025","unstructured":"Rao, L., Sun, J., Zhao, X., Ge, S. & Li, N. Association between D-dimer and in-hospital mortality risk in Acute Kidney Injury based on latent class dynamic trajectory. Front. Med. (Lausanne). 12, 1554213. https:\/\/doi.org\/10.3389\/fmed.2025.1554213 (2025).","journal-title":"Front. Med. (Lausanne)"},{"issue":"4","key":"58658_CR17","doi-asserted-by":"publisher","first-page":"403","DOI":"10.1177\/2050640620903225","volume":"8","author":"G Garc\u00eda-Rayado","year":"2020","unstructured":"Garc\u00eda-Rayado, G., C\u00e1rdenas-Ja\u00e9n, K. & de-Madaria, E. Towards evidence-based and personalised care of acute pancreatitis. United Eur. Gastroenterol. J. 8 (4), 403\u2013409. https:\/\/doi.org\/10.1177\/2050640620903225 (2020).","journal-title":"United Eur. Gastroenterol. J."},{"issue":"2","key":"58658_CR18","doi-asserted-by":"publisher","first-page":"60","DOI":"10.1684\/mrh.2010.0202","volume":"23","author":"M Shechter","year":"2010","unstructured":"Shechter, M. Magnesium and cardiovascular system. Magnes Res. 23 (2), 60\u201372. https:\/\/doi.org\/10.1684\/mrh.2010.0202 (2010).","journal-title":"Magnes Res."},{"issue":"7","key":"58658_CR19","doi-asserted-by":"publisher","first-page":"1087","DOI":"10.34067\/KID.0002592021","volume":"2","author":"JS Stevens","year":"2021","unstructured":"Stevens, J. S., Moses, A. A., Nickolas, T. L., Husain, S. A. & Mohan, S. Increased Mortality Associated with Hypermagnesemia in Severe COVID-19 Illness. Kidney360 2 (7), 1087\u20131094. https:\/\/doi.org\/10.34067\/KID.0002592021 (2021).","journal-title":"Kidney360"},{"issue":"4","key":"58658_CR20","doi-asserted-by":"publisher","first-page":"574","DOI":"10.5937\/jomb0-48779","volume":"43","author":"X Jiang","year":"2024","unstructured":"Jiang, X. et al. The role of serum magnesium in the prediction of acute kidney injury after total aortic arch replacement: A prospective observational study. J. Med. Biochem. 43 (4), 574\u2013586. https:\/\/doi.org\/10.5937\/jomb0-48779 (2024).","journal-title":"J. Med. Biochem."},{"issue":"1","key":"58658_CR21","doi-asserted-by":"publisher","first-page":"288","DOI":"10.1186\/s13054-021-03724-0","volume":"25","author":"J Dong","year":"2021","unstructured":"Dong, J. et al. Machine learning model for early prediction of acute kidney injury (AKI) in pediatric critical care. Crit. Care. 25 (1), 288. https:\/\/doi.org\/10.1186\/s13054-021-03724-0 (2021).","journal-title":"Crit. Care"},{"issue":"6","key":"58658_CR22","doi-asserted-by":"publisher","first-page":"1171","DOI":"10.1007\/s11255-020-02724-3","volume":"53","author":"DN Chen","year":"2021","unstructured":"Chen, D. N. et al. Relationship between early serum sodium and potassium levels and AKI severity and prognosis in oliguric AKI patients. Int. Urol. Nephrol. 53 (6), 1171\u20131187. https:\/\/doi.org\/10.1007\/s11255-020-02724-3 (2021).","journal-title":"Int. Urol. Nephrol."},{"issue":"1","key":"58658_CR23","doi-asserted-by":"publisher","first-page":"2170244","DOI":"10.1080\/0886022X.2023.2170244","volume":"45","author":"C Xiong","year":"2023","unstructured":"Xiong, C. et al. Association of early postoperative serum magnesium with acute kidney injury after cardiac surgery. Ren. Fail. 45 (1), 2170244. https:\/\/doi.org\/10.1080\/0886022X.2023.2170244 (2023).","journal-title":"Ren. Fail."}],"container-title":["Scientific Reports"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.nature.com\/articles\/s41598-026-58658-w","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/www.nature.com\/articles\/s41598-026-58658-w.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/www.nature.com\/articles\/s41598-026-58658-w.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,25]],"date-time":"2026-09-25T04:02:20Z","timestamp":1790308940000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.nature.com\/articles\/s41598-026-58658-w"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,6,26]]},"references-count":23,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2026,12]]}},"alternative-id":["58658"],"URL":"https:\/\/doi.org\/10.1038\/s41598-026-58658-w","relation":{"has-preprint":[{"id-type":"doi","id":"10.21203\/rs.3.rs-8277115\/v1","asserted-by":"object"}]},"ISSN":["2045-2322"],"issn-type":[{"value":"2045-2322","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,6,26]]},"assertion":[{"value":"4 December 2025","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"16 June 2026","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"26 June 2026","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"The authors declare no competing interests.","order":1,"name":"Ethics","label":"Competing interests","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"This study was based on data extracted from the Medical Information Mart for Intensive Care IV (MIMIC-IV) database\u2014a publicly accessible, de-identified critical care database. Ethical approval for the establishment and ongoing maintenance of MIMIC-IV was obtained from the Institutional Review Boards (IRBs) of both the Massachusetts Institute of Technology (MIT) and Beth Israel Deaconess Medical Center (BIDMC), and informed consent was waived given the retrospective and fully anonymized nature of the data. For this secondary analysis of de-identified data, no further ethical approval was deemed necessary. The study was designed and conducted in strict adherence to the ethical standards of the institutional and\/or national research committees, as well as the 1964 Declaration of Helsinki and its subsequent amendments or equivalent ethical guidelines.","order":2,"name":"Ethics","label":"Ethics approval and consent to participate","group":{"name":"EthicsHeading","label":"Declarations"}}],"article-number":"29424"}}