A Machine Learning Approach to Developing an Accurate Prediction of Maximal Heart Rate During Exercise Testing in
Larsen Cundrič1, Zoran Bosnić, Leonard A Kaminsky
1University of Ljubljana, Faculty of Computer and Information Science, Ljubljana, Slovenia (Mr Cundrič and Dr Bosnić); Fisher Institute of Health and Well-Being and Clinical Exercise Physiology Laboratory, Ball State University, Muncie, Indiana (Drs Kaminsky and Peterman); VA Palo Alto Health Care System and Stanford University, Palo Alto, California (Dr Myers); Departments of Information Systems, Faculty of Organizational Sciences (Dr Markovic) and Physiology, Faculty of Pharmacy (Dr Popović), University of Belgrade, Belgrade, Serbia; Department of Physical Therapy, College of Applied Science, University of Illinois at Chicago (Dr Arena); Division of Cardiology, University Clinical Center of Serbia, Belgrade, Serbia (Dr Popović); and Department for Cardiovascular Diseases, Mayo Clinic, Rochester, Minnesota (Dr Popović).
Purpose:
Maximal heart rate (HR max ) continues to be an important measure of adequate effort during an exercise test. The aim of this study was to improve the accuracy of HR max prediction using a machine learning (ML) approach.
Methods:
We used a sample from the Fitness Registry of the Importance of Exercise National Database, which included 17 325 apparently healthy individuals (81% males) who performed a maximal cardiopulmonary exercise test. Two standard formulas for HR max prediction were tested: Formula1 = 220 - age (yr), root-mean-squared error (RMSE) 21.9, relative root-mean-squared error (RRMSE) 1.1; and Formula2 = 209.3 - 0.72 × age (yr), RMSE 22.7 and RRMSE 1.1. For ML model prediction, we used age, weight, height, resting HR, and systolic and diastolic blood pressure. The following ML algorithms to predict HR max were applied: lasso regression (LR), neural networks (NN), support vector machine (SVM) and random forests (RF). An evaluation was performed using cross-validation and by computing the RMSE and RRMSE, Pearson correlation, and Bland-Altman plots. The best predictive model was explained with Shapley Additive Explanations (SHAP).
Results:
The HR max for the cohort was 162 ± 20 bpm. All ML models improved HR max prediction and reduced RMSE and RRMSE compared with Formula1 (LR: 20.2%, NN: 20.4%, SVM: 22.2%, and RF: 24.7%). The predictions of all algorithms significantly correlated with HR max ( r = 0.49, 0.51, 0.54, 0.57, respectively; P < .001). Bland-Altman analysis demonstrated lower bias and 95% CI for all ML models in comparison with standard equations. The SHAP explanation showed a high impact of all selected variables.
Conclusions:
Machine learning, particularly the RF model, improved prediction of HR max using readily available measures. This approach should be considered for clinical application to refine HR max prediction.
Related Concept Videos
Factors Influencing Heart Rate
Let us explore the significant factors affecting heart rate, including age, body temperature, posture, acute pain, chemical influences,...
Exercise Stress Test
Exercise stress testing, commonly known as a treadmill test, is a noninvasive procedure used to evaluate cardiovascular function and diagnose heart conditions.
Definition
An exercise stress test measures the heart's response to exertion using a treadmill or stationary bicycle. Chest electrodes record the heart's electrical activity through an ECG, and blood pressure is monitored regularly.
Purposes
Exercise and Cardiac Output
Sustained exercise increases the muscles' oxygen demand, which can be...
Regulation of Heart Rates
The SNS increases heart rate through the release of norepinephrine and epinephrine, which act on beta-1 adrenergic receptors in the heart. This action increases the rate of depolarization in the sinoatrial (SA) node, the heart's...
Cardiac Output I:Effect of Heart Rate on Cardiac Output
Cardiac output (CO) refers to the total amount of blood ejected by one of the ventricles in liters per minute (L/min). In a resting adult, CO ranges from 5 to 6 L/min, adjusting according to the body's metabolic requirements.
Effect of Heart Rate on Cardiac Output
Cardiac output adapts to metabolic demands during stress, physical activity, or illness. The autonomic nervous system regulates heart rate via the sinoatrial node. The parasympathetic nervous system decreases heart...
Correlation between ECG and Cardiac Cycle
A cardiac action potential originates in the SA node and spreads throughout the atria and the AV node in approximately 0.03 seconds. This results in the P wave in an ECG and triggers atrial contraction. The action potential is then briefly slowed at the AV node, allowing the atria to contract and fill the ventricles with blood before...


