Main

Major depressive disorder (MDD) is characterized by excessive low mood and a reduced capacity to experience pleasure. According to Beck’s cognitive model of depression, the biased acquisition and processing of information have a central role in the development and maintenance of depression1,2. Numerous studies have shown that individuals with depression tend to have a negative bias across various cognitive domains, including perception3,4, attention5 and memory6. For example, individuals with depression tend to interpret neutral faces as sad, and happy faces as less happy7. Understanding the neural mechanism responsible for the biased processing of emotional stimuli in depression might bring important clinical benefits, including predicting, detecting and treating depression.

The biased processing of emotional stimuli in depression has been linked to dysfunction in the amygdala8,9, the prefrontal cortex (PFC)10,11, the dorsal anterior cingulate12,13 and their connections14,15. Researchers have proposed that cognitive biases in depression are due to maladaptive bottom-up processes that can alter perceptions of the environment and social interactions16,17. Consistent with this hypothesis, functional MRI (fMRI) studies have indicated that individuals with depression show potentiated amygdala reactivity to sad faces and reduced responsiveness to happy faces, even in the absence of conscious awareness of the picture, suggesting automatic mood-congruent cognitive biases in depression18,19. However, a correlation between this automatic amygdala response and current depression severity was observed only when processing happy faces, but not sad faces18. One possibility is that there are separate neural mechanisms that increase the salience of negative stimuli and decrease the salience of positive or rewarding stimuli in depression. The reduced responsiveness of the amygdala to happy faces in individuals with depression could be due to the overregulation of the amygdala by the PFC16,20,21. Consistent with this hypothesis, an fMRI study using dynamic causal modelling found increased suppressive influences from the orbitomedial prefrontal cortex to the amygdala during classification of happy faces in depression22. However, in other fMRI studies, individuals with depression showed a widespread reduction in the functional connectivity between the amygdala and the PFC14,23. In some studies, researchers even proposed that decreased PFC activity reduces nucleus accumbens and amygdala reactivity in people with depression, which, in turn, contributes to the inability to adaptively alter reward-seeking behaviour24,25,26. Owing to the predominant use of methods with either high spatial and poor temporal resolution (for example, fMRI) or high temporal and poor spatial resolution (for example, electroencephalography (EEG) and magnetoencephalography) in previous studies, the neural mechanism responsible for the biased processing of emotional stimuli in depression is far from fully understood. Here we use human intracranial stereotactic EEG (sEEG) recordings with high spatial and temporal resolution to investigate the neurobiological mechanisms that contribute to the selective processing towards negative and away from positive stimuli in individuals with treatment-resistant depression (TRD).

Results

We recorded local field potentials from the PFC (total of 180 contacts in the TRD group and 119 contacts in the control group) and the amygdala (36 contacts in the TRD group and 52 contacts in the control group; Table 1 and Fig. 1b) in 5 patients with TRD and 12 patients with epilepsy while they participated in the affective bias task in which happy and sad faces are rated (Fig. 1a). Patients with epilepsy are here viewed as the control group, because they represented a convenience cohort who have electrodes implanted inside the brain and do not have TRD.

Table 1 Number of recording contacts in each patient
Fig. 1: Experiment design and recording contact distribution.
figure 1

a, Affective bias task. The stimulus set includes morphed faces from maximal emotional intensity to neutral (100% sad, 50% sad, 30% sad, 10% sad, neutral, 10% happy, 30% happy, 50% happy and 100% happy). Participants were asked to rate the emotional intensity of each stimulus presented on the screen by clicking a location on the slider bar. b, Spatial distribution of recording contacts across 5 patients with TRD and 12 control patients in the MNI space. Top: coronal view. Bottom: inferior view. Contacts within the PFC are black and contacts within the amygdala are blue. L, left; R, right. Only contacts in the PFC and the amygdala are shown.

Temporal dynamics of amygdala responses in TRD

Given the central role of the amygdala in detecting and interpreting emotion information, we first examined the intracranial event-related potential (iERP) in the amygdala while participants rated sad and happy faces. The left, right and bilateral amygdala iERP responses to emotional faces from the two groups are shown in Fig. 2a. In each group and each condition, there is a large negative potential peaking around 300 ms followed by a small positive potential. We define the duration of the large negative potential as the early stage of amygdala response and the small positive potential as the late stage of amygdala response (Fig. 2b). In all conditions (sad and happy), the early stage of amygdala response lasts longer in the TRD group compared with control group. Then, we calculated the peak amplitude of each stage in each group and each condition. We combined results from the left and right amygdala because similar results were obtained. The peak amplitude of the early stage was significantly larger in the TRD group compared with the control group during sad-face processing (Fig. 2c; TRD −12.9 ± 1.7; control −7.5 ± 1.1; t86 = 2.695, P = 0.009), but not during rating happy faces (Fig. 2c; TRD −11.0 ± 1.3; control −8.4 ± 1.1; t84 = 1.567, P = 0.121). Moreover, the peak amplitude of the late stage was significantly smaller in patients with TRD compared with the control group in the happy-face condition, but not in sad-face condition (Fig. 2c; happy faces: TRD 1.9 ± 1.2; control 7.6 ± 1.0; t84 = 3.610, P = 0.001; sad faces: TRD 7.6 ± 1.0; control 6.7 ± 1.0, t86 = 0.651, P = 0.517). Thus, compared with the control group, patients with TRD showed increased amygdala response to sad faces at an early latency and decreased amygdala response to happy faces at a late latency.

Fig. 2: Amygdala iERP response to sad and happy faces.
figure 2

a, Amygdala iERPs from 5 patients with TRD (20 contacts in left amygdala and 16 contacts in right amygdala) and 12 control patients (34 contacts in left amygdala and 18 contacts in right amygdala) to sad and happy faces were averaged across contacts. The shaded area indicates s.e.m. b, Time windows of early-stage (black horizontal bars) and late-stage (grey horizontal bars) amygdala iERP response. The red dot depicts the time point of the average peak amplitude. c, Peak amplitude differences in bilateral amygdala between the TRD and control groups within the early stage and the late stage for each condition (sad and happy faces). The centre line indicates the median, and the bottom and top edge of the box indicates the 25th and 75th percentiles, respectively. The whiskers indicate 1.5 × the interquartile range up to the minimum and maximum, and the points indicate outliers. The peak amplitude of the early stage was significantly larger in the TRD group compared with the control group during sad-face processing (t86 = 2.695, P = 0.009). The peak amplitude of the late stage was significantly smaller in patients with TRD compared with the control group in the happy-face condition (t84 = 3.610, P = 0.001). *P < 0.05 (two-sided unpaired t-tests).

Source data

TRD shows greater alpha-band power in PFC at the late stage

The altered amygdala response we observed in patients with TRD could be due to the regulation from the PFC. Previous EEG studies have reported altered cortical brain network in the alpha frequency band in MDD27. Here we examined whether alpha-band power (8–12 Hz) in the PFC, which may reflect excessive inhibitory processes28,29,30,31,32, is enhanced or reduced in TRD at the early or late stages. A three-way analysis of variance (ANOVA) revealed significant main effects of emotion category (sad versus happy, F(1,297) = 17.67, P < 0.001), time window (early versus late, F(1,297) = 29.51, P < 0.0001) and patient group (TRD versus control, F(1,297) = 8.230, P = 0.0044). The significant interactions of time window by patient group (F(1,297) = 16.98, P < 0.0001) indicated that group difference was not the same at different time windows. Subsequently, Sidak’s multiple comparisons test showed significant differences between the TRD and control groups at the late stage of happy-face (adjusted P < 0.0001) and sad-face (adjusted P = 0.0325) processing (Fig. 3a). In summary, our results showed that there is no difference in PFC alpha-band power between the TRD and the control groups at the early stage. However, at the late stage, patients with TRD showed significantly greater alpha-band power in the PFC than the control group, no matter which emotional faces (sad or happy) were processed. The distribution of alpha-band power at the late stage in each group is shown in Fig. 3b.

Fig. 3: Alpha-band activity.
figure 3

