Two-Stage Deep Neural Network via Ensemble Learning for Melanoma Classification

Jiaqi Ding, Jie Song, Jiawei Li, Jijun Tang, Fei GuoFrontiers in Bioengineering and Biotechnology 2022

Abstract

Melanoma is a skin disease with a high fatality rate, where early diagnosis is critical for patient survival. This study proposes a two-stage ensemble method for the automatic classification of dermoscopy images into malignant melanoma, benign nevi, and seborrheic keratosis. The framework first utilizes a U-Net architecture to segment and crop the lesion area, focusing the model on relevant pathology. Subsequently, an ensemble of five deep learning models (Inception-v3, DenseNet169, ResNet50, Inception-ResNet-v2, and Xception) enhanced with Squeeze-and-Excitation (SE) blocks is employed. A novel locally connected ensemble layer integrates these results. Testing on the ISIC 2017 challenge dataset yielded an accuracy of 90.9%, demonstrating the effectiveness of deep feature integration for clinical diagnosis.

Introduction

Melanoma remains the most lethal form of skin cancer. While dermoscopy provides a non-invasive window for early detection, the process is inherently subjective and heavily reliant on clinical expertise. Automated classification systems face significant challenges, primarily the high visual similarity between malignant and benign lesions, and the presence of distracting artifacts such as hair, skin folds, and medical rulers.

Dermoscopy images showing the high visual similarity between malignant melanoma, benign nevi, and seborrheic keratosis.

Methodology

The proposed system employs a two-stage pipeline designed to maximize feature extraction efficiency and minimize noise.

Stage 1: Lesion Segmentation and Preprocessing

To address the issue of background noise, a U-Net model is used to generate a binary mask of the skin lesion. The original image is then cropped and resized based on this mask. This ensures that the classification models focus exclusively on the lesion's morphological features rather than peripheral artifacts.

Dermoscopy image containing noise such as hair and medical rulers, necessitating a segmentation-first approach.

Stage 2: Enhanced Ensemble Classification

The classification stage utilizes an ensemble of five state-of-the-art neural networks: Inception-v3, DenseNet169, ResNet50, Inception-ResNet-v2, and Xception. Two primary innovations enhance this stage:

  1. Squeeze-and-Excitation (SE) Blocks: These blocks are integrated into each model to provide a channel-wise attention mechanism, emphasizing informative features and suppressing redundant ones.
  2. Locally Connected Ensemble Layer: Instead of traditional voting or averaging, a custom neural network with locally connected layers integrates the outputs. This allows the system to learn specialized weights for each class prediction, preventing cross-class feature interference.

Results and Discussion

The framework was evaluated using the ISIC 2017 challenge dataset (2,750 images). The two-stage approach significantly outperformed single-stage models, with segmentation alone boosting accuracy from 69.8% to 79.1% in baseline tests. The final ensemble achieved a peak accuracy of 90.9% and a multi-class precision of 0.769, surpassing the top-performing entries of the original ISIC 2017 challenge.

While the system shows high overall accuracy, the authors note that recall for positive melanoma samples requires further improvement to minimize false negatives in clinical settings. Future research will focus on optimizing recall and incorporating clinical diagnostic rules (e.g., ABCD criteria) directly into the network architecture.

Conclusion

This study demonstrates that a two-stage approach combining precise lesion segmentation with a learned ensemble of attention-enhanced models provides a robust solution for melanoma classification. The high accuracy achieved on standard benchmarks suggests a strong foundation for future computer-aided diagnosis tools in dermatology.

Summary updated

BibTeX
@inproceedings{ding2022two,
  author = {Jiaqi Ding and Jie Song and Jiawei Li and Jijun Tang and Fei Guo},
  title = {{Two-Stage Deep Neural Network via Ensemble Learning for Melanoma Classification}},
  booktitle = {Frontiers in Bioengineering and Biotechnology},
  year = {2022},
  doi = {10.3389/fbioe.2021.758495},
}
Figure