Introduction

Circadian rhythms reflect internal adaptations to the environmental light-dark cycles across solar days. The rhythms are cell-intrinsic [1], attuned to the physical environment by suprachiasmatic nucleus (SCN), the central clock pacemaker [2, 3]. Intact circadian function is key for optimal performance of virtually all biologic and physiologic processes, and perturbed circadian regulation has been prospectively linked to various age-related conditions [4, 5•].

Laboratory assessment of the endogenous circadian rhythms, i.e., the internal clock driven by the SCN, is stringent and costly. Alternatively, actigraphy allows a non-invasive and cost-effective assessment of the functional manifestation of the circadian control under naturalistic settings in terms of rest-activity patterns, enabling scalable applications in population and large cohort study settings. Actigraphy measures body movements through accelerometer sensors [6], commonly worn on the wrist, waist, or ankle. These sensors detect accelerations in X, Y, and Z directions [7], which are commonly integrated into a one-dimensional signal (i.e., activity counts) within a fixed length of time window (i.e., epoch). The term “actigraphy signal” refers to this one-dimensional signal throughout this review.

Actigraphy has been used since 1950s in biomedical research [8,9,10]. Although actigraphy can be used for measuring sedation level [11], estimating energy expenditure [11], and measuring step counts [12], it has been most commonly used to estimate sleep and circadian rest-activity patterns. The American Academy of Sleep Medicine recognized actigraphy as a useful research tool to study sleep in 1995 [9, 13]. Polysomnography remains the gold standard for sleep staging and assessment, but its cost and bulky equipment limit its widespread use [14•], especially in large cohort and population-based settings. Actigraphy provides a low-cost and easy-to-use alternative to measure multiple sleep parameters in free-living conditions with minimal interference. Several established algorithms are available for sleep-wake identification from actigraphy [14•, 15,16,17,18•].

Various features from actigraphy, such as strength, phase, stability, fragmentation, and multiscale or fractal correlation of the rest-activity patterns, shown links with disturbances or dysregulation of the endogenous circadian function [19,20,21]. In the following sections, we will introduce these previously well-established methods for analyzing circadian rest-activity patterns. We will start with a brief overview of terminologies that will be used throughout this review. Subsequently, for each method, we will briefly describe the methodological considerations and then review recent cohort studies that have adeptly employed these specific methods to establish links between circadian rest-activity patterns and various health outcomes in human participants. We will compare and discuss the strengths and limitations of each method and discuss potential applications of these measures. Lastly, we will introduce ezActi2 software, which is an open-source application that implements most of our reviewed methods to facilitate the analysis of circadian rest-activity rhythms using actigraphy data.

Overview of Terminologies

Prior to going into the details of each algorithm, to facilitate the understanding of technical terms that may not necessarily be well-known across a broader research community, in Table 1, we provide an overview of terminologies employed in this article.

Table 1 Terminologies

Parametric Analysis of Circadian Rest-Activity Rhythms

Cosinor Model

The rhythms of many biological processes appear to be sinusoidal, i.e., smoothly rising to the peak, gradually decreasing to a minimum value, and then increasing again. This phenomenon inspired a mathematical approach, cosine curve fitting, that had been heavily used in chronobiology [22]. This approach fits a cosine curve of a known frequency (e.g., one cycle per 24 h) to the data using a regression model. The approach can be easily extended to include multiple cosine components with different frequencies, typically utilizing a harmonic structure (i.e., the frequency of each additional component is an integral multiple of the “base” frequency; Table 1). The model outputs various variables, including the rhythm-adjusted mean or MESOR (Midline Estimating Statistic of Rhythm; reflects the average level of the rhythm), amplitude (reflects the strength of the rhythm), and acrophase (reflects the peak time of the rhythm). For more details on the mathematical basis of the cosinor fitting, see Supplemental Materials.

Criticism exists in applying the cosine curve fitting to actigraphy signals, as these data are often non-sinusoidal. Moreover, the approach is mathematically a truncated version of the Fourier series, which theoretically are comprised of an infinite set of harmonics to perfectly reproduce the original data. It needs more harmonics to be considered to acquire a better fit. This leads to complexity both methodologically and interpretation-wise, as the number of parameters to be estimated will increase exponentially with the number of harmonics.

