Skip to main content
Briefings in Bioinformatics logoLink to Briefings in Bioinformatics
. 2026 Sep 9;27(5):bbag464. doi: 10.1093/bib/bbag464

lagCI enables inference of temporal causal relationships from dense multi-omic time series

Yifei Ge 1,2,#, Shunpeng Bai 3,4,#, Zirui Qiang 5,6,#, Yijiang Liu 7,8,#, Yitong Wu 9, Xiaotao Shen 10,11,12,✉
PMCID: PMC13557713  PMID: 42716489

Abstract

Inferring causal relationships from time-series data is critical for uncovering the dynamics of biological regulation. However, in multi-omics studies, this task is often hampered by sparse temporal sampling and the limitations of existing methods. To address this, we developed Lagged-Correlation Based Causal Inference (lagCI), a computational framework designed to identify time-lagged associations by combining comprehensive lag-correlation profiling with a robust statistical filtering scheme. Rather than relying on simple cross-correlation, lagCI analyzes the entire correlation profile and applies a quality-scoring system to filter out spurious associations that often plague high-dimensional datasets. We first tested lagCI on wearable physiological data, where it successfully captured the well-known causal link between physical activity and heart rate, even accounting for variations in lag times between individuals. Moving to high-frequency human multi-omics, we used lagCI to build a directed network of 1624 molecules connected by over 157 000 predicted interactions. This network recapitulated established biological relationships, including cytokine–hormone crosstalk, and highlighted molecular hubs that may coordinate the timing of metabolic and immune responses. Overall, lagCI provides a data-driven way to extract temporal insights from dense longitudinal omics. The tool is available as an R package with multiple interfaces to support use by both bioinformaticians and clinical researchers.

Keywords: multi-omics, time-series, causal inference

Introduction

Biological systems are inherently dynamic, and the temporal coordination of molecular processes is central to physiology, adaptation, and disease [1]. Recent advances in multi-omics technologies have enabled broad molecular profiling across metabolites, lipids, proteins, and cytokines [2]. However, most existing studies rely on sparsely sampled longitudinal designs, often with sampling intervals on the scale of days to months [3]. Such low temporal resolution limits the ability to infer dynamic regulatory relationships, particularly causal interactions that unfold on minute-to-hour time scales [4].

Time-series analysis provides a foundation for inferring causal relationships from temporal data [5]. Simple lag-based approaches, including cross-correlation analysis, can identify delayed associations between paired time series, but they do not distinguish robust temporal structure from spurious correlations in noisy high-dimensional data [6, 7]. Classical approaches such as Granger causality have been widely used to infer directionality by testing whether past values of one variable improve the prediction of another [8]. Nonlinear methods, including convergent cross mapping and transfer entropy, further extend temporal inference to complex dynamical systems by capturing nonlinear or information-based dependencies [9]. More recently, multivariate time-series causal discovery methods, such as PCMCI, which combines the Peter-Clark (PC) algorithm with Momentary Conditional Independence (MCI), and related algorithms implemented in Tigramite, have been introduced to identify causal relationships in high-dimensional time-series data while controlling for confounding and autocorrelation [10]. Despite these advances, existing methods often assume linear relationships, require strong stationarity assumptions, or become computationally intractable when applied to large-scale omics datasets [11].

In parallel, the emergence of high-throughput omics technologies has enabled unprecedented molecular coverage across multiple biological layers [2]. Large-scale human multi-omics studies have demonstrated the potential to uncover disease mechanisms and molecular networks [2, 12]. However, most multi-omics studies remain limited by low sampling frequency, restricting causal interpretation. To address this gap, dense longitudinal sampling strategies have begun to emerge. Microsampling technologies now allow minimally invasive, high-frequency sampling of human blood, enabling fine-grained temporal profiling of molecular dynamics [13]. Such a dataset provides a unique opportunity to infer dynamic and potentially causal relationships between molecular entities in vivo.

Here we present Lagged-Correlation Based Causal Inference (lagCI), a computational framework for inferring time-lagged causal relationships from high-frequency multi-omics time series. lagCI is based on our previous work with several improvements [13]. By systematically evaluating lagged correlations and assessing the robustness of lag profiles, lagCI distinguishes genuine delayed associations from spurious correlations. We validate lagCI using wearable physiological time-series data and demonstrate its ability to recover known causal relationships. We then apply lagCI to a dense human multi-omics dataset generated through microsampling, constructing a large-scale directed molecular causal network. The inferred network recapitulates known biological relationships and reveals novel molecular interactions, providing a systems-level view of temporal regulation in human physiology.

Materials and methods

Overview of lagCI

We implemented a computational framework for calculating lagged correlations between time-series data using the lagCI package. This method is designed to analyze the temporal relationships between omics and wearable device data. lagCI is based on our previous work [13] with several improvements.

Prior to correlation analysis, all input time-series data underwent standardization by z-score normalization to ensure comparable scales between different data types. Time-series alignment was performed to establish a common temporal reference frame by determining the overlapping time range between datasets. The aligned time series were interpolated onto a regular time grid using either linear or constant interpolation methods. Missing data points were handled using rule-based extrapolation at time series boundaries to minimize data loss.

The core lagged correlation analysis utilized the cross-correlation function to compute correlations across different time lags [6]. Both Spearman and Pearson correlation methods were supported, with rank transformation applied for Spearman correlations. Statistical significance of correlations was evaluated using a normal approximation.

Optional data smoothing was implemented using locally weighted scatterplot smoothing (LOESS) regression. The smoothing parameters included span values and polynomial degree, which could be optimized based on data characteristics.

