Skip to content
DraconiticResearch
Search Sources API
181,686 studies31 sourcesUpdated 37 min ago
PreprintCC BYbioRxiv

SafeLens: A Statistically Controlled Nonlinear Machine Learning Framework for Characterizing Hidden Dynamics in Event-Locked Neural Activity

  1. 1Stanford University

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.

Related

  1. Bilirubin statistically accounts for the association between Enterobacterales lineage and Mayo endoscopic score in ulcerative colitis: a cross-sectional associational variable analysis.
    Zhengyu Ren, Junni Ma, Siyao Wang +4
    Frontiers in medicinePeer-reviewedCC BYFull textGenetics & genomicsEurope PMCPMC
  2. A unified decision framework combines phenotypic and genomic information for nonlinear selection in plant breeding
    J. Jesús Cerón-Rojas, Paulino Pérez Rodríguez, Osval A. Montesinos-López +4
    Scientific ReportsPeer-reviewedCC BY 4.0Full textGenetics & genomicsCrossref
  3. Operationalizing the physiological state (P) in nonlinear behavioral systems: a measurement framework for state-dependent dynamics.
    Yoandra M Gomez Uncu
    Frontiers in psychologyPeer-reviewedCC BYFull textNeuroscienceEurope PMCPMC
  4. MR-ARFI and Beyond: Characterizing the Temporal Dynamics of Acoustic Radiation Force in Human Brain
    M. Mohammadjavadi, K. B. Pauly, G. H. Glover
    bioRxivPreprintAll rights reservedFull textSystems & synthetic biologybioRxiv
  5. The dendritic spine vicinome: characterizing its crowding in the human brain with petavoxel electron microscopy
    E. Manjarrez, N. Lozada, M. A. Zamora-Ursulo +1
    bioRxivPreprintAll rights reservedFull textNeurosciencebioRxiv
BibTeX
@misc{minasi2026safelens,
  title = {{SafeLens: A Statistically Controlled Nonlinear Machine Learning Framework for Characterizing Hidden Dynamics in Event-Locked Neural Activity}},
  author = {C. B. Minasi and U. Hassan and C. C. Cline and C. J. Keller},
  howpublished = {bioRxiv},
  year = {2026},
  month = oct,
  doi = {10.64898/2026.10.31.763367},
  url = {https://www.biorxiv.org/content/10.64898/2026.10.31.763367v1},
  note = {CC BY},
}
RIS
TY  - UNPB
TI  - SafeLens: A Statistically Controlled Nonlinear Machine Learning Framework for Characterizing Hidden Dynamics in Event-Locked Neural Activity
AU  - C. B. Minasi
AU  - U. Hassan
AU  - C. C. Cline
AU  - C. J. Keller
PY  - 2026
DA  - 2026/10/31
PB  - bioRxiv
DO  - 10.64898/2026.10.31.763367
UR  - https://www.biorxiv.org/content/10.64898/2026.10.31.763367v1
AB  - 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.
ER  -