Nonlinear Association of Length of Stay with In-Hospital Mortality in Alzheimer’s Disease Hospitalizations: Admission-Only vs. Inpatient-Course Prediction Using Explainable Machine Learning
Abstract
1. Introduction
2. Methods
2.1. Data Source and Study Design
2.2. Study Population and Alzheimer’s Disease Cohort Definition
2.3. Outcome
2.4. Predictors
2.5. Analytic Strategy and Prespecified Two-Model Design
2.6. Statistical Analyses
2.7. Machine Learning, Model Evaluation, and Explainability
2.8. Sensitivity Analyses
2.9. Decision Curve Analysis
2.10. Diagnosis Family Analysis at LOS Extremes
2.11. Data Availability
2.12. Software and Code Availability
3. Results
3.1. Study Cohort and In-Hospital Mortality
3.2. Unadjusted Relationship Between Length of Stay and Mortality
3.3. Multivariable Regression Analyses for In-Hospital Death
3.4. Explainable Machine Learning Performance and Feature Interpretation
3.5. Robustness and Sensitivity Analyses
3.6. Clinical Diagnosis Family Patterns in Short Versus Prolonged Length of Stay
3.7. Decision Curve Analysis
4. Discussion
4.1. LOS as a Trajectory Marker: Crude and Adjusted Patterns
4.2. Clinical Drivers of Mortality in the Context of Prior Evidence
4.3. Why the Model A Versus Model B Framework Matters for Translation
4.4. Explainability and Stability
4.5. Diagnosis Family Context at LOS Extremes
4.6. Limitations
4.7. Implications and Conclusion
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Leelakanok, N.; D’Cunha, R.R. Association between polypharmacy and dementia-A systematic review and metaanalysis. Aging Ment. Health 2019, 23, 932–941. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fried, L.P.; Tangen, C.M.; Walston, J.; Newman, A.B.; Hirsch, C.; Gottdiener, J.; Seeman, T.; Tracy, R.; Kop, W.J.; Burke, G.; et al. Frailty in older adults: Evidence for a phenotype. J. Gerontol. Biol. Sci. Med. Sci. 2001, 56, M146–M156. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Clegg, A.; Young, J.; Iliffe, S.; Rikkert, M.O.; Rockwood, K. Frailty in elderly people. Lancet 2013, 381, 752–762. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Rao, A.; Suliman, A.; Vuik, S.; Aylin, P.; Darzi, A. Outcomes of dementia: Systematic review and meta-analysis of hospital administrative database studies. Arch. Gerontol. Geriatr. 2016, 66, 198–204. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Inouye, S.K. Delirium in older persons. N. Engl. J. Med. 2006, 354, 1157–1165. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Chróinín, D.N.; Deane, V.; Pulikotil Zachariah, R.; Stott, K.; Shepherd, B.; Perkins, M.; Giang, L.; Shekhar, R.; Vueti, V.; Mayahi-Neysi, M.; et al. The likelihood of hospital-acquired complications in older people with dementia: A matched cohort study. Med. J. Aust. 2024, 221, 422–425. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Möllers, T.; Stocker, H.; Wei, W.; Perna, L.; Brenner, H. Length of hospital stay and dementia: A systematic review of observational studies. Int. J. Geriatr. Psychiatry 2019, 34, 8–21. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Amjad, H.; Sekhon, V.K.; Wolff, J.L.; Samus, Q.M.; Roth, D.L. Hospitalization outcomes among older adults living undiagnosed or unaware of dementia. Alzheimer’s Dement. Diagn. Assess. Dis. Monit. 2025, 17, e70051. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Di Martino, G.; Di Giovanni, P.; Vaccaro, F.; Tognaccini, L.; Trebbi, E.; Aita, T.; Romano, F.; Staniscia, T. Dementia Is Associated with In-Hospital Mortality and Prolonged Length of Stay: A Propensity Score Matched Analysis on Administrative Data. Healthcare 2025, 13, 2913. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Costa, A.P.; Poss, J.W.; Peirce, T.; Hirdes, J.P. Acute care inpatients with long-term delayed-discharge: Evidence from a Canadian health region. BMC Health Serv. Res. 2012, 12, 172. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Krumholz, H.M. Post-hospital syndrome--an acquired, transient condition of generalized risk. N. Engl. J. Med. 2013, 368, 100–102. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Efthimiou, O.; Seo, M.; Chalkou, K.; Debray, T.; Egger, M.; Salanti, G. Developing clinical prediction models: A step-by-step guide. BMJ 2024, 386, e078276. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Brock, G.N.; Barnes, C.; Ramirez, J.A.; Myers, J. How to handle mortality when investigating length of hospital stay and time to clinical stability. BMC Med. Res. Methodol. 2011, 11, 144. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sud, M.; Yu, B.; Wijeysundera, H.C.; Austin, P.C.; Ko, D.T.; Braga, J.; Cram, P.; Spertus, J.A.; Domanski, M.; Lee, D.S. Associations Between Short or Long Length of Stay and 30-Day Readmission and Mortality in Hospitalized Patients with Heart Failure. JACC Heart Fail. 2017, 5, 578–588. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Rajkomar, A.; Dean, J.; Kohane, I. Machine Learning in Medicine. N. Engl. J. Med. 2019, 380, 1347–1358. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Beam, A.L.; Kohane, I.S. Big Data and Machine Learning in Health Care. JAMA 2018, 319, 1317–1318. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Shepherd, H.; Livingston, G.; Chan, J.; Sommerlad, A. Hospitalisation rates and predictors in people with dementia: A systematic review and meta-analysis. BMC Med. 2019, 17, 130. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Mukadam, N.; Sampson, E.L. A systematic review of the prevalence, associations and outcomes of dementia in older general hospital inpatients. Int. Psychogeriatr. 2011, 23, 344–355. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fogg, C.; Griffiths, P.; Meredith, P.; Bridges, J. Hospital outcomes of older people with cognitive impairment: An integrative review. Int. J. Geriatr. Psychiatry 2018, 33, 1177–1197. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Collins, G.S.; Moons, K.G.M.; Dhiman, P.; Riley, R.D.; Beam, A.L.; Van Calster, B.; Ghassemi, M.; Liu, X.; Reitsma, J.B.; van Smeden, M.; et al. TRIPOD+AI statement: Updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ 2024, 385, e078378, Correction in BMJ 2024, 385, q902. https://doi.org/10.1136/bmj.q902. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Collins, G.S.; Reitsma, J.B.; Altman, D.G.; Moons, K.G. Transparent reporting of a multivariable prediction model for individual prognosis or diagnosis (TRIPOD): The TRIPOD statement. BMJ 2015, 350, g7594. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wolff, R.F.; Moons, K.G.M.; Riley, R.D.; Whiting, P.F.; Westwood, M.; Collins, G.S.; Reitsma, J.B.; Kleijnen, J.; Mallett, S. PROBAST: A Tool to Assess the Risk of Bias and Applicability of Prediction Model Studies. Ann. Intern. Med. 2019, 170, 51–58. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- AHRQ. Introduction to the HCUP Nationwide Readmissions Database (NRD), 2010–2017. Available online: https://hcup-us.ahrq.gov/db/nation/nrd/Introduction_NRD_2010-2017.jsp (accessed on 14 August 2026).
- De Matteis, G.; Burzo, M.L.; Della Polla, D.A.; Serra, A.; Russo, A.; Landi, F.; Gasbarrini, A.; Gambassi, G.; Franceschi, F.; Covino, M. Outcomes and Predictors of In-Hospital Mortality among Older Patients with Dementia. J. Clin. Med. 2022, 12, 59. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lundberg, S.M.; Erion, G.; Chen, H.; DeGrave, A.; Prutkin, J.M.; Nair, B.; Katz, R.; Himmelfarb, J.; Bansal, N.; Lee, S.I. From Local Explanations to Global Understanding with Explainable AI for Trees. Nat. Mach. Intell. 2020, 2, 56–67. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lundberg, S.M.; Lee, S.-I. A Unified Approach to Interpreting Model Predictions. In Proceedings of the Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017. [Google Scholar]
- Ponce-Bobadilla, A.V.; Schmitt, V.; Maier, C.S.; Mensing, S.; Stodtmann, S. Practical guide to SHAP analysis: Explaining supervised machine learning model predictions in drug development. Clin. Transl. Sci. 2024, 17, e70056. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Theisen, S.; Drabik, A.; Stock, S. Pressure ulcers in older hospitalised patients and its impact on length of stay: A retrospective observational study. J. Clin. Nurs. 2012, 21, 380–387. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Benchimol, E.I.; Smeeth, L.; Guttmann, A.; Harron, K.; Moher, D.; Petersen, I.; Sørensen, H.T.; von Elm, E.; Langan, S.M. The REporting of studies Conducted using Observational Routinely-collected health Data (RECORD) statement. PLoS Med. 2015, 12, e1001885. [Google Scholar] [CrossRef] [Scilit]
- Funk, M.J.; Landi, S.N. Misclassification in administrative claims data: Quantifying the impact on treatment effect estimates. Curr. Epidemiol. Rep. 2014, 1, 175–185. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Iezzoni, L.I. Assessing quality using administrative data. Ann. Intern. Med. 1997, 127, 666–674. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- van Mourik, M.S.; van Duijn, P.J.; Moons, K.G.; Bonten, M.J.; Lee, G.M. Accuracy of administrative data for surveillance of healthcare-associated infections: A systematic review. BMJ Open 2015, 5, e008424. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Leuchter, R.K.; Delarmente, B.A.; Vangala, S.; Tsugawa, Y.; Sarkisian, C.A. Health Care Staffing Shortages and Potential National Hospital Bed Shortage. JAMA Netw. Open 2025, 8, e2460645. [Google Scholar] [CrossRef] [Scilit] [PubMed]




