journal article·2025-07-30Open access

Development and Clinical Interpretation of an Explainable AI Model for Predicting Patient Pathways in the Emergency Department: A Retrospective Study

Émilien Arnaud, Pedro Antonio Moreno-Sanchez, Mahmoud Elbattah, Christine Ammirati, Mark van Gils, Gilles Dequen, Daniel Aiham Ghazali

Applied Sciences· Volume 15· Issue 15

Abstract

Background: Overcrowded emergency departments (EDs) create significant challenges for patient management and hospital efficiency. In response, Amiens Picardy University Hospital (APUH) developed the “Prediction of the Patient Pathway in the Emergency Department” (3P-U) model to enhance patient flow management. Objectives: To develop and clinically validate an explainable artificial intelligence (XAI) model for hospital admission predictions, using structured triage data, and demonstrate its real-world applicability in the ED setting. Methods: Our retrospective, single-center study involved 351,019 patients consulting in APUH’s EDs between 2015 and 2018. Various models (including a cross-validation artificial neural network (ANN), a k-nearest neighbors (KNN) model, a logistic regression (LR) model, and a random forest (RF) model) were trained and assessed for performance with regard to the area under the receiver operating characteristic curve (AUROC). The best model was validated internally with a test set, and the F1 score was used to determine the best threshold for recall, precision, and accuracy. XAI techniques, such as Shapley additive explanations (SHAP) and partial dependence plots (PDP) were employed, and the clinical explanations were evaluated by emergency physicians. Results: The ANN gave the best performance during the training stage, with an AUROC of 83.1% (SD: 0.2%) for the test set; it surpassed the RF (AUROC: 71.6%, SD: 0.1%), KNN (AUROC: 67.2%, SD: 0.2%), and LR (AUROC: 71.5%, SD: 0.2%) models. In an internal validation, the ANN’s AUROC was 83.2%. The best F1 score (0.67) determined that 0.35 was the optimal threshold; the corresponding recall, precision, and accuracy were 75.7%, 59.7%, and 75.3%, respectively. The SHAP and PDP XAI techniques (as assessed by emergency physicians) highlighted patient age, heart rate, and presentation with multiple injuries as the features that most specifically influenced the admission from the ED to a hospital ward. These insights are being used in bed allocation and patient prioritization, directly improving ED operations. Conclusions: The 3P-U model demonstrates practical utility by reducing ED crowding and enhancing decision-making processes at APUH. Its transparency and physician validation foster trust, facilitating its adoption in clinical practice and offering a replicable framework for other hospitals to optimize patient flow.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Emergency and Acute Care Studies · Machine Learning in Healthcare · Medical Coding and Health Information

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Emergency Medicine, Amiens Picardy University Hospital, 80000 Amiens, France

Laboratoire Modélisation, Information, Systèmes (MIS) UR4290, University of Picardie Jules Verne, 80000 Amiens, France

Faculty of Medicine and Health Technology, Tampere University, 60100 Seinäjoki, Finland

College of Arts, Technology and Environment, University of the West of England, Bristol BA1 9DZ, UK

Amiens Picardy University Hospital—SimuSanté, 80000 Amiens, France

INSERM UMR1137—Infection, Antimicrobials, Modelling, Evolution, University of Paris-Cité, 75018 Paris, France

References (91)

Show source-provided references
1. Hong, W.S., Haimovich, A.D., and Taylor, R.A. (2018). Predicting Hospital Admission at Emergency Department Triage Using Machine Learning. PLoS ONE, 13.10.1371/journal.pone.0201016 ↗
2. Sartini, M., Carbone, A., Demartini, A., Giribone, L., Oliva, M., Spagnolo, A.M., Cremonesi, P., Canale, F., and Cristina, M.L. (2022). Overcrowding in Emergency Department: Causes, Consequences, and Solutions-A Narrative Review. Healthcare, 10.10.3390/healthcare10091625 ↗
3. Emergency Department Overcrowding in the United States: An Emerging Threat to Patient Safety and Public Health10.1136/emj.20.5.402 ↗
4. Prediction of Emergency Department Hospital Admission Based on Natural Language Processing and Neural Networks10.3414/ME17-01-0024 ↗
5. Development and Validation of an Admission Prediction Tool for Emergency Departments in the Netherlands10.1136/emermed-2017-206673 ↗
6. Increase in Patient Mortality at 10 Days Associated with Emergency Department Overcrowding10.5694/j.1326-5377.2006.tb00204.x ↗
7. The Association between Hospital Overcrowding and Mortality among Patients Admitted via Western Australian Emergency Departments10.5694/j.1326-5377.2006.tb00203.x ↗
8. Association between Waiting Times and Short Term Mortality and Hospital Admission after Departure from Emergency Department: Population Based Cohort Study from Ontario, Canada10.1136/bmj.d2983 ↗
9. Association between Delays to Patient Admission from the Emergency Department and All-Cause 30-Day Mortality10.1136/emermed-2021-211572 ↗
10. Relationship between the National ED Overcrowding Scale and the Number of Patients Who Leave without Being Seen in an Academic ED10.1016/j.ajem.2005.02.034 ↗
11. What Should We Do about Crowding in Emergency Departments?10.12968/hmed.2018.79.9.500 ↗
12. Overcrowding in Emergency Departments: A Review of Strategies to Decrease Future Challenges10.4103/1735-1995.200277 ↗
13. Systematic Review of Emergency Department Crowding: Causes, Effects, and Solutions10.1016/j.annemergmed.2008.03.014 ↗
14. Predicting Emergency Department Inpatient Admissions to Improve Same-Day Patient Flow: PREDICTING ED INPATIENT ADMISSIONS10.1111/j.1553-2712.2012.01435.x ↗
15. Machine Learning Methods Applied to Triage in Emergency Services: A Systematic Review10.1016/j.ienj.2021.101109 ↗
16. Machine Learning Techniques for Mortality Prediction in Emergency Departments: A Systematic Review10.1136/bmjopen-2021-052663 ↗
17. Clinical Decision Support Systems for Triage in the Emergency Department Using Intelligent Systems: A Review10.1016/j.artmed.2019.101762 ↗
18. Stewart, J., Lu, J., Goudie, A., Bennamoun, M., Sprivulis, P., Sanfillipo, F., and Dwivedi, G. (2021). Applications of Machine Learning to Undifferentiated Chest Pain in the Emergency Department: A Systematic Review. PLoS ONE, 16.10.1371/journal.pone.0252612 ↗
19. Artificial Intelligence to Diagnose Ischemic Stroke and Identify Large Vessel Occlusions: A Systematic Review10.1136/neurintsurg-2019-015135 ↗
20. Opening the Black Box of AI-Medicine10.1111/jgh.15384 ↗
21. A Systematic Literature Review of Machine Learning Methods Applied to Predictive Maintenance10.1016/j.cie.2019.106024 ↗
22. A Survey on Explainable Artificial Intelligence (XAI): Toward Medical XAI10.1109/TNNLS.2020.3027314 ↗
23. Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges Toward Responsible AI10.1016/j.inffus.2019.12.012 ↗
24. Interpretability of Machine Learning-Based Prediction Models in Healthcare10.1002/widm.1379 ↗
25. Transparency of Machine-Learning in Healthcare: The GDPR & European Health Law10.1016/j.clsr.2021.105611 ↗
26. (2022, October 29). Résultats Du Recensement de La Population—Picardie: Une Faible Croissance Démographique, Un Déficit Migratoire Qui s’aggrave.—Insee Picardie Analyses. Available online: https://www.insee.fr/fr/statistiques/1290329.
27. Arnaud, E., Elbattah, M., Gignon, M., and Dequen, G. (2020, January 10–13). Deep Learning to Predict Hospitalization at Triage: Integration of Structured Data and Unstructured Text. Proceedings of the 2020 IEEE International Conference on Big Data (Big Data), Atlanta, GA, USA.10.1109/BigData50022.2020.9378073 ↗
28. Arnaud, E., Elbattah, M., Ammirati, C., Dequen, G., and Ghazali, D.A. (2022). Use of Artificial Intelligence to Manage Patient Flow in Emergency Department during the COVID-19 Pandemic: A Prospective, Single-Center Study. Int. J. Environ. Res. Public Health, 19.10.3390/ijerph19159667 ↗
29. Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis (TRIPOD)10.1002/bjs.9736 ↗
30. Guidelines for Developing and Reporting Machine Learning Predictive Models in Biomedical Research: A Multidisciplinary View10.2196/jmir.5870 ↗
31. Use of Artificial Intelligence in Triage in Hospital Emergency Departments: A Scoping Review
32. Artificial Intelligence in Emergency Medicine: Viewpoint of Current Applications and Foreseeable Opportunities and Challenges10.2196/40031 ↗
33. A Novel Deep Learning-Based System for Triage in the Emergency Department Using Electronic Medical Records: Retrospective Cohort Study10.2196/27008 ↗
34. López Alcolea, J., Fernández Alfonso, A., Cano Alonso, R., Álvarez Vázquez, A., Díaz Moreno, A., García Castellanos, D., Sanabria Greciano, L., Hayoun, C., Recio Rodríguez, M., and Andreu Vázquez, C. (2024). Diagnostic Performance of Artificial Intelligence in Chest Radiographs Referred from the Emergency Department. Diagnostics, 14.10.3390/diagnostics14222592 ↗
35. Individualized Prediction of Psychiatric Readmissions for Patients with Major Depressive Disorder: A 10-Year Retrospective Cohort Study10.1038/s41398-022-01937-7 ↗
36. Choi, A., Lee, K., Hyun, H., Kim, K.J., Ahn, B., Lee, K.H., Hahn, S., Choi, S.Y., and Kim, J.H. (2024). A Novel Deep Learning Algorithm for Real-Time Prediction of Clinical Deterioration in the Emergency Department for a Multimodal Clinical Decision Support System. Sci. Rep., 14.10.1038/s41598-024-80268-7 ↗
37. Doshi-Velez, F., and Kim, B. (2017). Towards a Rigorous Science of Interpretable Machine Learning. arXiv.
38. Ribeiro, M.T., Singh, S., and Guestrin, C. (2016, January 13). “Why Should I Trust You?”: Explaining the Predictions of Any Classifier. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA.10.1145/2939672.2939778 ↗
39. Caruana, R., Lou, Y., Gehrke, J., Koch, P., Sturm, M., and Elhadad, N. (2015, January 10–13). Intelligible Models for HealthCare: Predicting Pneumonia Risk and Hospital 30-Day Readmission. Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Sydney, NSW, Australia.10.1145/2783258.2788613 ↗
40. Bridging the “Last Mile” Gap between AI Implementation and Operation: “Data Awareness” That Matters10.21037/atm.2020.03.63 ↗
41. Lundberg, S.M., and Lee, S.-I. (2017, January 4–9). A Unified Approach to Interpreting Model Predictions. Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, CA, USA.
42. Malmgren, H., Borga, M., and Niklasson, L. (2000). Case-Based Explanation for Artificial Neural Nets. Artificial Neural Networks in Medicine and Biology, Springer.10.1007/978-1-4471-0513-8 ↗
43. Towards Explainable Oral Cancer Recognition: Screening on Imperfect Images via Informed Deep Learning and Case-Based Reasoning10.1016/j.compmedimag.2024.102433 ↗
44. Arnaud, E., Elbattah, M., Moreno-Sánchez, P.A., Dequen, G., and Ghazali, D.A. (2023, January 15–18). Explainable NLP Model for Predicting Patient Admissions at Emergency Department Using Triage Notes. Proceedings of the 2023 IEEE International Conference on Big Data (BigData), Sorrento, Italy.10.1109/BigData59044.2023.10386753 ↗
45. Prediction of Patient Flow in the Emergency Department Using Explainable Artificial Intelligence10.1177/20552076241264194 ↗
46. Explainable Artificial Intelligence in Emergency Medicine: An Overview10.15441/ceem.23.145 ↗
47. Chmiel, F.P., Burns, D.K., Azor, M., Borca, F., Boniface, M.J., Zlatev, Z.D., White, N.M., Daniels, T.W.V., and Kiuber, M. (2021). Using Explainable Machine Learning to Identify Patients at Risk of Reattendance at Discharge from Emergency Departments. Sci. Rep., 11.10.1038/s41598-021-00937-9 ↗
48. Forecasting and Explaining Emergency Department Visits in a Public Hospital10.1007/s10844-022-00716-6 ↗
49. Peláez-Rodríguez, C., Torres-López, R., Pérez-Aracil, J., López-Laguna, N., Sánchez-Rodríguez, S., and Salcedo-Sanz, S. (2024). An Explainable Machine Learning Approach for Hospital Emergency Department Visits Forecasting Using Continuous Training and Multi-Model Regression. Comput. Methods Programs Biomed., 245.10.1016/j.cmpb.2024.108033 ↗
50. Artificial Intelligence in Emergency Medicine. A Systematic Literature Review10.1016/j.ijmedinf.2023.105274 ↗
51. Deep Learning-Based Natural Language Processing for Detecting Medical Symptoms and Histories in Emergency Patient Triage10.1016/j.ajem.2023.11.063 ↗
52. Laxar, D., Eitenberger, M., Maleczek, M., Kaider, A., Hammerle, F.P., and Kimberger, O. (2023). The Influence of Explainable vs. Non-Explainable Clinical Decision Support Systems on Rapid Triage Decisions: A Mixed Methods Study. BMC Med., 21.10.1186/s12916-023-03068-2 ↗
53. Explainable Machine Learning for Early Assessment of COVID-19 Risk Prediction in Emergency Departments10.1109/ACCESS.2020.3034032 ↗
54. Rao, A.R., Wang, H., and Gupta, C. (2025). Predictive Analysis for Optimizing Port Operations. Appl. Sci., 15.10.3390/app15062877 ↗
55. Triage with the French Emergency Nurses Classification in Hospital Scale: Reliability and Validity10.1097/MEJ.0b013e328304ae57 ↗
56. Predictive Models in Emergency Medicine and Their Missing Data Strategies: A Systematic Review10.1038/s41746-023-00770-6 ↗
57. Clinical Applications of Machine Learning in Cardiovascular Disease and Its Relevance to Cardiac Imaging10.1093/eurheartj/ehy404 ↗
58. Random Forests10.1023/A:1010933404324 ↗
59. Kleinbaum, D.G., and Klein, M. (2010). Logistic Regression, Statistics for Biology and Health, Springer.10.1007/978-1-4419-1742-3 ↗
60. Kingma, D.P., and Ba, J. (2014). Adam: A Method for Stochastic Optimization. arXiv.
61. Byrd, R.H., Peihuang, L., and Nocedal, J. (2022, November 01). A Limited-Memory Algorithm for Bound-Constrained Optimization. Available online: https://digital.library.unt.edu/ark:/67531/metadc666315/.
62. Scikit-Learn: Machine Learning in Python
63. Chollet, F. (2019, November 12). Keras 2015. Available online: https://keras.io.
64. The Application of Explainable Artificial Intelligence (XAI) in Electronic Health Record Research: A Scoping Review10.1177/20552076241272657 ↗
65. Chaddad, A., Peng, J., Xu, J., and Bouridane, A. (2023). Survey of Explainable AI Techniques in Healthcare. Sensors, 23.10.3390/s23020634 ↗
66. Explainable Machine-Learning Predictions for the Prevention of Hypoxaemia during Surgery10.1038/s41551-018-0304-0 ↗
67. Greedy Function Approximation: A Gradient Boosting Machine10.1214/aos/1013203451 ↗
68. (2021, June 14). Welcome to the SHAP Documentation—SHAP Latest Documentation. Available online: https://shap.readthedocs.io/en/latest/index.html.
69. (2022, December 16). PDPbox—PDPbox 0.2.0+17.Gb022a0a. Dirty Documentation. Available online: https://pdpbox.readthedocs.io/en/latest/.
70. Measuring Frailty Can Help Emergency Departments Identify Independent Seniors at Risk of Functional Decline After Minor Injuries10.1093/gerona/glv152 ↗
71. Incidence of Delayed and Missed Diagnoses in Whole-Body Multidetector CT in Patients with Multiple Injuries after Trauma10.1177/0284185113475443 ↗
72. The Association of Admission Heart Rate and In-Hospital Cardiovascular Events in Patients with Non-ST-Segment Elevation Acute Coronary Syndromes: Results from 135 164 Patients in the CRUSADE Quality Improvement Initiative10.1093/eurheartj/ehp397 ↗
73. Heart Rate Variability in Emergency Department Patients with Sepsis10.1197/aemj.9.7.661 ↗
74. Review Article: Shock Index for Prediction of Critical Bleeding Post-Trauma: A Systematic Review10.1111/1742-6723.12232 ↗
75. Management of Diabetic Ketoacidosis
76. Using Data Mining to Predict Hospital Admissions From the Emergency Department10.1109/ACCESS.2018.2808843 ↗
77. Klang, E., Kummer, B.R., Dangayach, N.S., Zhong, A., Kia, M.A., Timsina, P., Cossentino, I., Costa, A.B., Levin, M.A., and Oermann, E.K. (2021). Predicting Adult Neuroscience Intensive Care Unit Admission from Emergency Department Triage Using a Retrospective, Tabular-Free Text Machine Learning Approach. Sci. Rep., 11.10.1038/s41598-021-80985-3 ↗
78. Interpretable Deep Learning for the Prediction of ICU Admission Likelihood and Mortality of COVID-19 Patients10.7717/peerj-cs.889 ↗
79. Estiri, H., Strasser, Z.H., and Murphy, S.N. (2021). Individualized Prediction of COVID-19 Adverse Outcomes with MLHO. Sci. Rep., 11.10.1038/s41598-021-84781-x ↗
80. Evaluation of the Need for Intensive Care in Children With Pneumonia: Machine Learning Approach10.2196/28934 ↗
81. Noncontrast Cardiac Magnetic Resonance Imaging Predictors of Heart Failure Hospitalization in Heart Failure With Preserved Ejection Fraction10.1002/jmri.27932 ↗
82. Machine Learning–Based Prediction of Health Outcomes in Pediatric Organ Transplantation Recipients10.1093/jamiaopen/ooab008 ↗
83. Drivers of Prolonged Hospitalization Following Spine Surgery: A Game-Theory-Based Approach to Explaining Machine Learning Models10.2106/JBJS.20.00875 ↗
84. Explainable Machine Learning Model for Predicting GI Bleed Mortality in the Intensive Care Unit10.14309/ajg.0000000000000632 ↗
85. Personalized Predictions of Patient Outcomes during and after Hospitalization Using Artificial Intelligence10.1038/s41746-020-0249-z ↗
86. Improving ED Emergency Severity Index Acuity Assignment Using Machine Learning and Clinical Natural Language Processing10.1016/j.jen.2020.11.001 ↗
87. Benchmarking Emergency Department Prediction Models with Machine Learning and Public Electronic Health Records10.1038/s41597-022-01782-9 ↗
88. Explaining Individual Predictions When Features Are Dependent: More Accurate Approximations to Shapley Values10.1016/j.artint.2021.103502 ↗
89. Kumar, I.E., Venkatasubramanian, S., Scheidegger, C., and Friedler, S. (2020, January 21). Problems with Shapley-Value-Based Explanations as Feature Importance Measures. Proceedings of the 37th International Conference on Machine Learning, PMLR, Virtual.
90. A Perspective on Explainable Artificial Intelligence Methods: SHAP and LIME10.1002/aisy.202400304 ↗
91. Slack, D., Hilgard, S., Jia, E., Singh, S., and Lakkaraju, H. (2020, January 7–9). Fooling LIME and SHAP: Adversarial Attacks on Post Hoc Explanation Methods. Proceedings of the AAAI/ACM Conference on AI, Ethics, and Society, New York, NY, USA.10.1145/3375627.3375830 ↗