Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 Dec 22;22(1):34.
doi: 10.3390/s22010034.

Heart Rate Modeling and Prediction Using Autoregressive Models and Deep Learning

Affiliations

Heart Rate Modeling and Prediction Using Autoregressive Models and Deep Learning

Alessio Staffini et al. Sensors (Basel). .

Abstract

Physiological time series are affected by many factors, making them highly nonlinear and nonstationary. As a consequence, heart rate time series are often considered difficult to predict and handle. However, heart rate behavior can indicate underlying cardiovascular and respiratory diseases as well as mood disorders. Given the importance of accurate modeling and reliable predictions of heart rate fluctuations for the prevention and control of certain diseases, it is paramount to identify models with the best performance in such tasks. The objectives of this study were to compare the results of three different forecasting models (Autoregressive Model, Long Short-Term Memory Network, and Convolutional Long Short-Term Memory Network) trained and tested on heart rate beats per minute data obtained from twelve heterogeneous participants and to identify the architecture with the best performance in terms of modeling and forecasting heart rate behavior. Heart rate beats per minute data were collected using a wearable device over a period of 10 days from twelve different participants who were heterogeneous in age, sex, medical history, and lifestyle behaviors. The goodness of the results produced by the models was measured using both the mean absolute error and the root mean square error as error metrics. Despite the three models showing similar performance, the Autoregressive Model gave the best results in all settings examined. For example, considering one of the participants, the Autoregressive Model gave a mean absolute error of 2.069 (compared to 2.173 of the Long Short-Term Memory Network and 2.138 of the Convolutional Long Short-Term Memory Network), achieving an improvement of 5.027% and 3.335%, respectively. Similar results can be observed for the other participants. The findings of the study suggest that regardless of an individual's age, sex, and lifestyle behaviors, their heart rate largely depends on the pattern observed in the previous few minutes, suggesting that heart rate can be reasonably regarded as an autoregressive process. The findings also suggest that minute-by-minute heart rate prediction can be accurately performed using a linear model, at least in individuals without pathologies that cause heartbeat irregularities. The findings also suggest many possible applications for the Autoregressive Model, in principle in any context where minute-by-minute heart rate prediction is required (arrhythmia detection and analysis of the response to training, among others).

Keywords: autoregressive model; deep learning; forecasting; heart rate; modeling; prediction; time series analysis.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest.

Figures

Figure 1
Figure 1
Forecast results for Participant 1. (Top) Results obtained from the AR(3) model. (Center) Results obtained from the Stacked LSTM architecture. (Bottom) Results obtained from the ConvLSTM architecture. AR(3): Autoregressive Model of order 3; LSTM: Long Short-Term Memory Network; ConvLSTM: Convolutional Long Short-Term Memory Network.
Figure 2
Figure 2
Autocorrelation function (ACF; top) and partial autocorrelation function (PACF; bottom) plots for Participant 1.

References

    1. Perret-Guillaume C., Joly L., Benetos A. Heart rate as a risk factor for cardiovascular diseases. Prog. Cardiovasc. Dis. 2010;52:6–10. doi: 10.1016/j.pcad.2009.05.003. - DOI - PubMed
    1. Dimietriev D.A., Saperova E.V., Dimietriev A.D. State Anxiety and Nonlinear Dynamics of Heart Rate Variability in Students. PLoS ONE. 2016;11:e0146131. doi: 10.1371/journal.pone.0146131. - DOI - PMC - PubMed
    1. Nahshoni E., Aravot D., Aizenberg D., Sigler M., Zalsman G., Strasberg B., Imbar S., Adler E., Weizman A. Heart rate variability in patients with major depression. Psychosomatics. 2004;45:129–134. doi: 10.1176/appi.psy.45.2.129. - DOI - PubMed
    1. Lutfi M.F. Patterns of heart rate variability and cardiac autonomic modulations in controlled and uncontrolled asthmatic patients. BMC Pulm. Med. 2015;15:119. doi: 10.1186/s12890-015-0118-8. - DOI - PMC - PubMed
    1. Yun S., Son C.S., Lee S.H., Kang W.S. Forecasting of heart rate variability using wrist-worn heart rate monitor based on hidden Markov model; Proceedings of the 2018 International Conference on Electronics, Information and Communication (ICEIC); Honolulu, HI, USA. 24–27 January 2018; - DOI