Simulation of Brain Resection for Cavity Segmentation Using Self-Supervised and Semi-Supervised Learning

Fernando Pérez-García, Roman Rodionov, Ali Alim-Marvasti, Rachel Sparks, John S. Duncan, Sébastien OurselinarXiv 2020 · DOI · arXiv

TL;DR

This paper introduces a novel self-supervised learning approach that automates the segmentation of brain resection cavities from postoperative MRIs by simulating surgeries on unlabeled preoperative images. By training a 3D convolutional neural network (CNN) on these synthetically generated cavities, the method achieves near-human performance without requiring a single manually annotated training label.

What Problem Does This Paper Address?

For patients with drug-resistant focal epilepsy, resective surgery (removing the seizure-causing brain tissue) can be life-changing. However, only 40% to 70% of patients achieve complete seizure freedom. To understand why some surgeries fail, researchers perform retrospective quantitative analyses to correlate what was removed with patient outcomes.

The bottleneck? To do this, researchers must precisely segment the "resection cavity" on postoperative MR images. Doing this manually is incredibly tedious, time-consuming, and highly subjective, leading to significant variation between different human experts. While deep learning models (like CNNs) are excellent at automated image segmentation, they typically require massive amounts of manually labeled data to train. This paper tackles the data scarcity problem by generating realistic, synthetic training data from unlabeled preoperative scans.

Methods

The authors developed a fully automatic pipeline to simulate resection cavities on preoperative $T_1$-weighted MR images on the fly during training.

The simulation process follows these key steps:

  1. Shape Generation: A spherical geodesic polyhedron is deformed using Simplex noise to create a natural-looking, irregular cavity boundary.
  2. Positioning and Scaling: The synthetic cavity is randomly scaled (using volumes sampled from real surgical data) and positioned within a randomly selected voxel of cortical gray matter, determined via an automated brain parcellation.
  3. Anatomical Constraints: To prevent the cavity from unrealistically spilling into the wrong hemisphere or outside the skull, it is masked to a single "resectable hemisphere."
  4. Realistic Texturing: Postoperative cavities naturally fill with cerebrospinal fluid (CSF). The algorithm samples the intensity distribution of the patient's own ventricles to fill the synthetic cavity with a realistic CSF texture, applying a Gaussian filter at the borders to mimic partial volume effects.
Fig. 1. Resection simulation. (a) Sphere surface mesh before (S, green) and after (Sδ, magenta) perturbation. S and Sδ (top); intersection of S and Sδ with a plane of the simplex noise volume, generated only for visualization purposes, with values between −1 (blue) and 1 (red). Radial displacement is proportional to the noise at each ver- tex vi ∈V (b) Transformed mesh SE (c) Resectable hemisphere mask MR (d) Simu- lated resection label YR (e) Simulated resected image XR (f) Original image X.

A lightweight variant of a 3D U-Net—optimized with dilated convolutions to reduce the parameter count by 100x—was trained on these simulated images using the open-source TorchIO library.

Datasets

The study leveraged both public datasets and a newly curated clinical dataset:

  • EPISURG (New): A clinical dataset curated by the authors containing 431 postoperative and 269 preoperative MR images from epilepsy patients at the National Hospital for Neurology and Neurosurgery (NHNN). A subset of 133 images was manually annotated by an expert (Rater A) for testing, with parts co-annotated by Raters B and C to measure human variability.
  • Public Datasets: A total of 1,813 preoperative MR images pooled from IXI (566), ADNI (467), and OASIS (780) were used to provide a massive pool of unlabeled brains for resection simulation.

Key Insights and Ideas

  • Quantity and Variety Beat Real Data: A model trained on a small dataset of real manual annotations performed poorly compared to models trained on thousands of fake simulated resections.
  • The Domain Gap is Bridgable: Even though the public datasets consisted of different patient cohorts scanned on different machines, the features learned from simulated resections transferred robustly to real clinical postoperative scans.
  • Diminishing Returns of Semi-Supervised Learning: The authors experimented with a semi-supervised approach, using their self-supervised model to "pseudo-label" unlabeled real postoperative scans and adding them back into training. Surprisingly, this provided almost no performance boost over simply scaling up the number of purely synthetic simulations.

Key Results

The models were evaluated using the Dice Score (DSC), which measures the overlap between the model's prediction and the human ground truth (100 indicates a perfect match).

  • Supervised Baseline: Trained on the limited manual annotations, it achieved a mediocre median DSC of 65.3.
  • Best Self-Supervised Model: Trained purely on simulated resections across the full public dataset and EPISURG pre-op images, it achieved a median DSC of 81.7.
  • Human Performance: For comparison, the inter-rater agreement between the human experts was 84.0.

Our best automated model performs remarkably close to the human consensus, completely bypassing the need for manual training labels.

Comparison of Dice Scores across different training configurations

Limitations and Future Work

While highly successful, the simulation model still struggles with a few edge cases:

  • Small Resections: Very small cavities can look identical to normal brain folds (sulci), leading to false negatives.
  • Unanticipated Intensities: Real resection cavities sometimes contain blood clots or artifacts that deviate from pure CSF intensity, confusing the network.
  • Brain Shift: During real surgery, the brain physically deforms and shifts after skull opening—an effect the current rigid simulation does not model.

The authors note that future iterations will focus on incorporating biomechanical models to simulate brain shift and introducing more complex textures (like blood clots) into the synthetic cavities.

Summary updated

Abstract

Resective surgery may be curative for drug-resistant focal epilepsy, but only 40% to 70% of patients achieve seizure freedom after surgery. Retrospective quantitative analysis could elucidate patterns in resected structures and patient outcomes to improve resective surgery. However, the resection cavity must first be segmented on the postoperative MR image. Convolutional neural networks (CNNs) are the state-of-the-art image segmentation technique, but require large amounts of annotated data for training. Annotation of medical images is a time-consuming process requiring highly-trained raters, and often suffering from high inter-rater variability. Self-supervised learning can be used to generate training instances from unlabeled data. We developed an algorithm to simulate resections on preoperative MR images. We curated a new dataset, EPISURG, comprising 431 postoperative and 269 preoperative MR images from 431 patients who underwent resective surgery. In addition to EPISURG, we used three public datasets comprising 1813 preoperative MR images for training. We trained a 3D CNN on artificially resected images created on the fly during training, using images from 1) EPISURG, 2) public datasets and 3) both. To evaluate trained models, we calculate Dice score (DSC) between model segmentations and 200 manual annotations performed by three human raters. The model trained on data with manual annotations obtained a median (interquartile range) DSC of 65.3 (30.6). The DSC of our best-performing model, trained with no manual annotations, is 81.7 (14.2). For comparison, inter-rater agreement between human annotators was 84.0 (9.9). We demonstrate a training method for CNNs using simulated resection cavities that can accurately segment real resection cavities, without manual annotations.
BibTeX
@misc{perezgarcia2020simulation,
  author = {Fernando Pérez-García and Roman Rodionov and Ali Alim-Marvasti and Rachel Sparks and John S. Duncan and Sébastien Ourselin},
  title = {{Simulation of Brain Resection for Cavity Segmentation Using Self-Supervised and Semi-Supervised Learning}},
  year = {2020},
  eprint = {2006.15693},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.15693},
}
Figure