Richard M. Leahy
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Richard M. Leahy has a total of 241 co-authors. Here are the top co-authors by number of shared publications:
- Anand A. Joshi
Ming Hsieh Department of Electrical and Computer Engineering Viterbi School of Engineering, University of Southern California Los Angeles California USA
31 shared publications - Haleh Akrami
Department of Electrical and Computer Engineering University of Southern California Los Angeles 90089 CA USA
10 shared publications - Jian Li
Center for Neurotechnology and Neurorecovery, Department of Neurology, Massachusetts General Hospital
9 shared publications - Justin P. Haldar
Signal and Image Processing Institute, Ming Hsieh Department of Electrical and Computer Engineering, University of Southern California, Los Angeles, CA, USA
8 shared publications - John Compton Mosher
Department of Neurosurgery, University of Texas Health Science Center, TX 77030, USA
7 shared publications Quanzheng Li
Department of Radiology, Harvard Medical School/MGH, Boston, MA 02114, U.S.A
7 shared publications
Latest Publications
- Open Access
- 4 June 2026
- Published by The Open Journal in Journal of Open Source Software
- Vol. 11 (122)
sEEG-Suite: An Interactive Pipeline for Semi-Automated Contact Localization and Anatomical Labeling with Brainstorm
- 4 June 2026
- Published by The Open Journal in Journal of Open Source Software
- Vol. 11 (122)
Open AccesssEEG-Suite: An Interactive Pipeline for Semi-Automated Contact Localization and Anatomical Labeling with Brainstorm
- 17 April 2026
- Published by Elsevier in Journal of Affective Disorders
- Vol. 407, 121817
Neural evidence of disrupted self-referential processing in suicidal depression
- 17 April 2026
- Published by Elsevier in Journal of Affective Disorders
- Vol. 407, 121817
Neural evidence of disrupted self-referential processing in suicidal depression
- Open Access
- 6 March 2026
- Published by Wiley in Human Brain Mapping
- Vol. 47 (4) , e70483
Untamed: Unconstrained Tensor Decomposition and Graph Node Embedding for Cortical Parcellation
Cortical parcellation is fundamental to neuroscience, enabling the division of cerebral cortex into distinct, non‐overlapping regions to support interpretation and comparison of complex neuroimaging data. Although extensive literature has investigated cortical parcellation and its connection to functional brain networks, the optimal spatial features for deriving parcellations from resting‐state fMRI (rsfMRI) remain unclear. Traditional methods such as Independent Component Analysis (ICA) have been widely used to identify large‐scale functional networks, while other approaches define disjoint cortical parcellations. However, bridging these perspectives through effective feature extraction remains an open challenge. To address this, we introduce Untamed , a novel framework that integrates unconstrained tensor decomposition using NASCAR to identify functional networks, with state‐of‐the‐art graph node embedding to generate cortical parcellations. Our method produces near‐homogeneous, spatially coherent regions aligned with large‐scale functional networks, while avoiding strong assumptions like statistical independence required in ICA. Across multiple datasets, Untamed consistently demonstrates improved or comparable performance in functional connectivity homogeneity and task contrast alignment compared to existing atlases. The pipeline is fully automated, allowing for rapid adaptation to new datasets and the generation of custom parcellations. The atlases derived from the Genomics Superstruct Project (GSP) dataset, along with the code for generating customizable parcel numbers, are publicly available at https://untamed‐atlas.github.io .
- 6 March 2026
- Published by Wiley in Human Brain Mapping
- Vol. 47 (4) , e70483
Open AccessUntamed: Unconstrained Tensor Decomposition and Graph Node Embedding for Cortical Parcellation
Cortical parcellation is fundamental to neuroscience, enabling the division of cerebral cortex into distinct, non‐overlapping regions to support interpretation and comparison of complex neuroimaging data. Although extensive literature has investigated cortical parcellation and its connection to functional brain networks, the optimal spatial features for deriving parcellations from resting‐state fMRI (rsfMRI) remain unclear. Traditional methods such as Independent Component Analysis (ICA) have been widely used to identify large‐scale functional networks, while other approaches define disjoint cortical parcellations. However, bridging these perspectives through effective feature extraction remains an open challenge. To address this, we introduce Untamed , a novel framework that integrates unconstrained tensor decomposition using NASCAR to identify functional networks, with state‐of‐the‐art graph node embedding to generate cortical parcellations. Our method produces near‐homogeneous, spatially coherent regions aligned with large‐scale functional networks, while avoiding strong assumptions like statistical independence required in ICA. Across multiple datasets, Untamed consistently demonstrates improved or comparable performance in functional connectivity homogeneity and task contrast alignment compared to existing atlases. The pipeline is fully automated, allowing for rapid adaptation to new datasets and the generation of custom parcellations. The atlases derived from the Genomics Superstruct Project (GSP) dataset, along with the code for generating customizable parcel numbers, are publicly available at https://untamed‐atlas.github.io .
- Open Access
Multi-Compartment Volume Conductor with Complete Electrode Model: Simulated Stereo-EEG Source Localization using Brainstorm-Zeffiro Plugin
This study introduces a novel integration of the Brainstorm (BST) software and the Zeffiro Interface (ZI) to enable whole-head, multi-compartment volume conductor modeling for electroencephalography (EEG) source imaging, with a particular focus on stereotactic EEG applications. We present the BST-2-ZI plugin, a MATLAB-based tool that facilitates seamless transfer of tissue segmentations and anatomical atlases from BST into ZI for finite element (FE) mesh generation as well as forward and inverse modeling. The generated FE meshes support variable spatial resolution and implement the complete electrode model (CEM), allowing for precise modeling of both invasive depth electrodes and non-invasive scalp electrodes. Using the ICBM152 template and synthetic source simulation, we demonstrate the end-to-end pipeline from MRI data to lead field (LF) computation and source localization in a stereotactic EEG (stereo-EEG) setting. Our numerical experiments highlight the capability of the pipeline to accurately model multi-compartment head geometry and conductivity with a stereotactic CEM-based electrode configuration. Our preliminary source localization results show how a synthetic stereo-EEG probe corresponding to a bidirectional deep brain stimulation (DBS) probe with four omnidirectional contacts can, in principle, be coupled with scalp electrodes to improve source localization in its vicinity.
Open AccessMulti-Compartment Volume Conductor with Complete Electrode Model: Simulated Stereo-EEG Source Localization using Brainstorm-Zeffiro Plugin
This study introduces a novel integration of the Brainstorm (BST) software and the Zeffiro Interface (ZI) to enable whole-head, multi-compartment volume conductor modeling for electroencephalography (EEG) source imaging, with a particular focus on stereotactic EEG applications. We present the BST-2-ZI plugin, a MATLAB-based tool that facilitates seamless transfer of tissue segmentations and anatomical atlases from BST into ZI for finite element (FE) mesh generation as well as forward and inverse modeling. The generated FE meshes support variable spatial resolution and implement the complete electrode model (CEM), allowing for precise modeling of both invasive depth electrodes and non-invasive scalp electrodes. Using the ICBM152 template and synthetic source simulation, we demonstrate the end-to-end pipeline from MRI data to lead field (LF) computation and source localization in a stereotactic EEG (stereo-EEG) setting. Our numerical experiments highlight the capability of the pipeline to accurately model multi-compartment head geometry and conductivity with a stereotactic CEM-based electrode configuration. Our preliminary source localization results show how a synthetic stereo-EEG probe corresponding to a bidirectional deep brain stimulation (DBS) probe with four omnidirectional contacts can, in principle, be coupled with scalp electrodes to improve source localization in its vicinity.
- Open Access
- 21 January 2026
- Published by Elsevier in NeuroImage
- Vol. 327, 121747
Optimizing electrode placement and information capacity for local field potentials in cortex
- 21 January 2026
- Published by Elsevier in NeuroImage
- Vol. 327, 121747
Open AccessOptimizing electrode placement and information capacity for local field potentials in cortex
- Open Access
Neural Codecs as Biosignal Tokenizers
Neurophysiological recordings such as electroencephalography (EEG) offer accessible and minimally invasive means of estimating physiological activity for applications in healthcare, diagnostic screening, and even immersive entertainment. However, these recordings yield high-dimensional, noisy time-series data that typically require extensive pre-processing and handcrafted feature extraction to reveal meaningful information. Recently, there has been a surge of interest in applying representation learning techniques from large pre-trained (foundation) models to effectively decode and interpret biosignals. We discuss the challenges posed for incorporating such methods and introduce BioCodec, an alternative representation learning framework inspired by neural codecs to capture low-level signal characteristics in the form of discrete tokens. Pre-trained on thousands of EEG hours, BioCodec shows efficacy across multiple downstream tasks, ranging from clinical diagnostic tasks and sleep physiology to decoding speech and motor imagery, particularly in low-resource settings. Additionally, we provide a qualitative analysis of codebook usage and estimate the spatial coherence of codebook embeddings from EEG connectivity. Notably, we also document the suitability of our method to other biosignal data, i.e., electromyographic (EMG) signals. Overall, the proposed approach provides a versatile solution for biosignal tokenization that performs competitively with state-of-the-art models. The source code and model checkpoints are shared.
Open AccessNeural Codecs as Biosignal Tokenizers
Neurophysiological recordings such as electroencephalography (EEG) offer accessible and minimally invasive means of estimating physiological activity for applications in healthcare, diagnostic screening, and even immersive entertainment. However, these recordings yield high-dimensional, noisy time-series data that typically require extensive pre-processing and handcrafted feature extraction to reveal meaningful information. Recently, there has been a surge of interest in applying representation learning techniques from large pre-trained (foundation) models to effectively decode and interpret biosignals. We discuss the challenges posed for incorporating such methods and introduce BioCodec, an alternative representation learning framework inspired by neural codecs to capture low-level signal characteristics in the form of discrete tokens. Pre-trained on thousands of EEG hours, BioCodec shows efficacy across multiple downstream tasks, ranging from clinical diagnostic tasks and sleep physiology to decoding speech and motor imagery, particularly in low-resource settings. Additionally, we provide a qualitative analysis of codebook usage and estimate the spatial coherence of codebook embeddings from EEG connectivity. Notably, we also document the suitability of our method to other biosignal data, i.e., electromyographic (EMG) signals. Overall, the proposed approach provides a versatile solution for biosignal tokenization that performs competitively with state-of-the-art models. The source code and model checkpoints are shared.
- Open Access
sEEG-Suite: An Interactive Pipeline for Semi-Automated Contact Localization and Anatomical Labeling with Brainstorm
Summary: Stereoelectroencephalography (sEEG) is a critical tool for mapping epileptic networks in patients with drug-resistant epilepsy. Accurate localization and labeling of sEEG contacts are essential for identifying the seizure onset zone (SOZ) and ensuring optimal resective surgery. Traditional methods for localizing and labeling sEEG contacts rely on manual processing, which is prone to human error and variability. To address these challenges, we developed and integrated a semi-automatic sEEG contact localization and labeling pipeline within Brainstorm 1 , an open-source software platform for multimodal brain imaging analysis 2–8 , widely adopted in the neuroscience community with over 50,000 registered users and an active online user forum . The software has been supported by the National Institute of Health (NIH) for over two decades. The pipeline presented in this paper performs three key steps: (1) import and apply rigid co-registration of post-implantation Computed Tomography (CT) or post-CT with pre-implantation Magnetic Resonance Imaging (pre-MRI), (2) post-CT image segmentation and semi-automatic detection of sEEG contacts using GARDEL 9 , which has been integrated as a Brainstorm plugin, and (3) automatic anatomical labeling of contacts using standard and commonly used brain anatomy templates and atlases. Integrating this pipeline into Brainstorm brings the best of both worlds: GARDEL’s automation and Brainstorm’s multimodal data compatibility, and rich library of visualization and advanced analysis tools at both sensor and source level 6 . This sEEG-Suite tool facilitates reproducible research, supports clinical workflows, and accelerates sEEG-based investigations of invasive brain recordings.
Open AccesssEEG-Suite: An Interactive Pipeline for Semi-Automated Contact Localization and Anatomical Labeling with Brainstorm
Summary: Stereoelectroencephalography (sEEG) is a critical tool for mapping epileptic networks in patients with drug-resistant epilepsy. Accurate localization and labeling of sEEG contacts are essential for identifying the seizure onset zone (SOZ) and ensuring optimal resective surgery. Traditional methods for localizing and labeling sEEG contacts rely on manual processing, which is prone to human error and variability. To address these challenges, we developed and integrated a semi-automatic sEEG contact localization and labeling pipeline within Brainstorm 1 , an open-source software platform for multimodal brain imaging analysis 2–8 , widely adopted in the neuroscience community with over 50,000 registered users and an active online user forum . The software has been supported by the National Institute of Health (NIH) for over two decades. The pipeline presented in this paper performs three key steps: (1) import and apply rigid co-registration of post-implantation Computed Tomography (CT) or post-CT with pre-implantation Magnetic Resonance Imaging (pre-MRI), (2) post-CT image segmentation and semi-automatic detection of sEEG contacts using GARDEL 9 , which has been integrated as a Brainstorm plugin, and (3) automatic anatomical labeling of contacts using standard and commonly used brain anatomy templates and atlases. Integrating this pipeline into Brainstorm brings the best of both worlds: GARDEL’s automation and Brainstorm’s multimodal data compatibility, and rich library of visualization and advanced analysis tools at both sensor and source level 6 . This sEEG-Suite tool facilitates reproducible research, supports clinical workflows, and accelerates sEEG-based investigations of invasive brain recordings.
- 22 August 2025
- Published by Elsevier in Journal of Neuroscience Methods
- Vol. 423, 110552
Robust cortical thickness estimation in the presence of partial volumes using adaptive diffusion equation
- 22 August 2025
- Published by Elsevier in Journal of Neuroscience Methods
- Vol. 423, 110552
Robust cortical thickness estimation in the presence of partial volumes using adaptive diffusion equation
- Open Access
Modeling and Reversing Brain Lesions Using Diffusion Models
Brain lesions are abnormalities or injuries in brain tissue that are often detectable using magnetic resonance imaging (MRI), which reveals structural changes in the affected areas. This broad definition of brain lesions includes areas of the brain that are irreversibly damaged, as well as areas of brain tissue that are deformed as a result of lesion growth or swelling. Despite the importance of differentiating between damaged and deformed tissue, existing lesion segmentation methods overlook this distinction, labeling both of them as a single anomaly. In this work, we introduce a diffusion model-based framework for analyzing and reversing the brain lesion process. Our pipeline first segments abnormal regions in the brain, then estimates and reverses tissue deformations by restoring displaced tissue to its original position, isolating the core lesion area representing the initial damage. Finally, we inpaint the core lesion area to arrive at an estimation of the pre-lesion healthy brain. This proposed framework reverses a forward lesion growth process model that is well-established in biomechanical studies that model brain lesions. Our results demonstrate improved accuracy in lesion segmentation, characterization, and brain labeling compared to traditional methods, offering a robust tool for clinical and research applications in brain lesion analysis. Since pre-lesion healthy versions of abnormal brains are not available in any public dataset for validation of the reverse process, we simulate a forward model to synthesize multiple lesioned brain images.
Open AccessModeling and Reversing Brain Lesions Using Diffusion Models
Brain lesions are abnormalities or injuries in brain tissue that are often detectable using magnetic resonance imaging (MRI), which reveals structural changes in the affected areas. This broad definition of brain lesions includes areas of the brain that are irreversibly damaged, as well as areas of brain tissue that are deformed as a result of lesion growth or swelling. Despite the importance of differentiating between damaged and deformed tissue, existing lesion segmentation methods overlook this distinction, labeling both of them as a single anomaly. In this work, we introduce a diffusion model-based framework for analyzing and reversing the brain lesion process. Our pipeline first segments abnormal regions in the brain, then estimates and reverses tissue deformations by restoring displaced tissue to its original position, isolating the core lesion area representing the initial damage. Finally, we inpaint the core lesion area to arrive at an estimation of the pre-lesion healthy brain. This proposed framework reverses a forward lesion growth process model that is well-established in biomechanical studies that model brain lesions. Our results demonstrate improved accuracy in lesion segmentation, characterization, and brain labeling compared to traditional methods, offering a robust tool for clinical and research applications in brain lesion analysis. Since pre-lesion healthy versions of abnormal brains are not available in any public dataset for validation of the reverse process, we simulate a forward model to synthesize multiple lesioned brain images.
- Open Access
Optimizing electrode placement and information capacity for local field potentials in cortex
Recent neurosurgery advancements include improved stereotactic targeting and increased electrode contacts. This study introduces a subject-specific, in silico modeling tool for optimizing electrode placement and maximizing coverage with a variety of devices. The basis for optimization is the inherent information patterns of field potentials derived from dipolar sources. The approach integrates subject-specific MRI data with finite element modeling (FEM) used to simulate the sensitivity of subdural and intracortical devices. Sensitivity maps, or lead fields, from these models enable the comparison of different electrode placements, contact sizes, contact configurations, and substrate properties, which are often overlooked factors. One tool is a genetic algorithm that optimizes electrode placement by maximizing information capacity. Another is a sparse sensor method, Sparse Electrode Placement for Input Optimization (SEPIO), that selects the best sensor subsets for accurate source classification. We demonstrate several use cases for clinicians, engineers, and researchers. Overall, these open-source tools offer a quantitative framework to juxtapose devices in one’s neurosurgical armament or optimize device and contact placement. It may help users refine electrode coverage with low channel count devices and minimize invasive surgery burden. The study demonstrates that optimized electrode placement significantly improves the information capacity and signal quality of LFP recordings. The tools developed offer a valuable approach for refining neurosurgical techniques and enhancing the design of neural implants. Highlights A tool for simulating subject-specific local field potentials and electrode sensitivity. Optimized electrode placement enhances ROI source coverage, and signal quality. Sparse sensor-based classification boosts data quality without extra electrode cost. Unbiased comparisons of devices and contact arrangements.
Open AccessOptimizing electrode placement and information capacity for local field potentials in cortex
Recent neurosurgery advancements include improved stereotactic targeting and increased electrode contacts. This study introduces a subject-specific, in silico modeling tool for optimizing electrode placement and maximizing coverage with a variety of devices. The basis for optimization is the inherent information patterns of field potentials derived from dipolar sources. The approach integrates subject-specific MRI data with finite element modeling (FEM) used to simulate the sensitivity of subdural and intracortical devices. Sensitivity maps, or lead fields, from these models enable the comparison of different electrode placements, contact sizes, contact configurations, and substrate properties, which are often overlooked factors. One tool is a genetic algorithm that optimizes electrode placement by maximizing information capacity. Another is a sparse sensor method, Sparse Electrode Placement for Input Optimization (SEPIO), that selects the best sensor subsets for accurate source classification. We demonstrate several use cases for clinicians, engineers, and researchers. Overall, these open-source tools offer a quantitative framework to juxtapose devices in one’s neurosurgical armament or optimize device and contact placement. It may help users refine electrode coverage with low channel count devices and minimize invasive surgery burden. The study demonstrates that optimized electrode placement significantly improves the information capacity and signal quality of LFP recordings. The tools developed offer a valuable approach for refining neurosurgical techniques and enhancing the design of neural implants. Highlights A tool for simulating subject-specific local field potentials and electrode sensitivity. Optimized electrode placement enhances ROI source coverage, and signal quality. Sparse sensor-based classification boosts data quality without extra electrode cost. Unbiased comparisons of devices and contact arrangements.