Introduction
The field of connectomics is currently navigating a massive "data deluge." As researchers move from mapping small neural circuits to imaging entire mouse brains, data volumes are scaling from petabytes toward the exabyte range. Storing and analyzing these datasets requires compression techniques that go far beyond standard consumer codecs. Crucially, scientific compression must preserve "downstream utility"—the ability for AI models to accurately segment neurons and detect synapses—even at extreme compression ratios.
Proposed Methodology
To address this, a novel framework based on a two-level Vector-Quantized Variational Autoencoder (VQ-VAE) has been developed. Unlike standard compression, this system utilizes a hierarchical approach to manage image features at different scales.
Hierarchical VQ-VAE and Transformer Prior
The model compresses images into a discrete vocabulary of visual tokens across two levels: a "top" grid for coarse structural information and a "bottom" grid for fine details. For extreme 1024× compression, only the top grid is stored. To recover lost texture during decoding without increasing file size, a Transformer prior is employed. This Transformer predicts likely bottom tokens based solely on the stored top tokens, effectively "hallucinating" realistic biological textures back into the reconstruction.
Integration and ROI Workflow
The predicted details are integrated using Feature-wise Linear Modulation (FiLM), ensuring that reconstructed textures remain aligned with the image's structural skeleton. Furthermore, the framework supports a selective "pay-as-you-decode" workflow. Researchers can browse datasets at 1024× compression and use automated detectors to identify regions of interest (ROIs), such as mitochondria, which can then be fetched in higher resolution as needed.
Experimental Results
The framework was evaluated on human cerebral cortex (H01) and mouse cerebellum datasets, benchmarking against the state-of-the-art AVIF codec.
Performance at Extreme Ratios
While AVIF and the VQ-VAE method perform similarly at 16× and 64× ratios, the VQ-VAE remains practical at much higher levels. It maintains a usable Structural Similarity (SSIM > 0.45) even at 1024× compression, where standard codecs typically fail.
Preservation of Downstream Utility
Most importantly, the compression preserves scientific utility. Segmentation accuracy, measured by Variation of Information (VI), remained remarkably stable when moving from 16× to 256× compression. Synapse detection accuracy on 512× compressed images was found to be only 0.2% lower than on uncompressed originals.
Interestingly, the generative nature of the decoder can sometimes improve data quality by "inpainting" faint or broken membranes in noisy original data, which can actually reduce certain types of segmentation merge errors.
Discussion and Future Directions
While the system excels at preserving structural integrity, internal textures of fine organelles can degrade at the highest ratios, necessitating the ROI-driven workflow for specific sub-cellular analyses. Future work will focus on developing "detail experts"—specialized neural heads for features like vesicles—and building a universal foundation model for EM compression that functions across diverse tissue types without retraining.
Summary updated