A Web-Based Interface That Leverages Machine Learning to Assess an Individual’s Vulnerability to Brain Stroke
Divyansh Bhandari, Arnav Agarwal, Robin Roy, R. Priyatharshini, Cristian Rodríguez Rivero
Abstract
Cerebral stroke is a major global health issue, contributing to high mortality and long-term disability. Early identification of individuals at high risk of stroke can significantly improve preventive care outcomes. We present a web-based stroke risk assessment tool that uniquely combines an accessible user interface with robust machine learning modeling. The proposed platform leverages a novel combination of SMOTE oversampling and logistic regression to address class imbalance in patient health records, improving the detection of stroke risk factors over existing methods. We compare a range of algorithms – including traditional classifiers and deep learning models – and report comprehensive performance metrics (accuracy, precision, recall, F1-score, and AUC-ROC) for each. Our best model (logistic regression with SMOTE and standard scaling) achieves 93.2% accuracy with a substantially higher F1-score for the stroke-positive class than other models, indicating improved sensitivity to stroke cases. To bridge the gap between complex predictive models and end-users, we deploy this model in an intuitive web interface (built with Streamlit) that non-technical individuals and healthcare providers can easily use. This interface requires no specialized knowledge, preserves user privacy by avoiding any data storage, and provides clear explanations of results. By offering a practical and transparent tool for stroke risk screening, our work advances health informatics with an emphasis on accessibility, interpretability, and early intervention. Potential applications range from personal health self-assessment to integration in clinical workflows for preventive care, ultimately aiming to improve public health outcomes through early detection and intervention in stroke.