m+Medelevator.RU
← Поиск публикаций
NeuroImage. Clinical · 2025

Смягчение катастрофического забвения при рассеянии множественных склерозов с помощью эластичной консолидации веса.

СтатьяПоддержка исследования: вне правительства СШАНазвание и аннотация: Машинный перевод · не проверен
Обработка статьи · этапы, ошибки и управление
Загрузка состояния…

История · было → стало

Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.

Álvarez Luisana, Valverde Sergi, Rovira Àlex, Lladó Xavier

Аннотация

Сегментация множественных склерозов (MS) имеет решающее значение для мониторинга развития заболеваний. Методы углубленного обучения дают многообещающие результаты, однако при оценке данных, полученных с помощью различных протоколов или сканеров, сталкиваются с проблемами, связанными с переключением доменов. Передача обучения (ТЛ) обеспечивает успешную адаптацию к доменам, но может привести к катастрофическому забвению, что приведет к значительному снижению эффективности в исходный домен. Непрерывное обучение направлено на решение этой проблемы путем сохранения знаний, полученных в предыдущих областях, и адаптации к новым. В рамках этой работы впервые применяется эластичная система консолидации веса (EUC) в контексте обучения по доменам для сегментации MS. Этот подход оценивался с использованием системы " 3D U-Net " , которая была подготовлена на основе публичных наборов данных (WMH2017 и Ships) и усовершенствована на основе внутреннего набора данных с использованием как TL, так и EWC как в рамках полной подготовки кадров, так и в рамках малоэффективных сценариев. Результаты показывают, что только 3 :: обучение снимкам из целевой области, ЭКК ведет к 10% совершенствование системы F-score при использовании 5 Изображение дает такие же результаты, как и использование всех имеющихся учебных изображений. Катастрофическое забвение было сокращено на 8%-19% по сравнению со стандартным TL, где показатели снижения эффективности варьировались от 20 в адрес 37%. Эта работа показывает, что ЭКК позволяет модели адаптироваться к новым областям при сохранении ранее накопленных знаний при минимальных потребностях в данных, продвигаясь в направлении более общих моделей глубокого обучения для клинических видов применения MS.
Оригинал публикации

Mitigating catastrophic forgetting in Multiple sclerosis lesion segmentation using elastic weight consolidation.

Multiple sclerosis (MS) lesion segmentation is crucial for monitoring disease progression. Deep learning methods have shown promising results but suffer from domain shift problems when evaluated in data from different protocols or scanners. Transfer learning (TL) achieves successful domain adaptation, but can lead to catastrophic forgetting, resulting in a significant performance drop on the source domain. Continuous learning aims to address this issue by retaining knowledge from previous domains while adapting to new ones. This work applies Elastic Weight Consolidation (EWC) for the first time in the context of domain-incremental learning for MS lesion segmentation. The approach was evaluated using a 3D U-Net trained on public datasets (WMH2017 and Shifts) and fine-tuned on an in-house dataset using both TL and EWC, in both full training and few-shot scenarios. Results show that with only 3 training images from the target domain, EWC leads to a 10% improvement in F-score, while using 5 images achieves similar results to using all available training images. Catastrophic forgetting was reduced by 8%-19% compared to standard TL, where performance drops ranged from 20 to 37%. This work demonstrates that EWC enables models to adapt to new domains while preserving previous knowledge, with minimal data requirements, advancing towards more generalizable deep learning models for clinical MS applications.

Перевод полного текста: Перевод в очереди

Читать найденный полный текст

https://creativecommons.org/licenses/by-nc/4.0/ This is an open access article under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/).

Introduction

Multiple sclerosis (MS) is a chronic autoimmune and degenerative disease characterized by inflammation, demyelination, and axonal damage, resulting in the formation of lesions throughout both white and gray matter of the central nervous system, with pathology affecting cortical and subcortical structures ( Compston and Coles, 2008 ). It is the most common cause of non-traumatic disability among young adults. MS is a very prevalent disease, reaching 2.9 million diagnosed patients in 2023, which means a prevalence of 36 per 100.000 people around the world.

Magnetic resonance imaging (MRI) is one of the main tools for diagnosis and monitoring of people with MS. MRI scans can provide quantitative information such as the number and volume of lesions (see Fig. 1 ). This quantitative analysis allows the assessment of disease progression and evaluation of therapies ( Lladó et al., 2012 , Chertcoff et al., 2024 ). McDonald criteria ( Filippi et al., 2022 ) states that MRI scans should show evidence of damage in at least two separate areas of the central nervous system, including brain, spinal cord and optic nerves (dissemination in space) and at different points in time (dissemination in time) in order to diagnose a patient with MS. For this reason, segmentation of lesions becomes an important tool in clinical practice. Several automatic segmentation methods have been developed, with a strong focus in recent years on deep learning approaches, particularly Convolutional Neural Networks (CNNs). However, one of the main drawbacks of deep learning models is their lack of adaptability ( Pianykh et al., 2020 ) when tested on data that differs from the one they were trained on (see Fig. 2(a) ). This phenomenon, known as domain shift, occurs when the statistical distribution of the inference data (data the model is applied to) differs from the source data (data the model was trained on) ( Guan and Liu, 2022 ). This is particularly important for commercial solutions intended for clinical practice, where variations in image acquisition, scanner, contrast, noise level, magnetic field strength (e.g., 1.5T vs. 3T) and the presence of bias field (intensity in-homogeneity) often result in poor generalization capabilities ( Valverde et al., 2019 ).

Transfer learning (TL) emerges as a possible solution to the above mentioned problem by using the knowledge gained in solving a specific problem to improve the performance on a target task with a different underlying data distribution ( Karimi et al., 2021 ). Ghafoorian et al. (2017) analyzed the effect of the training set size and the number of unfreezed layers when performing TL for domain adaptation applied to MS lesion segmentation. Valverde et al. (2019) also studied the impact of the amount of unfreezed parameters but in one-shot domain adaptation scenarios, assessing how did the lesion load of the chosen subject impact in the TL results. However, the main focus of TL is to leverage prior knowledge, rather than retaining it, leading to an abrupt loss in performance in the source dataset once the model is retrained on the target dataset ( Pianykh et al., 2020 ). This phenomenon is known as catastrophic forgetting (see Fig. 2(b) ) and it is a significant limitation for MS lesion quantification, where patients undergo periodic follow-up MRI scans, usually acquired in different scanners, potentially leading to performance degradation of the models over time.

Continuous learning (CL) arises as a solution to this issue, with the objective of retaining knowledge from previous tasks while adapting to new tasks. In essence, CL aims to continuously expand the model’s capacity in an incremental way, allowing it to learn and integrate new information without forgetting past knowledge (see Fig. 2 ). Therefore, a model that can learn continuously without forgetting previous knowledge is especially valuable in the context of MS, where continuous adaptation to new data is crucial.

