Screening programs for early detection of cancer such as colorectal and cervical cancer have led to an increased demand for histopathological analysis of biopsies. Advanced image analysis with Deep Learning has shown the potential to automate cancer detection in digital pathology whole-slide images. In particular, weakly supervised learning can achieve whole-slide image classification without the need for tedious, manual annotations, using only slide-level labels. Here, we used data from n=12,580 whole-slide images from n=9,141 tissue blocks to train and validate a weakly supervised deep learning approach based on Neural Image Compression with Attention (NIC-A) using labels extracted from pathology reports. We also introduced Slide Packing, a method that merges tissue from multiple slides of the same tissue block into a single "packed" image linked to block-level labels. NIC-A classifies colon and cervical tissue slides into cancer, high-grade dysplasia, low-grade dysplasia, and normal tissue, and detects celiac disease in duodenal biopsies. We validated NIC-A for colon and cervix against panels of four and three pathologists, respectively, on cohorts from two European centers. We show that the proposed approach reaches pathologist-level performance in detecting and classifying abnormalities, suggesting its potential to assist pathologists in pre-screening workflows by reducing workload in routine digital pathology diagnostics.
Copyright © 2025. Published by Elsevier Inc.