Skip to content

A systematic method of analyzing the Electrocardiogram (ECG) from patients and displaying the types of disorders.

Notifications You must be signed in to change notification settings

anishapant21/ECG-CNN-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diagnosis of Cardiovascular Diseases with CNN using Data Obtained from Wireless Holter

The aim of this project is to design a systematic method of analyzing the Electrocardiogram (ECG) from patients and displaying the types of disorders. It is designed to wirelessly interface the holter for ECG signal extracion and to process and classify the obtained data for disease diagnosis.

Screenshots

Home page

UI and feature details

The interface displays the real time ECG graph along with the heartbeat rate and model prediction result. The designed interface for this deployed model logs patients data to a server for further analysis and also provides user with an option to keep note for any remarks they think could be helpful to the heath personnel. Patient details is kept private and only shown when authenticated person uses the website. One can also access the full patient history.

Overview of the folders

1. Model

Data preprocessing and training of the different models using SVM classifier, Logistic Regression and CNN.

Models Train Accuracy Test Accuracy Precision Recall F1-Score
SVM 98.56% 96% 98.59% 98.56% 98.57%
Logistic Regression 89.05% 74% 89.03% 89.06% 89.03%
CNN 99.8% 99.67% 100% 100% 100%

Link to the model training repo.

2. SavedModel

Saved CNN model in .h5 format

3. TestData

Csv files containing heart signals of a normal person without any underlying heart disease (obtained using holter).

4. backend

Use of database, processing of the raw ecg signals and use of the saved CNN model to predict the outcomes.

5. src and public folder

Frontend in reactjs.

Installation

To use this project on your machine, simply clone this GitHub repository, install dependencies and launch the program.

Clone Repo

git clone https://github.com/eternal-moon/ECG-CNN-React.git

Install Dependencies and launch project

  1. Create a virtual enviroment inside the backend directory.

  2. Install requirements.txt inside the virtual environment using:
    $ pip install -r requirements.txt

  3. Run
    $ python run.py
    $ python getData.py

  4. In the main directory run
    $ npm start

Tech Stack

  • React
  • Semantic UI
  • Python
  • Flask
  • Mongodb
  • Biosppy
  • Keras

About

A systematic method of analyzing the Electrocardiogram (ECG) from patients and displaying the types of disorders.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published