Currently, the "who is asleep" model relies solely on accelerometer data (see below). This task is to find other sensors which could improve the accuracy of the model and provide the corresponding assembly.
Current device function:
for all records within [from, to]
sum += abs(accX) + abs(accY) + abs(accZ)
// assuming there are no gaps
return sum > (to - from) * G