Machine Learning Model Accurately Predicts In-Hospital Mortality After

Bioengineer.org

Source published: Site published:

Original article · فارسی

A study at two major hospitals in China found that a machine learning computer model can accurately predict which very sick patients are likely to die in the hospital after severe bleeding in a deep part of the brain called the basal ganglia. These patients were in intensive care units (ICUs) and had very low levels of consciousness. Bleeding that starts suddenly inside the brain, called spontaneous intracerebral hemorrhage, is a dangerous medical emergency. A person's condition can get worse very quickly, and many patients die soon afterward. About 60% of these bleeding events happen in the basal ganglia. Small blood vessels called lenticulostriate arteries are especially likely to be damaged in this area. The basal ganglia are also very close to important nerve cells and pathways, including the internal capsule, that help the brain control the body. Bleeding here can cause further brain damage, dangerous pressure inside the skull, and failure of important body systems. Doctors already use tests to measure consciousness and the seriousness of strokes, but these tests often cannot fully show how severe brain bleeding affects many organs at once. This is why researchers need prediction models designed for these patients and based on local hospital data.

To build a model that could predict what would happen to very sick patients with serious brain problems, researchers looked back at hospital records from the First Affiliated Hospital of Jinzhou Medical University in Liaoning Province and Shangrao People’s Hospital in Jiangxi Province. They studied patients admitted to intensive care between January 2021 and November 2025. They first checked 567 cases and selected 503 patients who met all the study rules. Patients had to be at least 18 years old, have a Glasgow Coma Scale (GCS) score of 8 or lower when they arrived at the hospital, have confirmed recent bleeding in the basal ganglia, and be admitted directly to intensive care. The Glasgow Coma Scale measures how awake and responsive a person is. A score of 8 or lower means a person has a very serious loss of consciousness. Researchers left out patients who had tumors inside the skull, brain injuries caused by physical trauma, confirmed weak or bulging blood vessels called aneurysms, or failure of several organs that was already present when they first arrived at the hospital.

The researchers collected 41 types of information about each patient from electronic medical records and nursing reports during the first 24 hours after arrival. This included age and other personal details, long-term health conditions, repeated measurements of vital signs, and scores from tests that measure brain function and overall illness. These tests included the Glasgow Coma Scale, FOUR score, APACHE II, and Sequential Organ Failure Assessment (SOFA). They also used brain scans and many laboratory test results. To keep the information reliable, the researchers removed any type of measurement that was missing for 20% or more of the patients. They then divided the 503 patients into two groups using a method that kept important patient characteristics balanced. The training group had 353 patients, and the separate internal testing group had 150 patients, following a 70% to 30% split. For smaller amounts of missing numerical information, they used a statistical method called multiple imputation by chained equations to estimate the missing values separately within each group. This helped keep the two groups independent before the researchers adjusted and tested the computer models.

Of the 503 patients, 185 died in the hospital from various causes, while 318 survived until they left the hospital. This means the overall hospital death rate was 36.8%. When the researchers compared patients who survived with those who died, they found no statistically meaningful differences in several factors, including sex, previous strokes, a history of long-term high blood pressure, whether patients had surgery to remove the blood, and whether bleeding had spread into the brain's fluid-filled spaces called ventricles. However, patients who died were more likely to be 75 years old or older, have diabetes, have an irregular heartbeat called atrial fibrillation, or be taking medicines that prevent blood clots. Patients who died also had much worse health measurements when they first arrived. They showed stronger signs of inflammation, more serious organ problems, much lower levels of consciousness, larger amounts of bleeding, and more cases in which bleeding pushed the brain away from its normal center position. They also more often showed signs of cerebral herniation, a life-threatening condition in which pressure forces brain tissue out of its normal position, when they arrived at intensive care or shortly before.

The researchers wanted to find a small group of useful measurements that could predict death without making the computer model too complicated. A model that is too closely fitted to its training data may not work well with new patients. To avoid this problem, they used a statistical method called Least Absolute Shrinkage and Selection Operator (LASSO) regression, together with ten-fold cross-validation. In ten-fold cross-validation, the data is divided into ten parts so the model can be repeatedly trained and checked using different parts. Researchers could have chosen the setting that produced the lowest average prediction error, but instead they chose a more cautious setting within one standard error of that minimum. The selected penalty value was 0.045. This method removed measurements that added little useful information and reduced the original 41 possible measurements to eight important factors. These were being 75 years old or older, having diabetes, the amount of bleeding in the brain, whether cerebral herniation was present, the Glasgow Coma Scale score at admission, the APACHE II score, the SOFA score, and the total number of white blood cells in the blood.

