Sample code for: Pallidal alpha activity is an electrophysiological biomarker of symptom severity in obsessive-compulsive disorder
This repository contains the code for the preprint Vissani et al 2026 "Pallidal alpha activity is an electrophysiological biomarker of symptom severity in obsessive-compulsive disorder". The full raw dataset is is available upon request.
Abstract of the paper:
Clinical efficacy of deep brain stimulation (DBS) for obsessive–compulsive disorder (OCD) remains limited by the absence of objective neural biomarkers to guide targeting, programming, and longitudinal optimization of therapy. Using sensing-enabled DBS devices, we analyzed intracranial local field potentials recorded longitudinally from thirteen patients with treatment-refractory OCD implanted in the ventral capsule/ventral striatum (VC/VS). We identify the periodic component of alpha-band activity (7–14 Hz) as a robust electrophysiological correlate of OCD symptom severity. At the initial clinical evaluation, periodic alpha power explained inter-individual variance in symptom severity, and within individuals it tracked longitudinal symptom fluctuations during chronic treatment. Spatial mapping localized the source of this periodic alpha activity to the anterior external globus pallidus (GPe), aligning with stimulation contacts selected as therapeutically optimal during clinical monopolar review. Together, these findings identify anterior GPe alpha oscillations as a state-dependent and spatially specific biomarker of OCD severity, with direct implications for electrophysiology-informed DBS programming and the development of adaptive neuromodulation strategies.
This repository can be downloaded by entering the following commands:
git clone https://github.com/Brain-Modulation-Lab/Vissani2026_alphaOCDBiomarker.git
cd Vissani2026_alphaOCDBiomarker
The minimum dataset Vissani2026_alphaOCDBiomarker/demos to run ShowSpectralParameterization.m, ShowMonopolarEstimation.m and ShowSpatialAnalysis.m contains:
sub-OP1002_ses-postop01_lead-dbs-mni-coords_hemi-left.csvcontains the Lead=DBS MNI coordinates of the DBS lead contactssub-OP1002_ses-postop01_percept-bss_hemi-left.matcontains the electrophysiological neural signals recorded during the first recording session
- SPECTRAL PARAMETERIZATION: the script
ShowSpectralParameterization.mis designed to illustrate the computation of the absolute, relative and periodic power spectra - PSEUDO-MONOPOLAR ESTIMATION: the script
ShowMonopolarEstimation.mis designed to illustrate the computation of the estimation of the pseudo-monopolar contribution of power at each contact from the observation of bipolar signals. - SPATIAL ANALYSIS: the script
ShowSpatialAnalysis.mruns a demo that illustrates the computation of spatial focality in simulated data. The weighted spatial inertia is a concept from physics that quantifies the spread of a mass distribution. In this context, the power value served as the weight, and the inertia was calculated as:
where:
-
$w_i$ = power at contact i -
$d_i$ = distance from weighted centroid
The denominator ensures that has units of
- The script
LongitudinalModellingBiomarker.Rruns the longitudinal modeling of OCD symptom severity based on electrophysiological features recorded over multiple recording sessions.
If you encounter any problems, please report them as issues in the repository or send an email. This repository has been tested successfully in MATLAB versions 2022a and 2023a on MacOS and Windows.
The code depends on these repositories:
- fieldtrip: toolbox to analyze electrophysiological data
- bml: fieldtrip wrapper developed by the BrainModulation Lab.
You need to manually download and include (only the main folder!) them in your MATLAB dependencies. After that just run these commands in MATLAB to manage dependencies:
bml_defaults
ft_defaults
The external folder in the repo contains other libraries:
- RainCloud: toolbox to visualize data distributions.
- PERMUTOOLS: toolbox to implement permutation-based statistics.
Citation: [INSERT DOI HERE]
The full raw dataset is available upon request.
This work was funded by a Michael Jenike Young Investigator Award of the International Obsessive Compulsive Disorder Foundation (IOCDF)
This project is covered under the MIT License.