Abstract
Accurate skin lesion segmentation is vital for early melanoma detection but often requires computationally intensive models unsuitable for mobile or resource-constrained environments. We present MedLiteNet, an ultra-lightweight hybrid architecture that integrates the local feature extraction of Convolutional Neural Networks (CNNs) with the global context of Vision Transformers (ViTs). By employing a "local–global–boundary" triple-coupled design, MedLiteNet achieves a competitive Dice score of 0.905 on the ISIC 2018 dataset with only 3.2 million parameters—a 90% reduction compared to state-of-the-art models like TransUNet. With an inference time of 1ms, MedLiteNet offers a high-performance solution for real-time medical imaging on mobile devices.
Introduction
The segmentation of skin lesions from dermoscopic images is a foundational step in computer-aided diagnosis. Current deep learning approaches face a significant trade-off between efficiency and contextual understanding. Standard CNNs, such as U-Net, are efficient at capturing local textures but lack a global receptive field, often failing to account for large-scale deformations.
Conversely, Vision Transformers (ViTs) excel at modeling global dependencies but are computationally heavy and struggle with fine-grained boundary localization. Furthermore, the deployment of these models in clinical settings is often hindered by the requirement for high-end GPUs. MedLiteNet aims to bridge this gap by providing high-precision segmentation within a "mobile-scale" footprint.
Methods
MedLiteNet introduces a triple-coupled architecture designed to balance local efficiency, global context, and boundary precision:
- Lightweight Encoder: The model replaces heavy backbones with Mobile Inverted Bottleneck (MBConv) blocks, significantly reducing parameters while maintaining robust feature representation.
- Cross-Scale Local-Global Block: To avoid the quadratic complexity of Transformers, self-attention is applied only at the bottleneck layer. This allows the model to capture a holistic view of the lesion where the resolution is lowest and the semantic information is densest.
- Boundary-Aware Attention (BAA): To address blurred edges, a dedicated module uses Laplacian-like filters to extract and emphasize boundary features, sharpening the final segmentation contours.
- Enhanced Decoder: The architecture incorporates Atrous Spatial Pyramid Pooling (ASPP) for multi-scale robustness and Spatial-Channel Squeeze-and-Excitation (SCSE) blocks to suppress noise from artifacts like skin hair or lighting.
Experimental Setup
The model was rigorously evaluated on the ISIC 2018 skin lesion segmentation benchmark, which consists of 2,594 dermoscopic images. These images present significant challenges, including varying resolutions and the presence of artifacts like hair follicles and measurement rulers.
Results and Discussion
MedLiteNet demonstrates exceptional efficiency without sacrificing accuracy. On the ISIC 2018 test set, the model achieved a Dice score of 0.897 (0.904 in an ensemble) and an IoU of 0.821.
Key performance metrics include:
- Compactness: Only 3.2M parameters, compared to 105M for TransUNet and 28M for FAT-Net.
- Speed: Raw inference latency is approximately 1ms for a 256x256 image on an NVIDIA RTX A6000.
- Robustness: Qualitative analysis shows superior performance in handling irregular borders and low-contrast regions where traditional CNNs often fail.
Limitations and Future Work
While highly effective, the model still faces challenges with extremely ambiguous boundaries where lesion color closely matches the skin. Additionally, dense artifacts can occasionally cause discontinuities in the generated masks. Future directions include exploring multi-task learning and extending the architecture to 3D medical volumes or other modalities like ultrasound.
Conclusion
MedLiteNet bridges the gap between high-performance segmentation and resource efficiency. By strategically combining CNNs and Transformers with explicit boundary modeling, it provides a viable path for deploying advanced diagnostic tools on mobile medical devices.
Summary updated