To better adapt to the square wave–like shape of the actigraphy signal, a sigmoid transform-based modified cosine curve fitting was introduced by Marler and colleagues [23]. Instead of fitting the original actigraphy data by a typical cosine curve, they regressed the signal using a cosine curve nonlinearly transformed by a sigmoidal function (such as the Hill function, anti-logistic function, or the arctangent function). Although the approach may better adapt to the shape of actigraphy or rest-activity patterns, it increases the computational complexity as two more parameters in the sigmoidal transform need to be estimated, and the optimization process is complicated as it needs to be based on a nonlinear least squares regression.

Moreover, considering the non-negative nature of rest-activity data (along with many other biological and physiological time structures), Doyle et al. proposed to use the gamma distribution to replace the default Gaussian distribution for modeling regression residuals in the original cosinor model [24]. This approach is advantageous in modeling data acquired from acute care populations, in which signals are sometimes noisy and of poor quality.

Across population-based studies, lower amplitude has consistently been associated with negative outcomes, including Alzheimer’s dementia [25••], hypertension [26], insulin resistance and type 2 diabetes [27], and frailty [28•]. However, findings for other measures are less consistent. For example, in the Rush Memory and Aging Project (MAP) cohort, while earlier acrophase was not associated with Alzheimer’s dementia [25••] or overall frailty, it was associated with worsening fatigue symptoms [28•]. Conversely, in a cross-sectional study of 2450 older men, Xiao et al. found late acrophase associated with greater odds of type 2 diabetes [27]. Yet, later acrophase showed a trend association with lower odds of hypertension in a study of 6726 adults [26].

Wavelet-Based Analysis

Cosinor analysis is essentially a variant of the Fourier transform, which fundamentally assumes that the analyzed data are stationary. Furthermore, harmonics are considered a linear combination of two or more cosine/sine waves, which contradicts the nonlinear nature of actigraphy signals. Although this method can capture global features that persist over the entire signal, it is limited when the signal’s characteristics vary over time. Therefore, the challenge remains in reliably analyzing signals that are noisy and nonstationary.

Wavelet analysis has been introduced as a time-frequency domain analytical approach to better decompose a nonstationary signal. Wavelets are small oscillations within a signal that can be isolated and analyzed separately. In contrast to the Fourier analysis that decomposes a signal into a set of sine and cosine functions of fixed frequency, wavelets are in different shapes and sizes that are localized in both frequency (or scale, how the wavelet is “stretched” or “squished”) and time (or location, the position of wavelet in the time-series). By decomposing a signal into a set of wavelets at different scales, wavelet analysis can provide a multi-resolution representation of the signal, in which the larger-scale features are represented by wavelets with lower frequency oscillations and longer durations, and wavelets with higher frequency oscillations and shorter durations represent the smaller-scale features.

There are two wavelet transform types: discrete wavelet transform (DWT) and continuous wavelet transform (CWT; also known as analytic wavelet transform). We provided a technical summary of the two different types in Supplemental Materials.

In the context of circadian rest-activity analysis, Fossion et al. [29] studied two weeks of actigraphy data of individuals with regular and irregular circadian cycles using CWT. In all cases, they found a high-intensity ridge (dominant circadian rhythm) around a period of T = 1440 min (i.e., 24 h) for all the time points. However, for T < 1440 min, the intensity of T varied in time, meaning the time and amplitude variability of the circadian rhythm. For example, during the nighttime, the intensity was higher for Ts close to 1440 min, while during the daytime (higher activities), the intensity was higher for lower Ts. The scalogram of an older male adult with regular circadian cycle showed only a single circadian ridge. In contrast, the scalogram of a young male adult with an irregular circadian cycle showed multiple high-intensity ridges. They also applied DWT to the same data to decompose the actigraphy data of the same participants. They identified (with visual inspection) the 10th scale, which had a period of approximately 24 h, as the circadian cycle. They found that the young male adult with an irregular circadian cycle had the highest variation (standard deviation) in all circadian parameters (e.g., period, amplitude, and acrophase).

Although wavelet analysis has been used in some chronobiological animal studies [30, 31], to the best of our knowledge, it has not been applied to large human cohort studies. This could be because the results of wavelet analysis need visual inspection (for the specific component corresponding to the circadian cycle) and interpretation (unlike some other methods that provide numerical values as output). Also, selecting wavelets or wavelet functions requires intensive experience and expertise, limiting its use in a wider research community.

Nonparametric Analysis of Circadian Rest-Activity Rhythms

