RareCode: An Unsupervised Deep Learning Framework for Anomaly Detection in Colorectal Cancer Histopathological Images.
Liu Xiang, Huashun Li, Xuejia Zheng, Feng Zhu, Tianyuan Li, Yujie Zhang, Jie Song, Hongtao Jin,
School of Computer Science and Engineering, Anhui University of Science and Technology. · School of Electrical and Information Engineering, Anhui University of Science and Technology.
Key points
From the paper's conclusion- These findings suggest that CAR analysis may offer a promising unsupervised approach for histopathological anomaly detection, potentially aiding clinical pre-screening in colorectal cancer diagnosis.
Abstract
Unsupervised anomaly detection in histopathological images has been widely explored using reconstruction-based approaches that measure reconstruction errors, yet these methods often fail to capture subtle, semantic-level pathological variations due to the inherent heterogeneity of tissue textures. To address this limitation, this study presents RareCode, a vector quantization-based framework that extends the detection paradigm beyond pixel-level reconstruction to incorporate semantic-level codebook activation analysis. The core innovation is Codebook Activation Rarity (CAR) scoring, which profiles the activation frequency of each codebook entry during training on exclusively normal samples and flags infrequent activations as anomaly indicators at inference time, thereby complementing reconstruction errors with semantic-level discrimination. Building upon this single-scale CAR mechanism, a Multi-scale Hierarchical Codebook (MHC) module is further introduced, employing codebooks of varying sizes with learnable fusion weights to capture pathological patterns spanning from coarse tissue-level structures to fine cellular-level details. Leveraging the multi-scale design, hierarchical anomaly heatmaps are generated at each codebook granularity, providing pathologists with interpretable, multi-dimensional visual localization cues indicating both where and at what structural level anomalies occur. Five-fold cross-validation on a clinically annotated colorectal cancer histopathological image dataset obtained from Shenzhen People's Hospital demonstrates that RareCode achieves an area under the curve (AUC) of 96.82%, outperforming baseline methods. Per-class analysis showed stronger performance for cancer detection (AUC = 99.44%, specificity = 94.21%) than for inflammation detection (AUC = 94.30%, specificity = 60.44%). These findings suggest that CAR analysis may offer a promising unsupervised approach for histopathological anomaly detection, potentially aiding clinical pre-screening in colorectal cancer diagnosis.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Unsupervised Single-Class Anomaly Detection in Rat Liver Using a Model of Normal Histomorphology.Toxicologic pathology · 2026
- Pathology foundation models for training-free case retrieval in salivary gland tumorsarXiv · 2026
- MCCNet: A Multi-granularity Collaborative Cascaded-perception Network for Colorectal Cancer Histopathological Diagnosis.Medical engineering & physics · 2026
- VQ-CSDN: A Vector Quantized Content-Stain Decoupling Network for Stain Normalization of H&E Histopathology Images.IEEE journal of biomedical and health informatics · 2026
- Hallucination Detection in Virtually-Stained Histology: A Latent Space Baseline.IEEE transactions on medical imaging · 2026
- SemaNorm: Stain Normalization via Semantic and Morphology Alignment for Robust Cross-Hospital Computational PathologyarXiv · 2026