Skip to main content
PLOS Computational Biology logoLink to PLOS Computational Biology
. 2025 Aug 21;21(8):e1013335. doi: 10.1371/journal.pcbi.1013335

Decoding decision-making behavior from sparse neural spiking activity

Yuhang Zhang 1,2,#, Tao Sun 1,2,3,#, Boyang Zang 1,2, Sen Wan 1,2,*
Editor: Daniele Marinazzo4
PMCID: PMC12416849  PMID: 40839701

Abstract

Decoding animal decision-making behavior from neural spike data emerges as a particularly challenging problem in neuroscience. To address this, we have devised a decision-making decoding model, incorporating a channel attention bi-directional long short-term memory network (CA-BiLSTM), with the aim of effectively parsing sparse neural spike data across multiple brain regions. Notably, the attention mechanism embedded within this model serves the crucial purpose of adeptly localizing neurons integral to decision-making stability within the task at hand. Specifically, when applied to the reproducible electrophysiology dataset from the International Brain Laboratory (IBL), our proposed model has demonstrated a remarkable capacity for accurately forecasting decision-making behavior in mice. Consequently, this investigation furnishes a novel perspective for unraveling the intricacies of neural decision-making mechanisms.

Introduction

In the expansive realm of neuroscience, the precise quantification and prediction of animal perceptual decision-making, along with the underlying neural mechanisms, represent pivotal endeavors in unraveling the enigmas of the brain [1–4]. This pursuit is widely recognized as a fundamental challenge in comprehending the intricacies of mental operations. Specifically, this field aims to explicate and forecast the macroscopic behavioral strategies displayed by animals when confronted with choices, through the analysis of measurable neural activity data and the application of sophisticated quantitative models. This process constitutes foundational steps in unveiling how the brain processes sensory inputs and translates them into decision commands. Essentially, it represents the key in deciphering the workings of the brain, namely, the transition from the microscale activities of neurons to the macroscopic manifestations of behavior [5, 6].

Perceptual decision-making research necessitates a profound understanding of the activity patterns of individual neurons and neural networks, closely associating these microscale activities with the overall decision-making behavior of animals [7, 8]. This approach constructs a seamless framework for understanding from neurophysiology to behavioral science. Through precise measurement and analysis of neural signals, such as action potential firing rates and synchronized activities of neural clusters, mathematical models can be established to capture the essential features of neurodynamics during the decision-making process and infer the decision tendencies of animals based on these models [9, 10].

Early decision-making research primarily analyzed animal decision behavior by examining the spiking activity of local neural populations [11–13]. For instance, the drift-diffusion model (DDM) [14–16] enabled the modeling of reaction time data distributions in animal decision tasks, allowing the prediction of decision-making behavior through the accumulation of evidence from neural spiking activity [17]. Another study [18] utilized support vector machine (SVM) models to decode neural spike data from the posterior parietal cortex (PPC) to predict rat decision-making behavior. Although prior research has demonstrated the impact of neural signals from single brain regions on decision-making behavior [19, 20], the cooperative interplay of multiple brain regions in influencing decision-making remains an area ripe for further exploration [21, 22].

Recent studies have begun to investigate how the nonspecific responses of neurons across multiple brain regions during the decision-making process may affect behavior [23, 24], even in brain regions previously considered solely sensory in nature [25–27]. For example, research has shown that attention enhances stimulus information in both frontoparietal and early visual regions before a decision is made, highlighting the role of attention as a fundamental mechanism underpinning decision making [28]. Building upon this foundation, we propose an innovative deep neural network approach, the CA-BiLSTM model, tailored for sparse neural spike data across multiple brain regions. BiLSTM networks, known for capturing temporal dependencies in sequential data, have been effectively applied in neuroscience to model neural dynamics [29, 30]. By utilizing pre-decision multi-brain region neural spike data in 25 mice, we achieved an average predictive accuracy of 79.6% and an average Area Under Curve(AUC) of 82.8%.

Additionally, to enhance the model’s capacity in decoding neural spike data, we introduced an attention mechanism. Attention mechanisms, inspired by cognitive processes, allow models to focus on relevant parts of the input data, improving performance in tasks such as neural signal decoding. In our study, the attention mechanism resulted in an approximate 6-17% increase in prediction accuracy compared to traditional machine learning and deep learning methods. More crucially, the attention mechanism adeptly selects pivotal neural units pertinent to decision-making, providing insights into the neural substrates of behavior.

These findings offer valuable insights into addressing core scientific inquiries within the field of neuroscience. The dataset employed in this study originates from the publicly available reproducible electrophysiology dataset provided by the International Brain Laboratory (IBL) [31, 32].

Methods

In this section, we delve into the neural activity changes in mice during their reaction time, focusing on the aforementioned perceptual decision-making problem. We have established an end-to-end deep learning model, the CA-BiLSTM, to facilitate a deeper understanding of their decision-making process.

The model: We propose an end-to-end prediction model, the CA-BiLSTM, which comprises a channel attention network structure, BiLSTM recurrent units, and fully connected layers, as illustrated in Fig 1C. The model takes neural spike signals from mouse neurons preceding decisions as input and produces output in the form of the mouse’s decision-making action.

Fig 1. |The CA-BiLSTM model accurately decodes mouse perceptual decision-making.

Fig 1

A, The collection of neural spike data. In the context of perceptual decision tasks in mice, we collected neural spike data pertaining to the interval between the observation of a grating and the subsequent rotation of a wheel. B, Predicting the decision behavior of mice (Left or right) based on neural spike data. C, A schematic showing the architecture of CA-BiLSTM for neural spike data. The CA-BiLSTM model consists of three components: a channel attention layer, a BiLSTM layer, and a Dense layer.

Perceptual decision-making is a collaborative effort involving multiple brain regions. To assess the varying impact of neurons in different brain regions on decision-making in mice, we devised a channel attention structure to gauge the magnitude of influence of distinct neurons on the predictive outcomes of mouse decision-making. This structure employs the tanh function as an activation function and acquires attention excitation through residual connections. Its purpose is to diminish the influence of non-decision-relevant neurons on the outcomes while bolstering the influence of decision-relevant neurons. Neural activity is encoded as temporal sequences of binned spike counts. Therefore, we employed BiLSTM to capture the temporal information of neural firing during the mouse decision-making process. This BiLSTM architecture facilitates robust memory retention and comprehensive context information capture within the neural activity data by transmitting information in both forward and backward directions. Ultimately, post-processing of features is executed through layer normalization and fully connected layers to yield the probabilities of mouse decision-making action.

In the CA-BiLSTM model, the architecture and output of the channel attention mechanism are as follows:

MLP(X)=Wb(g(WaX))Ec=tanh(MLP(AvgPool(X))+MLP(MaxPool(X))) (1)

where X represents the matrix of neural spike data. Wa and Wb represent the weights of the fully connected layers in the channel attention structure, and the weights for max-pooling and average-pooling are shared. The function g(•) denotes the activation function, set to ReLU in this paper, while AvgPool(•) and MaxPool(•) represent temporal average-pooling and max-pooling along the time dimension, respectively. The output weights Ec∈ℝ1×N have the same dimension as the number of channels.

The weighted output after the attention mechanism is then added to the original data through a residual connection, as specified by the following formula:

oc=X+EcX (2)

where oc represents the output after being weighted by the attention mechanism and connected through a residual connection. Subsequently, the output is fed into the BiLSTM network, where each LSTM unit consists of an input gate it, a forget gate ft, and an output gate ot. The hidden units maintains internal state memory at time step t. The BiLSTM is a bidirectional structure, comprising both forward and backward propagation layers, taking into full consideration the interdependencies among sequential data. By combining the outputs of the forward and backward propagation layers, it effectively integrates contextual features from the sequence. In this study, the hidden layer size was set to 128, and a 2-layer BiLSTM structure was employed. The formula for the forward propagation layer is as follows:

ft→=σ(W→f[h→t−1(k),xt(k)]+b→f)it→=σ(W→i[h→t−1(k),xt(k)]+b→i)C~t=tanh(W→c[h→t−1(k),xt(k)]+b→c)C→t=ft→∘Ct−1+it→∘C~to→t=σ(W→o[h→t−1(k),xt(k)]+b→o)h→t=o→t∘tanh(C→t) (3)

where C→t and h→t represent the cell state vector and output vector in the forward pass for layer k, ∘ represents element-wise multiplication, and T stands for the maximum time step, which, in this context, corresponds to the number of segments. K represents the maximum number of layers. The entire BiLSTM network structure generates a sequence of outputs H=[h→TK,h←TK] from each recurrent unit. The outputs from both the forward and backward passes are combined to incorporate contextual features from both past and future time steps. The network’s output values, denoted as h={[h→1K,h←1K],[h→2K,h←2K],...,[h→TK,h←TK]}, undergo layer normalization and are then fed into a fully connected layer to produce prediction probabilities. The specific formulas are as follows:

y=sigmoid(Wd(g(WcH~+bc))+bd) (4)

where Wc and Wd represent the weight matrices of the fully connected layer, g(•) denotes the activation function, which is set to ReLU in this study. sigmoid(•) is used to constrain the output within the (0, 1) range, representing prediction probabilities.

Loss function: Given the presence of noise in the mouse neural data and the inherent variability in evidence accumulation during reaction time, it is important to consider the possibility of mouse lapses. While reaction times have been controlled during the experiment selection process, the neural evidence accumulation process may not be consistently engaged across all trials. In some cases, responses might be impulsive rather than based on extended evidence integration. Additionally, due to the presence of noise, there may still be some ineffective samples in the trial data. Traditional Binary Cross-Entropy (BCE) loss functions are sensitive to sample noise; therefore, this study employs a generalized cross-entropy (GCE) loss function.

GCELoss(x,y)=1n∑k=1n1−(ykxk+(1−yk)(1−xk))qq (5)

where yk∈[0,1], xk represents the predicted value for the k-th sample, while yk represents the target value for the same sample. The parameter q serves as a tuning factor, and its range is within (0,1]. According to L’Hôpital’s rule, as q approaches zero, the exponential term becomes equivalent to BCE. Conversely, as q approaches 1, the exponential term transforms into a form similar to Mean Absolute Error (MAE). MAE is a noise-robust loss function, but it tends to have slow training speeds and is susceptible to underfitting in classification problems. GCE strikes a balance between these two loss functions effectively, mitigating the interference from ineffective samples.

Finally, the CA-BiLSTM model is presented below in algorithmic form (Algorithm 1).

Algorithm 1 CA-BiLSTM Algorithm

