Deep learning-based compression of giga-resolution whole slide images

Maren Høibø, Etienne Gaucher, Ingerid Reinertsen, Marit Valla, Erik Smistad · 2026

Read Deep learning-based compression of giga-resolution whole slide images by Maren Høibø, Etienne Gaucher, Ingerid Reinertsen, Marit Valla, Erik Smistad (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-17668.txt.

Introduction

Maren Høibø and colleagues explore deep-learning glass removal and compression for whole slide images, compared with JPEG and JPEG-XL. Digital pathology produces growing numbers of whole slide images; today JPEG yields several gigabytes per image. Deep-learning compression cut whole slide image size by 43 to 72 percent over JPEG, while glass removal cut size by under one percent to 33 percent. Combining both gave a 44 to 80 percent total reduction. On tissue patches, the best deep-learning models saved about 35 to 40 percent per patch over JPEG at similarity above 95 percent.

Catalog record

CREATORMaren Høibø, Etienne Gaucher, Ingerid Reinertsen, Marit Valla, Erik Smistad
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE78671
LICENSEhttp://creativecommons.org/licenses/by-sa/4.0/
RIGHTSCC BY SA
SOURCEarXiv

Source: https://arxiv.org/abs/2605.17668

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Deep learning-based compression of giga-resolution whole slide images Maren Høibø, Etienne Gaucher, Ingerid Reinertsen, Marit Valla, Erik Smistad Abstract Abstract Implementation of digital pathology leads to an increased number of whole slide images (WSIs). The large size of WSIs is challenging. Today, WSIs are compressed with codecs like JPEG resulting in several gigabytes per WSI, and large amounts of space are wasted storing glass. In this study, deep learning-based tissue segmentation for glass removal, and deep learning compression methods were explored and compared with JPEG, JPEG-2000 and JPEG-XL . Image pyramids (N=21) with intact glass, glass replaced by single-colored pixels, and glass replaced by zero-byte tiles were created and compressed with JPEG, JPEG-XL and a deep learning model. Additionally, several compression models were evaluated on a tissue patch dataset and compared with JPEG, JPEG-2000 and JPEG-XL. Removing glass reduced file sizes considerably for JPEG and JPEG-XL. Deep learning-based image compression reduced the WSI size by 43-72% compared to JPEG compression, whereas deep learning-based glass removal reduced the WSI size by 0.3-33%, and 6-62% using only single-colored pixels and removing all-glass tiles, respectively. Combining the two gave a small improvement to a 44-80% total size reduction which indicates that deep learning-based image compression is able to efficiently compress glass tiles, whereas JPEG is not. On the tissue patch dataset, the best deep learning-based compression models saved on average \sim 35-40% per patch compared to JPEG, while keeping an average SSIM above 0.95, whereas JPEG-XL and JPEG-2000 saved 17% and 14%, respectively while keeping an SSIM of 0.96. However, the deep learning models had higher decompression times than JPEG and JPEG-XL. Keywords: Autoencoder, Deep Learning, Image Compression, JPEG, JPEG-2000, JPEG-XL, Pathology, Tissue Segmentation, Whole Slide Image. 1 Introduction In diagnostic pathology, tissue slides are assessed by pathologists, and the diagnostic pathology report often guides treatment of patients. Scanned tissue sections, whole slide images (WSIs), enable the use of digital tools and artificial intelligence (AI)-based analysis of tissue slides [ 41 ] . A challenge in digital pathology is the large size of the images. In order to efficiently view and process WSIs, they are usually stored in a tiled image pyramid data structure, where several downsampled versions of the WSI are stored, and each level is divided into a large set of equally sized image tiles. Tissue slides scanned at \times 40 magnification can have image sizes of up to 200,000\times 100,000 pixels [ 35 ] . Without compression, this equals a size of more than 55 GB for a single image. In addition, a biopsy often includes several sections, and a combination of hematoxylin and eosin (HE)-stained and immunohistochemistry sections are often used to determine the diagnosis. Thus, one biopsy can result in many WSI files. Without efficient compression of the WSIs, storage capacity will be a huge challenge for pathology laboratories in the future. Reducing the size of WSIs could help reduce digital storage space, energy consumption, and costs at hospitals. It could also decrease transfer time of images and reduce training time of machine learning models by enabling more images to fit on solid-state drives (SSD). SSDs are considerably faster, but with smaller storage capacity than conventional hard drives. With lossless compression, in which no image detail is lost or changed, the file size of WSIs would be too large for practical use. The solution is to use lossy compression, and accept some loss in image detail. Although it was introduced in 1992, JPEG still remains one of the most popular lossy compression methods and is used in digital pathology. JPEG uses the discrete cosine transform with Huffman coding [ 42 ] , and can compress images with a factor of about 10, thus reducing the total WSI size from over 50 GB to 5 GB with little noticeable degradation in image quality. The JPEG algorithm has a quality parameter ranging from 0 to 100, which controls the trade-off between image quality and file size reduction. A higher value results in better image quality, but larger compressed size. In 2000, a new JPEG format, JPEG-2000 , was released. It uses wavelet transformation and arithmetic coding [ 43 ] , and promised better compression performance [ 37 ] . More recently, JPEG-XL [ 2 ] was introduced as a replacement for JPEG, claiming even better compression rates. However, to the best of our knowledge, this new compression algorithm has not been used commercially in the medical imaging domain. In recent years, the success of deep learning within image processing has prompted several research groups to investigate the use of deep learning and convolutional neural networks (CNNs) to learn efficient image compression with techniques such as autoencoders. One can hypothesize that a CNN can represent a highly efficient domain-specific WSI compression model when trained on pathology data. A domain-specific model may be more efficient than general purpose models trained on arbitrary images. For natural images, deep learning-based compression has shown promise compared to JPEG [ 3 , 4 , 22 , 39 , 46 , 27 , 26 , 19 ] . Autoencoders and generative adversarial network (GAN)-based models have achieved good results when evaluated with image quality metrics [ 4 , 26 ] . Ballé et al. presented a factorized and a hyperprior compression model based on autoencoder architectures [ 3 , 4 ] . The factorized model consisted of a convolutional autoencoder with a lossy quantization and an arithmetic encoder and decoder. The hyperprior model extended the factorized model with the addition of a scale hyperprior as side information through an additional autoencoder [ 4 ] . Minnen et al. further built on these models with an additional context model (autoregressive), including the mean value from the hyperprior when combining the hyperprior with the context model [ 27 ] . In histopathology, Barsi et al. created a compression model based on an autoencoder combined with a classifier [ 7 ] , whereas Fisher et al. [ 16 ] implemented the factorized compression model by Ballé et al. [ 5 ] with a custom feature similarity in their loss function using the CompressAI framework [ 8 ] . Fischer et al. trained the model on 25 000 histopathological patches from WSIs from breast and colon. Their model outperformed JPEG with quality parameter 80, with a 76% file size reduction, while keeping the multi scale structural similarity index (MS-SSIM) at 0.99 [ 16 ] . Fischer et al. [ 17 ] trained a model consisting of a stain encoder/decoder, encoding both the RGB and stain channels before they were compressed with a compression autoencoder. In a downstream task (classification of patches as tumor or non-tumor) they outperformed JPEG at high compression [ 17 ] . Whereas deep learning-based compression shows potential, few have attempted to make solutions for full-scale WSI compression. In a full-scale WSI, many pixels may not contain tissue, and thus hold no diagnostic information (Fig. 1 ). Compressing irrelevant background areas more than tissue areas has been tried with JPEG-2000 [ 20 ] . However, even highly compressed, these glass-only areas are a waste of storage space and should ideally be identified and fully removed from the image pyramid, to optimize storage space. This is a task suited

Read the complete text