Introduction
Stroke remains a leading cause of mortality and long-term disability worldwide. Early and accurate prediction is essential for preventative healthcare, yet machine learning models often struggle with the inherent class imbalance in medical data. In typical datasets, healthy individuals significantly outnumber stroke patients, leading models to achieve high accuracy by simply predicting the majority class—a phenomenon that renders them clinically ineffective. Furthermore, real-world data is frequently marred by missing values and inconsistencies. This paper introduces PredictStr, a balanced benchmark dataset designed to overcome these challenges through a novel graph-based balancing algorithm and rigorous clinical constraints.
Methodology
The researchers developed a two-stage pipeline to transform raw medical data into the PredictStr benchmark.
- Preprocessing and Quality Assurance: The initial phase involved standard data cleaning and the use of median imputation for missing Body Mass Index (BMI) values to mitigate the impact of outliers. Categorical variables, such as smoking status, were encoded into numerical formats to facilitate algorithmic processing.
- Dynamic Hybrid Balancing (DBH) Algorithm: The core technical innovation is the DBH algorithm. Unlike standard oversampling methods like SMOTE, which may generate clinically unrealistic synthetic data, DBH integrates consistency constraints to ensure generated samples fall within valid medical ranges (e.g., age 1–100, glucose 55–272 mg/dl). It also employs Louvain Modularity from graph theory to identify and preserve the underlying structure of the data distribution.
Dataset Characteristics
The study utilized a Stroke Prediction Dataset containing 5,110 observations. In its original state, the data was highly skewed, with only 249 stroke instances (approx. 5%) compared to 4,861 non-stroke instances. By applying the DBH algorithm, the authors expanded the dataset to 9,668 observations, achieving a perfect 1:1 balance with 4,834 instances per class. This balanced representation provides a stable foundation for training classifiers without majority-class bias.
Analysis and Insights
A key finding of this research is the importance of clinical realism in synthetic data generation. By embedding medical constraints into the balancing process, the authors ensure that models learn from data points that represent plausible patient profiles.
Feature importance analysis using a Random Forest classifier revealed that three primary metrics—Average Glucose Level (26.29%), BMI (26.28%), and Age (22.40%)—account for nearly 75% of the predictive weight. To move beyond global importance rankings, the researchers utilized Individual Conditional Expectation (ICE) plots. These plots illustrate how the predicted probability of a stroke changes for specific individuals as a single variable fluctuates, offering a more granular understanding of model behavior.
Results
The statistical analysis of PredictStr confirmed several significant relationships within the cohort. A moderate positive correlation (0.32) was observed between BMI and Age. Interestingly, a strong negative correlation was found between Smoking Status and both Age and BMI, indicating a higher prevalence of non-smokers among older individuals with higher BMI in this specific dataset. While metabolic factors dominated predictive importance, lifestyle attributes like "Work Type" and "Smoking Status" each contributed approximately 7% to the model's decision-making process.
Conclusion and Future Work
PredictStr represents a significant advancement in creating robust, clinically-aware benchmark datasets for stroke prediction. However, the authors note that the current scope is limited to a specific set of clinical attributes. Future research will focus on integrating more diverse data sources, including genomic and lifestyle data, and evaluating the dataset's performance with advanced deep learning architectures. The ultimate goal is the integration of these models into real-time e-health monitoring systems to provide proactive alerts and improve patient outcomes.
Summary updated