🤖 AI Summary
Accurate 3D spatiotemporal analysis of dendritic spines has long been hindered by high manual annotation costs and low accuracy of existing automated methods. To address this, we propose the first end-to-end modular framework integrating a Transformer-based spine detector, a deep temporal tracking module leveraging spatial consistency, and a multimodal feature extraction unit—enabling precise spine localization, robust inter-frame tracking, and biologically relevant feature quantification. To rigorously validate our approach, we construct and publicly release the first dendritic spine dataset with pixel-level, time-series tracking annotations. Extensive evaluation on both public and in-house datasets demonstrates significant improvements: +12.3% in detection accuracy (AP) and +18.7% in tracking stability (IDF1). We fully open-source our code, pre-trained models, and complete annotations, establishing a scalable benchmark for large-scale studies of synaptic plasticity.
📝 Abstract
Dendritic spines are key structural components of excitatory synapses in the brain. Given the size of dendritic spines provides a proxy for synaptic efficacy, their detection and tracking across time is important for studies of the neural basis of learning and memory. Despite their relevance, large-scale analyses of the structural dynamics of dendritic spines in 3D+time microscopy data remain challenging and labor-intense. Here, we present a modular machine learning-based pipeline designed to automate the detection, time-tracking, and feature extraction of dendritic spines in volumes chronically recorded with two-photon microscopy. Our approach tackles the challenges posed by biological data by combining a transformer-based detection module, a depth-tracking component that integrates spatial features, a time-tracking module to associate 3D spines across time by leveraging spatial consistency, and a feature extraction unit that quantifies biologically relevant spine properties. We validate our method on open-source labeled spine data, and on two complementary annotated datasets that we publish alongside this work: one for detection and depth-tracking, and one for time-tracking, which, to the best of our knowledge, is the first data of this kind. To encourage future research, we release our data, code, and pre-trained weights at https://github.com/pamelaosuna/SynapFlow, establishing a baseline for scalable, end-to-end analysis of dendritic spine dynamics.