Nonparametric analysis of circadian/behavioral rhythms is an alternative approach to traditional parametric methods (e.g., cosinor analysis) [32]. In the context of actigraphy, nonparametric analysis usually adopts a 24-h period to compute interdaily stability (IS), intradaily variability (IV), the mean activity levels of the most active 10 h (M10), and the least active 5 h (L5), as well as the relative amplitude (RA). IS measures the consistency of activity rhythms across days. It ranges from 0 to 1, with greater values indicating greater stability. IV measures the fragmentation of activity rhythms within a day, with greater values indicating greater fragmentation. M10 and L5 represent the activity levels during the most active 10 h and the least active 5 h, respectively. The mid-time of the M10 and L5 windows represent the M10 phase and L5 phase, respectively. Relative amplitude can be calculated based on M10 and L5. See Supplemental Materials for the mathematical details of IS, IV, and RA.

Other measures have been proposed based on nonparametric methods. For example, Ortiz-Tudela et al. proposed an integrated measure, the circadian function index (CFI), to represent the robustness of the behavioral rhythms [33]. CFI was calculated as the average of IV (inverted and normalized), IS, and RA, with greater values indicating a more robust circadian rhythm.

Compared with parametric measures of circadian rhythms, nonparametric analysis yields several strengths, including the ability to capture irregular non-sinusoidal patterns of activity and provide insights into the dynamics of the rhythm (e.g., the stability and fragmentation of the rhythm). Moreover, it has been argued that nonparametric analysis yields higher sensitivity in detecting individuals with diseases compared to parametric analysis [34]. Nonparametric analysis has been commonly applied to actigraphy data in large cohort studies. Across demographic populations, researchers found lower IS and greater IV to be associated with adverse outcomes, including cardiovascular diseases [35,36••,37], neurodegeneration [25••,38,39•], and other diseases [40••,41].

Nevertheless, nonparametric analysis has some limitations, such as assuming the shape of the rhythm is unknown, which limits the ability to detect specific features (e.g., amplitude) of the rhythms. In addition, because nonparametric analysis is designed for assessing circadian rhythms with a period of approximately 24 h, it may not be appropriate for analyzing irregular rhythms or rhythms that deviate from 24 h (e.g., ultradian/infradian).

Data Adaptive Approach for Circadian Rest-Activity Rhythms

For wavelet analysis, the selection and determination of the mother wavelet heavily depend on experience and expert knowledge of signal processing, which are usually beyond the field of a circadian biologist. Such complications ask for a data-adaptive approach which, ideally, is an assumption-free algorithm. The empirical mode decomposition (EMD) is a data-driven method that can more accurately capture the underlying characteristics of the rhythms during irregular sleep-wake periods [42, 43]. In addition, compared with cosinor-based analysis, EMD allows to examine the irregularity of cycle lengths and amplitude.

EMD processes time series signals without making the assumption of linearity or stationarity. EMD analysis starts by identifying the local maxima and minima of a signal. Then the upper and lower envelopes are connected and averaged. The average is subtracted from the original signal to obtain a residual which will be subjected to the same sifting process as described above until the residual meets specific criteria to be considered a narrow-band signal, which will then be considered the first intrinsic mode function (IMF). This process will be repeated after removing the first IMF from the original signal to obtain all subsequent IMFs, including a final residual that cannot be decomposed further, which usually represents a non-stationary trend [50, 51].

Limitations of EMD include mode mixing and sensitivity to noise. The mode mixing issue occurs when two or more intrinsic modes are captured in a single component, resulting in difficulty separating the two modes and interpreting the results [44]. Mode mixing can be caused by intermittency, noises, or artifacts in the signal and can be resolved by several variations of EMD. For example, the ensemble EMD method reduces mode-mixing by iteratively adding white noise to the original signal that functions as random disturbances, which will be eliminated by averaging [45]. Similarly, uniform phase EMD introduces cosine-type disturbances during the sifting process to avoid mode mixing; it also helps avoid mode splitting and reduce residual noise that may exist in the ensemble EMD [46].

EMD and its variants can be applied to rest-activity rhythm data [47]. For example, in Wang and colleagues’ study [22], the amplitude of actigraphy extracted using EMD correlated with the quantity of vasoactive intestinal peptide-expressing SCN neurons. In another study, Musiek et al. found that lower EMD amplitude of actigraphy data was associated with increasing age and male gender [38]. We have also previously used uniform phase EMD to analyze actigraphy data and found reduced amplitude and increased cycle length variation associated with a greater risk of incident frailty in older adults [28•].

