Source-linked AI summary
ConDSeg: A General Medical Image Segmentation Framework via Contrast-Driven Feature Enhancement
Mengqi Lei, Haochen Wu, Xinhua Lv, Xin Wang
TL;DR
Medical-image segmentation is challenged by ambiguous boundaries and co-occurrence that can mislead models. ConDSeg combines robust encoder training, feature decoupling and contrast-guided fusion, and size-specific decoding; it reports state-of-the-art performance across five datasets and three modalities.
Problem
Soft boundaries, poor illumination, and low contrast obscure foreground-background distinctions, while co-occurrence can lead models to learn misleading patterns.
Source: Introduction · p. 1Method
ConDSeg uses consistency-based encoder training, decouples features into foreground, background, and uncertainty, then applies contrast-guided fusion and size-specific decoding.
Source: Introduction · p. 2, Network Architecture · p. 3Results
ConDSeg achieves state-of-the-art performance across five medical-image datasets covering three modalities.
Source: Introduction · p. 2Takeaways & Limitations
The framework addresses boundary ambiguity and co-occurrence across the evaluated medical-image segmentation tasks.
Source: Introduction · p. 2
Abstract
from arXiv · showhide
Medical image segmentation plays an important role in clinical decision making, treatment planning, and disease tracking. However, it still faces two major challenges. On the one hand, there is often a ``soft boundary'' between foreground and background in medical images, with poor illumination and low contrast further reducing the distinguishability of foreground and background within the image. On the other hand, co-occurrence phenomena are widespread in medical images, and learning these features is misleading to the model's judgment. To address these challenges, we propose a general framework called Contrast-Driven Medical Image Segmentation (ConDSeg). First, we develop a contrastive training strategy called Consistency Reinforcement. It is designed to improve the encoder's robustness in various illumination and contrast scenarios, enabling the model to extract high-quality features even in adverse environments. Second, we introduce a Semantic Information Decoupling module, which is able to decouple features from the encoder into foreground, background, and uncertainty regions, gradually acquiring the ability to reduce uncertainty during training. The Contrast-Driven Feature Aggregation module then contrasts the foreground and background features to guide multi-level feature fusion and key feature enhancement, further distinguishing the entities to be segmented. We also propose a Size-Aware Decoder to solve the scale singularity of the decoder. It accurately locate entities of different sizes in the image, thus avoiding erroneous learning of co-occurrence features. Extensive experiments on five medical image datasets across three scenarios demonstrate the state-of-the-art performance of our method, proving its advanced nature and general applicability to various medical image segmentation scenarios. Our released code is available at \url{https://github.com/Mengqi-Lei/ConDSeg}.
Introduction
ConDSeg targets ambiguous boundaries and misleading co-occurrence in medical images with a framework combining robust feature learning, foreground-background contrast, and size-specific decoding. The paper reports state-of-the-art performance across five datasets and three modalities.
Introduction
- Medical-image segmentation is difficult because soft boundaries, poor illumination, and low contrast obscure foreground-background distinctions, while co-occurrence can mislead models.Source: Introduction · p. 1
- Consistency Reinforcement trains the encoder on original and strongly augmented images, maximizing agreement between predicted masks to improve robustness under varied lighting and color conditions.Source: Introduction · p. 2
- Semantic Information Decoupling separates encoder features into foreground, background, and uncertainty regions, with training designed to reduce uncertainty and improve mask precision.Source: Introduction · p. 2
- ConDSeg achieves state-of-the-art performance across five medical-image datasets covering three modalities.Source: Introduction · p. 2
- Contrast-Driven Feature Aggregation uses foreground-background contrast to guide multilevel feature fusion, while the Size-Aware Decoder predicts entities of different sizes separately to address co-occurrence interference.Source: Introduction · p. 2
Related Works
Prior medical-image segmentation work has improved encoder-decoder architectures and addressed boundary ambiguity with boundary-focused modules. The section also identifies co-occurrence as a source of misleading contextual reliance and inaccurate predictions.
Related Works
- Encoder-decoder methods have advanced through skip connections, multiscale context, edge features, auxiliary text supervision, and Transformer encoders.Source: Related Works · p. 2
- Boundary-focused methods add boundary prediction, boundary-sensitive losses, or edge-guided features, but the review says they do not fundamentally reduce uncertainty in ambiguous regions.Source: Related Works · p. 2
- Co-occurring structures can encourage models to rely on contextual associations, so a solitary polyp may be predicted as multiple polyps.Source: Related Works · pp. 2–3
Methodology
ConDSeg uses a two-stage encoder-decoder pipeline: consistency-based encoder pretraining is followed by feature decoupling, contrast-guided fusion, and size-specific decoding.
Network Architecture
- The first stage uses Consistency Reinforcement to preliminarily train the encoder for robustness to weak illumination and low contrast; the second fine-tunes it at a lower learning rate.Source: Network Architecture · p. 3
- The ResNet-50 encoder extracts four feature levels, and SID decouples the deepest feature into foreground, background, and uncertainty information.Source: Network Architecture · p. 3
- CDFA fuses encoder feature levels under foreground-background guidance, after which level-specific decoders locate entities by size and fuse their outputs into the final mask.Source: Network Architecture · p. 3
Improving Boundary Distinction
Consistency Reinforcement trains the encoder to produce consistent masks for original and strongly augmented images, supporting feature extraction across adverse imaging conditions. Semantic Information Decoupling separates encoder features into foreground, background, and uncertainty representations, with training constraints that reduce uncertainty.
Consistency Reinforcement
- Consistency Reinforcement compares predictions from original and strongly augmented images, using mask losses and a consistency loss to improve encoder robustness across lighting and contrast changes.The consistency loss alternately binarizes one prediction as a reference for BCE against the other, avoiding the numerical instability associated with KL and JS divergence for probabilities near 0 or 1.Source: Consistency Reinforcement · pp. 3–4
Semantic Imformation Decoupling
- Semantic Information Decoupling maps encoder features into foreground, background, and uncertainty branches, whose predictions are constrained toward complementary pixel categories.The foreground and background predictions are optimized toward the ground truth and its negation, while the three masks are constrained to be complementary.Source: Semantic Imformation Decoupling · p. 4
- Area-ratio penalty terms weight foreground and background losses to give smaller entities more attention during training.The penalties are calculated from prediction-area ratios and are intended to improve loss stability.Source: Semantic Imformation Decoupling · p. 4
- Complementarity and branch-specific accuracy constraints encourage the model to reduce uncertainty regions while strengthening foreground and background features.The complementarity loss assigns each pixel exclusively to foreground, background, or uncertainty.Source: Semantic Imformation Decoupling · pp. 4–5
Overcoming Co-occurrence
ConDSeg addresses co-occurrence errors through contrast-guided feature aggregation and size-specific decoding. CDFA uses foreground and background features to guide multilevel fusion, while the decoder assigns different entity scales to separate paths.
Overcoming Co-occurrence
- ConDSeg avoids TGANet’s tendency to predict multiple polyps when a single polyp appears, using CDFA and the Size-Aware Decoder to address co-occurrence.The comparison uses Grad-CAM visualizations on Kvasir-SEG examples.Source: Overcoming Co-occurrence · p. 5
Contrast-Driven Feature Aggregation
- CDFA uses decoupled foreground and background features to guide multilevel feature fusion and enhance key features for distinguishing entities from complex backgrounds.Local attention weights derived from foreground and background features aggregate neighboring features within a K × K window.Source: Contrast-Driven Feature Aggregation · p. 5
Size-Aware Decoder
- The Size-Aware Decoder assigns smaller entities to shallow features and larger entities to deeper features, then fuses predictions from three size-specific decoders.The shallow features carry more fine-grained information, while deeper features contain more global information and higher-level semantics.Source: Size-Aware Decoder · p. 6
Overall Optimization and Training Process
ConDSeg uses two training stages: the first enhances encoder feature extraction and robustness, and the second optimizes the full model with a lower learning rate for the encoder.
Overall Optimization and Training Process
- ConDSeg training has two stages: encoder enhancement followed by optimization of the entire model.The second stage uses a lower learning rate for the encoder.Source: Overall Optimization and Training… · p. 6
- The first stage focuses on improving the encoder’s feature extraction capability and robustness to adverse conditions.Source: Overall Optimization and Training… · p. 6
- In the second stage, the encoder uses a lower learning rate while the entire model is optimized.Source: Overall Optimization and Training… · p. 6
Experiments
ConDSeg is evaluated on five public datasets spanning three medical image modalities and is reported to achieve the best segmentation performance on all five. Training-strategy and module ablations also favor the complete two-stage framework with the proposed modules.
Experimental Setup
- Experiments cover five public datasets across three modalities, use 256 × 256 images, and evaluate mIoU, mDSC, Recall, and Precision.The default encoder is ResNet-50; the study also reports that other backbones can be used.Source: Experimental Setup · p. 6
Comparison with Other State-of-the-Art
- ConDSeg achieves the best segmentation performance on all five evaluated datasets among the compared state-of-the-art methods.Source: Comparison with Other State-of-the-Art · p. 7
- On Kvasir-SEG, the complete two-stage ConDSeg achieves the fastest convergence and best performance, while one-stage training reaches an advanced level.Figure 5 compares training convergence curves; one-stage denotes training from scratch, and two-stage denotes training with CR-pretrained weights.Source: Comparison with Other State-of-the-Art · p. 7, Figure 5 · p. 7
Training Strategy
- Ablations report that CR improves encoder feature extraction and robustness, and that two-stage training with CR in the first stage achieves the best results.The five settings compare direct training, CR, and two-stage variants with or without CR in the first stage.Source: Training Strategy · p. 7, Table 3 · p. 7
Proposed Modules
- On GlaS, adding SID and CDFA incrementally improves mIoU and mDSC, with both metrics optimal when the SA-Decoder completes the architecture.The ablation baseline removes SID, replaces CDFA with ordinary convolutions, and uses a single-scale decoder.Source: Proposed Modules · p. 7, Table 4 · p. 7
Conclusion
ConDSeg addresses soft boundaries and co-occurrence through contrast-driven feature enhancement and a decoder designed for entities of different sizes. It achieves state-of-the-art performance across five datasets and three medical-imaging modalities.
Conclusion
- ConDSeg targets soft boundaries and co-occurrence phenomena that challenge medical image segmentation.The framework is presented as a general medical image segmentation approach.Source: Conclusion · p. 7
- Consistency Reinforcement trains the encoder for robustness to adverse illumination and low contrast, while Semantic Information Decoupling separates foreground, background, and uncertainty features.The decoupling module is intended to reduce uncertainty during training.Source: Conclusion · p. 7
- Contrast-Driven Feature Aggregation uses foreground-background contrast to guide multi-level feature fusion and key-feature enhancement.The Size-Aware Decoder localizes entities of different sizes.Source: Conclusion · p. 7
- ConDSeg achieves state-of-the-art performance across five medical image datasets spanning three modalities.The authors present this result as evidence of the framework's general applicability.Source: Conclusion · p. 7
Supplementary Material
The supplementary material reports dataset protocols and additional tests of thresholds, training choices, module settings, speed, encoders, and a 3D adaptation. It also includes a feature visualization for SID.
Dataset
- Experiments cover five datasets across three modalities, using stated train-validation or train-validation-test splits for each dataset.Kvasir-SEG uses an 880/120 split; Kvasir-Sessile 156/20/20; GlaS 85/80; ISIC-2016 900/379; and ISIC-2017 2000/150/600.Source: Dataset · p. 10, Table 5 · p. 11
Supplementary Ablation Experiments
- A threshold near 0.5 performs best on ISIC-2016; higher thresholds risk over-segmentation and lower thresholds under-segmentation.The threshold binarizes masks during training and the final network output during inference.Source: Supplementary Ablation Experiments · p. 10, Figure 6 · p. 10
- On Kvasir-Sessile, Lcons gives Net0 the most stable convergence curve and better performance than K-L and J-S divergence.Figure 7 compares convergence curves for the three loss functions.Source: Supplementary Ablation Experiments · p. 10, Figure 7 · p. 10
- On Kvasir-SEG, increasing stage-1 training epochs improves performance initially, then results essentially saturate from 50 to 100 epochs.The reported comparison covers 5, 10, 20, 50, and 100 stage-1 epochs.Source: Supplementary Ablation Experiments · p. 10, Table 6 · p. 10
- On Kvasir-Sessile, CDFA performs well at tested window sizes 1, 3, 5, and 7, with its best performance at K=3.A larger window does not necessarily improve performance.Source: Supplementary Ablation Experiments · p. 10, Table 7 · p. 10
- The SID t-SNE visualization contrasts features trained with versus without the auxiliary head and its associated loss constraints.The columns show different images, with green for foreground, blue for background, and red for uncertainty features.Source: Supplementary Ablation Experiments · p. 10, Figure 8 · p. 11
- On an NVIDIA GeForce RTX 4090, ConDSeg runs at 59.6 fps, which the authors report meets real-time segmentation needs.The comparison of model inference speeds is presented in Table 8.Source: Supplementary Ablation Experiments · p. 11, Table 8 · p. 11
- Supplementary tests vary the encoder on ISIC-2017 and adapt ConDSeg to 3D Synapse using multiclass CE loss and 2D slices.The encoder comparison includes VGG-19, ResNet-18, ResNet-34, ResNet-50, and PVT; the supplied passages do not state the outcomes of these tests.Source: Supplementary Ablation Experiments · p. 11, Table 9 · p. 11, Table 10 · p. 11
Supplementary Visualizations
Supplementary visualizations compare segmentation predictions across modalities and provide structural diagrams for the auxiliary head, SA-Decoder, and ablation baseline.
Supplementary Visualizations
- Across three modalities, ConDSeg's visual predictions are reported as closest to ground truth and significantly better than the other shown methods.Figure 9 presents the segmentation-result comparison across datasets with different modalities.Source: Supplementary Visualizations · p. 11, Figure 9 · p. 12
Supplementary Module Structure Diagrams
- The supplementary diagrams show the auxiliary head in SID, the SA-Decoder, and the ablation-study baseline.Figures 10 and 11 label CAM and SAM as channel and spatial attention modules, respectively.Source: Supplementary Module Structure Diagrams · p. 13, Figure 11 · p. 13, Figure 10 · p. 13
Related papers
This paper cites
- ADAM: A METHOD FOR STOCHASTIC OPTIMIZATION2014
- U-Net: Convolutional Networks for Biomedical Image Segmentation2015
- Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization2016
- Attention U-Net: Learning Where to Look for the Pancreas2018
- Kvasir-SEG: A Segmented Polyp Dataset2019
- PraNet: Parallel Reverse Attention Network for Polyp Segmentation2020