Conversation
Fixed scaling in apply_sadeh.
|
Thank you for your contribution. Have you run tests on actual data or are these corrections based on the descriptions in the Sadeh paper and the ActiLife manual? At the time I implemented the algorithms I had access to large collection of (private) data as well as the ActiLife software, so I ran lots of tests to make sure I got the same results. |
|
For what is worth, the "divide by 100" adjustment is applied to before the actigraph.sleepr/R/apply_cole_kripke.R Lines 120 to 125 in 27a8bdf |
|
Based on actual data. Counts/epoch is typically in the 10-30,000 range, so thresholding without first scaling sets (essentially) all counts to 300 and the Sadeh algorithm then produces nonsensical results. This same data is scored successfully by the Cole-Kripke algorithm as you've implemented it. I don't have access to the ActiLife software to compare, but scaling by 100 produces closer agreement with the ground truth. |
Actigraph counts need to be scaled by 100 before scoring with Sadeh (the same as in Cole-Kripke). See the Actigraph user manual: "He [Sadeh] used the same device that Cole-Kripke used to develop their algorithm, and ActiGraph therefore adapted it in
the same way by scaling our data".