Nonlinear Dynamics for Circadian Rest-Activity Patterns—Fractal Analysis

In addition to the visually identifiable rhythmic near 24-h patterns, rest-activity signals demonstrate seemingly “erratic” fluctuations, especially at shorter time scales [48]. The apparent random fluctuations also prevail in many other physiological outputs, such as heart rate and neuronal activity [49]. Nonlinear dynamic analyses have revealed that these physiological fluctuations are not random, but display fractal temporal patterns, which in mathematics, describes self-affine objects with small-scale patterns resembling large-scale structures. The fractal physiological fluctuations are believed to origin from the complex feedback interactions of different processes functioning at different time scales, reflecting system integrity, and adaptability.

The circadian system is a crucial hub of the regulatory network that generates and maintains fractal patterns in physiological signals. For example, in rats, lesioning the SCN, the central circadian pacemaker, led to the disappearance of fractality in motor activity at time scales between approximately 4 and 24 h [50]. Additionally, restoring a 24-h rest-activity pattern in SCN-lesioned rats by time-restricted feeding did not bring back the perturbed fractal patterns [51], further directly evidencing that fractal offers information regarding the endogenous circadian regulation complementary to the traditionally used rhythmic metrics. Possible evidence for a similar role of the SCN functioning beyond the generation of ~24-h rhythms in humans comes from a recent study showing that aging and Alzheimer’s disease (AD) significantly perturb fractal activity regulation at large time scales between approximately 2 and 8 h [21]. For a more comprehensive review of fractals in physiology and the role of the circadian system in fractal neurophysiological patterns, readers can refer to a review by Pittman-Polletta et al. [52].

The detrended fluctuation analysis (DFA) [53] has been widely used to assess fractal patterns in physiological outputs, including rest-activity signals. The DFA calculates the fluctuation amplitude, F(n), as a function of timescale n. See Supplemental Materials for a step-by-step summary for generating the outcomes.

Based on the fractal patterns of rest-activity data, intriguing findings have been obtained in cohort and population-based studies. For example, in a 3.5-year-long randomized control trial, degradation in fractal activity patterns was associated with cognitive decline in older adults with dementia [54]. In a longitudinal study of > 1000 participants in the Rush MAP cohort, degraded fractal patterns in rest-activity signals predicted incident Alzheimer’s dementia, incident mild cognitive impairment, and faster cognitive decline, independent from many other known AD risk factors including age, education, physical activity, sleep disturbance, as well as circadian rest-activity rhythms [55]. The fractal degradation was also independently predictive of multiple physical functional declines, including frailty and disability, and death in the MAP cohort [56]. In addition, in the Knight Alzheimer’s Disease Research Center “sleep & tau cohort” [44], fractal rest-activity patterns correlating with in vivo AD pathology independent of traditional rest-activity rhythms have also been consistently demonstrated [57••].

Discussion

Assessing circadian biomarkers in humans, such as melatonin, cortisol rhythms, or core body temperature [4] that can better reflect or reveal endogenous rhythms generated by the central circadian pacemaker—the SCN, is costly and requires specialized laboratory circadian protocols, such as constant routine and forced desynchrony protocols [58, 59]. Wearable devices such as actigraphy has become a popular alternative in prospective cohort studies, which can be used to extract multidimensional features in free-living conditions, many of which have been associated with metrics for endogenous circadian functions [19,20,21]. For instance, Wang and colleagues found that the number of vasoactive intestinal peptide immunoreactive neurons in the SCN was positively correlated with the normalized amplitude of the 24-h rest-activity patterns [19]. However, despite these correlational studies, it is yet to systematically examine to what extent the rest-activity rhythms can precisely predict/reflect the endogenous rhythms. It is well-accepted that external factors, such as work or study schedules and physical exercise, can influence these rest-activity patterns [60]. Therefore, while these wearable sensors provide useful screening tool for circadian disorders, researchers should exercise caution when using them to infer endogenous circadian functions, since the features captured with these sensors reflect both endogenous circadian rhythms and exogenous circadian entrainment. Recent advances in wearable sensors such as photoplethysmography and temperature sensors may offer opportunities to extract new features using multi-sensors data that are potentially better associated with endogenous circadian rhythms as well as various health outcomes.