There are different CL strategies to prevent catastrophic forgetting when learning new tasks. Rehearsal-based approaches store previous tasks’ data in a small memory buffer to be used while training on new tasks. The stored data can be the original images (experience-replay based) ( Perkonigg et al., 2021 ), deep features (latent replay-based) ( Srivastava et al., 2021 ) or generated pseudo samples (generative replay-based) ( Li et al., 2023 ). Regularization-based methods aim to control weight update within the training of the model to minimize forgetting the previous learning, either through knowledge distillation from a teacher model to a student model (data-focused regularization) ( Li and Hoiem, 2018 ) or by penalizing large changes on important parameters for previous tasks (prior-focused regularization) ( van Garderen et al., 2019 ). Moreover, architectural-based methods assign to each task a set of parameters, either by fixing the architecture (limited by the network’s capacity) ( Bayasi et al., 2021 ) or dynamically extending the network (increasing memory requirements with each new task) ( Yan et al., 2021 ). Fig. 1 Example MRI of a MS patient from the White Matter Hyperintensity Challenge ( Kuijf et al., 2019 ). (a) FLAIR modality. (b) Ground truth overlayed on FLAIR.

Example MRI of a MS patient from the White Matter Hyperintensity Challenge ( Kuijf et al., 2019 ). (a) FLAIR modality. (b) Ground truth overlayed on FLAIR.

Elastic Weight Consolidation (EWC) ( Kirkpatrick et al., 2017 ) is one of the most well-known prior-based regularization methods. These methods present several key advantages compared to other strategies. Firstly, unlike rehearsal-based methods, they do not require storing data from previous tasks during training on new tasks, reducing privacy concerns and memory requirements. Secondly, they avoid the substantial memory overhead incurred by some architectural-based methods that dynamically expand the network for each new task. Finally, they offer more flexibility compared to strictly assigning network parts to each task in other architectural approaches. Within the realm of regularization-based methods, data-focused methods require an additional model for the new task (student model) to perform knowledge distillation from the previous task’s model (teacher model). On the other hand, prior-focused methods, such as EWC, leverage information from the model’s previous state directly, making them more lightweight and efficient. Fig. 2 Schematic representation of the problems faced in this work. (a) Deep learning models trained on domain A fail to generalize to unseen data with different distributions (domain B). (b) Transfer learning (TL): Retraining the model on domain B effectively adapts it to the target domain, but at the cost of catastrophic forgetting (drastic drop of performance) on the source domain A. (c) Continuous learning (CL): This approach aims to adapt the model to the target domain B while simultaneously preserving knowledge from domain A, thus mitigating catastrophic forgetting.

Schematic representation of the problems faced in this work. (a) Deep learning models trained on domain A fail to generalize to unseen data with different distributions (domain B). (b) Transfer learning (TL): Retraining the model on domain B effectively adapts it to the target domain, but at the cost of catastrophic forgetting (drastic drop of performance) on the source domain A. (c) Continuous learning (CL): This approach aims to adapt the model to the target domain B while simultaneously preserving knowledge from domain A, thus mitigating catastrophic forgetting.

EWC aimed to emulate synaptic consolidation of human brains to reduce catastrophic forgetting by adding a penalty term in the loss function that slowed down learning on specific weights that were important for previous tasks. EWC has been adapted to different medical tasks. For instance, van Garderen et al. (2019) applied it for a glioma segmentation problem, in order to perform TL from a public dataset containing low and high-grade glioma to an in-house dataset containing non-enhancing low-grade glioma. Baweja et al. (2018) used EWC to learn sequentially two different tasks: brain tissue segmentation and white matter lesions segmentation. Finally, Chen and Tang (2022) developed a CL pipeline with EWC penalty for breast tumor classification.

While a review of state-of-the-art CL methods revealed promising techniques for alleviating catastrophic forgetting in general, its application to domain-incremental MS lesion segmentation remains an under-explored area. Karthik et al. (2022) were the first to apply CL in this specific scenario, through a rehearsal-based approach. Data from previous tasks was stored in a memory buffer and interleaved with the current domain data. The main disadvantage is the necessity of having data from previous tasks available for training which, as mentioned before, not only leads to high storage requirements but also can provoke privacy violation issues.

This work proposes EWC as a CL approach to address catastrophic forgetting present in TL strategies in domain-incremental scenarios for MS lesion segmentation. The experimental framework specifically focuses on domain adaptation from public challenge datasets to clinical in-house data, representing the most common real-world implementation scenario where models trained on large standardized datasets are adapted to local clinical environments. This potential solution allows deep learning models to continuously adapt to data coming from new hospitals or scanners, a very common scenario in MS, making them more generalizable with time. EWC is integrated in a deep learning model based on a 3D U-Net for segmentation. Additionally, this work demonstrates the effectiveness of EWC in both one-shot and few-shot learning scenarios, minimizing the amount of necessary labeled images for training, which are very expensive to obtain in terms of effort and time.

Table 1 Description of the datasets used for MS lesion segmentation. For each dataset, the table specifies MRI scanner model, sequence, spatial resolution (in mm 3 ), acquisition direction, number of subjects, and lesion load statistics (mean volume in ml with minimum and maximum values in brackets). Dataset Scanner Sequence Resolution (mm 3 ) Acquisition direction Number of subjects Lesion load (ml) - mean [min, max] WMH2017 3T Philips Achieva 2D FLAIR 0 . 96 × 0 . 95 × 3 . 00 Axial 20 38.9 [1.10, 98.46] 3D T1w 1 . 00 × 1 . 00 × 1 . 00 Sagittal 3T Siemens TrioTim 2D FLAIR 1 . 00 × 1 . 00 × 3 . 00 Axial 20 36.46 [1.54, 118.35] 3D T1w 1 . 00 × 1 . 00 × 1 . 00 Sagittal 3T GE Signa HDxt 3D FLAIR 0 . 98 × 0 . 98 × 1 . 20 Sagittal 20 14.23 [1.90, 55.80] 3D T1w 0 . 94 × 0 . 94 × 1 . 00 Sagittal Shifts MSSEG-1 3T Siemens Verio 3D FLAIR 0 . 50 × 0 . 50 × 1 . 10 Unknown 73 20.09 [0.19, 100.76] 3D T1w 1 . 00 × 1 . 00 × 1 . 00 3T GE Discovery 3D FLAIR 0 . 47 × 0 . 47 × 0 . 90 3D T1w 0 . 47 × 0 . 47 × 0 . 60 1.5T Siemens Aera 3D FLAIR 1 . 03 × 1 . 03 × 1 . 25 3D T1w 1 . 08 × 1 . 08 × 0 . 90 3T Philips Ingenia 3D FLAIR 0 . 74 × 0 . 74 × 0 . 70 3D T1w 0 . 74 × 0 . 74 × 0 . 85 ISBI 3T Philips Medical 2D FLAIR 0 . 82 × 0 . 82 × 2 . 20 3D T1w 0 . 82 × 0 . 82 × 1 . 17 VH 3T Siemens TrioTim 2D FLAIR 0 . 49 × 0 . 49 × 3 . 00 Axial 57 4.01 [0.13, 23.52] 3D T1w 1 . 00 × 1 . 00 × 1 . 20 Sagittal

