Next Article in Journal
Unified Counterexamples to Endpoint Regularity for Linear Elliptic Equations with Singular Coefficients
Previous Article in Journal
Symbolic Method for Solving Nonlocal Boundary Value Problems for Systems of Ordinary Loaded Integro-Differential Equations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enhanced Causal Discovery for Autocorrelated Time Series via Adaptive Momentary Conditional Independence

Key Laboratory of Advanced Theory and Application in Statistics and Data Science—MOE, School of Statistics, East China Normal University, Shanghai 200062, China
*
Author to whom correspondence should be addressed.
Mathematics 2026, 14(7), 1129; https://doi.org/10.3390/math14071129
Submission received: 18 February 2026 / Revised: 19 March 2026 / Accepted: 23 March 2026 / Published: 27 March 2026
(This article belongs to the Section D1: Probability and Statistics)

Abstract

Discovering causal relationships from time series data is essential for understanding complex dynamical systems across a range of domains. However, strong autocorrelation often limits the detection power of existing algorithms and increases the risk of false positives. To address these challenges, the Adaptive Momentary Conditional Independence (aMCI) method is introduced to mitigate the masking effects of autocorrelation and maintain control over false discovery rates. The aMCI method adaptively modifies the conditioning set to reduce the impact of autocorrelation on the accuracy of causal discovery. In addition, a multi-phase algorithm, the Enhanced Causal Discovery via aMCI (ECD-aMCI) algorithm, is proposed to robustly learn the causal graph by effectively applying the aMCI framework. The algorithm is designed to be hyperparameter-insensitive, order-independent, and provably consistent under oracle conditions. Extensive evaluations on simulated and benchmark datasets demonstrate that the proposed algorithm substantially improves the accuracy of causal discovery from time series, especially in the presence of strong autocorrelation.

1. Introduction

Multivariate time series exist widely in various domains such as earth science, neuroscience, and economics. Discovering causal relationships within these multivariate time series, encompassing both contemporaneous and lagged effects, is crucial for understanding the underlying mechanisms driving these systems. Accurate causal structures enable researchers to better comprehend system dynamics, build more precise prediction models, and estimate causal effects more reliably within the potential outcome framework [1,2].
While significant advances have been made in causal discovery methods for time series data, a persistent challenge remains: effectively handling autocorrelation [3,4]. Autocorrelation, the correlation of a variable with its past values, is a common characteristic of time series data that can significantly impact the performance of causal discovery algorithms. In particular, strong autocorrelation can obscure true causal relationships, leading to both false negatives (missed causal links) and false positives (spurious causal links) [5].
Existing approaches for causal discovery from time series data broadly fall into four categories: structural causal model (SCM)-based, Granger causality (GC)-based, score-based (SB) and constraint-based (CB) algorithms. SCM-based algorithms such as VAR-LiNGAM [6] learn windowed causal graphs with explicit time lag information but are restricted by their linearity assumption. More recent SCM methods such as Time Series Models with Independent Noise (TiMINo) [7], Noise-Based/Constraint-Based approach (NBCB) [8], and Nonlinear Causal Discovery via HM-NICA (NCDH) [9] can capture nonlinear dynamics but often learn summary graphs that do not preserve time lag information. Additionally, NCDH does not model contemporaneous relationships. GC-based algorithms rooted in predictive modeling, test whether past values of one variable improve predictions of another. Modern variants like ACD [10] and CR-VAE [11] employ neural architectures to capture nonlinear dynamics. However, these methods also produce summary graphs without explicit time lag information.
Score-based algorithms like NOTEARS [12] and its time series extensions DYNOTEARS [13] and NTS-NOTEARS [14] formulate directed acyclic graph (DAG) learning as continuous optimization problems. While these methods have shown promising results, they may require careful hyperparameter tuning, which can present challenges in practical applications. Constraint-based algorithms such as PCMCI [5] and PCMCI+ [15] utilize conditional independence tests to learn causal graphs from time series. PCMCI+ extends PCMCI by incorporating contemporaneous link discovery while effectively controlling false positive rates. However, its detection power for lagged links tends to decrease as autocorrelation increases. Bagged-PCMCI+ [16] addresses uncertainty estimation through bagging techniques, though at the cost of substantially increased computational requirements. Finally, Table 1 summarizes the characteristics of existing causal discovery methods for time series data.
Overall, existing time series causal discovery algorithms struggle to simultaneously address three main challenges: performance degradation as autocorrelation strengthens, sensitivity to hyperparameter selection, and the inability to simultaneously learn both lagged and contemporaneous causal relationships. To overcome these limitations, a novel method called Adaptive Momentary Conditional Independence (aMCI) is proposed. Conditional independence testing forms the backbone of decision-making in the constraint-based causal discovery algorithms, and thus enhancing its efficiency can substantially influence overall performance. The aMCI achieves this goal by dynamically modifying the conditioning set according to the causal structure of variables. Different strategies are applied to lagged and contemporaneous links, with a structured decision procedure guiding the choice of an appropriate conditioning set for each conditional independence test. Building on this foundation, the paper introduces the Enhanced Causal Discovery via aMCI (ECD-aMCI) algorithm specifically designed to fully leverage the capabilities of aMCI. Conventional causal discovery algorithms typically start from a fully connected graph, which can limit aMCI’s effectiveness in the initial stages. To overcome this limitation, ECD-aMCI employs a progressive refinement strategy: first establishing initial lagged parent estimates, then refining these estimates using aMCI, before finally discovering the complete causal skeleton. This sequential approach allows aMCI to operate with increasingly accurate structural information, substantially improving detection power for true causal links in autocorrelated systems while maintaining robust control over false positive rates.
The contributions of this paper are summarized as follows:
  • We deeply investigate the mechanism behind the significant performance decline of causal discovery algorithms in autocorrelated data, revealing that conditioning on historical non-confounder nodes substantially reduces test power.
  • We develop aMCI, a novel methodology that strategically modifies conditioning sets in time series data to effectively overcome the masking effects of autocorrelation.
  • We propose ECD-aMCI, a multi-phase algorithm designed to fully leverage the capabilities of aMCI through the progressive refinement of causal structures. The proposed algorithm provides a hyperparameter-insensitive, order-independent, and provably consistent framework to learn both lagged and contemporaneous links.
  • We offer a novel perspective for constraint-based algorithms, emphasizing that theoretically equivalent design choices under ideal conditions may yield significantly different results in practice, thereby necessitating a preference for choices more robustly suited to the underlying data characteristics.
The remainder of this paper is organized as follows: Section 2 introduces the fundamental concepts of d-separation in causal graphs and the PCMCI algorithm. Section 3 describes the aMCI method and the ECD-aMCI algorithm in detail. Section 4 provides a comprehensive evaluation of the ECD-aMCI algorithm through both simulated and benchmark datasets. Section 5 and Section 6 conclude with a discussion of our contributions.

2. Preliminaries

2.1. Notations

Table 2 summarizes the key mathematical notations used throughout the paper.

2.2. d-Separation and Completed Partially Directed Acyclic Graph

A directed acyclic graph (DAG) [17] encodes a set of conditional independence relations through the criterion of d-separation. Given three disjoint subsets of nodes X, Y, and Z in a DAG G , we say that X is d-separated from Y given Z (denoted X Y Z ) if all paths from any node in X to any node in Y are blocked by Z according to the following rules: (1) A non-collider path segment A B C , A B C , or  A B C is blocked if the middle node B Z ; (2) A collider path segment A B C is blocked unless B Z or some descendant of B is in Z. D-separation provides a graphical criterion to determine whether two variables are conditionally independent given a set of other variables. It forms the theoretical basis for constraint-based causal discovery algorithms.
A Completed Partially Directed Acyclic Graph (CPDAG) [18] represents a Markov equivalence class of DAGs by displaying directed edges where causal direction is consistent across all equivalent graphs, and undirected edges where direction cannot be uniquely determined from observational data alone.

2.3. The PCMCI Algorithm

PCMCI is a constraint-based causal discovery algorithm specifically designed for high-dimensional time series data. It extends the PC algorithm by addressing temporal dependencies and controlling for autocorrelation. The PCMCI algorithm consists of two main steps: (1) PC1 step: A preliminary skeleton is constructed by iteratively removing links based on a set of conditional independence tests, using a gradually increasing conditioning set. (2) MCI step: The resulting links are then subjected to a stricter conditional independence test, called the Multivariate Conditional Independence (MCI) test, which conditions on both parents of the target and source variables to better control false positives.
The Multivariate Conditional Independence (MCI) test is designed to evaluate the conditional independence between two time series variables X i , t τ and X j , t , while accounting for temporal dependencies. Specifically, it tests
X i , t τ X j , t P ( X i , t τ ) P ( X j , t ) ,
where P ( · ) denotes the estimated parent set of a variable. This choice of conditioning set, including both source and target parents, helps to mitigate the effects of autocorrelation and confounding from nearby variables.

3. Method

This section describes the proposed causal discovery algorithm for time series through three parts. First, Section 3.1 illustrates the intuitive insights of aMCI. Section 3.2 introduces the Adaptive Momentary Conditional Independence (aMCI) method to improve detection power by refining the conditioning sets used in tests. Finally, Section 3.3 presents a multi-phase algorithm to effectively leverage the aMCI method. Theoretical properties for the algorithm are provided in Section 3.4.

3.1. Intuitive Insights of aMCI

For intuitive understanding of aMCI, consider a bivariate time series { X t } t N + , where X t = ( X 1 , t , X 2 , t ) . This time series is generated according to the following structural causal model:
X 1 , t = a X 1 , t 1 + ε 1 , t , X 2 , t = a X 2 , t 1 + c X 1 , t 1 + ε 2 , t ,
where a represents the strength of autocorrelation, c represents the strength of the causal link X 1 , t 1 X 2 , t , and  ε 1 , t , ε 2 , t are independent noise terms. The corresponding full causal graph is depicted in Figure 1A.
According to the MCI defined in Section 2, determining whether the link X 1 , t 1 X 2 , t exists involves testing whether X 1 , t 1 X 2 , t B ( X 1 , t 1 ) B ( X 2 , t ) holds, where B ( X 1 , t 1 ) = { X 1 , t 2 } and B ( X 2 , t ) = { X 2 , t 1 } in model (1). Although from the d-separation perspective, conditioning on X 1 , t 2 should not affect the conditional dependence between X 1 , t 1 and X 2 , t , simulations reveal that replacing B ( X 1 , t 1 ) with B a d ( X 1 , t 1 ) = { X 1 , t 3 } (i.e., substituting X 1 , t 2 with X 1 , t 3 ) significantly improves the detection power for the link X 1 , t 1 X 2 , t .
This phenomenon can be explained through Equations (2) and (3). Equations (2) and (3) can be derived straightforwardly from model (1). The distinction between Equations (2) and (3) lies in the substitution of X 1 , t 2 in Equation (2) with X 1 , t 3 and ε 1 , t 2 .
X 1 , t 1 = a X 1 , t 2 conditioning + ε 1 , t 1 randomness , X 2 , t = a X 2 , t 1 + c a X 1 , t 2 conditioning + c ε 1 , t 1 + ε 2 , t randomness ,
X 1 , t 1 = a 2 X 1 , t 3 conditioning + a ε 1 , t 2 + ε 1 , t 1 randomness , X 2 , t = a X 2 , t 1 + c a 2 X 1 , t 3 conditioning + c a ε 1 , t 2 + c ε 1 , t 1 + ε 2 , t randomness ,
In Equation (2), the randomness of X 1 , t 1 X 1 , t 2 , X 2 , t 1 depends on the error ε 1 , t 1 , while the randomness of X 2 , t X 1 , t 2 , X 2 , t 1 depends on c ε 1 , t 1 + ε 2 , t . Thus, the conditional independence test X 1 , t 1 X 2 , t X 1 , t 2 , X 2 , t 1 relies on detecting the correlation between ε 1 , t 1 and c ε 1 , t 1 + ε 2 , t . In contrast, in Equation (3), the randomness of X 1 , t 1 X 1 , t 3 , X 2 , t 1 depends on a ε 1 , t 2 + ε 1 , t 1 , while the randomness of X 2 , t X 1 , t 3 , X 2 , t 1 depends on c a ε 1 , t 2 + c ε 1 , t 1 + ε 2 , t . Therefore, the conditional independence test X 1 , t 1 X 2 , t X 1 , t 3 , X 2 , t 1 relies on detecting the correlation between a ε 1 , t 2 + ε 1 , t 1 and c a ε 1 , t 2 + c ε 1 , t 1 + ε 2 , t . Notably, the randomness in Equation (3) both contains the common components ε 1 , t 2 and ε 1 , t 1 with amplifying coefficients. This structure produces a stronger correlation than the single shared term ε 1 , t 1 in Equation (2), thereby enhancing the statistical power for detecting the causal link. This analytical process is visually illustrated in Figure 1C,D.
However, this substitution is not always beneficial. In Figure 1B, X 1 , t 2 acts as a confounder for both X 1 , t 1 and X 2 , t . Failing to condition on this confounder could lead to false positive detection of the link X 1 , t 1 X 2 , t . This highlights the need for an adaptive method that adjusts the conditioning set based on the specific causal structure, such as conditioning on X 1 , t 2 when it is a confounder (Figure 1B) but conditioning on an alternative variable (e.g., X 1 , t 3 ) when it is not (Figure 1A).

