iMSCGnet: Iterative Multi-Scale Context-Guided Segmentation of Skin Lesion in Dermoscopic Images

Yujiao Tang, Zhiwen Fang, Shaofeng Yuan, Chang'an A. Zhan, Yanyan Xing, Joey Tianyi Zhou, Feng Yang

Introduction

Accurate skin lesion segmentation is a foundational requirement for computer-aided diagnosis (CAD) systems, particularly in the early detection of melanoma. However, dermoscopic images present significant challenges: lesions often exhibit fuzzy boundaries, low contrast relative to surrounding healthy skin, and high variability in color and texture. Standard Convolutional Neural Networks (CNNs), such as the widely used U-Net, frequently struggle with these ambiguous regions, resulting in fragmented or inaccurate segmentation masks.

To address these issues, this paper introduces iMSCGnet, an iterative, multi-scale context-guided neural network. By leveraging coarse segmentation maps as "context" across multiple spatial scales and refining predictions through an iterative process supported by a novel deep supervision loss function, the model achieves state-of-the-art performance across several major public datasets.

Proposed Methodology

The core of the proposed system is the Multi-Scale Context-Guided network (MSCGnet) and its iterative extension, iMSCGnet. The architecture is built upon three primary innovations:

1. Multi-Scale Context Fusion (CFs)

Unlike traditional methods that might only feed a prior mask into the input layer, MSCGnet processes the context image (a coarse segmentation mask) through its own dedicated encoder. These context features are then fused into the main image's encoder at every spatial scale via element-wise addition. This ensures that context guides the feature extraction process at both shallow (salient features) and deep (semantic features) levels.

2. Context-Based Attention Structure (CAs)

Down-sampling in encoders typically leads to information loss. To mitigate this in the decoding path, the authors developed the Context-based Attention structure (CAs). This module concatenates the context feature with a resized version of the original RGB dermoscopic image to generate attention weights. By re-introducing the raw image as an anchor, the network focuses on fine-grained visual details that might otherwise be lost during up-sampling.

Architecture of the proposed MSCGnet and the detailed Context-based Attention (CAs) module.

3. Iterative Mechanism and Deep Supervision

The iMSCGnet chains multiple MSCGnets together. An initial U-Net generates a coarse context mask, which is refined by successive MSCGnet stages. To train this pipeline effectively, the authors introduced a deep supervision loss function. It calculates Jaccard distance loss at intermediate encoding layers and final outputs, with loss weights increasing for later iterations. This teaches the model to progressively refine the mask while placing more "trust" in the later, more mature stages of the iteration.

Experimental Results and Analysis

The model was rigorously evaluated on four datasets: ISBI 2016, ISBI 2017, ISIC 2018, and PH2. The PH2 dataset was specifically used to test the model's generalization ability by testing on it after training on ISBI 2017.

Performance Benchmarks

iMSCGnet consistently outperformed state-of-the-art baselines, including FrCN and PA-Net:

  • ISBI 2017: Achieved a Jaccard Index (JA) of 77.75%.
  • ISIC 2018: Reached 81.91% on the strict Threshold Jaccard metric ($JA_{th}$), significantly higher than adversarial models like MobileGan (78.40%).
  • Generalization (PH2): Achieved 88.21% JA and 93.36% Dice (DI), surpassing the next best model by over 3.4% in JA.

Qualitative Comparison

Visual analysis demonstrates that iMSCGnet excels where standard models fail. While U-Net often produces noisy or incomplete masks in low-contrast scenarios, iMSCGnet produces cohesive, accurate segmentations that closely match the ground truth.

Qualitative comparison showing how iMSCGnet handles fuzzy boundaries and low contrast more effectively than a standard U-Net.

Key Insights and Discussion

  • The Necessity of Multi-Scale Context: Ablation studies revealed that injecting context at all layers is vital. Shallow-layer context helps identify the primary lesion area, while deep-layer context is necessary for resolving ambiguous boundaries.
  • RGB Anchoring: Re-introducing the raw RGB image into the attention module (CAs) prevents the segmentation mask from "drifting" during up-sampling, providing a visual ground truth that abstract feature maps lack.
  • Iterative Weighted Trust: The iterative approach is highly effective, but only when paired with weighted supervision. Penalizing early-stage errors less heavily allows the network to explore and refine without being constrained by initial noisy predictions.

Limitations and Future Work

Despite its performance, iMSCGnet introduces significant computational overhead due to the chaining of multiple networks, which may impact its suitability for real-time mobile deployment. Furthermore, the model's performance peaks at four iterations ($S=4$), suggesting a limit to the benefits of simple scaling. Future research could focus on optimizing the architecture through knowledge distillation or applying this multi-scale context approach to 3D medical imaging tasks.

Summary updated

BibTeX
@article{tang2020imscgnet,
  author = {Yujiao Tang and Zhiwen Fang and Shaofeng Yuan and Chang'an A. Zhan and Yanyan Xing and Joey Tianyi Zhou and Feng Yang},
  title = {{iMSCGnet: Iterative Multi-Scale Context-Guided Segmentation of Skin Lesion in Dermoscopic Images}},
  journal = {IEEE Access},
  year = {2020},
  doi = {10.1109/access.2020.2974512},
}
Figure