Sepsis is one of the most significant complications in critical care settings, which puts a significant burden on the patient and health systems. It is associated with longer hospital stays and higher mortality. Machine learning provides a chance to use regular clinical information to identify these complications early, which may be useful for a nurse’s decision-making process at important moments. In Iraq, with the shortage of ICUs (intensive care units) staffing and the lack of a health information system, the use of such support tools is the most needed one. The current study aimed to build an ML model to predict the onset of sepsis in patients admitted to ICUs, based on information from the RICD database. Another primary goal was to identify the most important predictive variables. A total of 500 cases were used from a publicly available Russian database, RICD, which includes over 10,000 admissions and over 462,000 clinical records. Random Forest classifier was used to categorize the cases as septic and non-septic according to the SOFA score threshold (SOFA ≥ 2). To ensure class proportions, the sample was divided into 460 training and 40 testing cases via stratified cross-validation. The effectiveness of the model was evaluated by accuracy, recall, precision, F1 score and ROC curve. The model achieved an overall accuracy of 82% and a recall of 90% in detecting sepsis. It had a positive predictive value of 88%, F1 score of 89% and AUC-ROC of 0.849. The main variables that affected the prediction were length of stay in the ICU (0.26), creatinine (0.19), and age (0.12). The model demonstrated good detection performance for sepsis, and its relatively high false-positive rate in the non-sepsis class is considered clinically acceptable. Application of ML models to routine clinical data may help nurses in early detection of sepsis. Larger sample sizes, incorporating nursing narrative data, and multi-center trials are desirable for future work. Furthermore, the ethical and legal issues must be carefully assessed before clinical use.
Copyrights © 2026