CodeBrain: Imputing Any Brain MRI via Modality- and Instance-Specific Codes
Yicheng Wu, Tao Song, Zhonghua Wu, Jin Ye, Zongyuan Ge, Zhaolin Chen, Jianfei Cai
TL;DR
CodeBrain addresses unified brain MRI imputation under varying modality availability by reframing inter-modality synthesis as a two-stage latent code prediction problem. It constructs a latent space of scalar-quantized modality- and instance-specific codes (dimension $d$, quantized to $L$ levels) and learns modality-agnostic common features in Stage I, then Stage II uses a prior encoder to predict full-modality codes from incomplete data, enabling high-fidelity synthesis without modality-specific modules. Evaluations on IXI and BraTS 2023 show CodeBrain outperforms four SOTA methods across one-to-one and many-to-one scenarios and improves downstream brain tumor segmentation on BraTS 2023. The approach simplifies generalization, reduces model complexity, and offers a scalable solution for unified brain MRI imputation, with future work addressing hallucination and integrating MRI physics.
Abstract
Unified MRI imputation, which can adapt to diverse imputation scenarios, is highly desirable as it reduces scanning costs and provides comprehensive MRI information for improved clinical diagnosis. Existing unified MRI imputation methods either rely on specific prompts to guide their transformation network or require multiple modality-specific modules. However, these approaches struggle to capture large modality and instance variations or become too complex to generalize effectively. To address these limitations, we propose CodeBrain, a fundamentally different pipeline for unified brain MRI imputation. Our key idea is to reframe various inter-modality transformations as a full-modality code prediction task via a two-stage framework. In the first stage, CodeBrain reconstructs a target modality from any other modalities by learning a compact scalar-quantized code for each instance and modality. Any target modality can then be reconstructed with high fidelity by combining the corresponding code with shared features extracted from any available modality. In the second stage, a projection encoder is trained to predict full-modality compact codes from any incomplete MRI samples, effectively simulating various imputation scenarios. We evaluate our CodeBrain on two public brain MRI datasets (i.e., IXI and BraTS 2023). Extensive experiments demonstrate that CodeBrain outperforms state-of-the-art methods, setting a new benchmark for unified brain MRI imputation. Our code will be released.