3.2. Adaptive Momentary Conditional Independence

As established in Section 3.1, original methods such as MCI, while effective in controlling false positives, may exhibit reduced detection power when applied to time series with strong autocorrelation. The core issue identified is that conditioning on highly correlated immediate predecessors of source variable X i , t 1 (e.g., X i , t 2 when testing X i , t 1 X j , t X i , t 2 ) can obscure the signal of the direct link, even though it does not block the path according to d-separation. To address this challenge, this paper proposes the aMCI method that dynamically modifies the conditioning set based on the temporal structure of the variables in the conditioning set. The key innovation of aMCI lies in its strategic handling of immediate predecessors—replacing them with earlier variables when they might obscure causal signals rather than control for confounding.
Using the time series data X and a chosen conditional independence test, the operation of aMCI can be formally represented as the mapping:
aMCI : ( X i , t τ , X j , t , S , B ^ ( X i , t τ ) , B ^ ( X j , t ) ) ( p - value , I , S a d ) ,
where X i , t τ and X j , t are the specific variables under investigation for conditional independence (representing a potential cause and effect, respectively, with lag τ 0 ); S is the initial set of conditioning variables provided to aMCI; B ^ ( · ) represents the estimated set of lagged parents for a given variable; S a d is the final, adaptively determined, conditioning set generated by the aMCI based on S ; and I is the test statistic value associated with this p-value. The aMCI handles different scenarios based on the temporal relationship between X i , t τ and X j , t .
Case 1 (Lagged Links ( τ > 0 )): The aMCI checks whether X i , t τ k appears in both parent sets B ^ ( X i , t τ ) and B ^ ( X j , t ) , where X i , t τ k B ^ ( X i , t τ ) and k { 1 , , τ max } . If so, the original conditioning set is maintained. Otherwise, X i , t τ k is substituted with X i , t τ k 1 in the conditioning set to avoid obscuring causal signals.
A signal-to-noise ratio (SNR)-based explanation is provided for why testing X i , t τ X j , t X i , t τ k 1 can be preferable to testing X i , t τ X j , t X i , t τ k when X i , t τ k is not a confounder and the true causal structure is:
X i , t τ k X i , t τ X j , t .
Let the information contained in X j , t be denoted as I ( X j , t ) , and the information flow from X i , t τ to X j , t be denoted as I ( X i , t τ X j , t ) . In testing for independence between X i , t τ and X j , t , I ( X i , t τ X j , t ) represents the useful signal, while the remaining information in I ( X j , t ) is treated as noise. A stronger signal implies a more detectable causal effect and reduces the risk of false negatives.
When conditioning on X i , t τ k , the signal in X j , t is correspondingly reduced and becomes I ( X i , t τ X j , t ) I ( X i , t τ k X i , t τ X j , t ) . The corresponding SNR is:
S N R X j , t = I ( X i , t τ X j , t ) I ( X i , t τ k X i , t τ X j , t ) I ( X j , t ) I ( X i , t τ X j , t ) I ( X i , t τ k X i , t τ X j , t ) .
From basic mathematical analysis, S N R X j , t is a decreasing function of I ( X i , t τ k X i , t τ X j , t ) . When replacing X i , t τ k with X i , t τ k 1 , we have I ( X i , t τ k 1 X i , t τ X j , t ) I ( X i , t τ k X i , t τ X j , t ) , assuming X i , t τ k 1 transmits less information through the causal chain (Assumption 4 in Section 3.4). This reduction thus improves S N R X j , t . As a result, the conditioning set used in aMCI is more likely to lead to correct decisions and fewer false negatives.
Case 2 (Contemporaneous Links ( τ = 0 )): The aMCI employs a more nuanced strategy depending on whether X i , t k and X j , t k are confounders of ( X i , t , X j , t ) , where X i , t k B ^ ( X i , t ) or X j , t k B ^ ( X j , t ) , k { 1 , , τ max } . (1) If both are confounders, the standard conditioning set is maintained. (2) If only one is a confounder, the non-confounder immediate predecessor is replaced with its earlier lag. (3) If neither is a confounder, three possible conditioning sets are evaluated (substituting either immediate predecessor or using the standard set) and the one yielding the smallest p-value is selected.
It is important to observe that the handling of lagged links follows directly from the intuition provided in Section 3.1. However, the handling of contemporaneous links requires a more sophisticated approach. This complexity arises because the aMCI methodology involves adjusting the conditioning set of the source variable, yet for contemporaneous links ( X i , t , X j , t ) , temporal precedence cannot be used to determine which variable serves as the source. Consequently, Case 2 explores three scenarios based on the principle that confounders must be retained in the conditioning set. Specifically, in Case 2 (3), by considering test results from three different conditioning sets and selecting the one that yields the smallest p-value, the method ensures that links previously undetectable due to autocorrelation become readily identifiable. The pseudocode of aMCI is provided in Algorithm 1. To facilitate a better understanding of the aMCI method, Figure 2 and Figure 3 illustrate how aMCI changes the conditioning set for a particular pair of variables.
The primary challenge in implementing such an adaptive method arises because the true causal structure, particularly the role of immediate predecessors, is typically unknown and must be inferred. Conventional constraint-based discovery algorithms learn the structure iteratively, typically beginning with a fully connected graph structure. It is difficult to apply such adaptive logic effectively in the early stages when the necessary structural information is still uncertain. This challenge motivates the multi-phase algorithm detailed in Section 3.3.
Algorithm 1 The aMCI method
  • Require: Data X , which is a d-dimensional time series of length T, condition variable set S , conditional independence test C I ( X i , t τ , X j , t , S ) , which returns p-value and test statistic value I, estimated lagged parent sets B ^ ( X i , t τ ) and B ^ ( X j , t ) , confidence level α
  1:
if  τ > 0  then
  2:
    if  X i , t τ 1 B ^ ( X i , t τ ) B ^ ( X j , t )  then
  3:
         ( p - value , I ) C I ( X i , t τ , X j , t , S B ^ ( X i , t τ ) B ^ ( X j , t ) )
  4:
         S a d S B ^ ( X i , t τ ) B ^ ( X j , t )
  5:
    else
  6:
         B ^ a d ( X i , t τ ) Substitute X i , t τ 1 in B ^ ( X i , t τ ) with X i , t τ 2
  7:
         ( p - value , I ) C I ( X i , t τ , X j , t , S B ^ a d ( X i , t τ ) B ^ ( X j , t ) )
  8:
         S a d S B ^ a d ( X i , t τ ) B ^ ( X j , t )
  9:
    end if
10:
else if  τ = 0  then
11:
    if both  X i , t 1 and X j , t 1 are confounders of ( X i , t , X j , t )  then
12:
         ( p - value , I ) C I ( X i , t , X j , t , S B ^ ( X i , t ) B ^ ( X j , t ) )
13:
         S a d S B ^ ( X i , t ) B ^ ( X j , t )
14:
    else if  X i , t 1 or X j , t 1 is confounder of ( X i , t , X j , t )  then
15:
        if  X i , t 1 is confounder of ( X i , t , X j , t )  then
16:
            B ^ a d ( X j , t ) Substitute X j , t 1 in B ^ ( X j , t ) with X j , t 2
17:
            ( p - value , I ) C I ( X i , t , X j , t , S B ^ ( X i , t ) B ^ a d ( X j , t ) )
18:
            S a d S B ^ ( X i , t ) B ^ a d ( X j , t )
19:
        else if  X j , t 1 is confounder of ( X i , t , X j , t )  then
20:
            B ^ a d ( X i , t ) Substitute X i , t 1 in B ^ ( X i , t ) with X i , t 2
21:
            ( p - value , I ) C I ( X i , t , X j , t , S B ^ a d ( X i , t ) B ^ ( X j , t ) )
22:
            S a d S B ^ a d ( X i , t ) B ^ ( X j , t )
23:
        end if
24:
    else if Neither of X i , t 1 and X j , t 1 is confounder of ( X i , t , X j , t )  then
25:
         B ^ a d ( X i , t ) Substitute X i , t 1 in B ^ ( X i , t ) with X i , t 2
26:
         ( p - value 1 , I 1 ) C I ( X i , t , X j , t , S B ^ a d ( X i , t ) B ^ ( X j , t ) )
27:
         S a d , 1 S B ^ a d ( X i , t ) B ^ ( X j , t )
28:
         B ^ a d ( X j , t ) Substitute X j , t 1 in B ^ ( X j , t ) with X j , t 2
29:
         ( p - value 2 , I 2 ) C I ( X i , t , X j , t , S B ^ ( X i , t ) B ^ a d ( X j , t ) )
30:
         S a d , 2 S B ^ ( X i , t ) B ^ a d ( X j , t )
31:
         ( p - value 3 , I 3 ) C I ( X i , t , X j , t , S B ^ ( X i , t ) B ^ ( X j , t ) )
32:
         S a d , 3 S B ^ ( X i , t ) B ^ ( X j , t )
33:
         ( p - value , I , S a d ) p - value k * , I k * , S a d , k * where k * = arg min k { 1 , 2 , 3 } p - value k
34:
    end if
35:
end if
36:
return  ( p - value , I , S a d ) for arbitrary ( X i , t τ , X j , t , S )

3.3. Enhanced Causal Discovery Algorithm

Traditional causal discovery algorithms typically start from a fully connected graph and progressively remove edges through conditional independence tests. However, the traditional procedure limits the effectiveness of aMCI in the initial stages, as in a fully connected graph, immediate predecessors are necessarily treated as confounders. To fully leverage the capabilities of aMCI, this paper proposes the ECD-aMCI algorithm that operates in three sequential phases.
The core innovation of the ECD-aMCI algorithm lies in its progressive refinement approach, which enables more accurate estimation of causal structures in time series data with autocorrelation. The algorithm consists of three phases: (1) initial estimation of lagged parent sets, (2) refinement of these estimated sets using aMCI, and (3) discovery of the complete causal structure including both lagged and contemporaneous links.
Phase 1: PC1-Based Initial Estimation. In the first phase, a simplified PC algorithm is employed to obtain initial estimates of the lagged parent sets. This phase considers only lagged relationships without accounting for contemporaneous effects, which may lead to false positives due to indirect causal effects mediated by contemporaneous variables. Starting with a fully connected lagged structure (up to maximum lag τ max ), the algorithm iteratively tests the conditional independence between each lagged variable X i , t τ and target variable X j , t , given progressively larger conditioning sets S . The minimum test statistic values are stored and links that are conditionally independent given any conditioning set are removed. The procedure continues until all possible conditioning sets up to the available size (up to one) have been tested. The result is an initial estimate of lagged parent sets B ^ ( X j , t ) for each variable X j , t . The details of Phase 1 are presented in Algorithm 2.
Phase 2: Lagged Parent Sets Refinement via aMCI. Since the initial estimates may include false positives due to a contemporaneous mediator, the second phase refines these estimates using aMCI. Starting with the initial estimates from Phase 1, the algorithm tests the conditional independence of adjacent pairs ( X i , t τ , X j , t ) for τ > 0 using aMCI. The conditioning sets S are chosen from the contemporaneous adjacency set A ^ ( X j , t ) , and the algorithm progressively increases the size of these conditioning sets up to one. After each iteration, the lagged parent sets are updated based on the current graph structure, which enables more accurate aMCI tests in subsequent iterations. The details of Phase 2 are presented in Algorithm 3.
Phase 3: Complete Skeleton Discovery. The final phase builds on the refined lagged parent sets of Phase 2 to discover the complete causal skeleton, including both lagged and contemporaneous relationships. This phase ensures robust results regardless of the variable order by not immediately updating B ^ ( X j , t ) and A ^ ( X j , t ) based on aMCI test results. Unlike conventional constraint-based algorithms, this phase tests conditional independence for lagged links first and then contemporaneous links, which minimizes the influence of not-yet-removed edges on the effectiveness of aMCI. For lagged relationships, the algorithm tests and potentially removes links X i , t τ X j , t . For contemporaneous relationships, it tests and potentially removes links X i , t X j , t . After each iteration, both the lagged parent sets and contemporaneous adjacency sets are updated based on the current graph structure. The details of Phase 3 are presented in Algorithm 4.
Algorithm 2 Phase 1: PC1-Based Initial Estimation of Lagged Parent Sets
  • Require: Time series dataset X : = { X t t { 1 , , T } } , maximum lag τ max , confidence level α , conditional independence test C I ( X i , t τ , X j , t , S ) which returns p-value and test statistic value I.
  1:
