Skip to main content

ORIGINAL RESEARCH article

Front. Physiol., 30 September 2021
Sec. Computational Physiology and Medicine

Estimation of Heart Rate Using Regression Models and Artificial Neural Network in Middle-Aged Adults

Kuan Tao&#x;Kuan Tao1Jiahao Li&#x;Jiahao Li2Jiajin LiJiajin Li2Wei ShanWei Shan3Huiping YanHuiping Yan2Yifan Lu,
Yifan Lu2,4*
  • 1School of Sports Engineering, Beijing Sport University, Beijing, China
  • 2School of Sport Medicine and Physical Therapy, Beijing Sport University, Beijing, China
  • 3China Institute of Sport and Health Science, Beijing Sport University, Beijing, China
  • 4Key Laboratory of Sports and Physical Fitness of the Ministry of Education, Beijing Sport University, Beijing, China

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 (Fox et al., 2007). Biological systems exhibit metrics described by heart rate to measure complex physical and psychological challenges (Shaffer and Ginsberg, 2017). Heart rate variability is the fluctuation in the time intervals between adjacent heartbeats, which underlies human attention and emotional states (McCraty and Shaffer, 2015). Maximal heart rate serves as a surrogate marker of peak performance in the exercise test (Gelbart et al., 2017), while the target heart rate, defined as 55–90% of the maximal heart rate (Swain et al., 1994), is reported to represent the prescribed exercise intensities by the American College of Sports Medicine (ACSM; da Silva et al., 2020). 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 Fox et al. (1971) and Tanaka et al. (2001). Although these equations have been extensively examined in specific categories, such as healthy and sedentary adults (Nes et al., 2013; Sarzynski et al., 2013), their practical applications remain to be discussed, as previous studies found that both formulas overestimated the maximal heart rate for female recreational marathon runners (Nikolaidis et al., 2018) and Brazilian jiu-jitsu athletes (Branco et al., 2020). 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 (McArtor et al., 2017). 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 (Bashar et al., 2019). Next, a support vector machine (SVM) with a radial basis function (RBF) kernel is proposed for remote video-based heart rate estimation (Osman et al., 2015). 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 (Zheng et al., 2017; Norouzian et al., 2021; Wei and Yang, 2021).

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
www.frontiersin.org

Table 1. Subject Information.

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
www.frontiersin.org

Figure 1. The correlation analysis between the maximal heart rate and other indicators. The scales in x-axis and y-axis are symmetric and indicate the values corresponding to indicators which align diagonally (units are dependent on indicators). The lower triangular areas display the distributions of indicator values by the scatter plots and fitted curves (solid red line), while the upper triangular areas show correlation coefficients between indicators, with asterisks representing the strengths of correlated relation.

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:

HRmax=201.770.88×Age    (1)
TABLE 2
www.frontiersin.org

Table 2. Regression models to predict HRmax.

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

HRmax=150.46+0.43×RHR0.96×Age+0.20×SOHR    (2)

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
www.frontiersin.org

Table 3. Artificial neural network (ANN) to predict HRmax.

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 (Tanaka et al., 2001). 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 (Lins et al., 2017; Cognigni et al., 2018; Yang and He, 2018). 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 (Guo et al., 2020) and the investigation of exercise-mediated diseases (Tao et al., 2021), 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 Tanaka et al. (2001) 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 Nes et al. (2013). 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.

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.

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).

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.

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.

References

