Research · Technical Whitepaper

ScanSkinAI Cancer Flag Module: Training Methodology, Model Development & Robustness Evaluation

Published by Ivy AI Solutions Limited · 6 July 2026 · DOI: 10.5281/zenodo.21225287

  • Backbone

    DINOv2-Large ViT-L/14 @ 518×518

  • Skin tones evaluated

    Fitzpatrick I–VI

  • Lesion classes

    BCC · Melanoma · SCC · Benign/Other

  • Quality framework

    ISO 13485 · ISO 27001

What this research documents

This whitepaper sets out, in full technical detail, how the ScanSkinAI Cancer Flag Module is built, trained, and validated. It is the reference document behind our skin-cancer risk screening technology — the AI that assesses a lesion from an ordinary clinical photograph and flags whether it warrants closer attention from a clinician.

Rather than treating the model as a black box, the paper walks through every layer of its development: the curated data it learns from, the architecture that powers it, the engineering that keeps it stable in real-world conditions, and the independent evaluation that measures how well it performs across the full range of human skin tones.

The problem we set out to solve

Most skin-analysis AI is trained on dermoscopic images captured with specialist equipment. That works in a clinic, but it fails the moment a real person points a phone camera at a mole. ScanSkinAI is built for that real-world setting — standard clinical photographs, taken by non-experts, in uncontrolled lighting.

Designing for that reality demands more than a good model. It demands rigorous image-quality control, careful handling of rare-but-critical cancer types, and honest validation across every skin tone — not just the lighter phenotypes that dominate most public datasets. This paper documents how we address each of those challenges.

Inside the methodology

A two-tier architecture

A DINOv2-Large vision transformer (ViT-L/14) forms the visual backbone, operating at native 518×518 resolution to preserve fine lesion detail. It distinguishes basal cell carcinoma, melanoma, squamous cell carcinoma, and benign or other lesions. A second, bounded language layer then communicates the result responsibly — never issuing a diagnosis, always framing output as a screening signal.

Dermatologist-curated training data

The model learns from a fine-tuning corpus of clinical (not dermoscopic) photographs, curated and quality-controlled by dermatologists. A data-centric cleaning pipeline identifies and removes label noise, so the model trains on trustworthy examples rather than inheriting errors from raw datasets.

Protecting the rare cancers

Malignant classes like melanoma and SCC are far rarer than benign lesions in any real dataset — and missing them is the costliest error a screening tool can make. The paper details the class-imbalance strategy, weighted sampling, and progressive three-phase fine-tuning regimen used to keep the model sensitive to these minority classes.

Robustness for the real world

Image-quality gating at intake rejects unusable photos before they reach the model. Extensive augmentation during training and test-time augmentation at inference keep predictions stable across lighting, angle, and camera variation — the everyday conditions of consumer use.

Validation across all skin tones

Performance is measured on internal held-out data and through an independent dermatologist audit of production scans spanning Fitzpatrick skin types I through VI. Evaluating across the full tone range is central to the paper — not an afterthought.

Explainable and accountable

Grad-CAM and SHAP make the model's attention inspectable, so its reasoning can be reviewed rather than trusted blindly. The paper also lays out the full development and validation lifecycle and our roadmap for continued validation.

Built as a regulated, non-diagnostic screening aid

The Cancer Flag Module is positioned as a non-diagnostic screening and triage aid — it supports earlier attention and clinician review, and does not replace professional diagnosis. It is developed under an ISO 13485 and ISO 27001 quality framework and aligned with UKCA Class I and EU MDR requirements.

  • ISO 13485
  • ISO 27001
  • UKCA Class I
  • EU MDR aligned
  • Non-diagnostic

Frequently asked questions

What is the ScanSkinAI Cancer Flag Module?
The Cancer Flag Module is a non-diagnostic AI screening tool that assesses a lesion from an ordinary clinical photograph and flags whether it warrants closer attention from a clinician. It identifies patterns consistent with basal cell carcinoma, melanoma, squamous cell carcinoma, and benign or other lesions, and communicates the result as a triage signal rather than a diagnosis.
What AI model architecture powers the Cancer Flag Module?
The visual backbone is a DINOv2-Large vision transformer (ViT-L/14) operating at native 518×518 resolution, chosen for its self-supervised representation quality on natural images and its ability to preserve fine lesion detail. A second, bounded language layer sits on top of the classifier to communicate the result responsibly without ever issuing a diagnosis.
Is the model validated across different skin tones?
Yes. Performance is evaluated across Fitzpatrick skin types I through VI, using both an internal held-out set and an independent dermatologist audit of production scans. Cross-tone validation is treated as a first-class design requirement, not a post-hoc check — most publicly available datasets skew heavily toward lighter phenotypes, and the paper documents how that gap is addressed.
How does the model handle rare cancers like melanoma?
Melanoma and squamous cell carcinoma are rare in any real-world dataset, and missing them is the costliest error a screening tool can make. The paper details the class-imbalance strategy, weighted sampling, and a progressive three-phase fine-tuning regimen used to keep sensitivity high on these minority classes without inflating false positives on benign lesions.
Does ScanSkinAI diagnose skin cancer?
No. The Cancer Flag Module is a non-diagnostic screening and triage aid. It supports earlier attention and clinician review and does not replace dermoscopy, biopsy, histopathology, or in-person examination. Any concerning, changing, bleeding, or non-healing skin change should be assessed by a qualified clinician.
What regulatory and quality standards apply?
The module is developed under an ISO 13485 medical-device quality management system and an ISO 27001 information-security framework. It is aligned with UKCA Class I and EU MDR requirements as software as a medical device (SaMD) positioned for non-diagnostic screening.
How is the model made explainable?
Grad-CAM and SHAP are used to make the model's attention inspectable, so clinicians and reviewers can see which regions of a lesion drove a prediction rather than trust the output blindly. The paper also sets out the full development and validation lifecycle and our roadmap for continued validation.
How can I cite this whitepaper?
Cite as: Ivy AI Solutions Limited (2026). ScanSkinAI Cancer Flag Module: Training Methodology, Model Development, and Robustness Evaluation. Zenodo. https://doi.org/10.5281/zenodo.21225287. The DOI resolves to the archived version of record.

Cite this work

Ivy AI Solutions Limited. (2026). ScanSkinAI Cancer Flag Module: Training Methodology, Model Development, and Robustness Evaluation. Zenodo. https://doi.org/10.5281/zenodo.21225287

Read the full whitepaper

The complete methodology, architecture diagrams, and validation results.