What's Changed
Improve gravity calibration routine; Update github workflows by chanshing in https://github.com/activityMonitoring/biobankAccelerometerAnalysis/pull/184
- Following van Hees paper, discard outliers before linear regression and use weighted least squares instead of ordinary least squares. We use a slight variation where we detect outliers based on a percentile (0.5%) instead of some hard threshold as in the paper. We also track the MAE instead of RMSE which is more robust to outliers.
- Use uncentered temperature (deprecate meanTemp) as it made comparing offsets across devices more cumbersome. Centering the temperature changes the offset coefficients, meaning the same device would have different offsets if they had different mean temps.
- Fix 154 where calibration coeffs were not restored when calibration fails.
- Update github workflows to reflect changes, and also switch to comparing the summary file instead of the epoch file as it is much lighter (28K vs 6.3M). We don't wanna fill up git with historical copies of epoch files.
Deprecation
Calibration is now based on the absolute temperature rather than the centered temperature. The reason for this is that it makes it easier to compare the calibr params across devices. Centering the temperature changes the offset params, so even the same device would have different offsets depending on the mean temperature. In van Hees paper temperature was centered for interpretation purposes. In the future, setting `--meanTemp` will be deprecated. Currently, passing `--meanTemp` will be ignored and force calibration. When processing UKB, we recommend always running calibration.