Input: Sparse spike data within the mouse’s reaction time X∈ℝT×N, training epochs E

Output: Trained CA-BiLSTM model Wg

1: Randomly initialize model parameters

2: Wg0={Θattn0,wlstm0}

3: for i = 0 to E do

4:   Calculate attention weight scores

5:   Ec=Attn(X;Θattni)

6:   Residual connection to get mixed features oc (Eq. 2)

7:   Feed the mixed features into the BiLSTM network

8:   H=Bi_LSTM(oc,wlstmi)

9:   Calculate predicted value y~=sigmoid(FC(H))

10:   Backpropagate using the GCE loss function (Eq. 5)

11: end for

12: return Wg

Results

Problem description

In this study, we leveraged the open-source multi-laboratory collaboration project initiated by the International Brain Laboratory (IBL) in 2022. This project utilized Neuropixels multi-electrode probes to record synchronized neural activity from specific brain regions of experimental mice. Data were collected from nine laboratories worldwide.

As illustrated in Fig 1A and 1B, the experimental mice were positioned in front of a screen and required to manipulate a rotating wheel to align visual stimuli presented on one side of the screen to the center. When the stimulus appeared on the left, the mice had to rotate the wheel clockwise to move the target to the center; conversely, when the stimulus appeared on the right, a counterclockwise rotation was required. The experimental design rewarded the mice with water for rotating in the correct direction and to a certain angle. Incorrect rotations exceeding a predefined angle or time limit resulted in a noise punishment.

The core objective of this study is to predict the next behavioral choice of mice by analyzing their neuronal activities during the response phase. Furthermore, we aim to explore the neuronal origins involved in the decision-making process through modeling approaches.

Experiments

In this section, we conduct a series of experiments using publicly available electrophysiology data from the IBL to validate the feasibility of the proposed algorithm.

Dataset Description: This study utilizes the IBL’s open-access dataset, which comprises neural activity recordings obtained using Neuropixels 1.0 multi-electrode probes in freely behaving mice. The probes were stereotactically implanted at standardized coordinates (–2.0 mm AP, –2.24 mm ML, 4.0 mm DV relative to bregma) with a 15° insertion angle. Neural spiking activity was simultaneously recorded across multiple brain regions, including the primary visual cortex (VISa), dentate gyrus (DG), hippocampal CA1 field (CA1), lateral posterior thalamic nucleus (LP), and posterior thalamic nucleus (PO), while mice performed a decision-making behavioral task. Within each experimental session, the first 90 trials presented stimuli with equal probability (5:5 ratio) on the left and right sides. Subsequently, the probability distribution of stimulus presentation alternated between biased conditions of 2:8 and 8:2 (left:right) ratios. Concurrently, stimulus contrast systematically varied among six levels (100%, 25%, 12%, 6%, and 0%), allowing for the assessment of neural responses across both probabilistic and perceptual dimensions of the task.

Data Selection Criteria: To ensure data reliability and reproducibility, we implemented a rigorous two-stage screening process. First, we applied session-level quality control based on the IBL’s standardized criteria [31]. Second, we performed trial-level filtering using the following exclusion criteria:

  1. Temporal Constraints: Trials with response times outside the 30 ms–1 s range or with wheel rotation durations exceeding 1 s were discarded to maintain consistent behavioral response dynamics.

  2. Behavioral Validity: Trials in which mice failed to make a choice or were presented with zero-contrast stimuli were excluded to ensure unambiguous behavioral responses and perceptual engagement.

  3. Minimum Trial Count: Sessions containing fewer than 250 trials were omitted to guarantee sufficient data for robust statistical modeling.

  4. Choice Balance: Sessions exhibiting strong directional bias (left/right choice proportions outside 45–55%) were excluded to prevent dataset imbalance.

These criteria were designed based on the statistical properties of murine decision-making behavior to maximize data quality and uniformity. After filtering, we retained 25 high-quality session datasets, each representing a unique mouse from different experimental cohorts (Fig 2 and Table 1).

Fig 2. |Session filtering process.

Fig 2

Table 1. Mouse information after pre-processing.

Animal Initial Trials Behavioral Validity Temporal Constraints
UCLA005 772 678 537
PL050 874 757 602
MFD_05 620 538 281
ZFM-02369 733 638 439
UCLA015 610 537 369
NR_0031 489 433 309
ibl_witten_29 663 575 426
CSHL058 626 551 407
CSHL051 510 448 312
DY_018 623 548 363
DY_013 434 385 284
NYU-45 505 454 255
KS094 490 438 311
SWC_052 658 577 313
NYU-26 1146 1010 721
NYU-37 414 375 286
CSHL052 812 710 500
SWC_058 695 611 328
UCLA037 580 503 388
ZFM-02372 452 398 305
KS023 641 564 430
ibl_witten_13 850 748 667
UCLA044 699 604 384
CSH_ZAD_019 1013 890 578
NR_0020 525 467 368

Data pre-processing: The choice of neural signal preprocessing strategy has a deterministic influence on neural activity analysis. Fig 3A illustrates the comparison between two distinct preprocessing methods for neural spike signals. The upper panel presents the time-interval-based preprocessing method, which quantifies neural activity by counting spike occurrences within fixed time intervals; the lower panel demonstrates the equal-segment-based preprocessing method, which uniformly divides decision times across different trials and calculates spike counts within each segment. Given the significant variations in decision times across trials, the equal-segment-based preprocessing method enables standardized dimensional representation across different trials, effectively mitigating interference from redundant information in model discrimination.

Fig 3. |Comparison of neural signal preprocessing methods and their impact on classification performance.

Fig 3

A, Comparison of neural signal preprocessing strategies: The upper panel illustrates the time-interval-based preprocessing method (quantifying spike counts within fixed time windows); the lower panel shows the equal-segment-based preprocessing method (dividing decision time uniformly across trials and calculating spike counts within each segment). Due to significant variations in decision times across trials, the equal-segment-based approach enables standardized dimensional representation of data from different trials, effectively minimizing interference from redundant information. B, Performance comparison of preprocessing methods: Scatter plot showing classification accuracy of the CA-BiLSTM model for individual mouse samples under different preprocessing approaches, with triangular markers indicating mean accuracy across all mice. Results demonstrate that the equal-segment-based preprocessing method yields significantly higher accuracy for the majority of samples, validating the effectiveness of the proposed preprocessing strategy.

To validate the performance differences between preprocessing methods, Fig 3B presents accuracy comparisons of both preprocessing strategies using the CA-BiLSTM model. Each data point represents the mean accuracy for an individual mouse sample, while triangular markers indicate the average accuracy across all mice. The results demonstrate that for the majority of mouse samples, the equal-segment-based preprocessing method achieved significantly higher accuracy compared to the time-interval-based approach, substantiating the efficacy of the preprocessing method proposed in this study (S1 Table).

Parameter settings: In this study, the model was trained for 50 iterative epochs, with an early termination criterion if the validation set’s loss value did not decrease for 10 consecutive iterations. ℓ2-norm regularization was employed to prevent overfitting. The initial learning rate was set to 0.001, and cosine annealing was used during training to adjust the learning rate, thus preventing convergence to local optima.

For data organization, neural activity data was arranged in a structured format where each sample consisted of spike counts from N neurons across T time segments within a single trial. Data batching was implemented with a mini-batch size of 128 trials, resulting in input tensors of shape [128, T, N] for each training iteration, where T=7 represents the number of equal time segments and N varies across mice depending on the number of recorded neurons. This batching approach ensures that the temporal dependencies within each trial are preserved while allowing efficient parallel processing across multiple trials. Within each batch, trials were randomly sampled from the training set to prevent any potential order-related biases.

A 5-fold cross-validation approach was utilized, and the average of the highest accuracy achieved on the validation sets across the folds was considered the final model accuracy. The detailed parameters of the specific model are shown in S2 Table.

Baseline model: The machine learning methods employed in this study include LR [32], DT [33], KNN [34], and GLM [35] models. These methods have been widely applied in the analysis of neural data [36]. Traditional machine learning methods necessitate the vectorization of input data, resulting in some loss of temporal information inherent in the mouse decision-making process. In terms of deep learning models, we utilized CNN and MLP models. The CNN model [37] comprises one-dimensional convolutional layers with varying kernel sizes, followed by feature concatenation to predict the mouse’s decision-making direction. Conversely, the MLP model [38] involves two fully connected layers for feature extraction before predicting the mouse’s decision-making direction. The hidden layer sizes in these deep learning models are consistent with those in the CA-BiLSTM network.

Result analysis: In our comprehensive performance evaluation, we fixed the number of segments at 7 and systematically compared the average accuracy and AUC performance across 25 mouse samples under different models, with each data point representing individual mouse accuracy and AUC metrics.Fig 4A results clearly demonstrate that deep learning methods substantially outperform traditional machine learning approaches, further confirming the significant advantages of non-linear deep learning methodologies in neural decision prediction tasks (S1 Fig). Further analysis reveals that the CA-BiLSTM model achieved average prediction accuracy and AUC of 79.6% and 82.8%, respectively, across all 25 mice, representing improvements of 0.8% and 1.1% compared to the CNN model. These findings robustly demonstrate that the CA-BiLSTM model effectively captures key neural spike features influencing mouse decision-making, while highlighting the practical value of CA-BiLSTM-extracted features for in-depth analysis of mouse decision-making behavior.

Fig 4. |Performance comparison of different models for neural decision prediction.

Fig 4

A. Bar chart comparing average accuracy and AUC metrics across different models for 25 mouse samples with 7 segments. Among them, the error bars represent the standard deviation of the accuracy rates across different mice. B. Comparative analysis of accuracy and AUC across different segment numbers for various algorithms.

Fig 4B presents comparative accuracy and AUC metrics for different algorithms across various segment number configurations. The results clearly indicate that deep learning methods significantly outperform traditional machine learning approaches across all segment number settings, suggesting that non-linear deep learning methods possess distinct advantages in neural decision prediction domains. Notably, the CA-BiLSTM model exhibits exceptional stability across different segment number configurations, consistently outperforming other algorithmic models in both accuracy and AUC—two critical performance indicators.

While theoretically increasing bin count provides finer temporal dynamic features, this relationship is not strictly monotonic due to several competing factors. First, as bin count increases, neural spike data within each bin becomes increasingly sparse, making it difficult to capture meaningful feature information between spikes. This sparsity introduces noise and reduces the signal-to-noise ratio in each time segment, potentially degrading model performance. We observe that machine learning methods show significant accuracy decline under these conditions.

