skip to main content
US FlagAn official website of the United States government
dot gov icon
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
https lock icon
Secure .gov websites use HTTPS
A lock ( lock ) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.


Title: From Sleep Patterns to Heart Rhythms: Predicting Atrial Fibrillation from Overnight Polysomnograms
Abstract BackgroundAtrial fibrillation (AF) is often asymptomatic and thus under-observed. Given the high risks of stroke and heart failure among patients with AF, early prediction and effective management are crucial. Importantly, obstructive sleep apnea is highly prevalent among AF patients (60–90%); therefore, electrocardiogram (ECG) analysis from polysomnography (PSG), a standard diagnostic tool for subjects with suspected sleep apnea, presents a unique opportunity for the early prediction of AF. Our goal is to identify individuals at a high risk of developing AF in the future from a single-lead ECG recorded during standard PSGs. MethodsWe analyzed 18,782 single-lead ECG recordings from 13,609 subjects at Massachusetts General Hospital, identifying AF presence using ICD-9/10 codes in medical records. Our dataset comprises 15,913 recordings without a medical record for AF and 2,056 recordings from patients who were first diagnosed with AF between 1 day to 15 years after the PSG recording. The PSG data were partitioned into training, validation, and test cohorts. In the first phase, a signal quality index (SQI) was calculated in 30-second windows and those with SQI<0.95 were removed. From each remaining window, 150 hand-crafted features were extracted from time, frequency, time-frequency domains, and phase-space reconstructions of the ECG. A compilation of 12 statistical features summarized these window-specific features per recording, resulting in 1,800 features. We then updated a pre-trained deep neural network and data from the PhysioNet Challenge 2021 using transfer-learning to discriminate between recordings with and without AF using the same Challenge data. The model was applied to the PSG ECGs in 16-second windows to generate the probability of AF for each window. From the resultant probability sequence, 13 statistical features were extracted. Subsequently, we trained a shallow neural network to predict future AF using the extracted ECG and probability features. ResultsOn the test set, our model demonstrated a sensitivity of 0.67, specificity of 0.81, and precision of 0.3 for predicting AF. Further, survival analysis for AF outcomes, using the log-rank test, revealed a hazard ratio of 8.36 (p-value of 1.93 × 10−52). ConclusionsOur proposed ECG analysis method, utilizing overnight PSG data, shows promise in AF prediction despite a modest precision indicating the presence of false positive cases. This approach could potentially enable low-cost screening and proactive treatment for high-risk patients. Ongoing refinement, such as integrating additional physiological parameters could significantly reduce false positives, enhancing its clinical utility and accuracy.  more » « less
Award ID(s):
2014438
PAR ID:
10547654
Author(s) / Creator(s):
; ; ; ; ; ; ; ; ; ; ; ;
Publisher / Repository:
medRxiv
Date Published:
Format(s):
Medium: X
Institution:
medRxiv
Sponsoring Org:
National Science Foundation
More Like this
  1. Study objectivesEvaluate the performance of a novel home sleep apnea test with embedded ECG (SANSA, Huxley Medical, Inc.) in the diagnosis of obstructive sleep apnea (OSA). MethodsThis prospective multicenter validation study included 340 participants who underwent simultaneous polysomnography (PSG) and SANSA recordings across 7 clinical sites. Participants were diverse across age, sex, race, skin tone, and body mass index. Diagnostic performance was assessed with the apnea-hypopnea index (AHI) using both Rule 1A and Rule 1B across standard cutoffs for mild, moderate, or severe (≥5 events/h), moderate-to-severe (≥15 events/h), and severe (≥30 events/h) OSA. The agreement for AHI and total sleep time (TST) between SANSA and consensus PSG scores from three independent scorers was evaluated using Pearson’s correlation and Bland–Altman analysis. Sensitivity and specificity were calculated at each OSA severity level. Performance of participating site PSG scores were also evaluated against consensus PSG scores for comparison. ResultsSANSA demonstrated excellent agreement with PSG for most performance parameters. AHI correlation was 0.91 (95% CI: 0.89, 0.93) using Rule 1B and 0.90 (95% CI: 0.87, 0.92) using Rule 1A. Compared to consensus scored PSG, the device detected moderate-to-severe OSA using Rule 1B (the primary endpoint) with a sensitivity of 88% (95% CI: 81, 93%) and specificity of 87% (95% CI: 82, 91%), while site PSG sensitivity was 89% (95% CI: 82, 94%) and specificity was 93% (95% CI: 88, 96%). SANSA TST highly correlated with PSG TST (R = 0.82, 95% CI: 0.78, 0.85) and classified sleep epochs with an accuracy of 87.2% (95% CI: 87.0, 87.5%). ConclusionThe SANSA home sleep apnea test demonstrated robust diagnostic performance for OSA detection including measurement of sleep compared to PSG. Its patch morphology and embedded ECG confer ease of use and multi-diagnostic potential in sleep medicine and cardiology for the detection of OSA and cardiac arrhythmias across diverse clinical populations. Clinical trial registration[https://www.clinicaltrials.gov/study/NCT06070389], identifier [NCT06070389] 
    more » « less
  2. Abstract Study ObjectivesEvaluate wrist-placed accelerometry predicted heartrate compared to electrocardiogram (ECG) heartrate in children during sleep. MethodsChildren (n=82, 61% male, 43.9% Black) wore a wrist-placed Apple Watch Series 7 (AWS7) and ActiGraph GT9X during a polysomnogram. 3-Axis accelerometry data was extracted from AWS7 and the GT9X. Accelerometry heartrate estimates were derived from jerk (the rate of acceleration change), computed using the peak magnitude frequency in short time Fourier Transforms of Hilbert transformed jerk computed from acceleration magnitude. Heartrates from ECG traces were estimated from R-R intervals using R-pulse detection. Lin’s Concordance Correlation Coefficient (CCC), mean absolute error (MAE) and mean absolute percent error (MAPE) assessed agreement with ECG estimated heartrate. Secondary analyses explored agreement by polysomnography sleep stage and a signal quality metric. ResultsThe developed scripts are available on Github. For the GT9X, CCC was poor at -0.11 and MAE and MAPE were high at 16.8 (SD=14.2) beats/minute and 20.4% (SD=18.5%). For AWS7, CCC was moderate at 0.61 while MAE and MAPE were lower at 6.4 (SD=9.9) beats/minute and 7.3% (SD=10.3%). Accelerometry estimated heartrate for AWS7 was more closely related to ECG heartrate during N2, N3 and REM sleep than lights on, wake, and N1 and when signal quality was high. These patterns were not evident for the GT9X. ConclusionsRaw accelerometry data extracted from AWS7, but not the GT9X, can be used to estimate heartrate in children while they sleep. Future work is needed to explore the sources (i.e., hardware, software, etc.) of the GT9X’s poor performance. 
    more » « less
  3. Grewal, Harpreet Singh (Ed.)
    Study objectiveThis study aimed to prospectively validate the performance of an artificially augmented home sleep apnea testing device (WVU-device) and its patented technology. MethodologyThe WVU-device, utilizing patent pending (US 20210001122A) technology and an algorithm derived from cardio-pulmonary physiological parameters, comorbidities, and anthropological information was prospectively compared with a commercially available and Center for Medicare and Medicaid Services (CMS) approved home sleep apnea testing (HSAT) device. The WVU-device and the HSAT device were applied on separate hands of the patient during a single night study. The oxygen desaturation index (ODI) obtained from the WVU-device was compared to the respiratory event index (REI) derived from the HSAT device. ResultsA total of 78 consecutive patients were included in the prospective study. Of the 78 patients, 38 (48%) were women and 9 (12%) had a Fitzpatrick score of 3 or higher. The ODI obtained from the WVU-device corelated well with the HSAT device, and no significant bias was observed in the Bland-Altman curve. The accuracy for ODI > = 5 and REI > = 5 was 87%, for ODI> = 15 and REI > = 15 was 89% and for ODI> = 30 and REI of > = 30 was 95%. The sensitivity and specificity for these ODI /REI cut-offs were 0.92 and 0.78, 0.91 and 0.86, and 0.94 and 0.95, respectively. ConclusionThe WVU-device demonstrated good accuracy in predicting REI when compared to an approved HSAT device, even in patients with darker skin tones. 
    more » « less
  4. Atrial fibrillation (AF), a cardiac arrhythmia characterized by an abnormal and rapid heartbeat, has the potential to develop into stroke, heart failure, and, ultimately, mortality. The electrocardiogram (ECG) is a pivotal tool in the diagnosis of AF, offering a quick, cost‐effective, and non‐invasive mean to record the heart's electrical activity. Recent studies are increasingly engaged in the implementation of deep learning techniques for ECG feature extraction for AF prediction. In addition, the application of Mendelian randomization (MR) methodologies has been investigated to identify causal associations between genetically imputed pre‐defined ECG characteristics and cardiovascular diseases, such as AF. DeepFEIVR, a non‐linear extension of the classical instrumental variable (IV) regression model, was designed with the objective of extracting disease‐associated causal features from high‐dimensional data, such as neuroimaging data. In this article, we applied DeepFEIVR as well as its variant (with residual inclusion), DeepFEIVR‐RI, to the large UK Biobank dataset. The application of DeepFEIVR and DeepFEIVR‐RI showed that the genetic components in ECGs could contribute to the development of AF statistically significantly (pvalues < ). Another contribution of this article is an extension to both DeepFEIVR and DeepFEIVR‐RI to accommodate a large number of IVs. A comparison of results from DeepFEIVR and DeepFEIVR‐RI, based on various choices of IVs, was conducted. Furthermore, we applied a recent algorithm called dnn‐loc, enabling a visual examination on specific ECG components as extracted causal features for AF, thus advancing the understanding of the etiology of AF. 
    more » « less
  5. Objectives: We set out to develop a machine learning model capable of distinguishing patients presenting with ischemic stroke from a healthy cohort of subjects. The model relies on a 3-min resting electroencephalogram (EEG) recording from which features can be computed. Materials and methods: Using a large-scale, retrospective database of EEG recordings and matching clinical reports, we were able to construct a dataset of 1385 healthy subjects and 374 stroke patients. With subjects often producing more than one recording per session, the final dataset consisted of 2401 EEG recordings (63% healthy, 37% stroke). Results: Using a rich set of features encompassing both the spectral and temporal domains, our model yielded an AUC of 0.95, with a sensitivity and specificity of 93% and 86%, respectively. Allowing for multiple recordings per subject in the training set boosted sensitivity by 7%, attributable to a more balanced dataset. Conclusions: Our work demonstrates strong potential for the use of EEG in conjunction with machine learning methods to distinguish stroke patients from healthy subjects. Our approach provides a solution that is not only timely (3-minutes recording time) but also highly precise and accurate (AUC: 0.95). Keywords: Electroencephalogram (EEG); Feature engineering; Ischemic stroke; Large vessel occlusion; Machine learning; Prehospital stroke scale. 
    more » « less