MATLAB implementation of the Pan-Tompkins QRS detection algorithm with adaptive thresholding (SPKI/NPKI), notch filtering, and spectrogram analysis for ECG signal processing.
Digital Signal Processing project completed during a 15-hour course at ENSEIRB-MATMECA, Bordeaux INP — Telecom department, 2025/2026.
- Band-pass filtering (5–15 Hz)
- Notch filter at 12.5 Hz (power line noise)
- Adaptive SPKI/NPKI threshold (baseline drift robustness)
- Spectrogram analysis
- Fibrillation detection
| File | Description |
|---|---|
detect_R.m |
Main R-peak detection pipeline (PQRST + heart frequency) |
spectro_1.m |
Short-time Fourier transform spectrogram |
fibrillation.m |
Pathological ECG visualization |
- Load a
.matECG file (variables:ecg,Fs) - Run
detect_R.m
Pan & Tompkins, A real-time QRS detection algorithm, IEEE Trans. Biomed. Eng., 1985.