pyActigraphy.light.LightMetricsMixin.IS

LightMetricsMixin.IS(binarize=False, threshold=0)[source]

Interdaily stability

The Interdaily stability (IS) quantifies the repeatibilty of the daily light exposure pattern over each day contained in the activity recording.

Parameters
  • binarize (bool, optional) – If set to True, the data are binarized. Default is False.

  • threshold (int, optional) – If binarize is set to True, data above this threshold are set to 1 and to 0 otherwise. Default is 0.

Returns

is – A pandas DataFrame with IS per channel.

Return type

pd.DataFrame

Notes

This variable is derived from the original IS variable defined in ref [1] as:

\[IS = \frac{d^{24h}}{d^{1h}}\]

with:

\[d^{1h} = \sum_{i}^{n}\frac{\left(x_{i}-\bar{x}\right)^{2}}{n}\]

where \(x_{i}\) is the number of active (counts higher than a predefined threshold) minutes during the \(i^{th}\) period, \(\bar{x}\) is the mean of all data and \(n\) is the number of periods covered by the actigraphy data and with:

\[d^{24h} = \sum_{i}^{p} \frac{ \left( \bar{x}_{h,i} - \bar{x} \right)^{2} }{p}\]

where \(\bar{x}^{h,i}\) is the average number of active minutes over the \(i^{th}\) period and \(p\) is the number of periods per day. The average runs over all the days.

For the record, this is the 24h value from the chi-square periodogram (Sokolove and Bushel, 1978).

References

1

Witting W., Kwa I.H., Eikelenboom P., Mirmiran M., Swaab D.F. Alterations in the circadian rest–activity rhythm in aging and Alzheimer׳s disease. Biol Psychiatry. 1990;27:563–572.