for all j in { 1 , , d }  do
  2:
    Initialize lagged parent set B ^ ( X j , t ) ( X t 1 j , , X t τ max j ) and min test statistic values I m i n ( X i , t τ , X j , t ) for all  X i , t τ B ^ ( X j , t ) .
  3:
    Let p 0 .
  4:
    while  p 1  and any X i , t τ B ^ ( X j , t ) satisfies | B ^ ( X j , t ) { X i , t τ } | p  do
  5:
        for all  X i , t τ in B ^ ( X j , t ) satisfying | B ^ ( X j , t ) { X i , t τ } | p  do
  6:
            S = first p variables in B ^ ( X j , t ) { X i , t τ } . ▹ Select conditioning set of size p
  7:
            ( p - value , I ) C I ( X i , t τ , X j , t , S )
  8:
            I m i n ( X i , t τ , X j , t ) = min ( I , I m i n ( X i , t τ , X j , t ) )
  9:
           if  p - value > α  then
10:
               Mark  X i , t τ for removal from B ^ ( X j , t ) .
11:
           end if
12:
        end for
13:
        Remove non-significant entries from B ^ ( X j , t ) and sort remaining entries in B ^ ( X j , t ) by I m i n ( X i , t τ , X j , t ) from largest to smallest.
14:
        Let p p + 1 .
15:
    end while
16:
end for
17:
return  B ^ ( X j , t ) for all  j { 1 , , d } ▹ The estimated lagged parent sets
Algorithm 3 Phase 2: Refined Lagged Parent Skeleton via aMCI
  • Require: Time series dataset X , maximum lag τ max , confidence level α , aMCI criterion a M C I ( X i , t τ , X j , t , S , B ^ ( X i , t τ ) , B ^ ( X j , t ) ) which returns p-value, test statistic value I and adaptive conditioning set S a d , estimated lagged parent sets B ^ ( X j , t ) for all j in { 1 , , d } , confidence level α
  1:
Initialize graph G ^ with fully connected lagged links (up to τ max ) and contemporaneous links
  2:
Initialize contemporaneous adjacency sets A ^ ( X j , t ) { X k , t k { 1 , , d } , k j } for all j { 1 , , d } .
  3:
p 0
  4:
while  p 1  and any adjacent pair ( X i , t τ , X j , t ) for 0 τ τ max in G ^ satisfies | A ^ ( X i , t τ ) { X j , t } | p or | A ^ ( X j , t ) { X i , t τ } | p  do
  5:
    for all adjacent pairs ( X i , t τ , X j , t ) for 0 < τ τ max satisfying the condition in Line 5 do
  6:
        for all possible subsets S A ^ ( X j , t ) with | S | = p  do
  7:
            ( p - value , I , S a d ) a M C I ( X i , t τ , X j , t , S , B ^ ( X i , t τ ) , B ^ ( X j , t ) )
  8:
           if  p - value > α  then
  9:
               Delete link X i , t τ X j , t in G ^ for τ > 0 from G ^
10:
               Store S a d as seperating set of ( X i , t τ , X j , t )
11:
           end if
12:
        end for
13:
    end for
14:
    Update B ^ ( X j , t ) for j in { 1 , , d } based on estimated G ^
15:
     p p + 1
16:
end while
17:
return  B ^ ( X j , t ) for all j { 1 , , d }
Algorithm 4 Phase 3: Complete Skeleton Discovery
  • Require: Time series dataset X , maximum lag τ max , confidence level α , aMCI method a M C I ( X i , t τ , X j , t , S , B ^ ( X i , t τ ) , B ^ ( X j , t ) ) which returns p-value, test statistic value I and adaptive conditioning set S a d , estimated lagged parent sets B ^ ( X j , t ) for all j in { 1 , , d } , confidence level α
  1:
Initialize graph G ^ with fully connected lagged links (up to τ max ) and contemporaneous links
  2:
Initialize contemporaneous adjacency sets  A ^ ( X j , t ) { X k , t k { 1 , , d } , k j }  for all  j { 1 , , d } .
  3:
Initialize  I m i n ( X i , t τ , X j , t )  for all links in  G ^
  4:
p 0
  5:
while any adjacent pair  ( X i , t τ , X j , t )  for  0 τ τ max in G ^ satisfies | A ^ ( X i , t τ ) { X j , t } | p or | A ^ ( X j , t ) { X i , t τ } | p  do
  6:
    for all adjacent pairs  ( X i , t τ , X j , t )  for  0 < τ τ max  satisfying the condition in Line 5 do
  7:
        for all possible subsets  S A ^ ( X j , t )  with  | S | = p  do
  8:
            ( p - value , I , S a d ) a M C I ( X i , t τ , X j , t , S , B ^ ( X i , t τ ) , B ^ ( X j , t ) )
  9:
           if  p - value > α  then
10:
               Delete link  X i , t τ X j , t in G ^ for τ > 0 from G ^
11:
               Store  S a d as seperating set of ( X i , t τ , X j , t )
12:
           end if
13:
        end for
14:
    end for
15:
    Update B ^ ( X j , t ) for j in { 1 , , d } based on estimated G ^
16:
    for all adjacent pairs  ( X i , t , X j , t )  satisfying the condition in Line 5 do
17:
        for all possible subsets S A ^ ( X j , t ) { X i , t } with | S | = p  do
18:
            ( p - value , I , S a d ) a M C I ( X i , t , X j , t , S , B ^ ( X i , t ) , B ^ ( X j , t ) )
19:
           if  p - value > α  then
20:
               Delete link X i , t X j , t from G ^
21:
               Store S a d as seperating set of ( X i , t , X j , t )
22:
           end if
23:
        end for
24:
    end for
25:
    Update  A ^ ( X j , t ) for j in { 1 , , d } based on estimated G ^
26:
     p p + 1
27:
end while
28:
return Graph  G ^ , Separating sets of all nonadjacent pairs.
By progressively refining estimates and leveraging the capabilities of aMCI, the three phases outlined above enable more accurate identification of causal adjacencies in time series. To facilitate a better understanding of the algorithmic procedure, Figure 4 presents a flowchart of the multi-phase ECD-aMCI algorithm.
The subsequent orientation rules in the ECD-aMCI algorithm follow Meek’s rules [19] and build upon the relevant work of Runge [15]. The complete pseudocode of the orientation rules is provided in Algorithms A1 and A2 in Appendix A.

3.4. Theoretical Properties

This section provides a theoretical analysis of the ECD-aMCI algorithm. First, necessary assumptions for the analysis are introduced. Then, two key theoretical properties of ECD-aMCI are established: consistency and order independence.
The theoretical analysis relies on several standard assumptions in time series causal discovery: (1) causal sufficiency, (2) causal Markov condition, (3) faithfulness, (4) temporal priority, and (5) stationarity.
Assumption 1
(Causal Sufficiency). All common causes of any pair of observed variables in the system are also observed.
Assumption 2
(Causal Markov Condition). Each variable in the causal graph is conditionally independent of its non-descendants given its direct parents. Formally, if  G is a directed acyclic graph (DAG) representing the causal structure, and P is the joint probability distribution of the variables, then P factorizes according to G as
P ( X 1 , X 2 , , X d ) = i = 1 d P ( X i | P ( X i ) ) ,
where P ( X i ) denotes the parent set of X i in G .
Assumption 3
(Faithfulness). All conditional independence relationships in the probability distribution are entailed by the causal graph structure via the d-separation criterion. That is, X Y Z if and only if X and Y are d-separated by Z in the causal graph. This assumption rules out precise parameter cancellations that could create conditional independencies not implied by the causal structure.
Assumption 4
(Temporal Priority). A cause precedes its effect in time, or at the very least, occurs simultaneously. Furthermore, as the time lag increases, the autoregressive influence of a process on its own future values progressively diminishes.
Assumption 5
(Stationarity). The causal structure among variables and the population of time series do not change over time. This assumption allows us to learn a window causal graph from time series, where edges represent consistent causal links across all time points.
These assumptions are commonly adopted in the causal discovery literature [5,15,20,21].
Theorem 1
(Consistency). Under the Assumptions (1)–(5), if the conditional independence tests are oracle, ECD-aMCI returns the correct CPDAG, i.e.,  G ^ = G C P D A G , where G C P D A G denotes the CPDAG of the time series graph G .
Theorem 1 demonstrates that given oracle conditional independence information, the ECD-aMCI algorithm guarantees correct identification of all links that can be identified based on conditional independence information. The proof strategy involves first establishing that the proposed algorithm correctly identifies the skeleton of the graph, and then verifying that the orientation rules correctly identify directions. This establishes that ECD-aMCI achieves the same theoretical consistency guarantees as other constraint-based causal discovery algorithms under ideal conditions.
Since Colombo and Maathuis [22] proposed the PC-stable algorithm, order independence has been recognized as an essential property for causal discovery algorithms. The proposed algorithm avoids the influence of variable ordering in all edge removal processes based on conditional independence tests and in the orientation phase, naturally leading to Theorem 2.
Theorem 2
(Order Independence). Under Assumptions (1)–(5), the outcome of ECD-aMCI is independent of the order of the variables.
Detailed proofs of Theorems 1 and 2 are provided in the Appendix B.

4. Evaluation

This section presents a comprehensive evaluation of the ECD-aMCI algorithm. First, several baseline algorithms for comparison are introduced, followed by the evaluation metrics used to assess performance. The data generation process for simulations is then described in detail. Results from both simulated and benchmark datasets are analyzed to demonstrate the effectiveness of ECD-aMCI. Finally, hyperparameter settings for all algorithms are discussed.

4.1. Baselines

The goal of the proposed algorithm is to learn causal graphs from observational time series that include both lagged (Window) and contemporaneous links. As shown in Table 3, algorithms that share this objective include PCMCI+, PCMCI+Bagged, DYNOTEARS, NTS-NOTEARS, and VAR-LiNGAM. Among these, PCMCI+, PCMCI+Bagged, and NTS-NOTEARS are selected as baselines. DYNOTEARS and VAR-LiNGAM were not included because PCMCI+ has been demonstrated to outperform VAR-LiNGAM in its original paper, and NTS-NOTEARS has been shown to outperform DYNOTEARS in comparative studies. Because CR-VAE and ACD algorithms are designed to learn summary causal graphs, whereas the ECD-aMCI algorithm learns time-lagged window causal graphs, CR-VAE and ACD were not included as baselines.
The constraint-based methods (PCMCI+, Bagged-PCMCI+, and ECD-aMCI) can be directly compared as they are all implemented with ParCorr [23] test for linear cases and GPDC [24] test for nonlinear cases. In contrast, NTS-NOTEARS is a continuous optimization-based algorithm whose hyperparameter weight threshold W t h r e s h does not have common choices like the confidence level α in constraint-based algorithms (e.g., α = 0.01 ). The weight threshold W t h r e s h is adjusted through grid search to ensure that its F 1 -score is maximized. PCMCI+ and Bagged-PCMCI+ were implemented using the pcmci function within the Python 3.8 package tigramite. NTS-NOTEARS was implemented using the NTS_NOTEARS function from the NTS-NOTEARS Python package.

