Changelog
Source:NEWS.md
actisomni 0.5.0
- New
acti_rester()andpy_acti_rester()estimate sleep and sleep stages (deep, light, REM, wake) with the AcceleRest model from the ‘rester’ package (in Suggests; Lorenzen et al., 2026), returning the commonacti_sleep_estimateformat. Data-frame input is passed with a fixed clock so returned times are exact across daylight-saving transitions. Theactipypreprocessing information is kept inattr(x, "info"). -
acti_sleep_hdcza(),acti_sleep_horangle(),acti_sleep_sib(), andacti_sleep_ensemble()gainsmooth = "rollmedian_full", a five-second rolling median over every sample. The default,"rollmedian", is unchanged: like GGIR it uses everyfloor(sample_rate / 10)-th sample, so angles, and the HDCZA window, can change with the sample at which the data start (e.g. after subsetting to wear time)."rollmedian_full"removes this dependence but no longer matches GGIR’sanglezexactly. - New aliases
py_acti_calculate_asleep(),acti_calculate_sleeper(), andpy_acti_calculate_sleeper()complete theacti_calculate_*()naming already used byacti_calculate_asleep(). - ‘actiread’ moved from Imports to Suggests. No package code used it; it is only needed for examples and one test. This drops
actiread,GGIRread,read.gt3x,R.utils,janitor,data.table,readxl, and others from a default install (62 -> 47 recursive hard dependencies).
actisomni 0.4.0
CRAN release: 2026-10-26
-
acti_sleep_hdcza(),acti_sleep_horangle(),acti_sleep_sib(), andacti_sleep_ensemble()gain asmoothargument. The default,"rollmedian", takes a five-second rolling median of each raw axis before computing the angle, as described by van Hees et al. (2015, 2018) and implemented in GGIR’sanglez. This changes results: earlier versions computed the angle from each raw sample, whichsmooth = "none"restores. Smoothing warns when the timestamps have gaps, because the median window is counted in samples. -
acti_sleep_ensemble()smooths the raw axes once and reuses them for every angle-based guider, so messages and warnings are no longer repeated. - Requires asleep (>= 0.4.0).
actisomni 0.3.0
-
acti_asleep()andpy_acti_asleep()now return times in the input’s time zone.asleepreports local clock times without a time zone, which were previously labelled UTC, shifting predictions by the UTC offset of the input (e.g. one hour for British Summer Time). A newtzargument sets the time zone, which is needed for file-path input (default"UTC"). - For data-frame input,
acti_asleep()andpy_acti_asleep()passasleepa clock held at the UTC offset at the start of the recording, so the clock never repeats or skips an hour at a daylight-saving transition and the returned times are the exact input instants. File input still reads the device clock intz, so the two can differ after a transition. -
acti_sleep_hdcza()now defaults to GGIR’s data-driven threshold: 15 times the 10th percentile of the five-minute rolling median absolute angle change, limited to 0.13–0.5 degrees. The percentile and multiplier are set with the newthreshold_percentileandthreshold_multiplierarguments (GGIR’sHDCZA_threshold = c(10, 15)).thresholdnow defaults toNULL; set it to a number for a fixed threshold, e.g.threshold = 0.2for the previous default. - The HDCZA rolling statistic is now the median absolute angle change within each five-minute window of angles, as in GGIR, rather than the median of the changes over a window one epoch wider.
-
epocharguments (guiders,acti_sleep_sib(),acti_sleep_ensemble(),acti_sleeper()) accept numeric seconds or strings such as"30 seconds", standardized withactibase::acti_standardize_epoch(). - Requires
actibase(>= 0.8.0) foracti_standardize_epoch().