The Effect of Lossy Compression on 3D Medical Images Segmentation with Deep Learning

Anvar Kurmukov, Bogdan D. Zavolovich, Aleksandra Dalechina, Vladislav Proskurov, Boris ShirokikharXiv 2024 · DOI

Abstract

Medical imaging archives are expanding rapidly, yet the adoption of lossy compression remains limited due to concerns regarding diagnostic and algorithmic integrity. This paper investigates the impact of JPEG2000 lossy compression on 3D medical image segmentation using deep learning. Our findings reveal that segmentation performance remains stable up to a 20x compression ratio, even as human radiologists begin to perceive quality degradation at much lower rates. Furthermore, we demonstrate that under fixed storage constraints, training on a larger volume of compressed data is superior to training on a small subset of high-fidelity data.

Introduction

The exponential growth of 3D medical imaging modalities like CT and MRI has created a significant "storage tax" for healthcare institutions. While lossy compression is ubiquitous in general computer vision, the medical community has largely adhered to lossless methods to avoid losing potentially critical clinical details. However, as deep learning (DL) models become standard for tasks like organ and tumor segmentation, it is essential to quantify the actual impact of data compression on model performance. This study aims to determine the threshold at which lossy compression begins to degrade the utility of DL-based segmentation.

Methods

The study utilized four diverse datasets—LiTS (liver), BraTS21 (brain), AMOS (abdominal organs), and BGPD (brain stem)—encompassing 20 distinct segmentation tasks. The primary architecture used was nnU-Net, the current state-of-the-art for medical segmentation. Images were compressed using the JPEG2000 standard, which is natively supported by DICOM. Evaluation metrics included the Dice coefficient for segmentation accuracy and PSNR for mathematical image fidelity. Additionally, two radiologists performed blind evaluations to establish the threshold of human perceptibility for compression artifacts.

Key Results

The 20x Robustness Threshold and Data Scaling

A critical finding is that DL models are remarkably robust to compression. Across all datasets, segmentation performance (Dice score) remained stable up to a 20x compression ratio. Beyond this point, a sharp decline in performance was observed.

Furthermore, the study addressed the trade-off between image quality and data quantity. Under a fixed storage budget, it is significantly more effective to store the entire dataset at 20x compression than to store a tiny fraction (e.g., 5%) of the data in an uncompressed format. As shown in the scaling analysis, models trained on a full but compressed dataset consistently outperform those trained on small, high-fidelity subsets.

Segmentation performance (Dice score) as a function of compression rate (left) and data percentage scaling (right).

The Machine Robustness Gap

The study highlighted a discrepancy between human and machine perception. Radiologists were able to distinguish compressed images from originals at compression ratios as low as 10x. In contrast, the AI models' performance did not degrade until the 20x mark. This "Machine Robustness Gap" suggests that AI can maintain clinical utility on data that a human might perceive as lower quality.

Human perception (Spearman's rank correlation) and mathematical image quality (PSNR) as a function of compression rate.

Discussion and Conclusion

This research demonstrates that 3D medical images can be compressed by up to 20x using JPEG2000 without significantly impacting deep learning segmentation performance. The findings also suggest high "interchangeability": models trained on uncompressed data can be deployed on compressed data with minimal loss in accuracy. This implies that clinical archives can be compressed retrospectively without necessitating the retraining of existing AI tools.

While this study focused on segmentation, future research should explore the impact of compression on other high-stakes tasks, such as radiomics or the detection of subtle anomalies. Nonetheless, the results provide a strong argument for the adoption of lossy compression to alleviate the growing storage and transmission burdens in modern medicine.

Summary updated

BibTeX
@misc{kurmukov2024effect,
  author = {Anvar Kurmukov and Bogdan D. Zavolovich and Aleksandra Dalechina and Vladislav Proskurov and Boris Shirokikh},
  title = {{The Effect of Lossy Compression on 3D Medical Images Segmentation with Deep Learning}},
  year = {2024},
  eprint = {2409.16733},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.16733},
}
Figure