4.2. Evaluation Metrics

To thoroughly assess the performance of causal discovery methods, four important metrics are employed that evaluate different aspects of algorithms. The F1-score, which balances precision and recall, is measured separately for lagged cross-adjacencies ( i j ) and all adjacencies, with higher values indicating better performance. The Structural Hamming Distance (SHD) is measured to quantify the overall structural difference between the learned and true causal graphs. SHD counts the number of edge additions, deletions, and reversals needed to transform one graph into another, with lower values indicating better performance. The average runtimes were evaluated on Intel Xeon Platinum 8260L CPU at 2.30 GHz. To remove the influence of patterns in marginal variance that might affect results, all metrics were computed on standardized data [25].

4.3. Simulated Data Generation

Following Runge et al. [5] and Runge [15], we generate autocorrelated time series with both contemporaneous and lagged causal dependencies. The data is generated from an additive model where each variable is influenced by its own past values, the past and contemporaneous values of its causal parents, and random noise. Specifically, we use the following model:
X j , t = τ = 1 τ max δ j , j , τ a j f j ( X j , t τ ) + i = 1 d τ = 1 τ max δ i , j , τ c i , j , τ f i ( X i , t τ ) + ε j , t ,
where X j , t represents the value of variable j at time t, j { 1 , , d } , and d is the dimension of the time series. The autocorrelation coefficients a j are uniformly drawn from [ max ( 0 , a 0.2 ) , a ] , where a controls the autocorrelation strength. The noise term ε j , t follows an i.i.d. standard Gaussian distribution. The coefficient c i , j , τ , which represents the strength of the link X i , t τ X j , t , is uniformly drawn from [ 0.15 , 0.25 ] to ensure the stationarity of the time series. The binary coefficient δ i , j , τ indicates the existence of the link X i , t τ X j , t . For each model, 2.5 · d cross-links between variables are randomly selected, with 40% set to be contemporaneous ( τ = 0 ), and the remaining links having time lags τ uniformly drawn from { 1 , , τ true } , where τ true represents the true maximum time lag.
Under the framework of model (4), we consider two main scenarios: linear and nonlinear causal relationships.
Linear Setting: The functions are set to f i ( x ) = x and τ true = 5 . The autocorrelation strength (a) varies from 0.5 to 0.9, the dimension of the time series (d) from 10 to 40, and the sample size (T) from 250 to 1000. For each combination of ( a , d , T ) , 300 simulated datasets are generated. Each dataset is generated with different randomly sampled parameters ( a j , c i , j , τ , ε j , t ) and a different ground truth causal graph (different δ i , j , τ for each dataset).
Nonlinear Setting: The functions are set to f i ( x ) = tanh ( x ) and τ true = 3 . The autocorrelation strength (a) varies from 0.5 to 0.9, the dimension of the time series (d) from 10 to 40, and the sample size (T) from 250 to 1000. For each combination of ( a , d , T ) , 50 simulated datasets are generated.

4.4. Results

4.4.1. Linear Setting

As shown in Table 4, the ECD-aMCI method achieves the highest average values across all parameter settings for both F1-scorelagged and F1-scoreall, demonstrating an advantage over the compared methods. Meanwhile, its relatively small standard deviations indicate good stability under varying experimental conditions. In contrast, while PCMCI+ and NTS-NOTEARS perform closely under certain parameters, their overall performance is slightly less competitive. Bagged-PCMCI+ shows comparatively weaker results across all metrics, particularly regarding SHD and computation time, where higher average errors and standard deviations suggest room for improvement in consistency and efficiency. For the SHD metric, ECD-aMCI also yields the lowest structural error, with an average value notably lower than the other methods and well-controlled standard deviations, indicating higher accuracy and consistency in structure recovery. PCMCI+ ranks second, while Bagged-PCMCI+ and NTS-NOTEARS exhibit higher SHD values. Regarding computation time, PCMCI+ shows the highest computational efficiency across all parameter settings. The running time of ECD-aMCI is slightly higher than that of PCMCI+ but remains within a highly acceptable range, and its small standard deviation suggests stable computational performance. Bagged-PCMCI+ requires the longest computation time among all methods.
Table 5 and Table 6 further validate these trends. Under different time lengths T and variable dimensions d, ECD-aMCI consistently maintains a lead in F1-score and SHD metrics, exhibiting good robustness and adaptability. PCMCI+ ranks second in most cases and possesses a clear advantage in running time. Bagged-PCMCI+ and NTS-NOTEARS show a relative decrease in performance, especially under high-dimensional or long-time-series settings, where their standard deviations also increase, reflecting certain limitations in scalability.
As shown in Figure 5, for each parameter setting, ECD-aMCI consistently outperforms the baseline algorithms across all evaluation metrics. In the first column, as the autocorrelation strength increases from 0.5 to 0.9, ECD-aMCI maintains superior F1-scores for both lagged and all adjacencies while keeping the SHD lower than competing methods. The advantage becomes more pronounced as autocorrelation strengthens. The second column demonstrates that ECD-aMCI achieves better performance even with limited sample sizes. The third column illustrates that ECD-aMCI scales effectively with increasing dimensionality, maintaining high F1-scores and low SHD as the dimension increases from 10 to 40.
Regarding computational efficiency, the runtime comparison in the bottom row shows that ECD-aMCI achieves this superior performance with reasonable computational cost. For visual clarity, error bars are not shown in the figures.

4.4.2. Nonlinear Setting

Under nonlinear settings, we further evaluated the performance of each method under varying parameter conditions. Table 7, Table 8 and Table 9 present the comparison results of F1-score (lagged and all edges), SHD, and running time across different methods when the parameter a, time length T, and variable dimension d vary.
As shown in Table 7, for the F1-scorelagged metric, ECD-aMCI achieves the highest average values across all parameter settings, ranging from 0.737 to 0.816, which is notably better than PCMCI+ and NTS-NOTEARS. Meanwhile, the standard deviation for ECD-aMCI is relatively small (0.077 to 0.107), indicating that it maintains good stability under nonlinear conditions. NTS-NOTEARS performs closely to ECD-aMCI under certain parameters, but its standard deviation is slightly larger, suggesting relatively lower stability. For the F1-scoreall metric, ECD-aMCI also performs excellently, achieving the highest average values except when a = 0.5 , with standard deviations generally around 0.035, showing minimal fluctuation. NTS-NOTEARS slightly outperforms ECD-aMCI when a = 0.5 , but overall, ECD-aMCI still holds the advantage. Regarding the SHD metric, ECD-aMCI yields the lowest structural error under most parameters, with average values ranging from 20.280 to 21.120 and standard deviations controlled between 2.5 and 3.3, demonstrating capable structure recovery. When a is small, the SHD of NTS-NOTEARS is slightly lower than that of ECD-aMCI, but it exhibits a larger standard deviation (up to 4.679), indicating limited stability. In terms of running time, NTS-NOTEARS demonstrates extremely high computational efficiency, with average running times of only 6.08 to 10.27 s. The running time of ECD-aMCI is higher than that of NTS-NOTEARS, averaging between 3600 and 4700 s with a larger standard deviation, which reflects the increased computational burden when utilizing nonlinear conditional independence tests.
Table 8 illustrates the performance comparison under varying time lengths T. For the F1-score metrics, ECD-aMCI achieves the highest average values when T 500 , accompanied by smaller standard deviations, demonstrating good stability and adaptability. NTS-NOTEARS performs best on short time series with T = 250 , but as T increases, this advantage is gradually surpassed by ECD-aMCI. PCMCI+ exhibits comparatively weaker performance across all T settings. Regarding the SHD metric, ECD-aMCI achieves the lowest structural error when T 500 , with well-controlled standard deviations. NTS-NOTEARS yields a slightly lower SHD than ECD-aMCI only when T = 250 ; however, as T increases, its SHD decreases slowly, and its standard deviation remains relatively large.
Table 9 presents the performance comparison under varying variable dimensions d. For the F1-score metrics, ECD-aMCI consistently achieves the highest average values for d ranging from 10 to 30. At  d = 40 , its performance is comparable to PCMCI+ and NTS-NOTEARS, but its generally smaller standard deviations highlight a clear advantage in stability. The F1-scores for PCMCI+ and NTS-NOTEARS show a noticeable decline as d increases, accompanied by relatively larger standard deviations. Regarding the SHD metric, ECD-aMCI yields the lowest structural error for d ranging from 10 to 30. At  d = 40 , its SHD is slightly higher than that of NTS-NOTEARS, yet its standard deviation remains well-controlled. While NTS-NOTEARS shows a slightly better SHD at d = 40 , its larger standard deviation (9.104) suggests limited stability.
As shown in Figure 6, ECD-aMCI consistently outperforms the baseline algorithms across most evaluation metrics. In the first column, as the autocorrelation strength increases from 0.5 to 0.9, ECD-aMCI maintains superior F1-scores, with improvements of approximately 5–10% over competing algorithms, while keeping the SHD consistently lower, particularly under high autocorrelation conditions. Although the performance advantage is modest at lower sample sizes, the second column reveals that the ECD-aMCI algorithm becomes increasingly superior as the sample size grows. The third column illustrates that ECD-aMCI exhibits stable performance with increasing dimensionality, maintaining relatively consistent F1-scores even as the number of variables increases.
The bottom row illustrates that constraint-based algorithms (including ECD-aMCI) require longer computational time than optimization-based algorithms in nonlinear settings, primarily due to the computational intensity of nonparametric conditional independence tests. Future research could explore more efficient conditional independence tests to reduce computational runtime. These simulation results demonstrate that the ECD-aMCI algorithm offers substantial advantages over competing algorithms, particularly in settings with high autocorrelation and sufficient sample sizes. Note that Bagged-PCMCI+ is not included in the nonlinear setting comparisons due to its prohibitively high computational and memory requirements.

4.5. Benchmark Data

The functional Magnetic Resonance Imaging (fMRI) benchmark from NetSim contains rich, realistic simulated time series for modeling brain networks [26]. This nonlinear benchmark dataset has been widely used to evaluate time series causal discovery algorithms due to its diverse range of underlying networks that closely mimic challenges in neuroimaging analysis. As demonstrated in Table 10, ECD-aMCI achieves higher F1-scores and lower SHD on this dataset compared to all baseline methods, confirming its effectiveness and practical value for neuroscientific applications. Due to the prohibitively high computational cost of the Bagged-PCMCI+ algorithm when processing non-linear datasets, this algorithm is excluded from consideration in the analysis of fMRI datasets.
Figure 7 illustrates the results of learning a causal graph on an fMRI dataset ( d = 5 ) using different causal discovery algorithms. As shown in Figure 7, the window causal graph learned by the ECD-aMCI algorithm is very close to the ground truth graph. Regarding the skeleton, there is only one discrepancy, which is an additional edge X 4 , t X 5 , t . In contrast, the window causal graph learned by PCMCI+ omits the edges X 3 , t X 2 , t and X 1 , t X 5 , t , while incorrectly adding the edge X 3 , t X 1 , t . The omission of these two instantaneous edges is primarily caused by conditioning on historical nodes that are not confounders. The aMCI method successfully avoids this issue, thereby recovering a more accurate window causal graph.
In addition to the fMRI data, we conducted supplementary real-world validation on telecommunication network alarm data. In telecommunication networks, a single fault can trigger a cascade of various alarm types across multiple connected devices. Understanding the causal relationships among these alarms is crucial for intelligent alarm management and fault root cause analysis, as manually handling such alarm floods can quickly overwhelm operators. The experimental results in Table 11 demonstrate that ECD-aMCI remains highly competitive in this practical application, further validating its effectiveness beyond the fMRI domain.

4.6. Hyperparameters Analysis

