Matlab code to analyze actigraphy data. Each of following methods is stored in their own folder inside this repository.
- Bandpass filters
- Cole and Oakley methods for converting accelerometer signal to activity counts
- Conversion to time-day matrix format which is required by Rest-Activity Metric calculation
For calculating Rest-Activity Metrics, use convert2Hours to get required time-day matrix data format. Then use preprocessRA to eliminate missing hours.
- Interday stability
- Intraday variability
- Least active 5 hours
- Most active 10 hours
- testRestActivityFunctions: Testing if new RA functions work as described by the author
- testMissingData: Trying to find optimal method to combat against missing data
- Cosinor Rhymometry
- υτ (v_tau), a measure of stability in rest-activity rhythm
- Dichotomy Index (I<O)
- Autocorrelation Coefficient (r24)
- Sleep detection with Oakley method
- Double plot for visualizing actigraphy data over a couple of days
For references, please look at header of each code.