Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
manideep2510 committed May 17, 2019
1 parent fe61899 commit 7330130
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ The acquired ECG signal is used to monitor and display the heart rate in real ti
- The T-wave represents the ventricular repolarization of the ventricles.

<p align="center">
<img src="photos/heart_cycle.png" width="275" />
<img src="images/heart_cycle.png" width="275" />
</p>

### Block Diagram

<p align="center">
<img src="photos/block_diagram.png" width="700" />
<img src="images/block_diagram.png" width="700" />
</p>

### Discussions on Design with Illustrations; Circuit Connections
Expand All @@ -48,7 +48,7 @@ Single Channel acquisition is done with electrodes on both the arms which are us
The bandwidth of a normal ECG is not very wide and the fundamental frequency is approximately 1 Hz. The harmonic content decreases until is practicably negligible beyond 60Hz however, the system higher cutoff frequency was fixed to be 150Hz as part of the QRS complex is lost if filtered at lower cutoff frequencies.

<p align="center">
<img src="photos/Frequency-spectrum.png" width="800" />
<img src="images/Frequency-spectrum.png" width="800" />
</p>

ECG signal gets interfered by many artifacts which need to be filtered out. Main sources of noise in the ECG signal are Baseline wander (low-frequency noise), Power line interference
Expand All @@ -57,25 +57,25 @@ ECG signal gets interfered by many artifacts which need to be filtered out. Main
To remove the common mode noise INA128U (Instrumentation Amplifier) was used having a high CMRR of 120db. The gain of the amplifier was set to 29 (so that output will be between +9 and -9)

<p align="center">
<img src="photos/4.png" width="300" />
<img src="images/4.png" width="300" />
</p>

To remove the baseline noise a high pass filter of cutoff frequency 0.05 Hz is used. A second order Butterworth filter was designed using opamp OPA27, a low noise amplifier to reduce noise amplification. The function of this filter is to eliminate the direct voltage in the signal and the resulting signal would be between + and - 5mv.

<p align="center">
<img src="photos/1.png" width="300" />
<img src="images/1.png" width="300" />
</p>

An amplification stage with a gain of 41. This gives a total gain of 1255.

<p align="center">
<img src="photos/3.png" width="300" />
<img src="images/3.png" width="300" />
</p>

A low pass filter with 3db bandwidth at 150 Hz. This ensures unwanted frequencies in the ECG spectrum to be filtered off.

<p align="center">
<img src="photos/2.png" width="300" />
<img src="images/2.png" width="300" />
</p>

Power line interference(50 Hz) is a major design artifact. To remove this an Arduino(nano) was programmed to function as a second order IIR notch filter of 2Hz bandwidth. Cutoff frequencies are 48Hz and 52Hz. Coefficients are derived from Matlab.
Expand All @@ -97,19 +97,19 @@ A 16x2 LCD display is connected to Arduino to display beats per minute(BPM).
Single lead ECG detection using three electrodes was performed and the resulting ECG signal after passing through the cascade of the above filters was visualized using Arduino Serial plotter. Signal was sampled at a frequency of 500Hz. The entire circuit is assembled on a breadboard and powered through two 9v batteries making the prototype portable. Any abnormal heartbeat is indicated to the subject. The placement of electrodes also plays a role in the generation of different waves. We placed the positive electrode on the left hip, a negative electrode on the right shoulder and a electrode from the left hand wrist is given as a ground reference. This placement of electrodes is along the axis of heart alignment. Our observed ECG is

<p align="center">
<img src="photos/signal.png" width="900" />
<img src="images/signal.png" width="900" />
</p>

Here we take a look at each individual heartbeat, plotting all the 70 heartbeats in the sampled data (9000 data points) synchronized by their R peak, looks like below.

<p align="center">
<img src="photos/graph1.png" width="800" />
<img src="images/graph1.png" width="800" />
</p>

Here is the variation of Heart Rate throughout the sampled data,

<p align="center">
<img src="photos/graph2.png" width="800" />
<img src="images/graph2.png" width="800" />
</p>

## About Classification of Arrhythmias from ECG Signals
Expand All @@ -121,7 +121,7 @@ A convolutional DNN is trained on [this dataset](https://physionet.org/challenge
Distinct from some other recent DNN approaches, no significant preprocessing of ECG data, such as Fourier or wavelet transforms, is needed to achieve strong classification performance.

<p align="center">
<img src="photos/deepnet.png" width="200" />
<img src="images/deepnet.png" width="200" />
</p>

You can download the single lead ECG signals for training here: https://physionet.org/challenge/2017/training2017.zip
Expand Down

0 comments on commit 7330130

Please sign in to comment.