Behavioral Imitation with Artificial Neural Networks Leads to Personalized Models of Brain Dynamics During Videogame Play

Anirudha Kemtur, Francois Paugam, Basile Pinsard, Yann Harel, Pravish Sainath, Maximilien Le Clei, Julie Boyle, Karim Jerbi, Pierre BellecbioRxiv 2023

TL;DR

This paper introduces a novel method for understanding brain activity during complex, interactive tasks like video games. By training Artificial Neural Networks (ANNs) to imitate individual players' unique gameplay styles, they can create personalized models that better predict brain dynamics (fMRI signals) than generic models or simpler input features. This approach opens new avenues for studying cognition in naturalistic environments.

What Problem Does This Paper Address?

Analyzing brain activity during engaging, real-world tasks is challenging. Traditional neuroimaging studies often rely on passive tasks (like watching videos) or require laborious manual annotation of complex events. Video games, while rich and engaging, present a particularly difficult challenge due to their dynamic nature and the highly variable ways individuals play them. Existing methods for mapping brain activity to behavior in these contexts often struggle to capture the nuances of individual gameplay, leading to less precise insights. This paper aims to bridge this gap by developing a method that leverages the complexity of video games and individual differences in player behavior to create more accurate brain encoding models.

Methods

The core of this research lies in a two-step process:

  1. Imitation Learning (Behavioral Cloning): The researchers trained a deep Artificial Neural Network (ANN) composed of Convolutional Neural Networks (CNNs) for visual processing and Long Short-Term Memory (LSTM) layers for temporal processing. This network was trained using a technique called "Behavioral Cloning" (BC). The goal was to teach the ANN to play the video game "Shinobi III" by mimicking the exact button presses and actions of individual human players, frame by frame. This ensures the ANN learns a gameplay style specific to each participant.
  2. Brain Encoding: Once the imitation learning models were trained, their internal representations (activations from different layers of the network) were used as input features. These features were then fed into a linear regression model (specifically, ridge regression) to predict the functional Magnetic Resonance Imaging (fMRI) signals recorded from the participants while they played the game. This process essentially asks: "Can the features learned by the imitation model predict brain activity?"

They also implemented several control models for comparison:

  • Untrained Model: A CNN-LSTM model with random weights, to assess the baseline performance of the architecture itself.
  • Pixel-space Model: Used raw pixel data from the game frames, processed by PCA, as input.
  • Action-space Model: Used one-hot encoded button presses as input.

Datasets

The study utilized the Shinobi dataset, which includes both fMRI and behavioral data (game frames and controller inputs) collected from four right-handed adult subjects (aged 33-49) playing the video game "Shinobi III: Return of the Ninja Master." Data was collected over multiple sessions and runs, with each run lasting at least 10 minutes. The dataset was preprocessed to align behavioral data (downsampled to 12Hz) with fMRI TRs (1.49 seconds).

Key Insights and Ideas

  • Individual Gameplay Matters: The central hypothesis that individual gameplay style is crucial for accurate brain encoding was strongly supported. ANNs trained to mimic a specific player's actions were significantly better at predicting that player's brain activity than models trained on other players' data.
  • Beyond Simple Inputs: Neither raw pixel data nor simple button presses alone were sufficient to capture the complex brain dynamics observed during gameplay. The rich, learned representations within the imitation model's hidden layers proved far more predictive.
  • Layer-wise Brain Encoding: Different layers of the ANN captured different aspects of the gameplay and brain activity. Early convolutional layers were better at predicting activity in visual areas, while later layers (including LSTMs) were more effective at encoding motor and somatosensory regions, reflecting the hierarchical processing of visual information and the generation of motor commands.
  • Ecological Validity: Video games offer a powerful platform for studying brain activity in naturalistic, engaging environments, moving beyond passive tasks. This approach could be extended to other complex interactive scenarios.

Key Results

  • Behavioral Imitation Accuracy: The imitation learning models achieved impressive accuracy in predicting individual players' button presses, ranging from 62% to 68% (chance level ~0.8%). This indicates the models successfully learned to replicate unique gameplay styles.
  • Brain Encoding Performance: Subject-specific imitation models achieved significantly higher brain encoding performance (measured by R², the percentage of variance explained) compared to control models.
  • They outperformed the Untrained model in about 40% of brain parcels.
  • They outperformed Pixel-space and Action-space models in about 85% of brain parcels.
  • Key Brain Regions: The highest correlations between ANN activations and brain signals were found in biologically plausible areas, including the visual cortex (especially the dorsal stream), sensorimotor cortex, and attention networks. These regions showed consistent improvement in encoding across subjects.
  • Subject-Specific Advantage: When comparing a subject-specific model against a model trained on the "best alternative" subject's gameplay, the subject-specific model consistently showed better brain encoding, with significant improvements in specific brain regions.

Limitations and Future Work

  • Temporal Resolution Mismatch: The paper acknowledges that the slow temporal resolution of fMRI might limit the full translation of the advantages of subject-specific imitation learning, as it may not fully capture the rapid dynamics of video gameplay.
  • Future Directions: The authors suggest using high temporal resolution imaging techniques like EEG or MEG to complement fMRI data. They also propose that this approach can be used to generate individual brain maps for group-level analyses, opening up new avenues for studying brain-behavior associations in ecologically valid tasks, particularly for demographics like children, by selecting appropriate video games.

Summary updated

Abstract

Abstract Videogames provide a promising framework to understand brain activity in a rich, engaging, and active environment, in contrast to mostly passive tasks currently dominating the field, such as image viewing. Analyzing videogames neuroimaging data is however challenging, and relies on time-intensive manual annotations of game events, based on somewhat arbitrary rules. Here, we introduce an innovative approach using Artificial Neural networks (ANN) and brain encoding techniques to generate activation maps associated with videogame behaviour using functional magnetic resonance imaging (fMRI). As individual behavior is highly variable across subjects in complex environments, we hypothesized that ANNs need to account for subject-specific behavior to properly capture brain dynamics. In this study, we used data collected while subjects played Shinobi III: Return of the Ninja Master (Sega, 1993), an action-platformer videogame. Using imitation learning, we trained an ANN to play the game while closely replicating the unique gameplay style of individual participants. We found that hidden layers of our imitation learning model successfully encoded task-relevant neural representations, and predicted individual brain dynamics with higher accuracy than models trained on other subjects’ gameplay. Individual-specific models also outperformed a number of baselines to predict brain activity, such as pixel inputs, or button presses. The highest correlations between layer activations and brain signals were observed in biologically plausible brain areas, i.e. somatosensory, attention, and visual networks. Our results demonstrate that training subject-specific ANNs can successfully uncover brain correlates of complex behaviour. This new method combining imitation learning, brain imaging, and videogames opens new research avenues to study decision-making and psychomotor task solving in naturalistic and complex environments.
BibTeX
@misc{kemtur2023behavioral,
  author = {Anirudha Kemtur and Francois Paugam and Basile Pinsard and Yann Harel and Pravish Sainath and Maximilien Le Clei and Julie Boyle and Karim Jerbi and Pierre Bellec},
  title = {{Behavioral Imitation with Artificial Neural Networks Leads to Personalized Models of Brain Dynamics During Videogame Play}},
  year = {2023},
  doi = {10.1101/2023.10.28.564546},
  howpublished = {bioRxiv},
}
Figure