The quality of lagged correlation results was evaluated using a specialized scoring system that fits LOESS curves to correlation data and performs peak detection. The method normalized correlations to handle both positive and negative relationships and computed quality scores based on Spearman correlation between fitted peaks and observed data. For each pair, the optimal lag was defined as the shift at which the absolute lagged correlation was maximal, taken directly from the discrete, raw (unsmoothed) cross-correlation profile. Because Spearman and Pearson coefficients are continuous, exact ties between two or more lags effectively never arise in practice; in the deterministic event of an exact tie, the implementation selects the first (smallest-index, i.e. most negative) lag among the tied maxima, ensuring a reproducible result. The Gaussian/peak fit described above is not used to select the optimal lag; it contributes only to the quality score, which measures how closely the lag-correlation profile conforms to a single coherent peak. Broad or plateau-like profiles—the configuration most prone to producing near-ties among neighbouring lags—conform poorly to a peak shape and therefore receive low quality scores, so such ambiguous pairs are filtered out before downstream causal inference. This profile-level filtering, rather than any post-hoc tiebreaker, is what makes tied or ambiguous maximal correlations rare among retained relationships.

Results were returned as structured objects containing correlation coefficients, p values, shift times, and indices for maximum and global (zero-lag) correlations. Visualization functions provided scatter plots, alignment plots, and time-series plots to facilitate the interpretation of temporal relationships in the data. Detailed methods for lagCI are provided in the Supplementary Note.

Time alignment and missingness

To reduce edge artifacts, no extrapolation beyond observed boundaries was applied in the final analyses; instead, lag scans were restricted to the overlapping window across series. Internal gaps shorter than a preset threshold were optionally imputed (linear or last-observation-carried-forward), whereas longer gaps remained missing and were excluded pairwise during correlation evaluation. This policy follows the practical guidance in the tutorial’s data-processing chapter.

Smoothing policy

LOESS smoothing was used only as an optional visualization aid. All statistical inference, including significance testing, false discovery rate (FDR) control, and peak-lag determination, was performed on the raw, unsmoothed series to preserve the serial-dependence structure essential for identifying temporal lags.

Robustness analyses

We systematically varied temporal resolution (Δt), maximum tested lag, the correlation metric (Pearson versus Spearman), and interpolation strategy. Stability was summarized by the agreement of the sign and magnitude of Inline graphic across settings and by peak sharpness (top-1 versus top-2 ∣r∣gap).

Deployment of lagCI and lagcishiny

We have deployed lagCI and lagcishiny in multiple formats. Both tools are implemented as R packages and can be installed directly from GitHub: the command-line version (lagCI) is available at https://github.com/jaspershen-lab/lagci, and the graphical interface (lagcishiny) at https://github.com/jaspershen-lab/lagcishiny.

To ensure seamless cross-platform compatibility and reproducibility, we also provide Dockerized versions of both tools, available via Docker Hub at https://hub.docker.com/r/jaspershenlab/lagci. For users who prefer not to install any software, a fully hosted and interactive online instance of lagcishiny is maintained at https://lagcishiny.jaspershenlab.com, offering immediate access through a web browser. Comprehensive installation guides, usage tutorials, and deployment instructions for all versions are available at https://www.shen-lab.org/lagci-tutorial.

To further facilitate reproducibility, we provide a fully executable example workflow using the built-in demo dataset in the Supplementary Note. This example includes the R code required to run lagCI, together with representative outputs from each major analysis step, allowing users to reproduce a simple temporal inference analysis from input data to lag-profile visualization and causal relationship reporting.

Simulation benchmarking

Simulated time-series datasets were generated using the structural causal process framework implemented in Tigramite [10]. Four temporal causal structures were considered: direct, chain, fork, and bidirectional feedback structures. For each structure, directed lagged ground-truth edges were manually defined, with true causal lags randomly sampled from 1 to 3 time steps. Each variable followed a linear autoregressive process with Gaussian process noise. To evaluate robustness, simulations were performed across three sample sizes, three measurement-noise levels, and 20 random seeds per setting, resulting in 720 datasets in total (Supplementary Data 1, Table  S1).

lagCI was benchmarked against pairwise Granger causality, implemented using the statsmodels package [8, 14], and the Tigramite package. All methods were evaluated using a maximum lag of 10 time steps and a nominal significance threshold of p value <0.05. For Granger causality and PCMCI, the minimum p value across tested lags was used for edge detection, and the corresponding lag was used as the estimated lag. Performance was assessed by comparing predicted directed edges with known ground-truth edges. F1 scores were calculated for causal-link recovery. For correctly recovered edges, lag-estimation accuracy was evaluated as the absolute difference between the estimated lag and the true simulated lag.

Demo datasets

Wearable dataset

The wearable dataset used to validate the lagCI algorithm was obtained from a previously published study on early detection of COVID-19 using smartwatch data [15]. Briefly, the dataset includes continuous time-series recordings of physiological signals, primarily step count and heart rate. The publicly available dataset contains wearable data from 120 individuals in total, including 32 COVID-19 positive cases, 15 with non-COVID respiratory illnesses, and 73 contemporaneous healthy controls. The data were captured using consumer-grade wearable devices such as Fitbit and Apple Watch, spanning periods both before and after symptom onset.

To validate the ability of lagCI to detect temporally shifted relationships, we selected representative pairs of physiological variables, namely, heart rate and step count, and applied lagCI to infer whether one signal anticipates changes in the other. Only individuals with overlapping heart-rate and step-count time series were included in this analysis.

Dense human multi-omics dataset

The dense human multi-omics dataset was obtained from a previously published study on high-frequency microsampling for lifestyle-associated health profiling [13]. Briefly, a single participant was enrolled. To enable dense longitudinal sampling while maintaining participant compliance, a self-collection protocol was implemented: the participant performed finger-prick microsampling approximately once per hour during waking hours and once every 2 hours during overnight periods, over a span of seven consecutive days. Immediately after collection, each sample was placed on dry ice and shipped daily to the laboratory for processing. A total of 97 microsamples were collected and subjected to in-depth multi-omics profiling, including: [1] untargeted proteomics, [2] untargeted metabolomics, [3] semi-targeted lipidomics, and [4] targeted assays for cytokines, hormones, total protein, and cortisol.