Second, our binning operation evenly distributes decision time, representing an inherent trade-off in temporal dynamic feature representation. Too few bins may obscure important temporal patterns, while too many bins may disrupt coherent neural activity patterns. Fig 4B primarily demonstrates the robustness of our CA-BiLSTM method across different bin configurations, rather than determining an absolute optimal bin count. The choice of 7 bins represents a balanced compromise based on comprehensive testing across 2-10 segments, balancing temporal resolution and data sparsity issues.

Importantly, we observed that different mice exhibited different optimal bin counts, potentially reflecting individual differences in neural processing speed and decision dynamics. The 7-bin configuration typically provides good performance across the entire population while maintaining computational efficiency. The relative stability of performance across different bin counts proves the robustness of our method, especially for the CA-BiLSTM model, which maintains higher performance than comparative methods across all bin configurations. This stability suggests that our method effectively captures critical temporal dynamics even at moderate temporal resolutions.

Our model provides crucial support for retrospective analysis of decision-related neural activity in mice, which is of paramount importance for understanding perceptual decision-making processes. Within our methodological framework, the attention mechanism [39, 40] efficiently allocates differential weights to individual neurons, enabling us to precisely capture key neurons closely associated with mouse decision-making through the model’s attention mechanism. Previous research has established that mouse decision-making processes involve coordinated activity across multiple brain regions, with neurons from different areas contributing to varying degrees. By adaptively adjusting channel weights, the channel attention mechanism effectively determines the model’s focus on specific brain regions during prediction tasks. Accordingly, this study quantitatively evaluates the importance of different neurons using channel attention weights.

As illustrated in Fig 5, analysis of the validation set across five-fold cross-validation reveals highly consistent attention weight distributions for the same neurons across different cross-validation folds, providing compelling evidence for stable and robust associations between relevant brain regions and perceptual decision-making processes in mice. The magnitude of these weights directly reflects each neuron’s influence on the mouse’s perceptual decision-making process. The upper section of Fig 5 intuitively presents channel attention scores for the ibl_witten_29 mouse, quantitatively characterized through CA-BiLSTM channel attention weights, with values ranging from -1 to 1—higher values indicating stronger decision-related activity. This visualization clearly demonstrates each neuron’s relative importance in the decision-making process (S2 Fig).

Fig 5. |Neuronal attention weight distribution in mouse decision-making.

Fig 5

Visualization of attention mechanism outputs from the CA-BiLSTM model for the ibl_witten_29 mouse across five-fold cross-validation. Top: Distribution of attention weights for all neurons, with values from -1 to 1 indicating each neuron’s contribution to the decision-making process. Middle: Heatmap showing trial-specific attention weights for each neuron across the test set. Bottom: Mean positive attention weights across all test trials. The consistent weight distributions across five-fold cross-validation demonstrate the stability and reliability of the identified neural correlates.

Building upon this attention mechanism analysis, we further investigated performance trends in mouse decision prediction after attention score-based neuronal filtering, as shown in Fig 6. Fig 6A illustrates the brain region distribution of all neurons versus filtered neurons for the ibl_witten_29 mouse, indicating that perceptual decision-making is predominantly influenced by a select subset of critical neurons (S3 Fig). To validate this finding, we systematically compared Support Vector Machine with Radial Basis Function Kernel(SVM_RBF) model performance under different selection thresholds, which determined whether neurons were retained or excluded based on their attention scores—neurons with attention scores exceeding the threshold were retained, while others were excluded. As demonstrated in Fig 6, under all selection threshold conditions, the SVM_RBF model consistently achieved superior average accuracy when using neurons filtered through the CA-BiLSTM model’s attention mechanism compared to using all neurons or randomly selected neurons, robustly validating the effectiveness of the attention mechanism for neuronal selection.

Fig 6. |Attention-based neuronal filtering enhances decision prediction performance.

Fig 6

Error bars represent standard deviations; asterisks indicate significance levels (*P < 0.05, **P < 0.01, ***P < 0.001, two-tailed t-test). A. Brain region distribution comparison between all neurons and attention-filtered neurons for the ibl_witten_29 mouse, demonstrating that decision-making processes are driven by a specific subset of neurons. B. SVM_RBF model performance across different selection thresholds comparing three conditions: CA-BiLSTM attention-filtered neurons, randomly selected neurons, and all neurons. Attention-filtered neurons consistently yield superior prediction accuracy across all threshold values. C. Comparative performance analysis at 0.1 selection threshold across individual mouse samples. showing that CA-BiLSTM-selected neurons outperform randomly selected neurons and full neuronal ensembles in most cases, indicating that excluding irrelevant neural signals improves decision prediction accuracy. Among them, error bars represent the standard deviation of five fold cross validation.

Further analysis revealed that with the selection threshold set at 0.1, as shown in Fig 6C, neurons selected by the CA-BiLSTM model outperformed randomly selected neurons in the majority of individual mouse samples, highlighting the significant advantages of the attention mechanism in neuronal filtering. Notably, model accuracy was actually lower when inputs included all neuronal data compared to using only filtered neurons, confirming that substantial irrelevant neuronal information can interfere with accurate prediction of mouse decisions.

To comprehensively evaluate the effectiveness of attention-filtered neurons, we conducted in-depth analyses as presented in Fig 7. Fig 7A and 7B present validation results comparing different neuronal selection methods. We employed multiple approaches for neuronal selection—CA-BiLSTM, L1-regularized logistic regression (L1-LogReg) [41], L1-regularized multi-layer perceptron (L1-MLP) [42], analysis of variance (ANOVA) [43], and recursive feature elimination (RFE) [44]—and validated selection efficacy using SVM_RBF [45] (Fig 7A) and BiLSTM models (Fig 7B) as independent verification tools. The L1-LogReg method utilizes sparse regularization to automatically select features by compressing irrelevant feature weights to zero. L1-MLP extends this feature selection approach to nonlinear contexts through a single-hidden-layer perceptron with L1 penalty applied to input layer weights. ANOVA employs statistical significance-based filtering by computing F-statistics between individual neurons and output categories. RFE provides a model-based feature selection strategy through iterative training and removal of least important features using SVM classifiers.

Fig 7. |Analysis of attention-filtered neurons for decision prediction.

Fig 7

A,B. Comparative validation of different neuronal selection methods using (A) SVM_RBF and (B) BiLSTM models, with error bars representing standard deviations, showing CA-BiLSTM’s superior performance. C. Comparison of mouse reaction times and stimulus intensities between trials correctly predicted by our model versus incorrectly predicted trials, revealing that trials our model predicted correctly exhibited slightly longer mouse reaction times and were associated with higher stimulus intensities. The bottom right panel shows normalized counts (divided by the maximum count across all stimulus intensities) to enable visual comparison. D. Average attention scores across brain regions for all mice, highlighting the importance of DG, LP, and PPC regions in decision-making processes.

Importantly, these analyses serve as validation of our attention weights rather than direct evidence of our method’s superiority over alternatives. The SVM_RBF classifier was selected as a validation tool because it lacks temporal modeling capabilities—unlike our BiLSTM architecture—thereby providing an independent means to verify whether selected neurons contain decision-relevant information rather than being chosen due to model-specific architectural preferences. The inclusion of BiLSTM as a secondary validation tool (Fig 7B) further confirms that attention-selected neurons perform consistently across different model architectures. Results demonstrate that neurons filtered by the CA-BiLSTM attention mechanism outperformed those selected by other methods across all validation conditions, based on both accuracy and AUC metrics. This suggests that our attention mechanism captures more meaningful neural representations related to decision-making processes, rather than simply identifying arbitrary feature subsets that enhance model performance. These findings validate the effectiveness of our attention-based neuronal selection approach.

At the neuroethological level, Fig 7C presents a detailed analysis comparing mouse reaction times and stimulus intensities between trials that our model predicted correctly versus incorrectly. When examining reaction times across different stimulus contrasts, we observed that trials our model predicted correctly exhibited slightly longer mouse reaction times than trials predicted incorrectly at most contrast levels, with an average overall difference of 16 milliseconds (T-test p-value = 0.02). This pattern was particularly pronounced at intermediate contrast levels (e.g., 0.25), whereas the difference diminished at very low contrast (0.0625). Overall, reaction times for decisions were significantly shorter at higher contrast compared to lower contrast, suggesting that mice engaged in deliberative decision-making processes. Regarding stimulus intensity, higher contrast stimuli were associated with a greater proportion of trials correctly predicted by the model, with the fewest prediction errors observed at the highest contrast (1.0). This distribution aligns with expected behavioral outcomes, as higher contrast stimuli typically enable more accurate judgments by mice. These findings suggest that longer reaction times during decision-making may reflect more stable and information-rich neural activity patterns, providing our decoding model with enhanced interpretable signals.

Finally, Fig 7D displays average attention scores across different brain regions for all mice. Among the five brain regions of primary focus in the IBL dataset (CA1, PO, DG, LP and PPC), the DG, LP, CA1 and PPC regions demonstrated notable importance in the decision-making process [46–48], consistent with existing research findings. Interestingly, while these regions show moderate average attention scores in our analysis, some regions that were not primary targets of the IBL recordings (such as the Anterior Pretectal Nucleus (APN), Suprageniculate Nucleus (SGN), and Ventral Posteromedial Nucleus of the thalamus (VPM)) exhibited higher average attention scores. This apparent discrepancy warrants explanation: the primary focus regions (CA1, PO, DG, LP, PPC) were consistently recorded across nearly all mice and typically included larger populations of neurons, many of which had lower attention weights, thus reducing their average scores. In contrast, the non-primary regions were recorded in only a subset of mice and represented by fewer neurons, some of which happened to have very high attention weights, resulting in elevated average scores.

For analytical rigor and to focus on the most reliable findings, we prioritized our analysis on the five primary brain regions targeted by the IBL study, as these regions had sufficient neuronal sampling to draw meaningful conclusions. The high attention scores observed in some non-primary regions, while potentially interesting, should be interpreted with caution due to limited sample sizes and potential sampling biases. These preliminary observations regarding non-primary regions warrant further investigation in future studies specifically designed to examine their role in visual decision-making processes.

