Abstract
As the adoption of artificial intelligence (AI) systems in radiology grows, the increase in demand for greater bandwidth and computational resources can lead to greater infrastructural costs for healthcare providers and AI vendors. To that end, we developed ISLE, an intelligent streaming framework to address inefficiencies in current imaging infrastructures. Our framework draws inspiration from video-on-demand platforms to intelligently stream medical images to AI vendors at an optimal resolution for inference from a single high-resolution copy using progressive encoding. We hypothesize that ISLE can dramatically reduce the bandwidth and computational requirements for AI inference, while increasing throughput (i.e., the number of scans processed by the AI system per second). We evaluate our framework by streaming chest X-rays for classification and abdomen CT scans for liver and spleen segmentation and comparing them with the original versions of each dataset. For classification, our results show that ISLE reduced data transmission and decoding time by at least 92% and 88%, respectively, while increasing throughput by more than 3.72 × . For both segmentation tasks, ISLE reduced data transmission and decoding time by at least 82% and 88%, respectively, while increasing throughput by more than 2.9 × . In all three tasks, the ISLE streamed data had no impact on the AI system’s diagnostic performance (all P > 0.05). Therefore, our results indicate that our framework can address inefficiencies in current imaging infrastructures by improving data and computational efficiency of AI deployments in the clinical environment without impacting clinical decision-making using AI systems.
Supplementary Information
The online version contains supplementary material available at 10.1007/s10278-024-01173-z.
Keywords: Deep learning, Medical imaging, Compression, Progressive encoding, Image streaming
Introduction
Artificial intelligence (AI) systems for clinical decision support are increasingly being adopted across a variety of clinical applications in radiology, spanning different body parts and imaging modalities [1, 2]. Deploying these AI solutions typically involves healthcare providers streaming large volumes of medical imaging data to cloud-based AI vendors for inference. However, limitations in bandwidth can create communication bottlenecks when streaming medical images over the network, leading to delays in patient care. Furthermore, the increase in demand for greater bandwidth and computational resources to support the deployment of AI solutions in the clinical environment can lead to greater infrastructural costs for both healthcare providers and AI vendors.
To address these bottlenecks, healthcare providers generally use compression codecs (e.g., JPEG 2000) to compress medical images before sending them over the network [3]. While compression can reduce the amount of data transmitted, it still requires healthcare providers to send medical images at their full resolution (i.e., pixel count). However, most deep learning (DL) models are developed with significantly lower-resolution images compared to standard acquisition resolutions for greater computational efficiency and better generalizability [4]. For example, a chest X-ray (CXR) classification model trained using transfer learning requires an input of resolution 224 × 224 despite standard CXR acquisition resolutions often exceeding 2000 × 2500—an image that is about 100 times larger and would have to be resized to the input resolution prior to inference [5]. If healthcare providers could stream medical images to AI vendors at the required resolution for inference, the bandwidth and computational resources needed for the clinical deployment of AI systems would dramatically decrease due to the inherent advantages of streaming a much lower-resolution image over the network. While other groups have explored this potential using the JPEG 2000 Interactive Protocol for clinical applications [6], there is a critically unmet need for a framework that can intelligently determine and validate an optimal resolution for streaming medical images to an AI system for inference without impacting its diagnostic performance.
To that end, we developed ISLE, an intelligent streaming framework based on progressive encoding to stream medical images to AI vendors at an optimal resolution (see the “Stream Optimizer” section) for inference from a single high-resolution copy (Fig. 1). Our framework draws inspiration from video-on-demand platforms that addressed similar infrastructural inefficiencies associated with hosting and streaming media over the network by scaling content to different quality levels depending on individual users’ devices (e.g., smartphone vs television) and network speeds. We hypothesize that ISLE can dramatically reduce the bandwidth and computational requirements for AI inference, while increasing throughput (i.e., the number of scans processed by the AI system per second) by reducing decoding and inference time and without impacting the AI system’s diagnostic performance. The purpose of this study is to (1) evaluate our framework for the intelligent streaming of CXRs for 2D classification of abnormalities in the thorax and abdomen CT scans for 3D segmentation of the liver and spleen organs and (2) compare our framework to techniques used by current imaging infrastructures for streaming medical images over the network.
Fig. 1.
a A conventional setup where the host encodes imaging data using non-progressive codecs (e.g., JPEG). For inference, the host must stream the complete bytestream before the medical image is processed and characterized by an AI system. b On the other hand, a host that encodes imaging data progressively (e.g., using HTJ2K) can use ISLE to intelligently stream only the partial bytestream necessary to decode the medical image at the optimal resolution for the AI system
Materials and Methods
This retrospective study was acknowledged as exempt by review from our institutional IRB.
Medical Image Compression
The effectiveness of medical image compression has been well established in prior literature for reducing data storage and transmission in the clinical environment and for DL applications [3, 7–13]. Briefly, compression codecs work by encoding medical images into a sequence of bytes (hereafter, “bytestream”) that can be decoded to reconstruct the original image. Compression can either have no loss in data (known as “lossless”) or with some loss in data that may or may not be human-perceivable (known as “lossy”).
Progressive Encoding
Our proposed framework is based on lossless progressive encoding, a type of compression offered by the JPEG 2000 standard to optimize the delivery of images over the internet. Rather than waiting for a high-resolution image to load, a low-resolution image is displayed immediately and gradually increases in resolution over time. It works by encoding a medical image as a series of lossy compressed decompositions, where each subsequent decomposition has an increasing level of quality and resolution, such that the complete reconstruction is lossless. A progressively encoded image, with decomposition levels, enables the reconstruction of decompositions, where the resolution of each decomposition is a factor of of the original image’s full resolution. For example, a CXR with a resolution of 512 × 512 can be progressively encoded with three decomposition levels and then decoded at sub-resolutions 64 × 64, 128 × 128, and 256 × 256 as well as at the original resolution 512 × 512 (Fig. 2). This enables progressively encoded images to be decoded at different resolutions from a single high-resolution copy.
Fig. 2.
An example of progressive encoding and subsequent decoding at different decomposition levels to access sub-resolution images by selecting different subsets of the bytestream for chest X-ray
More importantly, progressively encoded images can also be decoded with partial bytestreams. While the JPEG 2000 standard does not explicitly support decoding of partial bytestreams, this ability is derived from encoding images with tile-part divisions by resolution. Provided that the bytes to reconstruct the image at a sub-resolution are available, the image can be decoded at the decomposition level and all preceding levels even in the absence of the complete bytestream. In stark contrast, a vast majority of compression codecs (e.g., JPEG, PNG) encode each image sequentially—from the top-left pixel to the bottom-right pixel—which prevents images from being decoded from a partial bytestream in the same way progressive encoding allows (Fig. 3). This enables quick access to smaller resolution versions of an image (e.g., for thumbnails), thus minimizing data duplication [6]. Despite its tremendous advantages in accelerating medical imaging AI with partial streaming, progressive encoding has primarily been only explored for image compression in medical imaging [14, 31].
Fig. 3.

