Recon-all-clinical: Cortical surface reconstruction and analysis of heterogeneous clinical brain MRI

Karthik Gopinath, Douglas N. Greve, Colin Magdamo, Steve Arnold, Sudeshna Das, Oula Puonti, Juan Eugenio IglesiasarXiv 2024

TL;DR

Recon-all-clinical is a novel hybrid neuroimaging pipeline that performs cortical surface reconstruction, parcellation, and thickness estimation on clinical brain MRI scans of any resolution, orientation, or contrast (T1, T2, FLAIR). By combining a deep learning model trained via domain randomization with classical geometric processing, it unlocks millions of existing, heterogeneous clinical scans for large-scale neuroimaging research without requiring network retraining.

What Problem Does This Paper Address?

Surface-based analysis of the cerebral cortex is foundational to modern neuroimaging, enabling researchers to measure cortical thickness, map neurodegeneration, and perform precise brain parcellation. However, standard tools like FreeSurfer’s flagship recon-all pipeline are notoriously picky: they demand high-resolution (~1mm), isotropic, T1-weighted scans with excellent gray-white matter contrast.

This requirement creates a massive barrier. The vast majority of brain MRIs collected worldwide are clinical scans, which are highly heterogeneous. To save time and maximize diagnostic utility, clinical scans often feature thick, anisotropic slices (e.g., 5–6mm gaps), vary in orientation (axial, coronal, sagittal), and utilize diverse pulse sequences like T2 or FLAIR. Standard pipelines fail completely on this "in the wild" data, effectively locking out massive clinical datasets from research on rare diseases, aging, and underrepresented populations.

Methods

The authors introduce recon-all-clinical, a hybrid pipeline that marries the flexibility of deep learning with the topological guarantees of classical geometry processing.

Overview of the recon-all-clinical training and testing workflow.

The method consists of three core components:

  1. Domain Randomization (Data Generation): Instead of training on real images, the authors use a generative model to synthesize training data on-the-fly from high-resolution brain segmentations and pre-computed Signed Distance Functions (SDFs). The generator applies random spatial deformations (affine and non-linear warps) and completely randomizes image intensities, slice spacing (1–9mm), slice thickness (1–5mm), noise, and bias fields. This forces the network to learn underlying anatomy rather than specific scanner physics or pulse sequences.
  2. Machine Learning Module: A 3D U-Net takes the synthesized, low-resolution/anisotropic scans (upsampled via trilinear interpolation to 1mm isotropic space) and predicts the isotropic SDFs for the white matter (WM) and pial surfaces.
  3. Geometry Processing Module: Rather than relying on the network to output a final mesh (which often introduces topological defects like holes or self-intersections), the pipeline feeds the predicted SDFs into FreeSurfer’s time-tested, physics-based mesh deformation algorithms. This ensures the final output is a topologically correct, genus-0 surface mesh compatible with standard FreeSurfer downstream analysis workflows.

Additionally, the pipeline integrates SynthSeg for robust automated brain segmentation and SynthSR to generate super-resolution T1-contrast images purely for visual review.

Figure 1: Outputs of our recon-all-clinical pipeline: The pipeline accepts an MRI scan of any contrast and resolution as input and generates multiple outputs similar to the recon-all Freesurfer pipeline Fischl et al. (1999): (a) Volumetric Labeling and T1 contrast synthesis and super-resolution obtained from SynthSegBillot et al. (2023a) and SynthSR Iglesias et al. (2023), (b) Dis- tance prediction and Surface Extraction, (c) Surface Atlas Registration, and (d) Parcellation, followed by the computation of statistical analysis in a common coordinate frame.

Datasets