ECD-aMCI has two hyperparameters. The first is the confidence level α for hypothesis testing, which should be set as low as possible while maintaining sufficient detection power. In all experiments presented in this paper, α = 0.01 is used for all constraint-based methods (ECD-aMCI, PCMCI+, and Bagged-PCMCI+). The second hyperparameter is the maximum time lag τ max , which in all experiments is set to the true maximum time lag. In practical applications, τ max can be initially chosen based on estimated autocorrelation coefficients, typically selecting a slightly larger value, and then iteratively reduced based on the estimated causal graph. Simulation results in Table 12 indicate that the proposed method exhibits robustness to the choice of τ max . NTS-NOTEARS has six hyperparameters, with the weight threshold W thresh being sensitive to the strength of causal links. Therefore, the  W thresh is determined by maximizing the F1-score, while other hyperparameters are set to the optimal values reported in the original paper [14]. See Appendix C.1 and Appendix C.2 for detailed hyperparameter settings for all methods.
The core idea for selecting τ max is to first determine a relatively large initial value based on the autocorrelation coefficients, and then use this initial value to estimate the window causal graph with the ECD-aMCI algorithm to determine the final τ max . Specifically, we calculate the lagged autocorrelations for each variable based on a gradually increasing τ candidate . We select the τ candidate where the lagged autocorrelations of all variables fall below 0.05 as the initial choice and execute the ECD-aMCI algorithm. Finally, the maximum lag of the lagged edges in the window graph learned by the ECD-aMCI algorithm is adopted as the definitive τ max .
Next, we discuss how the choice of different CI tests affects the stability of the aMCI framework and its robustness when facing complex data distributions. Theorem 1 demonstrates that the aMCI framework is theoretically guaranteed to learn the correct causal graph when the CI tests are perfectly accurate. Consequently, the primary criterion for selecting a CI test in practice is statistical power. For example, in strictly linear scenarios, partial correlation is inherently the optimal choice. On complex real-world data, GPDC is preferred, whereas CMIKNN typically requires a larger sample size.
Furthermore, we have supplemented our experiments with a performance comparison of the ECD-aMCI algorithm using various CI tests under a linear setting and on fMRI data. As shown in Table 13, the ECD-aMCI algorithm achieves the best performance using partial correlation in linear settings, aligning with theoretical expectations. On the fMRI data, the ECD-aMCI algorithm performs optimally with the non-parametric conditional independence test, GPDC. However, its performance when using partial correlation remains competitive, demonstrating a commendable level of robustness across varying distributions.

5. Discussion

Previous time series causal discovery methods have noted the impact of autocorrelation on causal graph learning and have introduced several improvements. For instance, some studies proposed momentary conditional independence [15], while others utilized deep learning architectures tailored for time series to compute scores [14]. However, these methods still suffer from significant performance degradation when autocorrelation becomes strong. To address these key challenges in causal discovery for autocorrelated time series, this paper introduces the aMCI method and the ECD-aMCI algorithm. The proposed algorithm dynamically adapts conditioning sets to mitigate the masking effects of strong autocorrelation while maintaining control over false discovery rates. Furthermore, our theoretical analysis establishes its consistency and order independence properties.
Extensive evaluations on both simulated and benchmark datasets demonstrate significant improvements in detection power for causal links, especially lagged links. In both linear and nonlinear scenarios, as the autocorrelation coefficient a increases, the performance of all methods in the causal structure identification task exhibits varying degrees of decline. However, ECD-aMCI consistently maintains the optimal F1-score. Even under the most challenging setting of a = 0.9 , its F1-score remains close to 0.8 , which is significantly higher than those reported in previous studies [5,15]. These simulation results indicate that while high autoregressive strength is detrimental to causal structure identification, ECD-aMCI effectively mitigates this issue.
Despite these contributions, we discuss the limitations of the ECD-aMCI algorithm and future research directions from three main perspectives: regular sampling, the causal sufficiency assumption, and the stationarity assumption. The limitations are as follows:
  • The proposed algorithm is currently limited to regularly sampled time series and cannot handle irregular sampling intervals. If causal graphs need to be learned from irregularly sampled or event-driven time series data [27], frameworks based on stochastic processes would be more appropriate [28,29].
  • Addressing latent confounders remains an important direction for future work. Ignoring latent confounding factors may lead to incorrect causal conclusions. Some existing causal discovery algorithms account for unobserved confounders; for example, tsFCI [30] and SVAR-FCI [31] extract information regarding ancestral relationships among observed variables to learn a partial ancestral graph. Since ECD-aMCI and tsFCI are both constraint-based algorithms, future research could consider combining the insights of the aMCI method with the frameworks of tsFCI and SVAR-FCI to handle the effects of latent confounding.
  • In many practical scenarios (e.g., financial data with trends, climatic data with regime shifts or structural breaks), time series may not be stationary [32]. Therefore, investigating the scalability of the ECD-aMCI algorithm on non-stationary data is an important direction. Algorithms designed for non-stationary time series are typically built upon foundations established for stationary cases [32,33,34]. For instance, the SPACETIME algorithm’s core strategy involves identifying change points in the distribution and assuming stationarity between them [34]. Consequently, the insights of the ECD-aMCI algorithm can potentially transfer to algorithms designed for non-stationary time series.

6. Conclusions

This paper addresses a critical bottleneck in time series causal discovery: the significant performance degradation of constraint-based algorithms in the presence of strong autocorrelation. To overcome the masking effects of autocorrelation, we proposed the aMCI method, which dynamically adjusts the conditioning set to preserve causal signals while rigorously controlling false discovery rates. Building upon this foundational method, we introduced the ECD-aMCI, a multi-phase algorithm designed to progressively refine causal structures and fully leverage the aMCI framework for both lagged and contemporaneous links.
Theoretically, the ECD-aMCI algorithm provides a hyperparameter-insensitive and order-independent framework that is provably consistent under oracle conditions. Empirically, extensive evaluations demonstrate that ECD-aMCI consistently achieves the highest F 1 - score   lagged and F 1 - score   all while maintaining the lowest SHD across various linear and nonlinear simulated datasets. Furthermore, validation on real-world fMRI benchmarks and telecommunication network alarm data confirms its practical effectiveness and robustness in complex, high-autocorrelation environments.
While ECD-aMCI substantially advances the accuracy of causal discovery from time series, several avenues for future research remain. Currently, the proposed algorithm relies on the assumptions of regular sampling, causal sufficiency, and stationarity. Future work could explore integrating the adaptive insights of the aMCI method with stochastic process frameworks to handle irregularly sampled data, or combining it with latent variable discovery frameworks (such as tsFCI) to account for unmeasured confounders.

Author Contributions

Conceptualization, M.G.; methodology, M.G. and Y.Z.; software, M.G.; validation, M.G.; formal analysis, M.G.; investigation, M.G. and Y.Z.; resources, Y.Z.; data curation, M.G.; writing—original draft preparation, M.G.; writing—review and editing, M.G. and Y.Z.; visualization, M.G.; supervision, Y.Z.; project administration, Y.Z.; funding acquisition, Y.Z. All authors have read and agreed to the published version of the manuscript.

Funding

Shanghai Natural Science Foundation (No. 24ZR1420400), Shanghai Science and Technology Innovation Action Plan’ Computational Biology Key Project (No. 23JS1400500, No. 23JS1400800) and Fundamental and Interdisciplinary Disciplines Breakthrough Plan of the Ministry of Education of China (No. JYB2025XDXM904).

Data Availability Statement

The dataset NetSim used for this study is available at: https://www.fmrib.ox.ac.uk/datasets/netsim/ (accessed on 17 February 2026), and telecommunication network alarm data is available at: https://competition.huaweicloud.com/information/1000041487/dataset (accessed on 17 February 2026).

Acknowledgments

During the preparation of this manuscript/study, the authors used Gemini 3 Pro for the purposes of text polishing and language refinement. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
aMCIAdaptive momentary conditional independence
SCMStructural causal model
GCGranger causality
SBScore-based
CBConstraint-based
DAGDirected acyclic graph
SHDStructural hamming distance

Appendix A. Pseudocodes of the Orientation Rules

Appendix A provides the complete pseudocodes for the orientation rules.
Algorithm A1 Detailed collider phase with conservative rules
  • Require:  G ^ and separating sets from Algorithm 4, time series dataset X , confidence level α , C I ( X , Y , Z ) , B ^ ( X j , t ) for all j in { 1 , , d } .
  1:
for all unshielded triples X i , t τ X k , t X j , t ( τ > 0 ) or X i , t X k , t X j , t ( τ = 0 ) in G ^ where ( X i , t τ , X j , t ) are not adjacent do
  2:
    Define contemporaneous adjacencies A ^ ( X j , t ) { X i , t X j , t X t : X i , t X j , t in G ^ }
  3:
    for all S A ^ ( X j , t ) { X i , t τ } and for all S A ^ ( X i , t ) { X j , t } (if τ = 0 ) do
  4:
         ( p - value , I , S ) C I ( X i , t τ , X j , t , S B ^ ( X j , t ) B ^ ( X i , t τ ) { X i , t τ } )
  5:
        Store subset S with p-value > α as separating subset
  6:
    end for
  7:
    if no separating subsets are found then
  8:
        Mark triple as ambiguous
  9:
    else
10:
        Compute fraction n k of separating subsets that contain X k , t , orient triple as collider if n k = 0 , leave unoriented if n k = 1 , and mark as ambiguous if 0 < n k < 1
11:
    end if
12:
    Mark links in G ^ with conflicting orientations as × ×
13:
end for
14:
return  G ^ , seperating set, ambiguous triples, conflicting links
Algorithm A2 Detailed rule orientation phase
  • Require:  G ^ , ambiguous triples, conflicting links
  1:
while any unambiguous triples suitable for rules R1-R3 are remaining do
  2:
    Apply rule R1 (orient unshielded triples that are not colliders):
  3:
    for all unambiguous triples X i , t τ X k , t X j , t where ( X i , t τ , X j , t ) are not adjacent do
  4:
        Orient as X i , t τ X k , t X j , t
  5:
    end for
  6:
    Mark links with conflicting orientations as × ×
  7:
    Apply rule R2 (avoid cycles):
  8:
    for all unambiguous triples X i , t X k , t X j , t with X i , t X j , t  do
  9:
        Orient as X i , t X j , t
10:
    end for
11:
    Mark links with conflicting orientations as × ×
12:
    Apply rule R3 (orient unshielded triples that are not colliders and avoid cycles):
13:
    for all pairs of unambiguous triples X i , t X k , t X j , t and X i , t X l , t X j , t where ( X k , t , X l , t ) are not adjacent and X i , t X j , t  do
14:
        Orient as X i , t X j , t
15:
    end for
16:
    Mark links with conflicting orientations as × ×
17:
end while
18:
return  G ^ , conflicting links

Appendix B. Proofs of Theoretical Properties

