CNN-based Encoding and Decoding of Visual Object Recognition in Space and Time

Katja Seeliger, Matthias Fritsche, Umut Güçlü, Sanne Schoenmakers, Jan‐Mathijs Schoffelen, S. E. Bosch, Marcel van GervenbioRxiv 2017

Abstract

Deep convolutional neural networks (CNNs) have been put forward as neurobiologically plausible models of the visual hierarchy. Using functional magnetic resonance imaging (fMRI), CNN representations of visual stimuli have previously been shown to correspond to processing stages in the ventral and dorsal streams of the visual system. Whether this correspondence between models and brain signals also holds for activity acquired at high temporal resolution has been explored less exhaustively. Here, we addressed this question by combining CNN-based encoding models with magnetoencephalography (MEG). Human participants passively viewed 1000 images of objects while MEG signals were acquired. We modelled their high temporal resolution source-reconstructed cortical activity with CNNs, and observed a feedforward sweep across the visual hierarchy between 75-200 ms after stimulus onset. This spatiotemporal cascade was captured by the network layer representations, where the increasingly abstract stimulus representation in the hierarchical network model was reflected in different parts of the visual cortex, following the visual ventral stream. We further validated the accuracy of our encoding model by decoding stimulus identity in a left-out validation set of viewed objects, achieving state-of-the-art decoding accuracy.

Introduction

Understanding how the human brain transforms raw visual input into abstract object representations is a central goal of cognitive neuroscience. While Deep Convolutional Neural Networks (CNNs) have emerged as powerful, neurobiologically inspired models of this process, validating their alignment with human neural activity remains a challenge. Previous research using fMRI has successfully mapped the spatial hierarchy of CNNs—where early layers detect simple edges and later layers identify complex objects—to the anatomical layout of the visual cortex. However, fMRI lacks the temporal resolution to capture the rapid dynamics of object recognition, which occurs within milliseconds.

This study bridges that gap by combining CNN-based encoding models with magnetoencephalography (MEG). By capturing brain activity at a millisecond scale, we investigate whether the sequential processing stages of a CNN actually mirror the timing and location of neural signals in the human visual system.

Methods and Materials

Experimental Design

Fifteen participants took part in a passive viewing task. The stimulus set consisted of 1,000 high-quality natural images of objects sourced from the Bank of Standardized Stimuli (BOSS) and the Amsterdam Library of Object Images (ALOI). The trial structure was designed to isolate stimulus-driven activity while allowing for natural physiological processes like blinking.

Experimental paradigm showing the timing of stimulus presentation and fixation periods.

As shown in the figure above, each trial lasted 3000ms. It began with a 400ms pre-stimulus fixation, followed by a 600ms stimulus presentation. A 1000ms post-stimulus fixation period allowed for the recording of sustained neural representations, followed by a 1000ms blink phase to minimize artifacts during critical recording windows.

Neural Recording and Modeling

MEG signals were recorded and then mapped onto 7,344 specific cortical sources using LCMV beamformers and individual 3D brain surface models. To model this activity, we utilized VGG-S, an 8-layer CNN (comprising 5 convolutional and 3 fully connected layers) pre-trained on the ImageNet database.

We employed linear ridge regression to build encoding models that predicted brain activity at each source and within 30ms time bins based on features extracted from the CNN layers. The dataset was split into an estimation set (950 images) for training and a validation set (50 images, repeated 10 times) for testing the model's predictive power.

Results

The Spatiotemporal Cascade

Our analysis revealed a clear "feed-forward sweep" of information across the visual hierarchy. Between 75ms and 200ms after stimulus onset, we observed a progression where early CNN layers (1 and 2) best explained activity in the primary visual regions (occipital lobe) at approximately 75–105ms. By 135–165ms, the more abstract representations from the fully connected layers (6 and 7) became the primary predictors of activity in the ventral stream, the brain's "what" pathway.

Interestingly, Layer 2—which captures textures and lattices—showed higher correlation with early brain activity than Layer 1 (simple edges). This suggests the MEG signal is particularly sensitive to the rapid integration of features into more complex patterns almost immediately upon stimulus arrival.

Decoding and Identification

To validate the encoding model, we performed an identification task to see if the model could predict which image a participant was viewing. The results were state-of-the-art for MEG-based decoding. For top-performing participants, the model correctly identified the specific image (1 out of 50) approximately 20% of the time (where chance is 2%). When considering the "top-5" most likely images, accuracy reached 70%. Notably, decoding remained above chance levels even after the image disappeared (post-600ms), suggesting the brain maintains a memory trace of the stimulus.

Discussion

This study confirms that the hierarchical progression of CNNs from local spatial features to translation-invariant abstract features closely mirrors the biological ventral stream in both space and time. However, certain limitations remain. The VGG-S model is strictly feed-forward, whereas the human brain relies heavily on recurrent feedback loops. Future work incorporating Recurrent Neural Networks (RNNs) may better capture the complexity of neural processing in later time windows.

Furthermore, the ability to decode activity after the stimulus has vanished opens new avenues for research. This framework could potentially be applied to study "top-down" cognitive processes, such as mental imagery and dreaming, where the brain generates internal representations in the absence of external visual input.

Summary updated

BibTeX
@misc{seeliger2017cnn,
  author = {Katja Seeliger and Matthias Fritsche and Umut Güçlü and Sanne Schoenmakers and Jan‐Mathijs Schoffelen and S. E. Bosch and Marcel van Gerven},
  title = {{CNN-based Encoding and Decoding of Visual Object Recognition in Space and Time}},
  year = {2017},
  doi = {10.1101/118091},
  howpublished = {bioRxiv},
}
Figure