a, Averaged alpha-band power in the PFC across 180 contacts in the TRD group and 119 contacts in the control group. Data are presented as mean ± s.e.m. Sidak’s multiple comparisons test showed significant differences between the TRD and control groups at the late stage of happy-face (adjusted P < 0.0001) and sad-face (adjusted P = 0.0325) processing. *P < 0.05. b, Coronal view of the alpha-band power (percent signal change) of contacts within the PFC for each group and each condition in the time window of the late stage (control-sad, 467–815 ms; control-happy, 453–765 ms; TRD-sad, 627–1000 ms; TRD-happy, 563–740 ms). Each circle represents a single contact. The percent signal changes in a and b are with respect to the pre-stimulus baseline (−500 ms to 0 ms). c, Average time courses (mean ± s.e.m.) of alpha-band PLV changes from baseline in the TRD group (5 patients) and the control group (8 patients). The yellow shaded area indicates the time window in which responses to each stimulus type (sad and happy faces) are significantly different between the TRD and the control groups with a cluster threshold of P < 0.05. d, During the late stage of happy-face processing, patients with TRD showed a stronger PLV between the PFC and amygdala than control patients (t11 = 3.953, P = 0.0023). Data are presented as mean ± s.e.m. Each dot indicates a single participant. *P < 0.05 (two-sided unpaired t-tests). NTRD = 5, Ncontrol = 8.

Source data

Increased alpha amygdala–PFC synchrony in TRD

Given the increased PFC alpha-band power and decreased amygdala iERP response at the late stage of rating happy faces in the TRD group, we further hypothesized that the inhibition from the PFC to the amygdala is increased in the TRD group at the late stage of processing happy faces. To study this hypothesis, we measured changes in the phase-locking value (PLV) of alpha oscillations between the amygdala and the PFC during sad-face and happy-face processing, which is a measure of connectivity between two regions. Only a subset of patients (NTRD = 5, Ncontrol = 8) with at least one contact in both the amygdala and the PFC were involved in this data analysis. The TRD group showed a greater PLV during happy-face trials than the control group from 608 ms to 792 ms (Fig. 3c; cluster-based permutation test with a cluster threshold P < 0.05). No time cluster expressing a significant group difference was observed in the sad-face condition (Fig. 3c). In addition, we calculated the mean PLV within the late stage of happy-face processing, and the results showed that the alpha-band PLV between the PFC and amygdala is significantly higher in the TRD group than in the control group (Fig. 3d; unpaired t-test, t11 = 3.953, P = 0.0023). To exclude the possibility that the increased PLV in the TRD group is due to the larger number of contacts in the TRD group than in the control group, we matched the number of contacts in the two groups and calculated the PLV as before. Specifically, we randomly selected 5 contacts in the amygdala and 11 contacts in the PFC in each patient with TRD to reduce the number of total contacts involved in the PLV analysis. The same results were observed after matching the number of contacts in the TRD and the control group (Extended Data Fig. 1).

In summary, our results revealed separate neural mechanisms for the biased processing of emotional stimuli in TRD (Fig. 4). When individuals with TRD process sad faces, they show a larger amygdala iERP response at the early stage than control individuals. While processing happy faces, patients with TRD show a decreased amygdala iERP response, increased alpha-band power in the PFC and enhanced alpha-band synchrony between these two regions at the late stage, compared with the control group.

Fig. 4: Summary of the results in patients with TRD.
figure 4

The arrows indicate higher or lower signal in the TRD group than in the control group.

Deep brain stimulation altered the neural responses to emotional stimuli in the TRD group