Proof of Theorem 1. 
The proof of consistency comprises three primary steps: initially demonstrating that Algorithms 2 and 3 return a superset of the lagged parent set B ^ ( X j , t ) , then establishing that Algorithm 4 accurately recovers the skeleton of the causal graph, and finally establishing that all unshielded triples that are colliders are correctly identified.
Step 1: Superset Property of Estimated Lagged Parents. Since Algorithm 2 is adopted from Algorithm 1 in Runge [15], the estimated lagged parent set B ^ ( X j , t ) satisfies the condition B ( X j , t ) B ^ ( X j , t ) based on Lemma S1 in Runge [15]. Given oracle conditional independence tests, we assert that the outcome of the aMCI method is equivalent to that of MCI. Without loss of generality, we only need to prove that if X i , t τ 1 is not a confounder, then replacing X i , t τ 1 with X i , t τ 2 does not affect the conditional independence conclusion—that is, testing X i , t τ X j , t X i , t τ 2 instead of X i , t τ X j , t X i , t τ 1 still yields the same result. Under the causal sufficiency and faithfulness assumptions, X Y Z if and only if X is d-separated from Y given Z . Under the temporal priority assumption, X i , t τ 1 cannot be a collider. Therefore, if X i , t τ 1 is also not a confounder, then according to the definition of d-separation in Section 2, replacing X i , t τ 1 with X i , t τ 2 does not affect the d-separation between X i , t τ and X j , t . That is, X i , t τ X j , t X i , t τ 1 if and only if X i , t τ X j , t X i , t τ 2 . Since the two conditional independence statements are equivalent and the tests are assumed to be oracle, the outcome of the aMCI method is equivalent to that of MCI. Consequently, Algorithm 3 does not update the originally estimated lagged parents at p = 0 . In the p = 1 phase, Algorithm 3 will remove parents of one contemporaneous parent of X j , t that are not parents of X j , t directly. Therefore, the refined estimated lagged parent set remains a superset of the true lagged parent set B ( X j , t ) .
Step 2: Correctness of the Skeleton Discovery. In this step, G ^ * = G * is proved under Assumptions 1–5, where G * represents the skeleton of the causal graph. To establish this equality, it is sufficient to demonstrate that for any arbitrary X i , t τ , X j , t , the following statements hold: (1) X i , t τ X j , t G ^ * X i , t τ X j , t G * and (2) X i , t τ X j , t G * X i , t τ X j , t G ^ * , where denotes both types of skeleton links (directed links → and undirected links ) for simplicity.
(1)
Algorithm 2 eliminates a link X i , t τ X j , t from G ^ * if and only if X i , t τ X j , t S a d for some subset S A ^ ( X j , t ) during the iterative conditional independence tests, where S a d is the third outcome of the aMCI. Here, A ^ ( X j , t ) denotes the contemporaneous adjacencies. By the principle of faithfulness, this conditional independence directly implies that X i , t τ and X j , t are d-seperated by S a d in the true causal graph, thus X i , t τ X j , t G * .
(2)
According to the conclusion of Step 1, B ^ ( X i , t τ ) B ^ ( X j , t ) X i , t τ does not contain descendants. Thus, the causal Markov condition yields ( X i , t τ , B ^ ( X i , t τ ) B ^ ( X j , t ) X i , t τ ) X j , t P ( X j , t ) . Applying the weak union property of conditional independence, we derive X i , t τ X j , t P ( X j , t ) ( B ^ ( X i , t τ ) B ^ ( X j , t ) X i , t τ ) . Note that X i , t τ P ( X j , t ) since X i , t τ X j , t G * , for the case where τ = 0 , we assume X i , t is not a descendant of X j , t (as the alternate case would be covered by exchanging X i , t and X j , t ).
Now it suffices to prove that the conditioning set P ( X j , t ) ( B ^ ( X i , t τ ) B ^ ( X j , t ) X i , t τ ) must be tested in Algorithm 4. Algorithm 4 systematically tests X i , t τ X j , t S B ^ ( X i , t τ ) B ^ ( X j , t ) X i , t τ across all subsets S A ^ ( X j , t ) . The contrapositive of Step 2 (1) confirms that the estimated contemporaneous adjacencies consistently include the true contemporaneous adjacencies as a subset, i.e., A ( X j , t ) A ^ ( X j , t ) . Furthermore, Step 1 also confirms that B ^ ( X j , t ) encompasses all lagged parents of X j , t , i.e., B ( X j , t ) B ^ ( X j , t ) . Consequently, during the iteration process, there exists a subset S such that S B ^ ( X i , t τ ) B ^ ( X j , t ) X i , t τ = P ( X j , t ) ( B ^ ( X i , t τ ) B ^ ( X j , t ) X i , t τ ) . Algorithm 4 will detect X i , t τ X j , t P ( X j , t ) ( B ^ ( X i , t τ ) B ^ ( X j , t ) X i , t τ ) and subsequently remove X i , t τ X j , t from G ^ * .
Step 3: The proof that all unshielded triples that are colliders are correctly identified involves two aspects: (1) If unshielded triples are oriented as colliders in Algorithm A1, then these triples are truly colliders (establishing the correctness of the collider orientation phase), and (2) All unshielded triples that are colliders can be correctly identified. Based on the established correctness of the skeleton discovery in Step 2 and the reliability of oracle conditional independence tests, the triples that are oriented as colliders in Line 10 of Algorithm A1 are correct. Therefore, it remains to show that all unshielded triples that are colliders are correctly identified.
Considering a generic triple X i , t i X k , t k X j , t j , we can fix t j = t by stationarity. Time order constraints and stationarity properties allow us to reduce the analysis to two specific cases: X i , t τ X k , t X j , t (for τ > 0 ) or X i , t X k , t X j , t (for τ = 0 ) in G where X i , t τ and X j , t are not adjacent. Since X k , t is contemporaneous with X j , t , only contemporaneous components of separating sets are relevant for the collider orientation phase. Given the correctness of the skeleton discovery and the fact that ( X i , t τ , X j , t ) are not adjacent, there exists a subset S such that X i , t τ X j , t S B ^ ( X i , t τ ) B ^ ( X j , t ) { X i , t τ } . Furthermore, by the faithfulness assumption and the definition of d-separation, X k , t cannot belong to any set S for which X i , t τ X j , t S B ^ ( X i , t τ ) B ^ ( X j , t ) { X i , t τ } . This implies that all unshielded triples that are colliders can be correctly identified according to the rules of the Algorithm A1. □
Proof of Theorem 2. 
The proof of the order-independence consists of three main steps: first demonstrating that the aMCI method is order-independent, then proving that the estimation of refined lagged parent sets and complete skeleton is order-independent, and finally establishing the order-independence of the orientation process.
Step 1: Order-independence of the aMCI method. The aMCI method, by definition, operates as a mapping function that takes inputs ( X i , t τ , X j , t , S , B ^ ( X i , t τ ) , B ^ ( X j , t ) ) and produces outcomes determined solely by these inputs. Since the outcomes are completely determined by the input values rather than the order in which variables are processed, the application of the aMCI method preserves the order-independence property of any algorithm that incorporates it.
Step 2: Order-independence of parent set estimation and skeleton discovery. The processes described in Algorithms 2–4 maintain order-independence by adopting the idea of PC-stable. In Algorithms 2–4, edge removals are executed only after completing each iteration over conditioning sets of cardinality p. As established in Step 1, the integration of the aMCI method does not compromise this property, thereby ensuring that the estimation of refined lagged parent sets and the discovery of the complete skeleton remain order-independent.
Step 3: Order-independence of orientation phases. The orientation process maintains order-independence through careful management of potential conflicts. Following the methodology established in [15], the collider identification phase (Algorithm A1) and the rule-based orientation phase (Algorithm A2) preserve order-independence by implementing two key strategies: (1) ambiguity marking for triples with inconsistent separating sets, and (2) consistent marking of conflicting link orientations using the notation × × . □

Appendix C. Detailed Hyperparameter Settings

This section presents all hyperparameters required for the experiments in linear and nonlinear settings.

Appendix C.1. Hyperparameters of Linear Settings

All hyperparameters required for the experiments in Figure 2 are provided in the following.
  • ECD-aMCI, PCMCI+: Confidence level α = 0.01 , maximum time lag τ max = 5 , condition independence test C I = P a r C o r r .
  • Bagged-PCMCI+: Confidence level α = 0.01 , maximum time lag τ max = 5 , condition independence test C I = P a r C o r r , boot samples B bagged = 50 .
  • NTS-NOTEARS: λ 1 = 0.01 for T { 250 , 500 } , λ 1 = 0.001 for T { 750 , 1250 } , λ 2 = 0.05 , K = 5 , m = d , the number of hidden layers = 1.

Appendix C.2. Hyperparameters of Nonlinear Settings

Hyperparameters: All hyperparameters required for the experiments in Figure 1 are provided in the following.
  • ECD-aMCI, PCMCI+: Confidence level α = 0.01 , maximum time lag τ max = 3 , condition independence test C I = G P D C .
  • NTS-NOTEARS: λ 1 = 0.01 for T { 250 , 500 } , λ 1 = 0.001 for T { 750 , 1250 } , λ 2 = 0.05 , K = 3 , m = d , the number of hidden layers = 1.

References

  1. Miao, W.; Shi, X.; Li, Y.; Tchetgen, E.J.T. A confounding bridge approach for double negative control inference on causal effects. Stat. Theory Relat. Fields 2024, 8, 262–273. [Google Scholar] [CrossRef]
  2. Xu, T.; Zhao, J. Relaxed doubly robust estimation in causal inference. Stat. Theory Relat. Fields 2024, 8, 69–79. [Google Scholar] [CrossRef] [PubMed]
  3. Nogueira, A.R.; Pugnana, A.; Ruggieri, S.; Pedreschi, D.; Gama, J. Methods and tools for causal discovery and causal inference. Wiley Interdiscip. Rev. Data Min. Knowl. Discov. 2022, 12, e1449. [Google Scholar] [CrossRef]
  4. Gong, C.; Zhang, C.; Yao, D.; Bi, J.; Li, W.; Xu, Y. Causal discovery from temporal data: An overview and new perspectives. ACM Comput. Surv. 2024, 57, 1–38. [Google Scholar] [CrossRef]
  5. Runge, J.; Nowack, P.; Kretschmer, M.; Flaxman, S.; Sejdinovic, D. Detecting and quantifying causal associations in large nonlinear time series datasets. Sci. Adv. 2019, 5, eaau4996. [Google Scholar] [CrossRef] [PubMed]
  6. Hyvärinen, A.; Zhang, K.; Shimizu, S.; Hoyer, P.O. Estimation of a structural vector autoregression model using non-Gaussianity. J. Mach. Learn. Res. 2010, 11, 1709–1731. [Google Scholar]
  7. Peters, J.; Janzing, D.; Schölkopf, B. Causal inference on time series using restricted structural equation models. Adv. Neural Inf. Process. Syst. 2013, 26, 154–162. [Google Scholar]
  8. Assaad, C.K.; Devijver, E.; Gaussier, E.; Ait-Bachir, A. A Mixed Noise and Constraint-Based Approach to Causal Inference in Time Series. In Proceedings of the Machine Learning and Knowledge Discovery in Databases (Research Track); Springer: Cham, Germany, 2021; pp. 453–468. [Google Scholar]
  9. Wu, T.; Wu, X.; Wang, X.; Liu, S.; Chen, H. Nonlinear Causal Discovery in Time Series. In Proceedings of the 31st ACM International Conference on Information & Knowledge Management; Association for Computing Machinery: New York, NY, USA, 2022; CIKM ’22; pp. 4575–4579. [Google Scholar] [CrossRef]
  10. Löwe, S.; Madras, D.; Zemel, R.; Welling, M. Amortized Causal Discovery: Learning to Infer Causal Graphs from Time-Series Data. In Proceedings of the First Conference on Causal Learning and Reasoning; PMLR; JMLR: Cambridge, MA, USA, 2022; Volume 177, pp. 509–525. [Google Scholar]
  11. Li, H.; Yu, S.; Principe, J. Causal Recurrent Variational Autoencoder for Medical Time Series Generation. In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI Press: Washington, DC, USA, 2023; Volume 37, pp. 8562–8570. [Google Scholar] [CrossRef]
  12. Zheng, X.; Aragam, B.; Ravikumar, P.K.; Xing, E.P. Dags with no tears: Continuous optimization for structure learning. Adv. Neural Inf. Process. Syst. 2018, 31, 9492–9503. [Google Scholar]
  13. Pamfil, R.; Sriwattanaworachai, N.; Desai, S.; Pilgerstorfer, P.; Georgatzis, K.; Beaumont, P.; Aragam, B. DYNOTEARS: Structure learning from time-series data. In Proceedings of the International Conference on Artificial Intelligence and Statistics; PMLR; JMLR: Cambridge, MA, USA, 2020; pp. 1595–1605. [Google Scholar]
  14. Sun, X.; Schulte, O.; Liu, G.; Poupart, P. NTS-NOTEARS: Learning Nonparametric DBNs With Prior Knowledge. arXiv 2023, arXiv:2109.04286. [Google Scholar] [CrossRef]
  15. Runge, J. Discovering contemporaneous and lagged causal relations in autocorrelated nonlinear time series datasets. In Proceedings of the Conference on Uncertainty in Artificial Intelligence; PMLR; JMLR: Cambridge, MA, USA, 2020; pp. 1388–1397. [Google Scholar]
  16. Debeire, K.; Gerhardus, A.; Runge, J.; Eyring, V. Bootstrap aggregation and confidence measures to improve time series causal discovery. In Proceedings of the Causal Learning and Reasoning; PMLR; JMLR: Cambridge, MA, USA, 2024; pp. 979–1007. [Google Scholar]
  17. Pearl, J. Causality; Cambridge University Press: Cambridge, UK, 2009. [Google Scholar]
  18. Spirtes, P.; Glymour, C.; Scheines, R.; Kauffman, S.; Aimale, V.; Wimberly, F. Constructing Bayesian Network Models of Gene Expression Networks from Microarray Data. In Proceedings of the Atlantic Symposium on Computational Biology, Genome Information Systems & Technology; Association for Intelligent Machinery: Durham, NC, USA, 2002. [Google Scholar]
  19. Meek, C. Causal inference and causal explanation with background knowledge. In Proceedings of the Eleventh Conference on Uncertainty in Artificial Intelligence, San Francisco, CA, USA, 18–20 August 1995; UAI’95. pp. 403–410. [Google Scholar]
  20. Spirtes, P.; Glymour, C.; Scheines, R. Causation, Prediction, and Search; MIT Press: Cambridge, MA, USA, 2001. [Google Scholar]
  21. Biswas, R.; Shlizerman, E. Statistical perspective on functional and causal neural connectomics: The Time-Aware PC algorithm. PLoS Comput. Biol. 2022, 18, e1010653. [Google Scholar] [CrossRef] [PubMed]
  22. Colombo, D.; Maathuis, M.H. Order-independent constraint-based causal structure learning. J. Mach. Learn. Res. 2014, 15, 3741–3782. [Google Scholar]
  23. Hotelling, H. New Light on the Correlation Coefficient and its Transforms. J. R. Stat. Soc. Ser. B (Methodol.) 1953, 15, 193–225. [Google Scholar] [CrossRef]
  24. Runge, J. Conditional independence testing based on a nearest-neighbor estimator of conditional mutual information. In Proceedings of the International Conference on Artificial Intelligence and Statistics; PMLR; JMLR: Cambridge, MA, USA, 2018; pp. 938–947. [Google Scholar]
  25. Reisach, A.; Seiler, C.; Weichwald, S. Beware of the simulated dag! causal discovery benchmarks may be easy to game. Adv. Neural Inf. Process. Syst. 2021, 34, 27772–27784. [Google Scholar]
  26. Smith, S.M.; Miller, K.L.; Salimi-Khorshidi, G.; Webster, M.; Beckmann, C.F.; Nichols, T.E.; Ramsey, J.D.; Woolrich, M.W. Network modelling methods for FMRI. Neuroimage 2011, 54, 875–891. [Google Scholar] [CrossRef]
  27. Daley, D.J.; Vere-Jones, D. An Introduction to the Theory of Point Processes: Volume I: Elementary Theory and Methods; Springer: New York, NY, USA, 2003. [Google Scholar]
  28. Truccolo, W.; Eden, U.T.; Fellows, M.R.; Donoghue, J.P.; Brown, E.N. A point process framework for relating neural spiking activity to spiking history, neural ensemble, and extrinsic covariate effects. J. Neurophysiol. 2005, 93, 1074–1089. [Google Scholar] [CrossRef]
  29. Eichler, M.; Dahlhaus, R.; Dueck, J. Graphical modeling for multivariate Hawkes processes with nonparametric link functions. J. Time Ser. Anal. 2017, 38, 225–242. [Google Scholar] [CrossRef]
  30. Entner, D.; Hoyer, P. On causal discovery from time series data using FCI. In Proceedings of the 5th EuropeanWorkshop on Probabilistic Graphical Models, Helsinki, Finland, 13–15 September 2010; Myllymäki, P., Roos, T., Jaakkola, T., Eds.; HIIT: Helsinki, Finland, 2010; pp. 121–128. [Google Scholar]
  31. Malinsky, D.; Spirtes, P. Causal Structure Learning from Multivariate Time Series in Settings with Unmeasured Confounding. In Proceedings of the 2018 ACM SIGKDD Workshop on Causal Disocvery; Le, T.D., Zhang, K., Kıcıman, E., Hyvärinen, A., Liu, L., Eds.; PMLR; JMLR: Cambridge, MA, USA, 2018; Volume 92, pp. 23–47. [Google Scholar]
  32. Huang, B.; Zhang, K.; Gong, M.; Glymour, C. Causal discovery and forecasting in nonstationary environments with state-space models. In Proceedings of the International Conference on Machine Learning; PMLR; JMLR: Cambridge, MA, USA, 2019; pp. 2901–2910. [Google Scholar]
  33. Zhang, K.; Huang, B.; Zhang, J.; Glymour, C.; Schölkopf, B. Causal discovery from nonstationary/heterogeneous data: Skeleton estimation and orientation determination. In Proceedings of the IJCAI: Proceedings of the Conference; AAAI Press: Washington, DC, USA, 2017; Volume 2017, p. 1347. [Google Scholar]
  34. Mameche, S.; Cornanguer, L.; Ninad, U.; Vreeken, J. SPACETIME: Causal Discovery from Non-Stationary Time Series. Proc. AAAI Conf. Artif. Intell. 2025, 39, 19405–19413. [Google Scholar] [CrossRef]
