I have a question concerning the sleep stages in the profusion and the HRV data from the MESA dataset.
The extracted sleep stages in 30 second intervals have different lengths which are potentially coming from another endtime
e.g. for mesaid =2 : In mesa-sleep-0002-profusion.xml - sleep stages have a length of 1319
while for HRV in mesa-sleep-0002-rpoint.csv - sleep stages have a length of 1060
Just cutting the longer once off seems logical for many mesaids as the sequence is the same.
But the issue comes as some specific mesaids have a different sequence.
e.g. for mesaid =2: HRV and profusion are compatible till index 177, after this the sequence has a shift and differs.
HRV: [2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 0, 1, 2, 2, 2, 2, 2, 3, 2, 2, 2]
profusion: [2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 0, 1, 2, 2, 2, 2, 2, 3, 2, 2]
Therefore, I am not sure if it is possible to combine the sleep stage sequences or how, maybe there is something I am missing, such as e.g. some specific intervals are deleted in HRV which I can translate to the profusion sequence?
Please let me know if someone has an idea.
Thanks.