TL;DR
This paper introduces a new computational method, PsyTrack, to analyze the moment-to-moment decision-making strategies of animals. It moves beyond static analyses by capturing how these strategies evolve trial-by-trial, revealing dynamic learning processes and individual differences in mice, rats, and humans.
What Problem Does This Paper Address?
Understanding how animals learn and adapt their decision-making strategies is crucial for neuroscience. However, traditional behavioral analysis tools, like psychometric curves, often average data over long periods, masking the dynamic, trial-by-trial changes that occur, especially during learning. This makes it difficult to understand how animals adjust to changing task statistics, suppress suboptimal strategies, or how individual learning trajectories diverge. The authors aim to provide a method that can precisely quantify these dynamic behavioral strategies at the resolution of single trials.
Methods
The core of the paper is a dynamic Bernoulli generalized linear model (GLM), implemented in the Python package PsyTrack. This model uses a set of smoothly evolving psychophysical weights that are estimated for each trial. These weights represent the animal's sensitivity to different task variables (e.g., stimulus features, choice history, reward).
Key methodological innovations include:
- Trial-by-trial weight estimation: Unlike traditional methods that assume constant weights over blocks of trials, this model allows weights to change gradually after each trial, modeled as a Gaussian random walk.
- Augmented model for session changes: An extension to the model incorporates additional hyperparameters to capture potentially larger shifts in strategy between experimental sessions ("days").
- Empirical Bayes approach: The model uses a two-step empirical Bayes procedure to estimate both the weights and the smoothness hyperparameters.
- Efficient optimization: The authors developed fast approximate methods to handle the computationally demanding optimization problem, allowing analysis of datasets with tens of thousands of trials within minutes.
Datasets
The authors applied their method to existing datasets from:
- International Brain Lab (IBL) mice: Performing a visual detection task.
- Akrami et al. rats: Performing an auditory parametric working memory task.
- Akrami et al. human subjects: Performing a similar auditory discrimination task.
The paper also uses simulated data to validate the model's performance.
Key Insights and Ideas
- Behavior is dynamic, even in well-trained animals: The model reveals that strategies can continue to evolve and vary even after animals appear to have mastered a task, especially in non-stationary environments.
- Task-irrelevant cues matter: The method can quantify the influence of factors like choice history and reward on decisions, showing how these can change over time and even dominate behavior early in learning.
- Individual learning trajectories are diverse: While population averages show smooth trends, individual animals can exhibit significant variation in how their strategies evolve.
- Adaptation to non-stationarity: The model can capture how animals adapt their strategies to changing task statistics, such as the introduction of biased stimulus blocks.
- Human vs. Rat learning: The study highlights differences in learning dynamics, with rats showing a stronger influence of trial history compared to humans, who appear to initialize with more "correct" strategies.
Key Results
- The PsyTrack model successfully recovers simulated psychophysical weights and hyperparameters, demonstrating its validity.
- Analysis of IBL mouse data shows that contrast sensitivity weights diverge gradually over training, correlating with accuracy improvements.
- The model reveals that in Akrami rats, trial history (previous choices, answers, and tones) significantly influences behavior, especially early in training, while task-relevant stimulus weights are initially near zero.
- In Akrami humans, weights are generally more stable, and trial history has a negligible impact, suggesting a different learning strategy compared to rats.
- The model's predictions of accuracy and bias closely match empirical measures, validating its descriptive power.
- The computational efficiency allows analysis of large datasets (tens of thousands of trials) in minutes.
Limitations and Future Work
- Model Assumptions: The model assumes that decision-making can be described by GLM weights and that these weights evolve smoothly. Behaviors that change suddenly or in non-smooth ways might not be perfectly captured, although the session-based augmentation helps.
- Parameterization of Input Variables: Selecting and parameterizing input variables can be challenging and may require careful consideration for different tasks. The authors suggest using approximate log-evidence for variable selection and demonstrate the benefit of non-linear transformations (like tanh) for contrast values.
- Future Work: The authors suggest extending the model to multinomial choice tasks, creating automated optimal training paradigms, and using the derived weights for more targeted downstream analyses. They also emphasize the importance of validating model results against more conventional measures.
Summary updated