Continuous Prediction of Mice Lever-Pressing Kinematic Parameters by Background Removed Single-photon Calcium Images

Mingkang Li, Ruixue Wang, Guihua Wan, Yuqi Yang, Shaomin ZhangbioRxiv 2024

TL;DR

This paper introduces a novel method for real-time neural decoding of mouse movements using single-photon calcium imaging. By directly processing background-removed calcium images with a 3D-ResNet and RNN, they achieve significantly faster and more accurate decoding of lever-pressing kinematics compared to traditional methods that rely on complex signal extraction. This advancement paves the way for more sophisticated real-time brain-computer interfaces.

What Problem Does This Paper Address?

Calcium imaging is a powerful tool for observing neural activity, enabling scientists to decode brain signals related to various behaviors. However, a major bottleneck in using this technology for real-time applications, such as brain-computer interfaces (BCIs), is the immense data volume and the computationally intensive nature of extracting meaningful neuronal signals. Traditional methods often involve offline processing and complex algorithms like non-negative matrix factorization, which are too slow for real-time decoding. While some progress has been made in real-time motion correction, the signal extraction step remains a significant challenge, limiting the ability to decode continuous and complex movements. This paper aims to overcome these limitations by developing a faster and more accurate real-time decoding approach that bypasses the traditional signal extraction step.

Methods

The core of this work lies in a novel decoding pipeline that directly utilizes background-removed single-photon calcium images. Here's a breakdown of their approach:

  • Background Removal: They employ anisotropic diffusion filtering and morphological opening to remove background fluorescence and noise from the calcium images. This process aims to isolate the neuronal signals and create a representation of three-dimensional spatiotemporal neuronal activity.
  • Direct Image-Based Decoding: Instead of extracting individual neuronal signals (like fluorescence traces), their method directly feeds these processed images into a custom-designed decoder. This bypasses the computationally expensive and time-consuming signal extraction step common in traditional methods.
  • 3D-ResNet and RNN Decoder: The decoder itself is a powerful combination of a 3D Residual Network (3D-ResNet) and a Recurrent Neural Network (RNN).
  • The 3D-ResNet is responsible for processing the three-dimensional image data, compressing spatial dimensions, and extracting relevant spatial features. It generates intermediate "hidden variables" that capture kinematics-related information.
  • The RNN then takes these hidden variables and extracts temporal features, ultimately predicting the mouse's lever-pressing kinematic parameters.

This approach is designed to be more efficient by directly learning from the image data, leveraging the spatial and temporal information present in the calcium signals without explicit neuron identification.

Datasets

The study utilized single-photon calcium imaging data collected from mice performing lever-pressing tasks.

  • Experimental Data: Data was collected from six lever-press tasks across three mice. The mice were trained to press a lever in response to an auditory cue, with successful presses triggering a reward.
  • Data Acquisition: Single-photon calcium imaging data was collected from layers 2/3 of the mouse motor cortex using a Miniscope at a frame rate of 20 Hz.
  • Kinematic Data: Corresponding kinematic data, specifically pressure values during lever presses, was recorded to serve as the ground truth for decoding.
  • Sample Generation: For decoding, a sliding window approach was used. For each time point, a sample consisted of the current calcium image frame along with two frames before and two frames after (a total of 5 frames) to capture temporal dynamics.

Key Insights and Ideas

  • Bypassing Signal Extraction is Key: The most significant insight is that directly decoding from processed calcium images, rather than relying on extracted neuronal traces, dramatically improves speed and can maintain or even improve accuracy. This challenges the long-standing reliance on complex signal extraction pipelines.
  • Background Fluorescence Carries Information: Surprisingly, the study found that even background components, often considered noise, can contain relevant kinematic information. While foreground decoding is more stable, background decoding also showed some ability to predict behavior, suggesting that a comprehensive approach might benefit from considering all signal components.
  • 3D-ResNet for Feature Extraction: The use of a 3D-ResNet is crucial for effectively extracting spatio-temporal features from the raw calcium image data, transforming it into a representation that an RNN can readily use for temporal decoding.
  • Real-time Feasibility: The proposed method, when combined with real-time motion correction, demonstrably meets the stringent requirements for real-time applications, achieving decoding within the interval between frames.

Key Results

  • Accuracy: The image-based decoding method achieved significantly higher correlation coefficients (CC) and lower mean squared errors (MSE) compared to traditional methods using extracted calcium traces (MIN1PIPE and EXTRACT). For example, CC was significantly higher (p < 0.05) and MSE was significantly lower (p < 0.05) for image samples compared to trace samples.
  • Speed: The image-based decoding method was substantially faster. Decoding 1000 samples took approximately 7 seconds, whereas traditional methods (EXTRACT+RNN) took 58-233 seconds and MIN1PIPE+RNN took an average of 903 seconds.
  • Real-time Performance: The system achieved single decoding in just 21.8 ms, which is well within the 50 ms interval required for a 20 Hz acquisition rate, meeting real-time processing demands.
  • Robustness: The image-based approach showed less variability in performance compared to trace-based methods, as it is less dependent on the specific neuron extraction algorithm used.
  • Motion Correction Importance: Motion correction was found to be essential for maintaining decoding accuracy, as motion artifacts disrupt neuronal temporal information.

Limitations and Future Work

  • Limitations:
    • While background decoding showed promise, it exhibited more performance fluctuations compared to foreground decoding, suggesting that foreground information is generally more reliable.
  • The study focused on a specific task (lever-pressing) and a specific brain region.
  • Future Work:
    • The authors suggest that future studies could explore ways to better integrate background information for more comprehensive decoding.
  • Investigating different imaging depths could help determine the optimal focal plane for capturing the most kinematically relevant signals.
  • The method's applicability to more complex behaviors and different brain regions warrants further investigation.
  • The authors highlight the potential for this method to be applied to more intricate real-time tasks, including sophisticated optical brain-machine interfaces.

Summary updated

Abstract

Abstract Calcium imaging has gained extensive application in neural decoding tasks because of its high precision in observing cortical neural activity. Nevertheless, the immense data volume and complexity of automated signal extraction algorithms in calcium imaging result in significant delays in extracting neuronal calcium fluorescence signals, greatly constraining the efficiency of neural decoding research and its applicability in real-time tasks. Although a few studies have successfully used partial neuronal signals from calcium imaging data for real-time neural decoding and brain-computer interface tasks, they fail to leverage the complete neuronal dataset from experiments, which limits their ability to decode continuous and complex movements. In response to this challenge, we introduce a neural decoding method based on background-removed single-photon calcium images. This approach extracts three-dimensional spatiotemporal representations of neuronal activity via background removal and employs a decoder combining 3D-ResNet and RNN networks to enable continuous and rapid decoding of mouse lever-pressing kinematic parameters. Compared with traditional methods for neural decoding using single-photon calcium imaging, this approach offers higher accuracy and faster speed. Combined with real-time motion correction algorithms, the proposed neural decoding approach meets real-time decoding requirements at a 20Hz acquisition frame rate, achieving single decoding in just 21.8ms. This advancement significantly improves the efficiency of single-photon calcium imaging-based neural decoding, offering solutions for its application in real-time tasks, such as optical brain-computer interfaces.
BibTeX
@misc{li2024continuous,
  author = {Mingkang Li and Ruixue Wang and Guihua Wan and Yuqi Yang and Shaomin Zhang},
  title = {{Continuous Prediction of Mice Lever-Pressing Kinematic Parameters by Background Removed Single-photon Calcium Images}},
  year = {2024},
  doi = {10.1101/2024.12.17.628875},
  howpublished = {bioRxiv},
}
Figure