synomaly-medical-anomaly-eval
Synomaly Noise and Multi-Stage Diffusion: A Novel Approach for Unsupervised Anomaly Detection in Medical Images — Bi et al. (2024) (arXiv:2411.04004, 2024)
What this evaluates
Evaluates unsupervised anomaly detection in medical imaging by training a generative model on healthy images and reconstructing anomalous inputs. It measures how well the model localizes and segments pathological regions by comparing the reconstruction residuals against ground-truth anomaly masks.
Datasets
Metrics
Dice (primary) — range: [0, 1]
- Dice = 2 * |A ∩ B| / (|A| + |B|), where A and B are the predicted and ground-truth anomaly masks. Measures overlap between predicted and actual anomaly regions.
Precision — range: [0, 1]
- Precision = TP / (TP + FP). Proportion of predicted anomaly pixels that are correctly identified as anomalies.
Recall — range: [0, 1]
- Recall = TP / (TP + FN). Proportion of actual anomaly pixels that are correctly detected by the model.
Input / output format
Input: Anomalous medical image (MRI, CT, or ultrasound) provided as input to the generative model. Ground-truth anomaly segmentation masks are provided only for evaluation.
Output: A reconstructed 'healthy' image and a binary anomaly segmentation mask generated by thresholding the pixel-wise difference between the blurred input and blurred reconstructed image.
Scoring recipe
def compute_metrics(pred_mask, gt_mask):
intersection = np.logical_and(pred_mask, gt_mask).sum()
union = pred_mask.sum() + gt_mask.sum()
dice = 2 * intersection / union if union > 0 else 0.0
precision = intersection / pred_mask.sum() if pred_mask.sum() > 0 else 0.0
recall = intersection / gt_mask.sum() if gt_mask.sum() > 0 else 0.0
return dice, precision, recall
Common pitfalls
- Inference hyperparameters (noise steps T, Gaussian kernel n, threshold Th) are optimized per method via grid search, meaning reported results reflect best-case tuning rather than fixed out-of-the-box settings.
- The anomaly mask is derived from the difference between Gaussian-blurred input and reconstructed images, which smooths residuals and may obscure fine-grained anomaly boundaries.
- The Carotid US dataset is in-house and not publicly released, limiting external reproducibility and cross-dataset generalization checks.
Evidence (verbatim from paper)
The evaluation metrics include the Dice, Precision, and Recall score, to ensure an objective and comprehensive comparison of different approaches.
Citation
@misc{bi2024synomaly,
title={Synomaly Noise and Multi-Stage Diffusion: A Novel Approach for Unsupervised Anomaly Detection in Medical Images},
author={Bi et al. (2024)},
year={2024},
note={arXiv:2411.04004}
}
1---2name: synomaly-medical-anomaly-eval3description: Evaluates unsupervised anomaly detection in medical imaging by training a generative model on healthy images and reconstructing anomalous inputs. It measures how well the model localizes and segments pathological regions by comparing the reconstruction residuals against ground-truth anomaly masks. Use when the user wants to benchmark on BraTS 2023 (Brain MRI), LiTS (Liver CT), Carotid US, or asks about evaluating this task. Reports Dice.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/synomaly-medical-anomaly-eval6 skill_kind: dataset_eval7 source_arxiv: 2411.040048 bibtex_key: bi2024synomaly9 confidence: high10---1112# synomaly-medical-anomaly-eval1314> Synomaly Noise and Multi-Stage Diffusion: A Novel Approach for Unsupervised Anomaly Detection in Medical Images — Bi et al. (2024) (arXiv:2411.04004, 2024)1516## What this evaluates1718Evaluates unsupervised anomaly detection in medical imaging by training a generative model on healthy images and reconstructing anomalous inputs. It measures how well the model localizes and segments pathological regions by comparing the reconstruction residuals against ground-truth anomaly masks.1920## Datasets2122- **BraTS 2023 (Brain MRI)** — total 5159; splits: train (3743), test_anomalous (1000), test_healthy (416); repo https://github.com/yuan-12138/Synomaly23- **LiTS (Liver CT)** — total 7467; splits: train (5820), test_anomalous (1000), test_healthy (647); repo https://github.com/yuan-12138/Synomaly24- **Carotid US** — total 8684; splits: train (7306), test_anomalous (545), test_healthy (833); repo https://github.com/yuan-12138/Synomaly2526## Metrics2728- `Dice` **(primary)** — range: [0, 1]29 - Dice = 2 * |A ∩ B| / (|A| + |B|), where A and B are the predicted and ground-truth anomaly masks. Measures overlap between predicted and actual anomaly regions.30- `Precision` — range: [0, 1]31 - Precision = TP / (TP + FP). Proportion of predicted anomaly pixels that are correctly identified as anomalies.32- `Recall` — range: [0, 1]33 - Recall = TP / (TP + FN). Proportion of actual anomaly pixels that are correctly detected by the model.3435## Input / output format3637**Input**: Anomalous medical image (MRI, CT, or ultrasound) provided as input to the generative model. Ground-truth anomaly segmentation masks are provided only for evaluation.3839**Output**: A reconstructed 'healthy' image and a binary anomaly segmentation mask generated by thresholding the pixel-wise difference between the blurred input and blurred reconstructed image.4041## Scoring recipe4243```python44def compute_metrics(pred_mask, gt_mask):45 intersection = np.logical_and(pred_mask, gt_mask).sum()46 union = pred_mask.sum() + gt_mask.sum()47 dice = 2 * intersection / union if union > 0 else 0.048 precision = intersection / pred_mask.sum() if pred_mask.sum() > 0 else 0.049 recall = intersection / gt_mask.sum() if gt_mask.sum() > 0 else 0.050 return dice, precision, recall51```5253## Common pitfalls5455- Inference hyperparameters (noise steps T, Gaussian kernel n, threshold Th) are optimized per method via grid search, meaning reported results reflect best-case tuning rather than fixed out-of-the-box settings.56- The anomaly mask is derived from the difference between Gaussian-blurred input and reconstructed images, which smooths residuals and may obscure fine-grained anomaly boundaries.57- The Carotid US dataset is in-house and not publicly released, limiting external reproducibility and cross-dataset generalization checks.5859## Evidence (verbatim from paper)6061> The evaluation metrics include the Dice, Precision, and Recall score, to ensure an objective and comprehensive comparison of different approaches.6263## Citation6465```bibtex66@misc{bi2024synomaly,67 title={Synomaly Noise and Multi-Stage Diffusion: A Novel Approach for Unsupervised Anomaly Detection in Medical Images},68 author={Bi et al. (2024)},69 year={2024},70 note={arXiv:2411.04004}71}72```7374- arXiv: 2411.04004