All five patients with TRD were asked to perform the affective bias task again after receiving deep brain stimulation (DBS) in the subcallosal cingulate (SCC) and the ventral capsule/ventral striatum (VC/VS) (Fig. 5a). We recorded and analysed local field potentials from sEEG contacts in the PFC and amygdala as before. First, amygdala iERP responses to sad and happy faces were significantly increased after DBS in a late time window (Fig. 5b; sad, 563–713 ms; happy, 598–796 ms; cluster-based permutation test with cluster threshold P < 0.05). The shape of the early-stage amygdala iERP response was not changed by DBS. Second, the alpha-band power in the PFC was significantly reduced after DBS in both the early and late stages when patients with TRD process happy faces (Fig. 5c; TRD pre-DBS happy early versus TRD post-DBS happy early, adjusted P < 0.001; TRD pre-DBS happy late versus TRD post-DBS happy late, adjusted P < 0.001). Interestingly, patients with TRD did not show changed alpha-band power in the PFC at any stage in the sad-face condition (Fig. 5c; TRD pre-DBS sad early versus TRD post-DBS sad early, adjusted P = 0.993; TRD pre-DBS sad late versus TRD post-DBS sad late, adjusted P = 0.9474). Third, in the happy-face condition, the PLV was reduced to an intermediate pattern between TRD pre-DBS and the control group. Overall, after DBS in the SCC and VC/VS, the amygdala iERP response, PFC alpha-band power and the PLV between the amygdala and PFC during the processing of happy faces in patients with TRD looked more like those observed in the control group.

Fig. 5: Neural responses altered by DBS.
figure 5

a, Schematic of DBS leads placement in 5 patients with TRD. bd, Data from the control group are shown again here as a reference (grey), but not included in the statistical analysis. b, Amygdala iERP responses to sad and happy faces were averaged across contacts for each group (TRD pre-DBS, control and TRD post-DBS). The pink horizontal bar below means significant difference between TRD pre-DBS and TRD post-DBS. The shaded area indicates s.e.m. c, Averaged alpha-band power in the PFC across contacts. A three-way ANOVA revealed significant main effects of DBS (pre versus post, F(1,179) = 20.14, P < 0.0001), significant interactions of DBS effect by emotion category (F(1,179) = 26.69, P < 0.0001) and stage (F(1,179) = 9.209, P = 0.0028). Sidak’s multiple comparisons test showed significant differences between TRD pre-DBS and TRD post-DBS at the early (adjusted P < 0.0001) and late (adjusted P < 0.0001) stages of happy-face processing. *Adjusted P < 0.05. Data are presented as mean ± s.e.m. Each dot indicates a single contact (NTRD = 180; Ncontrol = 119). d, Averaged time courses (mean ± s.e.m.) of alpha-band PLV changes from baseline across participants (TRD pre-DBS, control and TRD post-DBS).

Source data

Discussion

With the help of the excellent spatial and temporal resolution of sEEG, we observed that increased amygdala responses to sad faces emerged at an early stage (around 300 ms), while decreased amygdala responses to happy faces emerged at a late stage (around 600 ms). Importantly, during this late stage of decreased amygdala responses to happy faces, we found increased alpha-band activity in the PFC, as well as greater alpha-phase locking between the amygdala and the PFC in patients with TRD compared with the controls. After the delivery of stimulation to two hubs that connect cortical and subcortical network regions relevant to the expression of depressive symptoms, the atypical amygdala and PFC activity, along with their connections while rating happy faces in patients with TRD looked more like those observed in the control group. Thus, our results provide important direct electrophysiological evidence for the neural mechanisms underlying the biased processing of emotional stimuli in depression. The increased amygdala iERP response during the early stage of rating sad faces suggests an overactive bottom-up processing system. While the reduced amygdala iERP response during the late stage of rating happy faces may be attributed to increased top-down inhibition by the PFC through alpha-band oscillation.

The amygdala has a critical role in emotion processing and response. It interacts with a variety of cortical and subcortical areas, which together evaluate the salience of sensory stimuli and modify the response of the amygdala33. Numerous fMRI studies have shown that individuals with depression show an increased amygdala response to sad faces and a decreased amygdala response to happy faces compared with healthy controls8,19,34. Our iERP results clearly showed that patients with TRD showed heightened and prolonged amygdala activity in response to sad faces, compared with the control group. More interestingly, the iERP traces from patients with TRD and the control patients are almost overlapping before 200 ms, suggesting no difference in the initial response to sad faces in the amygdala. This finding aligns with the theory that individuals with and without depression do not primarily differ in their initial response to negative events but in their ability to recover from the ensuing negative affect35. In addition, we also observed prolonged activity in the amygdala during the early stage of happy-face processing, although without a significant change in amplitude compared with the controls. Overall, the longer-lasting amygdala response observed in our study could be related to the extended elaborative processing of emotional information in depression36.

