Introduction
Melanoma represents the most lethal form of skin cancer, yet its prognosis is significantly improved through early detection. Dermatologists typically employ dermoscopy—a non-invasive, magnified imaging technique—to identify suspicious lesions. However, manual interpretation of these images is inherently subjective, time-intensive, and often lacks reproducibility due to the subtle visual differences between malignant melanomas and benign nevi.
To facilitate objective and efficient diagnosis, the development of automated computer-aided diagnosis (CAD) systems is essential. The foundational step in such systems is lesion segmentation: the precise delineation of the diseased skin region from healthy tissue. This task is complicated by the vast diversity in lesion size, shape, color, and texture, as well as external factors like hair, lighting variations, and low contrast between the lesion and surrounding skin. This paper presents a robust segmentation approach using a deep fully convolutional network (FCN) designed for the ISIC 2018 Challenge.
Methodology
Network Architecture
The proposed model is a deep FCN inspired by the U-Net architecture, comprising approximately 28 million parameters. The network follows an encoder-decoder structure designed to capture both high-level semantic features and fine-grained spatial details.
As shown in the architecture diagram, the model utilizes:
- Convolution (CV) Blocks: Each block consists of a 3x3 convolution, batch normalization, and a ReLU activation function to ensure stable training and non-linearity.
- Down-sampling (DS) Blocks: These blocks reduce spatial dimensions using 2x2 max-pooling to extract abstract features.
- Up-sampling (US) Blocks: These blocks restore spatial resolution through 2x2 up-convolutions, followed by CV blocks to refine the boundaries.
The final layer employs a 1x1 convolution and a sigmoid activation to generate a probability map of the lesion.
Hybrid Loss Function
Standard pixel-wise classification losses, such as Binary Cross-Entropy (BCE), often fail to account for the global structure of the segmented object. To address this, the authors implemented a hybrid loss function combining BCE with the Dice Coefficient. While BCE ensures pixel-level accuracy, the Dice loss directly optimizes for the spatial overlap between the predicted mask and the ground truth. This combination encourages the network to produce more cohesive and anatomically plausible segmentations.
Dual-Threshold Post-processing
Raw probability maps from deep networks can often contain fragmented regions or noise. To mitigate this, a dual-thresholding strategy was employed. A high threshold ($t_h = 0.8$) is first used to identify a high-confidence "core" region. Simultaneously, a lower threshold ($t_l = 0.5$) identifies broader candidate regions. The final segmentation mask is determined by selecting the candidate region that encompasses the high-confidence core, effectively filtering out isolated, low-confidence artifacts caused by hair or specular reflection.
Experimental Setup
Dataset
The model was trained and evaluated using the ISIC 2018 Challenge Dataset (Task 1). The training set originally contained 2,594 dermoscopic images. Upon manual inspection, the authors identified and removed four images with poor-quality or non-continuous ground truth masks, resulting in a refined training set of 2,590 images. All images were resized to 384x512 pixels to maintain a consistent 3:4 aspect ratio.
Training and Ensembling
To enhance generalization, the authors utilized an ensemble of five models. Each model was trained on a different 80/20 split of the training data. During inference, the posterior probability maps from all five models were averaged to produce the final prediction.
Results and Discussion
The performance was measured using the Jaccard index (Intersection over Union). The ISIC challenge enforced a strict evaluation metric: any prediction with a Jaccard index below 0.65 was assigned a score of zero for that specific image.
On the 100-image validation set, the five individual models achieved Jaccard scores ranging from 0.724 to 0.749. The ensemble approach further stabilized these results, providing a robust solution for the diverse images found in the 1,000-image test set. The dual-thresholding technique proved particularly effective in maintaining mask continuity in the presence of visual artifacts.
Conclusion
This work demonstrates the efficacy of deep fully convolutional networks for automated skin lesion segmentation. By integrating a hybrid loss function and a spatial-prior-based post-processing step, the proposed method achieves high overlap with ground truth masks. Future improvements could focus on boundary-aware loss functions to better handle the "fuzzy" edges characteristic of many skin lesions and exploring model compression techniques to enable real-time clinical deployment.
Summary updated