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
. 2024 Mar 15;24(6):1900.
doi: 10.3390/s24061900.

Comparison of Machine Learning Algorithms for Heartbeat Detection Based on Accelerometric Signals Produced by a Smart Bed

Affiliations

Comparison of Machine Learning Algorithms for Heartbeat Detection Based on Accelerometric Signals Produced by a Smart Bed

Minh Long Hoang et al. Sensors (Basel). .

Abstract

This work aims to compare the performance of Machine Learning (ML) and Deep Learning (DL) algorithms in detecting users' heartbeats on a smart bed. Targeting non-intrusive, continuous heart monitoring during sleep time, the smart bed is equipped with a 3D solid-state accelerometer. Acceleration signals are processed through an STM 32-bit microcontroller board and transmitted to a PC for recording. A photoplethysmographic sensor is simultaneously checked for ground truth reference. A dataset has been built, by acquiring measures in a real-world set-up: 10 participants were involved, resulting in 120 min of acceleration traces which were utilized to train and evaluate various Artificial Intelligence (AI) algorithms. The experimental analysis utilizes K-fold cross-validation to ensure robust model testing across different subsets of the dataset. Various ML and DL algorithms are compared, each being trained and tested using the collected data. The Random Forest algorithm exhibited the highest accuracy among all compared models. While it requires longer training time compared to some ML models such as Naïve Bayes, Linear Discrimination Analysis, and K-Nearest Neighbour Classification, it keeps substantially faster than Support Vector Machine and Deep Learning models. The Random Forest model demonstrated robust performance metrics, including recall, precision, F1-scores, macro average, weighted average, and overall accuracy well above 90%. The study highlights the better performance of the Random Forest algorithm for the specific use case, achieving superior accuracy and performance metrics in detecting user heartbeats in comparison to other ML and DL models tested. The drawback of longer training times is not too relevant in the long-term monitoring target scenario, so the Random Forest model stands out as a viable solution for real-time ballistocardiographic heartbeat detection, showcasing potential for healthcare and wellness monitoring applications.

Keywords: accelerometer sensor; artificial intelligence algorithm; deep learning; heartbeat detection; machine learning; smart bed.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest.

Figures

Figure 1
Figure 1
Data acquisition diagram.
Figure 2
Figure 2
Encapsulated accelerometer under the bed frame and its orientation.
Figure 3
Figure 3
STM32 Microcontroller platform for sensor pulse and accelerometer.
Figure 4
Figure 4
Smart bed under testing.
Figure 5
Figure 5
Pulse signal and original X-axis acceleration data on right side position.
Figure 6
Figure 6
Logistic regression illustration in binary classification.
Figure 7
Figure 7
LDA illustration.
Figure 8
Figure 8
KNN illustration.
Figure 9
Figure 9
CART illustration.
Figure 10
Figure 10
Naive Bayes illustration.
Figure 11
Figure 11
SVM illustration.
Figure 12
Figure 12
Random Forest illustration.
Figure 13
Figure 13
DNN architecture.
Figure 14
Figure 14
K-fold cross-validation for model evaluations.

Similar articles

Cited by

References

    1. Dare—Digital Lifelong Prevention. [(accessed on 12 February 2024)]. Available online: https://www.fondazionedare.it/
    1. Il Digitale Strumento Di Prevenzione Sanitaria: Il Progetto Dare. [(accessed on 11 November 2023)]. Available online: https://www.agendadigitale.eu/sanita/il-digitale-strumento-di-prevenzion...
    1. Speranza M., López-López J.D., Schwartzmann P., Morr I., Rodríguez-González M.J., Buitrago A., Pow-Chon-Long F., Passos L.C., Rossel V., Perna E.R., et al. Cardiovascular Complications in Patients with Heart Failure and COVID-19: Cardio COVID 19–20 Registry. J. Cardiovasc. Dev. Dis. 2024;11:34. doi: 10.3390/jcdd11020034. - DOI - PMC - PubMed
    1. Mo M., Thiesmeier R., Kiwango G., Rausch C., Möller J., Liang Y. The Association between Birthweight and Use of Car-diovascular Medications: The Role of Health Behaviors. J. Cardiovasc. Dev. Dis. 2023;10:426. doi: 10.3390/jcdd10100426. - DOI - PMC - PubMed
    1. Gray R., Indraratna P., Lovell N., Ooi S.Y. Digital Health Technology in the Prevention of Heart Failure and Coronary Artery Disease. Cardiovasc. Digit. Health J. 2022;3:S9–S16. doi: 10.1016/j.cvdhj.2022.09.002. - DOI - PMC - PubMed

LinkOut - more resources