The increased amygdala iERP we observed at the early stage during sad-face processing in the TRD group supports the hypothesis that increased amygdala activity creates a bottom-up signal that biases negative information processing in higher cortical areas and can maladaptively alter perceptions of the environment19. The altered perception of negative information has been associated with decreased cognitive control from the dorsolateral prefrontal cortex20,37,38. Another possibility could be that the reduced connectivity between the thalamus and dorsal anterior cingulate cortex leads to a higher flow of information through the subgenual cingulate cortex. This, in turn, heightens the emotional impact of incoming stimuli for individuals with depression3,12. As individuals with depression often show an attentional bias for sad stimuli5, it is still unclear how the increased amygdala response to negative stimuli is related to the inefficient attentional disengagement from negative stimuli.

In the current study, patients with TRD show decreased amygdala response, increased alpha-band power in the PFC and enhanced alpha synchrony between these two regions at the late stage of happy-face processing, compared with the control group. Thus, the reduced amygdala response to happy faces in the TRD group could be due to the inhibition from the PFC. Consistent with our findings, an fMRI study examined the functional connectivity between the amygdala and orbitomedial prefrontal cortex using dynamic causal modelling, and identified increased negative left-sided top-down orbitomedial prefrontal cortex–amygdala effective connectivity in response to happy faces22. The connectivity results suggest increased inhibition of the left amygdala by the left orbitomedial prefrontal cortex in response to positive emotional stimuli. In addition, increased alpha-band power in the PFC of individuals with depression has been reported in previous EEG studies27,39,40. This heightened alpha activity may reflect excessive inhibitory processes, which could contribute to the cognitive and emotional symptoms associated with depression. Consistent with this idea, a clinical improvement after antidepressant treatments was also found to be associated with a decrease in PFC alpha-band activity41,42.

With the help of the high temporal and spatial resolution of intracranial EEG, our results support that separate neural mechanisms are responsible for the biased negative and positive affective information processing in depression. The observed effect of DBS also provides evidence for this hypothesis. Specifically, after DBS in the SCC and VC/VS, both the alpha-band power in the PFC and the alpha-band PLV between the PFC and amygdala during happy-face processing were reduced. However, DBS has little effect on PFC alpha-band power and alpha-band PLV between the PFC and amygdala during sad-face processing. Consistent with our results, decreased positive emotion rather than exaggerated responses to negative stimuli is thought to be a distinctive feature of depression. For example, amygdala activity during happy-face processing or positive recall was negatively correlated with current depression severity18,43. But no significant correlation between amygdala activity during sad-face processing and current depression severity was observed in those studies. Also, it is worth noting that a negative processing bias also exists in high-risk populations of depression and individuals with anxiety43,44. Similarly, some studies have proposed that amygdala hyperactivity during negative autobiographical recall is a trait-like marker of depression, while amygdala hypoactivity during positive autobiographical recall is a state marker that emerges during active disease and returns to normal with symptom remission43.

Converging evidence suggests an important role of amygdala in the recovery from MDD. In some studies, individuals with MDD have been trained to regulate their amygdala haemodynamic response during real-time fMRI neurofeedback training45. After training, the amygdala haemodynamic response to positive memories or happy faces was increased and depressive symptoms were reduced, suggesting a recovery from depression. In patients with MDD after sertraline treatment, hyperactivation of the amygdala to masked sad faces decreased and hypoactivation of the amygdala to masked happy faces increased19. Consistent with these findings, our results also showed that the processing bias of happy faces looks more like the control group after DBS. Together with previous findings, the decreased activation of the amygdala to positive stimuli may indicate clinical significance and some antidepressant drugs or cognitive therapies exert their treatment effect by normalizing this emotional processing.