a Suppose the same chest X-ray is encoded using JPEG (sequential) and HTJ2K (progressive) codecs, followed by decoding of partial bytestreams from both formats. b The partial JPEG bytestream reconstructs an incomplete image whereas the partial HTJ2K bytestream reconstructs a complete image, albeit lower in resolution than the original
High-Throughput JPEG 2000 (HTJ2K)
Recently, the growing popularity of High-Throughput JPEG 2000 (HTJ2K) has renewed interest in progressive encoding within the medical imaging community with its integration into the DICOM transfer syntax and cloud-based imaging infrastructures like Amazon Web Services’ HealthImaging [15, 16]. HTJ2K is an extension of the JPEG 2000 standard with significantly faster encoding and decoding at the expense of a slight reduction in encoding efficiency [17, 18]. For lossless encoding and decoding, HTJ2K is more than 30 times faster than JPEG 2000—putting it on par with the heavily optimized JPEG standard in both single and multi-threaded applications [18]. While our framework is compatible with both codecs, we use HTJ2K for lossless progressive encoding of medical imaging datasets in this study.
Intelligent Streaming
The ISLE framework is based on the intelligent streaming and subsequent decoding of partial bytestreams to reconstruct progressively encoded medical images at an optimal resolution for AI inference. In this study, we define the optimal resolution as the pixel count of the smallest decomposition level at which the reconstructed medical image contains sufficient information for an AI system to accurately characterize the image (see the “Stream Optimizer” section). Our framework lays the foundation for an automated system that intelligently determines and validates the optimal resolution for streaming medical images to an AI system for inference without impacting its diagnostic performance (Fig. 4). It is comprised of three primary components:
Fig. 4.
An overview of the ISLE framework. a At the host, a collection of medical images (e.g., uncompressed DICOM chest X-rays) are progressively encoded into bytestreams using HTJ2K. b The host-side and client-side stream optimizers interact with each other to stream partial bytestreams from the host to an AI vendor. c At the AI vendor, the partial bytestreams are progressively decoded to reconstruct the medical images at the optimal resolution for AI inference
Progressive Encoder
The role of the progressive encoder is to encode medical images into bytestreams using HJT2K (Fig. 4a). We use OpenJPHpy (version 0.1), a Python library for OpenJPH, an open-source implementation of HTJ2K, to progressively encode imaging data as lossless up to 16-bit depth with 64 × 64 block size, decomposition levels, tile-part divisions by resolution, and tile-part markers to identify the location of the decompositions within the bytestream. The inclusion of tile-part divisions by resolution is critical to decoding partial bytestreams at different sub-resolutions. The number of decomposition levels is calculated for each medical image separately prior to encoding to ensure that the sub-resolution of a decomposition level remains consistent across medical images with different resolutions as follows:
where and are the horizontal and vertical resolutions of the medical image, respectively, and is the lower bound for the resolution of the first decomposition. In this study, we set since resolutions smaller than 64 × 64 have drastically poorer performance in AI systems [4].
Our progressive encoder is capable of encoding both 2D and 3D medical images. While the encoding of 2D imaging data follows the above methods, the encoding of 3D imaging data requires each slice of the volume to be encoded separately as a 2D image. This is particularly applicable to encoding medical images stored in the NIfTI format—which encodes the entire volume in a single file. Furthermore, the rescale intercept and slope were calculated to rescale pixel values to 16-bit unsigned integers when required prior to encoding a medical image (e.g., when encoding Hounsfield units for CT scans).
Stream Optimizer
The stream optimizer enables the streaming and subsequent decoding of partial bytestreams to reconstruct medical images at the decomposition level corresponding to the optimal resolution for the AI system. The overarching goal of the stream optimizer is to provide an interface for an AI vendor to access the database of medical images for inference from the healthcare provider. It consists of two components: (1) a host-side stream optimizer, and (2) a client-side stream optimizer (Fig. 4b).
The role of the host-side stream optimizer is to interface with the database of progressively encoded medical images to build a stream optimization map. Each medical image contains a unique entry in the stream optimization map and works by mapping each sub-resolution to the partial bytestream necessary to decode the image at the sub-resolution’s corresponding decomposition level. An entry is created by locating tile-part markers in the complete bytestream (identified by bytes 0xFF90 and 0xFFD9 [19]) and calculating the sub-resolution as a factor of of the image’s full resolution. The inclusion of tile-part markers in the encoding step is critical to the building of the stream optimization map. This enables a medical image to be streamed at a specific decomposition level using partial bytestreams without streaming the complete bytestream. For example, a CXR with resolution 512 × 512 can be streamed at sub-resolution 256 × 256 with the first 12 KB of the complete 180 KB bytestream.
On the contrary, the role of the client-side stream optimizer is to interface with the AI system to intelligently determine and validate the optimal resolution for streaming medical images from the host without impacting the AI system’s diagnostic performance. The client-side stream optimizer uses the AI vendor’s internal test set to determine the optimal resolution for the AI system. The internal test set is first progressively encoded, then decoded at each decomposition level, and finally evaluated with the AI system to measure performance metrics (e.g., AUROC for classification). The optimal resolution is determined as the smallest decomposition level which (1) corresponds to a sub-resolution closest to the input resolution of the AI system and (2) results in no statistically significant difference in the AI system’s performance compared to the full resolution test set. For example, when considering a CXR with resolution 512 × 512 and DL classification model with input resolution 224 × 224, the optimal resolution is determined as 256 × 256 and corresponds to the third decomposition level.
Progressive Decoder
The role of the progressive decoder is to decode partial bytestreams at the specified decomposition level to reconstruct a medical image at the optimal resolution for the AI system (Fig. 4c). While the decoding of 2D imaging data is straightforward, decoding 3D imaging data requires an additional overhead to reconstruct and restitch the volume from the series of 2D slices. For medical images originally in the NIfTI format, each slice of the volume is decoded at the optimal resolution and then stitched into a volume. Then, the original affine transformation matrix and voxel size are rescaled to match the sub-resolution using NiBabel (version 5.2) to ensure correct transformation from voxel coordinates to world coordinates.
Datasets
In this work, we consider six medical imaging datasets—three each for 2D classification with CXRs and 3D segmentation with CT scans:
Classification
The National Institutes of Health’s (NIH) ChestX-ray14 dataset (hereafter, “NIH”) consists of n = 112,120 frontal CXRs from 30,805 patients [20]. All images in the dataset have a fixed resolution of 1024 × 1024, have pixel values normalized to range 0–255, and are encoded in the PNG format (i.e., lossless). We only consider seven disease labels from the NIH dataset for our analysis: atelectasis, cardiomegaly, consolidation, edema, pleural effusion, pneumonia, and pneumothorax.
The CheXpert dataset consists of n = 224,316 frontal and lateral CXRs from 65,240 patients [21, 22]. Images in the dataset have a mean resolution of 2828 × 2320, have pixel values normalized to range 0–255, and are encoded in the JPEG format (i.e., lossy). For inference, we randomly sampled n = 15,000 frontal CXRs, and all uncertain labels were treated as negatives. The same seven disease labels as the NIH dataset are considered for our analysis.
The MIMIC-CXR-JPG dataset (hereafter, “MIMIC”) consists of n = 377,110 frontal and lateral CXRs from 65,379 patients [13, 23]. Images in the dataset have a mean resolution of 2500 × 3056, have pixel values normalized with histogram equalization to range 0–255, and are encoded in the JPEG format (i.e., lossy). Furthermore, the MIMIC-CXR dataset provides the images in the 12-bit uncompressed DICOM Little Endian format [24]. The same preprocessing steps, excluding JPEG conversion, were applied to the DICOM images during inference. For inference, we randomly sampled n = 15,000 frontal CXRs, and all uncertain labels were treated as negatives. The same seven disease labels as the NIH dataset are considered for our analysis.
Segmentation
The Medical Segmentation Decathlon (MSD) is a collection of benchmark datasets for 3D segmentation comprising 10 tasks spanning across different body parts and imaging modalities [25]. Out of the MSD collection, we use two datasets: (1) The MSD Liver dataset consists of n = 131 abdomen portal venous phase contrast-enhanced CT scans containing liver and liver tumor annotations. All tumor annotations were discarded for this study. (2) The MSD Spleen dataset consists of n = 41 abdomen non-enhanced CT scans containing spleen annotations. Both datasets contain scans acquired at standard CT axial resolution of 512 × 512 with variable volume sizes and encoded in the NIfTI format (i.e., lossless).
The Multi-Atlas Labeling Beyond the Cranial Vault (BTCV) dataset consists of n = 30 abdomen portal venous phase contrast-enhanced CT scans containing annotations for 13 abdominal organs [26]. The dataset contains scans acquired at standard CT axial resolution of 512 × 512 with variable volume sizes and encoded in the NIfTI format (i.e., lossless). We only use annotations for the liver and spleen organs in this study to create an external test set for each organ.
Experimental Design
In this study, we evaluate the ISLE framework for AI inference across two experiments: (1) 2D classification of abnormalities with CXRs and (2) 3D segmentation of the liver and spleen organs with abdomen CT scans. In both cases, we first train a DL model using an internal dataset, determine and validate the optimal resolution for AI inference using an internal test set from the same site, and then evaluate the optimal resolution on external data streamed from a different site.
For each test set, we measure the mean structural similarity index measure (SSIM) and mean peak signal-to-noise ratio (PSNR) as image fidelity metrics. We also measure the amount of data transferred, decoding time, inference time, and throughput as data efficiency metrics. Both sets of metrics are measured at each decomposition level (including the optimal resolution) for the ISLE streamed version and compared with the original non-ISLE streamed versions of the test set. We measure the SSIM and PSNR after normalizing pixel values to range 0–1 using scikit-image (version 0.22). The decode time is measured using OpenCV (version 4.7) for JPEG and PNG formats, Pydicom (version 2.3.1) for uncompressed DICOM imaging data, and OpenJPHpy (version 0.1) for HTJ2K format. The inference time is measured by the time taken by the AI system to characterize a medical image, including any preprocessing steps such as resizing to input resolution. Both decoding and inference times are measured on a single thread, without parallel processing. The throughput of the AI system is measured as the number of scans processed by the AI system per second and is defined as follows:
Classification
We randomly split the internal NIH dataset into training (70%, n = 78,075), validation (10%, n = 11,079), and testing (20%, n = 22,966) sets with no patient leakage. Then, we train a multi-label DenseNet121 model, pre-trained with ImageNet, using transfer learning for 100 epochs with binary cross-entropy loss, batch size of 64, learning rate of 5e − 5, and early stopping. All CXRs are resized to resolution 224 × 224 while maintaining an aspect ratio with zero-padding with pixel values normalized to range 0–1 and scaled to ImageNet statistics. Random augmentations (rotation, flip, zoom, and contrast) are applied to input images during training. Then, the internal NIH test set is used to determine and validate the optimal resolution using our framework. Finally, we evaluate the optimal resolution on the external CheXpert and MIMIC-CXR-JPG datasets. All models are trained and tested using TensorFlow (version 2.8.1) and CUDA (version 12.0) on an NVIDIA GeForce RTX 4090 GPU. Model performance is measured by the mean area under the receiver operating characteristic curve (AUROC) scores of the seven disease labels.
Segmentation
For liver segmentation, we randomly split the internal MSD Liver dataset into training (80%, n = 106) and testing (20%, n = 25) sets. Then, we train a modified 3D-UNet model with five levels of two residual convolutional units on the internal MSD Liver dataset for 500 epochs with Dice loss, batch size of 2, decaying learning rate with cosine annealing scheduler, and initial learning rate of 1e − 4. All CT scans are resized to resolution 256 × 256 × 128, voxel spacing rescaled to 1.5 × 1.5 × 2.0 mm, and pixel values normalized to range 0–1. Random foreground patches of resolution 128 × 128 × 32 are extracted from each volume and centered on voxels belonging either to the foreground or background class. Random augmentations (rotation, scaling, and elastic deformation) were applied to input volumes during training. Then, the internal MSD Liver test set is used to determine and validate the optimal resolution using our framework. Finally, we evaluate the optimal resolution on the external BTCV Liver dataset.
For spleen segmentation, we randomly split the internal MSD Spleen dataset into training (80%, n = 32) and testing (20%, n = 9) sets. Then, we similarly train a modified 3D-UNet model using the methods described above. Then, the internal MSD Spleen test set is used to determine and validate the optimal resolution using our framework. Finally, we evaluate the optimal resolution on the external BTCV Spleen dataset. All models are trained and tested using PyTorch (version 1.13), MONAI (version 1.1), and CUDA (version 12.0) on an NVIDIA GeForce RTX 4090 GPU. Model performance was measured by the mean Dice similarity coefficient.
Statistical Analysis
We compare performance metrics using statistical tests between the original dataset and each decomposition for each test set. For classification, we compare the mean AUROC scores with a one-sided paired t-test due to the normal distribution of paired samples, indicated by P ≥ 0.05 using the Shapiro–Wilk test for normality. For segmentation, we compare the mean Dice scores with a one-sided Wilcoxon signed-rank test due to the non-parametric distribution of paired samples. In both cases, we tested the alternative hypothesis that the mean performance metric for a decomposition is less than the mean performance metric for the original dataset. Statistical significance is defined as P < 0.05.
Results
Classification
Using the internal NIH test set, the ISLE framework determines the optimal resolution for the DL model as the third decomposition level with a resolution of 256 × 256, which is the closest resolution to the model’s input size of 224 × 224. The optimal resolution measures a mean AUROC of 0.84 (SD = 0.05) compared to the mean AUROC of 0.84 (SD = 0.05) with the original PNG data (P = 0.62). At the optimal resolution, the ISLE framework requires 91.58% less data to be transferred, 87.65% less time to decode, and 11.61% less time for inference while increasing throughput by 3.72 × . Furthermore, the optimal resolution measures a mean SSIM of 0.97 (SD = 0.01) and a mean PSNR of 31.51 (SD = 3.96). The results are detailed in Table 1 and Fig. 5a.
Table 1.
Data efficiency and performance metrics on the internal NIH test set (n = 22,966) for each decomposition level and the original format. The ISLE framework’s optimal resolution is highlighted in bold. The mean AUROC scores are reported in mean (SD) format. Mean AUROC scores were compared using one-sided paired t-tests. Statistically significant comparisons are in italics
| Format | Decomp | Data transfer (GB) | Decode time (s) | Inference time (s) | Throughput (scans/s) | Mean AUROC | P-value |
|---|---|---|---|---|---|---|---|
| PNG | - | 8.60 | 121.72 | 15.98 | 166.79 | 0.838 (0.052) | - |
| HTJ2K | 1 | 0.09 | 4.27 | 13.86 | 1267.20 | 0.817 (0.050) | < 0.001 |
| 2 | 0.23 | 6.20 | 13.94 | 1140.11 | 0.836 (0.050) | 0.07 | |
| 3 | 0.72 | 15.03 | 14.12 | 787.78 | 0.838 (0.050) | 0.62 | |
| 4 | 2.50 | 40.09 | 14.63 | 419.68 | 0.838 (0.052) | 0.72 | |
| 5 | 8.26 | 120.50 | 15.26 | 169.17 | 0.838 (0.052) | 1.00 |
Fig. 5.
Mean AUROC scores for 2D classification of abnormalities using chest X-rays on the original dataset and across each HTJ2K decomposition, including the ISLE’s optimal resolution (hatched), using the a internal NIH test set, b external CheXpert dataset, and c external MIMIC dataset. Mean AUROC scores were compared using one-sided paired t-tests. The comparison between the original dataset and the optimal resolution is annotated. For all other comparisons, only statistically significant comparisons are annotated (ns P ≥ 0.05, *P < 0.05, **P < 0.01, ***P < 0.001)
When evaluating the external CheXpert test set, the optimal resolution measures a mean AUROC of 0.71 (SD = 0.08) compared to the mean AUROC of 0.70 (SD = 0.08) with the original JPEG data (P = 0.99). However, the ISLE framework requires 97.43% less data to be transferred, 97.70% less time to decode, and 13.46% less time for inference while increasing throughput by 23.69 × . Furthermore, the optimal resolution measures a mean SSIM of 0.92 (SD = 0.03) and mean PSNR of 28.57 (SD = 1.70). The results are detailed in Table 2 and Fig. 5b. Similarly, when evaluating the external MIMIC dataset, the optimal resolution measures a mean AUROC of 0.77 (SD = 0.07) compared to the mean AUROC of 0.78 (SD = 0.07) with the uncompressed DICOM data (P = 0.99). More importantly, ISLE requires 99.83% less data to be transferred, 99.53% less time to decode, and 97.23% less time for inference while increasing the throughput by 113.87 × . When comparing the ISLE streamed dataset with the JPEG version of the MIMIC dataset, we observe no significant differences in the mean AUROC of 0.79 (SD = 0.07, P = 1.00). The ISLE framework only requires 98.62% less data to be transmitted, 98.49% less time to decode, and 18.73% less time for inference while increasing throughput by 30.12 × . Furthermore, the optimal resolution measures a mean SSIM of 0.92 (SD = 0.03) and mean PSNR of 27.30 (SD = 2.34). The results are detailed in Table 3 and Fig. 5c.
Table 2.
Data efficiency and performance metrics on the external CheXpert test set (n = 15,000) for each decomposition level and the original format. The ISLE framework’s optimal resolution is highlighted in bold. The mean AUROC scores are reported in mean (SD) format. Mean AUROC scores were compared using one-sided paired t-tests. Statistically significant comparisons are in italics
| Format | Decomp | Data transfer (GB) | Decode time (s) | Inference time (s) | Throughput (scans/s) | Mean AUROC | P-value |
|---|---|---|---|---|---|---|---|
| JPEG | - | 31.59 | 535.69 | 11.35 | 27.42 | 0.699 (0.078) | - |
| HTJ2K | 1 | 0.09 | 4.87 | 9.02 | 1079.33 | 0.698 (0.084) | 0.42 |
| 2 | 0.24 | 8.53 | 9.50 | 831.92 | 0.713 (0.084) | 0.99 | |
| 3 | 0.81 | 12.34 | 9.82 | 676.99 | 0.709 (0.082) | 0.99 | |
| 4 | 3.08 | 29.44 | 9.85 | 381.78 | 0.706 (0.079) | 0.99 | |
| 5 | 12.11 | 93.80 | 9.55 | 145.14 | 0.702 (0.079) | 0.99 | |
| 6 | 46.04 | 356.85 | 10.96 | 40.78 | 0.698 (0.079) | 0.04 | |
| 7 | 52.08 | 402.42 | 11.22 | 36.26 | 0.699 (0.078) | 1.00 |
Table 3.
Data efficiency and performance metrics on the external MIMIC test set (n = 15,000) for each decomposition level and the original format. Both sets of metrics are also provided for the uncompressed DICOM version of the MIMIC dataset. The ISLE framework’s optimal resolution is highlighted in bold. The mean AUROC scores are reported in mean (SD) format. Mean AUROC scores were compared using one-sided paired t-tests. Statistically significant comparisons are in italics
| Format | Decomp | Data transfer (GB) | Decode time (s) | Inference time (s) | Throughput (scans/s) | Mean AUROC | P-value |
|---|---|---|---|---|---|---|---|
| JPEG | - | 24.78 | 491.92 | 10.72 | 29.84 | 0.762 (0.072) | - |
| DICOM | - | 199.24 | 1540.88 | 10.46 | 9.67 | 0.779 (0.068) | 1.00 |
| HTJ2K | 1 | 0.04 | 2.90 | 8.52 | 1314.07 | 0.722 (0.076) | 0.002 |
| 2 | 0.11 | 4.00 | 8.55 | 1195.22 | 0.767 (0.072) | 0.88 | |
| 3 | 0.34 | 7.44 | 8.71 | 928.76 | 0.771 (0.072) | 1.00 | |
| 4 | 1.24 | 17.03 | 8.76 | 581.53 | 0.769 (0.073) | 1.00 | |
| 5 | 4.70 | 47.91 | 8.98 | 263.66 | 0.767 (0.073) | 1.00 | |
| 6 | 17.54 | 161.99 | 9.54 | 87.45 | 0.764 (0.072) | 1.00 | |
| 7 | 43.94 | 438.59 | 10.20 | 33.42 | 0.762 (0.072) | 1.00 |
Segmentation
Liver Segmentation
Using the internal MSD Liver test set, the ISLE framework determines the optimal resolution of the DL model as the third decomposition with resolution 256 × 256 and variable volume sizes, which is the closest resolution to the model’s input size of 256 × 256 × 128. The optimal resolution measures a mean Dice of 0.95 (SD = 0.02) compared to the mean Dice of 0.95 (SD = 0.02) with the original NIfTI data (P = 0.27). At the optimal resolution, the ISLE framework requires 81.58% less data to be transferred, 87.86% less time to decode, and 2.03% less time for inference while increasing the throughput by 3.42 × . Furthermore, the optimal resolution measures a mean SSIM of 0.96 (SD = 0.02) and mean PSNR of 33.50 (SD = 5.76). The results are detailed in Table 4 and Fig. 6a. When evaluating the external BTCV dataset, the optimal resolution measures a mean Dice of 0.93 (SD = 0.02) compared to the mean Dice of 0.93 (SD = 0.02) on the original NIfTI data (P = 1.00). More importantly, the ISLE framework requires 77.93% less data to be transferred, 89.50% less time to decode, and 1.34% less time for inference while increasing throughput by 2.60 × . Furthermore, the optimal resolution measures a mean SSIM of 0.97 (SD = 0.00) and mean PSNR of 30.80 (SD = 2.80). The results are detailed in Table 5 and Fig. 6a.
Table 4.
Data efficiency and performance metrics on the internal MSD Liver test set (n = 25) for each decomposition level and the original format. The ISLE framework’s optimal resolution is highlighted in bold. The mean Dice scores are reported in mean (SD) format. Mean Dice scores were compared using one-sided Wilcoxon signed-rank tests. Statistically significant comparisons are in italics
| Format | Decomp | Data transfer (GB) | Decode time (s) | Inference time (s) | Throughput (scans/s) | Mean Dice | P-value |
|---|---|---|---|---|---|---|---|
| NIfTI | - | 4.90 | 75.51 | 10.51 | 0.35 | 0.945 (0.017) | - |
| HTJ2K | 1 | 0.13 | 2.40 | 10.36 | 2.35 | 0.917 (0.021) | < 0.001 |
| 2 | 0.30 | 3.98 | 10.29 | 2.10 | 0.937 (0.021) | < 0.001 | |
| 3 | 0.90 | 9.17 | 10.30 | 1.54 | 0.945 (0.019) | 0.27 | |
| 4 | 2.88 | 29.24 | 10.37 | 0.76 | 0.945 (0.017) | 1.00 |
Fig. 6.
Mean Dice scores for 3D segmentation of the a liver and b spleen organs using abdomen CT scans on the original dataset and across each HTJ2K decomposition, including the ISLE’s optimal resolution (hatched), using the internal MSD test set and c external BTCV dataset. Mean Dice scores were compared using one-sided Wilcoxon signed-rank tests. The comparison between the original dataset and the optimal resolution is annotated. For all other comparisons, only statistically significant comparisons are annotated (ns P ≥ 0.05, *P < 0.05, **P < 0.01, ***P < 0.001)
Table 5.
Data efficiency and performance metrics on the external BTCV liver test set (n = 30) for each decomposition level and the original format. The ISLE framework’s optimal resolution is highlighted in bold. The mean Dice scores are reported in mean (SD) format. Mean Dice scores were compared using one-sided Wilcoxon signed-rank tests. Statistically significant comparisons are in italics
| Format | Decomp | Data transfer (GB) | Decode time (s) | Inference time (s) | Throughput (scans/s) | Mean Dice | P-value |
|---|---|---|---|---|---|---|---|
| NIfTI | - | 0.93 | 22.39 | 5.43 | 1.08 | 0.926 (0.019) | - |
| HTJ2K | 1 | 0.03 | 0.59 | 5.53 | 5.05 | 0.900 (0.027) | < 0.001 |
| 2 | 0.07 | 0.95 | 5.46 | 4.68 | 0.923 (0.020) | 0.004 | |
| 3 | 0.20 | 2.35 | 5.40 | 3.87 | 0.928 (0.017) | 1.00 | |
| 4 | 0.63 | 6.66 | 5.35 | 2.50 | 0.926 (0.019) | 1.00 |
Spleen Segmentation
Using the internal MSD Spleen test set, the ISLE framework similarly determines the optimal resolution of the DL model as the third decomposition with resolution 256 × 256 and variable volume sizes due to the shared architecture of both DL models. The optimal resolution measures a mean Dice of 0.93 (SD = 0.02) compared to the mean Dice of 0.93 (SD = 0.02) with the original NIfTI data (P = 0.37). At the optimal resolution, the ISLE framework requires 81.99% less data to be transferred, 93.27% less time to decode, and 3.92% less time for inference while increasing the throughput by 2.87 × . Furthermore, the optimal resolution measures a mean SSIM of 0.96 (SD = 0.01) and mean PSNR of 30.20 (SD = 0.93). The results are detailed in Table 6 and Fig. 6b. When evaluating the external BTCV dataset, the optimal resolution measures a mean Dice of 0.88 (SD = 0.14) compared to the mean Dice of 0.88 (SD = 0.15) on the original NIfTI data (P = 0.97). The ISLE framework requires 77.93% less data to be transferred, 89.50% less time to decode, and 3.24% less time for inference while increasing throughput by 2.62 × . Furthermore, the optimal resolution measures a mean SSIM of 0.97 (SD = 0.00) and mean PSNR of 30.80 (SD = 2.80). The results are detailed in Table 7 and Fig. 6b.
Table 6.
Data efficiency and performance metrics on the internal MSD Spleen test set (n = 9) for each decomposition level and the original format. The ISLE framework’s optimal resolution is highlighted in bold. The mean Dice scores are reported in mean (SD) format. Mean Dice scores were compared using one-sided Wilcoxon signed-rank tests. Statistically significant comparisons are in italics
| Format | Decomp | Data transfer (GB) | Decode time (s) | Inference time (s) | Throughput (scans/s) | Mean Dice | P-value |
|---|---|---|---|---|---|---|---|
| NIfTI | - | 0.18 | 6.40 | 1.74 | 3.68 | 0.934 (0.021) | - |
| HTJ2K | 1 | 0.01 | 0.14 | 1.64 | 16.88 | 0.901 (0.025) | 0.004 |
| 2 | 0.01 | 0.17 | 1.61 | 16.86 | 0.931 (0.023) | 0.10 | |
| 3 | 0.03 | 0.43 | 1.68 | 14.24 | 0.934 (0.020) | 0.37 | |
| 4 | 0.10 | 1.56 | 1.53 | 9.72 | 0.934 (0.021) | 1.00 |
Table 7.
Data efficiency and performance metrics on the external BTCV spleen test set (n = 30) for each decomposition level and the original format. The ISLE framework’s optimal resolution is highlighted in bold. The mean Dice scores are reported in mean (SD) format. Mean Dice scores were compared using one-sided Wilcoxon signed-rank tests. Statistically significant comparisons are in italics
| Format | Decomp | Data transfer (GB) | Decode time (s) | Inference time (s) | Throughput (scans/s) | Mean Dice | P-value |
|---|---|---|---|---|---|---|---|
| NIfTI | - | 0.93 | 22.39 | 5.56 | 1.07 | 0.879 (0.147) | - |
| HTJ2K | 1 | 0.03 | 0.59 | 5.66 | 4.80 | 0.822 (0.147) | < 0.001 |
| 2 | 0.07 | 0.95 | 5.45 | 4.69 | 0.874 (0.139) | 0.004 | |
| 3 | 0.20 | 2.35 | 5.38 | 3.88 | 0.881 (0.143) | 0.97 | |
| 4 | 0.63 | 6.66 | 5.49 | 2.47 | 0.879 (0.147) | 1.00 |
The detailed breakdown of the encoding time to progressively encode all six medical imaging datasets is provided in Supplement 1. Examples of CXRs and abdomen CT scans at various decomposition levels are provided in Supplement 2. The image fidelity metrics for each decomposition level are detailed in Supplement 3.
Discussion
Our results demonstrate the potential of the ISLE framework in dramatically reducing the amount of data transmitted and decoding time when streaming medical images over the network, while significantly increasing the throughput of AI systems for inference across classification and segmentation tasks. For all three tasks, the optimal resolution determined by our framework on the internal test set scales well to external data and does not impact the performance of the DL model. This is expected as inference on a medical image with a resolution close to the input size of a DL model should not impact the diagnostic performance of the AI system [4]. However, our results indicate that segmentation tasks are more sensitive to lower-resolution images and lossy compression artifacts than classification tasks—a finding that aligns with prior literature [27].
The primary advantage of the ISLE framework is the ability to intelligently stream medical images at the optimal resolution for inference to an AI vendor without additional image preprocessing or data duplication. This enables healthcare providers to store medical images at a single high-resolution copy while streaming to different AI vendors at different resolutions. While compression has widely been adopted in imaging infrastructures for reducing data storage and transmission, our framework takes a step further by enabling healthcare providers and AI vendors to benefit from the inherent gains in data efficiency from streaming a lower-resolution image. For example, in our analysis, the uncompressed external MIMIC test set shrunk almost 600 times in size—from 199 to 0.34 GB—when the medical images were progressively encoded using HTJ2K and then streamed at the optimal resolution with the ISLE framework.
The streaming of medical images at the optimal resolution also improves the computational efficiency of AI inference—a key factor for reducing the carbon footprint of AI deployments [28]. A vast majority of DL models require a fixed input resolution. Therefore, medical images with resolutions larger than the input resolution must be resized prior to inference. This bottleneck results in diminishing returns in net image fidelity and DL model performance with increasing resolution [4]. While the computational efficiency of popular resizing algorithms (e.g., bilinear interpolation) is independent of the original image resolution, the computational efficiency of decoding and loading medical images into memory for inference is dependent on it. Our results show that the ISLE framework reduces the decoding and inference time, resulting in a dramatic increase in the throughput of AI systems.
As the adoption of AI systems grows within the clinical environment, smaller practices and rural clinics may not be able to keep pace with larger hospital systems in terms of implementing high-quality computational infrastructure and, therefore, may not be able to support the deployment of large-scale AI solutions, leading to widening of health disparities in the US population [29]. The ISLE framework could potentially help maintain equity in care across both small and large healthcare systems by dramatically reducing the infrastructural requirements for healthcare providers [30].
Our work has certain limitations. Our results indicate that the benefits of intelligent streaming are not just dependent on the task and modality, but also on the architecture of the AI system. For example, a DL segmentation model with CT scans trained on standard acquisition resolutions would yield significantly fewer gains in data and computational efficiency compared to a model trained on lower resolutions. Furthermore, due to the limitations of HTJ2K, our framework does not perform 3D compression and each axial slice of the volume is encoded and decoded as a separate image. This adds an additional step to reconstruct the volume after decoding. Finally, our framework requires medical images to be progressively encoded using either JPEG 2000 or HTJ2K for intelligent streaming. This is a crucial consideration for existing imaging infrastructures that do not use compression to store medical images.
For future work, we intend to explore the methods for training DL models such that they are robust on inference with low-resolution images for medical image AI applications on the edge through techniques like data augmentation. We also intend to explore the potential of our framework for reducing the amount of data storage and transmission for cloud-based imaging databases with a focus on greater accessibility and interoperability of large-scale medical image datasets for AI applications.
Conclusion
The ISLE framework presents an important first step towards a framework for intelligently streaming medical images to AI vendors at an optimal resolution for inference. We show that our framework can address inefficiencies in current imaging infrastructures by improving data and computational efficiency of AI deployments in the clinical environment without impacting clinical decision-making using AI systems.
Supplementary Information
Below is the link to the electronic supplementary material.
Author Contributions
All authors contributed to the study conception and design. The material preparation, data collection, and technical aspects of the study were performed by Pranav Kulkarni, Adway Kanhere, and Vishwa Parekh. The first draft of the manuscript was written by Pranav Kulkarni and all authors provided feedback on previous versions. All authors read and approved the final manuscript.
Funding
The authors declare that no funds, grants, or other support were received during the preparation of this manuscript.
Data Availability
All data used in this study is publicly available. The NIH ChestX-ray14 dataset is open access (https://nihcc.app.box.com/v/ChestXray-NIHCC/folder/36938765345). The CheXpert dataset has credentialed access (https://stanfordmlgroup.github.io/competitions/chexpert). The MIMIC-CXR and MIMIC-CXR-JPG datasets have credentialed access (https://physionet.org/content/mimic-cxr-jpg/2.0.0). The Medical Segmentation Decathlon dataset is open-access (http://medicaldecathlon.com). The Beyond the Cranial Vault dataset has credentialed access (https://www.synapse.org/#!Synapse:syn3193805).
Code Availability
The code for this study is available at https://github.com/UM2ii/IntelligentStreaming.
Declarations
Ethics Approval
An IRB exemption was granted to conduct this retrospective study by the University of Maryland Institutional Review Board.
Competing Interests
Pranav Kulkarni, Adway Kanhere, Eliot L. Siegel, Paul H. Yi, and Vishwa S. Parekh have a provisional patent on the medical image streaming technology outlined in this work. Pranav Kulkarni, Adway Kanhere, Paul H. Yi, and Vishwa S. Parekh have received research cloud credits from Amazon Web Services. Eliot L. Siegel has received financial support as a member of the Board of Directors of Mach7 Technologies. Paul H. Yi has received financial support in part from the National Institutes of Health, the American College of Radiology, and the Radiological Society of North America; has received honoraria from the Society for Imaging Informatics in Medicine and the Society of Nuclear Medicine and Molecular Imaging; and is a consultant for Bunker Hill.
Footnotes
Preprint
This work is available on the arXiv preprint server: https://arxiv.org/abs/2305.15617 (10.48550/arXiv.2305.15617, license: CC BY 4.0).
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- 1.Hosny A, Parmar C, Quackenbush J, Schwartz LH, Aerts HJWL. Artificial intelligence in radiology. Nat Rev Cancer. 2018;18(8):500–510. 10.1038/s41568-018-0016-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Thrall JH, Li X, Li Q, et al. Artificial intelligence and machine learning in radiology: opportunities, challenges, pitfalls, and criteria for success. J Am Coll Radiol. 2018;15(3):504–508. 10.1016/j.jacr.2017.12.026 [DOI] [PubMed] [Google Scholar]
- 3.Wong S, Zaremba L, Gooden D, Huang HK. Radiologic image compression-a review. Proc IEEE. 1995;83(2):194–219. 10.1109/5.364466 [Google Scholar]
- 4.Sabottke CF, Spieler BM. The effect of image resolution on deep learning in radiography. Radiol Artif Intell. 2020;2(1):e190015. 10.1148/ryai.2019190015 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Huda W, Abrahams RB. X-ray-based medical imaging and resolution. Am J Roentgenol. 2015;204(4):W393–W397. 10.2214/AJR.14.13126 [DOI] [PubMed] [Google Scholar]
- 6.Noumeir R, Pambrun JF. Using JPEG 2000 Interactive protocol to stream a large image or a large image set. J Digit Imaging. 2011;24(5):833–843. 10.1007/s10278-010-9343-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Jo YY, Choi YS, Park HW, et al. Impact of image compression on deep learning-based mammogram classification. Sci Rep. 2021;11(1):7924. 10.1038/s41598-021-86726-w [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Shih G, Wu CC, Halabi SS, et al. Augmenting the national institutes of health chest radiograph dataset with expert annotations of possible pneumonia. Radiol Artif Intell. 2019;1(1):e180041. 10.1148/ryai.2019180041 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Lehmann TM, Abel J, Weiss C. The impact of lossless image compression to radiographs. In: Medical Imaging 2006: PACS and Imaging Informatics. Vol 6145.; 2006:290–297. 10.1117/12.651697
- 10.Clunie DA. Lossless compression of grayscale medical images: effectiveness of traditional and state-of-the-art approaches. In: Medical Imaging 2000: PACS Design and Evaluation: Engineering and Clinical Issues. Vol 3980.; 2000:74–84. 10.1117/12.386389
- 11.Koff DA, Shulman H. An overview of digital compression of medical images: can we use lossy image compression in radiology? Can Assoc Radiol J J Assoc Can Radiol. 2006;57(4):211–217. [PubMed] [Google Scholar]
- 12.Koff D, Bak P, Brownrigg P, et al. Pan-Canadian evaluation of irreversible compression ratios (“Lossy” Compression) for development of national guidelines. J Digit Imaging. 2009;22(6):569–578. 10.1007/s10278-008-9139-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Johnson AEW, Pollard TJ, Greenbaum NR, et al. MIMIC-CXR-JPG, a large publicly available database of labeled chest radiographs. Published online November 14, 2019. 10.48550/arXiv.1901.07042
- 14.Foos DH, Muka E, Slone RM, et al. JPEG 2000 compression of medical imagery. In: Blaine GJ, Siegel EL, eds. Medical Imaging 2000: PACS Design and Evaluation: Engineering and Clinical Issues. Vol 3980.; 2000:85–96. 10.1117/12.386390
- 15.HTJ2K Transfer Syntax. Published online November 14, 2023. Accessed February 21, 2024. https://dicom.nema.org/medical/dicom/Final/sup235_ft_HTJ2K.pdf
- 16.AWS HealthImaging. Accessed February 21, 2024. https://aws.amazon.com/healthimaging/
- 17.High Throughput JPEG 2000 (HTJ2K) and the JPH file format: a primer. Accessed February 21, 2024. https://ds.jpeg.org/whitepapers/jpeg-htj2k-whitepaper.pdf
- 18.Taubman D, Naman A, Mathew R, Smith M, Watanabe O, Lemieux PA. High throughput JPEG 2000 (HTJ2K): Algorithm, performance and potential. Published online May 29, 2020. Accessed February 21, 2024. https://htj2k.com/wp-content/uploads/white-paper.pdf
- 19.Boliek M, Christopoulos C, Majani E. JPEG 2000 Image Coding System. Published online April 11, 2000. Accessed February 26, 2024. https://ics.uci.edu/~dan/class/267/papers/jpeg2000.pdf
- 20.Wang X, Peng Y, Lu L, Lu Z, Bagheri M, Summers RM. ChestX-Ray8: Hospital-Scale Chest X-Ray Database and Benchmarks on Weakly-Supervised Classification and Localization of Common Thorax Diseases. In: 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE; 2017:3462–3471. 10.1109/CVPR.2017.369
- 21.Irvin J, Rajpurkar P, Ko M, et al. CheXpert: a large chest radiograph dataset with uncertainty labels and expert comparison. Proc AAAI Conf Artif Intell. 2019;33(01):590–597. 10.1609/aaai.v33i01.3301590 [Google Scholar]
- 22.Garbin C, Rajpurkar P, Irvin J, Lungren MP, Marques O. Structured dataset documentation: a datasheet for CheXpert. Published online May 6, 2021. 10.48550/arXiv.2105.03020
- 23.Goldberger AL, Amaral LAN, Glass L, et al. PhysioBank, PhysioToolkit, and PhysioNet: Components of a New Research Resource for Complex Physiologic Signals. Circulation. 2000;101(23). 10.1161/01.CIR.101.23.e215 [DOI] [PubMed]
- 24.Johnson AEW, Pollard TJ, Berkowitz SJ, et al. MIMIC-CXR, a de-identified publicly available database of chest radiographs with free-text reports. Sci Data. 2019;6(1):317. 10.1038/s41597-019-0322-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Antonelli M, Reinke A, Bakas S, et al. The medical segmentation decathlon. Nat Commun. 2022;13(1):4128. 10.1038/s41467-022-30695-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Landman B, Xu Z, Igelsias J, Styner M, Langerak T, Klein A. MICCAI multi-atlas labeling beyond the cranial vault - workshop and challenge. Published Online 2015. 10.7303/SYN3193805 [Google Scholar]
- 27.Liu Z, Zhuang J, Xu X, et al. Machine Vision Guided 3D Medical Image Compression for Efficient Transmission and Accurate Segmentation in the Clouds. In: 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE; 2019:12679–12688. 10.1109/CVPR.2019.01297
- 28.Doo FX, Vosshenrich J, Cook TS, et al. Environmental Sustainability and AI in Radiology: A Double-Edged Sword. Radiology. 2024;310(2):e232030. 10.1148/radiol.232030 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Douthit N, Kiv S, Dwolatzky T, Biswas S. Exposing some important barriers to health care access in the rural USA. Public Health. 2015;129(6):611–620. 10.1016/j.puhe.2015.04.001 [DOI] [PubMed] [Google Scholar]
- 30.Doo FX, Kulkarni P, Siegel EL, et al. Economic and environmental costs of cloud technologies for medical imaging and radiology artificial intelligence. J Am Coll Radiol. 2024;21(2):248–256. 10.1016/j.jacr.2023.11.011 [DOI] [PubMed] [Google Scholar]
- 31.Herrmann MD, Clunie DA, Fedorov A, et al. Implementing the DICOM standard for digital pathology. J Pathol Inform. 2018;9:37. 10.4103/jpi.jpi_42_18 [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
All data used in this study is publicly available. The NIH ChestX-ray14 dataset is open access (https://nihcc.app.box.com/v/ChestXray-NIHCC/folder/36938765345). The CheXpert dataset has credentialed access (https://stanfordmlgroup.github.io/competitions/chexpert). The MIMIC-CXR and MIMIC-CXR-JPG datasets have credentialed access (https://physionet.org/content/mimic-cxr-jpg/2.0.0). The Medical Segmentation Decathlon dataset is open-access (http://medicaldecathlon.com). The Beyond the Cranial Vault dataset has credentialed access (https://www.synapse.org/#!Synapse:syn3193805).
The code for this study is available at https://github.com/UM2ii/IntelligentStreaming.





