Data Processing of Functional Optical Microscopy for Neuroscience

Hadas Benisty, Alexander Song, Gal Mishne, Adam S. Charles · DOI

Abstract

Functional optical imaging in neuroscience is rapidly growing with the development of new optical systems and fluorescence indicators. To realize the potential of these massive spatiotemporal datasets for relating neuronal activity to behavior and stimuli and uncovering local circuits in the brain, accurate automated processing is increasingly essential. In this review, we cover recent computational developments in the full data processing pipeline of functional optical microscopy for neuroscience data and discuss ongoing and emerging challenges.

Introduction: The Big Data Challenge in Neuroscience

Modern neuroscience increasingly relies on functional optical imaging, such as calcium or voltage imaging, to observe neural activity in vivo. However, the raw data generated by these techniques consists of massive, high-dimensional videos characterized by significant photon noise, brain motion, and "neuropil" background haze.

The primary computational hurdle is demixing. In dense neural populations, signals from adjacent neurons often overlap both spatially and temporally. To extract meaningful biological insights, researchers must separate these mixed signals into individual spatial footprints (identifying the neuron's location) and temporal traces (identifying when it fired). As imaging scales toward millions of neurons, automated and efficient processing pipelines are no longer optional but a necessity.

Overview of the functional imaging pipeline and the physical constraints imposed by the Point Spread Function (PSF).

The Standard Processing Pipeline

The computational pipeline for functional microscopy typically follows three main stages:

1. Preprocessing

Before analysis, the data must be cleaned. Motion correction uses rigid or non-rigid registration to align frames, ensuring neurons remain at consistent pixel coordinates. Denoising techniques, including PCA and deep learning models like DeepInterpolation, are then applied to remove sensor noise and improve signal-to-noise ratios.

2. Demixing and Signal Extraction

Most modern algorithms frame demixing as a matrix factorization problem ($Y \approx A\Phi^T$), where $Y$ is the observed video, $A$ represents spatial components, and $\Phi$ represents temporal activity.

  • Constrained Non-negative Matrix Factorization (CNMF): The current standard, CNMF enforces non-negativity to reflect the physical reality of fluorescence.
  • Graph-Filtered Temporal (GraFT): A newer approach that utilizes pixel-to-pixel connectivity graphs, making it particularly effective for identifying irregular structures like dendrites and axons.

3. Post-processing

Following extraction, signals are normalized using $\Delta F/F$ to represent percentage changes in fluorescence. Finally, deconvolution is used to estimate the underlying neural spikes from the relatively slow decay of calcium indicators.

Benchmarking and Datasets

Rigorous evaluation of these algorithms requires standardized datasets. Key resources include:

  • NeuroFinder: A benchmark for cell detection and segmentation.
  • Allen Institute Mouse Brain Observatory: Provides large-scale, standardized calcium imaging data.
  • NAOMi (Neural Anatomy and Optical Microscopy): A biophysical simulator that generates synthetic data with known ground truths, essential for validating algorithm accuracy.

Key Insights and Results

A major shift in the field is the recognition that temporal correlations are as vital as anatomical shapes; pixels that fluctuate together likely belong to the same cell. Furthermore, algorithms must explicitly model the "neuropil" background to prevent false signal detection.

While deep learning methods like STNeuroNet offer significant speed advantages for ROI extraction, they often struggle with generalization across different experimental setups. Additionally, the paper highlights that widefield imaging (cortex-wide) requires distinct mathematical approaches, such as SVD-based parcellation, to handle aggregate activity rather than individual cell signals.

Widefield imaging captures aggregate neural activity across the cortex, requiring different processing techniques than cellular-resolution imaging.

Future Frontiers

The field is moving toward imaging $10^6$ neurons, necessitating "online" or streaming processing. The next major challenge is voltage imaging, which offers higher temporal resolution but generates data at kilohertz rates, overwhelming current matrix factorization methods. Finally, achieving real-time closed-loop experiments (processing in <30ms) remains a critical goal for future development.

Summary updated

BibTeX
@inproceedings{benisty2022data,
  author = {Hadas Benisty and Alexander Song and Gal Mishne and Adam S. Charles},
  title = {{Data Processing of Functional Optical Microscopy for Neuroscience}},
  booktitle = {Neurophotonics},
  year = {2022},
  doi = {10.1117/1.nph.9.4.041402},
}
Figure