Table 1 Description of the datasets used for MS lesion segmentation. For each dataset, the table specifies MRI scanner model, sequence, spatial resolution (in mm 3 ), acquisition direction, number of subjects, and lesion load statistics (mean volume in ml with minimum and maximum values in brackets). Dataset Scanner Sequence Resolution (mm 3 ) Acquisition direction Number of subjects Lesion load (ml) - mean [min, max] WMH2017 3T Philips Achieva 2D FLAIR 0 . 96 × 0 . 95 × 3 . 00 Axial 20 38.9 [1.10, 98.46] 3D T1w 1 . 00 × 1 . 00 × 1 . 00 Sagittal 3T Siemens TrioTim 2D FLAIR 1 . 00 × 1 . 00 × 3 . 00 Axial 20 36.46 [1.54, 118.35] 3D T1w 1 . 00 × 1 . 00 × 1 . 00 Sagittal 3T GE Signa HDxt 3D FLAIR 0 . 98 × 0 . 98 × 1 . 20 Sagittal 20 14.23 [1.90, 55.80] 3D T1w 0 . 94 × 0 . 94 × 1 . 00 Sagittal Shifts MSSEG-1 3T Siemens Verio 3D FLAIR 0 . 50 × 0 . 50 × 1 . 10 Unknown 73 20.09 [0.19, 100.76] 3D T1w 1 . 00 × 1 . 00 × 1 . 00 3T GE Discovery 3D FLAIR 0 . 47 × 0 . 47 × 0 . 90 3D T1w 0 . 47 × 0 . 47 × 0 . 60 1.5T Siemens Aera 3D FLAIR 1 . 03 × 1 . 03 × 1 . 25 3D T1w 1 . 08 × 1 . 08 × 0 . 90 3T Philips Ingenia 3D FLAIR 0 . 74 × 0 . 74 × 0 . 70 3D T1w 0 . 74 × 0 . 74 × 0 . 85 ISBI 3T Philips Medical 2D FLAIR 0 . 82 × 0 . 82 × 2 . 20 3D T1w 0 . 82 × 0 . 82 × 1 . 17 VH 3T Siemens TrioTim 2D FLAIR 0 . 49 × 0 . 49 × 3 . 00 Axial 57 4.01 [0.13, 23.52] 3D T1w 1 . 00 × 1 . 00 × 1 . 20 Sagittal

Description of the datasets used for MS lesion segmentation. For each dataset, the table specifies MRI scanner model, sequence, spatial resolution (in mm 3 ), acquisition direction, number of subjects, and lesion load statistics (mean volume in ml with minimum and maximum values in brackets).

Materials and methods

Datasets

White Matter Hyperintensity MICCAI challenge 2017 (WMH2017)

The WMH2017 dataset contained multimodal 3D brain MRI scans from 60 subjects acquired from five scanners of three different vendors (Simenes, Philips and General Electric) in three hospitals in the Netherlands and Singapore, as it can be seen in Table 1 ( Kuijf et al., 2019 ). While the original challenge included 110 test cases, the ground truth annotations for these were not publicly available. Therefore, only the 60 training cases with available ground truth were used in our study. For each subject, T1w and Fluid-Attenuated Inversion Recovery (FLAIR) modalities were provided. The pre-processing steps included affine registration to the MNI 1 × 1 × 1 mm 3 template ( Fonov et al., 2009 , Fonov et al., 2011 ), skull stripping using HD-BET ( Isensee et al., 2019 ) and bias field correction using the N4 algorithm ( Tustison et al., 2010 ).

The lesions in this dataset were manually segmented following the STandards for ReportIng Vascular changes on nEuroimaging (STRIVE) criteria ( Wardlaw et al., 2013 ). The segmentations were performed by an expert observer with extensive prior experience with manual segmentation and were peer-reviewed by a second one with eleven years of experience in quantitative neuroimaging and clinical neuroradiology. Any segmentation that did not conform to the STRIVE criteria was corrected in a consensus meeting between the two observers.

For our study, the images of the 60 patients were split into 41 images for training, 7 for validation and 12 for testing, ensuring that in each split there was approximately the same number of images from each scanner. In this case, 5 different splits were chosen to perform a 5-fold cross-validation.

Shifts challenge 2023

The Shifts dataset 1 1]Data were generated by participating neurologists in the framework of Observatoire Français de la Sclérose en Plaques (OFSEP), the French MS registry (Vukusic et al. 2020). They collect clinical data prospectively in the European Database for Multiple Sclerosis (EDMUS) software (Confavreux et al. 1992). MRI of patients were provided as part of a care protocol. Nominative data are deleted from MRI before transfer and storage on the Shanoir platform (Sharing NeurOImagingResources, shanoir.org). Vukusic S, Casey R, Rollot F, Brochet B, Pelletier J, Laplaud D-A, et al. Observatoire Français de la Sclérose en Plaques (OFSEP): A unique multimodal nationwide MS registry in France. Mult Scler. 2020;26(1):118–22. Confavreux C, Compston DAS, Hommes OR, McDonald WI, Thompson AJ. EDMUS, a European database for multiple sclerosis. J Neurol Neurosurg Psychiatry 1992; 55: 671-676. Andrey Malinin, Andreas Athanasopoulos, Muhamed Barakovic, Meritxell Bach Cuadra, Mark JF Gales, Cristina Granziera, Mara Graziani, Nikolay Kartashev, Konstantinos Kyriakopoulos, Po-Jui Lu, Nataliia Molchanova, Antonis Nikitakis, Vatsal Raina, Francesco La Rosa, Eli Sivena, Vasileios Tsarsitalidis, Efi Tsompopoulou, Elena Volf. Shifts 2.0: Extending The Dataset of Real Distributional Shifts, arxiv preprint https://arxiv.org/abs/2206.15407 aimed to simulate real-world scenarios in which there is a distributional shift between training and testing data ( Malinin et al., 2022 ). As it can be seen in Table 1 , it was composed by several public datasets such as ISBI, MMSSEG-1 and PubMRI, coming from different institutions and scanners. In this work, only the in-domain data available in the challenge was employed (MSSEG-1 and ISBI), since it was preferred to use the in-house dataset as a domain-shift example (see Section 2.1.3 ), because more images were available.

The images were provided already pre-processed by the organization of the challenge, including denoising with non-local means ( Coupe et al., 2008 ), skull stripping using HD-BET ( Isensee et al., 2019 ), bias field correction with the N4 algorithm ( Tustison et al., 2010 ) and interpolation to the 1 mm isovoxel space. In this case, as the raw images were not provided, the affine registration to the MNI 1 × 1 × 1 mm 3 template ( Fonov et al., 2009 , Fonov et al., 2011 ) was performed afterwards, in order to have all images in a common space. The ground-truth segmentation masks, also interpolated to the 1 mm isovoxel space, were obtained as a consensus of one or more expert annotators.

The Shifts dataset contained T1w and FLAIR brain MRI scans from 98 different subjects. In this case, as mentioned above, the splits were already provided by the challenge organization, containing scans from 33 subjects for training, 7 for validation and 33 for testing (in-domain samples).

