Evaluating Temporal Orders for Local Non-Stationary Biological Signals Analysis: A Python Framework and Simulation Study
Marcel MłyńczakiD, Maciej RosołiD, Kacper KorzeniewskiiD, Jakub Sławomir GąsioriD
Abstract
Background and ObjectiveAccurately parameterizing dynamic, time-varying interactions in physiological systems is a methodological challenge, as global causal discovery methods may obscure transient, local fluctuations. This study introduces tempord, an open-source Python library designed to estimate local temporal orders and evaluate the short-term stability, directionality, and strength of causal links in non-stationary biological signals. MethodsThe algorithm estimates temporal relationships by keeping one signal stationary while iteratively shifting another one within a sliding window. To parameterize optimal inter-signal shifts (causal vector, CV), the framework utilizes linear modeling or time series distance metrics. The methodology was validated through a simulation study on synthetic bivariate signals with mathematically imposed dynamic phase delays, under both deterministic and noisy conditions. Furthermore, in-vivo capabilities were demonstrated by evaluating cardiorespiratory coupling dynamics across spontaneous and music-induced relaxation breathing states. ResultsThe simulation study demonstrated that the extracted CV trajectories precisely aligned with ground-truth temporal delays, assessed using mean absolute error and root mean square error for both noise-free and noisy synthetic data. In-vivo application demonstrated dynamic temporal stability and the detection of minor step changes during autonomic nervous system state transitions. ConclusionsThe tempord Python package bridges the gap between global causal discovery and local beat-by-beat statistical parameterization. It provides a robust "bottom-up" analytical instrument for investigating the transient mechanisms governing complex biological networks.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Organism
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Direct causality measures unravel complex networks of cardiovascular oscillations and their modifications with postural stress
Chiara Barà, Laura Sparacino, … Michal Javorka·bioRxiv·Mar 26, 2025
- Nonsense correlations in neuroscience
Kenneth D. Harris·bioRxiv·Nov 29, 2020
- Forward time-series causal inference based on forest weights and conditional dependence
Shigeki Kishi·bioRxiv·Oct 2, 2026
- Discovering precise temporal patterns in large-scale neural recordings through robust and interpretable time warping
Alex H. Williams, Ben Poole, … Surya Ganguli·NeuronPeer-reviewed·Nov 27, 2019
- Revealing the Temporal Dynamics in Non-invasive Electrophysiological recordings with Topography-based Analyses
Xuefei Julie Wang, Hao Zhu, Xing Tian·bioRxiv·Oct 9, 2019
- A Stochastic Dynamic Operator framework that improves the precision of analysis and prediction relative to the classical spike-triggered average method, extending the toolkit.
Trevor Smith, Maryam Abolfath-Beygi, … Simon F. Giszter·eNeuroPeer-reviewed·Oct 7, 2024