| Characteristic | Overall | Survived | Died In-Hospital | p-Value |
|---|---|---|---|---|
| Hospitalizations, n (unweighted) | 249,507 | 236,841 | 12,666 | — |
| In-hospital deaths, n (%) (unweighted) | 12,666 (5.08) | — | — | — |
| National estimate, n (weighted) | 455,256 | 432,644 | 22,612 | — |
| In-hospital mortality, % (weighted) | 4.97 | — | — | — |
| Age, years (weighted mean) | — | 82.39 | 83.95 | <0.001 |
| Number of diagnoses (weighted mean) | — | 17.06 | 20.90 | <0.001 |
| Number of procedures (weighted mean) | — | 0.86 | 1.83 | <0.001 |
| Length of stay, days (weighted median [IQR]) | — | 4 [3–7] | 4 [2–9] | <0.001 |
| Predictor | Model A OR (95% CI) | p-Value | Model B OR (95% CI) | p-Value |
|---|---|---|---|---|
| Primary payer: Medicaid (vs. Medicare) | 1.29 (1.15–1.46) | <0.001 | 1.28 (1.13–1.45) | <0.001 |
| Primary payer: Private insurance (vs. Medicare) | 2.31 (2.18–2.45) | <0.001 | 2.41 (2.27–2.56) | <0.001 |
| Primary payer: Self-pay (vs. Medicare) | 1.99 (1.57–2.52) | <0.001 | 1.98 (1.55–2.53) | <0.001 |
| Primary payer: No charge (vs. Medicare) | 1.35 (0.45–4.06) | 0.598 | 1.30 (0.45–3.74) | 0.625 |
| Primary payer: Other (vs. Medicare) | 3.68 (3.39–3.99) | <0.001 | 3.89 (3.58–4.23) | <0.001 |
| ZIP income quartile 2 (vs. quartile 1) | 0.99 (0.95–1.03) | 0.547 | 0.98 (0.94–1.01) | 0.210 |
| ZIP income quartile 3 (vs. quartile 1) | 1.01 (0.97–1.06) | 0.484 | 1.00 (0.96–1.05) | 0.846 |
| ZIP income quartile 4 (vs. quartile 1) | 1.11 (1.06–1.16) | <0.001 | 1.10 (1.05–1.15) | <0.001 |
| Urban–rural category 2 (vs. category 1) | 0.90 (0.87–0.94) | <0.001 | 0.94 (0.90–0.98) | 0.003 |
| Urban–rural category 3 (vs. category 1) | 0.97 (0.93–1.01) | 0.103 | 0.99 (0.95–1.04) | 0.762 |
| Urban–rural category 4 (vs. category 1) | 1.11 (1.05–1.17) | <0.001 | 1.16 (1.10–1.23) | <0.001 |
| Urban–rural category 5 (vs. category 1) | 1.20 (1.14–1.26) | <0.001 | 1.27 (1.20–1.34) | <0.001 |
| Urban–rural category 6 (vs. category 1) | 1.30 (1.23–1.38) | <0.001 | 1.38 (1.30–1.47) | <0.001 |
| Age (per year) | 1.04 (1.04–1.04) | <0.001 | 1.04 (1.04–1.04) | <0.001 |
| Female sex (ref: male) | 0.95 (0.92–0.98) | <0.001 | 0.94 (0.92–0.97) | <0.001 |
| Sepsis | 3.61 (3.50–3.73) | <0.001 | 3.59 (3.48–3.72) | <0.001 |
| Acute kidney injury | 1.90 (1.84–1.96) | <0.001 | 1.90 (1.84–1.96) | <0.001 |
| Stroke | 2.75 (2.61–2.90) | <0.001 | 2.84 (2.70–3.00) | <0.001 |
| Number of diagnoses (I10_NDX) | 1.05 (1.05–1.06) | <0.001 | 1.05 (1.05–1.06) | <0.001 |
| Congestive heart failure | 1.33 (1.28–1.37) | <0.001 | 1.34 (1.30–1.38) | <0.001 |
| Urinary tract infection | 0.66 (0.64–0.68) | <0.001 | 0.70 (0.68–0.72) | <0.001 |
| Chronic kidney disease | 0.79 (0.76–0.81) | <0.001 | 0.78 (0.76–0.81) | <0.001 |
| COPD | 0.93 (0.90–0.97) | <0.001 | 0.93 (0.90–0.97) | <0.001 |
| Delirium | 0.84 (0.79–0.89) | <0.001 | 0.96 (0.90–1.01) | 0.119 |
| Elective admission (ref: non-elective) | 1.06 (0.98–1.14) | 0.131 | 1.02 (0.95–1.10) | 0.578 |
| Pneumonia | 1.55 (1.49–1.60) | <0.001 | 1.60 (1.54–1.66) | <0.001 |
| Weekend admission (ref: weekday) | 1.07 (1.04–1.11) | <0.001 | 1.06 (1.02–1.09) | <0.001 |
| ED involvement (any evidence vs. none) | 0.96 (0.91–1.01) | 0.083 | 0.94 (0.90–0.99) | 0.021 |
| Number of procedures (I10_NPR) | — | — | 1.18 (1.17–1.19) | <0.001 |
| Total charges (per $10,000) | — | — | 1.00 (1.00–1.00) | 0.459 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Alkam, T.; Tarshizi, E.; Van Benschoten, A.H. Nonlinear Association of Length of Stay with In-Hospital Mortality in Alzheimer’s Disease Hospitalizations: Admission-Only vs. Inpatient-Course Prediction Using Explainable Machine Learning. Geriatrics 2026, 11, 136. https://doi.org/10.3390/geriatrics11050136
Alkam T, Tarshizi E, Van Benschoten AH. Nonlinear Association of Length of Stay with In-Hospital Mortality in Alzheimer’s Disease Hospitalizations: Admission-Only vs. Inpatient-Course Prediction Using Explainable Machine Learning. Geriatrics. 2026; 11(5):136. https://doi.org/10.3390/geriatrics11050136
Chicago/Turabian StyleAlkam, Tursun, Ebrahim Tarshizi, and Andrew H. Van Benschoten. 2026. "Nonlinear Association of Length of Stay with In-Hospital Mortality in Alzheimer’s Disease Hospitalizations: Admission-Only vs. Inpatient-Course Prediction Using Explainable Machine Learning" Geriatrics 11, no. 5: 136. https://doi.org/10.3390/geriatrics11050136
APA StyleAlkam, T., Tarshizi, E., & Van Benschoten, A. H. (2026). Nonlinear Association of Length of Stay with In-Hospital Mortality in Alzheimer’s Disease Hospitalizations: Admission-Only vs. Inpatient-Course Prediction Using Explainable Machine Learning. Geriatrics, 11(5), 136. https://doi.org/10.3390/geriatrics11050136
