Dynamic Risk Prediction of Patient Clinical Deterioration Using Time-Aware Explainable Machine Learning
Abstract
The early identification of clinical instability is important in intensive care because such clinical instability usually occurs along a trajectory of abnormalities but not just one abnormal value. The authors designed a time-aware explainable machine learning system that calculates every four hours the deterioration risk based on the previous 24 hours' electronic health records and predicts a new invasive mechanical ventilation, administration of vasopressors, or death in 12 hours. Time-varying vital signs, lab results, treatments, frequency, and missingness are converted into level, variability, trend, change, and recency features and analyzed using LightGBM. The treeSHAP algorithm connects subsequent predictions with changes in the patient's risk factors. The internal performance was AUROC 0.901 ± 0.005 and AUPRC 0.428 ± 0.013 in contrast to latest-value LightGBM AUROC 0.867 ± 0.006 and AUPRC 0.356 ± 0.012. In external validation, the authors obtained AUROC 0.872 ± 0.006, Brier Score 0.078 ± 0.003, and warning lead time 7.6 ± 2.9 h. Dynamic SHAP analysis revealed a pattern that the increased respiratory rate, decreasing mean arterial pressure, elevated lactate, and neurological impairment are common before a prolonged increase in risk.
References
- Rossetti, S. C., Dykes, P. C., Knaplund, C., et al. (2025). Real-time surveillance system for patient deterioration: A pragmatic cluster-randomized controlled trial.Nature Medicine, 31, 1895–1902.
- Adams, R., Henry, K. E., Sridharan, A., et al. (2022). Prospective, multi-site study of patient outcomes after implementation of the TREWS machine learning-based early warning system for sepsis.Nature Medicine, 28, 1455–1460.
- Levin, M. A., Kia, A., Timsina, P., Cheng, F. Y., Nguyen, K. A. N., Kohli-Seth, R., Lin, H. M., Ouyang, Y., Freeman, R., & Reich, D. L. (2024). Real-time machine learning alerts to prevent escalation of care: A nonrandomized clustered pragmatic clinical trial.Critical Care Medicine, 52(7), 1007–1020.
- Plana, D., Shung, D. L., Grimshaw, A. A., Saraf, A., Sung, J. J. Y., & Kann, B. H. (2022). Randomized clinical trials of machine learning interventions in health care: A systematic review.JAMA Network Open, 5(9), e2233946.
- Rockenschaub, P., Akay, E. M., Carlisle, B. G., et al. (2025). External validation of AI-based scoring systems in the ICU: A systematic review and meta-analysis.BMC Medical Informatics and Decision Making, 25, 5.
- Johnson, A. E. W., Bulgarelli, L., Shen, L., et al. (2023). MIMIC-IV, a freely accessible electronic health record dataset.Scientific Data, 10, 1.
- Lewis, A. E., Weiskopf, N., Abrams, Z. B., Foraker, R., Lai, A. M., Payne, P. R. O., & Gupta, A. (2023). Electronic health record data quality assessment and tools: A systematic review.Journal of the American Medical Informatics Association, 30(10), 1730–1740.
- Hu, C., Gao, C., Li, T., Liu, C., & Peng, Z. (2024). Explainable artificial intelligence model for mortality risk prediction in the intensive care unit: A derivation and validation study.Postgraduate Medical Journal, 100(1182), 219–227.
- Ge, X., Chen, W., Shi, J., Zhang, J., Tai, H., Zhang, Y., Wang, B., Liu, W., Chen, S., & Han, H. (2025). Prediction of moderate-to-severe sepsis-associated acute kidney injury using a dual-timepoint machine learning model: Development, multiregional validation, and clinical deployment study.Journal of Medical Internet Research, 27, e73840.
- Park, C., Han, C., Jang, S. K., Kim, H., Kim, S., Kang, B. H., Jung, K., & Yoon, D. (2025). Development and validation of a machine learning model for early prediction of delirium in intensive care units using continuous physiological data: Retrospective study.Journal of Medical Internet Research, 27, e59520.