Abstract
Photoplethysmography (PPG) signal is potentially suitable in atrial fibrillation (AF) detection for its convenience in use and similarity in physiological origin to electrocardiogram (ECG). There are a few preceding studies that have shown the possibility of using the peak-to-peak interval of the PPG signal (PPIp) in AF detection. However, as a generalized model, the accuracy of an AF detector should be pursued on the one hand; on the other hand, its generalizability should be paid attention to in view of the individual differences in PPG manifestation of even the same arrhythmia and the existence of sub-types. Moreover, a binary classifier for atrial fibrillation and normal sinus rhythm is not convincing enough for the similarity between AF and ectopic beats. In this study, we project the atrial fibrillation detection as a multiple-class classification and try to propose a training pipeline that is advantageous both to the accuracy and generalizability of the classifier by designing and determining the configurable options of the pipeline, in terms of input format, deep learning model (with hyperparameter optimization), and scheme of transfer learning. With a rigorous comparison of the possible combinations of the configurable components in the pipeline, we confirmed that first-order difference of heartbeat sequence as the input format, a 2-layer CNN-1-layer Transformer hybrid model as the learning model and the whole model fine-tuning as the implementing scheme of transfer learning is the best combination for the pipeline (F1 value: 0.80, overall accuracy: 0.87).
Introduction
Atrial Fibrillation (AF) is a prevalent heart rhythm disorder often remaining undiagnosed due to its intermittent nature. While the Electrocardiogram (ECG) is the diagnostic gold standard, its continuous use is impractical for most. Photoplethysmography (PPG), the optical technology in smartwatches, offers a non-invasive alternative. However, PPG-based detection faces significant hurdles: high sensitivity to motion artifacts and physiological noise, and the "ectopic confusion," where benign premature beats mimic AF rhythm patterns. This study addresses these by proposing a robust multi-class classification pipeline (Normal Sinus Rhythm, AF, and Ectopic Beats).
Methodology
The researchers developed a configurable training pipeline focusing on three key areas: input engineering, model architecture, and transfer learning.
Model Architectures
The study evaluated six distinct deep learning architectures to determine the optimal balance between local feature extraction and global context understanding.
The architectures ranged from simple Recurrent Neural Networks (bi-LSTM) and Convolutional Neural Networks (CNN) to complex hybrids. The winning model, m6, utilizes CNN layers to capture localized beat patterns and a Transformer layer with an attention mechanism to analyze the global rhythm across a 30-second window.
Training and Transfer Learning
To overcome the scarcity of labeled PPG data, a two-stage transfer learning approach was employed. Models were pre-trained on large-scale ECG datasets (LtAF-DB and MIT-DB) and then fine-tuned on the UMMC-DB PPG dataset. Two fine-tuning schemes were tested: tuning only the final linear projection layer (TS1) and tuning the entire model (TS2).
Results and Discussion
The rigorous evaluation of 54 pipeline combinations revealed that the CNN-Transformer hybrid (m6) combined with whole-model fine-tuning (TS2) and first-order difference inputs achieved the highest performance, with an overall accuracy of 0.87 and an F1-score of 0.80.
A critical finding was that whole-model fine-tuning (TS2) significantly outperformed partial tuning (TS1). This indicates that while ECG and PPG share physiological roots, the feature extraction layers must adapt to the specific characteristics and noise profiles of optical sensors. Furthermore, the inclusion of "Ectopic Beats" as a distinct class reduced false positives, making the model more clinically viable for real-world wearable applications.
Conclusion
This research demonstrates a high-performance pipeline for AF detection using PPG signals. By leveraging a hybrid CNN-Transformer architecture and a comprehensive transfer learning strategy, the model effectively bridges the gap between high-quality ECG data and noisier PPG signals. Future work will focus on improving peak detection algorithms and expanding datasets to include more diverse populations and activity levels to further enhance generalizability.
Summary updated