Bashar, S. S., Miah, M. S., Karim, A. Z., Al Mahmud, M. A., and Hasan, Z. (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.

Google Scholar

Branco, B. H. M., de Oliveira Mendes, F., Ladeia, G. F., Bertolini, S. M. M. G., Badilla, P. V., and Andreato, L. V. (2020). Maximum heart rate predicted by formulas versus values obtained in graded exercise tests in Brazilian jiu-jitsu athletes. Sport Sci. Health 16, 39–45. doi: 10.1007/s11332-019-00570-0

CrossRef Full Text | Google Scholar

Cognigni, P., Felsenberg, J., and Waddell, S. (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

PubMed Abstract | CrossRef Full Text | Google Scholar

da Silva, D. F., Mohammad, S., Hutchinson, K. A., and Adamo, K. 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.

PubMed Abstract | Google Scholar

Fox, K., Borer, J. S., Camm, A. J., Danchin, N., Ferrari, R., Lopez Sendon, J. 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

PubMed Abstract | CrossRef Full Text | Google Scholar

Fox, S. M. 3rd., Naughton, J. P., and Haskell, W. L. (1971). Physical activity and the prevention of coronary heart disease. Ann. Clin. Res. 3, 404–432.

PubMed Abstract | Google Scholar

Gelbart, M., Ziv-Baran, T., Williams, C. A., Yarom, Y., and Dubnov-Raz, G. (2017). Prediction of maximal heart rate in children and adolescents. Clin. J. Sport Med. 27, 139–144. doi: 10.1097/JSM.0000000000000315

PubMed Abstract | CrossRef Full Text | Google Scholar

Guo, T., Tao, K., Hu, Q., and Shen, Y. (2020). Detection of ice hockey players and teams via a two-phase cascaded CNN model. IEEE Access 8, 195062–195073. doi: 10.1109/ACCESS.2020.3033580

CrossRef Full Text | Google Scholar

Lins, A. J. C. C., Muniz, M. T. C., Garcia, A. N. M., Gomes, A. V., Cabral, R. M., and Bastos-Filho, C. 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

PubMed Abstract | CrossRef Full Text | Google Scholar

McArtor, D. B., Lin, B. D., Hottenga, J. J., Boomsma, D. I., Willemsen, G., and Lubke, G. H. (2017). Using a multivariate model to assess the interactive effects of demographics and lifestyle on the hematological profile. Biomark. Med 11, 427–438. doi: 10.2217/bmm-2016-0285

PubMed Abstract | CrossRef Full Text | Google Scholar

McCraty, R., and Shaffer, F. (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

PubMed Abstract | CrossRef Full Text | Google Scholar

Nes, B. M., Janszky, I., Wisløff, U., Støylen, A., and Karlsen, T. (2013). Age-predicted maximal heart rate in healthy subjects: the HUNT fitness study. Scand. J. Med. Sci. Sports 23, 697–704. doi: 10.1111/j.1600-0838.2012.01445.x

PubMed Abstract | CrossRef Full Text | Google Scholar

Nikolaidis, P. T., Rosemann, T., and Knechtle, B. (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

PubMed Abstract | CrossRef Full Text | Google Scholar

Norouzian, M. A., Bayatani, H., and Vakili Alavijeh, M. V. (2021). Comparison of artificial neural networks and multiple linear regression for prediction of dairy cow locomotion score. Vet. Res. Forum 12, 33–37. doi: 10.30466/vrf.2019.98275.2346

PubMed Abstract | CrossRef Full Text | Google Scholar

Osman, A., Turcot, J., and El Kaliouby, R. (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.

Google Scholar

Sarzynski, M. A., Rankinen, T., Earnest, C. P., Leon, A. S., Rao, D. C., Skinner, J. 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

PubMed Abstract | CrossRef Full Text | Google Scholar

Shaffer, F., and Ginsberg, J. P. (2017). An overview of heart rate variability metrics and norms. Front. Public Health 5:258. doi: 10.3389/fpubh.2017.00258

PubMed Abstract | CrossRef Full Text | Google Scholar

Swain, D. P., Abernathy, K. S., Smith, C. S., Lee, S. J., and Bunn, S. A. (1994). Target heart rates for the development of cardiorespiratory fitness. Med. Sci. Sports Exerc. 26, 112–116.

PubMed Abstract | Google Scholar

Tanaka, H., Monahan, K. D., and Seals, D. R. (2001). Age-predicted maximal heart rate revisited. J. Am. Coll. Cardiol. 37, 153–156. doi: 10.1016/s0735-1097(00)01054-8

PubMed Abstract | CrossRef Full Text | Google Scholar

Tao, K., Duan, Y., Wang, H., Zeng, D., Fang, Z., Yan, H., et al. (2021). De novo explorations of sarcopenia via a dynamic model. Front. Physiol. 12:670381. doi: 10.3389/fphys.2021.670381

PubMed Abstract | CrossRef Full Text | Google Scholar

Wei, W., and Yang, X. (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

PubMed Abstract | CrossRef Full Text | Google Scholar

Yang, X., and He, H. (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

PubMed Abstract | CrossRef Full Text | Google Scholar

Zheng, T., Xie, W., Xu, L., He, X., Zhang, Y., You, M., 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

PubMed Abstract | CrossRef Full Text | Google Scholar

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.

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

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

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.