Fig 8 illustrates distinct patterns of behavioral performance and neural decoding under varying stimulus probability conditions (P(Left) = 0.2, 0.5, 0.8). Notably, response times (RTs) reveal a marked divergence across performance metrics. As shown in Fig 8A and 8B, when assessing the accuracy of mouse behavior, we observed contrasting temporal patterns: trials with correct perceptual judgments exhibited shorter RTs compared to incorrect judgments, with the most pronounced difference at P(Left) = 0.8. This classic speed-accuracy trade-off suggests that clearer stimulus information enables faster and more accurate responses in mice. In contrast, trials correctly predicted by our neural decoding model consistently showed longer RTs than incorrectly predicted trials, with the largest difference again at P(Left) = 0.8. This pattern indicates that extended deliberation time yields more robust and decodable neural activity, providing richer information for accurate model predictions. The contrasting temporal dynamics between neural decodability and behavioral accuracy highlight a fundamental distinction: while faster processing enhances behavioral outcomes in mice, slightly longer RTs facilitate more decodable neural activity.

Fig 8. |Behavioral performance and neural decoding across probability conditions.

Fig 8

Analysis of reaction times, accuracy, and model performance for different stimulus probability conditions (P(Left) = 0.2, 0.5, 0.8) in a perceptual decision-making task. A. Mean reaction times for behaviorally correct (blue) and behaviorally incorrect (orange) trials across probability conditions. B. Mean reaction times for model-predicted correct and model-predicted incorrect trials by probability condition. Significant differences between trial types are marked with asterisks. C. Model prediction accuracy across probability conditions. D. Neural decoder performance (ROC AUC) for each probability condition. E. Reaction time histograms overlaid by model prediction outcome and probability condition, showing distributional differences between model-predicted correct and incorrect responses.

Fig 8C demonstrates that model prediction accuracy is higher under extreme probability conditions (P(Left) = 0.2 and 0.8) compared to the balanced condition (P(Left) = 0.5). This aligns with expectations, as more predictable stimulus probabilities reduce decision uncertainty, thereby improving model accuracy. However, as shown in Fig 8D and 8E, no clear trends were observed across probability conditions, with performance remaining consistent, potentially due to limited overall data volume.

Discussion

This study presents a novel approach for decoding decision-making behavior from neural spike data using the CA-BiLSTM model. By analyzing the reproducible electrophysiology dataset from the International Brain Laboratory, we demonstrate that neural activity preceding decision-making can effectively predict mouse behavioral choices with high accuracy. Across 25 mice, our model achieved an average prediction accuracy of 79.6% and an AUC of 82.8%, significantly outperforming traditional machine learning approaches and comparable deep learning models.

The integration of a channel attention mechanism proved crucial for both performance enhancement and interpretability. This mechanism not only improved prediction accuracy by approximately 6-17% compared to conventional methods but also enabled the identification of decision-relevant neurons across multiple brain regions. Our analysis revealed that perceptual decision-making is predominantly influenced by specific neuronal subsets, with notable contributions from neurons in the DG, LP, and PPC regions. These findings align with previous studies that have implicated these regions in decision-making processes. For instance, Najafi et al. [49] highlighted the key role of PPC neurons in perceptual decisions, showing that decision-related selectivity emerges in this region during learning. Similarly, Hwang et al. [50] showed that the LP serves as a critical hub for visually guided decisions by relaying contextual information from higher visual areas to prefrontal regions.

Our observation that model performance improves when focusing on attention-filtered neurons compared to using all recorded neurons resonates with the concept of “sparse coding" in neural systems, as proposed by Olshausen and Field [51]. This principle suggests that information in the brain is encoded by the activity of a relatively small number of neurons at any given time, which maximizes efficiency and information capacity. Our findings provide empirical support for this theoretical framework in the context of decision-making, indicating that the brain may rely on specialized neuronal ensembles rather than distributed activity across all neurons in relevant regions.

The temporal dynamics revealed by our model also offer insights into how neural information unfolds during the decision-making process. The superiority of the equal-segment-based preprocessing method over fixed time intervals suggests that neural activity patterns scale with decision time, a phenomenon previously observed in primate studies by Jazayeri and Shadlen [52]. This temporal scaling property may represent a fundamental computational principle in perceptual decision-making across species.

Despite these advances, several limitations of our approach warrant critical examination. First, while our model achieves impressive predictive accuracy, it still falls short of perfect prediction, suggesting that either some decision-relevant neural signals were not captured by the recordings or that inherent stochasticity in decision-making processes limits prediction accuracy. This ceiling effect has been acknowledged in similar decoding studies [53] and represents a fundamental challenge in neural decoding.

Second, the cross-validation approach used in our study, while methodologically sound, does not test generalization across different sessions or animals. This limits our ability to claim that the identified neural patterns represent universal mechanisms rather than idiosyncratic features of particular recording sessions. Future work should explore more rigorous cross-session and cross-animal validation approaches, as advocated by Kriegeskorte et al. [54].

Third, our attention mechanism, while effective for feature selection, provides a static view of neural importance that may not capture the dynamic nature of decision processes. Recent work by Stokes et al. [55] suggests that neural representations evolve dynamically throughout the decision process, with different neurons becoming relevant at different stages. Future models could incorporate temporal attention mechanisms to address this limitation.

Fourth, the binary nature of the decision task in our study (left vs. right) represents a simplified version of real-world decisions, which often involve multiple alternatives and complex value calculations. As highlighted by Rushworth et al. [56], value-based decision-making engages additional neural circuitry beyond what is required for simple perceptual decisions. Extending our approach to more complex decision paradigms would provide a more comprehensive understanding of neural decision mechanisms.

Finally, while our model identifies correlations between neural activity and subsequent decisions, it does not establish causal relationships. Complementary approaches involving targeted neural manipulation, such as optogenetics or pharmacological interventions, would be necessary to establish the causal role of the identified neurons in decision-making, as demonstrated in recent studies by Hanks et al. [57].

Future research directions include the development of more comprehensive brain-wide attention networks to investigate how neurons across various brain regions collectively influence decision-making. Recent advances in whole-brain imaging and high-density recording techniques, as reviewed by Jun et al. [58], provide exciting opportunities for such expansive neural decoding. Additionally, incorporating real-time neural decoding into closed-loop experimental designs, as proposed by Grosenick et al. [59], could enable novel interventional studies to test hypotheses about decision-making circuits.

The methodological advances presented in our study also have potential applications beyond basic neuroscience. Similar approaches could be adapted for brain-computer interfaces to restore movement or communication in paralyzed individuals, building upon recent successes in neural prosthetics [60]. Additionally, our method for identifying decision-relevant neurons could inform targeted therapeutic approaches for disorders involving decision-making deficits, such as addiction or obsessive-compulsive disorder.

In conclusion, our CA-BiLSTM model with channel attention provides both a powerful tool for neural decoding and meaningful insights into the neural substrates of perceptual decision-making. By bridging machine learning techniques with neuroscientific questions, we advance our understanding of how distributed neural activity gives rise to discrete behavioral choices. Future work combining these computational approaches with expanded datasets and causal manipulation techniques promises to further elucidate the neural basis of decision-making across species and contexts.

Supporting information

S1 Table. Comparison of accuracy and AUC for different time windows.

(XLSX)

pcbi.1013335.s001.xlsx (13.4KB, xlsx)
S2 Table. Models’ parameter settings.

(XLSX)

pcbi.1013335.s002.xlsx (13.8KB, xlsx)
S1 Fig. Loss diagram of five-fold cross-validation for partial mice.

(TIF)

pcbi.1013335.s003.tif (29.3MB, tif)
S2 Fig. Neuronal attention weight distribution during mouse decision-making process in partial mice.

(TIF)

pcbi.1013335.s004.tif (50.4MB, tif)
S3 Fig. Comparison of brain region distribution between all neurons and attention-filtered neurons in partial mice.

(TIF)

pcbi.1013335.s005.tif (52.5MB, tif)
S4 Fig. Accuracy and ROC AUC performance of CA-BiLSTM model on class-imbalanced mice.

(TIF)

pcbi.1013335.s006.tif (2.4MB, tif)

Data Availability

Reproducible electrophysiology dataset provided by the IBL are available at https://int-brain-lab.github.io/iblenv/notebooks_external/data_release_repro_ephys.html. All data and code used for running experiments, model fitting, and plotting is available on a GitHub repository at https://github.com/ZhangYH321/CA-BiLSTM/tree/master.

Funding Statement

This work was supported in part by the National Key Research and Development Project of China (2022YFF1202900 to SW), in part by the Young Elite Scientist Sponsorship Program of China Association for Science and Technology (YESS20240994AE to TS), in part by the National Natural Science Foundation of China (62401331 to SW; 62303262 to SW; 62088102 to SW; U21B2013 to SW), in part by the Beijing Nova Program (2021B00003292 to SW; 20220484216 to SW), in part by the National Key Research and Development Project of China (2023YFC2415600 to SW), and in part by the MOST (2020AA0105500 to SW; 2022YFF1202904 to SW). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

