Objective This study aimed to develop and validate a machine learning model integrating multimodal electroencephalography-functional magnetic resonance imaging (EEG-fMRI) features with clinical biomarkers for predicting post-stroke epilepsy (PSE) risk, thus providing a quantitative tool for early identification of high-risk patients. Methods A total of 365 acute stroke patients admitted to our hospital from January 2021 to June 2024 were retrospectively enrolled and randomly divided into training ( n = 256) and validation ( n = 109) sets in a 7:3 ratio. Demographic data, EEG parameters, multimodal MRI indices, and serum biomarkers were collected. In the training set, univariate analysis was first performed to screen relevant factors, followed by LASSO regression for variable selection. Multivariate logistic regression was ultimately used to identify independent risk factors. Based on key predictors, random forest (RF), support vector machine (SVM), and gradient boosting (GB) models were constructed using Python. Model performance was evaluated and optimized via the area under the receiver operating characteristic curve (AUC), calibration curves, and decision curve analysis (DCA). A nomogram was developed for risk visualization, and SHapley Additive exPlanations (SHAP) values were employed for interpretability analysis to quantify the direction and magnitude of feature contributions. Results No significant differences in baseline characteristics were observed between the training and validation sets ( P 0.05), confirming data comparability. Univariate and multivariate logistic regression showed that epileptiform discharge frequency (EDF), background EEG delta wave ratio (BEDWR), stroke lesion volume (SLV), National Institutes of Health Stroke Scale (NIHSS) score, and serum neuron-specific enolase (NSE) levels were independent risk factors for PSE (all P 0.05). Among the models, RF demonstrated superior predictive performance, with AUCs of 0.892 (training set) and 0.731 (validation set). Interpretability analysis showed that the nomogram enabled individualized risk calculation. SHAP values confirmed EDF (highest mean SHAP value), NIHSS score, and lesion volume as the top three positively contributing features (higher values correlated with increased PSE risk), aligning with regression results and validating clinical rationality. Conclusion An RF model integrating multimodal data was successfully developed to effectively predict PSE risk. EDF, NIHSS score, SLV, BEDWR, and serum NSE were identified as core predictive indicators.
Wang et al. (Tue,) studied this question.