Git Product home page Git Product logo

ecgnet's Introduction

ECGNet

This project contains the microcontroller code for the paper Dense Neural Network Based Arrhythmia Classification on Low-cost and Low-compute Micro-controller where we deployed a neural network to detect arrhythmia. Here, main.cpp contains the MCU code for detecting arrhythmia in real-time. model.h contains, the quantized neural network weights. Finally, training.ipynb contains the training code.

Publication

Installation

  1. Download and extract avr-gnu toolchain for Linux/Windows from here.
  2. Add the /bin directory after extraction to PATH.
  3. Download the AVRDUDE binary for Windows from here and add to PATH.
  4. For debian-linux, run sudo apt install avrdude. For other distros, install avrdude with your respective package manager.

Run

To run the project, connect your workstation with an Arduino Nano/Uno. Change the last line of the Makefile file to include the port where the Arduino is connected:

avrdude -F -v -v -c arduino -p ATMEGA328P -P YOUR_PORT_GOES_HERE -b 115200 -U flash:w:build/main.hex

Additionally, connect AD8232 SparkFun Single-Lead Heart Rate Monitor for full reproducibility of our work as the connection schema provided below:

image

Training

For training the neural network and generating your own model.h file, run training.ipynb with google-colab (recommended) or locally.

ecgnet's People

Contributors

mohammedz666 avatar

Stargazers

Ishmam The Dumb 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.