Vall d’Hebron dataset

This in-house dataset came from the Vall d’Hebron (VH) University Hospital in Barcelona, Spain. The protocol was approved by the Vall d’Hebron Hospital (Barcelona, Spain) Research and Ethics Committee. Informed consent was obtained from each participant before enrolment in the study. It contained FLAIR and T1w MRI scans from 57 subjects acquired from a 3T Siemens scanner (see Table 1 ). For each patient, WM lesion masks were semi-automatically delineated from FLAIR images by an expert radiologist from the same hospital center. This ensured consistency in the annotation process across all subjects in this dataset. In this case, the images were pre-processed as stated in Valverde et al. (2019) , including skull stripping, N3 bias field correction, co-registration to T1w (FSL-FLIRT) and affine registration to the MNI 1 × 1 × 1 mm 3 template ( Fonov et al., 2009 , Fonov et al., 2011 ). In this case, the images were randomly split into 25 samples for training, 5 for validation and 27 for testing.

It is important to note the differences in preprocessing pipelines across the three datasets used in this study. Even though the core pre-processing components were maintained across datasets (skull stripping, bias field correction and affine registration to the MNI space), the order in which they were applied necessarily differed due to data availability constraints. In the Shifts dataset, as the raw images were not provided, the registration step was performed at the end, after the challenge’s pre-processing. In the WMH2017 and VH datasets, the registration was performed as the first step of the pre-processing pipeline.

MS lesion segmentation framework

Fig. 3 Schematic representation of the 3D U-Net architecture employed for MS lesion segmentation. This model served as a baseline to study TL and CL techniques.

Schematic representation of the 3D U-Net architecture employed for MS lesion segmentation. This model served as a baseline to study TL and CL techniques.

Baseline architecture

In this work, a 3D U-Net architecture was implemented inspired by the original design proposed by Çiçek et al. (2016) . This architecture has previously been adapted specifically for MS lesion segmentation ( Wahlig et al., 2023 , Greselin et al., 2024 ), showing good performance for this task. Even though the core principles of the 3D U-Net were maintained, it was customized for our specific application. While more advanced U-Net variations have been proposed in the literature, a simpler configuration was chosen in order to minimize the impact of architectural modifications on the evaluation of CL and TL methods. This allowed a clearer understanding of how these techniques influenced the network’s performance in domain-incremental learning scenarios. Our 3D U-Net network architecture was composed by 4 layers of convolutional blocks, with 16, 32, 64 and 128 filters per layer. In the encoder side, each convolutional block contained two sequences of convolution - batch normalization - Leaky ReLU activation, followed by a maxpooling layer for downsampling. On the other hand, each decoder block was formed by an up convolution sequence (transposed convolution - batch normalization - Leaky ReLU activation) for upsampling followed by a convolution block equal to the ones in the encoder side. A diagram on the proposed architecture can be seen in Fig. 3 .

Patch sampling

A patch-based approach was chosen for this work to perform the MS lesion segmentation. As done in related MS lesion segmentation studies ( Fenneteau et al., 2021 , Salem et al., 2022 ), 5000 patches of 32 × 32 × 32 voxels were extracted from each image. To address the problem of class imbalance, an equal number of positive and negative patches were sampled, according to the class of its central voxel ( Valverde et al., 2017 ). To ensure that the selected patches provided different information from the entire anatomy of the patient, they were not randomly sampled, but uniformly extracted from both the lesions and the healthy tissue. This uniform extraction was achieved by calculating a step size for each class, based on the number of available voxels of each class and the desired number of patches. Using these calculated step sizes, voxels were systematically sampled at regular intervals throughout both the lesion volume and healthy tissue regions, ensuring comprehensive spatial coverage of the entire brain. Patches from both FLAIR and T1w modalities were fed into the network in two separate input channels. FLAIR MRI provided good contrast between lesions and healthy tissue, while T1w sequences contributed with more structural information of the brain tissues.

Baseline model training strategy

The network was trained with batches of 32 patches to balance computational efficiency with gradient update quality. To address the class imbalance problem, balanced batches were constructed, ensuring an equal number of positive and negative patches within each batch. Cross-entropy was used as the loss function and the model was trained for a maximum of 300 epochs ( Valverde et al., 2017 ). Early stopping was applied if the validation loss did not improve in the last 20 epochs, to avoid over-fitting. Adam optimizer was selected, with an initial learning rate of 10 −4 and a weight decay of 10 −6 . To manage the learning rate during training, a reduce-on-plateau scheduler was implemented. This scheduler automatically reduced the learning rate by a factor of 10 if the validation loss plateaued for 7 epochs, preventing the model from getting stuck in local minima. To enhance model generalization, data augmentation was implemented. This technique created variations of the original patches by applying random transformations with a 30% probability. Specifically, patches underwent random rotations within a range of - π 2 to π 2 radians, flipping along any spatial axis and affine transformations combining small rotations (−0.1 to 0.1 radians) and shearing (−0.1 to 0.1).

Three different models were trained using this strategy, one for each dataset presented in Section 2.1 . These were the baseline models used as reference for each domain. Each model was evaluated on its corresponding testing set and on the other two datasets to assess the impact of domain shift.

For inference, a sliding window approach was employed with a 25% overlap between patches. To account for the overlap, the average probability was computed in the overlapping regions. The binarization threshold was optimized for each dataset to achieve the best trade-off between true positive and false positive lesion detections, with a focus on maximizing the detection F-score rather than segmentation accuracy. Lesions smaller than 3 voxels were excluded, in order to reduce the number of false positive lesions, at the cost of a reduction in sensitivity. This choice was selected based on previous works ( Roura et al., 2015 , Salem et al., 2018 , Salem et al., 2020 ) and recent deep learning approaches for MS lesion segmentation that applied a minimum lesion size threshold of 3 voxels in 1x1x1 mm 3 resolutions ( Krishnan et al., 2023 , Wiltgen et al., 2024 ). Moreover, a comparative analysis done using different lesion size thresholds (2, 3, 5, and 7 voxels) confirmed that 3 voxels provided a good trade-off between T P F d , F P F d , and F − s c o r e d .

Elastic weight consolidation (EWC)

Training a network consists on optimizing the value of a set of parameters θ by minimizing a loss function L . Due to the high amount of parameters in a neural network, there should be different sets of parameter values that result in the same performance. This means that there should be a solution for task B (target domain), represented by its optimal parameters θ B ∗ , that is close to the previous solution for task A ( θ A ∗ ) (source domain). The goal of EWC is to find this particular solution, by forcing the network to learn the task B by finding θ B ∗ as close as possible to θ A ∗ in the parameter space. EWC achieves this by adding a penalty to the loss function for task B
L B , that should be higher for:

• Parameters that are important for the performance in task A . • Parameters that are getting further from the optimal values for task A .

Parameters that are important for the performance in task A .

Parameters that are getting further from the optimal values for task A .