We have reviewed various types of rest-activity rhythm analysis methods in this work, including parametric analysis (i.e., cosinor model and wavelet analysis), nonparametric analysis, data adaptive approach (i.e., empirical mode decomposition), and nonlinear dynamical approach (i.e., fractal analysis). A major challenge is therefore how to select an appropriate method in real-world applications. Each method has its own strengths, weaknesses, and applicable contexts, as summarized in Fig. 1.

Fig. 1
figure 1

Strengths, weaknesses, and applicable contexts of different approaches for analyzing circadian rest-activity rhythms

Note that various features and inconsistent analytical approaches used in actigraphy data have led to mixed findings. For example, in the Study of Osteoporotic Fractures cohort, cosinor analysis revealed that lower amplitude or less robustness of rhythm was associated with increased risk of incident dementia or MCI [61]. In contrast, Posner et al. used nonparametric analysis in the same cohort and only found earlier sleep/wake times to be associated with increased dementia risk [62]. In a recent study of the Osteoporotic Fractures in Men cohort, all three were associated with increased odds of cognitive decline [63]. However, our recent study of the MAP cohort observed an association of AD risk with lower amplitude and increased fragmentation but not with the robustness of the rhythms or phase [25••]. Moreover, in cardiovascular health, Xu et al. found a connection between lower relative amplitude (from nonparametric analysis) and the cardiovascular disease [64•]. Similarly, Hoopes et al. employed nonparametric analysis on actigraphy data, discovering that higher IS and higher RA correlated with lower nocturnal systolic blood pressure, exclusively in women [65]. However, cosinor analysis allowed researchers to investigate other characteristics of rest-activity rhythms, suggesting that lower pseudo F statistic was associated with hypertension [26] and coronary artery disease [66], in addition to lower amplitude. These inconsistent findings hinder our understanding of circadian rhythms in the context of different health outcomes and translation of the findings into clinical practice.

Though the multidimensional features we reviewed in this work may provide complementary or overlapping information, their collective ability to better assess circadian function remains uncertain. This creates additional barriers in practice. For example, it is difficult to establish a cutoff level for circadian degradation using different methodologies, making it challenging to screen for sleep-wake or circadian disorders. A potential solution is to develop a construct encompassing all rest-activity rhythms characteristics. For example, in a prior proof-of-concept study, we established a biological age biomarker by leveraging different rest-activity rhythms features to predict chronology age. We have shown its ability to profile the chronological aging process and its prospective association with the risk of Alzheimer’s dementia [67••]. With the advance of the model machine learning models, it is possible to integrate these multidimensional features to estimate the overall functioning of the circadian system or to predict different outcomes. Future endeavors leveraging the expertise of chronobiologists, mathematicians, computer scientists, and engineers will uncover valuable but hidden information within motor activity time series.

Though algorithm details and mathematical formulas for the reviewed circadian rest-activity metrics have been specified, we realize that it would be challenging for researchers without strong programming backgrounds to conveniently calculate these metrics from raw actigraphy data. Therefore, we developed a software application, ezActi2 (Fig. 2), in the MATLAB platform (R2022a and later versions, The MathWorks Inc., Natick, MA) that enables all the above-mentioned algorithms (except the two modified versions of cosinor models and wavelet analysis). We believe that such an application will ease and facilitate these analyses in a wider community within and beyond the network of sleep and circadian biologists/physiologists and clinicians. For example, activity counts exported from actigraphy devices/software can be imported in ezActi2 to implement cosinor model, nonparametric analysis, uniform phase EMD, and fractal analysis conveniently. Researchers can then export metrics of interest (e.g., amplitude, acrophase, IS, IV) from the software. The ezActi2 has been tested and validated through many projects across our collaborative networks. It is open-source and freely available on GitHub (https://github.com/pliphd/Actigraphy). We also plan to introduce it in greater detail in a follow-up paper.

Fig. 2
figure 2

MATLAB-based App for circadian rest-activity rhythms analysis—ezActi2

Conclusion

Using actigraphy to assess sleep-wake and rest-activity rhythms has become a popular alternative to endogenous circadian biomarkers and polysomnography in cohort studies due to its lower cost and accessibility. Although various analytical approaches (e.g., parametric, nonparametric, data-adaptive, and nonlinear dynamics) have their strengths and weaknesses, they have led to mixed findings, making it challenging to compare results and understand the relationships between circadian rhythms and health outcomes. A potential solution is to develop a measure encompassing all characteristics of rest-activity rhythms, such as multidimensional digital phenotyping of circadian age, to enhance disease prediction and management at individual and population levels.