A Hybrid CNN and Metadata Stacking Ensemble for Skin Cancer Triage Under Extreme Class Imbalance
This is an unofficial English summary of my MSc thesis "Hybrid CNN Architecture for Skin Cancer Classification" (University of Sannio, Department DEMM, academic year 2024/2025). The full thesis is written in Italian and is available at https://doi.org/10.5281/zenodo.17177699. This summary has not been peer-reviewed. The work addresses skin cancer triage on 3D total-body photography under extreme class imbalance, using the ISIC 2024 SLICE-3D dataset (401,059 lesion crops, 0.098% malignant). I built a stacked ensemble in which an EfficientNet-B0 CNN, trained on lesion images with class-balanced sampling and heavy augmentation, is combined with three metadata learners (a feed-forward neural network, a random forest and gradient boosting). A ridge-penalised logistic meta-learner is trained on out-of-fold predictions to avoid leakage, after removing metadata fields that encode the diagnosis or the output of external classifiers. On a stratified hold-out set of 100,265 lesions (98 malignant), the stacked model reaches a ROC-AUC of 0.953, above every single base learner, with an average precision of 0.095 (about 97 times the chance level) and well-calibrated probabilities. At the Youden-optimal threshold it detects 85 of 98 malignant lesions (recall 0.867, specificity 0.918) while flagging 8.2% of lesions for review. The model is framed as a triage and decision-support tool, not as a diagnostic device. The paper also discusses the limitations of the current evaluation, including image-level rather than patient-level splits, thresholds selected on the hold-out set and an issue in the feature-exclusion list found during a code review. The reported results should therefore be considered preliminary until a corrected re-run is completed. Code, notebooks and evaluation outputs: https://github.com/mat126/skin-cancer-classification Use of generative AI: this summary was partially generated with the assistance of a generative AI tool (Claude, by Anthropic), starting from the Italian thesis, the code repository and its outputs. Methods, experiments and results are my own and come from the thesis; I reviewed the text and take full responsibility for its content.
Authors
- Matteo Morella
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24556043
- Primary Topic
- Cutaneous Melanoma Detection and Management
- Type
- preprint