The loss function to minimize in EWC is defined as follows: (1) L = L B + ∑ i λ 2 F i ( θ i − θ A , i ∗ ) 2 where F i represents the importance of parameter i , θ i represents the value of the parameter i in the current iteration (training on task B ), θ A , i ∗ represents the optimal value of the parameter i for the previous task A and λ controls the weight given to the old task A compared to the new one B . A higher value of λ means a stronger emphasis on preserving A ’s knowledge. However, very high values can lead to the network not learning the new task, so it is important to find a good trade-off.

As it can be seen in Eq. (1) , this new term in the loss forces the network to minimize the difference between the current parameters and the optimal ones for the previous task A ( θ i − θ A , i ∗ ), weighted by the importance of each parameter F i . Finally, the penalization term is computed as the sum of the penalization terms of each parameter.

The key component of this method is the parameter importance F , which quantifies how well each model parameter learned from task A reflects the characteristics of dataset A . This is calculated as the diagonal of the Fisher information matrix, which measures the amount of information about a parameter θ i that is provided by a data sample X j (in this case, a patch). It is computed as the average of the squared 1st derivatives of the log-likelihood function with respect to the parameters. This means that the slope of the likelihood function at the true parameter θ is a measure of the amount of information provided by the observed data regarding the parameter θ . Therefore, the Fisher information for parameter i is computed as follows: (2) F i = 1 N ∑ j N d d θ i l o g p X j | θ 2 where N is the number of samples in the dataset A , X j represents the sample j of dataset A and p X j | θ represents log-likelihood, the probability of sample j given the model parameters (optimized for task A ).

The advantage of this CL approach is that the parameter importance for the source domain can be computed after training on the source domain with a forward pass of the whole dataset (without parameter update). This eliminates the need to retain the source dataset for training on the target domain. Additionally, the only extra memory required is the one needed to store the importance scores and optimal parameters from the source task.

EWC and TL experimental setup

For evaluating EWC, a baseline model trained on a source dataset, as detailed in Section 2.2.3 , was used as the base model. This model was then retrained on another dataset (target domain), both with and without the EWC penalty, representing CL and TL, respectively. After retraining, the models were evaluated on both the source and target domains to assess catastrophic forgetting and domain adaptation, respectively. This allows comparing TL and EWC. The hyperparameter configuration used during the base model training on the source dataset was maintained for all EWC and TL experiments. All the layers of the network were unfrozen during training.

To better understand how the penalization weight affected the performance of EWC on both the source and target domains, different values of the hyperparameter λ were analyzed (0.001, 0.01, 0.1, 1, 10, 10 and 1000). The optimal λ value was selected based on a trade-off between learning the target domain and preserving the source domain knowledge, and was kept fixed for the rest of the EWC experiments.

To evaluate the number of images required for adaptation to the target domain, one-shot and few-shot learning approaches were also analyzed. This involved fine-tuning the model with a limited number of images (1, 2, 3, 5, or 10) from the target domain. The images were selected based on the lesion volume of each subject to provide as much variability as possible in this regard. For the different training set sizes, the lesion characteristics were as follows: the single subject used for one-shot learning had a total lesion load of 23.51 ml with 69 lesions, the two-subject set had a combined 32.67 ml load (148 lesions), the three-subject set had 39.23 ml (196 lesions), the five-subject set measured 42.78 ml (236 lesions), while the ten-subject set contained 61.10 ml (301 lesions). The complete dataset of 32 subjects had 228.85 ml total lesion volume, with 1363 lesions. Two validation images were also selected and kept fixed through all the experiments. Due to the small number of training images in the one-shot and few-shot experiments, a different patch extraction approach was employed. Instead of using a fixed number of patches, all possible patches of the training images were extracted centered on every positive voxel in the image. An equal number of negative patches was also extracted to maintain balanced training. The comparison between EWC and TL was also studied in one-shot and few-shot learning scenarios.

Both approaches required a similar number of epochs to converge. The training time did not differ significantly between EWC and TL, since the EWC penalty computation adds only lightweight matrix operations during the optimization process. The most computationally demanding part of EWC was the initial parameter importance calculation, which is performed only once for the source domain and can be reused across all subsequent experiments, making this approach particularly efficient for sequential domain adaptations.

Evaluation metrics

Perfect delineation of lesions is not always clinically relevant; however, accurate detection and localization of lesions are crucial for diagnosis and treatment planning. Recent MS lesion segmentation challenges, such as MSSEG-2 ( Commowick et al., 2021 ) and Shifts ( Malinin et al., 2022 ), have increasingly emphasized detection over segmentation. Therefore, given the clinical importance of lesion detection, lesion-wise metrics were prioritized over voxel-wise segmentation metrics, indicated by subindices d and s , respectively. The employed evaluation metrics include:

• Dice Similarity Coefficient (DSC): this metric was evaluated both voxel-wise ( D S C s ) and lesion-wise ( D S C d ). (3) D S C = 2 ⋅ T P F N + F P + 2 ⋅ T P • Detection True Positive Fraction ( T P F d ). • Detection False Positive Fraction ( F P F d ). (4) T P F d = T P T P + F N F P F d = F P F P + T P • Detection F-score: this metric combines the precision and sensitivity for lesion detection, providing a more balanced evaluation between TP and FP. (5) F − s c o r e d = T P T P + 0 . 5 ⋅ ( F P + F N )

Dice Similarity Coefficient (DSC): this metric was evaluated both voxel-wise ( D S C s ) and lesion-wise ( D S C d ). (3) D S C = 2 ⋅ T P F N + F P + 2 ⋅ T P

Detection True Positive Fraction ( T P F d ).

Detection False Positive Fraction ( F P F d ). (4) T P F d = T P T P + F N F P F d = F P F P + T P

Detection F-score: this metric combines the precision and sensitivity for lesion detection, providing a more balanced evaluation between TP and FP. (5) F − s c o r e d = T P T P + 0 . 5 ⋅ ( F P + F N )

To assess the statistical significance of differences in performance between models, paired t-tests were conducted on lesion-wise F-score values. Since only direct pairwise comparisons using a single performance metric were performed, correction for multiple testing was not applied. A p -value < 0.05 was considered statistically significant.

Table 2 Segmentation and detection results of the baseline models trained on each of the available datasets. The models trained on public datasets (Shifts and WMH2017) were also tested in the other datasets to assess the impact of domain shift. Train → Test D S C s D S C d T P F d F P F d F − s c o r e d Shifts → Shifts 63.5 ± 15.1 65.7 ± 13.9 66.5 ± 17.1 28.6 ± 19.7 65.7 ± 13.9 WMH2017 → Shifts 49.8 ± 14.9 59.1 ± 13.3 59.7 ± 18.4 31.9 ± 21.2 59.1 ± 13.3 WMH2017 → WMH2017 74.3 ± 10.7 75.1 ± 10.1 81.0 ± 9.2 28.1 ± 11.7 75.2 ± 7.4 Shifts → WMH2017 50.3 ± 21.0 54.5 ± 16.5 76.5 ± 10.2 54.4 ± 19.1 54.5 ± 16.5 VH → VH 50.6 ± 16.8 61.0 ± 16.7 59.9 ± 18.4 33.8 ± 19.3 61.0 ± 16.7 Shifts → VH 35.9 ± 21.6 43.7 ± 19.2 60.1 ± 19.5 62.8 ± 20.4 43.7 ± 19.2 WMH2017 → VH 34.2 ± 20.2 47.2 ± 19.3 62.9 ± 19.6 59.4 ± 20.7 47.2 ± 19.3

