Machine Learning and Survival Analysis Identify Critical Predictors of

A study of people who had recently suffered a stroke found that their quality of life after treatment depended mostly on how serious their stroke was at the start, how stable their body and blood chemistry were, and whether they received organized rehabilitation care. Things like education, income, and where they lived were less important. Researchers at a busy emergency department in India used survival analysis, a method for studying when health problems happen, along with several types of machine learning, to follow patients for 90 days. Of the 250 stroke patients in the study, 27 people, or 10.8%, either died or had poor quality of life. The other 223 patients, or 89.2%, had good recovery results. By checking patients at three different times, the researchers found early signs that helped predict who was likely to recover well and who faced a greater risk of losing important abilities.
The study took place in the Department of Emergency Medicine at Meenakshi Mission Hospital and Research Centre in Madurai, India, between January 2023 and December 2024. This large hospital treats many stroke patients from both cities and rural areas. It has equipment for detailed brain scans and can provide emergency treatments, including medicines given through a vein to break up blood clots and procedures that use thin tubes called catheters to treat blocked blood vessels. Researchers included patients who arrived with signs of an acute stroke based on American Stroke Association guidelines. People who had suffered strokes before could also join. Patients were enrolled in the order they arrived after giving written permission to participate. The study did not include anyone younger than 18, anyone who refused permission, or people whose symptoms came from something other than a stroke, such as dizziness caused by an injury or accidental fall. The researchers collected information from hospital records, charts that tracked patients' vital signs, and planned follow-up video calls. This helped them record patients' health risks, hospital treatments, and recovery after leaving the hospital.
To measure patients' quality of life, the researchers used the Short Form-36 Health Survey, also called SF-36. This is a widely tested questionnaire used around the world to measure health and how well people can manage everyday activities. Scores range from 0 to 100, with higher scores meaning better health. Researchers checked patients 30, 60, and 90 days after their stroke. The main result they studied was whether a patient died before day 90 or had poor quality of life. Among patients who survived, a score below the middle SF-36 score for the study group counted as poor quality of life. A score equal to or above that middle value counted as good quality of life. Anyone who died before the 90-day check was placed in the poor-outcome group. Patients who left the hospital against medical advice and could no longer be followed were excluded to keep the analysis reliable.
The researchers used survival analysis to understand when patients were most likely to develop serious problems during the 90 days. Kaplan-Meier survival curves, which show how the chance of avoiding a bad outcome changes over time, suggested that most patients kept a stable quality of life during the first few weeks after leaving the hospital. But the risk became more noticeable between 30 and 55 days after the stroke. Most changes to poor quality of life or death happened during that period. Among patients who experienced a bad outcome, the estimated middle time until that outcome was about 48 days. At the same time, surviving patients showed steady improvements in their health scores. Their average SF-36 score increased from 81.87 at 30 days to 84.46 at 60 days and 86.77 at 90 days. A statistical test called repeated-measures analysis of variance showed that these improvements were statistically significant, meaning they were unlikely to be explained by chance alone.
When the researchers compared basic patient characteristics with recovery results, they found that sex, education, income or social class, and whether someone lived in a city or rural area were not significantly linked to quality of life after 90 days. One everyday behavior did matter: how patients usually handled minor health problems. People who regularly took medicines on their own without professional advice had significantly worse results after a stroke than people who visited trained medical professionals. Patients who died or had poor quality of life were also older on average. Their average age was 61.15 years, compared with 57.14 years among patients who recovered well. However, this age difference was not statistically significant when tested on its own.
In contrast, the patients' medical condition when they first arrived at the hospital was strongly linked to their recovery. Three tests used to measure stroke severity were especially important: the Glasgow Coma Scale, which measures how awake and responsive someone is; the National Institutes of Health Stroke Scale, which measures problems caused by a stroke; and the modified Rankin Scale, which measures disability. Scores from all three tests were significantly linked to patients' results after 90 days. Other important factors included blood sugar levels when patients arrived, oxygen levels in their blood while breathing normal room air, unusual heart rhythms, and symptoms such as suddenly being unable to speak or understand language, called aphasia, together with paralysis on one side of the body, called hemiplegia. Several parts of hospital care were also significantly linked to recovery. These included admission to an intensive care unit, use of medicines that reduce blood clotting, mental health counselling, organized physiotherapy advice, whether speech had recovered, and whether a patient received an official disability certificate. Together, these findings showed that both the seriousness of the stroke and the care patients received were important for short-term recovery.
Because relatively few patients had poor outcomes, the researchers used a special statistical method called Firth-penalized Cox proportional hazards regression. This method helps estimate how strongly different factors are linked to the risk of a bad outcome while reducing problems that can happen when there are only a small number of events. The researchers calculated adjusted hazard ratios, which compare the risk of an event over time after accounting for other factors. Patients whose blood sugar level on arrival was below 110 milligrams per deciliter had an adjusted hazard ratio of 2.85 for poor quality of life or death compared with the reference group. Stroke severity also showed a clear pattern: more serious strokes were linked to higher risk. Patients with moderate scores of 6 to 20 on the National Institutes of Health Stroke Scale had an adjusted hazard ratio of 2.12. Those with severe scores of 21 to 42 had a ratio of 4.28. Serious speech problems were also warning signs. Patients with speech abnormalities had an adjusted hazard ratio of 3.65, while those with slurred speech had a much higher ratio of 8.12.
The same statistical models found that some treatments and care conditions were linked to a lower risk of poor recovery or death. Patients who received anticoagulant medicines, which help prevent blood clots, had an adjusted hazard ratio of 0.31. Patients treated in a regular hospital ward rather than an intensive care unit had a ratio of 0.29. This probably reflected the fact that these patients were less seriously ill when they arrived. Patients who received organized physiotherapy counselling early in their care had an adjusted hazard ratio of 0.27, showing a strong link with better outcomes. On the other hand, patients who received an official disability certificate had an adjusted hazard ratio of 2.51. The researchers explained that this was probably an example of reverse causality. In other words, receiving the certificate was not necessarily causing worse health. Instead, people with serious, lasting brain and nerve problems were more likely to need a disability certificate in the first place.
The researchers then tried to find which pieces of information were most useful for predicting recovery. They started with 57 medical and other patient-related factors and used 15 different methods to select the most useful ones while avoiding repeated or overlapping information. These methods included LASSO, recursive feature elimination with stratified cross-validation, statistical tests of individual factors, decision-tree importance scores, Boruta, and SHAP. Each method helps identify useful predictors in a different way. Four factors stood out: where patients went after leaving the hospital, whether they received organized mental health counselling, whether they received physiotherapy counselling, and whether they were given a disability certificate. Each of these factors was selected by 14 of the 15 methods, giving 93.3% agreement. Blood sugar level at hospital admission was selected by 11 methods. Glasgow Coma Scale scores and speech problems during the stroke were each selected by 10 methods. Other factors, including whether patients knew about government health support programs and what kind of transportation they used, were moderately reliable predictors across the different selection methods.
Next, the researchers built and compared 14 machine learning models to predict whether patients would have good or poor recovery after 90 days. They used a process called stratified ten-fold cross-validation, which repeatedly divides the data into training and testing groups while keeping similar proportions of good and poor outcomes. They also adjusted model settings to improve performance. Because far fewer patients had bad outcomes than good ones, the researchers used the Synthetic Minority Over-sampling Technique, or SMOTE, within the training groups. This method creates additional training examples of the less common outcome to help models learn from both groups. Models that combined many decision trees generally performed better than more traditional methods. After training on the most consistently selected predictors, the Random Forest model gave the best overall results. It correctly classified 96.65% of cases, had a specificity of 97.78%, meaning it was especially good at correctly identifying patients without the bad outcome, and achieved a Matthews correlation coefficient of 0.933, a measure of how well predictions match actual results. Gradient Boosting, Extra Trees, and CatBoost also performed very well. Each had an area under the receiver operating characteristic curve greater than 0.95, showing a strong ability to tell apart patients with good and poor outcomes. However, the researchers warned that this was an early study from just one hospital. The results need to be tested with larger groups of patients from other hospitals before doctors can rely on these models to make treatment decisions.
Subject of Research: Using survival analysis and machine learning to predict quality of life after a stroke
Article Title: Predictive modelling of post-stroke quality of life determinants using survival analysis and machine learning
Article References: Saroj, R. K., Jena, N. N., & Sunil, R. R. (2026). Predictive modelling of post-stroke quality of life determinants using survival analysis and machine learning. Discover Artificial Intelligence, 6(1), Article 1966. https://doi.org/10.1007/s44163-026-02844-2
Image Credits: AI Generated
DOI: 10.1007/s44163-026-02844-2
Keywords: stroke recovery, quality of life, machine learning, random forest, survival analysis, Firth-penalised Cox regression, SF-36 survey, National Institutes of Health Stroke Scale, Glasgow Coma Scale, modified Rankin Scale, blood glucose, physiotherapy counselling, speech impairment, SMOTE, feature selection, prospective observational study
