Revealing the temporal dynamics of antibiotic anomalies in the infant gut microbiome with neural jump ODEs
Anja Adamov, Markus Chardonnet, Florian Krach, Jakob Heiss, Josef Teichmann, Nicholas A. Bokulich
TL;DR
The study addresses anomaly detection in irregularly sampled multivariate time series by introducing Neural Jump ODEs (NJODEs) that learn conditional mean and variance trajectories to produce calibrated anomaly scores. The framework is validated on synthetic data and applied to infant gut microbiome trajectories, where antibiotic perturbations are quantified and linked to duration, timing, and covariates such as delivery mode and diet. Key findings include robust detection of diverse anomaly types, extended perturbations after second antibiotic courses, and predictive capability that outperforms diversity-based baselines, with potential translational impact for optimizing antibiotic regimens. The approach handles uneven sampling, incorporates covariates, and offers a generalizable tool for real-time monitoring of microbial perturbations with possible extensions to multivariate microbiome features and causal analyses.
Abstract
Detecting anomalies in irregularly sampled multi-variate time-series is challenging, especially in data-scarce settings. Here we introduce an anomaly detection framework for irregularly sampled time-series that leverages neural jump ordinary differential equations (NJODEs). The method infers conditional mean and variance trajectories in a fully path dependent way and computes anomaly scores. On synthetic data containing jump, drift, diffusion, and noise anomalies, the framework accurately identifies diverse deviations. Applied to infant gut microbiome trajectories, it delineates the magnitude and persistence of antibiotic-induced disruptions: revealing prolonged anomalies after second antibiotic courses, extended duration treatments, and exposures during the second year of life. We further demonstrate the predictive capabilities of the inferred anomaly scores in accurately predicting antibiotic events and outperforming diversity-based baselines. Our approach accommodates unevenly spaced longitudinal observations, adjusts for static and dynamic covariates, and provides a foundation for inferring microbial anomalies induced by perturbations, offering a translational opportunity to optimize intervention regimens by minimizing microbial disruptions.
