ASTRA: a deep learning algorithm for fast semantic segmentation of large-scale astrocytic networks

Jacopo Bonato, Sebastiano Curreli, Sara Romanzi, Stefano Panzeri, Tommaso Fellin

TL;DR

ASTRA (Astrocytic calcium Spatio-Temporal Rapid Analysis) is a novel deep learning framework designed to automate the segmentation of astrocytes in large-scale two-photon microscopy data. By combining traditional image feature engineering with a U-Net-based neural network, ASTRA achieves human-expert levels of accuracy while being orders of magnitude faster, finally enabling the study of hundreds of glial cells across "mesoscopic" (millimeter-scale) brain regions.

What Problem Does This Paper Address?

For decades, neuroscience focused almost exclusively on neurons. However, we now know that astrocytes—star-shaped glial cells—play a critical role in brain function through complex intracellular calcium signaling.

The challenge lies in the data. Astrocytes have a highly ramified, "bushy" structure with thousands of tiny processes that are often smaller than the resolution of a standard microscope. Current analytical tools are either:

  1. Manual/Semi-automated: Requiring researchers to spend days hand-drawing regions of interest (ROIs), which is slow and prone to human bias.
  2. Neuronal-centric: Algorithms like CaImAn are optimized for the distinct shapes and fast signaling of neurons; they perform poorly when applied to the diffuse, slower signals of astrocytes.

As imaging technology moves toward "mesoscopic" scales—capturing hundreds of cells across millimeters of tissue—manual segmentation becomes an impossible bottleneck. ASTRA was built to break this bottleneck.

Methods

ASTRA uses a hybrid approach that bridges classical computer vision and modern deep learning:

  • Feature Engineering (Pre-processing): Before the data hits the neural network, ASTRA performs "spatial sharpening" (using kernel convolution) and "temporal filtering." This enhances the contrast of cell bodies (somata) and branches (processes) while suppressing background noise.
  • Deep Neural Network (DNN): The core is a U-Net architecture—a standard for medical image segmentation—but enhanced with an Inception-ResNet-v2 backbone. The authors used transfer learning, pre-training the network on the massive ImageNet dataset before fine-tuning it on specialized astrocyte images.
  • Subcellular Cross-Correlation Analysis: This is a standout feature. Because some astrocytic processes are too thin to see clearly, ASTRA looks at the activity of pixels. It identifies pixels that fluctuate in sync with a known cell body, allowing it to map out the "functional domain" of an astrocyte even where the morphology is blurry.

Datasets

The authors introduced and shared four novel datasets to train and benchmark the algorithm:

  • Dataset-1: 24 recordings of hippocampal astrocytes expressing GCaMP6f (a calcium indicator) in awake mice.
  • Dataset-2: Recordings using TdTomato (a structural fluorophore) to test if the model generalizes to different colors/indicators.
  • Datasets-3 & 4: "Never-seen-before" test sets with different resolutions and scanning parameters.
  • Consensus Annotations: Crucially, these datasets were manually labeled by three different experts. Discrepancies were resolved to create a "gold standard" ground truth for the community.

Key Insights and Ideas

  • Pre-processing is Non-Negotiable: The authors found that running the DNN on raw data led to significantly worse results. The "feature engineering" step is what allows a relatively small biological dataset to train a high-performing deep learning model.
  • Activity as a Proxy for Shape: By using cross-correlation, ASTRA proves that we can define a cell's territory by how it behaves (functional segmentation) rather than just how it looks (morphological segmentation).
  • Generalization: ASTRA trained on GCaMP6f (green activity) worked remarkably well on TdTomato (red structure) without retraining. This suggests the model is learning fundamental biological shapes rather than just specific pixel intensities.
  • Scalability to Mesoscopy: The paper demonstrates ASTRA's ability to handle mesoscopic fields of view (~2.3 $mm^2$), extracting traces from hundreds of cells simultaneously—a feat previously impossible for human annotators.

Key Results

  • Human-Level Performance: ASTRA achieved F1-scores (a measure of accuracy) for cell detection of ~0.81, which is statistically indistinguishable from the performance of human experts.
  • Speedup: ASTRA segmented an entire dataset in 9 minutes; the same task took human experts several days of manual labor.
  • Outperforming the State-of-the-Art: ASTRA significantly outperformed existing tools like GECI-Quant and AQuA, as well as neuronal tools like CaImAn and STNeuroNet, particularly in identifying the complex "processes" or branches of the astrocytes.
  • Biological Discovery: Using ASTRA, the authors documented for the first time large-scale redundant and synergistic interactions in astrocytic networks across the mouse cortex during behavior (running and licking).

Limitations and Future Work

While ASTRA is robust, the authors note that it may still require "fine-tuning" when applied to experimental setups that differ drastically from those used in the paper (e.g., different brain regions or vastly different noise levels).

Future work could involve integrating ASTRA into closed-loop experiments, where the software segments cells in real-time, allowing researchers to trigger optogenetic stimulation based on the activity of specific astrocytic domains as they are detected.

Summary updated

BibTeX
@misc{bonato2024astra,
  author = {Jacopo Bonato and Sebastiano Curreli and Sara Romanzi and Stefano Panzeri and Tommaso Fellin},
  title = {{ASTRA: a deep learning algorithm for fast semantic segmentation of large-scale astrocytic networks}},
  year = {2024},
  url = {https://openreview.net/forum?id=kAJm1WxDoS},
  howpublished = {Biorxiv},
}
Figure