The pipeline was trained and rigorously evaluated across several major datasets:

  • Training Pool: 500 T1-weighted scans from the Human Connectome Project (HCP) and 500 from the Alzheimer's Disease Neuroimaging Initiative (ADNI), used exclusively to extract the base label maps and ground-truth SDFs for synthetic data generation.
  • Simulated Clinical Dataset (SCD): 30 high-resolution scans (15 HCP, 15 ADNI) artificially downsampled to various slice thicknesses (2–6mm) across axial, coronal, and sagittal planes to evaluate performance across controlled resolutions and modalities (T1, T2, FLAIR).
  • MIRIAD Dataset: A publicly available test-retest dataset containing scans from 46 individuals (23 Alzheimer's patients, 23 controls) imaged at two distinct time points to evaluate repeatability.
  • MGH Clinical Dataset: A massive, highly heterogeneous real-world dataset comprising 19,006 clinical scans from 1,367 distinct patients (ages 18–90) at Massachusetts General Hospital.

Key Insights and Ideas

  • The Power of Synthetic Variety: By exposing the CNN to extreme, physically impossible contrast variations and severe downsampling during training, the network becomes entirely agnostic to the actual MRI modality. It performs remarkably well on T2 and FLAIR scans despite never seeing a real one during training.
  • Implicit Representations Over Binary Masks: Predicting continuous Signed Distance Functions (SDFs) allows the network to mitigate partial volume effects (where a single voxel contains multiple tissue types), leading to much smoother and more accurate surface boundaries than voxel-based binary segmentations can provide.
  • Hybrid is Better Than Pure Deep Learning: While recent end-to-end deep learning models can deform meshes in seconds, they require massive hardware (e.g., multiple 80GB GPUs) and often struggle with topological consistency. Leveraging classical geometry processing at the tail end guarantees anatomically valid surfaces while keeping training requirements modest.

Key Results

  • Loss Function Optimization: The authors found that minimizing an L2 loss function yielded a tighter error distribution and fewer outliers than L1 or Huber losses, consistently maintaining a cortical thickness estimation error below 0.25 mm across various resolutions.
  • Robustness to Low Resolution: Surface reconstruction errors (Absolute Average Distance) remained remarkably low—under 0.4 mm for T1 and T2 scans even when slice thickness was degraded to 4 mm.
  • Superior Test-Retest Reliability: On the MIRIAD dataset, recon-all-clinical achieved a lower mean error and tighter error distribution across the majority of cortical parcels compared to the standard, research-grade FreeSurfer recon-all pipeline.
  • Clinical Utility at Scale: When applied to the 19,006 real-world clinical scans, the pipeline successfully captured well-established neurobiological trends, such as age-related cortical thinning and the characteristic thinness of the pericalcarine cortex, demonstrating its readiness for large-scale epidemiological studies.

Limitations and Future Work

Despite its breakthrough capabilities, the authors note a clear trade-off: as slice thickness increases toward 6mm, cortical thickness measurements naturally become noisier. Attempting to resolve sub-millimeter anatomical changes (e.g., 0.1mm thinning) from 6mm voxels introduces inherent physical limitations.

Additionally, because the pipeline relies on classical geometric optimization steps on the CPU, processing still takes 1–2 hours per brain. Future work will focus on integrating uncertainty estimations to flag low-confidence regions in highly degraded scans and exploring accelerated alternatives to the classical geometric modules to improve computational throughput.

Summary updated

Abstract

Surface-based analysis of the cerebral cortex is ubiquitous in human neuroimaging with MRI. It is crucial for cortical registration, parcellation, and thickness estimation. Traditionally, these analyses require high-resolution, isotropic scans with good gray-white matter contrast, typically a 1mm T1-weighted scan. This excludes most clinical MRI scans, which are often anisotropic and lack the necessary T1 contrast. To enable large-scale neuroimaging studies using vast clinical data, we introduce recon-all-clinical, a novel method for cortical reconstruction, registration, parcellation, and thickness estimation in brain MRI scans of any resolution and contrast. Our approach employs a hybrid analysis method that combines a convolutional neural network (CNN) trained with domain randomization to predict signed distance functions (SDFs) and classical geometry processing for accurate surface placement while maintaining topological and geometric constraints. The method does not require retraining for different acquisitions, thus simplifying the analysis of heterogeneous clinical datasets. We tested recon-all-clinical on multiple datasets, including over 19,000 clinical scans. The method consistently produced precise cortical reconstructions and high parcellation accuracy across varied MRI contrasts and resolutions. Cortical thickness estimates are precise enough to capture aging effects independently of MRI contrast, although accuracy varies with slice thickness. Our method is publicly available at https://surfer.nmr.mgh.harvard.edu/fswiki/recon-all-clinical, enabling researchers to perform detailed cortical analysis on the huge amounts of already existing clinical MRI scans. This advancement may be particularly valuable for studying rare diseases and underrepresented populations where research-grade MRI data is scarce.
BibTeX
@misc{gopinath2024recon,
  author = {Karthik Gopinath and Douglas N. Greve and Colin Magdamo and Steve Arnold and Sudeshna Das and Oula Puonti and Juan Eugenio Iglesias},
  title = {{Recon-all-clinical: Cortical surface reconstruction and analysis of heterogeneous clinical brain MRI}},
  year = {2024},
  eprint = {2409.03889},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.03889},
}

Loading related content...

Figure