Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of the Light Regularity Index in the pyLight submodule #110

Open
spitschan opened this issue Jan 20, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@spitschan
Copy link

In a publication (preprint PDF here) in Sleep, Hand and colleagues recently proposed the Light Regularity Index.

From their paper:

Inspired by the formulation of the SRI, we devised an equivalent metric for light. First, we converted the light time series into a binary signal (similar to sleep vs. wake), based on whether the light level was above or below an absolute threshold (i.e., 10, 20, 50, 100, 300 and 500 lux). The LRI was then calculated by determining the probability that an individual was in the same state (above vs. below a threshold) at any two time points, 24 hours apart. The index was scaled so that an individual who records light exposure greater than their median light level at exactly the same times each day would score 100, whereas an individual who records random light exposure patterns would score 0. Participants whose LRI value was calculated using less than 5 days of overlapping valid epochs were considered missing for that period (school = 0.00%; vacation = 2.00%).

It would be a great addition to pyActigraphy.

@ghammad ghammad added the enhancement New feature or request label Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants