Abstract
In recent years, anomaly detection has become an essential field in medical image analysis. Most current anomaly detection methods for medical images are based on image reconstruction. In this work, we propose a novel anomaly detection approach based on coordinate regression. Our method estimates the position of patches within a volume, and is trained only on data of healthy subjects. During inference, we can detect and localize anomalies by considering the error of the position estimate of a given patch. We apply our method to 3D CT volumes and evaluate it on patients with intracranial haemorrhages and cranial fractures. The results show that our method performs well in detecting these anomalies. Furthermore, we show that our method requires less memory than comparable approaches that involve image reconstruction. This is highly relevant for processing large 3D volumes, for instance, CT or MRI scans.
Introduction
Unsupervised anomaly detection in medical imaging typically relies on reconstruction-based methods, most notably Autoencoders (AEs). These models learn to compress and reconstruct healthy anatomy; when fed an anomalous image, they theoretically fail to reconstruct the anomaly, yielding a high pixel-wise error map.
However, generating high-quality, detailed 3D reconstructions is computationally expensive and requires massive GPU memory. Processing large 3D volumes (like CT or MRI scans) exacerbates these hardware constraints. Furthermore, AEs sometimes suffer from a bias where they successfully (and undesirably) reconstruct anomalies anyway, reducing their detection accuracy. This research introduces Patch Position Regression (PPR), a more memory-efficient way to learn the distribution of normal anatomy without relying on pixel-perfect image generation.
Methods
Instead of reconstructing pixels, the PPR model predicts the spatial coordinates of an input patch relative to the overall volume. This approach treats anatomy as a coordinate system: because human anatomy (especially in rigidly registered head CTs) is highly consistent, the visual features of a patch are strongly correlated with its absolute position.
Training and Inference
During training, the model extracts 3D patches from healthy volumes at normalized coordinates $(x, y, z) \in [0,1]^3$. A standard 3D CNN is trained to predict these coordinates from the patch alone using an L2 distance loss. By framing anomaly detection as a regression problem rather than a generative one, the method completely drops the memory-hungry decoder network used in AEs.
For inference, the model extracts overlapping patches across the entire volume and predicts their coordinates. An error map is generated based on the coordinate prediction error for each voxel. If a patch contains an anomaly (e.g., a hemorrhage or fracture), its visual features won't match the healthy anatomical structures the network expects at that location, resulting in a high error spike that localizes the anomaly.
Experimental Results
The method was evaluated on the public CQ500 dataset, consisting of non-contrast head CT scans. The training set included 111 healthy images, while the test set comprised 86 volumes containing intracranial haemorrhages (ICH) and/or cranial fractures.
Performance and Efficiency
The PPR method achieved an AUROC of 0.81 for detecting ICH and 0.79 for cranial fractures, performing competitively with the AE baseline. Crucially, the best-performing PPR models required one to two orders of magnitude fewer parameters than the baseline Autoencoder to achieve similar or better performance.
Memory savings were also significant: during training, PPR used roughly 4x less GPU memory than the AE baseline at practical batch sizes (~4.4 GB vs ~12.5 GB). While training was slightly faster (22 hours vs 26 hours), inference took approximately 1.5 minutes per volume for PPR compared to 2 seconds for AE, due to the dense sliding-window patch extraction required to build the error map.
Discussion and Limitations
PPR offers a viable, memory-efficient alternative to generative models for 3D anomaly detection. However, the spatial resolution of the anomaly map is inherently limited by the chosen patch size (larger patches provide more context but blur anomaly boundaries). Additionally, the patch-based inference is computationally slower than fully convolutional approaches. Future work may explore multi-stage "coarse-to-fine" approaches to improve spatial resolution and investigate the impact of different patch geometries on anatomical understanding.
Summary updated