# Real-Time Heartbeat Classification on Distributed Edge Devices: A Performance and Resource Utilization Study

**Authors:** Eko Sakti Pramukantoro, Kasyful Amron, Putri Annisa Kamila, Viera Wardhani

PMC · DOI: 10.3390/s25196116 · Sensors (Basel, Switzerland) · 2025-10-03

## TL;DR

This paper presents a real-time heartbeat classification system using edge devices and stream processing to enable immediate and scalable heart disease detection.

## Contribution

The study introduces a distributed real-time system for heartbeat classification using LSTM and FCN models with optimized performance and resource efficiency.

## Key findings

- Wavelet-based features with LSTM-Sequential architecture achieved 99% accuracy and 0.12 s inference time.
- Wavelet-FCN models showed high efficiency with low CPU/GPU usage and memory consumption on Jetson Orin devices.
- The distributed architecture enabled resilience and horizontal scaling under varying workloads.

## Abstract

Early detection is crucial for preventing heart disease. Advances in health technology, particularly wearable devices for automated heartbeat detection and machine learning, can enhance early diagnosis efforts. However, previous studies on heartbeat classification inference systems have primarily relied on batch processing, which introduces delays. To address this limitation, a real-time system utilizing stream processing with a distributed computing architecture is needed for continuous, immediate, and scalable data analysis. Real-time ECG inference is particularly crucial for immediate heartbeat classification, as human heartbeats occur with durations between 0.6 and 1 s, requiring inference times significantly below this threshold for effective real-time processing. This study implements a real-time heartbeat classification inference system using distributed stream processing with LSTM-512, LSTM-256, and FCN models, incorporating RR-interval, morphology, and wavelet features. The system is developed as a distributed web-based application using the Flask framework with distributed backend processing, integrating Polar H10 sensors via Bluetooth and Web Bluetooth API in JavaScript. The implementation consists of a frontend interface, distributed backend services, and coordinated inference processing. The frontend handles sensor pairing and manages real-time streaming for continuous ECG data transmission. The backend processes incoming ECG streams, performing preprocessing and model inference. Performance evaluations demonstrate that LSTM-based heartbeat classification can achieve real-time performance on distributed edge devices by carefully selecting features and models. Wavelet-based features with an LSTM-Sequential architecture deliver optimal results, achieving 99% accuracy with balanced precision-recall metrics and an inference time of 0.12 s—well below the 0.6–1 s heartbeat duration requirement. Resource analysis on Jetson Orin devices reveals that Wavelet-FCN models offer exceptional efficiency with 24.75% CPU usage, minimal GPU utilization (0.34%), and 293 MB memory consumption. The distributed architecture’s dynamic load balancing ensures resilience under varying workloads, enabling effective horizontal scaling.

## Linked entities

- **Diseases:** heart disease (MONDO:0005267)

## Full-text entities

- **Diseases:** heart disease (MESH:D006331)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12526912/full.md

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12526912/full.md

## References

26 references — full list in the complete paper: https://tomesphere.com/paper/PMC12526912/full.md

---
Source: https://tomesphere.com/paper/PMC12526912