Table 2 Segmentation and detection results of the baseline models trained on each of the available datasets. The models trained on public datasets (Shifts and WMH2017) were also tested in the other datasets to assess the impact of domain shift. Train → Test D S C s D S C d T P F d F P F d F − s c o r e d Shifts → Shifts 63.5 ± 15.1 65.7 ± 13.9 66.5 ± 17.1 28.6 ± 19.7 65.7 ± 13.9 WMH2017 → Shifts 49.8 ± 14.9 59.1 ± 13.3 59.7 ± 18.4 31.9 ± 21.2 59.1 ± 13.3 WMH2017 → WMH2017 74.3 ± 10.7 75.1 ± 10.1 81.0 ± 9.2 28.1 ± 11.7 75.2 ± 7.4 Shifts → WMH2017 50.3 ± 21.0 54.5 ± 16.5 76.5 ± 10.2 54.4 ± 19.1 54.5 ± 16.5 VH → VH 50.6 ± 16.8 61.0 ± 16.7 59.9 ± 18.4 33.8 ± 19.3 61.0 ± 16.7 Shifts → VH 35.9 ± 21.6 43.7 ± 19.2 60.1 ± 19.5 62.8 ± 20.4 43.7 ± 19.2 WMH2017 → VH 34.2 ± 20.2 47.2 ± 19.3 62.9 ± 19.6 59.4 ± 20.7 47.2 ± 19.3

Segmentation and detection results of the baseline models trained on each of the available datasets. The models trained on public datasets (Shifts and WMH2017) were also tested in the other datasets to assess the impact of domain shift.

Results

Baseline: MS lesion segmentation

The results obtained with the baseline models trained on each individual dataset (Shifts, WMH2017 and VH) can be seen in Table 2 , in which the entries are labeled as Train
→
Test , indicating the dataset on which the model was trained ( Train ) and the dataset used for evaluation ( Test ). The WMH2017 and Shifts models were also tested on the other two datasets. The VH dataset was used as an independent out-domain test set since it contains real-life data from clinical practice and it represents a particularly challenging domain shift, not only differing in scanners and acquisition protocols but also containing images from patients with substantially lower lesion loads compared to the challenge datasets. As expected, both base models exhibited a significant drop in performance when evaluated on datasets different from their training data. This confirmed the presence of a domain shift between the datasets.

To further validate the effectiveness of our baseline models, correlation analyses were conducted between the estimated and ground truth lesion measurements. Strong correlations were observed between the estimated and true lesion volumes (r = 0.966) and also for lesion counts (r = 0.911), as shown in Fig. 4 . These high correlation values confirm that our baseline model provides reliable lesion quantification despite using a relatively simple architecture. Such an accurate quantification of lesion burden is particularly important for clinical applications in MS, where lesion count and volume are key metrics used for diagnosis and monitoring of disease progression and treatment response ( Filippi et al., 2022 , Oship et al., 2022 ). The strong correlation between predicted and ground truth measurements supports the clinical utility of our approach for quantitative MS assessment in real-world clinical settings.

Based on the overall performance in Table 2 , the WMH2017 model was chosen as the baseline for the subsequent EWC experiments. This selection was justified by its good performance and the fact that the WMH2017 dataset was pre-processed specifically for this work, which allowed for greater control over the data. Unlike the Shifts dataset, which was provided pre-processed with voxel interpolation instead of registration to the MNI and was registered afterwards, the WMH2017 dataset underwent a more similar pre-processing pipeline to the VH dataset, including registration to MNI. This additional step in the Shifts dataset might have introduced some “noise” or distortion, potentially impacting the model’s performance. Furthermore, Table 2 demonstrates a significant performance gap between WMH2017
→
VH and VH
→
VH (upper bound) results ( p -value < 0.05). More specifically, even though the sensitivity of WMH2017
→
VH is even higher than the one of VH
→
VH , it results in a high number of false positive lesions, leading to a big gap in the detection F-score. This elevated false positive rate is a characteristic manifestation of domain shift, where the model incorrectly identifies structures or intensity patterns in the target domain as lesions due to differences in image acquisition parameters, scanner characteristics, and patient populations between the source and target domains. Fig. 4 Correlation plots between predicted segmentations and ground truth. Table 3 Results of TL and EWC ( λ = 0.1) approaches on both the source and target domain. The upper row shows the baseline model results (WMH2017 model). Target domain (VH) Source domain (WMH2017) D S C d T P F d F P F d F − s c o r e d D S C d T P F d F P F d F − s c o r e d WMH → WMH 47.2 ± 19.3 62.9 ± 19.6 59.4 ± 20.7 47.2 ± 19.3 75.1 ± 10.1 81.0 ± 9.2 28.1 ± 11.7 75.2 ± 7.4 TL 63.4 ± 15.8 63.5 ± 18.9 34.7 ± 17.5 63.4 ± 15.8 54.4 ± 12.8 58.3 ± 9.6 46.5 ± 18.8 54.4 ± 12.8 EWC 62.0 ± 15.2 59.9 ± 18.6 30.1 ± 19.5 62.0 ± 15.3 62.7 ± 9.2 61.0 ± 9.2 34.2 ± 13.3 63.0 ± 9.2

Correlation plots between predicted segmentations and ground truth.

Table 3 Results of TL and EWC ( λ = 0.1) approaches on both the source and target domain. The upper row shows the baseline model results (WMH2017 model). Target domain (VH) Source domain (WMH2017) D S C d T P F d F P F d F − s c o r e d D S C d T P F d F P F d F − s c o r e d WMH → WMH 47.2 ± 19.3 62.9 ± 19.6 59.4 ± 20.7 47.2 ± 19.3 75.1 ± 10.1 81.0 ± 9.2 28.1 ± 11.7 75.2 ± 7.4 TL 63.4 ± 15.8 63.5 ± 18.9 34.7 ± 17.5 63.4 ± 15.8 54.4 ± 12.8 58.3 ± 9.6 46.5 ± 18.8 54.4 ± 12.8 EWC 62.0 ± 15.2 59.9 ± 18.6 30.1 ± 19.5 62.0 ± 15.3 62.7 ± 9.2 61.0 ± 9.2 34.2 ± 13.3 63.0 ± 9.2

Results of TL and EWC ( λ = 0.1) approaches on both the source and target domain. The upper row shows the baseline model results (WMH2017 model).

