Introduction

Parkinson’s disease (PD) and essential tremor (ET) collectively affect ~7.2 million people in the United States1,2. The symptoms of each disorder are believed to emerge in large part because of aberrant patterns of brain activity, though they are clinically distinct and have been hypothesized to reflect distinct underlying neuro-pathologies. For example, PD is a progressive disorder that is associated with bradykinesia, rigidity, and resting tremor3,4. In addition to these motor pathologies, PD is also associated with a number non-motor symptoms, including sleep disruptions, increased vulnerability to neuropsychiatric disorders, as well as deficits in cognitive functions like attentional control and decision making4,5,6,7,8,9.

One of the biological hallmarks of PD is the loss of dopaminergic (DA) neurons in the substantia nigra pars compacta (SNc)10,11, though it is increasingly recognized coincident disruptions in other monoamine neurotransmitter systems (e.g., serotonin; 5HT, noradrenaline; NA) also contribute to disease symptoms12,13. For example, reduced concentrations of 5HT and its metabolites have been observed in both the cerebral spinal fluid and postmortem brain samples from PD patients, with preferential declines in innervation of the caudate nucleus of the dorsal striatum14,15,16, which correlate with the severity of both motor and non-motor symptoms of the disorder14,17. There is also evidence to suggest that brain-wide noradrenergic signaling is disrupted in PD18, stemming from the degeneration of NA neurons of the locus coeruleus that may precede the well characterized changes in SNc DA populations19,20,21. Though often linked to sleep disruptions common in PD22,23, these changes in NA release capacity may also contribute to deficits in cognitive function and affective reactivity20,24,25.

In contrast to PD, a defining feature of ET is limb tremors that manifest predominantly during movement26,27. ET has historically been assumed to be purely a motor disorder, though notably, patients with ET have been found to be at increased risk for mild cognitive impairment and dementia28,29,30. Notably, these alterations in cognitive function tend to be more pronounced in individuals with late-onset disease, and manifest more selectively in executive functions like attentional control and language29,30,31. At the level of neural circuits affected in ET, changes in GABAergic signaling within the cerebellum are believed to lead to aberrant patterns of activity along relays between cerebellar Purkinje cells and motor thalamus, leading to altered recruitment of motor cortex ensembles and disrupted motor control32,33. Growing evidence also suggests that changes in excitatory balance within the cerebellum can also seed deficits in attentional function34 as well as language processing35 observed in ET. Further supporting the distinct neural pathways associated with these motor diseases, the pronounced decline in DA activity within the dorsal striatum associated with PD, which can even be detected in prodromal phases of the disorder, is not observed in patients with ET36. Indeed, whereas all monoamine systems are impacted by PD, they appear to be relatively spared in ET, except for possible local cerebellar changes in 5HT receptor function that may account for previous reports of exacerbated motor symptoms following 5HT agonist treatments in ET patients26,37,38,39.

Even though PD and ET emerge as a result of distinct neural circuit abnormalities, both patient groups routinely undergo awake-deep brain stimulation (DBS) surgery to manage motor symptoms40,41. The most common clinical target for DBS in PD is the subthalamic nucleus42 and for ET is the ventral intermediate nucleus of the thalamus43. For each of these targets, the trajectory of the clinical DBS electrodes passes through the caudate nucleus of the dorsal striatum, a nexus of aberrant monoaminergic activity in PD patients. Furthermore, striatal monoamine signaling, in particular DA and 5HT release, is hypothesized to play a mediatory role in the same domains of reward-based decision-making that have been described in PD patients44,45,46,47. We have developed a machine learning-enhanced approach to electrochemistry that can be deployed during DBS surgery44,48,49,50,51,52,53, validated both in vitro and in vivo using optogenetics in rodents52,53,54. This method grants us a window of opportunity provided by DBS surgery to measure changes in DA, NA, and 5HT concurrently, with sub-second temporal resolution (10 Hz), and spatial granularity (µm) in the brains of conscious humans. Here, we utilized this approach to gain insight into two major questions: (1) the regulation of DA, NA, and 5HT release in the human caudate during reward evaluation; and (2) how such reward-related monoamine release varies between patients with these two distinct neurological diseases. To probe caudate monoamine function, we had patients perform a monetary social exchange game, a task which previous studies have shown recruits striatal circuits, including the caudate55. Furthermore, similar socially based decision-making tasks have been shown to be sensitive to changes in brain monoamine concentrations56,57 and recruit monoamine release in other parts of the basal ganglia52. Therefore, we reasoned that this task, combined with our technique, would provide a context to explore disease-related alterations in the functional recruitment of ascending DA, NA, and 5HT systems. Our combined results reveal disease-specific patterns of reward-evoked monoamine release that may provide insight into the neurochemistry that underwrites these two prevalent motor disorders.

