This project focuses on the Biomedical Signal Analysis of fetal electrocardiograms (fECG). The primary objective is to non-invasively extract the fetal ECG signal from abdominal maternal recordings where maternal and fetal heart activities are mixed with noise.
Using Independent Component Analysis (ICA), this project isolates the fetal ECG component from multichannel abdominal signals and validates the extraction by comparing it against a direct fetal scalp electrode recording (ground truth).
Problem: Fetal ECG signals acquired from the maternal abdomen are significantly weaker (~10× smaller) than maternal ECG signals and often overlap in frequency, making extraction difficult due to noise and maternal dominance.
Objective:
- To non-invasively isolate the fetal ECG using Independent Component Analysis (ICA).
- To validate the extracted signal by comparing it with the direct fetal reference signal.
- To compute the Heart Rate (BPM) and detect R-peaks.
The project utilizes the Abdominal and Direct Fetal ECG Database (ADFECGDB) from PhysioNet.
- Records: 5 records (
r01.edftor05.edf). - Duration: 5 minutes per record.
- Sampling Rate: 1000 Hz.
- Channels:
- 4 Abdominal Channels: Mixed maternal and fetal signals.
- 1 Direct Fetal Channel: Scalp electrode signal (Ground Truth).
The project pipeline follows these distinct stages:
- EDF (European Data Format) files are loaded using the
mneorpyEDFliblibrary. - Channel information and sampling frequencies are extracted.
To ensure stability for the ICA algorithm, the raw signals undergo:
- Bandpass Filtering: Applied between 0.5 Hz – 45 Hz to remove baseline drift (low freq) and power line interference/muscle noise (high freq).
- Normalization: Signals are standardized to have zero mean and unit variance.
- Concept: ICA is a blind source separation technique. It assumes the abdominal signal is a linear mixture of statistically independent sources (Maternal Heart, Fetal Heart, Noise).
- Process: The algorithm decomposes the 4 input abdominal channels into 4 independent components.
- Each independent component is compared with the Direct Fetal ECG (reference channel).
- Correlation Analysis: The component with the highest correlation coefficient relative to the direct fECG is identified as the extracted fetal signal.
- R-Peak Detection: Locating the peaks of the QRS complex in the extracted signal.
- Heart Rate Calculation: Computing Beats Per Minute (BPM).