Real-Time PPG-Based HRV Implementation Using Deep Learning and Simulink

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Citation (Scopus)


The Heart Rate Variability (HRV) signal computation relies on fiducial points typically obtained from the electrocardiogram (ECG) or the photoplethysmogram (PPG). Generally, these fiducial points correspond to the peaks of the ECG or PPG. Consequently, the HRV quality depends on the fiducial points detection accuracy. In a previous work, this subject has been addressed using Long Short-Term Memory (LSTM) Deep Learning algorithms for PPG segmentation, from which peak detection can be achieved. In the herein presented work, a Simulink® implementation of the LSTM algorithm is obtained for real-time PPG peak detection. HRV and outlier removal blocks are also implemented. The obtained code can be used to be embedded in hardware systems for real-time PPG acquisition and HRV visualization. A Root Mean Square Error (RMSE) mean of 0.0439 ± 0.0175 s was obtained, and no significant differences (p-value < 0.05) were found between the ground truth and the real-time implementation.

Original languageEnglish
Title of host publicationTechnological Innovation for Digitalization and Virtualization
Subtitle of host publication13th IFIP WG 5.5/SOCOLNET Doctoral Conference on Computing, Electrical and Industrial Systems, DoCEIS 2022, Caparica, Portugal, June 29 – July 1, 2022, Proceedings
EditorsLuís M. Camarinha-Matos
Place of PublicationCham
Number of pages9
ISBN (Electronic)978-3-031-07520-9
ISBN (Print)978-3-031-07519-3
Publication statusPublished - Jun 2022
Event13th Advanced Doctoral Conference on Computing, Electrical, and Industrial Systems, DoCEIS 2022 - Caparica, Portugal
Duration: 29 Jun 20221 Jul 2022

Publication series

NameIFIP Advances in Information and Communication Technology
ISSN (Print)1868-4238
ISSN (Electronic)1868-422X


Conference13th Advanced Doctoral Conference on Computing, Electrical, and Industrial Systems, DoCEIS 2022


  • HRV
  • PPG
  • Real-Time
  • Simulink


Dive into the research topics of 'Real-Time PPG-Based HRV Implementation Using Deep Learning and Simulink'. Together they form a unique fingerprint.

Cite this