References

  • 1.Wang DZ, Schwamm LH, Qian T, Dai Q. Decoding the brain through research-the future of brain health. BMJ. 2020;371:m3735. doi: 10.1136/bmj.m3735 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Konaka Y, Naoki H. Decoding reward-curiosity conflict in decision-making from irrational behaviors. Nat Comput Sci. 2023;3(5):418–32. doi: 10.1038/s43588-023-00439-w [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Ashwood ZC, Roy NA, Stone IR, International Brain Laboratory, Urai AE, Churchland AK, et al. Mice alternate between discrete strategies during perceptual decision-making. Nat Neurosci. 2022;25(2):201–12. doi: 10.1038/s41593-021-01007-z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Gherman S, Markowitz N, Tostaeva G, Espinal E, Mehta AD, O’Connell RG, et al. Intracranial electroencephalography reveals effector-independent evidence accumulation dynamics in multiple human brain regions. Nat Hum Behav. 2024;8(4):758–70. doi: 10.1038/s41562-024-01824-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Wang D, Liang S. Dynamic causal modeling on the identification of interacting networks in the brain: A systematic review. IEEE Trans Neural Syst Rehabil Eng. 2021;29:2299–311. doi: 10.1109/TNSRE.2021.3123964 [DOI] [PubMed] [Google Scholar]
  • 6.Di Luzio P, Tarasi L, Silvanto J, Avenanti A, Romei V. Human perceptual and metacognitive decision-making rely on distinct brain networks. PLoS Biol. 2022;20(8):e3001750. doi: 10.1371/journal.pbio.3001750 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Lang L, La Camera G, Fontanini A. Temporal progression along discrete coding states during decision-making in the mouse gustatory cortex. PLoS Comput Biol. 2023;19(2):e1010865. doi: 10.1371/journal.pcbi.1010865 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Viswanathan P, Stein AM, Nieder A. Sequential neuronal processing of number values, abstract decision, and action in the primate prefrontal cortex. PLoS Biol. 2024;22(2):e3002520. doi: 10.1371/journal.pbio.3002520 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Shadlen MN, Kiani R. Decision making as a window on cognition. Neuron. 2013;80(3):791–806. doi: 10.1016/j.neuron.2013.10.047 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Churchland AK, Kiani R, Chaudhuri R, Wang X-J, Pouget A, Shadlen MN. Variance as a signature of neural computations during decision making. Neuron. 2011;69(4):818–31. doi: 10.1016/j.neuron.2010.12.037 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Britten KH, Newsome WT, Shadlen MN, Celebrini S, Movshon JA. A relationship between behavioral choice and the visual responses of neurons in macaque MT. Vis Neurosci. 1996;13(1):87–100. doi: 10.1017/s095252380000715x [DOI] [PubMed] [Google Scholar]
  • 12.Platt ML. Neural correlates of decisions. Curr Opin Neurobiol. 2002;12(2):141–8. doi: 10.1016/s0959-4388(02)00302-1 [DOI] [PubMed] [Google Scholar]
  • 13.Pisauro MA, Fouragnan E, Retzler C, Philiastides MG. Neural correlates of evidence accumulation during value-based decisions revealed via simultaneous EEG-fMRI. Nat Commun. 2017;8:15808. doi: 10.1038/ncomms15808 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Bahl A, Engert F. Neural circuits for evidence accumulation and decision making in larval zebrafish. Nat Neurosci. 2020;23(1):94–102. doi: 10.1038/s41593-019-0534-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Myers CE, Interian A, Moustafa AA. A practical introduction to using the drift diffusion model of decision-making in cognitive psychology, neuroscience, and health sciences. Front Psychol. 2022;13:1039172. doi: 10.3389/fpsyg.2022.1039172 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Fudenberg D, Newey W, Strack P, Strzalecki T. Testing the drift-diffusion model. Proc Natl Acad Sci U S A. 2020;117(52):33141–8. doi: 10.1073/pnas.2011446117 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Deco G, Rolls ET, Albantakis L, Romo R. Brain mechanisms for perceptual and reward-related decision-making. Prog Neurobiol. 2013;103:194–213. doi: 10.1016/j.pneurobio.2012.01.010 [DOI] [PubMed] [Google Scholar]
  • 18.Raposo D, Kaufman MT, Churchland AK. A category-free neural population supports evolving demands during decision-making. Nat Neurosci. 2014;17(12):1784–92. doi: 10.1038/nn.3865 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Yang W, Tipparaju SL, Chen G, Li N. Thalamus-driven functional populations in frontal cortex support decision-making. Nat Neurosci. 2022;25(10):1339–52. doi: 10.1038/s41593-022-01171-w [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Zhao J, Zhang W, Wang JH, Li W, Lei C, Chen G, et al. Decision-making selector (DMS) for integrating CCA-based methods to improve performance of SSVEP-based BCIs. IEEE Trans Neural Syst Rehabil Eng. 2020;28(5):1128–37. doi: 10.1109/TNSRE.2020.2983275 [DOI] [PubMed] [Google Scholar]
  • 21.Neubert F-X, Mars RB, Sallet J, Rushworth MFS. Connectivity reveals relationship of brain areas for reward-guided learning and decision making in human and monkey frontal cortex. Proc Natl Acad Sci U S A. 2015;112(20):E2695-704. doi: 10.1073/pnas.1410767112 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Coen P, Sit TPH, Wells MJ, Carandini M, Harris KD. Mouse frontal cortex mediates additive multisensory decisions. Neuron. 2023;111(15):2432-2447.e13. doi: 10.1016/j.neuron.2023.05.008 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Findling C, Hubert F, Acerbi L, Benson B, Benson J. Brain-wide representations of prior information in mouse decision-making. BioRxiv. 2023:2023–07. [DOI] [PMC free article] [PubMed]
  • 24.Di Luzio P, Tarasi L, Silvanto J, Avenanti A, Romei V. Human perceptual and metacognitive decision-making rely on distinct brain networks. PLoS Biol. 2022;20(8):e3001750. doi: 10.1371/journal.pbio.3001750 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Svoboda K, Li N. Neural mechanisms of movement planning: Motor cortex and beyond. Curr Opin Neurobiol. 2018;49:33–41. doi: 10.1016/j.conb.2017.10.023 [DOI] [PubMed] [Google Scholar]
  • 26.Allen WE, Chen MZ, Pichamoorthy N, Tien RH, Pachitariu M, Luo L, et al. Thirst regulates motivated behavior through modulation of brainwide neural population dynamics. Science. 2019;364(6437):253. doi: 10.1126/science.aav3932 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Stringer C, Pachitariu M, Steinmetz N, Reddy CB, Carandini M, Harris KD. Spontaneous behaviors drive multidimensional, brainwide activity. Science. 2019;364(6437):255. doi: 10.1126/science.aav7893 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Moerel D, Rich AN, Woolgar A. Selective attention and decision-making have separable neural bases in space and time. J Neurosci. 2024;44(38):e0224242024. doi: 10.1523/JNEUROSCI.0224-24.2024 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Kucukosmanoglu M, Garcia JO, Brooks J, Bansal K. Cognitive networks and performance drive fMRI-based state classification using DNN models. arXiv preprint arXiv:240900003; 2024. [DOI] [PMC free article] [PubMed]
  • 30.Hou Y, Jia S, Lun X, Zhang S, Chen T, Wang F. Deep feature mining via attention-based BiLSTM-GCN for human motor imagery recognition. In: 2020. doi: arXiv:200500777 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Laboratory IB, Banga K, Benson J, Bonacchi N, Bruijns SA, Campbell R. Reproducibility of in-vivo electrophysiological measurements in mice. bioRxiv. 2022:2022–05. [DOI] [PMC free article] [PubMed]
  • 32.International Brain Laboratory, Aguillon-Rodriguez V, Angelaki D, Bayer H, Bonacchi N, Carandini M, et al. Standardized and reproducible measurement of decision-making in mice. Elife. 2021;10:e63711. doi: 10.7554/eLife.63711 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Bastos NS, Adamatti DF, Billa CZ. Discovering patterns in brain signals using decision trees. Comput Intell Neurosci. 2016;2016:6391807. doi: 10.1155/2016/6391807 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Mohammed A, Zamani M, Bayford R, Demosthenous A. Toward on-demand deep brain stimulation using online Parkinson’s disease prediction driven by dynamic detection. IEEE Trans Neural Syst Rehabil Eng. 2017;25(12):2441–52. doi: 10.1109/TNSRE.2017.2722986 [DOI] [PubMed] [Google Scholar]
  • 35.Gercek B, Meijer G, Benson B, Schaeffer R, Findling C, Banga K, et al. Neural correlates of an approximate prior in perceptual decision making. In: 50th Annual Meeting of the Society for Neuroscience (Neuroscience 2021); 2021.
  • 36.Saeedi S, Rezayi S, Keshavarz H, R Niakan Kalhori S. MRI-based brain tumor detection using convolutional deep learning methods and chosen machine learning techniques. BMC Med Inform Decis Mak. 2023;23(1):16. doi: 10.1186/s12911-023-02114-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Phan H, Andreotti F, Cooray N, Chen OY, De Vos M. Joint classification and prediction CNN framework for automatic sleep stage classification. IEEE Trans Biomed Eng. 2019;66(5):1285–96. doi: 10.1109/TBME.2018.2872652 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Ahmad F, Ahmad I, Dar WM. Identification and classification of voxels of human brain for rewardless-related decision making using ANN technique. Neural Comput Appl. 2016;28(S1):1035–41. doi: 10.1007/s00521-016-2413-6 [DOI] [Google Scholar]
  • 39.Su E, Cai S, Xie L, Li H, Schultz T. STAnet: A spatiotemporal attention network for decoding auditory spatial attention from EEG. IEEE Trans Biomed Eng. 2022;69(7):2233–42. doi: 10.1109/TBME.2022.3140246 [DOI] [PubMed] [Google Scholar]
  • 40.Qiao C, Chen X, Zhang S, Li D, Guo Y, Dai Q, et al. 3D Structured illumination microscopy via channel attention generative adversarial network. IEEE J Select Topics Quantum Electron. 2021;27(4):1–11. doi: 10.1109/jstqe.2021.3060762 [DOI] [Google Scholar]
  • 41.Islam R, Mazumdar S, Islam R. An experiment on feature selection using logistic regression. In: 2024 5th information communication technologies conference (ICTC); 2024. p. 319–24. 10.1109/ictc61510.2024.10602330 [DOI]
  • 42.Mohammadi M. A new discrete-time neural network for quadratic programming with general linear constraints. Neurocomputing. 2021;424:107–16. doi: 10.1016/j.neucom.2019.11.028 [DOI] [Google Scholar]
  • 43.Raufi B, Longo L. Comparing ANOVA and powershap feature selection methods via shapley additive explanations of models of mental workload built with the theta and alpha EEG band ratios. BioMedInformatics. 2024;4(1):853–76. doi: 10.3390/biomedinformatics4010048 [DOI] [Google Scholar]
  • 44.Dip MSS, Motin MA, Hasan MA, Kabir S. Optimized feature selection and neural network-based classification of motor imagery using EEG signals. arXiv preprint. 2025. 10.48550/arXiv.250403984 [DOI]
  • 45.Song S, Zhan Z, Long Z, Zhang J, Yao L. Comparative study of SVM methods combined with voxel selection for object category classification on fMRI data. PLoS One. 2011;6(2):e17191. doi: 10.1371/journal.pone.0017191 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Turk-Browne NB. The hippocampus as a visual area organized by space and time: A spatiotemporal similarity hypothesis. Vision Res. 2019;165:123–30. doi: 10.1016/j.visres.2019.10.007 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Roth MM, Dahmen JC, Muir DR, Imhof F, Martini FJ, Hofer SB. Thalamic nuclei convey diverse contextual information to layer 1 of visual cortex. Nat Neurosci. 2016;19(2):299–307. doi: 10.1038/nn.4197 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Harvey CD, Coen P, Tank DW. Choice-specific sequences in parietal cortex during a virtual-navigation decision task. Nature. 2012;484(7392):62–8. doi: 10.1038/nature10918 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Najafi F, Elsayed GF, Cao R, Pnevmatikakis E, Latham PE, Cunningham JP, et al. Excitatory and inhibitory subnetworks are equally selective during decision-making and emerge simultaneously during learning. Neuron. 2020;105(1):165-179.e8. doi: 10.1016/j.neuron.2019.09.045 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Hwang EJ, Link TD, Hu YY, Lu S, Wang EH-J, Lilascharoen V, et al. Corticostriatal flow of action selection bias. Neuron. 2019;104(6):1126-1140.e6. doi: 10.1016/j.neuron.2019.09.028 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Olshausen BA, Field DJ. Sparse coding of sensory inputs. Curr Opin Neurobiol. 2004;14(4):481–7. doi: 10.1016/j.conb.2004.07.007 [DOI] [PubMed] [Google Scholar]
  • 52.Jazayeri M, Shadlen MN. Temporal context calibrates interval timing. Nat Neurosci. 2010;13(8):1020–6. doi: 10.1038/nn.2590 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Pillow JW, Shlens J, Paninski L, Sher A, Litke AM, Chichilnisky EJ, et al. Spatio-temporal correlations and visual signalling in a complete neuronal population. Nature. 2008;454(7207):995–9. doi: 10.1038/nature07140 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Kriegeskorte N, Simmons WK, Bellgowan PSF, Baker CI. Circular analysis in systems neuroscience: The dangers of double dipping. Nat Neurosci. 2009;12(5):535–40. doi: 10.1038/nn.2303 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 55.Stokes MG, Kusunoki M, Sigala N, Nili H, Gaffan D, Duncan J. Dynamic coding for cognitive control in prefrontal cortex. Neuron. 2013;78(2):364–75. doi: 10.1016/j.neuron.2013.01.039 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56.Rushworth MFS, Noonan MP, Boorman ED, Walton ME, Behrens TE. Frontal cortex and reward-guided learning and decision-making. Neuron. 2011;70(6):1054–69. doi: 10.1016/j.neuron.2011.05.014 [DOI] [PubMed] [Google Scholar]
  • 57.Hanks TD, Kopec CD, Brunton BW, Duan CA, Erlich JC, Brody CD. Distinct relationships of parietal and prefrontal cortices to evidence accumulation. Nature. 2015;520(7546):220–3. doi: 10.1038/nature14066 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Jun JJ, Steinmetz NA, Siegle JH, Denman DJ, Bauza M, Barbarits B, et al. Fully integrated silicon probes for high-density recording of neural activity. Nature. 2017;551(7679):232–6. doi: 10.1038/nature24636 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 59.Grosenick L, Marshel JH, Deisseroth K. Closed-loop and activity-guided optogenetic control. Neuron. 2015;86(1):106–39. doi: 10.1016/j.neuron.2015.03.034 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60.Willett FR, Avansino DT, Hochberg LR, Henderson JM, Shenoy KV. High-performance brain-to-text communication via handwriting. Nature. 2021;593(7858):249–54. doi: 10.1038/s41586-021-03506-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
PLoS Comput Biol. doi: 10.1371/journal.pcbi.1013335.r001

Decision Letter 0

Daniele Marinazzo

5 Dec 2024

PCOMPBIOL-D-24-01470

Decoding Decision-Making Behavior from Sparse Neural Spiking Activity

PLOS Computational Biology

Dear Dr. Zhang,

Thank you for submitting your manuscript to PLOS Computational Biology. First of all apologies for the longish time elapsed from the submission, your work fell in the long tail of the distribution of time required to secure editors and reviewers. After careful consideration, we feel that it has merit but does not fully meet PLOS Computational Biology's publication criteria as it currently stands, in particular regarding the quality of presentation, the level of detail given to the reader, and the positioning of your results in the state of the art. Therefore, we invite you to submit a substantially revised version of the manuscript that addresses the points raised during the review process.

​Please submit your revised manuscript within 60 days Feb 04 2025 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at ploscompbiol@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pcompbiol/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

* A rebuttal letter that responds to each point raised by the editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'. This file does not need to include responses to formatting updates and technical items listed in the 'Journal Requirements' section below.

* A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

* An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, competing interests statement, or data availability statement, please make these updates within the submission form at the time of resubmission. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter

We look forward to receiving your revised manuscript.

Kind regards,

Daniele Marinazzo

Section Editor

PLOS Computational Biology

Feilim Mac Gabhann

Editor-in-Chief

PLOS Computational Biology

Jason Papin

Editor-in-Chief

PLOS Computational Biology

Journal Requirements:

1) Please ensure that the CRediT author contributions listed for every co-author are completed accurately and in full.

At this stage, the following Authors/Authors require contributions: Yuhang Zhang, Tao Sun, Boyang Zang, and Sen Wan. Please ensure that the full contributions of each author are acknowledged in the "Add/Edit/Remove Authors" section of our submission form.

The list of CRediT author contributions may be found here: https://journals.plos.org/ploscompbiol/s/authorship#loc-author-contributions

2) Your manuscript is missing the following sections: Discussion.  Please ensure all required sections are present and in the correct order. Make sure section heading levels are clearly indicated in the manuscript text, and limit sub-sections to 3 heading levels. An outline of the required sections can be consulted in our submission guidelines here:

