[Paper Review] Anomaly Detection for imbalanced datasets with Deep Generative Models
This paper proposes an anomaly detection framework using deep generative models—VAEs and GANs—for highly imbalanced datasets, particularly in medical imaging. It trains models on normal (negative) samples only, then detects anomalies (e.g., lung nodules) via low likelihood scores. Results show VAEs achieve AUROC 0.84 on MNIST but only 0.62 on NLST lung CT data, while GANs perform poorly (AUROC 0.58), indicating current generative models struggle with complex medical image distributions.
Many important data analysis applications present with severely imbalanced datasets with respect to the target variable. A typical example is medical image analysis, where positive samples are scarce, while performance is commonly estimated against the correct detection of these positive examples. We approach this challenge by formulating the problem as anomaly detection with generative models. We train a generative model without supervision on the `negative' (common) datapoints and use this model to estimate the likelihood of unseen data. A successful model allows us to detect the `positive' case as low likelihood datapoints. In this position paper, we present the use of state-of-the-art deep generative models (GAN and VAE) for the estimation of a likelihood of the data. Our results show that on the one hand both GANs and VAEs are able to separate the `positive' and `negative' samples in the MNIST case. On the other hand, for the NLST case, neither GANs nor VAEs were able to capture the complexity of the data and discriminate anomalies at the level that this task requires. These results show that even though there are a number of successes presented in the literature for using generative models in similar applications, there remain further challenges for broad successful implementation.
Motivation & Objective
- Address the challenge of anomaly detection in highly imbalanced datasets, particularly in medical imaging where normal cases vastly outnumber anomalies.
- Investigate whether deep generative models can effectively learn the distribution of normal data to detect rare abnormal cases without requiring labeled anomalies during training.
- Evaluate the performance of state-of-the-art generative models—VAEs and GANs—on two distinct datasets: MNIST (digit 9 as anomaly) and NLST (lung nodules from CT scans).
- Assess the robustness and generalization capability of likelihood-based anomaly detection using deep generative models in real-world clinical scenarios with limited data.
- Identify limitations of current generative models in capturing complex, high-dimensional medical image distributions for reliable anomaly detection.
Proposed method
- Train VAEs and GANs in an unsupervised manner on only normal (negative) samples to learn the underlying data distribution.
- Use Maximum Likelihood Estimation (MLE) to optimize model parameters, minimizing negative log-likelihood: $ E(w) = -\sum_i \log p[x_i|f(x_i;w)] $.
- Compute likelihood scores for test samples: low likelihood indicates potential anomaly.
- Apply a threshold-based classification to distinguish normal from anomalous samples using likelihood scores.
- Use ROC curves and AUROC scores to evaluate model performance on both MNIST and NLST datasets.
- For NLST, use 3D convolutional architectures for both VAE and GAN to handle volumetric CT nodule data.
Experimental results
Research questions
- RQ1Can VAEs and GANs effectively learn the distribution of normal data in imbalanced datasets to detect anomalies via likelihood estimation?
- RQ2How do VAEs and GANs compare in performance on a standard benchmark (MNIST) versus a complex real-world medical dataset (NLST CT nodules)?
- RQ3To what extent do current deep generative models capture the complexity of 3D medical image data, particularly for distinguishing malignant from benign lung nodules?
- RQ4Does increasing the number of training samples improve the anomaly detection performance of VAEs and GANs on the NLST dataset?
- RQ5Are likelihood scores from VAEs and GANs reliable enough for clinical decision support in early lung cancer detection?
Key findings
- On the MNIST dataset, the VAE-based anomaly detection achieved an AUROC of 0.84, indicating strong separation between normal and anomalous samples.
- The GAN-based approach on MNIST achieved an AUROC of 0.66, showing limited performance and high sensitivity to hyperparameters and training sample size.
- On the NLST 3D lung CT dataset, the GAN-based model achieved an AUROC of 0.58, indicating performance barely better than random guessing.
- The VAE-based model on NLST achieved an AUROC of 0.62, suggesting limited discriminative power despite being better than random, but still insufficient for clinical use.
- Both models showed overlapping likelihood distributions between normal and anomalous samples on NLST, indicating poor separation in high-dimensional medical image space.
- Empirical results suggest that increasing training data may improve performance, but current models remain inadequate for reliably detecting malignant nodules in CT scans.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.