An enhanced inverted encoding model for neural reconstructions

Paul S. Scotti, Jiageng Chen, Julie D. GolombbioRxiv 2021

TL;DR

This paper introduces "enhanced inverted encoding model" (eIEM), a more interpretable and flexible method for reconstructing mental states from neuroimaging data. eIEM improves upon existing techniques by offering trial-by-trial analysis, meaningful units for reconstruction quality, and a novel goodness-of-fit measure, leading to more robust and insightful findings.

What Problem Does This Paper Address?

Neuroimaging techniques like fMRI allow us to observe brain activity, but understanding what that activity represents (e.g., what someone is perceiving, attending to, or remembering) is a significant challenge. Inverted Encoding Models (IEMs) are a popular computational approach to tackle this, aiming to predict stimuli from brain activity. However, standard IEMs often suffer from issues like:

  • Lack of interpretability: Reconstruction quality is often measured in arbitrary units, making it hard to compare across studies or understand the magnitude of decoding.
  • Information loss: Averaging reconstructions across trials can mask important trial-to-trial variability.
  • Methodological pitfalls: Certain standard practices can lead to misleading results, especially when dealing with noisy data or specific basis set choices.
  • Limited flexibility: Existing methods don't easily incorporate measures of uncertainty or allow for flexible trial selection based on data quality.

This paper aims to address these limitations by proposing an enhanced IEM (eIEM) that is more interpretable, flexible, and robust.

Methods

The core of eIEM builds upon the established Inverted Encoding Model (IEM) framework but introduces several key improvements:

  • Iterative Shifting: Instead of using a fixed basis set, eIEM iteratively shifts the basis set to cover the entire stimulus space. This allows reconstructions to reside in stimulus space rather than an "impoverished channel space," leading to more accurate and interpretable results.
  • Trial-by-Trial Analysis: Unlike standard IEMs that often average reconstructions, eIEM analyzes each trial independently. This allows for the calculation of trial-by-trial prediction errors and goodness-of-fit values.
  • Meaningful Units for Reconstruction Quality: eIEM uses prediction error (e.g., Mean Absolute Error - MAE) as a primary metric for reconstruction quality. This provides a more intuitive and interpretable measure than arbitrary units like slope or amplitude.
  • Novel Goodness-of-Fit (GoF) Feature: eIEM calculates a goodness-of-fit for each trial independently of the actual stimulus. This GoF measure (based on the correlation between the reconstruction and the best-fitting basis channel) provides a non-circular estimate of prediction confidence and can be used to:
  • Threshold trials, excluding noisy or unreliable data.
  • Increase statistical power and improve decoding performance.
  • Strengthen brain-behavior correlations.
  • Correlation Table Approach: For predicting stimulus features, eIEM uses a correlation table approach that accounts for the shape of the encoder's basis channels, making it more robust than methods that don't adapt to basis set choices.

The authors also provide a user-friendly Python package that implements eIEM, allowing for easy application and modification.

Datasets

The authors validate their eIEM approach using three existing fMRI datasets:

  • Perception Dataset: (Henderson et al., 2019) - focused on decoding horizontal position.
  • Attention Dataset: (Chen et al., 2021, in prep.) - focused on decoding attended color.
  • Memory Dataset: (Rademaker et al., 2019) - focused on decoding orientation during working memory delays.

They also utilize simulated fMRI data to demonstrate the robustness of their method across various parameters.

Key Insights and Ideas

  • Trial-by-trial analysis is crucial: Averaging reconstructions can mask important variability and lead to misleading interpretations, especially with noisy data.
  • Goodness-of-fit is a powerful tool: A non-circular measure of prediction confidence can significantly improve decoding performance and statistical power by allowing for intelligent trial exclusion.
  • Interpretability matters: Using meaningful units like prediction error (e.g., degrees of orientation) is more informative than arbitrary metrics.
  • Basis set choice can be tricky: Standard IEMs can be sensitive to the choice of basis set, and eIEM's iterative shifting and correlation table approach help mitigate this.

Key Results

  • eIEM replicated the findings of standard IEM approaches on the three real fMRI datasets, demonstrating its compatibility.
  • eIEM provided more interpretable results, e.g., decoding orientation with an average error of 27.9 degrees in the blank delay condition, compared to arbitrary slope values from standard IEM.
  • Applying goodness-of-fit thresholds in eIEM consistently improved reconstruction quality (MAE) across datasets, showing increased statistical power. For instance, excluding the worst 50% of trials led to visible improvements in MAE.
  • Brain-behavior correlations were strengthened by using higher goodness-of-fit thresholds, suggesting that the GoF measure reflects signal quality rather than just behavioral noise.
  • Simulations demonstrated that eIEM's goodness-of-fit thresholding improves reconstructions across a wide range of simulation parameters.

Limitations and Future Work

  • Threshold determination: The authors emphasize that goodness-of-fit thresholds should be determined a priori or based on independent criteria, not cherry-picked to achieve desirable results.
  • Complexity vs. Simplicity: While eIEM offers a more accessible and simpler framework, the authors acknowledge that more complex modeling approaches might be more suitable for specific research questions.
  • Future Work: The authors suggest further work is needed to compare eIEM with other complex modeling approaches and to explore its application to a wider range of research questions. They also note that their Python package can be modified to customize aspects of the pipeline for advanced users.

Summary updated

Abstract

Abstract Here we present a more interpretable and versatile approach for reconstructing the contents of perception, attention, and memory from neuroimaging data. Our enhanced inverted encoding model (eIEM) incorporates theoretical and methodological improvements including proper accounting of population-level tuning functions and a trial-by-trial prediction error-based metric where reconstruction quality is measured in meaningful units. Added functionality and improved flexibility is further gained via eIEM’s novel goodness-of-fit feature: for trial-by-trial reconstructions, goodness-of-fits are obtained independently (non-circularly) to prediction error and can be applied to any IEM procedure or decoding metric, resulting in improved reconstruction quality and brain-behavior correlations, and more creative applications. We validate eIEM from methodological principles, simulated neuroimaging datasets, and three pre-existing fMRI datasets spanning perception, attention, and working memory. Notably, eIEM is easy to apply and broadly accessible – our Python package ( https://pypi.org/project/inverted-encoding ) implements eIEM in one line of code – and is easily modifiable to compare performance metrics and/or scale up to more complex models.
BibTeX
@misc{scotti2021enhanced,
  author = {Paul S. Scotti and Jiageng Chen and Julie D. Golomb},
  title = {{An enhanced inverted encoding model for neural reconstructions}},
  year = {2021},
  doi = {10.1101/2021.05.22.445245},
  howpublished = {bioRxiv},
}
Figure