Computational discrimination between natural images based on gaze during mental imagery

Xi Wang, Andreas Ley, Sebastian Koch, James Hays, Kenneth Holmqvist, Marc AlexaScientific 2020

Abstract

When retrieving an image from memory, humans usually move their eyes spontaneously as if the image were in front of them. Such eye movements correlate strongly with the spatial layout of the recalled image content and function as memory cues facilitating the retrieval procedure. However, how close the correlation is between imagery eye movements and the eye movements while looking at the original image is unclear so far. In this work, we first quantify the similarity of eye movements between recalling an image and encoding the same image, followed by the investigation on whether comparing such pairs of eye movements can be used for computational image retrieval. Our results show that computational image retrieval based on eye movements during spontaneous imagery is feasible. Furthermore, we show that such a retrieval approach can be generalized to unseen images.

Introduction

When you remember a scene—like your childhood living room or a recent vacation photo—your eyes often move as if the image were physically in front of you. This "looking-at-nothing" phenomenon has been studied for decades, but a major question remained: is the correlation between these "imagery eye movements" and the original "encoding eye movements" strong enough for a computer to actually identify the image?

Previous studies mostly used simple, low-resolution grid stimuli. This research tackles the challenge of computational image retrieval using complex, high-resolution natural images. The primary hurdle is that imagery eye movements aren't perfect replicas of perception; they are often "shrunken," shifted, or distorted because the brain lacks a physical frame of reference when looking at a blank wall.

Methodology

The researchers recorded the gaze of 28 participants as they viewed 100 natural images (encoding) and then recalled them while looking at a gray screen (recall). To turn eye movements into data a computer can understand, they used 2D gaze density histograms, mapping gaze onto a 24x24 grid where each cell represents time spent looking at that location.

Experimental procedure and gaze analysis metrics. (a) Trial sequence including encoding and recall phases. (b) Fixation duration over time. (c) Saccade main sequence (peak velocity vs. amplitude). (d) Distribution of fixation span areas showing the shrinkage effect.

Three classification approaches were tested:

  1. k-Nearest Neighbor (kNN): A simple baseline using Euclidean distance.
  2. Convolutional Neural Networks (CNN): Used to capture spatial patterns in the gaze maps.
  3. Dual-Task CNN: A novel architecture trained to classify the image and "decode" distorted recall gaze back to the original encoding gaze.
  4. Triplet Loss Learning: Used to create 16-dimensional descriptors to test generalization to entirely new, unseen images.

Key Insights

The "Shrinkage" Effect

The study confirmed that when we imagine things, our eye movements cover a smaller area than when we actually see them. As shown in the distribution of fixation span areas, the recall phase (orange) is significantly shifted toward smaller areas compared to the encoding phase (blue). It is as if our mental canvas is smaller than the physical one.

The Spatial Indexing Hypothesis

Eye movements act as "spatial indices" that help the brain "hang" memories in 3D space. Interestingly, the researchers found that people with poorer spatial imagery skills actually produced eye movements that were easier for the computer to recognize. These individuals rely more on physical eye movements to "anchor" their memories, whereas "good visualizers" can do it internally without moving their eyes as much.

Results

  • Encoding (Looking at the image): The CNN was nearly perfect, achieving an Area Under the Curve (AUC) of 97.5%.
  • Recall (Imagining the image): This was significantly more challenging. The kNN baseline failed (54.3% AUC), proving simple distance metrics cannot handle imagery distortions. However, the CNN achieved 69.8% AUC, which improved to 72.1% with the dual-task "decoding" approach.
  • Generalization: When tested on new images the network had never seen before, it still achieved a respectable 66.4% AUC, proving the learned gaze patterns are somewhat universal.

Conclusion

While 100 images is a significant leap forward, real-world image retrieval involves millions of images. The system's "spatial layout confusion"—where images with similar layouts (like a face and a sign) result in similar gaze patterns—suggests that gaze alone might not be enough to distinguish between very similar-looking scenes in a massive database. Future work may explore whether finer micro-gaze patterns reveal details like color or texture over longer recall periods.

Summary updated

BibTeX
@inproceedings{wang2020computational,
  author = {Xi Wang and Andreas Ley and Sebastian Koch and James Hays and Kenneth Holmqvist and Marc Alexa},
  title = {{Computational discrimination between natural images based on gaze during mental imagery}},
  booktitle = {Scientific},
  year = {2020},
  doi = {10.1038/s41598-020-69807-0},
}
Figure