StrokeGuard: Cloud-Deployed Calibrated-MLP with K-Means Boundary Undersampling for Scalable Stroke Risk Prediction
Abstract Stroke accounts for roughly one in nine deaths worldwide and ranks among the most disabling non-communicable diseases globally. Timely identification of at-risk individuals is clinically actionable. Yet, two persistent obstacles hamper the deployment of automated screening tools: (1)the pronounced scarcity of stroke-positive records in routine clinical databases, where positive cases often constitute less than 5% of the cohort and yield imbalance ratios that can exceed 19:1; and (2)~the near-universal absence of validated, production-grade inference infrastructure in published stroke-ML research. We present \textit{StrokeGuard}, an end-to-end system that couples a novel K-Means cluster-based undersampling strategy with a threshold-calibrated multi-layer perceptron (MLP) and delivers the trained model to a multi-region cloud platform with fully benchmarked latency, throughput, and cost characteristics. The undersampling algorithm divides the PCA-transformed feature space into four clusters, then draws majority-class records whose proximity to the local minority centroid is smallest, thereby concentrating the training signal on the class boundary while reducing the imbalance ratio from 19.6:1 to 5:1 without generating synthetic data. The MLP is optimized with class-weighted binary cross-entropy, and its decision boundary is shifted to $\tau=0.3$ to maximize G-Mean. Preprocessing comprises Random Forest regression for missing BMI imputation ($R^{2}=0.707$), z-score normalization using training-set statistics, and Principal Component Analysis retaining 89\% of total variance. Evaluated on 45,108 clinical records (2,631 held-out test samples), the system achieves 92.51\% accuracy, 72.60\% recall, 80.51\% precision, 96.49\% specificity, 83.70\% G-Mean, 76.35% F1 score, and AUC-ROC~=~0.8706, outperforming seven baseline classifiers. Five-fold cross-validation yields $92.36\% \pm 0.31\%$, and the train-to-test accuracy gap is 1.61\%, confirming generalization. Cloud deployment across the US East, the EU West, and Asia-Pacific produces mean inference latency of 18.72~ms (P95: 24.34~ms; P99: 34.24~ms) and throughput up to 54.7 req/s, with auto-scaling from 1 to 8 instances at linear cost (\$0.115 to \$0.920/hr). All three regions sustain sub-40 ms P99 latency, satisfying real-time clinical screening requirements.
Authors
- Ahmed M. Anter (ORCID: https://orcid.org/0000-0002-8907-4369)
- Mohamed Shaban (ORCID: https://orcid.org/0000-0003-4900-1859)
- Shahd Ibrahim
- Manal M. Ghaith
Institutions
- Egypt-Japan University of Science and Technology (EG)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-02
- DOI
- https://doi.org/10.21203/rs.3.rs-11286884/v1
- Primary Topic
- Artificial Intelligence in Healthcare
- Type
- preprint