Abstract
Dermatologists often diagnose or rule out early melanoma by evaluating follow-up dermoscopic images of skin lesions to detect morphological changes over time. However, most existing automated diagnostic algorithms rely on single time-point images, potentially leading to misdiagnosis in borderline cases where temporal context is crucial. This study proposes a novel framework for automated early melanoma diagnosis using sequential dermoscopic images. The method involves three key steps: rigid alignment of sequential images to preserve physical scale, a spatio-temporal network to capture visual and difference-based features, and an early diagnosis module utilizing sequential context aggregation and temporal knowledge distillation. Evaluated on a dataset of 179 serial imaging sequences from 122 patients, the model achieved a diagnostic accuracy of 63.69%, significantly outperforming the 54.33% average of twelve clinicians. Notably, the model correctly diagnosed 60.7% of melanomas at the first follow-up visit, compared to only 32.7% by clinicians. These results suggest that temporal AI models can identify high-risk lesions earlier in the disease process, potentially redefining early melanoma detection.
Introduction: The Challenge of the "Borderline" Lesion
Early-stage melanoma is notoriously difficult to catch because it often lacks the classic "textbook" features of malignancy, such as extreme asymmetry or jagged borders. In clinical practice, when a dermatologist is unsure, they don't just guess; they monitor the lesion over months or years, looking for subtle "evolution"—changes in size, shape, or color that signal malignant transformation.
Despite the clinical importance of these changes, most existing AI models for skin cancer are "one-and-done" systems that analyze a single image in isolation. This approach ignores the vital temporal context of how a lesion is evolving. Developing AI for sequential data is challenging; serial images are often captured under different lighting or from slightly different angles, making it difficult for a computer to distinguish between actual biological growth and artifacts of the imaging process.
Methodology: A Three-Step Spatio-Temporal Framework
The proposed framework addresses these challenges through a specialized pipeline designed to mimic and enhance the clinical monitoring process.
1. Rigid Lesion Alignment
To compare images over time accurately, the system first aligns them using Euclidean (rigid) transformations. Unlike standard "similarity" transforms that might resize images to fit a template, this method avoids scaling. This ensures that any measured growth in the lesion reflects actual biological change rather than digital resizing, which is critical for detecting the subtle expansion characteristic of early melanoma.
2. Spatio-Temporal Network (STN)
The core of the model is a two-stream architecture. One stream processes the raw visual appearance (Spatial features), while the other focuses on the differences between consecutive images (Temporal features). A "Feature Difference Extraction" (FDE) module allows the network to compare abstract neural features across time points. This helps the model spot subtle shifts in texture and internal structure that might be imperceptible to the human eye.
3. Early Diagnosis Module
The final module employs two specific techniques to improve decision-making:
- Sequential Context Aggregation (SCA): An attention-based mechanism that allows the model to "look back" at previous images in the sequence to inform its current prediction.
- Temporal Knowledge Distillation (TKD): During training, the model is penalized if its early-stage predictions vary significantly from its late-stage predictions (where the diagnosis is often clearer). This "distills" the confidence of the final diagnosis back to the earlier time points, encouraging the model to commit to a correct diagnosis as soon as possible.
Experimental Setup and Dataset
The study utilized a specialized dataset of 179 serial dermoscopic imaging sequences (730 images total) from 122 patients. This is a particularly "hard" dataset because every lesion included was originally deemed suspicious enough by clinicians to require long-term monitoring, meaning they were all borderline cases. The dataset consisted of 90 benign lesions and 89 malignant melanomas, all histologically confirmed via biopsy. The models were built using ImageNet pre-trained ResNet-34 architectures as the backbone.
Results and Key Insights
The proposed model demonstrated a clear advantage over both standard AI architectures and human experts.
- Superior Accuracy: The model achieved 63.69% accuracy, outperforming the average of 12 clinicians (7 experienced dermatologists and 5 registrars), who scored 54.33%.
- Earlier Detection: On the very first follow-up image, the AI correctly identified 60.7% of melanomas. In contrast, clinicians caught only 32.7% at that same early stage.
- The Power of Evolution: Results confirmed that temporal change is a more reliable indicator of early melanoma than static appearance. Models using sequences consistently outperformed single-snapshot models.
- Ablation Success: Adding interconnected temporal features boosted the Area Under the Curve (AUC) from 71.7% to 74.3%, proving that the model needs to explicitly calculate differences between images rather than just viewing them side-by-side.
Discussion and Conclusion
The findings suggest that AI can significantly reduce the subjectivity inherent in monitoring borderline lesions. While humans are often prone to "over-diagnosis" (high sensitivity but low specificity) to avoid missing a cancer, the AI demonstrated a more balanced approach, significantly improving specificity and reducing unnecessary biopsies.
The primary limitation of this study is the dataset size. While 179 sequences is significant for this niche area, it is small compared to the massive datasets used for general skin-classifier AIs. Future work will focus on integrating non-image clinical data, such as patient history, and testing the model in real-world clinical environments where image quality may vary. Ultimately, this spatio-temporal approach represents a shift from static image classification to a more dynamic, clinically aligned method of early cancer detection.
Summary updated