Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ECG Scanner to detect R peaks and heart failure based on the QRS algorithm written in C.

Notifications You must be signed in to change notification settings

brandicph/ECGscanner-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECG scanner

Electrocardiography (ECG or EKG) scanner to detect R peaks and heart failure based on the QRS algorithm written in C. The main goal of this project is to learn the programming language C but also the benifits by using a low level language to optimize and make better performing software.

Filters

Low-pass filter

The low-pass filter is a filter hat passes signals with a frequency lower that a certain cut-off frenquency and group delay that is higer than the cut-off frequency. In short the filter takes some of the high frequencies that is not neeed and discharge them. The formula below will take the signal and cut-off the frequencies higer than 12 Hz and a group delay of 25ms.

equation

In the formula, x is the signal data, y is the resulting filtered signal and n refers to the n'th sample.

High-pass filter

The high-pass filter is very similar to the low-pass filter. Compared to the low-pass filter, the high-pass filter cut-off the low frequencies instead of blocking out the high frequencies. The formula below will ensure the signal to be centered around the 5-20 Hz approximately.

equation

As previous the x is the signal data, y is the resulting filtered signal and n refers to the n'th sample.

Derivative

Description of the derivative

equation

Squaring

Description of the Squaring

equation

Moving window integration

Description of the moving window integration

equation

QRS detection algorithm

Description of the QRS detection algorithm

Flow diagram

The following flow diagram is showing the different stages and decision making in the QRS detection algorithm. Furtheremore the variables being set at initialization, peak detection and R peak detection.

About

ECG Scanner to detect R peaks and heart failure based on the QRS algorithm written in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published