Giter Club home page Giter Club logo

heartbeat_classification's Introduction

ECG_Heartbeat_Classification

Requirement : Keras, tensorflow, numpy

Heartbeat Classification : Detecting abnormal heartbeats and heart diseases from

An ECG is a 1D signal that is the result of recording the electrical activity of the heart using an electrode. It is one of the tool that cardiologists use to diagnose heart anomalies and diseases.

In this blog post we are going to use an annotated dataset of heartbeats already preprocessed by the authors of this paper to see if we can train a model to detect abnormal heartbeats.

Model

Similar to [1] I use a neural network based on 1D convolutions but without the residual blocks :

Figure 3 : Keras model

Code :

Results

MIT-BIH Arrhythmia dataset :

  • Accuracy : 98.5
  • F1 score : 91.5

The PTB Diagnostic ECG Database

  • Accuracy : 98.3
  • F1 score : 98.8

Transferring representations

From Scratch :

  • Accuracy : 98.3
  • F1 score :** 98.8**

Freezing the Convolution Layer and Training the Fully connected ones :

  • Accuracy : 95.6
  • F1 score : 96.9

Training all layers :

  • Accuracy : 99.2
  • F1 score : 99.4

We can see the freezing the first layers does not work very well. But if we initialize the weights with those learned on MIT-BIH and train all layers we are able to improve the performance compared to training from scratch.

heartbeat_classification's People

Contributors

peet-droid avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.