Intracranial recordings in patients with TRD before and after DBS parameter exploration allowed this extraordinary opportunity to study the neural mechanism of biased processing of emotional stimuli in depression, but some limitations must be acknowledged. For example, we use patients with epilepsy as the control group in our study because it is impossible to get sEEG data from healthy humans. Patients with epilepsy often show a range of depressive comorbidities46; however, none of the patients included in this study was diagnosed with TRD. Although the 12 patients with epilepsy used as the control group showed a range of depression from minimal to severe, we have identified a significant difference between the TRD and control groups. If there is a control group in which all participants have completely no depression, we would get same conclusion but with larger difference and stronger statistical power. Another limitation is that a conclusive behavioural result was not obtained due to the small number of patients with TRD involved in our study. Unlike intracranial EEG data in which multiple electrodes are placed inside the brain to record electrical activity directly, an adequate sample size of patients is necessary for a conclusive behavioural result, especially when comparing between groups. However, there is substantial behavioural evidence showing that individuals with MDD show blunted responsiveness to happy faces and an increased tendency to interpret neutral faces as sad47,48,49,50. The increased amygdala iERP response to sad faces and decreased amygdala iERP response to happy faces observed in our study are consistent with these previously reported negative cognitive bias in depression. The third limitation is that the spatial coverage of electrodes in patients with TRD in the frontal lobe is limited with respect to the epilepsy cohort due to differences in the surgical targets, driven uniquely by clinical purposes. As a consequence, our ability to resolve the contribution of different PFC subdivisions was not possible in the current study, and further evidence is needed to pinpoint the exact source of the PFC inhibitory effects. Nonetheless, our results investigated the functional profile of amygdala, PFC and their connectivity in affective processing and provide direct electrophysiological evidence with high spatial and temporal resolution to understand the critical framework for the biased acquisition and processing of information, which has a primary role in the development and maintenance of depression.

Methods

Participants

Data were obtained from 12 patients with epilepsy (7 female, 5 male, age 19–57) and 5 patients with TRD (3 female, 2 male, age 32–56). Twelve patients with epilepsy were undergoing sEEG monitoring at Baylor College of Medicine for seizure localization before surgical resection. All participants with epilepsy completed questionnaires on depressive symptoms (Beck Depression Inventory-II (BDI-II)51) and their BDI-II scores show a distribution from minimal to severe depression (Extended Data Fig. 2). The average BDI-II score was 21.17 ± 11.7 (mean ± s.d.). Participants with TRD involved in this study (N = 5) were enroled in an early feasibility trial (ClinicalTrials.gov Identifier: NCT03437928) of individualized DBS guided by intracranial recordings52. All five patients with TRD have a DSM-553 diagnosis of MDD as their primary diagnosis and failed to respond to a minimum of four adequate depression treatments from at least two different treatment medication categories (selective serotonin reuptake inhibitors, serotonin and norepinephrine reuptake inhibitors, tricyclic antidepressant, monoamine oxidase inhibitors, and so on). One week before operation in patients with TRD, MADRS (Montgomery–Asberg Depression Rating Scale) and HAM-D (Hamilton Depression Rating Scale) were administered by the clinician to assess the severity of depression. All patients with TRD had a MADRS score above 27 and a HAM-D score above 20. Participants with history of psychosis, personality disorder, recent suicide attempt or neurodegenerative disorders were excluded from recruitment. Each patient with TRD was implanted with ten temporary sEEG electrodes for neural recordings and four permanent DBS leads for stimulation delivery (DBS leads are shown in Fig. 5a and Extended Data Fig. 3a). sEEG electrodes in patients with TRD were used to conduct a thorough search of stimulation parameter space to build a comprehensive understanding of the pathophysiology of TRD, as well as the neural responses to stimulation therapy52. This clinical trial is funded by the NIH Brain Research Through Advancing Innovative Neurotechnologies (BRAIN) Initiative (UH3 NS103549) and approved by the Food and Drug Administration (IDE number G180300). All the experiments in this paper involving patients with epilepsy and patients with TRD were approved by the institutional review board at Baylor College of Medicine (IRB: H-43036, IRB: H-18112). Written informed consent was obtained from each participant. The patients were paid US$100 per day.

Electrode implantation and localization

