End-to-end sensor fusion and classification of atrial fibrillation using deep neural networks and smartphone mechanocardiography

Physiol Meas. 2022 May 25;43(5). doi: 10.1088/1361-6579/ac66ba.

Abstract

Objective. The purpose of this research is to develop a new deep learning framework for detecting atrial fibrillation (AFib), one of the most common heart arrhythmias, by analyzing the heart's mechanical functioning as reflected in seismocardiography (SCG) and gyrocardiography (GCG) signals. Jointly, SCG and GCG constitute the concept of mechanocardiography (MCG), a method used to measure precordial vibrations with the built-in inertial sensors of smartphones.Approach. We present a modified deep residual neural network model for the classification of sinus rhythm, AFib, and Noise categories from tri-axial SCG and GCG data derived from smartphones. In the model presented, pre-processing including automated early sensor fusion and spatial feature extraction are carried out using attention-based convolutional and residual blocks. Additionally, we use bidirectional long short-term memory layers on top of fully-connected layers to extract both spatial and spatiotemporal features of the multidimensional SCG and GCG signals. The dataset consisted of 728 short measurements recorded from 300 patients. Further, the measurements were divided into disjoint training, validation, and test sets, respectively, of 481 measurements, 140 measurements, and 107 measurements. Prior to ingestion by the model, measurements were split into 10 s segments with 75 percent overlap, pre-processed, and augmented.Main results. On the unseen test set, the model delivered average micro- and macro-F1-score of 0.88 (0.87-0.89; 95% CI) and 0.83 (0.83-0.84; 95% CI) for the segment-wise classification as well as 0.95 (0.94-0.96; 95% CI) and 0.95 (0.94-0.96; 95% CI) for the measurement-wise classification, respectively.Significance. Our method not only can effectively fuse SCG and GCG signals but also can identify heart rhythms and abnormalities in the MCG signals with remarkable accuracy.

Keywords: accelerometer; atrial fibrillation; deep learning; gyrocardiography; gyroscope; seimocardiography; sensor fusion.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Atrial Fibrillation* / diagnosis
  • Heart Rate
  • Humans
  • Neural Networks, Computer
  • Smartphone
  • Vibration