Skip to content

Best way to gather more data to improve heart rate accuracy #397

Closed

Description

@limoncelli

As the heart rate sensor is still a bit unreliable, it may be improved by using a community approach gathering a lot of data and building a prediction model from it. A discussion on how to get hr data from pinetime has been initiated here theironrobin/siglo#33 @ siglo and daniel has been very swift in responding here wasp-os/wasp-os#204. So even though downloading data as raw as possible from the pinetime is possible there is still the need to gather the true actual hr eg measuring ones pulse for 60secs. This is currently quite difficult, max screen timeout after 60secs, no cue when measurement of hr starts @ infinitime. So the easiest would be the latter in addition to an increased timeout, though a better solution would be a temporary heart rate collection app, where you are asked to store your heart rate measured by hand after 60secs infinitime collecting data.

Activity

  1. IanWardell commented on May 26, 2021

    @IanWardell

    +1 , also I'm interested in getting the data from the pinetime to a mobile device so it can be used in fitness apps. I have no idea where the community stands on this currently in terms of implementation.

  2. MFAshby commented on May 29, 2021

    @MFAshby
    Contributor

    Maybe daft suggestion: 2 watches? Collate data from a few other brand devices (Fitbit?) worn simultaneously with the pinetime. Would need some volunteers with other wearables but no doubt a few such people exist.

  3. limoncelli commented on May 30, 2021

    @limoncelli
    Author

    I think there are two separate parts to it

    a) getting the sensor data and
    b) having some way to sync with any type of external measurement

    Yes, for b), certainly another device would be helpful, like we have seen it for validating the step counter. But you'd still need the possibility to sync the measurements somehow. So in my view, in the end you want something like

    Date (60secs) ; infinitime heartrate; real heartrate; raw sensor data
    2021-05-29 18:03; 57 ; 64 ; 34, 37, 69, 60, 36, 38, 71, 70, 34, 35, .... , 38, 35

    The real heartrate would be added manually after each 60 secs o f measurement, eg by looking at your fitbit or by taking your pulse. But you will need some indication by infinitime when the measurement starts.

  4. ObiKeahloa commented on Jun 7, 2021

    @ObiKeahloa
    Contributor

    On the Mi Band there is an option for tracking heart rate very minute so it is possible to do the test with someone who has both watches I have a mi band but not an PineTime :( so I cant help with the PineTime part but can help with the Mi Band Data stealing(Borrowing).

  5. wilsonjwco commented on Jul 20, 2021

    @wilsonjwco
    Contributor

    Even without the ground truth, having raw sensor data along with InfiniTime's estimate of HR can help. It should be straightforward to see the HR in an FFT or spectrogram (see this paper) My vote would be to prioritize logging and downloading raw sensor data first, then figure out practices for syncing with ground truth later.

  6. ObiKeahloa commented on Jul 20, 2021

    @ObiKeahloa
    Contributor

    I have one method that could be done:

    1. Use two watches and log info

    Most watches have a file with heart rate data logged we could use these files and extract data from the file of another watch , InfiniTime could have a firmware with logging increased to maximum and then compare the two.
    Comparing can be done using the time info given in the logs which has to be synced, Mi Bands do have the time info inside the log InfiniTime could also do the same with the log (Which includes raw sensor data) the Mi Band however is also not accurate (We could use one of the scientific YouTube reviews which has compared it with a proven heart rate device) to help the data.

    We can then use this data and then compare it with the "polished" data (The one that is compared with the reviews) and make a chart , using this chart we could keep tuning until it becomes very similar.

    The logging on InfiniTime could be done by making a log file which is loaded to ram as a buffer , once ram is filled it could be sent to the companion phone through Bluetooth.

    There are open source tools that allow us to view the log data of the MI Band (Stored in Mi Fit) I could make a tool that makes this much more seamless.

    Please do check if these ideas are plausible or far fetched.

  7. changed the title [-]best way to gather more data to improve heart rate accuracy[/-] [+]Best way to gather more data to improve heart rate accuracy[/+] on Oct 2, 2021
  8. added
    question/discussion
    and removed on Oct 2, 2021
  9. stevensu1838 commented on Oct 26, 2022

    @stevensu1838

    Hi all,

    I've got two questions about heart rate accuracy. Can you experts share your insights? Many thanks.

    First, I've noticed the heart rate reading from the Pine Time watch sometimes goes up to 160 for no reason. Do you have any solutions?
    Secondly, may I please ask if you think the accuracy of the heart rate measurement is reliable? I am choosing between Pine Time watch and Garmin watch for heart rate reading for research purpose. The advantage of Pine Time is open source and free for data streaming. However, It is charged for live data streaming with Garmin watches.

  10. nxdefiant commented on Jan 11, 2023

    @nxdefiant

    I assume this problem still exists with pine time? Maybe you could team up with some folks at Bangle.js as they have the same problem.

  11. Avamander commented on Jan 11, 2023

    @Avamander
    Collaborator

    @nxdefiant We have a PR in the works that improves the current situation.

  12. agx commented on Apr 12, 2023

    @agx

    @Avamander is that PR linked somewhere?

  13. FintasticMan commented on Apr 12, 2023

    @FintasticMan
    Member
  14. agx commented on Apr 12, 2023

    @agx

    Thanks!

  15. marcinkosztolowicz commented on Oct 15, 2024

    @marcinkosztolowicz

    I created a fork where, among other things, I implemented a Bluetooth service that exposes raw PPG data. Additionally, this fork includes the ability to configure the HRS3300 sensor, which is the hardware responsible for collecting the data. There are also Python notebooks—one allows data collection, while the other demonstrates basic data cleaning and visualization on a chart. The analysis is currently at the proof-of-concept (POC) stage, but it might already be of interest to someone.

    https://github.com/marcinkosztolowicz/InfiniTime/blob/heart-rate-debug-tools/FORK_DOC.md

    This is discussion thread:
    #2113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question/discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions