Improved Anomaly Detection in Medical Images via Mean Shift Density Enhancement

Pritam Kar, Gouri Lakshmi S, Saptarshi Bej
4/21/2026
cs.CVcs.AI

No official code found. Best implementation: D6nam853/medi-msde (0 stars, MIT, last commit 2026-04-24).

Abstract

Anomaly detection in medical imaging is essential for identifying rare pathological conditions, particularly when annotated abnormal samples are limited. We propose a hybrid anomaly detection framework that integrates self-supervised representation learning with manifold-based density estimation, a combination that remains largely unexplored in this domain. Medical images are first embedded into a latent feature space using pretrained, potentially domain-specific, backbones. These representations are then refined via Mean Shift Density Enhancement (MSDE), an iterative manifold-shifting procedure that moves samples toward regions of higher likelihood. Anomaly scores are subsequently computed using Gaussian density estimation in a PCA-reduced latent space, where Mahalanobis distance measures deviation from the learned normal distribution. The framework follows a one-class learning paradigm and requires only normal samples for training. Extensive experiments on seven medical imaging datasets demonstrate state-of-the-art performance. MSDE achieves the highest AUC on four datasets and the highest Average Precision on five datasets, including near-perfect performance on brain tumor detection (0.981 AUC/AP). These results underscore the potential of the proposed framework as a scalable clinical decision-support tool for early disease detection, screening in low-label settings, and robust deployment across diverse imaging modalities.

View on arXivView PDF

Code Implementations(1)

D6nam853/medi-msdeCommunity70%
MIT

Improved Anomaly Detection in Medical Images via Mean Shift Density Enhancement (MSDE). This repository contains the official implementation of MSDE, a novel framework for one-class anomaly detection in medical imaging.

00PythonApr 17, 20266 months agoMIT

Similar Papers

Cite this paper

@article{kar2026improved,
  title  = {Improved Anomaly Detection in Medical Images via Mean Shift Density Enhancement},
  author = {Pritam Kar and Gouri Lakshmi S and Saptarshi Bej},
  year   = {2026},
  eprint = {2604.19191},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.19191v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.19191.svg)](https://codeofpaper.com/paper/2604.19191)

Discussion