https://journals.plos.org/ploscompbiol/s/submission-guidelines#loc-parts-of-a-submission

3) Please upload all main figures as separate Figure files in .tif or .eps format. For more information about how to convert and format your figure files please see our guidelines:

https://journals.plos.org/ploscompbiol/s/figures

4) We have noticed that you have uploaded Supporting Information files, but you have not included a list of legends. Please add a full list of legends for your Supporting Information files after the references list.

5) We notice that your supplementary Figures are included in the manuscript file. Please remove them and upload them with the file type 'Supporting Information'. Please ensure that each Supporting Information file has a legend listed in the manuscript after the references list.

6) Some material included in your submission may be copyrighted. According to PLOSu2019s copyright policy, authors who use figures or other material (e.g., graphics, clipart, maps) from another author or copyright holder must demonstrate or obtain permission to publish this material under the Creative Commons Attribution 4.0 International (CC BY 4.0) License used by PLOS journals. Please closely review the details of PLOSu2019s copyright requirements here: PLOS Licenses and Copyright. If you need to request permissions from a copyright holder, you may use PLOS's Copyright Content Permission form.

Please respond directly to this email and provide any known details concerning your material's license terms and permissions required for reuse, even if you have not yet obtained copyright permissions or are unsure of your material's copyright compatibility. Once you have responded and addressed all other outstanding technical requirements, you may resubmit your manuscript within Editorial Manager.

Potential Copyright Issues:

- Figure 1; Please confirm whether you drew the images / clip-art within the figure panels by hand. If you did not draw the images, please provide a link to the source of the images or icons and their license / terms of use; or written permission from the copyright holder to publish the images or icons under our CC BY 4.0 license. Alternatively, you may replace the images with open source alternatives. See these open source resources you may use to replace images / clip-art:

- https://commons.wikimedia.org

- https://openclipart.org/.

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: The study proposes a novel decision-making decoding model, the Channel Attention Bi-directional Long Short-Term Memory network (CA-BiLSTM), designed to decode sparse neural spike data from multiple brain regions and predict animal decision-making behavior. The model integrates an attention mechanism to identify neurons and brain regions critical to task performance. The application to neural spike data from the International Brain Laboratory (IBL) dataset highlights its ability to forecast decision-making behavior in mice, offering a new approach to understanding neural decision-making processes.

Strengths

1. Attention Mechanism Integration: The inclusion of a channel attention mechanism represents an innovative approach to pinpointing relevant neurons and brain regions contributing to decision-making stability. This could be an important step toward interpretable models in neuroscience.

2. Application to Reproducible Data: The use of the IBL dataset, a well-documented and reproducible resource, ensures the results are transparent and can be verified by other researchers.

3. Improved Prediction: The CA-BiLSTM model successfully demonstrates its capacity to predict decision-making behavior, validating the effectiveness of combining spike data from multiple brain regions with attention-based sequence modeling.

Main points:

1. Superiority Over Simpler Models is Unclear: While the attention mechanism is stated to improve localization of task-relevant neurons and regions, its advantage over simpler model selection techniques (e.g., feature selection or regularized regression models) is not convincingly demonstrated. The dynamic nature of the attention mechanism’s contribution to overall model performance remains vague.

2. Neglect of Fine Temporal Spike Patterns: The model’s approach to partitioning spike data appears to overlook the fine-grained temporal structure of spike trains, which may encode critical decision-making information. By treating partitions coarsely, the model risks discarding temporal dynamics that could provide deeper insights into the neural code underlying behavior.

3. Marginal Improvement Over Baselines: The improvement of the CA-BiLSTM over other methods, such as convolutional neural networks (CNNs), is marginal. This raises questions about the utility of the additional complexity introduced by the CA-BiLSTM framework.

4. Limited Insight into Decision-Making: While the attention mechanism highlights important neurons and brain regions, it remains unclear what new insights this approach provides into decision-making processes. The conclusion that some neurons or regions are more important than others is already well-established in neuroscience.

5. Handling of Spike Train Sparseness: The study highlights the sparseness of spike trains as a challenge in its introduction and title but fails to clearly articulate how this issue is addressed. The partitioning of data, as described, appears equivalent to coarse binning.

Summary

The CA-BiLSTM framework presents an interesting and potentially valuable approach to decoding decision-making from neural spike data, particularly through its integration of an attention mechanism. However, the study’s claims are undermined by unclear advantages over simpler methods, limited utilization of temporal information, and marginal performance improvements. Additionally, the handling of sparse spike data is not adequately addressed. Addressing these issues would significantly strengthen the study’s contributions to the field of neuroscience.

Reviewer #2: Disclaimer: I have formatted the text as markdown. Feel free to render it as such in your preferred editor.

The article proposes a recurrent network architecture endowed with a novel attention mechanism in order to decode mice choice behaviour from spiking neural data across multiple brain areas. The model outperforms other models, both linear and non-linear, and traditional vs ANN (artificial neural network) based, previously used for similar goals. The attention mechanism also allows to identify a posteriori which are the neurons that participate more in the decoding for each mouse, which could be used to identify candidate important circuits necessary for the particular computations that the animals are performing.

## Structural comments

Before pointing out specific comments about the scientific content of the manuscript, I feel obliged to mention a few high level comments regarding its structure:

- The discussion (or conclusions, as the authors write) is very short with just 2 paragraphs, and the first one being a summary of the findings. I think there are many important nuances (as I will get into later) that could have been discussed, but the second paragraph just discusses things without much substance about the paper.

