Abstract
Purpose: Heart rate is the most commonly used indicator in clinical medicine to assess the functionality of the cardiovascular system. Most studies have focused on age-based equations to estimate the maximal heart rate, neglecting multiple factors that affect the accuracy of the prediction.
Methods: We studied 121 middle-aged adults at an average age of 57.2years with an average body mass index (BMI) of 25.9. The participants performed on a power bike with a starting wattage of 0W that was increased by 25W every 3min until the experiment terminated. Ambulatory blood pressure and electrocardiography were monitored through gas metabolic analyzers for safety concerns. Six descriptive characteristics of participants were observed, which were further analyzed using a multivariate regression model and an artificial neural network (ANN).
Results: The input variables for the multivariate regression model and ANN were selected by correlation for the reduction of dimension. The accuracy of estimation by multivariate regression model and ANN was 9.74 and 9.42%, respectively, which outperformed the traditional age-based model (with an accuracy of 10.31%).
Conclusion: This study provides comprehensive approaches to estimate the maximal heart rate using multiple indicators, revealing that both the multivariate regression model and ANN incorporated with age, resting heart rate (RHR), and second-order heart rate (SOHR) are more accurate than univariate models.
Introduction
Heart rate is the most commonly used indicator in clinical medicine to assess the functionality of the cardiovascular system (). Biological systems exhibit metrics described by heart rate to measure complex physical and psychological challenges (). Heart rate variability is the fluctuation in the time intervals between adjacent heartbeats, which underlies human attention and emotional states (). Maximal heart rate serves as a surrogate marker of peak performance in the exercise test (), while the target heart rate, defined as 55ā90% of the maximal heart rate (), is reported to represent the prescribed exercise intensities by the American College of Sports Medicine (ACSM; ). Heart rate estimation of middle-aged groups is especially important as they are at risk for cardiovascular and other chronic diseases.
In the most common predictive model, univariate linear regression is generally applied to estimate the maximal heart rate using traditional age-based equations proposed by and . Although these equations have been extensively examined in specific categories, such as healthy and sedentary adults (; ), their practical applications remain to be discussed, as previous studies found that both formulas overestimated the maximal heart rate for female recreational marathon runners () and Brazilian jiu-jitsu athletes (). Multivariate statistical models are also constructive when the target variable is dependent on input variables. For example, hemoglobin is shown to be associated with age, gender, body mass index (BMI), and potential interactions between these covariates. Hence, the multivariate approach detects these interrelated hematological indices and provides more informative results than univariate linear regression (). Advances in heart rate estimation utilize robust machine-learning techniques. For instance, K-means clustering is used to separate noisy and non-noisy data collected from bio-monitoring devices, and then a random forest model is applied to predict heart rate (). Next, a support vector machine (SVM) with a radial basis function (RBF) kernel is proposed for remote video-based heart rate estimation (). In addition, a sophisticated artificial neural network (ANN) algorithm, which is based on the gradient descent of the loss function, provides a nonlinear relation between the target variable and multiple input variables by minimizing the deficit between the true value and the estimated value of the heart rate (; ; ).
Despite numerous studies on the estimation of heart rate via multiple factors, to the best of our knowledge, no study has incorporated first-and second-order heart rates (SOHRs), even though these low-level load heart rates are critical to measure the maximal exercise capacity of participants. This study aims to establish a comprehensive multivariate model of the selected variables, and an ANN model to predict the heart rate considering six factors (age, BMI, resting heart rate (RHR), and first-and SOHR) for middle-aged groups.
Materials and Methods
Participants
A total of 121 middle-aged adults (age ranging from 41 to 71years) in Beijing, with an average age of 57.2years and an average BMI of 25.9 were enrolled. Participants with a history of heart disease, asthma, peripheral vascular disease, cerebrovascular disease, diabetes mellitus, kidney disease, or recent lower extremity injury were excluded from the study. All recruited subjects visited the laboratory for screening and signed an informed consent form 1week prior to the beginning of the study. All participants were instructed to avoid performing heavy and prolonged exercise and to rest on the day before and the day of the test. The test started 0.5h after the participants ate. Alcoholic drinks were prohibited on the day of the test, and coffee and tea consumption was ceased at least 1h before the test. This research was approved by the ethics committee from Beijing Sport University and complied with the Declaration of Helsinki. All participants have provided informed consent at the time of enrollment.
Graded Exercise Test
Participants exercised on a power bike until symptoms were limited and the heart rate at the cease moment, which we defined as the āmaximum heart rateā (HRmax). As per the absolute indications for terminating a symptom-limited maximal exercise test recommended by ACSM, the term of the subjectās request to stop was adopted during the experiment. The starting wattage of each test was 0W. After test initiation, the wattage was increased by 25W every 3min until the subject failed to maintain it. The experiment was terminated based on the ACSM criteria: (1) heart rate 85% or more of the expected maximum heart rate, (2) respiratory quotient greater than 1.10, (3) oxygen uptake plateaued or decreased with increasing exercise intensity, and (4) exertion of maximum force and inability of the participant to maintain the prescribed load. Testing was terminated if at least three of the aforementioned criteria were simultaneously reached. The participants wore gas metabolic analyzers and were monitored for ambulatory blood pressure and ambulatory electrocardiography during the experiment. In addition, the reactions and symptoms of each subject were observed and recorded during exercise to ensure safety.
Table 1 displays the descriptive characteristics of participants, including three indices (age, BMI, and RHR) reflecting basic information before exercise, and values on two indices (first-and second-order heart rate) mirroring whether participants had exercise habits. The maximum heart rate, defined under the settings of our experiments, was also collected. Information on male and female participants was listed separately; however, no significant differences were noted between the maximum heart rates of men and women (p>0.05).
Table 1
| Indicators | Total (N=121) | Male (N=62) | Female (N=58) |
|---|---|---|---|
| Age (years) | 57.2±6.4 | 57.4±7.0 | 57.0±5.8 |
| BMI (kg.m-2) | 25.9±2.7 | 26.0±2.7 | 25.8±2.7 |
| RHR (bpm) | 77.5±11.5 | 77.7±12.1 | 77.3±11.0 |
| FOHR (bpm) | 96.9±12.1 | 93.5±12.2 | 100.6±10.9 |
| SOHR (bpm) | 113.0±15.6 | 105.2±13.4 | 121.0±13.5 |
| HRmax (bpm) | 151.4±19.6 | 151.4±19.7 | 151.4±19.7 |
Subject Information.
RHR, resting heart rate; BMI, body mass index; FOHR, first-order heart rate; and SOHR, second-order heart rate.
Univariate and Multivariate Model
The collected data were processed using R (version 3.6) and Python (version 3.7). Independent sample t-tests for maximum heart rate between men and women were performed in R language, along with the correlation between RHR, first-order heart rate (FOHR), SOHR, BMI, age, gender, and maximum heart rate using the PerformanceAnalytics package. The relationship between age and maximum heart rate was calculated in this experiment using univariate linear regression, whereas a multivariate regression model was constructed using the MASS package to filter variables. The variables are selected from a set containing six labels and are introduced into the model one by one to ensure that the addition of each variable results in a higher accuracy of heart rate estimation. Hence, an optimal linear model is obtained.
Artificial Neural Network Model
The data were randomly divided into two subsets. The first subset was the training set (N=96) with the K-fold cross-validation method (K=5), and the second subset was the testing set (N=24), which was used to evaluate the robustness of the proposed model. In this study, the input layer was filled with data labeling with age, gender, BMI, RHR, FOHR, and SOHR, while the output layer indicated the predicted heart rate. To enhance the accuracy of the estimation, the total network comprised four layers, including two hidden layers with 128 neurons per layer, which were fully connected to the input and output layers. We defined the loss function as the bias between the predicted and true values under the mean square error (MSE). In addition, the hyperparameter learning rate and epoch were set as 0.023 and 5,000, respectively, and the activation function was chosen as ReLu. A backpropagation algorithm equipped with a stochastic gradient descent method was adopted to minimize the loss and efficiently update 18,069 parameters of the ANN.
Results
HRmax was highly correlated with RHR and FOHR, but was least relevant with BMI (Figure 1). We also calculated the frequency distribution histograms of the RHR, first- and second-order heart rate, BMI, and age, respectively, which were aligned diagonally on the sub-panels in Figure 1. The scatter plots and fitted curves among the six indicators are shown in Figure 1.
Figure 1
Table 2 summarizes the bias between the estimated and observed values of the maximum heart rate obtained by the regression model and the ANN. First, a univariate linear regression was established as:
Table 2
| Input variable | Accuracy | MSE |
|---|---|---|
| Age | 10.31% | 7.18 |
| Age+SOHR+RHR | 9.74% | 5.71 |
Regression models to predict HRmax.
RHR, resting heart rate; FOHR, first-order heart rate; and SOHR, second-order heart rate.
where the goodness-of-fit R2 =0.083 and mean square error MSE=7.18. Meanwhile, a multivariate regression model, which incorporated the RHR, age, and SOHR, was rigorously presented as
with a goodness-of-fit R2 =0.214 and mean square error MSE=5.71. Compared with the univariate regression model, predictions from the multivariate model were more precise because accuracy (defined as the ratio between the bias of observed and estimated values over the observed HRmax) was 10.31 and 9.74%, respectively. The proposed regression model confirmed that the SOHR contributed to the maximum heart rate prediction. Nonetheless, multivariate regression was still unable to completely recapitulate the maximum heart rate from the three indicators because the goodness-of-fit was extremely low, which indicated that estimation of maximum heart rate was nonlinearly dependent on measurements.
Discussion
In our study, an ANN approach was developed to explore nonlinearity. Four combinations were examined as input layer factors, representing the basic indicators of different individuals. Table 3 shows that the best accuracy reached 9.42%, which was significantly better than the regression models, and the MSE for the four combinations was significantly lower than those obtained from the univariate or multivariate models. Interestingly, instead of all indicators, the combination of age, RHR, and SOHR was the optimal variables during the process of ANN. It was heuristic that variable selection based on correlation analysis was critical to estimate heart rate via the neural network method.
Table 3
| Input variable | Accuracy | MSE |
|---|---|---|
| Age | 9.85% | 3.57 |
| Age+FOHR+SOHR+RHR+BMI | 9.57% | 3.37 |
| Age+RHR+BMI | 9.56% | 3.35 |
| Age+SOHR+RHR | 9.42% | 3.23 |
Artificial neural network (ANN) to predict HRmax.
RHR, resting heart rate; FOHR, first-order heart rate; and SOHR, second-order heart rate.
Both regression models and ANN methods were proposed to estimate the heart rate in this study. One similarity between them was using age as an independent variable, which is in line with research showing that age accounts for 35ā80% of heart rate variation (). In addition, both models confirm that the selected indicators (RHR, age, and SOHR) performed significantly better than single variables (Tables 2 and 3). The prediction accuracy of the neural network method was higher than that of regression models (Table 2) because of the self-learning and adaptive ability of the network property (; ; ). The model parameters were updated during the minimization of the loss function through the forward propagation and back propagation phases. ANNs and other computational models are popular for predicting values in other sports science fields, such as player detection () and the investigation of exercise-mediated diseases (), owing to their outstanding abilities for generalization and efficiency in investigating nonlinear latent relations between variables. During model establishment, four sets of variable combinations were verified based on the stepwise variable selection criteria (Figure 1). Our experiments also confirmed that there was no significant difference in the maximum heart rate between men and women (Table 1), which supports the conclusion of that no direct linkage between gender and the maximum heart rate was validated via meta-analysis after 351 studies (18, 712 participants included) were summarized. Meanwhile, BMI was less correlated with heart rate (Figure 1) in our experiments, which is consistent with the conclusions of . However, since the sample size was relatively small in this study, it is not known whether BMI and gender are effective indicators to be included in the estimation model. Hence, this must be validated in future work.
Funding
This study was supported by grants from the National Key Research and Development Program of the Ministry of Science and Technology, China (2020YFC2002900, 2018YFC2000603), and the Natural Science Foundation of Beijing (grant number 1214023).
Publisherās Note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Statements
Data availability statement
The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author.
Ethics statement
The studies involving human participants were reviewed and approved by the Ethics committee from Beijing Sport University. Written informed consent for participation was not required for this study in accordance with the national legislation and the institutional requirements.
Author contributions
KT, JhL, and WS designed the study. YL supervised the study. KT, JjL, WS, and HY performed the experiments. KT and JhL wrote the manuscript. All authors contributed to the article and approved the submitted version.
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
References
1
BasharS. S.MiahM. S.KarimA. Z.Al MahmudM. A.HasanZ. (eds.) (2019). āA machine learning approach for heart rate estimation from PPG signal using random forest regression algorithm.ā in International Conference on Electrical, Computer and Communication Engineering (ECCE); February 07, 2019; IEEE.
2
BrancoB. H. M.de Oliveira MendesF.LadeiaG. F.BertoliniS. M. M. G.BadillaP. V.AndreatoL. V. (2020). Maximum heart rate predicted by formulas versus values obtained in graded exercise tests in Brazilian jiu-jitsu athletes. Sport Sci. Health16, 39ā45. doi: 10.1007/s11332-019-00570-0
3
CognigniP.FelsenbergJ.WaddellS. (2018). Do the right thing: neural network mechanisms of memory formation, expression and update in drosophila. Curr. Opin. Neurobiol.49, 51ā58. doi: 10.1016/j.conb.2017.12.002
4
da SilvaD. F.MohammadS.HutchinsonK. A.AdamoK. B. (2020). Cross-validation of ratings of perceived exertion derived from heart rate target ranges recommended for pregnant women. Int. J. Exerc. Sci.13, 1340ā1351. PMID:
5
FoxK.BorerJ. S.CammA. J.DanchinN.FerrariR.Lopez SendonJ. L.et al. (2007). Resting heart rate in cardiovascular disease. J. Am. Coll. Cardiol.50, 823ā830. doi: 10.1016/j.jacc.2007.04.079
6
FoxS. M.3rd.NaughtonJ. P.HaskellW. L. (1971). Physical activity and the prevention of coronary heart disease. Ann. Clin. Res.3, 404ā432. PMID:
7
GelbartM.Ziv-BaranT.WilliamsC. A.YaromY.Dubnov-RazG. (2017). Prediction of maximal heart rate in children and adolescents. Clin. J. Sport Med.27, 139ā144. doi: 10.1097/JSM.0000000000000315
8
GuoT.TaoK.HuQ.ShenY. (2020). Detection of ice hockey players and teams via a two-phase cascaded CNN model. IEEE Access8, 195062ā195073. doi: 10.1109/ACCESS.2020.3033580
9
LinsA. J. C. C.MunizM. T. C.GarciaA. N. M.GomesA. V.CabralR. M.Bastos-FilhoC. J. A. (2017). Using artificial neural networks to select the parameters for the prognostic of mild cognitive impairment and dementia in elderly individuals. Comput. Methods Prog. Biomed.152, 93ā104. doi: 10.1016/j.cmpb.2017.09.013
10
McArtorD. B.LinB. D.HottengaJ. J.BoomsmaD. I.WillemsenG.LubkeG. H. (2017). Using a multivariate model to assess the interactive effects of demographics and lifestyle on the hematological profile. Biomark. Med11, 427ā438. doi: 10.2217/bmm-2016-0285
11
McCratyR.ShafferF. (2015). Heart rate variability: new perspectives on physiological mechanisms, assessment of self-regulatory capacity, and health risk. Glob. Adv. Health Med.4, 46ā61. doi: 10.7453/gahmj.2014.073
12
NesB. M.JanszkyI.WislĆøffU.StĆøylenA.KarlsenT. (2013). Age-predicted maximal heart rate in healthy subjects: the HUNT fitness study. Scand. J. Med. Sci. Sports23, 697ā704. doi: 10.1111/j.1600-0838.2012.01445.x
13
NikolaidisP. T.RosemannT.KnechtleB. (2018). Age-predicted maximal heart rate in recreational marathon runners: a cross-sectional study on foxās and tanakaās equations. Front. Physiol.9:226. doi: 10.3389/fphys.2018.00226
14
NorouzianM. A.BayataniH.Vakili AlavijehM. V. (2021). Comparison of artificial neural networks and multiple linear regression for prediction of dairy cow locomotion score. Vet. Res. Forum12, 33ā37. doi: 10.30466/vrf.2019.98275.2346
15
OsmanA.TurcotJ.El KalioubyR. (eds.) (2015). āSupervised learning approach to remote heart rate estimation from facial videos.ā in 11th IEEE International Conference and Workshops on Automatic Face and Gesture Recognition (FG); May 04, 2015; IEEE.
16
SarzynskiM. A.RankinenT.EarnestC. P.LeonA. S.RaoD. C.SkinnerJ. S.et al. (2013). Measured maximal heart rates compared to commonly used age-based prediction equations in the heritage family study. Am. J. Hum. Biol.25, 695ā701. doi: 10.1002/ajhb.22431
17
ShafferF.GinsbergJ. P. (2017). An overview of heart rate variability metrics and norms. Front. Public Health5:258. doi: 10.3389/fpubh.2017.00258
18
SwainD. P.AbernathyK. S.SmithC. S.LeeS. J.BunnS. A. (1994). Target heart rates for the development of cardiorespiratory fitness. Med. Sci. Sports Exerc.26, 112ā116. PMID:
19
TanakaH.MonahanK. D.SealsD. R. (2001). Age-predicted maximal heart rate revisited. J. Am. Coll. Cardiol.37, 153ā156. doi: 10.1016/s0735-1097(00)01054-8
20
TaoK.DuanY.WangH.ZengD.FangZ.YanH.et al. (2021). De novo explorations of sarcopenia via a dynamic model. Front. Physiol.12:670381. doi: 10.3389/fphys.2021.670381
21
WeiW.YangX. (2021). Comparison of diagnosis accuracy between a backpropagation artificial neural network model and linear regression in digestive disease patients: an empirical research. Comput. Math. Methods Med.2021:6662779. doi: 10.1155/2021/6662779
22
YangX.HeH. (2018). Self-learning robust optimal control for continuous-time nonlinear systems with mismatched disturbances. Neural Netw.99, 19ā30. doi: 10.1016/j.neunet.2017.11.022
23
ZhengT.XieW.XuL.HeX.ZhangY.YouM.et al. (2017). A machine learning-based framework to identify type 2 diabetes through electronic health records. Int. J. Med. Inform.97, 120ā127. doi: 10.1016/j.ijmedinf.2016.09.014
Summary
Keywords
regression model, correlation analysis, maximal heart rate, artificial neural network, heart rate estimation
Citation
Tao K, Li J, Li J, Shan W, Yan H and Lu Y (2021) Estimation of Heart Rate Using Regression Models and Artificial Neural Network in Middle-Aged Adults. Front. Physiol. 12:742754. doi: 10.3389/fphys.2021.742754
Received
16 July 2021
Accepted
07 September 2021
Published
30 September 2021
Volume
12 - 2021
Edited by
Dalin Tang, Worcester Polytechnic Institute, United States
Reviewed by
Kairong Qin, Dalian University of Technology, China; Telmo Pereira, Instituto PolitƩcnico de Coimbra, Portugal
Updates
Copyright
Ā© 2021 Tao, Li, Li, Shan, Yan and Lu.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Yifan Lu, luyifan@bsu.edu.cn
ā These authors have contributed equally to this work
This article was submitted to Computational Physiology and Medicine, a section of the journal Frontiers in Physiology
Disclaimer
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.