GithubHelp home page GithubHelp logo

djzenma / ecg-heart-monitor-stm32-tflite Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 14 MB

ECG Heart Monitor and Disease Detection using TensorFlow Lite on STM32 Microcontroller

C 95.40% C++ 1.36% HTML 1.55% Makefile 1.44% Assembly 0.26%

ecg-heart-monitor-stm32-tflite's Introduction

ECG Heart monitor using the STM32 Nucleo Board and TensorFlow Lite

Both the Report and the Presentation explaining the Project in great details are found in the Report_Presentation Folder.

Documentation

Below is the documentation for the most importatnt functions. More documentation is found inside the code itself.
Convention: functionName : parameter1, parameter2, ... : return value1, return value2, ...

Main

  • HAL_TIM_PeriodElapsedCallback : void : void

  • Callback whenever the Timer TIM15 raises an interrupt (when the timer == value AR register) This is where the ADC performs the conversion.
  • main : no arguments : returns void (never returns)

  • Check if ready then performs inference and outputs the result using UART2.

app_x-cube-ai.c

  • aiInit : ai_u8 activations : void

  • Initializes the Neural Network
  • aiRun : const void * in_data (input float buffer with the 187 ECG samples), void * out_data (output int buffer of size 5 (5 classes)) : int (prediction status)

  • Performs the Inference
  • MX_CUBE_AI_Init : void : void

  • Calls aiInit
  • MX_CUBE_AI_Process : void : int (the prediction class)

  • Initializes the input buffer by converting the ECG buffer to bytes then feeding it to aiRun which outputs the prediction then the predicted class is returned

ecg-heart-monitor-stm32-tflite's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ecg-heart-monitor-stm32-tflite's Issues

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.