Fig. 5 Detection F-score for different values of λ in EWC penalization. λ axis is on logarithmic scale. EWC and TL are the results of retraining the source model (WMH2017) on the target domain (VH) with and without EWC penalization, respectively. Results are included for: (a) Target domain (VH): the VH → VH results are the ones obtained by training and testing the model on the VH dataset. (b) Source domain (WMH2017): the WMH2017 → WMH2017 results are the ones obtained by training and testing the model on the WMH2017 dataset. Fig. 6 Few-shot domain adaptation comparison between TL and EWC with λ = 0 . 1 (optimal penalization value) and λ = 1 (for comparison). Note that the x -axis is presented in a logarithmic scale (base 2) to better visualize results with smaller training set sizes. (a) Target domain (VH): the upper bound is the VH → VH model, and the lower bound corresponds to the WMH2017 → VH. (b) Source domain (WMH2017): the upper bound corresponds to the WMH2017 → WMH2017 model.

Detection F-score for different values of λ in EWC penalization. λ axis is on logarithmic scale. EWC and TL are the results of retraining the source model (WMH2017) on the target domain (VH) with and without EWC penalization, respectively. Results are included for: (a) Target domain (VH): the VH → VH results are the ones obtained by training and testing the model on the VH dataset. (b) Source domain (WMH2017): the WMH2017 → WMH2017 results are the ones obtained by training and testing the model on the WMH2017 dataset.

Few-shot domain adaptation comparison between TL and EWC with λ = 0 . 1 (optimal penalization value) and λ = 1 (for comparison). Note that the x -axis is presented in a logarithmic scale (base 2) to better visualize results with smaller training set sizes. (a) Target domain (VH): the upper bound is the VH → VH model, and the lower bound corresponds to the WMH2017 → VH. (b) Source domain (WMH2017): the upper bound corresponds to the WMH2017 → WMH2017 model.

Elastic weight consolidation (EWC)

Table 3 shows the results of EWC after finetuning the WMH2017 model (source domain) with the VH dataset (target domain), compared to traditional TL. The results of the WMH2017
→
WMH2017 baseline model are also included in the Table, which also contains the results for both the source and target domain in all cases. In the case of EWC, the results correspond to the optimal penalization weight value λ = 0 . 1 , which was selected because of the good trade-off provided between source domain knowledge preservation and domain adaptation to the target domain (see Fig. 5 ). As the performance was comparable for λ = 0 . 1 and λ = 1 in full-training scenarios on both the source and target domains, it was preferred to select the smaller value to avoid exploding gradients during training. Moreover, λ = 0 . 1 showed better performance on the source domain for smaller training set sizes compared to λ = 1 (see Fig. 6 ). With few training images, a stronger penalty worsens source domain preservation, probably due to competing optimization objectives (the need for significant parameter adjustments conflicts with the high regularization, creating instability and suboptimal solutions). Note that EWC provided significantly better knowledge preservation of the source domain compared to TL, as shown in a reduction of catastrophic forgetting of up to 9% in terms of F-score ( p -value < 0.05). Additionally, on the target domain, the results of EWC were comparable to the ones of TL, meaning that the model also adapted to the target domain.

Fig. 7 provides qualitative results to visualize the performance differences between the baseline model, TL and EWC in both the source and target domains. The upper section of the Figure shows the source domain results. As expected, the baseline model achieved good performance on the source domain (75.2 of F − s c o r e d ). However, due to catastrophic forgetting, TL strategies exhibited a high number of false positive lesions in the source domain ( F P F d increased from 28.1 to 46.5 after TL). This increase in false positives occurs because the model has adapted its parameters to recognize lesions in the target domain, which differ from those in the source domain. When subsequently tested on source domain data, the model misinterprets intensities from partial volumes or brain structures as lesions based on the newly learned target domain characteristics. In the target domain, the baseline model showed poor performance due to the domain shift, again evident by the presence of numerous false positive lesions (59.4 of F P F d ). Following a TL strategy, the model successfully adapted to the target domain, achieving a segmentation comparable to the ground truth (from 47.2 to 63.4 of F − s c o r e d after TL). Finally, EWC results demonstrate the ability of this technique to balance the trade-off between source and target domain performance. EWC better preserves source domain knowledge (63.0 of F − s c o r e d ) compared to TL (54.4 F − s c o r e d ), resulting in segmentation more similar to the baseline model, while still adapting to the new target domain (62.0 F − s c o r e d ). Fig. 7 Comparison of TL and CL segmentation results on the source and target domain. From top to bottom, the source domain subjects have 4.316 ml and 48.714 ml of lesion load respectively, while the target domain sample subjects have 0.966 ml and 0.517 ml. (a) FLAIR image. (b) Ground truth. (c) Baseline model : effective on the source domain but it fails to generalize to the target domain (domain shift). (d) TL achieves successful adaptation to the target domain, but suffers from catastrophic forgetting on the source domain. (e) EWC shows good performance in both the source and target domains.

Comparison of TL and CL segmentation results on the source and target domain. From top to bottom, the source domain subjects have 4.316 ml and 48.714 ml of lesion load respectively, while the target domain sample subjects have 0.966 ml and 0.517 ml. (a) FLAIR image. (b) Ground truth. (c) Baseline model : effective on the source domain but it fails to generalize to the target domain (domain shift). (d) TL achieves successful adaptation to the target domain, but suffers from catastrophic forgetting on the source domain. (e) EWC shows good performance in both the source and target domains.

Few-shot continuous learning

Fig. 6 presents the results in terms of detection F-score for both the source and target domains of the few-shot CL study using EWC. One-shot learning resulted in an improvement of 10% in DSCs and 8% in precision. This is comparable with Valverde et al. (2019) one-shot experiments, which led to an improvement of 5%–24% in DSCs and 3%–27% in precision across subjects with varying lesion load and across different numbers of retrained layers. On the target domain (VH), retraining with only 3 images led to an F-score improvement of almost 10%, and training with 5 images was enough to reach a performance comparable to the upper bound (VH → VH, see Table 2 ). On the other hand, on the source domain we can see that EWC consistently led to better knowledge preservation compared to traditional TL, reducing catastrophic forgetting by 8% to 19% across different training set sizes. Additionally, EWC provided more stable performance in the source domain when compared to TL, where the extent of forgetting seemed more unpredictable. Interestingly, TL exhibited less severe forgetting as the number of training images increased, likely because adapting to a larger, more representative set of target domain examples required less parameter adjustments than when generalizing from very few examples, thus allowing better preservation of source domain knowledge.

Discussion

This work demonstrated the potential of EWC to improve the domain shift problem in the context of MS lesion segmentation, while mitigating catastrophic forgetting in the source domain. The results confirmed the effectiveness of this approach in improving model performance on a target domain (VH) while preserving knowledge from a source domain (WMH2017), in both full-training and few-shot learning scenarios.

