StaDis: Stability distance to detecting out-of-distribution data in computational pathology.

Med Image Anal

School of Computer Science and Technology, Xi'an Jiaotong University, Xi'an, 710049, China; Shaanxi Provincial Key Laboratory of Big Data Knowledge Engineering, Xi'an Jiaotong University, Xi'an, 710049, China. Electronic address:

Published: August 2025


Category Ranking

98%

Total Visits

921

Avg Visit Duration

2 minutes

Citations

20

Article Abstract

Modern Computational pathology (CPath) models aim to alleviate the burden on pathologists. However, once deployed, these models may generate unreliable predictions when encountering data types not seen during training, potentially causing a trust crisis within the computational pathology community. Out-of-distribution (OOD) detection, acting as a safety measure before model deployment, demonstrates significant promise in ensuring the reliable use of models in real clinical application. However, most existing computational pathology models lack OOD detection mechanisms, and no OOD detection method is specifically designed for this field. In this paper, we propose a novel OOD detection approach called Stability Distance (StaDis), uniquely developed for CPath. StaDis measures the feature gap between an image and its perturbed counterpart. As a plug-and-play module, it requires no retraining and integrates seamlessly with any model. Additionally, for the first time, we explore OOD detection at the whole-slide image (WSI) level within the multiple instance learning (MIL) framework. Then, we design different pathological OOD detection benchmarks covering three real clinical scenarios: patch- and slide-level anomaly tissue detection, rare case mining, and frozen section (FS) detection. Finally, extensive comparative experiments are conducted on these pathological OOD benchmarks. In 38 experiments, our approach achieves SOTA performance in 23 cases and ranks second in 10 experiments. Especially, the AUROC results of StaDis with "Conch" as the backbone improve by 7.91% for patch-based anomaly tissue detection. Our code is available at https://github.com/zdipath/StaDis.

Download full-text PDF

Source
http://dx.doi.org/10.1016/j.media.2025.103774DOI Listing

Publication Analysis

Top Keywords

ood detection
24
computational pathology
16
detection
9
stability distance
8
real clinical
8
pathological ood
8
anomaly tissue
8
tissue detection
8
ood
7
stadis
4

Similar Publications

Enhancing reconstruction-based out-of-distribution detection in brain MRI with model and metric ensembles.

Comput Methods Programs Biomed

September 2025

Eindhoven University of Technology, Department of Biomedical Engineering, Medical Image Analysis Group, Eindhoven, The Netherlands. Electronic address:

Background And Objective: Out-of-distribution (OOD) detection is crucial for safely deploying automated medical image analysis systems, as abnormal patterns in images could hamper their performance. However, OOD detection in medical imaging remains an open challenge. In this study, we aim to optimize a reconstruction-based autoencoder specifically for OOD detection.

View Article and Find Full Text PDF

StaDis: Stability distance to detecting out-of-distribution data in computational pathology.

Med Image Anal

August 2025

School of Computer Science and Technology, Xi'an Jiaotong University, Xi'an, 710049, China; Shaanxi Provincial Key Laboratory of Big Data Knowledge Engineering, Xi'an Jiaotong University, Xi'an, 710049, China. Electronic address:

Modern Computational pathology (CPath) models aim to alleviate the burden on pathologists. However, once deployed, these models may generate unreliable predictions when encountering data types not seen during training, potentially causing a trust crisis within the computational pathology community. Out-of-distribution (OOD) detection, acting as a safety measure before model deployment, demonstrates significant promise in ensuring the reliable use of models in real clinical application.

View Article and Find Full Text PDF

In real-world scenarios, distribution shifts give rise to the importance of two problems: out-of-distribution (OoD) generalization, which focuses on models' generalization ability against covariate shifts (i.e., the changes of environments), and OoD detection, which aims to be aware of semantic shifts (i.

View Article and Find Full Text PDF

Objective: In biomedical research, knowledge about the relationships between entities, including genes, proteins, and drugs, is vital for elucidating complex biological processes and intracellular pathway mechanisms. While natural language processing (NLP) methods have shown great success in biomedical relation extraction (RE), extracted relations often lack contextual information such as cell type, cell line, and intracellular location. Previous studies treated this problem as a post hoc context-relation association task, limited by the absence of a golden standard corpus and prone to error propagation.

View Article and Find Full Text PDF

In general, learning plentiful knowledge corresponding to known objects is an important ability for humans. The unknown objects could be assumed to depart from the familiar knowledge. Inspired by this idea, we explore leveraging the extracted knowledge to reason a set of unknown concepts.

View Article and Find Full Text PDF