Ischemic changes analysis (ST-segment depression) program with test signals
Program detects ST-segment changes like in image below.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Matlab r2017a or later -> https://www.mathworks.com
Matlab Signal Processing Toolbox -> https://www.mathworks.com/products/signal.html
Load all files in same folder
Open Kurs.m
Push "Run" button
Push "Change Folder" if needed
Push "Load ECG" button and load one of the *.mat files
In settings:
1. Choose name of the patient
2. Check filter if needed
3. Choose sampling frequency
4. Choose signal duration to work with
5. Check "Ok"
You can load new signal choosing "Load new signal" button
You can see steps of ecg analyse checking buttons:
1. Baseline
2. Averaging
3. ST-analys
4. Results
First thing to do - we must remove baseline drifting.
Program uses Pan-Tompkins algorithm for R-peaks detecting
Then program calculates T-peak location relative to the R-peak
Now we know characteristic points of signal and can remove baseline using cubic spline interpolation
We average signal to remove noise and find mean ST-change
Program detects boards of each QRS-complex
Then we need to sum all QRS-complexes and divide to the count of QRS
Program analysis 3 points of ST-segment (60 ms, 80 ms, 100 ms offset from R-peak)
Now we can use these graphics to classify type of ischemic change
ST-change graphics are represented in image below
- Eldar Shayahmetov, eldarsharpey@gmail.com