Robust Estimation of Neural Signals in Calcium Imaging

Hakan Inan, Murat A. Erdogdu, Mark J. SchnitzerNeurIPS 2017

Introduction

Calcium imaging is a prominent technology in neuroscience that allows researchers to simultaneously record the real-time firing activity of thousands of neurons in awake animals. However, extracting clean neural signals from the raw video data is notoriously difficult. Beyond standard camera noise, the signal is often heavily contaminated by neuropil (background activity from out-of-focus neurons) and overlapping cells.

Most existing automated extraction tools, such as CNMF or ICA, rely on least-squares estimation. Least-squares assumes that noise is symmetric and Gaussian. In reality, biological contamination in calcium imaging is almost always positive—it adds light rather than subtracting it. Because least-squares is highly sensitive to outliers, these positive "gross contaminants" bias the results. This leads to "crosstalk," where the activity of one neuron incorrectly leaks into the estimated signal of its neighbor, creating "ghost" spikes.

To address this, researchers have introduced EXTRACT, a robust automated cell extraction method that replaces standard least-squares estimation with a novel "one-sided Huber" loss. By accounting for the asymmetric, non-negative nature of biological contamination, EXTRACT significantly reduces signal crosstalk and improves the accuracy of neural activity traces.

Methods: Robust M-Estimation

The authors move away from classical statistics toward Robust M-estimation, building their approach on three main pillars:

  1. The One-Sided Huber Loss: The authors derive a new loss function specifically tailored for the asymmetric noise found in calcium imaging. While the standard Huber loss caps large errors in both directions, the "one-sided" version only caps large positive errors. This makes the estimator "blind" to massive spikes of background contamination while remaining highly sensitive to the underlying neural signal.
  2. Minimax Optimality: They prove mathematically that this one-sided Huber estimator is "minimax optimal," meaning it provides the best possible performance in the worst-case scenario of non-negative contamination.
  3. The EXTRACT Algorithm: This robust loss is integrated into a matrix factorization framework ($M = ST + \Sigma$), where $S$ represents spatial footprints (cell shapes) and $T$ represents temporal traces (firing activity).
One-sided Huber loss and its empirical MSE

As shown above, while quantile estimators (like the median) are unbiased, they suffer from higher variance. The one-sided Huber loss strikes a superior balance, achieving zero bias with significantly lower empirical Mean Squared Error (MSE) than sample mean, median, or quantile approaches.

Key Results and Insights

The researchers evaluated EXTRACT using both simulated datasets (with varying levels of SNR and overlapping cell density) and real-world microendoscopic single-photon calcium imaging from the mouse hippocampus—a notoriously difficult, high-contamination regime.

  • Superior Signal Fidelity & Crosstalk Reduction: In simulations with overlapping cells, EXTRACT achieved an Area Under the ROC Curve (AUC) for event detection of 0.99, compared to 0.92 for CNMF. Qualitatively, EXTRACT's traces are much cleaner. When a neighboring cell fires, EXTRACT correctly ignores the light leakage, whereas standard methods often show false spikes in the target cell's trace.
  • Higher Cell Yield: On real mouse hippocampal data, EXTRACT identified 476 "good" cells, significantly outperforming CNMF (272 cells) and ICA (329 cells), as verified by human annotators.
  • Optimization without the Overhead: Robust estimators are typically slow to compute. To solve the matrix factorization efficiently, the authors developed a fast fixed-point optimization routine.
Convergence speed of the fixed-point solver

This custom solver offers the rapid convergence speed of second-order methods (like Newton's) but with the low computational cost of gradient descent. It is highly amenable to GPU acceleration, making it practical for the massive, terabyte-scale datasets generated by modern neuroscience.

Limitations and Future Work

While highly effective, the method does require setting a parameter $\kappa$ (the threshold where the loss becomes robust). The authors note that a range of $[0.5, 1.0]$ standard deviations generally works well, but extremely low SNR environments might still lead to under-estimation if $\kappa$ is tuned poorly. Additionally, like most matrix factorization methods, EXTRACT's final result can depend on the initial guess of cell locations, though a provided "greedy" initialization strategy helps mitigate this.

Looking forward, this robust statistical framework could be extended to other types of biological imaging where non-negative contamination remains a primary bottleneck.

Summary updated

BibTeX
@inproceedings{inan2017robust,
  author = {Hakan Inan and Murat A. Erdogdu and Mark J. Schnitzer},
  title = {{Robust Estimation of Neural Signals in Calcium Imaging}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=Sk-2NPZdbS},
}
Figure