NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Nonparametric Causal Inference for Optogenetics: Sequential Excursion Effects for Dynamic Regimes

Gabriel Loewinger, Alexander W. Levis, Francisco PereiraJournal of the American Statistical Association 2026

TL;DR

This paper introduces a novel causal inference framework for optogenetics experiments, allowing researchers to ask more nuanced questions about how neural circuit activity influences behavior. By moving beyond simple average effects, this method reveals "sequential excursion effects" that can uncover subtle, time-dependent impacts of neural stimulation, even in complex "closed-loop" experimental designs.

What Problem Does This Paper Address?

Optogenetics, a powerful tool for controlling neural activity with light, generates rich, time-series data about brain function and behavior. However, traditional analysis methods often simplify this data, discarding valuable information and limiting the scope of causal questions that can be answered. Specifically, standard approaches tend to focus on "macro" or "global" effects, comparing average outcomes between groups. This overlooks "micro" or "local" effects related to specific patterns of stimulation over time. Furthermore, "closed-loop" designs, where stimulation is triggered by the animal's behavior, introduce complex feedback loops that can bias standard analyses and make it difficult to interpret results. The paper aims to bridge this gap by providing a formal causal inference framework that can handle the complexity of optogenetic data, especially in dynamic and closed-loop experimental settings.

Methods

The core of the paper's contribution lies in its development of History-Restricted Marginal Structural Models (HR-MSMs) tailored for optogenetics. This approach extends existing "excursion effect" methods (popular in mobile health studies) to handle the unique challenges of optogenetics. Key methodological innovations include:

  • Sequential Excursion Effects: Instead of just looking at the overall effect of stimulation, the framework allows for the estimation of effects of specific sequences of stimulation opportunities over time. This enables the study of phenomena like "blip effects" (immediate impact), "effect dissipation" (how effects fade), and "dose-response" relationships (how cumulative stimulation affects outcomes).
  • Handling Positivity Violations in Closed-Loop Designs: Closed-loop designs often have inherent "positivity violations," meaning certain treatment sequences are impossible or highly unlikely. The proposed HR-MSMs are designed to accommodate these violations, allowing for causal inference even when standard assumptions are not met.
  • Dynamic Treatment Regimes: The framework explicitly models dynamic treatment regimes, where stimulation is applied based on the animal's history and behavior, a common scenario in optogenetics.
  • Inverse Probability Weighting (IPW) and Multiply Robust Estimators: The paper develops statistical estimators (IPW and a multiply robust estimator) to implement the HR-MSM framework, providing theoretical guarantees for their consistency and asymptotic normality.

Datasets

The paper utilizes data from a previously published optogenetics study by Markowitz et al. (2023) for its application. No new datasets or benchmarks are introduced.

Key Insights and Ideas

  • "Macro" summaries can obscure crucial "micro" effects: The study highlights how simple comparisons of average outcomes between groups can mask significant, time-dependent effects of optogenetic stimulation. This is particularly true in closed-loop designs where "treatment-confounder feedback" can lead to cancellation or exaggeration of true effects.
  • Sequential stimulation patterns matter: The impact of optogenetic stimulation is not always a simple on/off switch. The sequence and timing of stimulation opportunities can have distinct causal effects on behavior, which this framework can now disentangle.
  • Closed-loop designs are challenging but not insurmountable: While closed-loop designs introduce complexities like treatment-confounder feedback, the proposed HR-MSM framework offers a way to derive valid causal interpretations by carefully modeling the dynamic treatment regimes and availability.
  • Optogenetics is a "study drug" for understanding neural mechanisms: The paper frames optogenetic stimulation not as a treatment to be generalized, but as a tool to understand the natural role of neural pathways. This context makes the study-specific causal interpretations of excursion effects particularly relevant.

Key Results

  • The application to the Markowitz et al. (2023) dataset revealed significant "sequential excursion effects" that were missed by standard "macro" summary analyses. For instance, stimulation opportunities in the treatment arm tended to reduce the odds of the outcome, with effects that dissipated over time.
  • The framework demonstrated the ability to estimate dose-response relationships, showing that each additional stimulation opportunity within a given time window increased the odds of engaging in a target pose.
  • The study showed that availability-conditional excursion effects (which are limited to Γ=1) often failed to identify effects that the more general sequential excursion effects could reveal.
  • Simulation studies demonstrated that the proposed IPW and multiply robust estimators are unbiased and achieve nominal coverage for sequential excursion effects, even in small sample sizes common in neuroscience.

Limitations and Future Work

  • Complexity of Interpretation: While powerful, the interpretation of sequential excursion effects can be subtle, especially in dynamic regimes where availability plays a role. The paper acknowledges this and suggests further discussion is warranted.
  • Generalizing to More Complex Outcomes: The current framework primarily focuses on binary outcomes. Extending it to handle more complex outcome sequences or functions of outcomes (e.g., lagged outcomes) is a direction for future work, though some initial exploration is presented.
  • Multiply Robust Estimators for General Cases: While an initial exploration of multiply robust estimators is provided, their full development for the general case is left for future research.
  • Choice of Gamma (Γ): The selection of the window size (Γ) for excursion effects should be based on subject-matter knowledge and the scientific question. The paper found that Γ between 2 and 5 was often sufficient, but this parameter choice can influence results.

The authors express hope that their framework will encourage more rigorous causal inference in optogenetics and related neuroscience fields, enabling researchers to extract richer insights from their experimental data.

Summary updated

BibTeX
@article{loewinger2026nonparametric,
  author = {Gabriel Loewinger and Alexander W. Levis and Francisco Pereira},
  title = {{Nonparametric Causal Inference for Optogenetics: Sequential Excursion Effects for Dynamic Regimes}},
  journal = {Journal of the American Statistical Association},
  year = {2026},
  doi = {10.1080/01621459.2026.2635071},
}
Figure