Can a Laptop Find Cancer in a Lymph Node? Transfer Learning, Grad-CAM and a Data Audit on PatchCamelyon

I trained a computer to answer one question about a small square of stained lymph node tissue: is there breast cancer in the centre of it? Using the PatchCamelyon dataset and a four-core processor with no graphics card, I fine-tuned an ImageNet-pretrained ResNet-18 on 96,000 of the 262,144 training patches for two passes. On all 32,768 test patches it reached an AUC of 0.939 (95% CI 0.937 to 0.941) and an accuracy of 83.1%. The same network trained from scratch reached 0.885, and frozen ImageNet features with logistic regression reached 0.884. Sensitivity was 68.8% and specificity 97.4% at the default threshold, and a threshold chosen on validation for 90% sensitivity delivered 81.1% on test. Grad-CAM showed the model does not concentrate on the 32 by 32 pixel centre that defines the label: on correctly found tumour patches 11.7% of the heat fell there, against 11.1% by chance. A data audit found 3,385 repeated images in the test split, almost all tumour, and 34 test patches identical to training patches despite no shared slide names. Removing test duplicates raised accuracy to 85.6%. Code, results and trained weights are attached.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-28
DOI
https://doi.org/10.5281/zenodo.24637162
Primary Topic
AI in cancer detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Can a Laptop Find Cancer in a Lymph Node? Transfer Learning, Grad-CAM and a Data Audit on PatchCamelyon

Kelechi Ogbonna
Zenodo (CERN European Organization for Nuclear Research)
AI in cancer detection
article

Can a Laptop Find Cancer in a Lymph Node? Transfer Learning, Grad-CAM and a Data Audit on PatchCamelyon

Kelechi Ogbonna
article en

Abstract

I trained a computer to answer one question about a small square of stained lymph node tissue: is there breast cancer in the centre of it? Using the PatchCamelyon dataset and a four-core processor with no graphics card, I fine-tuned an ImageNet-pretrained ResNet-18 on 96,000 of the 262,144 training patches for two passes. On all 32,768 test patches it reached an AUC of 0.939 (95% CI 0.937 to 0.941) and an accuracy of 83.1%. The same network trained from scratch reached 0.885, and frozen ImageNet features with logistic regression reached 0.884. Sensitivity was 68.8% and specificity 97.4% at the default threshold, and a threshold chosen on validation for 90% sensitivity delivered 81.1% on test. Grad-CAM showed the model does not concentrate on the 32 by 32 pixel centre that defines the label: on correctly found tumour patches 11.7% of the heat fell there, against 11.1% by chance. A data audit found 3,385 repeated images in the test split, almost all tumour, and 34 test patches identical to training patches despite no shared slide names. Removing test duplicates raised accuracy to 85.6%. Code, results and trained weights are attached.

Zenodo (CERN European Organization for Nuclear Research)
AI in cancer detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon