Authors’ overview
We develop and analyze explainable machine learning (ML) models for sepsis outcome prediction using a novel Electronic Health Record (EHR) dataset from 12,286 hospitalizations at a large emergency hospital in Romania. The dataset includes demographics, International Classification of Diseases (ICD-10) diagnostics, and 600 types of laboratory tests. This study aims to identify clinically strong predictors while achieving state-of-the-art results across three classification tasks: (1)deceased vs. discharged, (2)deceased vs. recovered, and (3)recovered vs. ameliorated. We trained five ML models to capture complex distributions while preserving clinical interpretability. Experiments explored the trade-off between feature richness and patient coverage, using subsets of the 10—50 most frequent laboratory tests. Model performance was evaluated using accuracy and area under the curve (AUC), and explainability was assessed using SHapley Additive exPlanations (SHAP). The highest performance was obtained for the deceased vs. recovered case study (AUC=0.983, accuracy=0.93). SHAP analysis identified several strong predictors such as cardiovascular comorbidities, urea levels, aspartate aminotransferase, platelet count, and eosinophil percentage. Eosinopenia emerged as a top predictor, highlighting its value as an underutilized marker that is not included in current assessment standards, while the high performance suggests the applicability of these models in clinical settings.
Introduction
Sepsis remains one of the leading causes of morbidity and mortality in hospitals worldwide, posing a significant clinical and operational challenge for healthcare systems. Characterized by a dysregulated host response to infection leading to life-threatening organ dysfunction, the early detection and accurate prognosis of sepsis are crucial for improving patient outcomes and optimizing resource allocation.
Sepsis is a global health burden, yet sepsis-related mortality varies markedly across regions, with lower age-standardized mortality rates in 2017 reported in Western European countries (25.7 per 100,000 individuals), compared to Central (42.3 per 100,000 individuals) and Eastern European countries (64.6 per 100,000 individuals), including Romania (54.1 per 100,000 individuals).
Some of the most widely utilized scoring systems for establishing prognosis in sepsis are the Sequential Organ Failure Assessment score (SOFA), the quick sepsis-related organ failure assessment (qSOFA), the acute physiology and chronic health evaluation (APACHE), the simplified acute physiology score (SAPS), among others. Although these scores aim to provide an objective and standardized way in assessing the septic state, they also present significant limitations—they rely on a predefined set of variables and assume linear relationships between lab test results and patient outcomes. These systems act as a checklist with limited generalizability across diverse clinical settings and population cohorts. Most importantly, they are unable to capture the complex, non-linear associations between underlying factors that might catch an early aggravation in the septic state.
Centralized records on sepsis have been scarce in Central and Eastern Europe, forcing researchers to rely on foreign data to perform comprehensive studies, or rely on smaller cohorts. In contrast, our Romanian cohort captures detailed EHR data with up to 600 lab tests, demographics and diagnoses, allowing the training of feature-rich models.
Our previous study emphasizes that sepsis is a deadly threat in Romanian hospitals, and outcomes lag behind those in wealthier countries, concluding that early recognition and improved allocation of ICU resources are the principal means of improving the septic outcome. We develop further our previous work, and we tackle in this study this precise gap that our ML solution aims to fill.
We introduce a novel, machine learning–driven approach to address these challenges. Specifically, we train 5 predictive models to estimate three distinct outcomes associated with sepsis progression: clinical improvement, complete recovery, and mortality. In contrast to prior studies on sepsis prediction, our results demonstrate superior performance on the most critical task of Deceased vs. Discharged patient outcome, achieving state-of-the-art accuracy compared to existing methods.
Our work relies on a large Romanian sepsis cohort, gathering over 12,000 adult hospitalizations spanning an 18-year period (2007–2024) at one of the largest emergency hospitals in the region—The University Emergency Hospital of Bucharest (UEHB). To the authors’ knowledge, this is the first sepsis outcome prediction study using Machine Learning in an Eastern European country. Most ML-driven efforts for sepsis mortality prediction have been developed on North American (MIMIC-III, MIMIC-IV, eICU-CRD) and Western European datasets.
Learning complex distributions over different hospitalization outcomes (deceased vs. recovered, deceased vs. ameliorated, ameliorated vs. worsened) and complex patient profiles (from 43 ICU units, and 600 investigation types) we train our models to detect subtle predictors, potentially outperforming generic scores. Going forward, combining such data-driven insights with clinical expertise could help bridge the outcome disparity between Romania and more developed countries.
Dataset
Exclusion criteria included patients under 18 years of age, neonatology admissions, and hospital stays limited to a single day. Altogether, 12,089 patient records were extracted from the hospital’s digital system, corresponding to the 12,286 hospitalizations studied in this work. In total, the study tracked 600 different types of laboratory tests and each patient record included the nature of the discharge (deceased or alive) and the type of discharge (deceased, worsened, improved, or recovered).
The study was conducted in accordance with the ethical principles outlined in the Declaration of Helsinki (1975), with its most recent revision in 2013. Ethical approval was granted by both the Ethics Committee of the Carol Davila University of Medicine and Pharmacy (Approval No. 6098/21.03.2025) and the University Emergency Hospital of Bucharest (Approval No. 36964/17.06.2022). Informed consent was waived by the Ethics Committee of the University Emergency Hospital of Bucharest due to the retrospective nature of the study and the use of anonymized data.
Data Curation and Preprocessing
Sepsis is a time-sensitive condition; however, due to data sparsity in this study, temporal variations in laboratory results were not considered. After evaluating multiple strategies for aggregating laboratory time series, we found that using the mean value over the hospitalization period yielded the best performance across all predictive tasks.
Machine Learning Models
Model performance was assessed using accuracy and area under the receiver operating characteristic curve (AUC). Accuracy captures the overall correctness, while AUC evaluated the classification ability to create a clear distinction between patients that are likely to recover from those who are at high risk.
Results
Overall, the models trained with diagnostic features outperformed the ones with just the EHR data across all tasks. Furthermore, the top-40 subset of investigations demonstrated the best trade-off between a feature-rich dataset and patient coverage. One exception is the Deceased vs. Recovered task, where the top-20 reached the best accuracy, with the top-40 subset ranking second, just behind.
Model Performance
The second classification task investigated the distinction between patients who were discharged in a recovered state and those discharged in an ameliorated condition. While less critical than mortality prediction, this scenario helps assess whether machine learning models can identify patients likely to achieve full recovery versus those showing only partial improvement. From a clinical perspective, this task has value in setting realistic expectations for post-discharge outcomes and planning resource allocation.
SHAP Interpretation and Clinical Significance
All three SHAP analyses share a common set of important predictors in assessing the risk. Respiratory comorbidities are the top mortality threat, with Cardiovascular coming second, while patients with Digestive pathologies are more likely to make a full recovery. Patients with Nervous System comorbidities have an increased mortality risk, and overall younger patients are more likely to be discharged and make a full recovery.
Remarkably, our key finding is the undeniable importance of the Eosinophils across all tasks, and all variations of predictors. Decreased eosinophil counts, or eosinopenia, are becoming more widely acknowledged as an early, sensitive indicator of acute infection and systemic inflammation, even though they are not typically highlighted in sepsis scoring systems (SOFA, qSOFA). Our studies consolidate the supposition that lower proportions of Eosinophils among total white blood cells are inversely linked to fatal outcomes (lower the eosinophils percentage predict higher mortality risk).
Increased mortality risk was linked to elevated urea levels, which most likely reflected systemic catabolism and compromised kidney function. In line with older patients’ weakened physiological reserves and immunological dysregulation, advancing age also made a substantial contribution. Poor outcomes are strongly predicted by sepsis-induced coagulopathy, which is indicated by low platelet counts. The models also recognize sodium levels as an important predictor. Both hyponatremia and hypernatremia are frequent in critically ill patients and can indicate underlying problems like kidney issues, dehydration, or hormonal imbalances.
The mortality-focused predictors placed greater weight on systemic inflammatory and hematologic signals (WBC, Eosinophils, Lymphocytes, and Monocytes; Fibrinogen; Platelet metrics including PLT/MPV/PDW) and on cardiac injury biomarkers (CKMB/CKI), whereas the recovery-oriented comparison (Recovered vs. Ameliorated) emphasizes hepatic and biliary function (ALT/AST and bilirubin fractions) and red-cell indices. Results indicate that liver stress or injury (elevated levels of AST—alanine aminotransferase) lead to a higher risk of mortality in this patient group. This aligns with widespread knowledge about sepsis, where liver dysfunction is a common and serious complication.
The SHAP analysis shows that the models rely on established markers of sepsis severity, such as liver enzymes and platelets, while also emphasizing the importance of less traditional but clinically plausible features like eosinophils, sodium levels, and specific comorbidity profiles. This suggests that the model has developed a detailed and clinically coherent approach to risk stratification. The SHAP analysis therefore reinforces the models’ clinical applicability and transparency.
Discussion
Overall, this exhaustive model benchmarking underlines two important findings. First, machine learning models, particularly tree-based models, can offer exceptionally accurate mortality risk stratification (even better if the ICD-10 codes from diagnostics are available). Second, performance is competitive even in constrained settings, indicating usefulness in actual hospitals where lab completeness may differ.
However, the performance of models trained using this data may vary widely when applied on a population from a different geographical area. Factors that could influence such differences are yet unclear and require further exploration and may be related to country-specific healthcare environment, treatment choices, and standard of care. As we aimed to develop models that reflect as closely as possible the Romanian healthcare setting, we chose to train our models using a collection of patients with sepsis from the largest emergency hospital in Romania. To the authors’ knowledge, this is the first study investigating sepsis outcome prediction using Machine Learning, based on a large collection of patients from an Eastern European country.
Patient status at discharge recorded in our dataset allowed us to explore two additional prediction scenarios, which have not been previously analyzed through ML techniques in patients with sepsis. In addition to mortality prediction, this analysis aimed to capture more subtle clinical transitions. These trends suggest that ML models are able to adapt beyond the binary “dead or alive” classification and are able to identify not only patients with sepsis who are likely to survive and fully recover but also patients with sepsis who could potentially improve. These types of models can help to inform early decisions of transfer from the ICU of patients who are stabilized and likely to continue improving, thus prioritizing intensive care resources in situations where these are very limited.
In our study, the Deceased vs. Recovered classification achieved the highest overall performance, with the HistGradientBoosting model reaching an AUC of 0.983 and an accuracy and recall of 0.93. These results surpass previously reported performances on comparable sepsis mortality prediction tasks based on the MIMIC and eICU-CRD datasets (0.94–0.96 AUC ). The Deceased vs. Discharged task performance also remained high (0.92 AUC), proving the robustness of our methodology. Moreover, the Recovered vs. Ameliorated classifier—a task not explored in sepsis works involving ML—managed to discern subtle recovery patterns (0.86 AUC), suggesting potential for early identification of patients likely to improve which can therefore be safely transferred from intensive care.
Routine laboratory results have been previously shown to play an important role in sepsis mortality prediction. This takes advantage of the ability of ML models to analyze large and complex sets of information, identifying relationships between patient characteristics unaccounted for by commonly used prognostic tools.
In accordance with other studies, SHAP analysis of previous studies revealed that the most important features for ML models are also some of those often used in risk scores, including urea, platelet count, and bilirubin. Moreover, most of the key variables highly relevant for outcome prediction in our scenarios were also highlighted in other studies, such as age, urea levels, lymphocyte percentage, platelet count, bilirubin, chloride levels, and AST and ALT.
Even though the investigation showing the percentage of eosinophils among all white blood cells is only the 26th most frequently performed test in this study, it has proven to be one of the strongest predictors across all experiments. This aligns with previous evidence by Pinte et al. (2025), who performed a systematic review and meta-analysis and found that patients hospitalized with infection who were presenting low eosinophil counts had a significantly higher mortality rate. Moreover, survivors showed an eosinophil count increase within the first 2–5 days of hospitalization, whereas the patients in critical condition persisted with low eosinophil counts.
Eosinopenia has been recognized in literature starting from the 19th century as part of the stress response to acute infections, even though it is not included in standardized sepsis assessment scores. The biological phenomenon—where inflammation and acute infection activate chemokines and stress hormones, leading to reduced blood eosinophil counts—has been repeatedly confirmed as an early indicator of immune dysregulation during sepsis hospitalization.
Conclusion
The ML tools developed in this study demonstrated promising performance in predicting in-hospital mortality. Moreover, we demonstrated the potential to distinguish patients who are likely to achieve full recovery and those expected to show only partial post-sepsis improvement. Our findings add to emerging evidence supporting the value of ML-based approaches for clinical decision support, especially in resource-strained healthcare systems.
Given the scarcity of prior studies from Eastern Europe, this study contributes to understanding regional sepsis characteristics. Integrating our models into clinical workflows could complement existing scores such as SOFA in assisting clinicians in triage, thus ultimately improving survival through earlier intervention, while showing transparent predictions based on familiar variables—such as enzymes and eosinophils, and diagnostic or urea levels.
Model Selection Rationale
Our dataset consists of sparse complex data collecting demographic and discharge information, comorbidity screening and investigation results. For all the training setups, we create a standardized input and output format that is flexible to the number of input parameters of each trial. Running multiple experiments for different feature subsets, we ensure a scalable and robust training mechanism for inputs ranging from 14 to 70 parameters to predict a binary classification output. To ensure interpretable analysis of the feature weights, we selected widely adopted classical machine learning algorithms: Logistic Regression (LR), Support Vector Classifier (SVC), Random Forest (RF), Gradient Boosting (GB), and Histogram-based Gradient Boosting (HistGB). These models provide complementary approaches in solving the classification tasks, varying in methods from linear separators to non-linear tree ensembles.
Feature Engineering and Scaling
The input for our model has mixed data types: continuous test results, label-encoded variables for sex and environment of origin, and optional structured clinical context found in comorbidities. Depending on the model used to perform the classification, some of these features were processed into equivalent distributions.
Training Protocol
Models were trained on five sets of laboratory tests: the Top-10, 20, 30, 40, and 50 most frequent investigations. Each of the five subsets was trained on two input configurations: (1) Base variant: Demographics + lab results; (2) Extended variant: Demographics + lab results + comorbidities.
All models were trained using a consistent pipeline architecture consisting of: a preprocessing layer (continuous features standardized using StandardScaler; categorical features one-hot encoded using OneHotEncoder) and a classifier layer (one of: Logistic Regression, Support Vector Classifier, Random Forest, Gradient Boosting).
The classifiers were evaluated individually and in ensemble using the same metrics: accuracy, F1-score, ROC AUC, and confusion matrix. The full training pipeline including preprocessing and trained classifier was saved as a.joblib object for each configuration, enabling seamless reuse and deployment.
Explainability Analysis
One of the ultimate goals of this work was not simply to construct good classifiers but to interpret and justify their decisions in a clinically relevant manner as well. For each of the models, we computed feature-importance profiles to find which of the input variables was most responsible for the predictions made by the model.
For Gradient Boosting and Random Forest models, we derived the feature weights directly from the trained classifiers through the feature_importances_ property of Scikit-learn. These scores represent the cumulative reduction in Gini impurity across all trees where a feature was used to split the data.