- The supporting information is very lacking. There was only one supplementary figure that I could find, with an *incorrect* caption, which is a copy of Figure 3's (but the figure itself is more like Figure 5 for each mice). There are many details that could have been provided, and which also I will elaborate on further.

From the get-go, these two structural concerns undermine my confidence on the quality of the work that is being presented.

## General comments

The exercise of decoding behaviour from neural activity is not a new one. The novelty in this study is mainly the addition of an attention module to a recurrent architecture (biLSTM) in order to predict choice from spiking data. This has the potential to reveal which neurons are more relevant to decode choice, and in turn establish hypotheses about identifying decision-relevant circuits. However, I believe the authors should provide stronger evidence that this is indeed the case, and that the novelty and value of this idea warrants publication in this journal.

I shall cover now the points that I think that should be considered to this end.

### Model architecture

I would have liked to see some more justification to motivate the architecture of the attention module. In particular, the outputs of the AvgPool and MaxPool operation is fed to an MLP of a certain size. I couldn't even find the details of the size chosen, but why this one? How was this hyperparameter selection done? Also, the pooling operations are indicated to be done 'along the time dimension'. Does this include both time along the trial, and trial number? The output E_c seems to be of size 1xN, where N is the number of neurons (is it? N is not properly defined). I can't find information about the trial dimension. How is the data batched? All this is crucial to then understand the implications of the selection on neurons based on attention weights later on. This part needs to be very clear, and for me at least, at the moment it isn't.

### Data processing

Going now first into trial selection, the 'screening criteria' imposed seem to be quite strict. In the end only 13 sessions of 13 mice survive the process, out of 82 initial mice recording sessions, as per the IBL paper following their exclusion criteria (121 originally). I think it is important that the authors indicate the percentage of sessions that gets discarded in each step, and if it's high they justify the reasons for the thresholds they considered. For instance, how sensitive were the results to the threshold for the minimum number of trials per session? How about the bias criterion? Perhaps using AUC (Area under the ROC curve) instead of classification accuracy to quantify the performance of the model would have allowed to be laxer in terms of class imbalance. Or the data could have been subsampled to balance the classes.

Then, regarding the pre-processing and binning of spike times, I think this is an important step that raises some questions. The choice of the 'segmentation method' is surprising, given the disparity of reaction times (RTs) in the data. The authors show a high correlation between the performance of the chosen segmentation and that of traditional fix window binning of 30ms, with the former slightly outperforming the later. Was the 30ms size the best possible one? It so, it should be stated. The segmentation method leaves me with some doubts, because it assumes some implicit temporal scaling of neural activity, but I don't see why this would be the case. A good sanity check would be to show that, given this segmentation, the model doesn't perform much worse on trials with long reaction times compared with short reaction time ones, which are the predominant type. The whole speed-accuracy tradeoff in the task seems challenging to be reproduced with this selection.

### Task

The IBL task is by now a well stablished experimental paradigm, and it has some special features that are important, but that the authors did not mention. In particular, after the first 90 trials, the trials follow a blocked fashion in which the probability of presentation of the stimulus in one side is higher than the other. There are also different stimuli contrasts, and additional, variability in the RT from trial to trial. Ideally, all of these features could have been taken into account to test in more detail the robustness and performance of the model.

Particularly, rather than just focus on the choice prediction accuracy, it would be interesting to also see what happens when the model misclassifies a trial. Do those classification errors correspond predominantly to difficult trials, or to trials with a particular RT range? Additionally, does the model make the same type of mistakes as the animals, given the stimulus? This would add deeper insight into the value of the model besides a single, global accuracy score that is a few percent higher than that of, for instance, a MLP.

### Attention mechanism

The last third of the manuscript is employed to assess the worth of the proposed attention mechanism in order to determine the impact of different neurons to the mice decisions. The strategy employed consists on ranking the neurons by their attention weight or score, and then training a *different* model architecture without an attention mechanism, in order to show that using the neurons with higher attention weight improves the classification performance as opposed to the same number of randomly selected neurons, or all the neurons. I see this as a valid sanity check, but it is hardly surprising. If the attention model is trained successfully, how could it have been otherwise? Furthermore, I don't understand why the test was performed on a support vector machine, instead of the same BiLSTM architecture just without the attention mechanism. No justification whatsoever is given for this.

The attention mechanism is not the only way to perform feature extraction in ML models. The authors could consider comparing it to simpler methods. For instance, it could be compared with an MLP with L1 regularization in the input weights, which would be a form of context-independent feature selection. After all, the crucial aspect of the attention mechanism is that it's dynamic and adaptive. Hence, the dynamic aspect should be tested and contrasted with a non-dynamic method. Another strategy could be to leverage the task blocks, and to train the model in only one of the block types and test in the other, repeating then the procedure with the opposite type. How does the performance degrade? Are there block specific neurons that are sensitive to the bias? Finally, the attention mechanism could be validated with ground-truth simulated data, perhaps using a Poisson-GLM where one can choose the particular weights of each neuron towards the choice.

Finally, something surprisingly lacking is the combined assessment of the distribution of "important" neurons across brain areas and mice. Are these neurons predominantly located in areas previously identified as decision relevant? All that is shown is distributions for an example mouse from the Witten lab, that doesn't particularly conform to the expectations of distribution of important areas that was primed before as decision relevant, such as LP and PPC (this animal has only 2 PPC neurons, and none of them are selected by the attention mechanism). I believe showing this distribution across mice is crucial to further validate the proposed attention mechanism and position it as a competitive tool to retrospectively identify task relevant neurons.

## Detailed comments

Now, I will refer to more specific comments regarding details in the text.

- Consider replacing words such as "linchpin" and "winnowing" by simpler words (lines 11 and 51).

- Line 60: "preceding decision-making tasks" do you mean "preceding decisions"?

- Lines 61, 78: decision making "direction" - the task hasn't been introduced yet, so "direction" should be avoided here because it's not obvious what it means, rather use "action".

- Lines 72-76: I don't fully get why the "pulse data" is emphasized here, since the spikes are eventually binned. It's not like the raw ephys signal is taken as input.

- Lines 81-83: This is largely repeated, was said already in lines 68-70.

- Line 97: "maintain a time-step memory at time step t". This is confusing, do you mean "a one-time-step memory"?

- Line 119: Consider rewording, performing inference or evidence accumulation is not equivalent to being "constantly contemplating their decision-making"

- Line 121: I disagree with the choice of words "instinctively" and "conscious". For the first, I would rather use "impusively", and the second incorrectly suggests a conscious experience during evidence accumulation.

- Line 122: This needs clarification.

- Line 136: "the form of the algorithm" replace by "algorithmic form".

- Task description: there is no mention of the block structure of the task, the fact that there are different contrasts, or that the task is a reaction time task such that the animals control the duration of the stimulus.

- Table 1: Number of good "nuerons".

- Line 199: Avoid repeating "decision-making times".

- Line 222: "resulting some loss of temporal information" - given that the spike counts are binned in a few segments, is it really the case?

- Fig. 3: "under different segmentation" - missing schemes?

- Line 242: How was the significance assessed? You must report this.

- Fig. 4: Missing y label in a).

- Fig 5: The caption in this figure needs to be clarified. What is the score value? Also it says "nueron" ibl_witten_29

- Line 264: Missing figure?

- Line 266: "consistent with the current research findings" - do you mean your findings? This hasn't been shown.

- Line 282: Again, why the SVM and not a biLSTM?

- Line 290: What exactly is the selection threshold apply onto? This has not been explained.

- Fig. 6: brain "eegion". Also filtering threshold of "0. 1" (extra space). Also the caption should indicate which of the pie charts corresponds to what.

- Fig 7: this is the first time that it's said what "SVM_RBF" means.

**Supplementary information**

The SI should include the following:

- Further details about the model architectures, including the different models shown in Fig. 4.

- Hyper parameter selection.

- Training and validation loss examples.

- Hardware specifications, and model training and evaluation times.

- Details on the data selection criteria, with numbers of trials and sessions excluded at each step.

- A figure with panels like Fig 2b for different bin widths for the the time interval partition, or at least a quantification of the overall performance as a function of bin width.

- A figure like Fig. 6 for each mouse.

References: In general there aren't many references. At least more should be provided when mentioning earlier research on neural correlates of decision making (line 24) and the DDM (line 25). There is not citation for BiLSTMs, or attention mechanisms until late in the text (line 249).

Error bars: in general, the meaning of the error bars in the figures is not specified (figs. 3, 5, 7 and 8).

Presentation: Figures 2 and 3 could be merged. Same goes for figures 7 and 8, or even 6, 7 and 8.

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

Figure resubmission:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step. If there are other versions of figure files still present in your submission file inventory at resubmission, please replace them with the PACE-processed versions.

Reproducibility:

To enhance the reproducibility of your results, we recommend that authors of applicable studies deposit laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1013335.r003

Decision Letter 1

Daniele Marinazzo

15 May 2025

PCOMPBIOL-D-24-01470R1

Decoding Decision-Making Behavior from Sparse Neural Spiking Activity

PLOS Computational Biology

Dear Dr. Zhang,

Thank you for submitting your manuscript to PLOS Computational Biology. After careful consideration, we feel that it has merit but does not fully meet PLOS Computational Biology's publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

​Please submit your revised manuscript within 60 days Jul 15 2025 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at ploscompbiol@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pcompbiol/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

* A rebuttal letter that responds to each point raised by the editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'. This file does not need to include responses to formatting updates and technical items listed in the 'Journal Requirements' section below.

* A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

* An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, competing interests statement, or data availability statement, please make these updates within the submission form at the time of resubmission. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter

We look forward to receiving your revised manuscript.

Kind regards,

Daniele Marinazzo

Section Editor

PLOS Computational Biology

Additional Editor Comments :

This revised version still leaves a lot of space for improvement, in particular some important issues were evaded or addressed unsatisfactorily. In order not to waste your time, and the time of the reviewers, I prefer to give you another chance to carefully and thoughtfully go over these points. Of course, if there's something you don't agree with, you can explain why, and stick to your version, after a proper discussion and rebuttal.

Journal Requirements:

 1) We have noticed that you have a list of Supporting Information legends for S1 Table and S2 Table in your manuscript. However, there are no corresponding files uploaded to the submission. Please upload them as separate files with the item type 'Supporting Information'. 2) We have noticed that you have uploaded Supporting Information files, but you have not included a complete list of legends. Please add a full list of legends for your Supporting Information files (Support information.7z ) after the references list. 3) We notice that your supplementary figures are uploaded with the file type 'Figure'. Please amend the file type to 'Supporting Information'. Please ensure that each Supporting Information file has a legend listed in the manuscript after the references list. 4) Please enter the affiliation of Yuhang Zhang in the online submission form. Reviewers' comments:

Reviewer's Responses to Questions

Reviewer #1: Authors have addressed my questions

Reviewer #2: ## General comments

I thank the authors for the provided revised materials.

Overall, I do not feel that the authors have addressed with sufficient depth the comments of the reviewers.

I'll refer to each particular comment and what I find lacking about the responses.

### Comment 2.1

Despite the discussion having increased in length, I still find that it could have been elaborated more. There aren't any references or attempts to make meaningful connections with previous literature. There could also have been a more critical stance on the limitations of the work.

The additional supplementary material is appreciated.

### Comment 2.2

The provided additional details helps to clarify most of my doubts. I would still clarify somewhere in the text how the batching is done.

### Comment 2.3

I appreciate the additional information regarding the statistics of the data selection process. It still leaves me somewhat uncomfortable the fact that so many sessions (37) are discarded due to choice imbalance, but on the other hand the authors might argue that they aimed to study close to optimal conditions as a testbed for their method.

Thank you for including the AUC as an additional metric.

Regarding the binning of spike times, Figure 4b raises some doubts. The accuracy curves across almost all methods don't improve as a function of the number of bins, and some of them decrease. It seems hard to justify the choice of 7 bins as optimal. This also introduces the concern that if the results are so robust to the number of bins, perhaps the temporal dynamics of the neural data are not exploited much after all by the methods. This should be clarified.

I still think the implications of the scaling bins at the level of the neural code could have been discussed more.

Regarding the analysis on the RTs, I'm not sure if the authors draw the right conclusions from them. They mention "Interestingly, we found that correctly predicted trials had slightly longer

mouse reaction times compared to incorrectly predicted trials, with an average difference of

11 milliseconds (t-test p-value = 0.031). This suggests a speed-accuracy tradeoff (SAT) that aligns with established neuroscientific principles." While it's true in general there a SAT to be expected, when comparing correct and error trials, the stimulus difficulty should be controlled for. When this is done, there isn't necessarily an expectation for whether errors should be faster than correct responses. On the other hand, the authors also show that correctly predicted trials are associated with easier stimuli (which makes sense), and the fact that they are at the same time slightly slower contradicts the usual SAT (easier trials are faster and more accurate). Overall there seems to be confusion regarding the role of RT in the results.

### Comment 2.4

I appreciate the additional details regarding the task structure and the presence of the blocks.

I could not find, however, where the analysis of the block structure is incorporated in the manuscript, as the authors claim.

Regarding Figure 7 c, since the contrast levels are discrete, a histogram would have been a more appropriate visualization for its distribution.

### Comment 2.5

There isn't still a justification of why the model SVM_RBF is appropriate to perform the analysis in Figure 6. The result should still be introduced more with the character of a validation of the obtained attention weights rather than a result in itself showing evidence for the superiority of the method over others. Probably the same results would have been obtained using one of the other techniques that I'm about to discuss. In fact, since the SVM_RBF doesn't employ the attention mechanism itself, just a selection of the neurons based on the attention weights, appropriate regularization should be able to find a similar selection of neurons if that increases the performance of the model SVM_RBF.

Regarding the new analysis in Figure 7 a and b, I'm missing details about what was exactly done in each case (L1-LogReg, L1-MLP, ANOVA, RFE). There are no references or explanations provided whatsoever. Therefore I'm unable to extract much from this result, despite it showing some evidence in favour of superior performance of the CA-BiLSTM selection.

Finally, Figure 7d shows some appreciated additional information regarding the distribution of "important neurons" across brain regions. However, the discussion about it is confusing. The highlighted regions DG, LP and PPC aren't among the ones with highest weights, they sit rather on the bottom half of the plot (not DG). The authors don't elaborate much on the implications of this result, which could be relevant for the broad Neuroscience community.

### Comments 2.6 and 2.7

Most of these are addressed. I have some additional comments.

The caption of Fig 5 still isn't very clear for me. "Trial select" and "select" are strange labels for the y-axis. The relationship between the three variables shown is still not clearly communicated.

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

Figure resubmission:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step. If there are other versions of figure files still present in your submission file inventory at resubmission, please replace them with the PACE-processed versions.

Reproducibility:

To enhance the reproducibility of your results, we recommend that authors of applicable studies deposit laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1013335.r005

Decision Letter 2

Daniele Marinazzo

6 Jul 2025

PCOMPBIOL-D-24-01470R2

Decoding Decision-Making Behavior from Sparse Neural Spiking Activity

PLOS Computational Biology

Dear Dr. Zhang,

Thank you for submitting your manuscript to PLOS Computational Biology. 

We are ready to accept your manuscript after you have fixed/clarified a final detail on the normalization of the data reported in figure 7c, see reviewer's comment.

Please submit your revised manuscript within 30 days Sep 05 2025 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at ploscompbiol@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pcompbiol/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

* A rebuttal letter that responds to each point raised by the editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'. This file does not need to include responses to formatting updates and technical items listed in the 'Journal Requirements' section below.

* A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

* An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, competing interests statement, or data availability statement, please make these updates within the submission form at the time of resubmission. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

We look forward to receiving your revised manuscript.

Kind regards,

Daniele Marinazzo

Section Editor

PLOS Computational Biology

Journal Requirements:

1) Please include the authors' affiliations in the online submission form. Please ensure that the affiliations of the authors listed on the manuscript title page do exactly match with the affiliations provided in the online submission form.

Reviewers' comments:

Reviewer's Responses to Questions

Reviewer #2: I congratulate the authors for their effort, which have lead to significant improvements in the manuscript. My comments have been largely addressed.

I don't understand the last panel of Fig 7c (bottom right). How is it normalized? Neither the total correct+error sums to 1 in each bin, nor each conditional distribution of corrercts or erros sums to 1 either. Please revise that detail.

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #2: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #2: No

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

Figure resubmission:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step. If there are other versions of figure files still present in your submission file inventory at resubmission, please replace them with the PACE-processed versions.

Reproducibility:

To enhance the reproducibility of your results, we recommend that authors of applicable studies deposit laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1013335.r007

Decision Letter 3

Daniele Marinazzo

16 Jul 2025

Dear Dr. Wan,

We are pleased to inform you that your manuscript 'Decoding Decision-Making Behavior from Sparse Neural Spiking Activity' has been provisionally accepted for publication in PLOS Computational Biology.

Before your manuscript can be formally accepted you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests.

Please note that your manuscript will not be scheduled for publication until you have made the required changes, so a swift response is appreciated.

IMPORTANT: The editorial review process is now complete. PLOS will only permit corrections to spelling, formatting or significant scientific errors from this point onwards. Requests for major changes, or any which affect the scientific understanding of your work, will cause delays to the publication date of your manuscript.

Should you, your institution's press office or the journal office choose to press release your paper, you will automatically be opted out of early publication. We ask that you notify us now if you or your institution is planning to press release the article. All press must be co-ordinated with PLOS.

Thank you again for supporting Open Access publishing; we are looking forward to publishing your work in PLOS Computational Biology. 

Best regards,

Daniele Marinazzo

Section Editor

PLOS Computational Biology

***********************************************************

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1013335.r008

Acceptance letter

Daniele Marinazzo

PCOMPBIOL-D-24-01470R3

Decoding Decision-Making Behavior from Sparse Neural Spiking Activity

Dear Dr Wan,

I am pleased to inform you that your manuscript has been formally accepted for publication in PLOS Computational Biology. Your manuscript is now with our production department and you will be notified of the publication date in due course.

The corresponding author will soon be receiving a typeset proof for review, to ensure errors have not been introduced during production. Please review the PDF proof of your manuscript carefully, as this is the last chance to correct any errors. Please note that major changes, or those which affect the scientific understanding of the work, will likely cause delays to the publication date of your manuscript.

Soon after your final files are uploaded, unless you have opted out, the early version of your manuscript will be published online. The date of the early version will be your article's publication date. The final article will be published to the same URL, and all versions of the paper will be accessible to readers.

You will receive an invoice from PLOS for your publication fee after your manuscript has reached the completed accept phase. If you receive an email requesting payment before acceptance or for any other service, this may be a phishing scheme. Learn how to identify phishing emails and protect your accounts at https://explore.plos.org/phishing.

Thank you again for supporting PLOS Computational Biology and open-access publishing. We are looking forward to publishing your work!

With kind regards,

Zsofia Freund

PLOS Computational Biology | Carlyle House, Carlyle Road, Cambridge CB4 3DN | United Kingdom ploscompbiol@plos.org | Phone +44 (0) 1223-442824 | ploscompbiol.org | @PLOSCompBiol

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    S1 Table. Comparison of accuracy and AUC for different time windows.

    (XLSX)

    pcbi.1013335.s001.xlsx (13.4KB, xlsx)
    S2 Table. Models’ parameter settings.

    (XLSX)

    pcbi.1013335.s002.xlsx (13.8KB, xlsx)
    S1 Fig. Loss diagram of five-fold cross-validation for partial mice.

    (TIF)

    pcbi.1013335.s003.tif (29.3MB, tif)
    S2 Fig. Neuronal attention weight distribution during mouse decision-making process in partial mice.

    (TIF)

    pcbi.1013335.s004.tif (50.4MB, tif)
    S3 Fig. Comparison of brain region distribution between all neurons and attention-filtered neurons in partial mice.

    (TIF)

    pcbi.1013335.s005.tif (52.5MB, tif)
    S4 Fig. Accuracy and ROC AUC performance of CA-BiLSTM model on class-imbalanced mice.

    (TIF)

    pcbi.1013335.s006.tif (2.4MB, tif)
    Attachment

    Submitted filename: review_response.pdf

    pcbi.1013335.s007.pdf (94.7KB, pdf)
    Attachment

    Submitted filename: review_response1.pdf

    pcbi.1013335.s008.pdf (81.7KB, pdf)
    Attachment

    Submitted filename: review_response_auresp_3.pdf

    pcbi.1013335.s009.pdf (40.8KB, pdf)

    Data Availability Statement

    Reproducible electrophysiology dataset provided by the IBL are available at https://int-brain-lab.github.io/iblenv/notebooks_external/data_release_repro_ephys.html. All data and code used for running experiments, model fitting, and plotting is available on a GitHub repository at https://github.com/ZhangYH321/CA-BiLSTM/tree/master.


    Articles from PLOS Computational Biology are provided here courtesy of PLOS

    RESOURCES