TL;DR
This paper presents a complete, open-source pipeline for extracting reliable heart rate (HR) from noisy, long-form infant electrocardiogram (ECG) recordings, a crucial but challenging task. By adapting and enhancing existing methods, they developed a robust system that includes novel preprocessing, peak detection, HR cleaning, and a signal quality index, making infant physiological research more accessible and accurate.
What Problem Does This Paper Address?
Studying infant cognitive and emotional development often relies on physiological signals like heart rate (HR), derived from electrocardiograms (ECGs). However, analyzing infant ECGs is particularly difficult due to their naturally faster heart rates compared to adults, which can violate assumptions in standard adult-focused analysis tools. Furthermore, recordings in naturalistic environments, where infants are free to move, introduce significant noise (motion artifacts, baseline wander), making accurate R-peak detection and subsequent HR calculation challenging. Existing open-source tools, while valuable, often fall short when applied to these specific infant data challenges, especially for long recordings. This paper aims to bridge this gap by developing and validating a comprehensive, efficient, and open-source pipeline tailored for infant ECG analysis.
Methods
The authors tackled this problem by first evaluating existing open-source ECG R-peak detection methods on infant datasets. They identified the best-performing method (Neurokit2) and then systematically enhanced it to create their proposed pipeline. Key methodological contributions include:
- Frequency Preprocessing: Instead of relying on adult-centric filters, they explored various high-pass filters (HPFs) and band-pass filters (BPFs), finding that a 15 Hz HPF offered optimal performance for infant ECGs across different devices and noise levels.
- Local Peak Correction: A novel method was introduced to realign R-peaks detected on preprocessed ECGs back to their original location on the raw signal. This addresses shifts caused by heavy filtering and improves accuracy without requiring manual labeling.
- Square Wave Peak Correction: A specific filter was developed to address periodic non-ECG signals (square waves) that can arise from certain devices, particularly during setup.
- HR Cleaning: A median filter approach was employed to correct for missing or added beats, with parameters optimized for both clean and noisy HR signals.
- Signal Quality Index (SQI): A new algorithm was developed to identify time periods with unreliable HR data due to excessive noise. This SQI vector allows researchers to either exclude or flag these segments, improving the overall reliability of the analysis.
Datasets
The study utilized three distinct infant ECG datasets:
- Dataset A: Comprised 97 recordings from infants aged 3-42 months, collected using a Biosignalsplux device at 500 Hz in a semi-naturalistic lab setting (playroom). This dataset was characterized by relatively low noise and was used for developing and evaluating the ECG pipeline and initial HR processing.
- Dataset B: Consisted of 25 recordings from infants aged 5-13 months, captured with a Geodesic EEG System (GES) at 1000 Hz in a lab environment. This dataset offered higher signal quality with less noise and was used for validation.
- Dataset C: Included 12 longer-form recordings (≥50 min) from infants aged 5-11 months, collected with an EgoActive sensor at 250 Hz in a naturalistic home environment. This dataset was specifically chosen for its high noise levels and was used to test and validate the HR quality analysis.
The authors also made their code and processed data available upon reasonable request.
Key Insights and Ideas
- Infant ECGs are Different: The faster heart rates and unique signal characteristics of infants necessitate specialized preprocessing steps, particularly in frequency filtering, compared to adult ECG analysis. A 15 Hz HPF emerged as a surprisingly effective general-purpose filter.
- Noise is the Enemy: Naturalistic recordings are inherently noisy. The development of robust methods for handling motion artifacts, baseline wander, and intermittent signal loss is critical for extracting meaningful HR data.
- A Complete Pipeline Matters: Simply having a good R-peak detector isn't enough. The authors demonstrated that a comprehensive pipeline, from raw ECG preprocessing to HR cleaning and quality assessment, is essential for reliable infant HR analysis.
- Signal Quality is Key: Explicitly quantifying signal quality (SQI) is crucial for transparent and trustworthy research. It allows researchers to objectively identify and handle unreliable data segments, rather than relying on subjective exclusion.
- Open Source is Powerful: By building upon and extending existing open-source tools, the authors created a valuable, accessible resource for the research community.
Key Results
- The proposed pipeline, featuring a 15 Hz HPF and local peak correction, significantly outperformed existing open-source methods in R-peak detection accuracy (specificity, sensitivity, PPV) across infant datasets, especially in noisy conditions.
- The pipeline demonstrated high computational efficiency, processing large datasets rapidly. For example, the ECG pipeline processed 97 recordings (totaling over 52 hours) in just over 2 minutes.
- The developed Signal Quality Index (SQI) effectively identified noisy periods in long-form recordings, showing a high true positive rate in distinguishing good from bad HR segments.
- The pipeline's performance remained robust across different devices, sampling rates, and age groups, indicating its generalizability.
Limitations and Future Work
- Arrhythmia Handling: The authors acknowledge that their HR filtering approach may not be ideal for ECGs with significant arrhythmias or other HR irregularities.
- Parameter Tuning: The performance of the pipeline, particularly the SQI, is dependent on parameter selection, which may need to be tailored for specific research questions or noise tolerance levels.
- Atypical Populations: The pipeline was developed and validated on typically developing infants. Further testing is needed for populations with known cardiac issues or other atypical conditions.
- Future Directions: The authors suggest exploring adaptations of other methods (like EMD) for infant ECGs, investigating the pipeline's performance on shorter infant ECG signals, and developing guidelines for sensor placement and orientation to minimize signal artifacts. They also propose testing the pipeline across a wider age range and on atypical heart rate patterns.
Summary updated