Results

Experimental design

Here, we characterized DA, NA, and 5HT release in individuals with PD (n = 12) or ET (n = 6). Patients undergoing DBS surgery had a carbon fiber microelectrode placed in the caudate for electrochemical recordings by the neurosurgeon during the procedure. They then performed a two person “take-it-or-leave-it” ultimatum game (UG), which is a well-tested social exchange task that probes players’ responses to “fair” and “unfair” monetary offers58. In our version of UG, two players are involved: one proposes how to split $20 (e.g., $10/$10 split), and the other decides to accept or reject the offer (Fig. 1a). All patients in our study played the role of the responder and were presented with 30 offers from a hypothetically human partner through a monitor. Each trial started with a partner screen to indicate a new proposer was playing, and although not explicitly stated, offers were randomly generated from Gaussian distributions. Offers were presented in two blocks of 15 trials, starting with offers that were on average low (µ = $4, σ = 1.5) and transitioned to a block with high mean offers (µ = $10, σ = 1.5), or vice versa (Fig. 1b, c). In 60% of trials, participants were asked to rate how they felt about the offer.

Fig. 1: Experimental design and electrode model.
Fig. 1: Experimental design and electrode model.
Full size image

a Illustration of the ultimatum game. b Distribution of low offers ($USD) between essential tremor (ET, mint green) and Parkinson’s disease (PD, lavender) groups. c Distribution of high offers between groups. d Illustration of norm prediction error (NPE) calculation. e Distribution of NPE values between groups. f Average emotional ratings to positive (Pos) and negative (Neg) NPEs between groups. Bar plots presented as mean ± SEM and black dots are indivdual patient means (ET, n = 6; PD, n = 12). g Illustration of prediction model training. From left to right, electrode recordings from in vitro monoamine concentrations are input into a convolutional neural network (CNN) to create a trained model. h Tenfold cross validation plots for dopamine (DA), noradrenaline (NA), and serotonin (5HT). Model root mean square error: DA, 35.4745 nanomolar (nM); NA, 42.2127 nM; 5HT, 23.1238 nM. Dots presented as mean ± standard error of the mean. i Illustration of in vivo recording and monoamine concentration estimations. From left to right, electrode recordings in the caudate are input into our trained model and time series estimates are outputted and separated by NPE type. a, d, g, and i were created in BioRender.

Previous data suggests ascending monoamine systems, in particular DA and 5HT, are critical for broadcasting prediction errors, or the difference between expected and received outcomes47,59. Therefore, we used a validated Bayesian ideal observer model55 to characterize players’ shifting expectations of offer amounts across the task. The model allowed us to operationalize the difference between the expected “norm” and “actual” offer on each trial as a normed prediction error (NPE) value, with positive (Pos) NPEs representing offers greater than expected and negative (Neg) NPEs representing offers less than expected (Supplementary Fig. 1a, b and Fig. 1d, e).

Behavioral results

At the level of behavior, we noted that the time to decide to accept or reject offers was similar between NPEs and patient groups (Linear mixed-effects model, B-M1: Patient Group × NPE interaction, F(1, 555.12) = 1.79, p = 0.18; Supplementary Table 1 and Fig. 1c). As expected, offers with negative NPEs were rejected more frequently (B-M2: main effect of NPE, F(1, 17) = 41.11, p = 6.44 × 10−6), and this was consistent between patient groups (B-M2: main effect of Patient Group, F(1, 17) = 0.45, p = 0.51; Fig. 1d). Further, patients in general reported feeling happier during trials with offers higher than expected compared to offers lower than expected (B-M3: main effect of NPE, F(1, 323.69) = 144.30, p = 9.7 × 10−28; Fig. 1f); and again, this pattern was similar between PD an ET patients (B-M3: main effect of Patient Group, F(1, 17.29) = 0.02, p = 0.88, Supplementary Fig. 1e, f).

Neurochemical results