General statistics

Multiple hypothesis testing was corrected using the FDR method. For the high-confidence molecular network, Bonferroni-adjusted p values were used. Icons used in figure illustrations were sourced from iconfont.cn and are licensed under the Massachusetts Institute of Technology license for non-commercial use (https://pub.dev/packages/iconfont/license).

Results

Overview of lagCI

To uncover causal relationships between two biological time series, we developed lagCI, a computational algorithm that infers directionality based on the principle of lagged correlation [8]. Biological systems are inherently dynamic, and causal effects often manifest with a temporal delay [4]. That is, if variable X causally regulates variable Y, changes in X are typically followed by delayed responses in Y. This delay, known as lag time, causes the two time series to fluctuate asynchronously [16]. Capturing this temporal offset forms the foundation of the lagCI algorithm.

The lagCI algorithm begins by systematically shifting one time series relative to another across a user-defined lag window (Fig. 1a and Methods). For each shift, lagCI computes the Pearson correlation coefficient (ρ) and the corresponding p value. This results in two vectors: Lag_cor, representing correlation coefficients across lags, and Lag_P, their associated significance values. To assess whether a strong correlation at a particular lag reflects a true temporal relationship or random fluctuation, lagCI fits the Lag_cor distribution to a Gaussian model, thereby generating predicted correlations (Fitted_cor) under the assumption of a null temporal structure (Fig. 1b). A quality score is then calculated as the absolute Spearman correlation between the observed Lag_cor and the Fitted_cor vectors. This metric quantifies the internal consistency of the lag-correlation profile, i.e. whether peak correlations are supported by a coherent trend across lag values rather than isolated outliers. Only time series pairs with high-quality scores are retained for downstream causal inference, ensuring that spurious or noisy correlations are filtered out (Methods). Finally, only the peak Lag_cor at non-zero lag (shift time) is considered as a causal relationship between two time series.

Figure 1.

Three-panel schematic of the lagCI framework. (a) Two time series are shifted relative to each other across multiple lag positions, and correlations are calculated at each shift. (b) lagCI evaluates and fits the resulting lag-correlation profile, calculates a quality score, and reports the inferred temporal causal relationship, including the maximum lagged correlation, its associated p value, the corresponding shift time, and the inferred direction. (c) The lagCI command-line R package and Shiny graphical interface can be deployed through Docker on local servers, personal computers, and cloud servers.

Overview of the lagCI algorithm for causal inference between time series. (a) Lagged correlation analysis. (b) Quality control and temporal causal relationship inference. (c) Software implementation and deployment.

To support widespread adoption, we implemented lagCI as a fully documented and open-source R package, designed for seamless integration into existing time-series or omics workflows. In addition to command-line functionality, lagCI offers a Shiny-based graphical user interface, enabling interactive visualization of lag profiles and inferred causal directionality. The entire pipeline is also containerized using Docker, facilitating reproducible deployment across local workstations, institutional clusters, and cloud platforms (Fig. 1c). For broader accessibility, we developed a publicly hosted version at https://lagcishiny.jaspershenlab.com, providing point-and-click functionality for researchers without programming expertise.

Simulation benchmark with known causal ground truth

To quantitatively evaluate lagCI under controlled temporal causal structures, we generated 720 simulated time-series datasets with known directed lagged ground truth (Methods and Supplementary Data 1, Table  S1). Four canonical causal structures were considered, including direct, chain, fork, and bidirectional feedback structures (Fig. 2a). These structures were designed to represent distinct temporal inference scenarios: simple direct regulation, indirect propagation through an intermediate variable, shared upstream regulation, and reciprocal feedback. We then benchmarked lagCI against pairwise Granger causality [8] and PCMCI, implemented in Tigramite [10].

Figure 2.

Three-panel benchmark of lagCI using simulated time-series data with known causal relationships. (a) The experimental design includes direct, chain, fork, and feedback causal structures generated across different sample sizes, noise levels, and random seeds. (b) Bar charts compare causal-link recovery by lagCI, Granger causality, and PCMCI across the four causal motifs. (c) Density plots compare the errors between estimated and true lag times for correctly recovered causal relationships.

Simulation benchmark of lagCI with known causal ground truth. (a) Simulation experiment design. (b) Causal-link recovery across four causal motifs. (c) Lag-time estimation accuracy on recovered edges.

Across causal structures, lagCI showed strong performance in recovering true directed lagged edges, particularly in non-feedback structures (Fig. 2b). In the direct motif, lagCI achieved the highest F1 score among the three methods (F1 = 0.86), outperforming Granger causality (F1 = 0.80) and PCMCI (F1 = 0.75). Similar trends were observed in the chain and fork motifs. These results indicate that lagCI can effectively recover time-ordered relationships in settings involving direct propagation, indirect temporal structure, and common upstream drivers. In contrast, lagCI performed less well in the feedback motif, achieving an F1 score of 0.62, compared with 0.86 for Granger causality and 0.91 for PCMCI. This reduction is consistent with the pairwise design of lagCI, which identifies the dominant lagged direction between a pair of variables and is therefore less suited for resolving bidirectional feedback loops where two opposing causal directions coexist.

We next evaluated whether the correctly recovered causal links were assigned accurate temporal delays. Among true-positive edges, lagCI showed the most concentrated lag-error distribution around zero, indicating that it more accurately estimated the simulated time delays than the benchmark methods (Fig. 2c and Supplementary Data 1, Table  S2). To further assess whether lagCI-derived scores could prioritize reliable temporal relationships, we performed additional permutation-null analyses (Supplementary Note). Both the quality score and the absolute maximum lagged correlation were substantially higher for true simulated relationships than for permuted noise pairs, supporting their utility for filtering and ranking candidate causal links (Supplementary Fig. 1a). We also evaluated ranking performance using a top-k recovery analysis (Supplementary Note). All pairs ranked within the top 10, top 20, and top 50 were true simulated relationships, and the overall average precision reached 0.86 (Supplementary Table S4). Together, these simulations demonstrate that lagCI can recover directed lagged relationships, estimate their temporal delays, and prioritize high-confidence links in controlled temporal systems.

Validation of lagCI using smartwatch data

To assess whether lagCI can reliably identify true causal relationships between biological time series, we applied the algorithm to a well-established physiological relationship: physical activity and heart rate. It is widely accepted that increases in physical activity (e.g. walking or running, quantified as steps) lead to elevated heart rates, a clear directional causal relationship [17]. This provided an ideal validation scenario.

We leveraged a publicly available wearable dataset from a previous study on early detection of coronavirus disease 2019 (COVID-19), which includes continuous step counts and heart rate measurements collected via smartwatches from 120 participants over ~1 month each (Methods and Supplementary Table S1) [15]. For each participant, we applied lagCI to evaluate the lagged correlation between step count and heart rate time series (Fig. 3a and Supplementary Table S2). Across all participants, we observed significant lagged correlations, indicating robust detection of the expected causal direction from steps to heart rate. Notably, the estimated lag times varied among individuals, clustering into three major groups based on the shift at which the maximum correlation was observed. A total of 53 participants showed peak correlation at a 1-min lag, 64 participants at a 2-min lag, and two participants at a 3-min lag (Fig. 3b).

Figure 3.

Four-panel validation of lagCI using smartwatch step-count and heart-rate data. (a) Schematic of the validation dataset and lagCI analysis of the expected temporal relationship from physical activity to heart rate. (b) Lagged-correlation profiles from participants are grouped according to peak delays of 1, 2, or 3 min. (c) Representative hexbin scatterplots from the three groups show positive associations between shifted step counts and heart rates. (d) Paired time-series plots for the same representative participants illustrate that increases in step activity are followed by increases in heart rate.

Validation of lagCI using step count and heart rate data from wearable smartwatches. (a) Schematic overview of the validation dataset. (b) Distribution of lagged correlation profiles across participants, stratified by peak correlation occurring at 1-min, 2-min, or 3-min lag. (c) Hexbin scatterplots of steps versus heart rate for one representative participant from each group. (d) Time series plots of step counts and heart rate for the same three representative participants.

To illustrate representative examples from each group, we selected one participant per cluster (Methods). In all cases, positive correlations between steps and shifted heart rates were evident (Fig. 3c), with Spearman correlation coefficients of 0.6874, 0.6822, and 0.5641 for 1-min, 2-min, and 3-min shift times, respectively. These relationships are also visually apparent in time-aligned scatter and line plots, where bursts in step activity were consistently followed by heart rate increases (Fig. 3d). These results demonstrate that lagCI accurately identifies the temporal directionality of this known physiological causal relationship at an individual level. Additional sensitivity analyses on the smartwatch dataset showed that lagCI consistently recovered the expected direction across different correlation metrics and interpolation strategies (Supplementary Note and Supplementary Fig. 1b–d). The observed inter-individual differences in lag times are biologically plausible, likely reflecting variation in fitness level, cardiovascular responsiveness, or body mass index (BMI) among participants [18]. Demographic data were not available in the source dataset to further investigate these hypotheses [15]. Future studies with richer metadata will be necessary to explore the physiological drivers of such inter-individual variation in temporal coupling.

To assess the effect of temporal resolution, we further performed a subsampling analysis on the smartwatch dataset (Supplementary Note). Starting from the original 1-min data, we subsampled the time series to resolutions of 2, 5, 10, 15, 30, and 60 min and re-ran lagCI. The recovery rate decreased from 100% at 1 min to 85.7% at 2 min, 54.6% at 5 min, 37.8% at 10 min, and 28.6% at 15 min, and reached 0% at 30 and 60 min (Supplementary Fig. 2a). Importantly, reduced temporal resolution did not lead to systematic reversal of direction. Instead, when the sampling interval became too coarse to resolve the short 1-3 min physiological delay between activity and heart-rate response, the inferred lag collapsed toward zero, and the result became ambiguous.

We also benchmarked lagCI against Granger causality and PCMCI on the same smartwatch dataset (Supplementary Note). Under a dominant-direction criterion, lagCI, Granger causality, and PCMCI recovered the expected steps-to-heart-rate direction in 100%, 99.2%, and 99.2% of participants, respectively. Under a stricter unambiguous criterion, however, Granger causality and PCMCI frequently detected both directions as significant, whereas lagCI provided a single direction call based on the peak lag (Supplementary Fig. 2b). In summary, this validation supports the robustness of lagCI for inferring temporal relationships from real-world time-series data, successfully capturing known dynamic biological relationships with individual-level resolution.

LagCI uncovers extensive potential causal relationships among circulating molecules

To systematically uncover dynamic molecular regulation in humans, we next applied lagCI to infer potential causal relationships among circulating molecules. Biological processes in vivo operate across a wide range of time scales, from minutes to hours, necessitating high-resolution temporal sampling to resolve directionality and delays between molecular events [13, 19]. Conventional multi-omics studies are limited in this regard due to low sampling frequency. By contrast, microsampling-based multi-omics enables high-frequency longitudinal profiling of human blood. We previously developed this platform to facilitate dense temporal sampling in humans [13]. Here, we leveraged a published dataset generated using this approach, in which a single participant collected fingertip blood samples every 2-3 hours over 7 consecutive days under free-living conditions, yielding 97 time points [13] (Fig. 4a and Supplementary Fig. 3). This dataset provides a unique opportunity to decode in vivo molecular causal relationships at high temporal resolution.

Figure 4.

Multi-panel analysis of high-frequency human blood multi-omics data collected from one participant over seven days. (a) Schematic of frequent fingertip blood microsampling and multi-omics profiling. (b) Workflow showing multi-omics data processing, lagCI analysis, construction of a lagged-correlation network, and identification of potential temporal causal relationships. (c) Circular high-confidence cross-omics network in which node color represents omics type, node size represents connectivity, edge color represents inferred temporal direction, and edge width represents maximum lagged-correlation strength. (d-g) Representative scatterplots and lag-correlation profiles showing temporal relationships between IL-6 and glucagon, a triacylglycerol species containing FA 18:1 and GRO, FFA(22:4) and cortisol, and pancreatic polypeptide and insulin, respectively.

Inference of causal molecular relationships from high-frequency human multi-omics data. (a) High-frequency microsampling and multi-omics profiling of blood samples collected from one participant over 7 days. (b) Data analysis workflow. (c) High-confidence cross-omics lagged correlation network inferred by lagCI. Displayed edges were retained using stringent filtering criteria: quality score > 0.95, absolute maximum lagged correlation >0.55, and Bonferroni-adjusted P < .001. Up to the top 20 bridge nodes from each omics type were selected based on cross-omics degree. Node color indicates omics type, node size indicates degree, edge color indicates inferred temporal direction, and edge width represents the maximum lagged correlation estimated by lagCI. (d–g) Representative temporal relationships identified by lagCI. Observed lagged correlations are distinguished according to statistical significance (P ≤ .05 or P > .05), point size represents -log10(p value), and the curve shows the lagCI-fitted correlation profile.

We analyzed this high-density multi-omics dataset using lagCI (Fig. 4b and Supplementary Table S2). Specifically, we performed exhaustive pairwise evaluation across 1624 detected molecules, including 467 metabolites, 811 lipids, 292 proteins, 41 cytokines, and 13 hormones [13]. For each molecular pair, lagCI computed lagged correlation profiles, identified optimal delay times, and assigned quality scores reflecting signal strength and robustness. High-confidence putative causal links were defined using stringent criteria: absolute maximum lagged correlation >0.5, Bonferroni-adjusted p value <0.05, and quality score > 0.8. After filtering, the lagCI-inferred network comprised 1542 molecules connected by 157,489 directed edges, including both intra-omics and inter-omics relationships (153,557 and 3932 edges, respectively). Although lagCI was applied to all molecular pairs, we focused the subsequent visualization and interpretation on high-confidence inter-omics edges to highlight temporal relationships across omics layers (Fig. 4c). These directed edges represent time-shifted relationships in which changes in one molecule precede changes in another.

This data-driven network revealed a rich and structured landscape of molecular interdependencies. The network exhibited a scale-free topology, with a small subset of highly connected hub molecules. The most connected node, a diacylglycerol species [DAG(18:2_22:5)], showed a degree of 613, with lag times spanning −210 to 690 min, followed by DAG(14:0_18:2) (degree = 607) and DAG(16:0_18:2) (degree = 605), highlighting the central role of lipid species in coordinating metabolic and signaling processes [20]. Additional hub nodes included apolipoprotein E (degree = 338), gastric inhibitory polypeptide (degree = 320), and growth-regulated oncogene (GRO; degree = 82), suggesting active involvement of lipid, endocrine, and immune regulators in shaping temporal molecular dynamics [21]. These hubs likely represent key orchestrators of multi-omic transitions in circulation.

Importantly, lagCI recovered multiple well-established molecular relationships that are consistent with known physiological mechanisms (Fig. 4d–g). For example, an increase in interleukin-6 (IL-6) preceded a rise in glucagon by ~4 hours (Fig. 4d; lagged correlation = 0.557, Bonferroni-adjusted p value = 0, shift time = −240 min), consistent with the role of IL-6 in modulating pancreatic α-cell activity and glucagon secretion [22]. Similarly, an increase in the triacylglycerol species 45:1 containing an 18:1 fatty acyl chain was followed by a decrease in the chemokine GRO after ~3.5 hours (Fig. 4e; lagged correlation = −0.581, Bonferroni-adjusted p value = 0, shift time = −210 min), in line with established links between lipid metabolism and inflammatory signaling [23]. We also observed that elevation of the free fatty acid FFA(22:4) preceded a reduction in cortisol within ~30 min (Fig. 4f; lagged correlation = −0.655, Bonferroni-adjusted p value = 0, shift time = −30 min), consistent with evidence that elevated free fatty acids can suppress hypothalamic–pituitary–adrenal axis activity [24]. Finally, insulin and pancreatic polypeptide displayed near-synchronous increases (Fig. 4g; lagged correlation = 0.8643, Bonferroni-adjusted p value = 0, shift time = 0 min), reflecting their coordinated secretion in response to feeding and autonomic regulation [25].

To further assess whether lagCI can support large-scale pairwise analyses, we performed controlled single-pair benchmarking by varying time-series length and the number of tested lag positions. Runtime increased gradually across the tested settings, while memory usage scaled approximately linearly with series length (Supplementary Note and Supplementary Table S3). Together, these results demonstrate that lagCI can efficiently prioritize high-confidence time-shifted molecular relationships from dense microsampled human multi-omics data. The resulting network provides a proof-of-concept systems-level view of how molecular signals may propagate across multiple omic layers over time within a single individual under dense longitudinal sampling.

Discussion

We present lagCI, a computational framework for inferring temporal directionality from biological time series by exploiting delayed correlation structure. Across simulations and two real-world settings, including a smartwatch-based physiological validation task and a dense human blood multi-omics dataset, lagCI recovered time-ordered relationships that were consistent with known biology and identified a large number of previously unresolved molecular dependencies. Together with its open-source implementation in R, graphical Shiny interface, and containerized deployment, lagCI provides a practical and accessible framework for converting dense longitudinal data into biologically interpretable hypotheses about temporal ordering.

Many regulatory effects are not instantaneous [26], and biological responses often unfold over timescales ranging from minutes to hours. However, most commonly used methods assume synchronous relationships between variables [27]. lagCI was designed to address this gap. Rather than attempting to fully reconstruct mechanistic causation from observational data, lagCI asks a narrower and practically useful question: whether changes in one variable consistently precede changes in another with a reproducible lag structure. This framing is well-suited to dense longitudinal omics and wearable datasets, where temporal ordering can provide strong clues about regulatory organization even when intervention data are unavailable.

The simulation benchmark clarified the operating range of lagCI under controlled temporal causal structures with known ground truth. lagCI showed strong performance in recovering directed lagged edges in direct, chain, and fork structures, and provided accurate estimates of the underlying time delays among correctly recovered edges. These results support the utility of lagCI for identifying dominant time-ordered relationships in common temporal propagation scenarios.

The smartwatch analysis illustrates this point clearly. lagCI recovered the expected direction from physical activity to heart rate across individuals and resolved subject-specific lag times on the order of minutes [28]. This result serves as an important validation because the underlying physiological relationship is well established, while the observed inter-individual variation is itself biologically plausible. Differences in cardiovascular fitness, autonomic responsiveness, metabolic state, or other personal factors could all contribute to distinct temporal delays between motion and heart-rate response [29]. More broadly, this result highlights one strength of lagCI: it operates at the individual level, enabling detection of individual-specific temporal structure rather than collapsing all dynamics into cohort averages.

The application to dense human multi-omics data further demonstrates the potential of lagCI in systems biology. Using high-frequency microsampled blood measurements [13], lagCI generated a directed molecular network spanning metabolites, lipids, proteins, cytokines, and hormones. This network recapitulated multiple known relationships, including interactions linking inflammatory cytokines, metabolic hormones, and endocrine regulators, lending confidence to the biological validity of the inferred causal relationships.

An important feature of lagCI is that it does not rely solely on the maximum lagged correlation. Instead, it evaluates the overall shape of the lag-correlation profile and prioritizes relationships with coherent, peak-supported structure. This quality-control step is intended to distinguish meaningful delayed relationships from isolated peaks caused by random alignment, noise, or local fluctuations. In practice, this proved valuable in both validation and application settings, where a large number of possible pairwise comparisons could otherwise generate unstable or difficult-to-interpret results. By combining lag scanning and profile-level quality assessment, lagCI provides a transparent and scalable analysis strategy that remains straightforward to interpret. The availability of the same workflow through command-line execution, graphical exploration, and Dockerized deployment further lowers the barrier to use across a wide range of computational environments.

At the same time, several limitations should be emphasized. First, lagCI infers temporal directionality, not mechanistic causation in the strict experimental sense. A delayed X → Y relationship may reflect direct regulation, indirect mediation through unmeasured intermediates, shared upstream drivers, feedback loops, or structured environmental inputs. This limitation was also evident in the feedback simulations, where lagCI performed less well than Granger causality and PCMCI, consistent with its pairwise design and its tendency to identify the dominant lagged direction rather than simultaneously resolving two opposing causal directions within a reciprocal loop. As with other observational causal discovery approaches, temporal precedence strengthens biological plausibility but does not by itself establish a mechanism. Second, the method depends on data quality and preprocessing. Irregular sampling, missingness, smoothing, interpolation, and detrending choices can all affect the estimated lag structure. Although our framework restricts inference to aligned observations and incorporates profile-level filtering, preprocessing remains an important determinant of reliability. Third, pairwise lagged correlation cannot fully account for confounding in complex biological systems. In dense molecular networks, many variables are strongly interdependent, and some inferred edges may represent indirect rather than direct relationships. Finally, the dense multi-omics application presented here was derived from a single individual, which limits the population-level generalizability of the inferred molecular network. We therefore emphasize that this analysis should be interpreted primarily as a proof-of-concept demonstration of lagCI in an ultra-dense sampling setting rather than a comprehensive map of universal human molecular causality. Nevertheless, such datasets remain extremely rare due to the logistical and technical challenges associated with high-frequency longitudinal multi-omics profiling in humans. Despite this limitation, the network successfully recovered multiple well-established physiological relationships, supporting the biological plausibility of the inferred temporal structure. Future studies involving larger cohorts with dense repeated sampling will be essential to determine which inferred lagged relationships are conserved across individuals and which are person-specific.

These limitations point naturally to future directions. Extending lagCI beyond pairwise analysis toward multivariate or conditional frameworks would help distinguish direct from indirect temporal dependencies and better address confounding. Incorporating nonlinear similarity measures or information-theoretic dependence may also improve sensitivity to relationships that are not well captured by linear correlation. At the study-design level, applying lagCI to larger cohorts with repeated dense sampling will be essential for identifying which lagged relationships are person-specific, which are conserved, and how temporal coupling varies with physiology, disease, or intervention. Finally, combining lagCI with perturbational or interventional studies could provide a powerful route from time-ordered association to experimentally supported mechanism.

In summary, lagCI provides a statistically grounded and user-accessible framework for inferring temporal directionality from biological time series. By coupling lag-profile evaluation with scalable software and dense longitudinal data, it enables the recovery of known biology and the discovery of previously unresolved time-ordered molecular relationships. We anticipate that lagCI will be broadly useful for analyzing wearable, physiological, and multi-omics time series, and that it will serve as a foundation for future efforts in causal discovery from high-resolution longitudinal biology.

Key points

  • We developed Lagged-Correlation Based Causal Inference (lagCI), a computational framework for identifying time-lagged associations through comprehensive lag-correlation profiling and robust statistical filtering. lagCI enables the prioritization of putative causal relationships among molecular features in dense longitudinal multi-omics data.

  • We applied lagCI to dense human multi-omics data and successfully recovered well-known physiological relationships while constructing a large-scale directed molecular causal network of over 157,000 predicted interactions, demonstrating its capacity to uncover dynamic molecular regulation and resolve individual-specific lag times.

  • The framework is implemented as an open-source R package with a Shiny-based graphical user interface and Dockerized deployment options, providing researchers with an accessible, transparent, and scalable analysis strategy for converting dense longitudinal data into biologically interpretable hypotheses.

Supplementary Material

lagci_final_supplementary_file_bbag464
Supplementary_Data_1_bbag464

Acknowledgements

The authors acknowledge the use of ChatGPT (OpenAI) for assistance with language polishing and grammar correction during the preparation of this manuscript.

Contributor Information

Yifei Ge, Lee Kong Chian School of Medicine, Nanyang Technological University, 59 Nanyang Drive, Singapore 636921, Singapore; School of Chemistry, Chemical Engineering and Biotechnology, Nanyang Technological University, 62 Nanyang Drive, Singapore 637459, Singapore.

Shunpeng Bai, Lee Kong Chian School of Medicine, Nanyang Technological University, 59 Nanyang Drive, Singapore 636921, Singapore; College of Life Science and Technology, Huazhong Agricultural University, No. 1 Shizishan Street, Hongshan District, Wuhan, Hubei 430070, China.

Zirui Qiang, Lee Kong Chian School of Medicine, Nanyang Technological University, 59 Nanyang Drive, Singapore 636921, Singapore; College of Computer Science and Technology, Harbin Institute of Technology, HIT Campus, The University Town of Shenzhen, Xili, Nanshan District, Shenzhen, Guangdong 518055, China.

Yijiang Liu, Lee Kong Chian School of Medicine, Nanyang Technological University, 59 Nanyang Drive, Singapore 636921, Singapore; School of Chemistry, Chemical Engineering and Biotechnology, Nanyang Technological University, 62 Nanyang Drive, Singapore 637459, Singapore.

Yitong Wu, School of Biological Sciences, The University of Hong Kong, Pok Fu Lam Road, Hong Kong, China.

Xiaotao Shen, Lee Kong Chian School of Medicine, Nanyang Technological University, 59 Nanyang Drive, Singapore 636921, Singapore; School of Chemistry, Chemical Engineering and Biotechnology, Nanyang Technological University, 62 Nanyang Drive, Singapore 637459, Singapore; Singapore Phenome Center, Lee Kong Chian School of Medicine, Nanyang Technological University, 59 Nanyang Drive, Singapore 636921, Singapore.

Author contributions

Yifei Ge (Methodology, software development, documentation and user tutorials, case study analysis, figure generation, and writing), Shunpeng Bai (Methodology, software development, documentation and user tutorials, case study analysis, figure generation, and writing), Zirui Qiang (Methodology and software development), Yijiang Liu (Docker-based implementation and software development), Yitong Wu (Case study analysis and figure generation), and Xiaotao Shen (Conceptualization, supervision, methodology, software development, figure generation, and writing).

Funding

This work was supported by start-up funding (Nanyang Assistant Professorship) awarded to Xiaotao Shen by the Lee Kong Chian School of Medicine and the School of Chemistry, Chemical Engineering and Biotechnology at Nanyang Technological University, Singapore. This work was also supported by a Tier 1 grant from the Ministry of Education, Singapore, to Xiaotao Shen (Grant number: #025402-00001).

Data availability

All datasets analyzed in this study were derived from previously published studies [13, 15]. No new datasets were generated as part of this work.

Code availability

All software development, data processing, and statistical analyses were performed using R (version 4.5.2) and associated packages (Supplementary Note). The code for the lagCI algorithm and its graphical interface, lagcishiny, is available at https://github.com/jaspershen-lab/lagci and https://github.com/jaspershen-lab/lagcishiny, respectively.

Competing interests

The authors declare no conflict of interest.

Additional information

Correspondence and requests for materials should be addressed to Xiaotao Shen.

References

  • 1. Bar-Joseph  Z, Gitter  A, Simon  I. Studying and modelling dynamic biological processes using time-series gene expression data. Nat Rev Genet  2012;13:552–64. 10.1038/nrg3244 [DOI] [PubMed] [Google Scholar]
  • 2. Hasin  Y, Seldin  M, Lusis  A. Multi-omics approaches to disease. Genome Biol  2017;18:83. 10.1186/s13059-017-1215-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3. Zhou  W, Sailani  MR, Contrepois  K  et al. Longitudinal multi-omics of host-microbe dynamics in prediabetes. Nature.  2019;569:663–71. 10.1038/s41586-019-1236-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4. Finkle  JD, Wu  JJ, Bagheri  N. Windowed Granger causal inference strategy improves discovery of gene regulatory networks. Proc Natl Acad Sci U S A  2018;115:2252–7. 10.1073/pnas.1710936115 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5. Runge  J, Bathiany  S, Bollt  E  et al. Inferring causation from time series in earth system sciences. Nat Commun  2019;10:2553. 10.1038/s41467-019-10105-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Hanson  JA, Yang  H. Quantitative evaluation of cross correlation between two finite-length time series with applications to single-molecule FRET. J Phys Chem B  2008;112:13962–70. 10.1021/jp804440y [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7. Dean  RT, Dunsmuir  WTM. Dangers and uses of cross-correlation in analyzing time series in perception, performance, movement, and neuroscience: the importance of constructing transfer function autoregressive models. Behav Res Methods  2016;48:783–802. 10.3758/s13428-015-0611-2 [DOI] [PubMed] [Google Scholar]
  • 8. Granger  CWJ. Investigating causal relations by econometric models and cross-spectral methods. Econometrica.  1969;37:424–38. 10.2307/1912791 [DOI] [Google Scholar]
  • 9. Sugihara  G, May  R, Ye  H  et al. Detecting causality in complex ecosystems. Science.  2012;338:496–500. 10.1126/science.1227079 [DOI] [PubMed] [Google Scholar]
  • 10. Runge  J, Nowack  P, Kretschmer  M  et al. Detecting and quantifying causal associations in large nonlinear time series datasets. Science. Advances.  2019;5:eaau4996. 10.1126/sciadv.aau4996 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11. Yuan  AE, Shou  W. A rigorous and versatile statistical test for correlations between stationary time series. PLoS Biol  2024;22:e3002758. 10.1371/journal.pbio.3002758 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12. Subramanian  I, Verma  S, Kumar  S  et al. Multi-omics data integration, interpretation, and its application. Bioinform Biol Insights  2020;14:1177932219899051. 10.1177/1177932219899051 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13. Shen  X, Kellogg  R, Panyard  DJ  et al. Multi-omics microsampling for the profiling of lifestyle-associated changes in health. Nat Biomed Eng  2024;8:11–29. 10.1038/s41551-022-00999-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14. Seabold  S, Perktold  J. Statsmodels: econometric and statistical Modeling with python. SciPy  2010;2010:92–96. 10.25080/Majora-92bf1922-011 [DOI] [Google Scholar]
  • 15. Mishra  T, Wang  M, Metwally  AA  et al. Pre-symptomatic detection of COVID-19 from smartwatch data. Nat Biomed Eng  2020;4:1208–20. 10.1038/s41551-020-00640-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16. Ye  H, Deyle  ER, Gilarranz  LJ  et al. Distinguishing time-delayed causal interactions using convergent cross mapping. Sci Rep  2015;5:14750. 10.1038/srep14750 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17. White  DW, Raven  PB. Autonomic neural control of heart rate during dynamic exercise: revisited. J Physiol  2014;592:2491–500. 10.1113/jphysiol.2014.271858 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18. Ludwig  M, Hoffmann  K, Endler  S  et al. Measurement, prediction, and control of individual heart rate responses to exercise—basics and options for wearable devices. Front Physiol  2018;9:778. 10.3389/fphys.2018.00778 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19. Velten  B, Stegle  O. Principles and challenges of modeling temporal and spatial omics data. Nat Methods  2023;20:1462–74. 10.1038/s41592-023-01992-y [DOI] [PubMed] [Google Scholar]
  • 20. Kolczynska  K, Loza-Valdes  A, Hawro  I  et al. Diacylglycerol-evoked activation of PKC and PKD isoforms in regulation of glucose and lipid metabolism: a review. Lipids Health Dis  2020;19:113. 10.1186/s12944-020-01286-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21. Bouchareychas  L, Raffai  RL. Apolipoprotein E and atherosclerosis: from lipoprotein metabolism to MicroRNA control of inflammation. J Cardiovasc Dev Dis  2018;5:30. 10.3390/jcdd5020030 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22. Barnes  TM, Otero  YF, Elliott  AD  et al. Interleukin-6 amplifies glucagon secretion: coordinated control via the brain and pancreas. Am J Physiol Endocrinol Metab  2014;307:E896–905. 10.1152/ajpendo.00343.2014 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23. Mallick  R, Basak  S, Das  RK  et al. Fatty acids and their proteins in adipose tissue inflammation. Cell Biochem Biophys  2024;82:35–51. 10.1007/s12013-023-01185-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24. Lanfranco  F, Giordano  R, Pellegrino  M  et al. Free fatty acids exert an inhibitory effect on adrenocorticotropin and cortisol secretion in humans. J Clin Endocrinol Metab  2004;89:1385–90. 10.1210/jc.2004-031132 [DOI] [PubMed] [Google Scholar]
  • 25. Ahrén  B. Autonomic regulation of islet hormone secretion--implications for health and disease. Diabetologia.  2000;43:393–410. 10.1007/s001250051322 [DOI] [PubMed] [Google Scholar]
  • 26. Liang  Y, Kelemen  A. Computational dynamic approaches for temporal omics data with applications to systems medicine. BioData Min  2017;10:20. 10.1186/s13040-017-0140-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27. Straube  J, Huang  BE, Cao  K-AL. DynOmics to identify delays and co-expression patterns across time course experiments. Sci Rep  2017;7:40131. 10.1038/srep40131 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28. Schumann  M, Feuerbacher  JF, Heinrich  L  et al. Using free-living heart rate data as an objective method to assess physical activity: a scoping review and recommendations by the INTERLIVE-network targeting consumer wearables. Sports Med  2025;55:275–300. 10.1007/s40279-024-02159-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29. Michael  S, Graham  KS, Davis  GM. Cardiac autonomic responses during exercise and post-exercise recovery using heart rate variability and systolic time intervals-a review. Front Physiol  2017;8:301. 10.3389/fphys.2017.00301 [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

lagci_final_supplementary_file_bbag464
Supplementary_Data_1_bbag464

Data Availability Statement

All datasets analyzed in this study were derived from previously published studies [13, 15]. No new datasets were generated as part of this work.


Articles from Briefings in Bioinformatics are provided here courtesy of Oxford University Press

RESOURCES