TL;DR
The Medical Image Streaming Toolkit (MIST) is a format-agnostic database framework that allows researchers to stream medical images at various resolutions and formats from a single, high-resolution compressed source. By leveraging progressive encoding, MIST reduces storage requirements by approximately 50% and can slash bandwidth usage by up to 99% for low-resolution tasks without compromising deep learning model performance.
What Problem Does This Paper Address?
Deep learning (DL) has revolutionized medical image analysis, but the sheer scale of modern datasets creates a massive logistical bottleneck. Large-scale datasets like the National Lung Screening Trial (NLST) can exceed 11 terabytes, making them prohibitively expensive to host and agonizingly slow to download for many research labs.
Furthermore, there is a "format friction" between clinical practice and research. While clinical environments rely on DICOM for its rich metadata, DL researchers often prefer "DL-ready" formats like NIfTI or simple PNGs. Currently, hosting institutions often store multiple versions of the same dataset to satisfy these different needs, leading to redundant storage costs. Researchers are also forced to download full-resolution data even if their specific model (e.g., a simple classifier) only requires downsampled 224x224 inputs.
Methods
The authors introduce MIST, which treats medical imaging data as a flexible stream rather than a static file. The core components include:
- Format-Agnostic Representation: MIST separates pixel data from metadata. Metadata is extracted into JSON files, while pixel data is encoded using the High-Throughput JPEG 2000 (HTJ2K) codec.
- Progressive Encoding: HTJ2K encodes images as a series of "decompositions." The first few kilobytes of the bytestream represent a low-resolution version of the image, with subsequent bytes adding detail until the full-resolution, lossless image is reconstructed.
- Format Hierarchy: MIST implements a "convert down" logic. Because DICOM contains the most metadata, it can be streamed as DICOM, NIfTI, or PNG. Conversely, a NIfTI source can only be streamed as NIfTI or PNG because it lacks the metadata required to "convert up" to a valid DICOM file.
Datasets
The authors evaluated MIST across eight diverse, large-scale datasets to ensure its utility across different modalities and body parts:
- NIH-ChestX-ray14: Chest X-rays (PNG)
- MSD-Liver: Abdominal CT (NIfTI)
- AMOS: Abdominal CT/MR (NIfTI)
- LIDC-IDRI: Lung CT (DICOM)
- NSCLC-Radiomics: Lung CT (DICOM)
- TCGA-KIRC: Kidney CT/MR (DICOM)
- TCGA-BRCA: Breast MG/MR (DICOM)
- UPENN-GBM: Brain MR (DICOM)
Key Insights and Ideas
- The "Single Source of Truth": Instead of maintaining separate folders for DICOM, NIfTI, and various downsampled versions, MIST allows a single HTJ2K bytestream to serve all these purposes on-demand.
- Metadata Rescaling: A key challenge in streaming sub-resolution images is maintaining spatial accuracy. MIST dynamically rescales the affine transformation matrices and voxel sizes in the metadata so that a low-res stream still maps correctly to world coordinates.
- Efficiency without Quality Loss: At the highest decomposition level, the reconstruction is mathematically lossless. For lower resolutions, the quality (measured by SSIM and PSNR) remains high enough for most DL tasks, as shown in the authors' preliminary experiments.
Key Results
- Storage Savings: MIST reduced the total storage footprint of the tested datasets from 536.68 GB to 234.77 GB—a 56.22% reduction. The highest savings were seen in DICOM datasets (up to 72% for TCGA-BRCA).
- Bandwidth Efficiency: When accessing the smallest sub-resolution (Level 1), MIST reduced data transmission by an average of 96.10%. Even at the largest sub-resolution, transmission was reduced by ~66% compared to the original files.
- Model Performance: In preliminary tests for 2D classification (DenseNet121 on Chest X-rays) and 3D segmentation (3D-UNet on Liver CTs), models trained on MIST-encoded sub-resolution images performed virtually identically to those trained on original full-resolution data.
Limitations and Future Work
While promising, the authors note several areas for improvement:
- Codec Constraints: The current HTJ2K implementation used (OpenJPHpy) is limited to 16-bit pixel depth, causing some high-bit-depth MRI series to fail encoding.
- Metadata Complexity: Storing metadata in JSON files may not scale efficiently for extremely complex clinical datasets with thousands of tags.
- NIfTI Handling: Currently, NIfTI volumes are processed slice-by-slice to maintain consistency, which adds a reconstruction step for researchers who need the full 3D volume.
- Validation: While preliminary DL results are positive, more extensive validation across a wider range of architectures and tasks is needed to confirm that progressive decoding artifacts don't introduce subtle biases.
Summary updated