Reverse Engineering Breast MRIs: Predicting Acquisition Parameters Directly from Images

Nicholas Konz, Maciej A. Mazurowski

Abstract

In medical imaging, "domain shift"—performance degradation when a model is deployed on data from different hardware—remains a significant barrier to the clinical adoption of AI. This paper presents a novel "forensic" neural network capable of reverse-engineering Image Acquisition Parameters (IAPs) directly from MRI pixel data. By accurately predicting hidden settings such as scanner model, field strength, and pulse sequences, this tool enables automated data harmonization and improves the reliability of downstream diagnostic AI models.

Introduction

Deep learning models trained on medical images are often sensitive to the specific hardware and software settings used during acquisition. A model optimized for a 3-Tesla GE scanner may underperform on images from a 1.5-Tesla Siemens scanner. These variations are governed by Image Acquisition Parameters (IAPs), which are often stripped from datasets during anonymization or recorded inconsistently in DICOM headers. This research explores whether these hidden "recipes" can be recovered directly from the visual evidence within the image itself, providing a pathway to identify and mitigate domain shift.

Methods

The authors approach the recovery of IAPs as a multi-task inverse problem. Rather than training individual models for each parameter, they developed a unified Image Acquisition Parameter Extraction Network based on a modified ResNet-18 architecture.

Architecture of the Image Acquisition Parameter (IAP) Extraction Network.

Multi-Task Learning Architecture

The network utilizes a shared backbone that branches into multiple specialized "heads." This design allows the model to capture the complex interplay between different hardware settings simultaneously in a single forward pass. The model predicts 10 categorical parameters (e.g., Scanner Manufacturer, Contrast Agent) using Cross-Entropy loss and 2 continuous parameters (Echo Time and Repetition Time) using Mean Squared Error (MSE) loss.

Datasets

The study utilized the Duke Breast Cancer (DBC) MRI dataset, comprising dynamic contrast-enhanced (DCE) MRIs from 922 patients. To ensure robust evaluation, the authors sampled 14,000 2D slices and partitioned the data by patient rather than by slice. This prevents the model from simply memorizing patient-specific features, forcing it to learn the underlying physical signatures of the acquisition process across a decade of diverse scanner models.

Key Results

The model demonstrated remarkable precision in extracting technical metadata from raw pixels. It achieved 99.74% accuracy in identifying the Scanner Manufacturer and 97.78% accuracy for specific Scanner Models. Continuous parameters, such as Repetition Time (TR) and Echo Time (TE), were predicted with less than 1% relative error.

Examples of predicted IAPs across different MRI scans, showing high accuracy across various parameters.

Beyond hardware, the model successfully identified Contrast Agent types with 84.7% accuracy, suggesting it can detect subtle physiological-chemical interactions. To validate the utility of these predictions, the authors used the model to automatically sort unlabeled images by manufacturer and apply manufacturer-specific cancer detection models. This informed approach improved cancer classification accuracy from 68.8% to 76.9% compared to a generic, uninformed model.

Discussion and Future Work

The findings suggest that the physics of MRI acquisition is inherently "baked into" the image pixels through noise patterns, tissue contrast, and subtle artifacts. While the model performed exceptionally well, challenges remain regarding data imbalance in certain IAP combinations and the limitations of 2D slice analysis. Future work may involve extending the architecture to 3D volumes to capture more spatial context and testing the model's generalizability across different organs and institutions. Ultimately, this work provides a foundation for automated data harmonization, allowing AI to organize and interpret messy, unlabeled medical datasets by their technical origins.

Summary updated

BibTeX
@inproceedings{konz2023reverse,
  author = {Nicholas Konz and Maciej A. Mazurowski},
  title = {{Reverse Engineering Breast MRIs: Predicting Acquisition Parameters Directly from Images}},
  booktitle = {MIDL},
  year = {2023},
  url = {https://openreview.net/forum?id=biLGlqy9vW},
}
Figure