Abstract
Automated brain midline delineation is a critical task for assessing the severity of strokes and traumatic brain injuries. This paper introduces a robust three-stage framework that combines a specialized segmentation network, MD-Net, with dynamic programming (DP). MD-Net utilizes CoordConv layers for spatial awareness and a Cascade Atrous Convolution module to expand the receptive field, allowing the model to capture global anatomical context. The final stage employs DP to ensure the predicted midline is continuous and anatomically plausible. Evaluated on both in-house and public datasets (CQ500), the proposed method achieved a Hausdorff Distance (HD) of 2.26 mm, significantly outperforming standard segmentation baselines and demonstrating strong generalization capabilities.
Introduction
In clinical neurology, the "midline shift" (MLS)—the displacement of the brain's central structures—serves as a vital indicator of intracranial pressure. A shift exceeding 5 mm often signals a medical emergency requiring immediate surgical intervention. Historically, automated tools relied on detecting specific anatomical landmarks to define the midline. However, in cases of severe trauma or stroke, these landmarks are frequently deformed or entirely obscured. Furthermore, standard deep learning segmentation models often produce "broken" or jittery lines that lack anatomical consistency. This research addresses these challenges by proposing a method that is robust to severe deformations and guaranteed to produce a smooth, continuous midline.
Methodology
The proposed pipeline consists of three distinct stages: Alignment, Segmentation, and Pathfinding.
1. Alignment
To account for variations in head positioning during CT scans, the system first employs a standard UNet to identify rough midline endpoints. An affine transformation is then applied to rotate and center the brain into a standardized coordinate space, facilitating more accurate downstream processing.
2. Segmentation (MD-Net)
The core of the framework is MD-Net, a modified UNet architecture featuring two primary enhancements:
- CoordConv Layers: Unlike standard convolutions, which are translation-invariant, CoordConv adds extra channels containing normalized $x$ and $y$ coordinates. This provides the model with explicit spatial information, helping it learn that the midline should generally reside near the center of the image.
- Cascade AtrousConv Module: Standard UNets have a limited receptive field. By utilizing dilated (atrous) convolutions, the authors expanded the receptive field to $620 \times 620$. This allows the network to perceive the entire brain context, which is essential for understanding global symmetry in distorted scans.
3. Pathfinding (Dynamic Programming)
Raw segmentation outputs often result in discontinuous blobs. To resolve this, the authors treat midline selection as a pathfinding problem. Dynamic programming is used to find the optimal path through the network's probability map by minimizing an energy function. This step mathematically guarantees a continuous and smooth midline from the top of the skull to the bottom.
Results and Discussion
The model was evaluated on an in-house dataset of 877 head CT scans and the public CQ500 dataset (235 scans). Performance was measured using Hausdorff Distance (HD) and Average Symmetric Surface Distance (ASD).
Quantitative Performance
On the in-house dataset, the proposed MD-Net with Dynamic Programming (MD-Net) achieved an HD of 2.26 mm and an ASD of 0.81 mm*, a substantial improvement over the baseline UNet (HD: 3.54 mm, ASD: 1.60 mm). The model also generalized well to the CQ500 dataset, maintaining an HD of 2.58 mm.
Qualitative Comparison
Visual analysis confirms that while standard models like UNet++ often produce fragmented or anatomically incorrect midlines in severe cases, the proposed framework maintains a clean, plausible curve even under extreme brain compression.
Key Insights
- Global Context: Expanding the receptive field via Cascade AtrousConv is crucial for handling heavily distorted anatomy where local features are unreliable.
- Spatial Awareness: CoordConv significantly reduces localization errors by providing the network with explicit coordinate data.
- Geometric Constraints: Using DP as a post-processing step ensures anatomical validity by "connecting the dots" of the probability map into a single, continuous path.
Conclusion
This paper presents a robust framework for automated brain midline delineation that overcomes the limitations of traditional landmark-based and standard segmentation methods. By integrating spatial awareness, global context, and geometric constraints, the method provides accurate measurements even in clinically challenging cases. Future work will explore extending the framework to 3D volumes and integrating real-time shift calculation for emergency triage.
Summary updated