TL;DR
HadBalance is a plug-and-play framework that introduces a unified, generalizable geometric prior for medical image segmentation based on Hadwiger’s theorem (area, perimeter, and Euler characteristic). To prevent these "near-convex" shape priors from over-regularizing complex, non-convex anatomies, the authors introduce a gradient-aware optimization strategy called Conflict-Aware Objective Balancing (CAOB) that dynamically eliminates competing gradient components and balances loss scales.
What Problem Does This Paper Address?
Deep learning has drastically advanced biomedical image segmentation, but models often struggle with structural consistency across different organs and imaging modalities. While incorporating geometric cues (like boundaries or topology) helps, most existing methods use task-specific priors that don't generalize well.
Many anatomical targets—such as the carotid lumen, polyps, or the optic disc—are globally "near-convex," meaning they are largely round or oval but contain minor local irregularities. However, medical datasets are highly shape-heterogeneous: perfectly near-convex structures often coexist with highly non-convex structures containing deep concavities.
If you uniformly apply a strict convexity prior across an entire dataset, the model will over-regularize the non-convex cases, washing out fine details and erasing genuine concavities. Standard linear scalarization (manually weighting the losses) fails to balance these trade-offs robustly without extensive, dataset-specific tuning.
Methods
The authors tackle this challenge using a two-pronged approach: a unified geometric descriptor and a conflict-aware optimization strategy.
1. Hadwiger Shape Priors
According to Hadwiger’s characterization theorem in integral geometry, any continuous, motion-invariant, and additive valuation on a 2D convex body can be fully described by a linear combination of three intrinsic volumes:
- Area ($A$)
- Perimeter ($P$)
- Euler Characteristic ($\chi$) (a topological invariant measuring connectivity/holes)
To make these discrete functionals usable in deep learning, the authors design differentiable surrogates using soft network predictions:
- Area is computed via multi-scale local average pooling.
- Perimeter is approximated using Gaussian smoothing followed by gradient magnitude calculations.
- Euler Characteristic is calculated using fixed-kernel CNN layers that count local $2 \times 2$ binary neighborhood configurations (bit-quads).
2. Conflict-Aware Objective Balancing (CAOB)
Instead of simply summing the segmentation loss and the three Hadwiger prior losses, the framework treats the standard segmentation loss as the primary anchor objective and routes all four losses through the CAOB module:
- Primary Gradient Projection (PGP): For each prior, PGP checks if its gradient conflicts with the primary segmentation gradient (i.e., has a negative cosine similarity). If a conflict exists, PGP projects out and deletes only the conflicting component, keeping the aligned information.
- Alpha-weight Gradient Balancing (AGB): Even without directional conflicts, different geometric scales can cause one prior (like the highly sensitive Euler characteristic) to dominate the gradient step. AGB solves a lightweight, constrained non-negative least-squares problem online to adaptively normalize and balance the remaining prior weights.
Datasets
The framework was evaluated on three representative public datasets covering different organs and modalities:
- CUBS (Carotid Ultrasound Boundary Study): Carotid lumen segmentation in ultrasound images.
- CVC-ClinicDB: Colonoscopy polyp segmentation in optical endoscopic frames.
- DRIONS-DB: Optic disc segmentation in retinal fundus images.
Key Insights and Ideas
- A Minimalist Basis for Geometry: Instead of inventing complex, task-specific loss functions for boundaries or holes, Hadwiger's theorem proves that just three simple metrics ($A, P, \chi$) provide a complete mathematical foundation for 2D global shape regularization.
- Priors are Sample-Dependent: The ablation studies revealed that simply adding Hadwiger priors via standard linear scalarization actually decreased performance on shape-heterogeneous datasets like CVC-ClinicDB. This proves that global geometric priors cannot safely be transferred across diverse medical datasets without conflict-aware optimization.
- Optimization over Gating: Rather than building complex auxiliary networks or heuristic gating mechanisms to classify whether an image contains a convex or non-convex shape, HadBalance solves the issue purely at the gradient level during backpropagation.
Key Results
HadBalance consistently outperformed standard segmentation backbones (UNet, nnUNet, TransUNet, SwinUNet) as well as specialized multi-task gradient optimization baselines (NASH, FairGrad).
- CVC-ClinicDB (Shape-Heterogeneous Polyps): HadBalance achieved a Dice Similarity Coefficient (DSC) of 94.41% and a Boundary F1-score (BFScore) of 75.07%, significantly outperforming the linear scalarization baseline (93.37% DSC, 73.43% BFScore) and specialized optimizers like NASH (65.86% BFScore).
- CUBS (Near-Convex Carotid Lumen): It boosted the top-performing TransUNet baseline to 86.35% DSC and 71.66% BFScore.
- DRIONS-DB (Optic Discs): It achieved 95.90% DSC and 92.25% IoU, outperforming the highly competitive nnUNet baseline.
Limitations and Future Work
The primary limitation acknowledged by the authors is the computational overhead during training. Because CAOB requires calculating per-objective gradients to detect conflicts, the framework must perform four separate backpropagations per mini-batch iteration (one for the segmentation loss and one for each of the three shape priors). The authors note that future work will focus on reducing this additional training cost to make the framework more efficient.
Summary updated