To assess the relationship between neurotransmitter release and the encoding of positive and negative NPEs50,52,59,60,61, we focused our analyses on the time around offer presentation. Specifically, we estimated DA, NA, and 5HT concentrations every 100 ms to derive a times series of each neurotransmitter for each trial (see Batten et al. 53, Online Methods; Fig. 1g–i). We then extracted the area under the curve (AUC) from a 4 s window starting at offer presentation on each trial and used linear mixed-effects models to test whether these AUC values varied as a function of neurotransmitter identity (DA, NA, 5HT), NPE type (positive or negative), and patient group (see Supplementary Table 2 for full results for models N-M1:M6). We found that neurotransmitter concentrations during offer presentation indeed varied as a function of NPE type (Linear mixed-effects model, N-M1: Neurotransmitter × NPE interaction, (F(2, 1669.02) = 4.58, p = 0.01), and these effects were distinct between patient groups (N-M1: Neurotransmitter × NPE × Patient Group interaction, (F(2, 1669.02) = 3.86, p = 0.021).

Focusing on each patient group alone, in ET patients, positive and negative NPEs were distinguished by different patterns of release across neurotransmitters (Fig. 2a–c; N-M2: Neurotransmitter × NPE interaction; F(2, 526.01) = 6.28, p = 0.002). Positive NPEs were associated with robust increases in DA and decreases in 5HT relative to negative NPEs (Bonferroni corrected post-hoc tests; DA Pos. vs. Neg NPE, t(531) = 2.239, p = 0.026; 5HT Pos vs. Neg NPE; t(531) = −2.692, p = 0.007). In contrast, there were no significant patterns in DA or 5HT responses during positive or negative NPE offers in PD patients (Fig. 2d–f; N-M3: Neurotransmitter × NPE interaction F(2, 1143.01) = 0.18, p = 0.84). We then focused on each neurotransmitter alone and compared AUCs between patient groups and prediction errors. In looking at the response of DA, we found there was a difference between positive and negative NPE trials, with DA release on average being higher on positive NPE trials (N-M4: main effect of NPE F(1, 558.31) = 4.01, p = 0.046), and while DA patterns were not present in PD patients (e.g., Fig. 2f), patient group differences in DA were not statistically robust (p > 0.05). Notably, the differences in 5HT responses appeared more robust, and the overall reduction in 5HT on positive NPEs observed in ETs was absent in PDs (N-M5: NPE × Patient Group interaction for 5HT; F(1, 545.01) = 4.46, p = 0.035; 5HT response on positive NPE, ET vs. PD t(81.3) = −2.281, Bonferroni corrected p = 0.025). Of note, there were no significant fluctuations in NA release associated with positive or negative NPEs in either patient population (N-M6: all p’s > 0.05), supporting the general hypothesis that DA and 5HT are the primary drivers of prediction error encoding in the caudate.

Fig. 2: Monoamine signaling separates disease states in caudate.
Fig. 2: Monoamine signaling separates disease states in caudate.
Full size image

a Dopamine (DA, black), noradrenaline (NA, cyan), and serotonin (5HT, magenta) responses in patients with essential tremor (ET, mint green, n = 6) to positive (Pos) and b negative (Neg) NPEs. c Line plots for mean area under the curve (AUC, 4 s window) of neurotransmitter responses to Pos and Neg NPEs. Bonferroni corrected post-hoc tests were performed following linear mixed-effects model (N-M2; DA Pos. vs. Neg NPE, t(531) = 2.239, p = 0.026; 5HT Pos vs. Neg NPE; t(531) = −2.692, p = 0.007). d Time series estimates from patients with Parkinson’s disease (PD, lavender, n = 12) during Pos and e Neg NPEs. f Line plots of AUCs for PDs during Pos and Neg NPEs. af Data represented as trial-level mean ± standard error of the mean.

Importantly, there are many sources of variability in our patient groups that could contribute to the group-level differences in neurotransmitter release described above. To unpack this finding, we ran additional linear mixed-effects models to determine if our results could be explained by electrode placement within the caudate (Supplementary Figs. 24), medication status (Supplementary Tables 3 and 4), PD clinical features (Supplementary Table 5), or subgroups defined by rejection rates (Supplementary Fig. 5). Importantly, none of these variables accounted for the neurotransmitter responses described above for ET or PD patient groups (all p > 0.05). Together, the above analysis revealed a distinct profile of monoamine release in these two disease states as uncovered by a social exchange task.

Serotonin signaling distinguishes patient groups

Our results suggested that patterns of caudate monoamine release dynamics in response to monetary offers may represent a neurochemical boundary between PD and ET patient groups. We next sought to assess whether these diseases-specific patterns of NPE-evoked neurotransmitter release were sufficient to separate the patient groups. To that end, we performed a singular value decomposition (SVD) on the DA, NA, and 5HT changes during offer presentation (AUC values as above), and found latent dimensions (singular vectors, SV) which separated ETs and PDs. These latent dimensions (SV weights) were dominated by 5HT and DA NPE responses relative to NA. Projecting ET and PD patients into 2-dimensional space defined by singular vectors 1 and 3 revealed a partition between patient groups (logistic classifier; 86% accuracy, p = 0.04). Notably, patient labels were not included in the SVD computation and did not contribute to this separation. Given this separation between patient groups revealed by the above, we went back to our AUC data and assessed the relationship between each patient’s DA, NA, and 5HT estimates during positive and negative NPEs. Whereas NA showed nearly complete overlap between the two patient groups, the relationships between 5HT and DA release on positive and negative NPEs unveiled a marked separation between ETs and PDs (88% accuracy, p = 0.03). Importantly, this distinction was apparent in patients both on and off antidepressant medications, which target monoamine transport proteins (Supplementary Tables 3 and 4). Next, we performed permutation testing of the logistic regressions to predict disease state (ET = 1, PD = 0) based on each of the NPE AUC and singular vectors (i.e., “SVD-regression”) to get a better sense of the uniqueness of their apparent ability to separate the disease groups. We performed 10,000 permutation tests of each logistic regression model with the disease state labels shuffled. These tests indicated that 5HT NPE AUCs drive this separation (See Supplementary Table 6 for statistical results of the regression permutation tests). In fact, 5HT positive NPE responses alone are sufficient to predict disease state (i.e., AUC of ROC curve is 0.82, p = 0.03). Combined, while ET and PD patients differed with respect to the pattern of DA and 5HT release in response to positive and negative NPEs, the differences in 5HT were key in distinguishing these two motor diseases.

Discussion

We have provided evidence that monoamine release in the caudate, evoked by violations of expected monetary offer amounts, can distinguish ET and PD patients. 5HT responses, not DA or NA, evoked by NPEs emerged as the key factor in separating ETs from PDs, highlighting the need for further research into the role of 5HT dysfunction in PD. In patients with ET, DA and 5HT exhibited an opponent relationship, with DA increasing and 5HT decreasing when offers exceeded expectations. The importance of DA-5HT opponency during reward-related processing has previously been proposed62,63; with fast changes in DA release generally linked to the prediction of rewards and increases in 5HT release associated with an expectation of punishment64,65. Given the ability of 5HT release to directly inhibit DA release66, these two systems are often cast as the substrates of distinct, but interacting, appetitive and aversive computations. However, the literature around the shared and unique information encoded by DA and 5HT is conflicting, with some studies reporting DA release following the omission of aversive outcomes67 and increases in 5HT neuronal activity in response to appetitive reward-predictive cues68. New advancements in imaging techniques available for model organisms have only recently confirmed the presence of DA and 5HT opponency in the striatum in mice, specifically showing that coincident increases in DA and decreases in 5HT in the striatum causally contribute to Pavlovian cue-reward associations47. Our data suggest that this pattern of opponency in DA and 5HT release also underwrites human social exchanges, specifically in the context of a positive NPEs. While further research is needed to determine the precise cognitive operations indexed by this pattern of DA and 5HT release, our studies suggest that alterations in such neurochemical coordination may ultimately be key to understanding the etiology of cognitive and behavioral impairments associated with PD. We acknowledge variability in the overall signal change on a given error-type between patients in each group, but a strikingly consistent relationship between the magnitude of DA, NA, and 5HT release on positive and negative NPEs. These data suggest that while there is individual variation in the extent to which DA, NA, and 5HT systems are “tuned” to either positive or negative prediction errors, the relationship between neurochemical responses on the two NPE types is more constrained. These findings highlight the need for further research into sources of individual variation in NPE sensitivity, as well as the possible existence of an extrinsic neural circuit that mediates the way each is encoded by ascending systems.

Several factors should be acknowledged that may have influenced our results. For one, in our cohort, we found no evidence that the distinction between ET and PD neurotransmitter responses reflected differences in electrode positioning between groups (Supplementary Figs. 24). However, given the evidence for regional differences in striatal neurotransmission previously observed in model species69,70,71, it is possible that the DA and 5HT release dynamics described here are unique to the caudate recording site in these studies. Future studies are needed to determine if the topographic patterns of monoamine release described in the rodent striatum extend to humans. Additionally, it is not currently possible to perform the experiments described here in healthy human controls. Therefore, we cannot unequivocally state that our results from the ET cohort reflect “normal” signaling. However, given the lack of evidence suggesting broad monoaminergic dysfunction in ET (Elias & Shah, 2024; Gerber & Lynd, 1998; Gironell et al., 2012; Jiménez-Jiménez et al., 2020; Sommer et al., 2004), we believe these data offer needed insight into the neurochemistry of human cognition. It is also important to acknowledge that PD is a heterogeneous disorder, and disease duration as well as patient-specific symptomologies may reflect a similar heterogeneity in monoaminergic dysfunction72,73,74,75. As reported, within our PD cohort, we found no evidence for unique patterns of monoamine signaling based on their clinical features, or how long they had been diagnosed with PD (Supplementary Table 5), although it remains possible that as more data from these patients accumulates, patterns of release corresponding to different manifestations of PD may emerge. Indeed, our current sample size is smaller than many cognitive neuroscience studies in healthy participants, and future work should seek to replicate, or refine, the results in larger sample sizes. However, we note that our sample is typical for studies using intraoperative recordings in patients, and previous studies using human electrochemistry have identified robust results at the single-subject level44 as well as in cohorts smaller than those in the current study54. Finally, given how the ultimatum game naturally engages emotional processing through violating the players’ expectations, it is possible that the absence of DA-5HT opponency in PD reflects a disease-specific change in emotional engagement with the task. That said, we found no difference between groups in emotional ratings to positive or negative NPEs, pointing to a similar level of emotional capture between groups (Fig. 1f). We additionally found no evidence that antidepressant medication status impacted our main results (Supplementary Tables 3 and 4).

Combined, the signaling discrepancies described above likely represent underlying differences in the regulation of cognitively evoked DA and 5HT release between ET and PD patients. These findings highlight a boundary based on neurochemical signaling that clearly dissociates ET and PD patients and provides the foundation for future studies investigating coordinated neurotransmitter release patterns that support human decision making.

Methods

Ethics and recruitment

This study complies with all ethical regulations and was approved by Institutional Review Boards at Wake Forest University Health Sciences (IRB00017138) and Virginia Tech (11-078). Before surgery, patients provided written and informed consent. Once consent was obtained, the instructions of the ultimatum game were described. Patients were told they would be compensated with a payment up to $60 based on their performance in the game and that one round would be picked randomly and be added as a bonus payment. Base payments ranged from $50–$60 for each task session, however, patients were not informed of the base payment. Six patients with essential tremor (one female, mean age ± SD = 56 ± 9.5 years) and 12 patients with Parkinson’s disease (one male played twice during two separate DBS surgeries, four females, mean age ± SD = 59.4 ± 11.4 years) participated in the ultimatum game experiment (see Supplementary Table 3).

Behavioral testing

Ultimatum game

Participants played as responders and were informed that a “partner” would be proposing the monetary splits. Sessions were blocked with two conditions: high or low offers (Fig. 1a). Either the first 15 trials were high offers and the last 15 trials were low offers, or low offers were in the first block and high offers in the second block (ET: low-to-high n = 4, high-to-low n = 2; PD: low-to-high n = 3, high-to-low n = 10). Unknown to the participants, the offers were randomly generated from Gaussian distributions with low mean $4 and high mean $10 with a standard deviation of $1.5 (Actual offer mean ± SD: ET, low $3.75 ± 1.42 and high $10.14 ± 1.55; PD, low $4.27 ± 1.48, and high $9.45 ± 1.73). For each trial, the game started with a partner screen to indicate a new proposer was playing (partner screen locked for 4 s). Then the offer screen came on, which showed the proposed split between the proposer and responder (offer screen locked for 4 s). After the offer screen, the decision screen was displayed, and the responder was asked to accept or reject the offer (self-paced). On 60% of the trials, a rating screen was shown in which the responder was asked to rate their feelings about the offer on a scale of one to nine, with a one being sad and nine being happy (self-paced). Lastly, a blank screen was displayed before a new trial was initiated (screen locked for 2–4 s). The game was controlled by custom written software using HTML and JavaScript, which displayed the game to the participants and logged the behavioral events for neural data alignment.

Electrochemical approach

Data acquisition

The carbon fiber electrodes used for in vivo and in vitro data collection were fabricated in-house as previously described44,48,49,50,52,53. Voltammetric current was obtained while participants underwent DBS. The scanning protocol was established from previous human44,48,49,50,52,53 and rodent work76,77. Measurements were taken at 10 Hz and consisted of a 10 ms triangular voltage ramp (from −0.6 V to +1.4 V then back to −0.6 V at 400 V/s) and then held at −0.6 V for 90 ms before the next ramp. The current response was sampled at 100 kHz. Prior to recording, we first applied a 60 Hz precycling protocol to our measurement triangle waveform to equilibrate the electrode in the brain. Voltammetric recordings were done using Axon Instruments (MultiClamp 700B Patch Clamp Amplifier, Digidata 1550B Data Acquisition System, CV 7B-EC headstage) from Molecular Devices (Molecular Devices, LLC, San Jose, CA, 95134).

In vitro data collection

Seventy-six carbon fiber electrodes were used to collect in vitro data to train our model53. Each in vitro electrode had four datasets collected, one dataset per analyte (dopamine, noradrenaline, serotonin, and pH). For each monoamine, the dataset consisted of 30 separate concentration vectors and ranged from 0 to 2500 nM (pH ~7.4). Additionally, each dataset contained five mixtures of all three monoamines ranging from 840 to 1690 nM (pH ~7.4). The fourth dataset consisted of phosphate-buffered saline (PBS) solutions of varying pH (7.0–7.8) with 5 additional sets that included varying neurotransmitter concentrations. A small subset of the electrodes received different concentration vectors within the same ranges or had more than four analytes collected on them. Monoamine order and concentration vectors were randomized for each electrode. Before data was collected, the electrodes were placed horizontally within a flow cell to submerge the carbon fiber and reference in PBS solution and then pre-cycled at 97 Hz for 10 min. After pre-cycling, we began data collection on the concentration vectors by first running 97 Hz pre-cycle for 27 s, followed by 65 s of our 10 Hz sample protocol. To reduce variation caused by equilibrium and electrical noise, we focused on the most stable 15 s window of the 10 Hz recording.

In vitro model training

Changes in monoamine concentrations were predicted from in vivo current measurements by ensembles of convolutional neural networks trained from our in vitro data. We adapted the deep convolutional neural network InceptionTime model78 for time series classification to support multivariate regression on our in vitro datasets. We implemented equally weighted averages from in vivo concentration predictions through multi-InceptionTime models, similarly to Fawaz et al.78. We coded the model in Python and used Keras79 and TensorFlow80. Our InceptionTime network was based on two ResNet81 blocks, each block containing 3 convolutional blocks, and each convolutional block consisted of 4 parallel convolutional layers. Each layer was composed of 32 filters, with progressively increasing kernel sizes (1, 10, 20, 40). The outputs of each convolutional layer were combined, followed by the application of batch normalization and RELU activations. This output was processed through a bottleneck convolutional layer with a kernel size of one and 32 filters and provided input to the subsequent convolutional block. To implement the ResNet architecture, the input first passed through a bottleneck convolutional layer with a kernel size of 1 and 32 filters. This output was then added to the result of the first ResNet block. After activation, the output from the first ResNet block served as the input to the second ResNet block and the operation was repeated. Finally, after global average pooling, the output of the second ResNet block was passed through a dense layer with four output nodes, providing predictions for the four analytes. All models employed mean squared error as the loss function. The training process utilized the ADAM optimizer82, starting with an initial learning rate of 1e-3, which was halved after 5 consecutive epochs without a reduction in validation loss with no set minimum learning rate. The model that corresponded to the epoch with the lowest validation loss was chosen as the final model for that training run.

To train the model, 70 electrodes were used, and 6 electrodes were randomly selected to be held out for model testing. For every electrode used to train the model, 150 current sweeps were taken for each unique concentration vector combination. The training set consisted of 1,170,150 sweeps from 2594 unique concentration vector combinations. The test set, derived from the 6 held-out electrodes, consisted of 135,450 sweeps from 803 unique concentration vector combinations. The model was produced from a mixture of experts and final predictions were averaged from a 20-ensemble training run. For each ensemble, the datasets were split, such that 90% of the data was used for training and 10% used for validation. The data was divided by electrode-concentration, ensuring that all data points for a specific concentration from a given electrode were grouped together in the same set. The labels were then z-scored within each analyte. After the training process, we applied the inverse normalization procedure to the model predictions generated from new current inputs and the models underwent training for 35 epochs. We then carried out a tenfold cross validation test for the prediction model using all 76 in vitro electrodes. For every electrode in the test fold, the model trained on the remaining nine folds to produce x and y points, where true analyte concentrations are x and predicted analyte concentrations are y (Fig. 1h). For each validation plot, we used x and y pairs for the analyte being considered, and for the other analytes in the plot, we used x and e, where e represents the error (e = estimate–true). For DA, 5HT, and NA, we binned all x-values into 28 equally spaced bins and computed the average estimated analyte values or error values for each probe. Within each bin, we averaged the x-values and either the predicted analyte values or errors across probes and plotted those pairs. Probe number was used as degree of freedom to calculate error bars.

In vivo neurotransmitter predictions

Final predictions for in vivo data were produced using a mixture of experts approach. This involved training an ensemble of models with the same hyperparameters and averaging their predictions. Variations in weights due to initialization, the order in which data was fed during training, and the stochastic descent algorithm introduced differences in the convergence of each model. Different validation sets were employed in each run to mitigate overfitting. The in vivo current traces were differentiated in the same manner as during training and then evaluated by each model. The concentration estimates were obtained by averaging the predictions from the ensemble of models.

Analysis

Data handling

To align behavior to the time series neurochemical estimates of dopamine, noradrenaline, and serotonin, we used MATLAB (MathWorks, Natick, MA). Each neurotransmitter was aligned to the offer reveal (7 s window, 3 s before offer, and 4 s after the offer, in which patient was locked-in before decision was possible). Each neurotransmitter trace per trial was first linearly detrended and then causally smoothed by a 0.5 s window across the 7-s snippet. For each snippet, the mean and standard error of the mean was calculated across the 7-s snippet for each neurotransmitter per trial and then each trial was z-scored across the entire snippet. AUC was then computed from the 4 s post-onset of the offer.

Bayesian observer model

We assumed participants believed that offers were generated from a normal distribution, but were uncertain about its mean and variance, and updated their estimates of these parameters trial by trial using Bayesian inference. Concretely, the distribution of offers conditional on the mean the μ and variance \({\sigma }^{2}\) is given by:

$${{\rm{p}}}\left(s | {\upmu},{\sigma }^{2}\right)={{\rm{Normal}}}\left({\upmu},{\sigma }^{2}\right)$$

The prior over μ and \({\upsigma }^{2}\) in trial \({{\rm{i}}}+1\) is taken as the posterior after trial \(i\). We selected a conjugate prior, so that the form remained the same across trials (see the exposition in Gelman et al.83; also Xiang et al.55 and Gu et al.84). More precisely, the prior was given by

$${{\rm{p}}}\left({\upmu},{\sigma }^{2}\right)={{\rm{p}}}_{1}\left({\upmu}| {\sigma }^{2}\right){{\rm{p}}}_{2}({\upsigma}^{2})$$

with

$${{{\rm{p}}}}_{1}({\upmu}|{\sigma }^{2})={{\rm{N}}}{{\rm{o}}}{{\rm{r}}}{{\rm{m}}}{{\rm{a}}}{{\rm{l}}}\left({\widehat{{\upmu} }},\frac{{\sigma }^{2}}{{{\rm{k}}}}\right)$$
$${{{\rm{p}}}}_{2}\left({{{\rm{\sigma }}}}^{2}\right)={{\rm{Inv}}}-{{{\rm{\chi }}}}^{2}\left({\widehat{{{\rm{\sigma }}}}}^{2},{{\rm{\nu }}}\right).$$

Here, \({\widehat{\upmu} },{\widehat{\upsigma} }^{2}\), and \({{\rm{\nu }}}\) are hyperparameters. \({{\rm{Inv}}}-{{{\rm{\chi }}}}^{2}\) is the scaled inverse-chi-squared distribution. The hyperparameters for trial \(i+1\) are given in terms of the trial \({i}\) offer \({{{\rm{s}}}}_{{{\rm{i}}}}\) hyperparameters by

$${k}_{i+1}={k}_{i}+1\;\;{{{\rm{\nu }}}}_{i+1}={{{\rm{\nu }}}}_{i}+1$$
$${\widehat{{{\rm{\mu }}}}}_{{{\rm{i}}}+1}={\widehat{{{\rm{\mu }}}}}_{i}+\frac{1}{{k}_{i}+1}\left({s}_{i}-{\widehat{{{\rm{\mu }}}}}_{i}\right)$$
$${{{\rm{\nu }}}}_{{{\rm{i}}}+1}{\widehat{{{\rm{\sigma }}}}}_{{{\rm{i}}}+1}^{2}={{{\rm{\nu }}}}_{{{\rm{i}}}}{\widehat{{{\rm{\sigma }}}}}_{{{\rm{i}}}}^{2}+\frac{{{{\rm{k}}}}_{{{\rm{i}}}}}{{{{\rm{k}}}}_{{{\rm{i}}}+1}}{\left({{{\rm{s}}}}_{{{\rm{i}}}}-{\widehat{{{\rm{\mu }}}}}_{{{\rm{i}}}}\right)}^{2}$$

Note that the expected offer \({E}_{i}\left[{S}_{i}\right]\) on trial \(i\) is \({\widehat{{{\rm{\mu }}}}}_{{{\rm{i}}}}\), so that

$${\mathrm{Norm}}\,{\mathrm{prediction}}\,{\mathrm{error}}={{{\rm{\delta }}}}_{{{\rm{i}}}}={{{\rm{s}}}}_{{{\rm{i}}}}-{{{\rm{E}}}}_{{{\rm{i}}}}\left[{{{\rm{S}}}}_{{{\rm{i}}}}\right]={s}_{i}-{\widehat{{{\rm{\mu }}}}}_{i}$$
$${\mathrm{Positive}}\,{\mathrm{norm}}\,{\mathrm{prediction}}\,{\mathrm{error}}=\max \left({{{\rm{\delta }}}}_{i},0\right),$$
$${\mathrm{Negative}}\,{\mathrm{norm}}\,{\mathrm{prediction}}\,{\mathrm{error}}=\max \left(-{{{\rm{\delta }}}}_{i},0\right).$$

We took the initial values of the hyperparameters for trial 1 to be \({\widehat{{\upmu} }}_{1}=10\), \({\widehat{{{\rm{\sigma }}}}}_{1}^{2}=4\), \({k}_{1}=4\), and \({{{\rm{\nu }}}}_{1}=10\). After norm prediction errors were calculated using participants’ offer sequences, trial-level AUC measurements were categorized by positive and negative errors.

Statistical analysis

We used linear mixed-effects models for the analysis of behavioral and neural data effects with a random effect of subject. Males and females were included in both patient groups; however, given that our study sample is determined by clinical need, this study was not designed to assess sex differences in neurotransmitter release, and biological sex was not a factor in our statistical models. The function lmer() in R (R Core Team, 2024) was used to compute all linear mixed-effects models. Type III ANOVA was then run on each linear mixed-effects model and pairwise comparisons on the estimated marginal means (Bonferroni corrected) were used to explore significant main effects and interactions.

Linear mixed-effects analyses

Denoted in Wilkinson notation:

Behavioral data statistics

B-M1, Reaction time ~ 1 + Patient Group × NPE + (1 | subject)

B-M2, Rejection rate ~ 1 + Patient Group × NPE + (1 | subject)

B-M3, Emotional rating ~ 1 + Patient Group × NPE + (1 | subject)

Neural data statistics

N-M1, AUCDA/NA/5HT ~ 1 + Neurotransmitter × NPE × Patient Group + (1 | subject)

N-M2, AUCET ~ 1 + Neurotransmitter × NPE + (1 | subject)

N-M3, AUCPD ~ 1 + Neurotransmitter × NPE + (1 | subject)

N-M4, AUCDA ~ 1 + Patient Group × NPE + (1 | subject)

N-M5, AUC5HT ~ 1 + Patient Group × NPE + (1 | subject)

N-M6, AUCNA ~ 1 + Patient Group × NPE + (1 | subject)

Singular vector decomposition, logistic classifiers, and permutation testing

To analyze the neurotransmitter patterns of activity, SVD was applied to the mean AUC values from dopamine, noradrenaline, and serotonin during positive and negative norm prediction errors. The AUC data from each group were concatenated into a single matrix where rows represented subjects and columns corresponded to the difference in mean neurotransmitter estimate under positive and negative NPEs. Additionally, we performed a series of logistic regression analyses to determine the predictive accuracy of each monoamine NPE AUC vector and right singular vector for classifying ET patients versus PD patients, which we computed as the area under the receiver operator characteristic curve (AUROC) for each model. To assess the statistical significance of each logistic classifier, we adopted a nonparametric approach and performed 10,000 permuted logistic regression per singular vector, with each permutation involving a random shuffling of the disease class label. We computed p-values associated with each NPE and singular vector’s AUROC value by dividing the number of permutation tests with AUROC values greater than or equal to the actual AUROC value by the total number of permutations.

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.