CortexODE: Learning Cortical Surface Reconstruction by Neural ODEs

Qiang Ma, Liu Li, Emma C. Robinson, Bernhard Kainz, Daniel Rueckert, Amir Alansary

TL;DR

This paper introduces CortexODE, a novel deep learning framework for reconstructing the human brain's cortical surface from MRI scans. By leveraging neural Ordinary Differential Equations (ODEs), CortexODE learns a smooth, "diffeomorphic" deformation that guarantees the prevention of self-intersections, a common issue in surface reconstruction. This approach enables highly accurate cortical surface reconstruction in under 5 seconds, significantly outperforming traditional methods in speed and maintaining competitive accuracy.

What Problem Does This Paper Address?

Accurately reconstructing the intricate 3D surface of the cerebral cortex from MRI scans is crucial for understanding brain structure and function, especially in large-scale neuroimaging studies. Traditional methods, like FreeSurfer, are often time-consuming (hours per subject) and can struggle with variations across different age groups (e.g., neonates vs. adults). Existing deep learning approaches have improved speed but often lack theoretical guarantees against surface self-intersections, which can lead to inaccurate measurements of cortical features like thickness and volume. This paper aims to bridge this gap by developing a fast, accurate, and theoretically sound method for cortical surface reconstruction.

Methods

The core innovation is CortexODE, a framework that uses Neural Ordinary Differential Equations (Neural ODEs) to model the deformation of a surface. Instead of directly predicting a final surface, CortexODE learns a continuous "flow" that transforms an initial surface into the target white matter (WM) or pial surface.

Here's a breakdown of the key components:

  • Neural ODEs for Diffeomorphic Flow: The trajectory of each point on the surface is modeled as an ODE. The derivative of each point's position is predicted by a Lipschitz-continuous neural network (the "deformation network"). This Lipschitz continuity is crucial as it provides a theoretical guarantee that the trajectories of different points will never intersect, thus preventing self-intersections.
  • Integrated Pipeline: CortexODE is integrated into an end-to-end pipeline:
  • 3D U-Net: Predicts a white matter segmentation from the input MRI.
  • Distance Transform & Topology Correction: Converts the segmentation into a signed distance function (SDF) and then applies a fast, re-implemented topology correction algorithm to ensure the surface has a spherical topology (no holes or handles).
  • Initial Surface Extraction: Uses the Marching Cubes algorithm to extract an initial mesh from the corrected SDF.
  • CortexODE Deformation: Two CortexODE models are trained: one to shrink the initial surface to the WM surface, and another to expand an inflated WM surface to the pial surface.
  • Fast Topology Correction: The authors re-implemented and optimized a standard topology correction algorithm, achieving a 20x speedup.

Datasets

The CortexODE pipeline was trained and evaluated on three publicly available, large-scale neuroimaging datasets:

  • ADNI (Alzheimer's Disease Neuroimaging Initiative): Primarily elderly subjects (55-90 years).
  • HCP (Human Connectome Project) Young Adult: Young adults (22-36 years).
  • dHCP (developing Human Connectome Project): Neonates (25-45 weeks).

This diverse age range highlights the pipeline's robustness.

Key Insights and Ideas

  • Theoretical Guarantees for Self-Intersection Prevention: The use of Lipschitz-continuous neural ODEs is a significant theoretical advancement. It moves beyond empirical checks for self-intersections to a principled approach that guarantees their avoidance, crucial for reliable downstream analysis.
  • Speed-Accuracy Trade-off Reimagined: CortexODE achieves both high accuracy and remarkable speed (<5 seconds for the entire pipeline), challenging the notion that speed comes at the cost of accuracy in surface reconstruction.
  • Diffeomorphic Flow as a Natural Representation: Modeling surface deformation as a continuous, diffeomorphic flow naturally preserves surface properties and avoids topological issues, making it a powerful paradigm for this task.
  • Importance of Initial Surface Quality: The paper demonstrates that even with a powerful deformation model like CortexODE, the quality of the initial surface (derived from segmentation and topology correction) significantly impacts the final reconstruction.

Key Results

  • Speed: The CortexODE pipeline reconstructs cortical surfaces in under 5 seconds, a dramatic improvement over traditional methods that take hours.
  • Accuracy: CortexODE achieves state-of-the-art geometric accuracy, with an average symmetric surface distance (ASSD) of <0.2mm and very low Hausdorff distances (HD).
  • Self-Intersections: The framework significantly reduces self-intersections, reporting <0.4% in pial surfaces, a substantial improvement over other learning-based methods.
  • Robustness: The pipeline performs consistently well across different age groups (neonates, young adults, elderly) and datasets (dHCP, HCP, ADNI).
  • Test-Retest Reliability: CortexODE demonstrates superior reliability compared to FreeSurfer and other learning-based methods, meaning reconstructions of the same subject are highly consistent.

Limitations and Future Work

  • Mesh Resolution Limits: While CortexODE theoretically prevents self-intersections, the finite resolution of polygon meshes can still introduce some self-intersections, especially in complex sulcal regions. The authors suggest this is a limitation inherent to mesh-based representations.
  • Impact of SIFs on Cortical Features: The paper shows that even a small number of self-intersections can significantly affect the measurement of cortical thickness and volume, underscoring the importance of minimizing them.
  • Future Work: The authors suggest exploring different ODE solvers and step sizes to further balance accuracy, efficiency, and mesh quality. They also highlight the potential for CortexODE to be applied to other geometric deep learning tasks. The code is publicly available, encouraging further research and application.

Summary updated

BibTeX
@article{ma2023cortexode,
  author = {Qiang Ma and Liu Li and Emma C. Robinson and Bernhard Kainz and Daniel Rueckert and Amir Alansary},
  title = {{CortexODE: Learning Cortical Surface Reconstruction by Neural ODEs}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2023},
  doi = {10.1109/tmi.2022.3206221},
}
Figure