Deep learning based Image Compression for Microscopy Images: An Empirical Study

Yu Zhou, Jan Sollman, Jianxu Chen · DOI

Introduction

Modern biological imaging is currently grappling with a massive "data explosion." High-resolution microscopes generate data at rates that outpace existing infrastructure for storage, sharing, and analysis. While lossless compression preserves every bit of data, it typically only reduces file sizes by a factor of 2 or 3—insufficient for the petabytes of data being produced.

Lossy compression offers much higher compression ratios by discarding "unimportant" information. However, in scientific contexts, determining what is unimportant is critical; if an algorithm removes subtle textures required by downstream AI models to identify cellular structures, the compression is a failure. This study investigates whether modern deep learning (DL) compression can provide massive space savings without compromising the scientific utility of microscopy images.

Methods

The authors developed a comprehensive two-phase evaluation pipeline to assess the viability of neural compression in microscopy.

  1. Compression Performance: Classic algorithms (JPEG 2000, JPEG XR, and LERC) were benchmarked against state-of-the-art deep learning models. These DL models utilize a neural encoder to create a "latent representation" of the image, which is then losslessly packed using entropy coding.
  2. Downstream Task Analysis: Beyond visual quality, the study tested performance on a real-world AI task: label-free prediction (in-silico labeling). This involves using a separate DL model to predict fluorescently tagged structures based solely on standard grayscale brightfield images.
The two-phase evaluation pipeline comparing compression fidelity and downstream task performance.

Performance was evaluated using standard metrics including Mean Squared Error (MSE), Peak Signal-to-Noise Ratio (PSNR), and Structural Similarity Index (SSIM), alongside Pearson Correlation to measure the preservation of biological features.

Datasets

The study utilized the human induced Pluripotent Stem Cells (hiPSC) single-cell image dataset from the Allen Institute for Cell Science, specifically focusing on the FBL cell line targeting the nucleolus. The dataset consisted of 500 3D samples, with experiments conducted on both 2D middle slices and full 3D volumes.

Key Results

The empirical results demonstrate a clear advantage for deep learning-based methods over traditional lossy compression.

  • Superior Compression and Fidelity: The DL model cheng2020-anchor-mse-6 achieved a compression ratio of 47.3x, saving over 97% of storage space. As shown in the table below, DL methods maintained significantly higher fidelity (SSIM ~0.97) compared to JPEG 2000-LOSSY, which dropped to 0.42 SSIM at similar compression levels.
  • Downstream Success: In 2D tasks, the accuracy of label-free predictions using DL-compressed images was nearly identical to predictions made using raw, uncompressed data.
Quantitative comparison of classic and deep learning-based compression methods across standard image quality metrics.

Discussion and Insights

A critical finding of the study is the "Visual Plausibility Trap." Compressed images may appear perfect to the human eye while lacking the high-frequency information required for computational analysis. Deep learning compressors proved far more adept at retaining these "hidden" features than classic lossy methods.

Furthermore, the authors discovered that downstream AI models are highly sensitive to the specific type of compression used. Training a model on raw images and deploying it on compressed images leads to significant performance degradation. However, if the downstream model is trained on images compressed with the same algorithm, the artifacts are mitigated, and accuracy remains high.

While 2D compression is highly successful, 3D compression remains a challenge. Information loss in 3D can lead to missing biological structures in final predictions, suggesting that spatial dependencies in volumetric data are more fragile. Future work will focus on developing robust 3D-specific neural compression architectures and "task-aware" compression optimized for specific biological analyses.

Summary updated

BibTeX
@inproceedings{zhou2024deep,
  author = {Yu Zhou and Jan Sollman and Jianxu Chen},
  title = {{Deep learning based Image Compression for Microscopy Images: An Empirical Study}},
  booktitle = {Biological},
  year = {2024},
  doi = {10.1017/s2633903x24000151},
}
Figure