SafeLens: A Statistically Controlled Nonlinear Machine Learning Framework for Characterizing Hidden Dynamics in Event-Locked Neural Activity
Christopher B MinasiiD, Umair HassaniD, Christopher C ClineiD, Corey J KelleriD
Abstract
Machine learning has advanced rapidly over the past decade, yet event-locked neural activity is still analyzed predominantly with traditional statistics and linear models. While traditional linear methods provide computationally tractable statistical control for pre-selected features or trial-averaged waveforms, they miss subtle nonlinear and trial-varying neural dynamics. Nonlinear models can capture these complex patterns, but their feature reliance is opaque and notoriously difficult to threshold statistically. We introduce SafeLens (Searchlight Analysis of Fluctuation Events, Leveraging Extensive Null Sampling) to combine the power of nonlinear machine learning with the rigorous false-positive control of traditional statistical inference. At each position of a sliding window, a random forest learns to discriminate event-locked activity from interleaved resting-state neural activity using multiscale temporal derivatives. Randomized feature ablation inverts slope polarity in held-out trials to map the random forest models' reliance on specific rising versus falling excursions across the time-frequency space. SafeLens then establishes an empirical null by running the same pipeline on separate resting-state recordings, training forests to discriminate rest from rest. This empirical null translates each channel's complex nonlinear resting dynamics into a model-matched noise floor on the map's linear reliance scale, allowing a single threshold to control the family-wise error rate against the channel's own background structure rather than a summary statistic of its baseline. When we injected simulated cortico-cortical evoked potentials (CCEPs) into resting intracranial EEG recordings, SafeLens recovered ~2.5 times as many polarity-resolved deflections as trial-average thresholding and the closest data-driven method, maintaining its advantage under trial-to-trial variability while yielding ~5-11 times fewer false components, ~2-5 times lower mean boundary error, and superior single-trial latency tracking as a timing prior. In eight patients, CCEPs remained detectable above chance until 1,040 ms after stimulation, compared with 570 and 455 ms for those benchmarks. Together, these findings establish SafeLens as a novel solution for enabling nonlinear models to uncover subtle, trial-varying neural dynamics under strict statistical control.
02 /Specification & Classification
Click any tag to browse matching papers- 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
- Linear models replicate the energy landscape and dynamics of resting-state brain activity
Yuki Hosaka, Takemi Hieda, … Teppei Matsui·bioRxiv·May 21, 2024
- Concurrent separation of phase-locked and non-phase-locked activity
Shubham Singhal, Priyanka Ghosh, … Arpan Banerjee·bioRxiv·Mar 14, 2022
- Face Selective Neural Activity: Comparison Between Fixed and Free Viewing
Carmel R. Auerbach-Asch, Oded Bein, Leon Y. Deouell·Brain TopographyPeer-reviewed·Mar 31, 2020
- Dynamical flexible inference of nonlinear latent structures in neural population activity
Hamidreza Abbaspourazad, Eray Erturk, … Maryam Modir Shanechi·bioRxiv·Mar 13, 2023
- Detecting neural state transitions underlying event segmentation
Linda Geerligs, Marcel A. J. van Gerven, Umut Güçlü·NeuroImagePeer-reviewed·Apr 19, 2021
- Initial-State-Dependent, Robust, Transient Neural Dynamics Encode Conscious Visual Perception
Alexis T. Baria, Brian Maniscalco, Biyu Jade He·PLoS Computational BiologyPeer-reviewed·Nov 27, 2017