Figure 1. (A) Causal graph corresponding to the model (1). (B) Alternative causal graph with X 1 , t 2 as a confounder. (C) Causal signal loss when conditioning on X 1 , t 2 and X 2 , t 1 under causal graph (A). (D) Causal signal enhancement when conditioning on X 1 , t 3 and X 2 , t 1 under causal graph (A).
Figure 1. (A) Causal graph corresponding to the model (1). (B) Alternative causal graph with X 1 , t 2 as a confounder. (C) Causal signal loss when conditioning on X 1 , t 2 and X 2 , t 1 under causal graph (A). (D) Causal signal enhancement when conditioning on X 1 , t 3 and X 2 , t 1 under causal graph (A).
Mathematics 14 01129 g001
Figure 2. The difference in conditioning set selection between the MCI and aMCI methods for lagged links. Light blue nodes represent the pair of variables under consideration, and light green nodes represent the variables in the conditioning set.
Figure 2. The difference in conditioning set selection between the MCI and aMCI methods for lagged links. Light blue nodes represent the pair of variables under consideration, and light green nodes represent the variables in the conditioning set.
Mathematics 14 01129 g002
Figure 3. The difference in conditioning set selection between the MCI and aMCI methods for instantaneous links. Light blue nodes represent the pair of variables under consideration, and light green nodes represent the variables in the conditioning set.
Figure 3. The difference in conditioning set selection between the MCI and aMCI methods for instantaneous links. Light blue nodes represent the pair of variables under consideration, and light green nodes represent the variables in the conditioning set.
Mathematics 14 01129 g003
Figure 4. Flowchart of the multi-phase ECD-aMCI algorithm. The red solid arrows represent falsely identified causal edges, while the red dashed arrows denote missed causal edges.
Figure 4. Flowchart of the multi-phase ECD-aMCI algorithm. The red solid arrows represent falsely identified causal edges, while the red dashed arrows denote missed causal edges.
Mathematics 14 01129 g004
Figure 5. Mean metrics over 300 datasets for each linear setting.
Figure 5. Mean metrics over 300 datasets for each linear setting.
Mathematics 14 01129 g005
Figure 6. Mean metrics over 50 datasets for each nonlinear linear setting.
Figure 6. Mean metrics over 50 datasets for each nonlinear linear setting.
Mathematics 14 01129 g006
Figure 7. The results of learning a causal graph on an fMRI dataset ( d = 5 ) using different causal discovery algorithms.
Figure 7. The results of learning a causal graph on an fMRI dataset ( d = 5 ) using different causal discovery algorithms.
Mathematics 14 01129 g007
Table 1. Summary and comparison of causal discovery methods for time series data.
Table 1. Summary and comparison of causal discovery methods for time series data.
CategoryMethodGraph TypeNonlinearInstantaneous
SCM-basedVAR-LiNGAMWindowNoYes
TiMINoSummaryYesNo
NBCBSummaryYesYes
NCDHSummaryYesNo
GC-basedACDSummaryYesNo
CR-VAESummaryYesYes
Score-basedDYNOTEARSWindowNoYes
NTS-NOTEARSWindowYesYes
Constraint-basedPCMCIWindowYesNo
PCMCI+WindowYesYes
Bagged-PCMCI+WindowYesYes
Table 2. Summary of mathematical notations.
Table 2. Summary of mathematical notations.
NotationDescription
P ( X j , t ) True parent set of X j , t in G
B ^ ( X j , t ) Estimated lagged parent set of X j , t
B ( X j , t ) True lagged parent set of X j , t
A ^ ( X j , t ) Estimated contemporaneous adjacency set of X j , t
A ( X j , t ) True contemporaneous adjacency set of X j , t
a M C I ( · ) Adaptive Momentary Conditional Independence method
Conditional independence relation
Generic link (directed → or undirected )
× × Conflicting link orientation
d-separationGraph-theoretic conditional independence criterion
Table 3. Summary of causal discovery algorithms for time series.
Table 3. Summary of causal discovery algorithms for time series.
CategoryMethodWindowContemporaneous
CBPCMCI+YY
CBBagged-PCMCI+YY
SBNTS-NOTEARSYY
SBDYNOTEARSYY
SCMVAR-LiNGAMYY
SCMTiMINoNY
SCMNBCBNY
SCMNCDHNN
GCACDNN
GCCR-VAENY
Table 4. Performance comparison of methods under linear setting (varying a).
Table 4. Performance comparison of methods under linear setting (varying a).
MetricMethoda
0.9 0.8 0.7 0.6 0.5
F1-scorelaggedECD-aMCI0.775 ± 0.1060.848 ± 0.0770.873 ± 0.0720.884 ± 0.0670.886 ± 0.064
PCMCI+0.519 ± 0.1560.695 ± 0.1180.807 ± 0.0860.848 ± 0.0730.867 ± 0.066
Bagged-PCMCI+0.456 ± 0.1480.586 ± 0.1210.672 ± 0.1010.679 ± 0.0980.671 ± 0.091
NTS-NOTEARS0.240 ± 0.1500.493 ± 0.1940.708 ± 0.0970.799 ± 0.0740.837 ± 0.071
F1-scoreallECD-aMCI0.875 ± 0.0540.917 ± 0.0370.928 ± 0.0350.932 ± 0.0340.931 ± 0.033
PCMCI+0.785 ± 0.0660.857 ± 0.0460.900 ± 0.0370.916 ± 0.0340.922 ± 0.033
Bagged-PCMCI+0.724 ± 0.0690.779 ± 0.0540.810 ± 0.0480.808 ± 0.0500.798 ± 0.050
NTS-NOTEARS0.355 ± 0.1220.564 ± 0.1600.753 ± 0.0590.850 ± 0.0430.883 ± 0.042
SHDECD-aMCI11.603 ± 4.1028.903 ± 3.1698.643 ± 3.1079.410 ± 3.12110.547 ± 3.126
PCMCI+16.673 ± 4.55912.570 ± 3.39310.560 ± 3.03910.543 ± 2.95811.207 ± 2.997
Bagged-PCMCI+22.203 ± 4.87718.997 ± 4.03017.947 ± 4.00418.977 ± 4.24720.717 ± 4.186
NTS-NOTEARS67.903 ± 16.78738.937 ± 10.17422.957 ± 5.42414.623 ± 4.00411.793 ± 3.583
Runtime (s)ECD-aMCI35.68 ± 21.6421.15 ± 12.9318.80 ± 13.1112.30 ± 4.2211.53 ± 3.60
PCMCI+20.92 ± 13.9610.80 ± 5.619.71 ± 6.636.66 ± 2.284.34 ± 0.97
Bagged-PCMCI+439.70 ± 120.31359.30 ± 89.56339.73 ± 89.41330.18 ± 75.78314.70 ± 74.63
NTS-NOTEARS13.76 ± 9.9815.59 ± 11.4213.13 ± 5.0214.15 ± 4.8014.43 ± 5.52
Note: Bold values in all tables indicate the best performance in their respective columns.
Table 5. Performance comparison of methods under linear setting (varying T).
Table 5. Performance comparison of methods under linear setting (varying T).
MetricMethodT
2505007501000
F1-scorelaggedECD-aMCI0.592 ± 0.1340.848 ± 0.0770.920 ± 0.0550.945 ± 0.046
PCMCI+0.459 ± 0.1350.695 ± 0.1180.796 ± 0.1060.844 ± 0.080
Bagged-PCMCI+0.374 ± 0.1310.586 ± 0.1210.705 ± 0.1130.760 ± 0.093
NTS-NOTEARS0.426 ± 0.1910.493 ± 0.1940.531 ± 0.1580.537 ± 0.164
F1-scoreallECD-aMCI0.781 ± 0.0580.917 ± 0.0370.954 ± 0.0270.967 ± 0.024
PCMCI+0.709 ± 0.0600.857 ± 0.0460.909 ± 0.0430.932 ± 0.032
Bagged-PCMCI+0.647 ± 0.0620.779 ± 0.0540.844 ± 0.0510.874 ± 0.043
NTS-NOTEARS0.522 ± 0.1730.564 ± 0.1600.607 ± 0.1350.610 ± 0.142
SHDECD-aMCI19.317 ± 3.8548.903 ± 3.1695.267 ± 2.6313.783 ± 2.330
PCMCI+23.360 ± 3.55612.570 ± 3.3938.123 ± 3.4215.857 ± 2.586
Bagged-PCMCI+28.003 ± 4.23418.997 ± 4.03014.283 ± 4.16711.780 ± 3.603
NTS-NOTEARS39.940 ± 7.68238.937 ± 10.17439.063 ± 7.76737.303 ± 6.749
Runtime (s)ECD-aMCI9.790 ± 2.84221.154 ± 12.92916.803 ± 5.77917.980 ± 7.912
PCMCI+3.375 ± 0.88710.797 ± 5.6148.548 ± 2.44910.487 ± 3.330
Bagged-PCMCI+235.378 ± 51.948359.303 ± 89.555512.583 ± 113.982589.065 ± 137.459
NTS-NOTEARS10.321 ± 3.37815.589 ± 11.41722.436 ± 15.59618.564 ± 4.539
Table 6. Performance comparison of methods under linear setting (varying d).
Table 6. Performance comparison of methods under linear setting (varying d).
MetricMethodd
10203040
F1-scorelaggedECD-aMCI0.945 ± 0.0460.935 ± 0.0310.917 ± 0.0280.897 ± 0.027
PCMCI+0.844 ± 0.0800.833 ± 0.1010.807 ± 0.1080.785 ± 0.115
Bagged-PCMCI+0.760 ± 0.0930.739 ± 0.0950.700 ± 0.0950.669 ± 0.097
NTS-NOTEARS0.537 ± 0.1640.486 ± 0.1760.423 ± 0.1890.388 ± 0.198
F1-scoreallECD-aMCI0.967 ± 0.0240.957 ± 0.0180.944 ± 0.0160.931 ± 0.018
PCMCI+0.932 ± 0.0320.924 ± 0.0420.909 ± 0.0470.897 ± 0.050
Bagged-PCMCI+0.874 ± 0.0430.839 ± 0.0440.805 ± 0.0420.776 ± 0.043
NTS-NOTEARS0.610 ± 0.1420.563 ± 0.1610.510 ± 0.1840.480 ± 0.189
SHDECD-aMCI3.783 ± 2.3309.077 ± 3.44515.963 ± 4.58526.157 ± 7.028
PCMCI+5.857 ± 2.58612.957 ± 6.06221.823 ± 10.23832.750 ± 14.379
Bagged-PCMCI+11.780 ± 3.60329.827 ± 6.99053.683 ± 9.81182.400 ± 12.798
NTS-NOTEARS37.303 ± 6.74979.283 ± 11.669126.643 ± 13.792170.520 ± 17.492
Runtime (s)ECD-aMCI17.980 ± 7.91268.724 ± 18.949160.456 ± 66.461337.322 ± 183.383
PCMCI+10.487 ± 3.33038.660 ± 13.03185.480 ± 32.818176.178 ± 102.563
Bagged-PCMCI+589.065 ± 137.4592571.851 ± 699.3926732.931 ± 2098.73113,243.336 ± 3738.661
NTS-NOTEARS18.564 ± 4.53999.162 ± 53.911384.579 ± 188.730795.130 ± 407.888
Table 7. Performance comparison of methods under nonlinear setting (varying a).
Table 7. Performance comparison of methods under nonlinear setting (varying a).
MetricMethoda
0.90.80.70.60.5
F1-scorelaggedECD-aMCI0.737 ± 0.1010.752 ± 0.1070.778 ± 0.0930.794 ± 0.0790.816 ± 0.077
PCMCI+0.685 ± 0.1170.713 ± 0.1030.738 ± 0.1010.763 ± 0.0970.784 ± 0.092
NTS-NOTEARS0.718 ± 0.1030.745 ± 0.0910.766 ± 0.0840.789 ± 0.0780.809 ± 0.081
F1-scoreallECD-aMCI0.850 ± 0.0370.857 ± 0.0390.868 ± 0.0360.870 ± 0.0320.869 ± 0.035
PCMCI+0.806 ± 0.0450.825 ± 0.0400.837 ± 0.0380.847 ± 0.0340.849 ± 0.035
NTS-NOTEARS0.812 ± 0.0460.834 ± 0.0410.854 ± 0.0410.863 ± 0.0390.872 ± 0.040
SHDECD-aMCI20.920 ± 3.12320.600 ± 3.28020.280 ± 2.89220.640 ± 2.54421.120 ± 2.903
PCMCI+24.320 ± 3.55223.300 ± 3.13222.760 ± 3.17822.300 ± 2.74422.440 ± 2.815
NTS-NOTEARS24.540 ± 4.67922.400 ± 3.86320.560 ± 4.25319.400 ± 3.95018.660 ± 4.246
Runtime (s)ECD-aMCI4423.80 ± 696.924467.35 ± 876.324733.17 ± 823.103692.25 ± 836.554046.83 ± 1067.61
PCMCI+1649.92 ± 388.471811.52 ± 414.251951.26 ± 465.311550.20 ± 356.561515.32 ± 424.96
NTS-NOTEARS8.52 ± 1.058.40 ± 1.419.06 ± 1.266.08 ± 0.5110.27 ± 2.06
Table 8. Performance comparison of methods under nonlinear setting (varying T).
Table 8. Performance comparison of methods under nonlinear setting (varying T).
MetricMethodT
2505007501000
F1-scorelaggedECD-aMCI0.425 ± 0.1410.752 ± 0.1070.890 ± 0.0630.944 ± 0.045
PCMCI+0.387 ± 0.1370.713 ± 0.1030.839 ± 0.0830.899 ± 0.046
NTS-NOTEARS0.566 ± 0.0940.745 ± 0.0910.824 ± 0.0740.841 ± 0.060
F1-scoreallECD-aMCI0.660 ± 0.0520.857 ± 0.0390.938 ± 0.0270.966 ± 0.022
PCMCI+0.610 ± 0.0510.825 ± 0.0400.911 ± 0.0300.948 ± 0.024
NTS-NOTEARS0.716 ± 0.0510.834 ± 0.0410.883 ± 0.0340.900 ± 0.031
SHDECD-aMCI34.440 ± 3.22620.600 ± 3.28013.240 ± 3.7349.460 ± 3.390
PCMCI+37.060 ± 2.76023.300 ± 3.13215.420 ± 3.90911.220 ± 3.324
NTS-NOTEARS32.060 ± 4.68822.400 ± 3.86317.900 ± 4.23916.200 ± 3.980
Runtime (s)ECD-aMCI238.83 ± 31.694467.35 ± 876.3210,259.70 ± 2007.5623,890.22 ± 3613.27
PCMCI+53.76 ± 9.851811.52 ± 414.254985.80 ± 1353.4614,973.02 ± 3799.10
NTS-NOTEARS5.60 ± 0.358.40 ± 1.417.31 ± 0.758.28 ± 0.74
Table 9. Performance comparison of methods under nonlinear setting (varying d).
Table 9. Performance comparison of methods under nonlinear setting (varying d).
MetricMethodd
10203040
F1-scorelaggedECD-aMCI0.752 ± 0.1070.782 ± 0.0570.755 ± 0.0430.733 ± 0.047
PCMCI+0.713 ± 0.1030.757 ± 0.0680.731 ± 0.0510.730 ± 0.048
NTS-NOTEARS0.745 ± 0.0910.741 ± 0.0720.727 ± 0.0460.729 ± 0.050
F1-scoreallECD-aMCI0.857 ± 0.0390.860 ± 0.0260.852 ± 0.0210.832 ± 0.024
PCMCI+0.825 ± 0.0400.834 ± 0.0300.827 ± 0.0210.816 ± 0.023
NTS-NOTEARS0.834 ± 0.0410.818 ± 0.0360.818 ± 0.0200.813 ± 0.026
SHDECD-aMCI20.600 ± 3.28042.400 ± 5.22366.040 ± 6.57995.880 ± 9.024
PCMCI+23.300 ± 3.13246.500 ± 5.44271.980 ± 5.941100.840 ± 7.630
NTS-NOTEARS22.400 ± 3.86345.240 ± 6.44566.900 ± 6.65592.540 ± 9.104
Runtime (s)ECD-aMCI4467.35 ± 876.3213,977.40 ± 3313.7526,279.66 ± 4543.0443,190.11 ± 8954.29
PCMCI+1811.52 ± 414.253949.59 ± 1480.627322.64 ± 1707.849831.77 ± 2665.12
NTS-NOTEARS8.40 ± 1.4129.66 ± 3.47192.25 ± 84.32473.98 ± 173.88
Table 10. Performance comparison on 50 fMRI datasets with 200 observations each.
Table 10. Performance comparison on 50 fMRI datasets with 200 observations each.
Method d = 5 d = 10
F1-ScoreallSHDF1-ScoreallSHD
ECD-aMCI0.908 ± 0.0755.940 ± 1.7370.843 ± 0.04817.840 ± 2.129
NTS-NOTEARS0.672 ± 0.05611.040 ± 2.2180.646 ± 0.03928.060 ± 3.706
PCMCI+0.871 ± 0.0816.560 ± 1.6510.809 ± 0.05919.280 ± 2.307
Table 11. Evaluation on historical alarm data.
Table 11. Evaluation on historical alarm data.
Method F 1 - Score all SHD
ECD-aMCI0.5872103
PCMCI+0.5524109
Bagged-PCMCI+0.5000120
NTS-NOTEARS0.3956110
Table 12. Robustness of the ECD-aMCI to hyperparameter τ max .
Table 12. Robustness of the ECD-aMCI to hyperparameter τ max .
τ max = 5 τ max = 6 τ max = 7 τ max = 8 τ max = 9 τ max = 10
F 1 -scoreall0.917 ± 0.0370.910 ± 0.0380.905 ± 0.0400.902 ± 0.0420.900 ± 0.0410.897 ± 0.042
SHD8.903 ± 3.1699.280 ± 3.2899.657 ± 3.4519.953 ± 3.49210.173 ± 3.60010.423 ± 3.568
Table 13. Performance comparison of conditional independence tests (Linear vs. fMRI).
Table 13. Performance comparison of conditional independence tests (Linear vs. fMRI).
Data TypeCI Test F 1 - Score all SHD
LinearParCorr 0.6670 ± 0.0669 25.6000 ± 4.4045
GPDC 0.6011 ± 0.1270 41.9800 ± 54.4935
CMIKNN 0.2350 ± 0.1059 43.2200 ± 4.2061
fMRIParCorr 0.9075 ± 0.0746 5.9400 ± 1.7368
GPDC 0.9303 ± 0.0503 5.3200 ± 1.5549
CMIKNN 0.7391 ± 0.1197 8.8200 ± 1.7052
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Gao, M.; Zhou, Y. Enhanced Causal Discovery for Autocorrelated Time Series via Adaptive Momentary Conditional Independence. Mathematics 2026, 14, 1129. https://doi.org/10.3390/math14071129

AMA Style

Gao M, Zhou Y. Enhanced Causal Discovery for Autocorrelated Time Series via Adaptive Momentary Conditional Independence. Mathematics. 2026; 14(7):1129. https://doi.org/10.3390/math14071129

Chicago/Turabian Style

Gao, Minglong, and Yingchun Zhou. 2026. "Enhanced Causal Discovery for Autocorrelated Time Series via Adaptive Momentary Conditional Independence" Mathematics 14, no. 7: 1129. https://doi.org/10.3390/math14071129

APA Style

Gao, M., & Zhou, Y. (2026). Enhanced Causal Discovery for Autocorrelated Time Series via Adaptive Momentary Conditional Independence. Mathematics, 14(7), 1129. https://doi.org/10.3390/math14071129

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop