Early diagnosis of paroxysmal atrial fibrillation (PAF) could prompt patients to receive timely interventions in clinical practice. Various PAF onset prediction algorithms might benefit from accurate heart rate variability (HRV) analysis and machine learning classification but are challenged by real-time monitoring scenarios. The aim of this study is to present an end-to-end deep learning-based PAFNet model that integrates a sliding window technique on raw R-R intervals of electrocardiogram (ECG) segments to achieve a real-time prediction of PAF onset. This integration enables the deep convolutional neural network (CNN) to be customized as a light-weight architecture that accommodates the size of sliding windows simply by altering the input layer, and specifically its effectiveness in making a new prediction with each new heartbeat. Catering to the potential influence of input sizes, three CNN models were trained using 50, 100, and 200 R-R intervals, respectively. For each model, the performance of the automated algorithms was evaluated for PAF prediction using a ten-fold cross-validation. As a results, a total of 56,381 PAFN-type and 56,900 N-type R-R interval segments were collected from publicly accessible ECG databases, and a promising prediction performance of the automated algorithm with 100 R-R intervals was achieved, with a sensitivity of 97.12%, a specificity of 97.77%, and an accuracy of 97.45%, respectively. Importantly, the automated algorithm with a sliding window step of 1 could process one sample in only 23.1 milliseconds and identify the onset of PAF at least 45 min in advance. The present results suggest that the sliding window technique on raw R-R interval sequences, along with deep learning-based algorithms, may offer the possibility of providing an accurate, real-time, end-to-end clinical tool for mass monitoring of PAF.
Read full abstract