An artificial intelligence-based prediction for suitable sport exercise recommendation using BMI and heart rate

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.

Authors

Institutions

Publication Details

Journal
Frontiers in Big Data
Published
2026-11-26
DOI
https://doi.org/10.3389/fdata.2026.1927346
Primary Topic
Artificial Intelligence in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

An artificial intelligence-based prediction for suitable sport exercise recommendation using BMI and heart rate

Boniface Ntambara, Uwamahoro Leopord, Shyaka Vincent
Frontiers in Big Data
Artificial Intelligence in Healthcare
article

An artificial intelligence-based prediction for suitable sport exercise recommendation using BMI and heart rate

Boniface Ntambara, Uwamahoro Leopord, Shyaka Vincent
article en

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.

Frontiers in Big DataVol. 9
Rwanda Polytechnic (RW)
Artificial Intelligence in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon