Neural encoding with unsupervised spiking convolutional neural network

Chong Wang, Hongmei Yan, Wei Huang, Wei Sheng, Yuting Wang, Yun-Shuang Fan, Tao Liu, Ting Zou, Rong Li, Huafu Chen

Abstract

Accurately predicting brain responses to various stimuli poses a significant challenge in neuroscience. Despite recent breakthroughs in neural encoding using convolutional neural networks (CNNs) in fMRI studies, there remain critical gaps between the computational rules of traditional artificial neurons and real biological neurons. To address this issue, a spiking CNN (SCNN)-based framework is presented in this study to achieve neural encoding in a more biologically plausible manner. The framework utilizes unsupervised SCNN to extract visual features of image stimuli and employs a receptive field-based regression algorithm to predict fMRI responses from the SCNN features. Experimental results on handwritten characters, handwritten digits and natural images demonstrate that the proposed approach can achieve remarkably good encoding performance and can be utilized for "brain reading" tasks such as image reconstruction and identification. This work suggests that SNN can serve as a promising tool for neural encoding.

Introduction

In the field of neural encoding, the primary objective is to develop computational models capable of accurately predicting how the brain—specifically the visual cortex—responds to external stimuli. While traditional Convolutional Neural Networks (CNNs) have achieved state-of-the-art performance in these tasks, they are often criticized for their lack of biological plausibility. Standard CNNs rely on continuous digital values for communication and global optimization techniques like backpropagation, which do not align with the discrete electrical "spikes" and local learning rules observed in biological neurons.

This research introduces a framework based on Spiking Convolutional Neural Networks (SCNNs) to bridge this gap. By mimicking the spiking nature of biological systems and employing local learning mechanisms, the study explores whether SNNs can match or exceed the performance of traditional artificial neural networks in predicting functional Magnetic Resonance Imaging (fMRI) responses.

Methodology: The SCNN Framework

The proposed encoding framework consists of three primary stages designed to emulate biological visual processing:

  1. Feature Extraction via SCNN: The model utilizes a two-layer unsupervised SCNN. The initial processing layer employs "Difference of Gaussians" (DoG) filters to simulate retinal light processing. This is followed by a layer of Integrate-and-Fire (IF) neurons, which generate discrete spikes only when their internal membrane potential reaches a specific threshold.
  2. Unsupervised Learning with STDP: Unlike supervised models that require labeled data, this network learns visual features through Spike-Timing-Dependent Plasticity (STDP). STDP is a biological learning rule where synaptic weights are adjusted based on the precise temporal relationship between pre- and post-synaptic spikes.
  3. Receptive Field-Based Regression: To map extracted SNN features to fMRI voxel activity, the researchers implemented a receptive field-based regression algorithm. This approach assumes that individual voxels respond to specific localized regions of the visual field, reflecting the retinotopic organization of the human visual cortex.
The proposed neural encoding framework based on an unsupervised spiking convolutional neural network (SCNN).

Experimental Validation

The framework was evaluated using four diverse image-fMRI datasets, ranging from simple handwritten characters (letters B, R, A, I, N, S) and digits (6 and 9) to complex grayscale and colorful natural images. These datasets allowed the researchers to test the model's robustness across different levels of visual complexity.

Key Results and "Brain Reading" Applications

The SCNN-based model demonstrated superior encoding accuracy compared to standard CNNs across nearly all subjects and datasets. For instance, on the handwritten character dataset, the SCNN achieved significantly higher Pearson Correlation Coefficients (PCC) than traditional artificial networks ($p < 10^{-18}$).

Beyond simple prediction, the model's effectiveness was tested in two "brain reading" tasks:

  • Image Identification: The model identified which image a subject was viewing from a large candidate set with up to 96.67% accuracy, surpassing traditional Gabor wavelet pyramid (GWP) models.
  • Image Reconstruction: The framework successfully reconstructed recognizable images of letters and digits solely from fMRI activity. While natural image reconstructions were less detailed, they accurately preserved the structural and positional essence of the original stimuli.
Downstream 'brain reading' tasks: (b) image reconstruction and (c) image identification using the SCNN-based encoding model.

Discussion and Insights

The success of the SCNN framework provides several key insights into neural computation. First, the superior performance of spiking models suggests that the temporal, discrete nature of neural firing captures essential characteristics of brain representation that continuous-value models may miss. Second, the effectiveness of unsupervised learning supports the hypothesis that the early visual cortex develops its functional architecture through self-organized processes rather than explicit label-based optimization. Finally, incorporating spatial constraints via receptive fields proved crucial for reducing noise and improving the robustness of the "brain reading" results.

Limitations and Future Directions

While promising, the study identifies several avenues for future research. The current SCNN is relatively shallow; scaling SNNs to the depths seen in modern deep learning while maintaining stable STDP learning remains a significant technical challenge. Additionally, the Integrate-and-Fire neuron is a simplification; future iterations could incorporate more complex biological models like Leaky Integrate-and-Fire neurons. Finally, the researchers aim to extend this framework beyond visual perception to higher-level cognitive functions such as mental imagery and memory.

Summary updated

BibTeX
@inproceedings{wang2023neural,
  author = {Chong Wang and Hongmei Yan and Wei Huang and Wei Sheng and Yuting Wang and Yun-Shuang Fan and Tao Liu and Ting Zou and Rong Li and Huafu Chen},
  title = {{Neural encoding with unsupervised spiking convolutional neural network}},
  booktitle = {Communications},
  year = {2023},
  doi = {10.1038/s42003-023-05257-4},
}
Figure