Implementation of a sleep detection algorithm using accelerometer data, followed by an evaluation of HRV features during sleep and wake using PPG data. Both PPG and accelerometer data were recorded in 10 healthy subjects using the Empatica E4 wrist-wearable device.
Periods of sleep and wake are detected using an algorithm based on thresholding the Z-angle computed from accelerometer data. Here is an example for one subject:
The analysis is based on inter-beat intervals computed from the PPG signal. The HRV features I decided to investigate are the Heart Rate (HR), standard deviation of normal beats (SDNN), root mean square of successive differences (RMSSD), low and high frequency power and their ratio.
Here are some of the results: