NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Motion correction in MRI using deep learning and a novel hybrid loss function

Lei Zhang, Xiaoke Wang, Michael Rawson, Radu Bălan, Edward H. Herskovits, Elias R. Melhem, Linda Chang, Ze Wang, Thomas Ernst · DOI

Abstract

Motion artifacts remain a significant challenge in clinical Magnetic Resonance Imaging (MRI), often rendering scans non-diagnostic. This paper presents MC-Net, a deep learning-based framework designed to suppress motion artifacts in brain MRI. Utilizing a customized UNet architecture and a novel two-stage hybrid loss function (combining L1 and Total Variation loss), the model effectively removes "ghosting" and blurring. Evaluated on both simulated and real-world motion data, MC-Net demonstrates significant improvements in Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index (SSIM), processing images in approximately 40ms per slice. While highly effective for T1-weighted sequences, the model's performance on untrained T2-weighted contrasts highlights the importance of contrast-specific training.

Introduction

MRI is a cornerstone of modern diagnostics, yet its sensitivity to patient movement is a persistent bottleneck. High-resolution scans require several minutes of absolute stillness—a difficult task for many patients. Involuntary movements such as swallowing, breathing, or minor shifts in posture result in motion artifacts, typically manifesting as "ghosting" (repeated outlines) or blurring.

Statistics suggest that nearly 28% of clinical brain scans are compromised by motion, leading to substantial financial losses—estimated at over $100,000 per scanner annually—and potential misdiagnoses. Traditional hardware-based corrections are often costly and difficult to implement across different scanner brands. MC-Net offers a retrospective, software-based solution to recover diagnostic quality from corrupted images after the scan is complete.

Methodology

The MC-Net Architecture

The researchers developed MC-Net based on the UNet architecture, a standard in medical imaging, but optimized it for efficiency by using half the filters of a traditional implementation. This reduction in complexity allows for rapid processing without sacrificing the model's ability to learn complex spatial features.

Hybrid Loss and Two-Stage Training

The core innovation of MC-Net lies in its training objective and strategy. Rather than relying solely on pixel-wise L1 loss, which can lead to oversmoothing, the team introduced a Hybrid Loss incorporating Total Variation (TV) loss. TV loss specifically penalizes the loss of sharp edges and boundaries, ensuring anatomical structures remain distinct.

To optimize the network, a two-stage training approach was employed:

  1. Stage 1 (Artifact Suppression): The network is trained using L1 loss to address large-scale motion artifacts and restore the general structure of the image.
  2. Stage 2 (Detail Refinement): The pre-trained model is fine-tuned with the combined L1 and TV loss. This stage "polishes" the image, recovering fine anatomical details that might have been blurred during the initial suppression phase.

This phased approach helps the model avoid local minima and achieve superior convergence compared to attempting to solve for both artifacts and edges simultaneously.

Experimental Design

The model was rigorously tested across four distinct datasets to evaluate its robustness and generalization:

  • Dataset 1 (Core): T1-weighted axial images with simulated motion using 42 real-world head movement trajectories.
  • Dataset 2 (Orientation): Sagittal and coronal views to test if a model trained on axial slices could handle different perspectives.
  • Dataset 3 (Contrast): T2-weighted FLAIR images to evaluate generalization across different MRI sequences.
  • Dataset 4 (Real-World): Clinical scans from five subjects who moved during their procedures, providing a test set with no "clean" reference image.

Results and Discussion

Quantitative and Clinical Performance

On T1-weighted axial images with severe motion, the Structural Similarity Index (SSIM) improved significantly from 0.75 to 0.92. Clinical validation further supported these metrics; two blinded radiologists evaluated the results and found that MC-Net consistently upgraded images from "moderate-to-severe" artifact categories to "minor-to-no" artifacts.

Efficiency and Fidelity

With a processing time of approximately 40ms per slice, MC-Net is fast enough to be integrated directly into a scanner's console, providing radiologists with corrected views almost instantly. Furthermore, when applied to perfectly clean images, the model maintained an SSIM of 0.97, proving it does not "over-correct" or introduce hallucinations when motion is absent.

Contrast vs. Anatomy

A key insight from the study was the model's struggle with T2-weighted images when trained only on T1 data. Despite the underlying brain anatomy being identical, the change in image contrast (signal intensity patterns) significantly hindered the model. This suggests that the neural network prioritizes low-level signal features and contrast patterns over high-level anatomical recognition for the task of motion correction.

Conclusion

MC-Net provides a robust and efficient method for retrospective MRI motion correction. By utilizing a two-stage hybrid loss function, it effectively balances artifact suppression with edge preservation. While the current iteration is contrast-specific, its ability to restore diagnostic quality in milliseconds makes it a promising tool for clinical radiology. Future work will explore the use of Generative Adversarial Networks (GANs) to further enhance high-frequency textures and the development of multi-contrast models to broaden clinical utility.

Summary updated

BibTeX
@misc{zhang2022motion,
  author = {Lei Zhang and Xiaoke Wang and Michael Rawson and Radu Bălan and Edward H. Herskovits and Elias R. Melhem and Linda Chang and Ze Wang and Thomas Ernst},
  title = {{Motion correction in MRI using deep learning and a novel hybrid loss function}},
  year = {2022},
  eprint = {2210.14156},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.14156},
}
Figure