This article is about my research in computational neuroscience on the Amgen Scholars Program in Munich during the summer of 2022. In short, we studied the function of mouse visual cortex using topological analysis. You can take a look at the code or at the poster.
To better understand general features of visual processing, we investigated the topology of neuronal activity of mouse primary visual cortex in response to static gratings and natural images. Both the set of static gratings with varying orientations and phases as well as the set of local patches of natural images exhibit topological features of a Klein bottle. A Klein bottle is a surface which is not orientable; if one moves on this one-sided surface, the path can be followed back to the point of origin, but “back” and “front” might be interchanged. For gratings, we used silicon-probe recordings of 41 neurons from a fixed-head experiment. The topology of this stimulus set is precisely a Klein bottle. We show that this topology is preserved in the neuronal activity. The neural responses to natural images were recorded with calcium imaging. Previous studies indicated that small patches of natural images have the Klein bottle topology. We extended these findings by showing that the activity of neurons with similar receptive fields (i.e., neurons that were responsive to the same image segments) possesses the Klein bottle topology, too, and that the decoded loop parameter correlates with the orientation of the gratings that approximate image patches. This result indicates that at least from a topological point of view, images are locally represented like gratings in the visual cortex.
In simple terms, we can think of topology as the study of the features of shapes (sets) which are persistent during their continuous transformations. We use it, because we are interested in the general structure of the shapes we are working with rather than their geometry. We are interested in two types of sets:
Topology of image sets
To work with image sets, we should parametrize them and look at which parameter values correspond to similar image.
Consider set of images with horizontal line:
It has just one parameter,
As explained above, the topology of the stimuli set in this case is a Klein bottle. After processing the experimental data obtained from the Laura Busse lab at LMU using silicone probe recordings (41 neurons), this the resulting shape after PCA and UMAP:
The point clouds above are obtained from the neuronal activity and are topologically isomorphic to the source shapes. On the left, points are color-coded by orientation of the corresponding gratings, on the right — by its phase.
The hypothesis is that if we looked at the neurons with the same center of their receptive field, we would see the Klein bottle topology because image segments can be locally efficiently represented as gratings. For that, for each neuron, we calculate its receptive field — the measure of how strongly the neuron's activity correlates with a specific point on the image (by averaging images with the neuron's activity as coefficients). Then, we measure how close the receptive field is to a single gaussian. We filter neurons for which the receptive fields are localized (they have a high score of similarity to a gaussian). Then, we filter neurons which have roughly the same receptive field center. Example of a receptive field:
For each image segment, we mapped a grating onto it using Fourier transform.
This diagram shows neuronal activity for natural images after PCA and UMAP colored by the decoded loop parameter (on the left) and by orientation mapped to the image segments (on the right), smoothed by averaging orientation of the nearest neighbors:
We got a good correlation of the decoded parameter with orientation in a range of the parameter values:
This result indicates that, at least from a topological point of view, images are locally represented like gratings in the visual cortex. This has connections to, for example, compression theory — JPEGs also use grating-like patterns to locally represent images. Also, previous research has shown that natural images in very small patches have roughly the Klein bottle topology.
If you have any questions or just want to discuss something, you can write me using email or on Telegram. Also, connect with me on LinkedIn.
I would like to acknowledge my lab: the group leader Prof. Andreas Herz, my supervisor Martin Stemmler, and Arash Shahidi. I would also like to acknowledge the Laura Busse lab at LMU for providing experimental data for grating stimuli and the Stringer lab at Janelia for providing the natural images dataset. The paper On the Local Behavior of Spaces of Natural Images by G. Carlsson et al showed that 3-by-3-pixel segments of natural images have the Klein bottle topology. UMAP (McInnes, L, Healy, J, UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction, ArXiv e-prints 1802.03426, 2018) was used for studying the datasets.