Livoa LogoLivoa
Data Loading (MIT-BIH Dataset)


• Dataset Source: MIT-BIH Arrhythmia Database

• Record Fetching: wfdb.get_record_list

• Signal Extraction: rdrecord, rdann

• Output: Raw ECG Signal + Annotations

DWT Denoising (Discrete Wavelet Transform)


• Decomposition: pywt.wavedec

• Thresholding: Noise estimation & Soft Thresholding

• Reconstruction: pywt.waverec

• Length Adjustment: Padding or trimming

• Output: Denoised ECG Signal

Pan-Tompkins R-Peak Detection


• Derivative: Emphasize QRS slopes

• Squaring: Amplify peaks

• Moving Window Integration: Smooth signal

• Adaptive Thresholding: Dynamic cutoff (0.35 * max)

• Find Peaks: scipy.signal.find_peaks

• Output: R-Peak Locations (sample indices)

22

by kk

0
0 uses