Abstract
This study presents a deep learning approach to enhance electrocardiogram (ECG) signals captured from the ear canal. In-ear ECG signals are significantly attenuated and corrupted by physiological noise from brain activity (EEG) and muscle movements. We developed a 1D Denoising Convolutional Autoencoder (DCAE) designed to reconstruct clean ECG waveforms from these noisy inputs. Our model achieves a median Signal-to-Noise Ratio (SNR) improvement of 5.9 dB and reduces the Mean Absolute Error (MAE) in heart rate estimation from 13.55 bpm to 4.52 bpm. These results suggest that ear-based "hearables" can provide clinical-grade cardiac monitoring.
Introduction
Wearable heart rate monitors typically rely on photoplethysmography (PPG) or wrist-based ECG. However, PPG is sensitive to motion, and wrist ECG requires a closed-loop circuit involving both hands. The ear canal offers a compelling alternative: it is highly vascularized, relatively stable during movement, and compatible with ubiquitous consumer earbuds.
The primary challenge for in-ear ECG is the signal's low amplitude—roughly 100 times smaller than chest-based recordings—and its overlap with noise from the brain (EEG), eyes (EOG), and jaw (EMG). Traditional filtering often fails to recover the full morphology of the heartbeat without significant signal loss.
Methodology
Model Architecture
The proposed solution is a 1D Denoising Convolutional Autoencoder (DCAE). The architecture consists of an encoder that compresses the noisy signal into a latent representation, effectively filtering out stochastic noise, and a decoder that reconstructs the clean ECG signal.
The model uses domain-specific kernel sizes: a 0.75s window in the initial layer to encompass a full cardiac cycle, followed by 0.45s windows to focus on specific segments like the QT interval. The network was trained to map noisy in-ear signals to "Lead I" ECG references.
Data Acquisition and Synthesis
The study utilized a real-world dataset of 45 healthy participants using custom earpieces with cloth electrodes. To improve generalization, the researchers also employed a synthetic dataset derived from the PTB-XL database (21,000+ records). These clean signals were corrupted with 1/f "pink noise" to simulate the electrical environment of the human head.
Results and Discussion
The DCAE model demonstrated significant performance gains across multiple metrics. The median SNR improvement was 5.9 dB; notably, while 87% of subjects initially had negative SNRs, only one remained in the negative after processing.
Heart rate accuracy improved dramatically, with the MAE dropping from 13.55 bpm to 4.52 bpm. R-peak detection precision reached a median of 90%. Furthermore, occlusion tests revealed that the model does not simply "hallucinate" heartbeats but relies on actual physiological features in the input signal. The model also successfully reconstructed abnormal rhythms like Premature Ventricular Contractions (PVCs), indicating its potential for diagnostic use.
Conclusion
This research demonstrates that deep learning can overcome the signal-to-noise challenges inherent in ear-based cardiac monitoring. While the current study focused on stationary, healthy subjects, the small model size (approx. 61k parameters) makes it a strong candidate for integration into low-power consumer electronics. Future work will focus on mitigating motion artifacts and validating the model on diverse clinical populations.
Summary updated