Stroke is a disease that can occur suddenly, causing progressive brain damage due to non-traumatic blood flow disruption in the brain. Common symptoms of stroke include numbness in the limbs and impaired communication. Stroke is the second leading cause of death in the world and the third leading cause of mental retardation globally. Predictive machine learning-based technology can help identify early symptoms of stroke for prevention and early intervention. This study aims to compare the performance of the Random Forest and Gradient Boosting algorithms in predicting stroke. By applying the SMOTE method to address class accuracy in the dataset, this study shows that the Random Forest model is superior, with an accuracy of 95.5%, a precision of 78.8%, a recall of 93.1%, and an f1-score of 84.2%. In conclusion, the Random Forest algorithm performs better than Gradient Boosting in predicting stroke, showing significant potential in assisting early detection and medical decision making.
Copyrights © 2024