The baseline models trained on each public dataset (WMH2017 and Shifts) achieved detection results comparable to the state-of-the-art. For instance, on the WMH2017 dataset, our baseline model achieved a T P F d of 81.0 and a F − s c o r e d of 75.2. These values are competitive with the winning entry in the corresponding segmentation challenge, which reported a T P F d of 84.0 and an F − s c o r e d of 76.0 ( Kuijf et al., 2019 ). Additionally, the baseline results of the model trained on the VH dataset ( T P F d of 59.9 and D S C s of 50.6) are comparable to those obtained in previous works ( T P F d of 60 and D S C s of 53) ( Valverde et al., 2019 ). These results validate that the baseline segmentation approach provides a reliable foundation for evaluating our proposed EWC methodology. Moreover, these baseline models showed the presence of a domain shift between the datasets. This was evident from the drop in performance observed when evaluating the models on datasets different from their training data ( Table 2 ).

As shown in Table 3 , EWC emerged as an effective method for preserving knowledge from the source domain (WMH2017) while still adapting to the target domain (VH). The success of this method relies on fact that it adapts the penalization during training at each step, based on both the importance of the parameter and the difference between its current value (training on the target domain) and optimal value (trained on the source domain), leading to dynamic adaptation during training. It is worth emphasizing the importance of careful tuning of the hyperparameter λ for balancing source domain knowledge preservation and target domain learning flexibility. We observed from our optimization study (see Fig. 5 ) that as the λ value increased, the model allowed less flexibility for learning the target domain. Conversely, for the source domain, a higher λ value translated to better knowledge preservation. However, excessively high λ led to a decrease in the source domain performance. This was likely because a very strong penalty resulted in high loss values during training, which in turn led to significant changes in model parameters, hindering the desired behavior of preserving previous knowledge.

Moreover, few-shot learning results demonstrated that EWC allows the model to successfully adapt to the target domain with very few images, achieving similar results to TL for all training set sizes and, more importantly, it reduced catastrophic forgetting for all the number of training images compared to TL. The effectiveness of EWC has been demonstrated through internal comparison with traditional TL. However, direct comparisons with other published works are challenging since, to the best of our knowledge, this is the first application of EWC for few-shot domain adaptation in MS lesion segmentation.

The clinical relevance of this extends beyond technical improvements in domain adaptation. The strong correlations observed between estimated and ground truth measurements for both lesion volumes (r = 0.966) and lesion counts (r = 0.911) (see Fig. 4 ) are particularly important, as these metrics are crucial for MS diagnosis and monitoring in clinical settings. This high correlation demonstrates that our approach not only detects lesions accurately but also provides reliable volumetric quantification, which is essential for tracking disease progression and treatment response in MS patients ( Filippi et al., 2022 , Oship et al., 2022 ). Moreover, the experimental design, using an independent in-house dataset (VH) as the target domain, represents a realistic clinical scenario where models trained on public research datasets need to be adapted to local hospital environments with different scanner characteristics. Mitigating catastrophic forgetting is particularly important in clinical practice, where models may need to handle images from different scanners or even hospitals while maintaining consistent performance across all domains. Perhaps most significant for practical implementation is the EWC’s few-shot learning capability, achieving good adaptation using only 3 or 5 images from the target domain. This substantially reduces the annotation burden on radiologists when deploying these models in new clinical settings, making the adaptation process feasible in resource-constrained environments.

While this work demonstrated the potential of EWC for mitigating catastrophic forgetting in domain adaptation scenarios for MS lesion segmentation, some limitations need to be addressed in future studies. A U-Net architecture was deliberately employed to isolate the effects of the CL and TL methods without architectural confounds, still achieving state-of-the-art results. Future work should explore how EWC performs when integrated with more advanced segmentation models, such as nn-Unet or attention-based networks ( Basaran et al., 2022 , Rondinella et al., 2023 ), potentially yielding even better absolute performance while maintaining the relative improvements in domain adaptation and knowledge preservation demonstrated in this study. Additionally, studying how sensitive the one-shot and few-shot learning results are to the selection of the images would provide a more robust understanding of the generalizability of the approach. It would also be interesting to apply EWC sequentially to different datasets and study how does the performance on the source domain degrade after learning several datasets. Furthermore, exploring the application of EWC to longitudinal MS lesion segmentation represents another promising direction for future research ( Valverde et al., 2017 , Salem et al., 2020 , Commowick et al., 2021 ). EWC could potentially enhance automated longitudinal analyses, supporting more accurate monitoring of disease progression and treatment response over time.

Future directions for MS lesion segmentation could explore complementary approaches to EWC for addressing domain shift challenges. Image harmonization techniques ( Fortin et al., 2018 , Pomponio et al., 2020 , van Nederpelt et al., 2024 ), which aim to standardize images from different scanners or acquisition protocols to a common appearance, could be integrated with our EWC-based continuous learning method. Image harmonization techniques have proven to be effective at standardizing MRI data across different scanners, while preserving important morphological information. It would be valuable to investigate whether combining EWC with image harmonization could yield even better results, or whether effective harmonization might reduce the need for continuous learning by improving initial generalizability. The optimal approach might involve a hybrid solution that leverages both preprocessing techniques (harmonization) and model adaptation strategies (continuous learning) to achieve robust performance across diverse clinical environments.

Conclusions

This work was the first to apply EWC for domain-incremental learning in MS lesion segmentation. Incorporating EWC into a deep learning framework based on a 3D U-Net architecture has shown successful results in mitigating catastrophic forgetting suffered by TL methods in a domain-incremental learning scenario. This makes deep learning models more generalizable in different hospital environments, which makes it an interesting proposal for future clinical applications. Moreover, few-shot approaches demonstrated that EWC achieved domain adaptation with a reduced number of training images, which is of interest for real-life applications. All the methods were evaluated in several public international and in-house datasets.

The analysis of the baseline model revealed a significant drop in performance when testing the source model on the target domain, due to the domain-shift, with an average F-score decrease of around 14%. While both EWC and TL achieved full-domain adaptation with only 5 target images, using only 3 images led to an F-score improvement of almost 10%. Results showed that the source model’s performance drop during adaptation to the target domain using TL (catastrophic forgetting) ranged from 20% to 37% in terms of F-score. EWC successfully reduced catastrophic forgetting by 8% to 19% across different training set sizes. Moreover, EWC demonstrated performance on the target domain comparable to that of TL techniques, in both few-shot and full-training settings, confirming that EWC does not hinder the model’s ability to adapt to new domains.

Finally, a significant advantage of EWC is its efficiency. It enables adaptation without requiring source domain images during target domain training. This not only translates to memory efficiency but also addresses critical privacy concerns within the medical domain. Additionally, EWC avoids introducing new network parameters, eliminates the need for domain labels during inference, and does not require training separate neural networks. These characteristics make EWC a promising approach for real-world applications.

CRediT authorship contribution statement

Luisana Álvarez: Writing – original draft, Visualization, Software, Methodology, Investigation, Formal analysis, Data curation, Conceptualization. Sergi Valverde: Writing – review & editing, Supervision, Methodology, Formal analysis, Conceptualization. Àlex Rovira: Writing – review & editing, Validation, Resources, Data curation. Xavier Lladó: Writing – review & editing, Supervision, Methodology, Formal analysis, Conceptualization.

Предметные рубрики MeSH

ИП Урсолов Владлен Сергеевич

ИНН 500118482352 · ОГРНИП 314500117700049

Реквизиты и контакты