/Ischemic-changes-analysis

Ischemic changes analysis (ST-segment depression) program with test signals

Primary LanguageMatlab

Ischemic-changes-analysis

Ischemic changes analysis (ST-segment depression) program with test signals

Basic Overview

Program detects ST-segment changes like in image below. cad012 ecg st depression

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Matlab r2017a or later -> https://www.mathworks.com
Matlab Signal Processing Toolbox -> https://www.mathworks.com/products/signal.html

Installing

Load all files in same folder
Open Kurs.m
Push "Run" button
Push "Change Folder" if needed

Running the tests

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

Methods

Baseline drifting

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

2018-05-23 21 12 23

Averaging signal

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

2018-05-23 21 24 08

ST-change graphics

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

2018-05-23 21 30 04

Authors