Journal Paper: Elsevier Medical Image Analysis (Jan 2027)
Conference Paper: IEEE 22nd International Symposium on Biomedical Imaging (Apr 2025)
The cortical sulci of the posterior medial cortex play a crucial role in cognitive and behavioral functions. However, automatic labeling of these sulci is challenging due to severe class imbalance (i.e., only a small portion of the cortex is labeled) and high neuroanatomical variability. To tackle these challenges, we propose an effective spherical deformation-based sulcal labeling method that automatically enlarges the sulcal regions of interest (ROIs) while contracting unlabeled regions. This allows the proposed method to capture detailed sulcal patterns more effectively and suppress confounding analogous patterns. Specifically, we introduce a generic expansion function with a generalized condition for homeomorphic isotropic deformation. Based on this, we propose a parameterizable exponential expansion design which provides flexibility to fully accommodate non-uniform spatial densities of sulcal ROIs. We also propose an end-to-end
$SO(3)$ -equivariant model to enhance its expressive power while improving generalization capability under data scarcity. Furthermore, we offer an explicit regularization on the extent of deformation to provide the stable enlargement of ROIs while preventing the unintended contraction. In the experiments, we show that the proposed method outperforms baseline methods on both adult and pediatric cohorts, particularly in small and variable ROIs. The most notable improvement of 11.16% in Dice score was observed in the smallest sulcus, which is hominoid-specific and implicated in cognition and different neurodevelopmental and clinical disorders. Strong negative correlations between performance gains and ROI size confirm its suitability for labeling small sulci.
A schematic overview of the proposed method. The geometric features
$F$ are mapped onto the unit sphere, where the learnable deformation center$P$ and angle$\omega$ are estimated, leading to the estimation of the isotropic deformation field$\phi$ . The estimated$\phi$ is applied to the geometric features$F$ and the deformed features$F \circ \phi$ serve as input to the sulcal labeling architecture$f_{\text{label}}$ . The inverse of the deformation field$\phi^{-1}$ recovers the original morphology of the labeled output, then recovered labels are mapped back to the original cortical surface. Notably, the Deformation Center & Angle Estimation module and the sulcal labeling architecture ($f_{\text{label}}$ ) are designed to be$SO(3)$ -equivariant, ensuring this property for the entire pipeline.
Clone the following repositories:
git clone https://github.com/Shape-Lab/SPHARM-Net.git
git clone https://github.com/Shape-Lab/LDSPHARM-Net.gitCreate environment and install the requirements under conda:
conda create -n ldspharm-net python=3.10
conda activate ldspharm-netConfigure the environment with specific compiler and toolchain versions (gcc=12.4.0, g++=12.4.0, and NVCC=13.1):
conda install -c conda-forge gcc_linux-64==12.4.0 gxx_linux-64==12.4.0
conda install -c nvidia cuda-toolkit==13.1
conda env config vars set \
CUDA_HOME="$CONDA_PREFIX" \
CUDAHOSTCXX="$CONDA_PREFIX/bin/x86_64-conda-linux-gnu-g++" \
CC="$CONDA_PREFIX/bin/x86_64-conda-linux-gnu-gcc" \
CXX="$CONDA_PREFIX/bin/x86_64-conda-linux-gnu-g++"
conda activate ldspharm-netInstall PyTorch and dependencies:
pip install torch==2.10.0+cu130 --extra-index-url https://download.pytorch.org/whl/cu130
cd SPHARM-Net && pip install .
cd ../LDSPHARM-Net && pip install --no-build-isolation .This project utilizes publicly available neuroimaging datasets and expert manual annotations:
- HCP (Human Connectome Project)
- NORA (Neurodevelopment of Reasoning Ability)
- PMC (Posterior Medial Cortex) Manual Annotation
| Variable | Description |
|---|---|
${subj_dir} |
Path to the FreeSurfer reconstruction output directory containing native surface geometries (e.g., surf/?h.sphere, surf/?h.curv) |
${data_dir} |
Path to the directory storing re-tessellated spherical mesh data encoded in binary format (e.g., features/100206.?h.aug0.curv.dat) |
${fold} |
Fold index for cross-validation which specifies the partition of data split (e.g., 1) |
Cortical surfaces (?h.white) along with their spherical parameterizations (?h.sphere) and geometric features (?h.curv) are extracted from structural T1 MRI scans using the standard FreeSurfer recon-all command:
recon-all -subject <SUBJECT> -sd ${subj_dir} -i ./T1.nii.gz -all -threads 1 To establish a unified canonical spherical space across subjects and enable equivariant spherical processing, geometric features are re-tessellated onto a semi-regular icosahedral subdivision grid using the SPHARM-Net pipeline. The resulting resampled geometric features are saved as binary-encoded data files (.dat) in ${data_dir}.
To mitigate the data scarcity issue, we augmented the input features by sampling intermediate deformations during spherical registration toward the target template ($FREESURFER_HOME/average/?h.curvature.buckner40.filled.desikan_killiany.2010-03-25.gcs).
The deformation center ./frechet is located in ${data_dir}.
# CPU Version (Recommended)
python ./scripts/frechet.py \
--data-dir ${data_dir} \
--classes 0 1 2 3 4 5 6 7 8 \
--epochs 200 \
--out-dir ${data_dir}/frechet \
--seed 0 \
--no-cuda \
--det
# GPU Version
python ./scripts/frechet.py \
--data-dir ${data_dir} \
--classes 0 1 2 3 4 5 6 7 8 \
--epochs 200 \
--out-dir ${data_dir}/frechet \
--seed 0 \
--gpu 0 \
--detpython ./scripts/train.py \
--data-dir ${data_dir} \
--classes 0 1 2 3 4 5 6 7 8 \
--fold ${fold} \
--hemi lh \
--learning-rate 0.01 \
--method exp \
--k -0.5 \
--delta 0.30 \
--gamma 500 \
--loss dl \
--gpu 0 \
--aug 15 \
--epochs 20 \
--in-ch curv sulc iH \
--seed 0 \
--log-dir ./logs \
--ckpt-dir ./logs \
--detpython ./scripts/inference.py \
--subj-dir ${subj_dir} \
--hemi lh \
--native-sphere sphere \
--ckpt ./logs/best_model_fold${fold}.pth \
--out-dir ./output \
--gpu 0 \
--no-cc \
--seed 0 \
--detWe work hard to share our code for better reproducible research. Please cite the following paper if you use (part of) our code for your research, including data preparation, neural networks, inference, utilities, etc.:
@article{lee2027isotropic,
title={Isotropic spherical region enlargement and background contraction for sulcal labeling},
author={Lee, Seunghwan and Son, Jiwon and Lee, Seungeun and Willbrand, Ethan H and Parker, Benjamin J and Bunge, Silvia A and Weiner, Kevin S and Lyu, Ilwoo},
journal={Medical Image Analysis},
volume={115},
pages={104303},
year={2027},
doi={10.1016/j.media.2026.104303},
}
@inproceedings{lee2025extensive,
title={Extensive spherical region enlargement with isotropic deformation for sulcal labeling},
author={Lee, Seunghwan and Son, Jiwon and Lee, Seungeun and Willbrand, Ethan H and Parker, Benjamin J and Weiner, Kevin S and Lyu, Ilwoo},
booktitle={2025 IEEE 22nd International Symposium on Biomedical Imaging (ISBI)},
pages={1--5},
year={2025},
doi={10.1109/ISBI60581.2025.10981062},
}

