Abstract
Medical image segmentation is a critical yet challenging task, particularly for rare diseases where data is scarce and class imbalance is prevalent. This paper introduces a two-pronged approach to enhance segmentation accuracy: a novel "Cross Distribution Weighting" (CDW) strategy for loss functions and an Autoencoder Post-Processing (APP) unit designed to refine segmentation masks. Applied to dermatomyositis histopathology slides and public skin lesion datasets, the proposed method demonstrates a significant improvement in Intersection over Union (IoU), exceeding state-of-the-art results by over 12%.
Introduction
The precise identification of pathological features in medical imaging—such as tumors, lesions, or inflammatory cells—is fundamental to modern diagnostics. However, automated segmentation often struggles with several inherent difficulties:
- Class Imbalance: Healthy tissue (background) typically dominates the image, overshadowing the smaller regions of interest (foreground).
- Low Contrast: Pathological features can be visually similar to surrounding tissues, leading to ambiguous boundaries.
- Data Scarcity: Rare conditions, such as the autoimmune disease dermatomyositis, lack the massive annotated datasets available for more common cancers.
This research focuses on overcoming these hurdles by refining the training process and adding a post-segmentation "denoising" step.
Methodology
The researchers utilized standard U-Net and U-Net++ architectures with ResNet encoders (ranging from ResNet-18 to ResNet-101). Two primary innovations were introduced to these base models:
Autoencoder Post-Processing (APP)
The APP unit is a small autoencoder composed of stacked linear layers that follows the initial segmentation network. It acts as a "refiner" or "spell-checker" for the generated masks. During training, the model optimizes both the standard segmentation loss and a Mean Squared Error (MSE) loss between the autoencoder’s output and the ground truth. This dual-loss approach encourages the model to learn more robust features. Crucially, the APP unit is only active during training; it is bypassed during inference, ensuring that the accuracy gains do not increase computational latency in clinical settings.
Optimized Loss Weighting
To address class imbalance, the study implemented Cross Distribution Weights (CDW) and Median Frequency Weights. By "swapping" weights—using the background-to-foreground pixel ratio to weight the foreground and vice versa—the model is forced to penalize minority class misclassifications more heavily. This ensures the AI prioritizes the detection of rare but critical features.
Experimental Setup and Datasets
The methodology was validated across three distinct datasets:
- Dermatomyositis Dataset: The primary focus, consisting of high-resolution histopathology images from muscle biopsies.
- Dermofit Dataset: A collection of 1,300 high-quality RGB images of skin lesions across ten categories.
- ISIC 2017 Challenge Dataset: A public dataset for skin lesion segmentation characterized by significant obscurations like hair and low contrast.
Results and Discussion
The proposed enhancements yielded substantial performance gains. On the primary dermatomyositis task, the method achieved an average IoU improvement of 12.26% for U-Net and 12.04% for U-Net++ compared to previous state-of-the-art models.
Key findings include:
- Activation Functions: ReLU was found to be more effective than GeLU within the APP unit for these specific medical tasks.
- Generalization: The consistent improvements across the Dermofit and ISIC datasets suggest that the APP and weighting strategies are broadly applicable beyond a single disease type.
- Efficiency: The ability to achieve these gains without increasing inference time makes the approach highly suitable for real-time computer-aided diagnosis (CAD) tools.
Conclusion
By combining intelligent loss weighting with an autoencoder-based refinement step, this research provides a robust framework for improving medical image segmentation. While future work is needed to address geographic biases and further expand dataset diversity, these results represent a significant step forward in the automated diagnosis of rare autoimmune conditions.
Summary updated