DBS leads (Cartesia, Boston Scientific) and sEEG electrodes (Depthalon, PMT) were implanted using a robotic surgical assistant (Zimmer Biomet). The locations of sEEG electrodes in patients with epilepsy were entirely based on medical considerations (detection of the seizure foci). Each 0.8-mm-diameter sEEG electrode contains 12–16 independent recording contacts. Contacts (2 mm in length) are spaced 1.5 mm apart from one another, edge to edge. All patients with epilepsy involved in our study have at least one electrode in the PFC or amygdala. Each patient with TRD had ten sEEG electrodes (five per hemisphere in the prefrontal and mesial temporal regions) and four DBS leads (VC/VS and SCC bilaterally). The surgery procedure and DBS leads information can be found in a previously published study52. Following surgical implantation, electrodes were localized by co-registration of pre-surgery anatomical T1 MRI scans and post-implantation computed tomography scans using FreeSurfer Version 6 (https://surfer.nmr.mgh.harvard.edu). Electrode positions were manually marked using BioImage Suite54. iELVis55 was used to overlay electrode location into the MRI. Electrodes were then assigned to the PFC and amygdala by independent expert visual inspection. We projected electrode positions onto Montreal Neurological Institute-152 template brain (MNI) space and displayed on the cortical surface of FreeSurfer ‘fsaverage’ brain for visualization in Fig. 1b.

Affective bias task

Participants in our study were asked to rate emotional human face photographs, which were displayed on a Viewsonic VP150 monitor with a resolution of 1,920 × 1,080, positioned 57 cm from the participants. Happy, sad and neutral face exemplars (6 identities each; 3 male, 3 female) adapted from the NimStim Face Stimulus Set56 were morphed using a Delaunay tessellation matrix to generate subtle facial expressions ranging in emotional intensity from neutral to maximally expressive in steps of 10%, 30%, 50% and 100% for happy and sad faces, respectively (Fig. 1a). The experiment was programmed in MATLAB R2019a, using Psychtoolbox-357.

In each trial, a white fixation cross was displayed on a black background for 1,000 ms (jittered ± 100 ms) and then a face and a rating prompt appeared simultaneously on the screen, positioned on the left and right sides, respectively (as illustrated in Fig. 1a). Participants were asked to indicate their rating by clicking a specific location on the slider bar using a computer mouse. The ratings were recorded using a continuous scale that ranged from 0 (‘Very sad’) to 0.5 (‘Neutral’) to 1 (‘Very happy’). Stimuli were presented in a blocked design in which all happy faces (plus neutral) appeared in one block while all sad faces (plus neutral) appeared in a separate block. There were 30 trials in each block (6 trials for each intensity level). Participants completed three alternating happy and sad blocks. The order of happy and sad blocks was counterbalanced across participants. Patients with TRD underwent sEEG research for 10 days in the epilepsy monitoring unit and they performed the affective bias task twice after surgical implantation, at day 1 or day 2 (before DBS parameter exploration) and day 8 or day 9 (after DBS parameter exploration). Patients with epilepsy completed the task during their in-patient stay (at least 2 hours after any seizure activity was detected). Trials with obvious wrong clicks (for example, 100% happy faces were labelled very sad: 1.5% in control group; 1.4% in TRD group), which indicated that the patients were distracted from doing the task, were excluded from data analysis.

Data acquisition and preprocessing

Intracranial EEG data were recorded during affective bias task using Cerebus data acquisition system (Blackrock Neurotech). All neural signals were recorded at a 2,000 Hz sampling rate (online band-pass filter 0.3–500 Hz) with a 256-channel amplifier and referenced to a contact in the white matter. Some runs of patient DBSTRD010 were collected at 30 kHz for reasons pertaining to other studies and were downsampled to 2,000 Hz. A photodiode was placed in the lower right-hand corner of the screen to mark the trial onset and its analogue voltage response was recorded by the data acquisition system to ensure precise synchronization. Electrode contacts and epochs contaminated with excessive artefacts and epileptiform activity were removed from data analysis by visual inspection. After that, the continuous intracranial EEG data in each electrode contact was notch-filtered at 60 Hz, re-referenced to the common average reference and segmented from −500 ms to 1,000 ms relative to stimulus onset. Neutral face epochs in each block were removed from data analysis. Intracranial EEG data were analysed using MNE-Python58 v1.6 (https://mne.tools/stable/index.html) and MATLAB R2023a.

Quantification and statistical analysis

Event-related potentials

The segmented data were band-pass filtered from 1 Hz to 30 Hz using a finite impulse response filter (MNE-Python58). iERPs were calculated for each condition (happy and sad), each group (TRD, control) and each contact by averaging the filtered epochs and normalizing them to the mean signal of baseline period (−500 ms to 0 ms relative to stimulus onset). The iERP time courses were averaged across contacts within the left amygdala, right amygdala and bilateral amygdala for each condition (Fig. 2a). The data from two contacts in patient Dep3 in happy blocks was excluded from time course and amplitude analysis as an extreme outlier (>8 s.d. away from the mean). On the basis of the averaged amygdala iERP waveform across contacts, we defined the duration of the large negative potential as the early stage of amygdala response and the small positive potential as the late stage of amygdala response. Specifically, the duration of the early and late stages of amygdala response are defined as same polarity time points surrounding the peak of negative potential and positive potential, respectively (Fig. 2b). The peak amplitude of each stage was calculated as the average amplitude within a 150 ms time window of the peak (Fig. 2c). Group differences in peak amplitude were tested with two-tailed unpaired t-test.

Power analysis

For each recording contact, alpha-band power was estimated for the early stage and the late stage. We band-pass filtered the data (8–12 Hz, IIR filter), applied the Hilbert transform to extract analytic amplitude envelope, squared the results and normalized them by calculating percent change from pre-stimulus baseline (−500 ms to 0 ms). The results shown in Fig. 3a were averaged across all the contacts for each group and each condition. We performed three-way ANOVA (emotion category × time window × patient group) on the alpha-band power data. Sidak’s multiple comparisons test was used to estimate the differences between the TRD and control groups.

Inter-regional phase synchrony

The PLV59 was calculated for each contact pair between the PFC and amygdala. Only a subset of patients with at least one contact in both the amygdala and the PFC were involved in data analysis (NTRD = 5, Ncontrol = 8). The average BDI-II score of the control group was 14.00 ± 4.23 (mean ± s.d.). The preprocessed data were alpha-band filtered (8–12 Hz) using a finite impulse response filter (order, 4 cycles of the desired signal). Then Hilbert transform was applied and the PLV was calculated for each contact pair and normalized to the baseline (−500 ms to 0 ms). The results shown in Fig. 3c were averaged across participants. For each condition (sad and happy), we statistically compared the PLVs between the TRD and control groups using a cluster-based permutation test (N = 10,000, cluster P < 0.05, Bonferroni corrected). We also compared the mean PLV of happy-face trials during the late stage (TRD, from 563 ms to 740 ms; control, from 453 ms to 765 ms) between the TRD and control groups (unpaired t-test).

DBS stimulation

The DBS leads were positioned to the target region (SCC and VC/VS) using previously described methodology based on patient-specific diffusion-weighted imaging data60. DBS parameter exploration was initiated 3 days after surgery (surgery day is day 0) in patients with TRD as described in the clinical protocol (Food and Drug Administration IDE number G180300). We delivered stimulation to the target regions using different parameter sets (Cerestim, Blackrock Microsystems) from day 3 to day 8 or day 9. We tested a wide range of parameter space by varying stimulation target (left SCC, right SCC, left VC/VS, right VC/VS), frequency (6 Hz, 50 Hz, 130 Hz), amplitude (2 mA, 5 mA) and pulse width (50 µs, 100 µs, 180 µs). We also varied the contact configuration (that is, the combination of DBS contacts through which stimulation was delivered) by separately testing the bottom bullet-shaped contact, top ring contact and three ‘stacks’ of segmented contacts in the middle two levels on the VC/VS leads (see Extended Data Fig. 3 for a picture of DBS lead61 and an example stimulation parameter set). For the SCC leads, we additionally tested the middle two segmented levels. We tested all combinations of these parameters across the four DBS leads52. After DBS parameter exploration, patients with TRD were asked to perform affective bias task again at day 8 or day 9, during which all the stimulation was turned off.

Reporting summary

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