An artificial intelligence-based prediction for suitable sport exercise recommendation using BMI and heart rate
Boniface Ntambara, Shyaka Vincent, Uwamahoro Leopord
Key points
From the paper's conclusion- The results show internal XGBoost accuracy of 99.6%, with precision, recall, and F1-score of 0.996 and ROC-AUC of 0.992.
Abstract
Artificial intelligence can support personalized exercise guidance, but many fitness recommendation systems require wearable ecosystems, longitudinal activity histories, or complex sensor streams. This study developed an exercise-classification prototype using body mass index (BMI), resting heart rate (RHR), age, and sex to support initial recommendations without prior activity logs. An ESP32 platform integrated MAX30102, HX711, and HC-SR04 modules with a Flask backend communicating through HTTP over Wi-Fi. A dataset of 60,000 labeled records supported model development and internal evaluation. Preprocessing included categorical encoding and training-fitted Min-Max scaling. Candidate classifiers included Decision Tree, Random Forest, Support Vector Machine, Logistic Regression, XGBoost, and XGBoost with SMOTENC oversampling. Hyperparameters were tuned using grid search and five-fold stratified cross-validation. Feature importance and SHAP analyses examined predictor contributions. A separate held-out sensitivity analysis assessed the effect of hypothetical perturbations to BMI and RHR. The results show internal XGBoost accuracy of 99.6%, with precision, recall, and F1-score of 0.996 and ROC-AUC of 0.992. BMI and RHR had the highest global feature importance, followed by age and sex. The prototype demonstrated web-based monitoring, sensor-data logging, and exercise-label display. In the separate noise sensitivity analysis, hypothetical perturbations with BMI standard deviation 0.5 kg/m 2 and RHR standard deviation 5 beats/min reduced accuracy from 99.63% to 83.61% and changed 16.39% of predictions across the 13 recorded sport-combination labels. This paper describes internal prediction of recorded labels and do not establish clinical exercise suitability or generalization to new participants. Controlled sensor error, end-to-end response time, independently labeled deployment accuracy, and hardware and operating costs were not quantified. External validation, sensor calibration, broader clinical inputs, and evaluation of the proposed pre-inference safety gate are needed before real-world exercise guidance can be supported.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- AI-based personalized exercise and health recommendation system using hybrid modelingFrontiers in Artificial Intelligence · 2026
- Design and implementation of a hybrid machine learning framework for predicting heart rate statusScientific Reports · 2026
- Data-Minimizing Motion-Gated Artificial Intelligence Decision Support for Electric Micro-Mobility: An Architecture-Feasibility Study.Sensors (Basel, Switzerland) · 2026
- Artificial Intelligence in Exercise Prediction, Monitoring, and Personalization: A Systematic Review.Journal of functional morphology and kinesiology · 2026
- Predicting Body mass index classification from physical fitness indicators using machine learning in South Chinese college students from 2013 to 2025.BMC public health · 2026
- Smart Fitness Solutions: An Edge-Computing Approach for Biometric Monitoring and Real-Time Muscle Fatigue DetectionFuture Internet · 2026