Using these eight factors, the researchers built and adjusted seven different types of machine learning models. These were artificial neural networks, decision trees, multivariable logistic regression, random forests, support vector machines, LightGBM, and extreme gradient boosting, also called XGBoost. They trained all seven models using only the 353 patients in the training group. They used a method called grid search, along with ten-fold cross-validation, to find the best settings for each model. Their goal was to get the highest possible area under the receiver operating characteristic curve, usually called AUC. This number measures how well a model can tell apart patients who will die from those who will survive. A higher number means better performance. The researchers then tested all seven models on the separate group of 150 patients, whose information had not been used for training. Every model performed well, with an AUC above 0.84. However, XGBoost performed best, reaching an AUC of 0.870. Its 95% bootstrap confidence interval was 0.810 to 0.924, giving a statistical range for the estimated performance.

The researchers also checked how well XGBoost performed using several other measurements. In the group of 150 testing patients, its overall accuracy was 0.793, meaning about 79.3% of its predictions were correct. Its precision was 0.714, meaning about 71.4% of patients predicted to die actually died. Its sensitivity was 0.727, meaning it correctly identified about 72.7% of patients who died. Its specificity was 0.832, meaning it correctly identified about 83.2% of patients who survived. Its F1 score, which combines precision and sensitivity, was 0.721. Its negative predictive value was 0.840, meaning 84.0% of patients predicted to survive actually survived. The support vector machine model came in second for overall ability to separate the two groups, with an AUC of 0.868, specificity of 0.874, and F1 score of 0.748. The single decision tree model had very high specificity of 0.958, but its sensitivity was only 0.510, meaning it missed many patients who died. LightGBM had the lowest AUC of the seven models, at 0.841, but it had the highest sensitivity, at 0.764.

The researchers did more tests to see whether XGBoost gave trustworthy risk estimates and could help doctors make decisions. They used calibration curves to compare the model's predicted chances of death with what actually happened to patients. The XGBoost curve stayed close to the ideal line, showing that its predictions generally matched real outcomes. Its Brier score, which measures how close predicted probabilities are to actual results, was 0.140. Lower Brier scores are better. The 95% confidence interval was 0.112 to 0.171. The researchers also used decision curve analysis, a method that checks whether a prediction model could help doctors make better choices at different levels of risk. This test showed that XGBoost could provide a positive net benefit across a wide range of risk thresholds. The researchers then compared their eight-factor model with a simpler model that used only three traditional illness scores: APACHE II, SOFA, and Glasgow Coma Scale. The eight-factor model performed significantly better. The simpler model had a lower AUC of 0.847 and a worse Brier score of 0.155.

To help explain how XGBoost made its predictions, the researchers used a method called Shapley Additive Explanations, or SHAP. This method shows which pieces of information have the biggest effect on a model's predictions. It can explain both the overall importance of different factors across all patients and how those factors affect one particular patient. The researchers found that the three most important factors were the APACHE II score, whether cerebral herniation was present, and the SOFA score. The next most important factors, in order, were the Glasgow Coma Scale score, white blood cell count, amount of bleeding in the brain, age of 75 years or older, and diabetes. The researchers also showed how different factors worked together for individual patients. For example, one very sick patient had a predicted 71% chance of dying. Very high scores showing serious illness pushed that patient's predicted risk upward. However, the absence of cerebral herniation and a normal white blood cell count helped lower the predicted risk.

The study authors explained that their research had several important limits and that more testing is needed before the model can be widely used in hospitals. Because they looked back at existing records from patients admitted one after another at two major regional hospitals, the results could be affected by which patients were included and how information was recorded. The researchers also cannot assume that the model will work equally well in hospitals in other countries. It needs to be tested with new patients at other hospitals in studies that follow patients forward in time. The study included only patients with very serious brain bleeding and an initial Glasgow Coma Scale score of 8 or lower. This means the model should not be used to predict outcomes for people with mild or moderate brain bleeding. The researchers also used only information collected around hospital admission. They did not include ongoing changes in patients' health or look at longer-term outcomes after patients left the hospital, such as whether patients could live independently after 30 or 90 days. Finally, the model currently exists only as Python computer code. It has not yet been turned into a simple bedside scoring chart or connected directly to hospital computer systems.

Subject of Research: Using machine learning to predict which intensive care patients with severe bleeding in the basal ganglia may die before leaving the hospital

Article Title: Development of a risk prediction model for poor prognosis in ICU patients with basal ganglia hemorrhage and admission GCS ≤ 8

Article References: Chai, F., Hu, W., Deng, X., & Li, X. (2026). Development of a risk prediction model for poor prognosis in ICU patients with basal ganglia hemorrhage and admission GCS ≤ 8. Frontiers in Neurology, 17, Article 1987785. [https://doi.org/10.3389/fneur.2026.1987785](https://doi.org/10.3389/fneur.2026.1987785)

Image Credits: Created using AI

DOI: 10.3389/fneur.2026.1987785

Keywords: bleeding in the basal ganglia, bleeding inside the brain, intensive care unit, machine learning, XGBoost, model for predicting patient outcomes, death in the hospital, Glasgow Coma Scale, APACHE II score, SOFA score, cerebral herniation, LASSO regression, SHAP explanations, intensive care for serious brain conditions, decision curve analysis, grouping patients by clinical risk, white blood cell count