Coder Social home page Coder Social logo

Comments (4)

paulvangentcom avatar paulvangentcom commented on July 30, 2024

Hi Mark,

Thanks for reaching out. My reply will be brief as I broke my hand. Not much typing now.

Usually in these devices you get the BPM for the last period (say: last 10 peaks or last 30 seconds). Heart rate speeds up and slows down considerably with each breath. This is the main reason you don't want to compute BPM based on 1 peak-peak interval.

The best way to go here is to implement a circular buffer, and every time interval (say 1 sec) you run HeartPy over the buffer. This will give you the BPM of the time interval equal to the buffer size. This way you can update your parameters as frequently as you like, while still having enough time-series data to compute something meaningful.

In the movie you linked they seem to do a similar thing, BPM updates every few seconds.

If you need pointers I'd be happy to whip up some example code. Let me know.

Cheers,
Paul

from heartrate_analysis_python.

paulvangentcom avatar paulvangentcom commented on July 30, 2024

I'll look into the segment_plotter. Thanks for raising that.

from heartrate_analysis_python.

paulvangentcom avatar paulvangentcom commented on July 30, 2024

the segment plotter issue has been fixed in 9adb10d, be sure to uninstall heartpy then update.

from heartrate_analysis_python.

paulvangentcom avatar paulvangentcom commented on July 30, 2024

Closing this due to inactivity. Feel free to re-open if you need further assistance.

Cheers,
Paul

from heartrate_analysis_python.

Related Issues (20)

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.