Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Stress measuring

Hi

How can I measure stress because Fitbit does not provides skin conductance level (SCL) ? Can I get heart rate variety?

What kind of data of accelerometer sensor? Thank you

Best Answer
0 Votes
5 REPLIES 5

Unfortunately we don't expose HRV. Accelerometer data is available (x,z,y) - https://dev.fitbit.com/build/reference/device-api/accelerometer/

Best Answer

For dream detection I calculated Hrv with this method :

 

for one minute , get heartbeat per minute 

take max and min of these value, and output the difference

 

the result is pretty accurate if frequency is good.

Best Answer

with minhr and maxhr declared globally and reset after each variability calculation : 

 

var hrm = new HeartRateSensor({ frequency: 1, batch: 1 });

// Declare an event handler that will be called every time a new HR value is received.
hrm.addEventListener("reading", () => {
  // Peek the current sensor values - first of batch, ignore the others

  //console.log("Current heart rate: " + hrm.heartRate);
  hrLabel.text = hrm.heartRate;
  lastValueTimestamp = Date.now();
  if (maxhr < hrm.heartRate) {
    maxhr = hrm.heartRate;
  }
  if (minhr > hrm.heartRate) {
    minhr = hrm.heartRate;
  }
});
Best Answer

Thank you YannisParis. Can I access data every minute? How can I know If current heart rate in rest situation or not ?what do frequency and batch parameters meaning? Thank you so much 🙂

Best Answer
0 Votes