Zhang, Jinwei; Zuo, Lianrui; Liu, Yihao; Zhang, Hang; Remedios, Samuel W.; Landman, Bennett A.; Calabresi, Peter A.; Saidha, Shiv; Newsome, Scott D.; Pham, Dzung L.; Prince, Jerry L.; Mowry, Ellen M.; Carass, Aaron. (2027).Ìý.ÌýMedical Image Analysis, 115, 104338.Ìý
Multiple sclerosis (MS) lesions can interfere with automated MRI analysis, while limited labeled data make it difficult to train models that accurately detect these lesions. We developed MSRepaint, an AI-based imaging method that can both fill lesion-affected areas with realistic healthy-appearing tissue and generate synthetic lesions for training purposes. The method preserves surrounding brain anatomy and can work when some MRI inputs are unavailable. In testing, MSRepaint outperformed established lesion-filling methods and achieved accuracy comparable to a recent AI-based approach while processing images more than 20 times faster. Models trained using its synthetic lesions also performed better across multiple lesion-detection datasets than models trained with other synthetic or real training data. MSRepaint therefore provides a fast, flexible approach for improving MRI analysis and generating realistic training data for MS lesion detection.

Fig. 1.ÌýOverview of MSRepaint training and inference. (a) Training data: A 2D multicontrast image ð�‘¥0 undergoes forward diffusion, generating noisy images ð�‘¥ð�‘¡âˆ’1, ð�‘¥ð�‘¡, and the final degraded image ð�‘¥ð�‘‡, paired with its lesion mask ð�‘€. (b) Training: The denoiser ð�œ™ð�‘¤Â is trained to estimate ˆð�‘¥ð�‘¡âˆ’1 from ð�‘¥ð�‘¡Â with guidance from mask ð�‘€. (c) Inference: The trained denoiser ð�œ™ð�‘¤âˆ— generates outputs guided by ð�‘€target, while the repaint mask ð�‘€repaint restricts updates to its region, preserving surrounding tissue. A repainting mechanism iteratively refines update boundaries to ensure seamless integration with the surrounding tissue. (d) Example tasks: Lesion filling sets ð�‘€target=0 to replace lesions with healthy tissue, while lesion synthesis sets ð�‘€target=ð�‘€repaint to generate new lesion patterns.