Unity Arduino Stress Meter
Final solution for a cross-disciplinary project that measures the stress of a player, to be used and interpreted inside of a game project. Our aim was adhering to the notion of affective computing through a non-standard input device, or the Ardunio Pulse Sensor in this case with Heart Rate Variability (HRV) analysis. Heart rate or Beats Per Minute (BPM) alone is not an accurate indicator of stress, HRV is currently the best solution for determining stress levels of an individual.
Written for Unity, our solution consists of two scripts. One handles retrieving of live heart rate data from the Arduino and the other interprets that data into usable metrics. HRV can be determined using a variety of statistical methods The Root Mean Square of the Successive Differences (RMSSD) works best for short-term heart rate data, such as real-time applications with successive differences synonymous with interbeat intervals in the case of this project.