Skip to main content
  • Technical advance
  • Open access
  • Published:

A semi-automated measuring system of brain diffusion and perfusion magnetic resonance imaging abnormalities in patients with multiple sclerosis based on the integration of coregistration and tissue segmentation procedures

Abstract

Background

Diffusion-weighted imaging (DWI) and perfusion-weighted imaging (PWI) abnormalities in patients with multiple sclerosis (MS) are currently measured by a complex combination of separate procedures. Therefore, the purpose of this study was to provide a reliable method for reducing analysis complexity and obtaining reproducible results.

Methods

We implemented a semi-automated measuring system in which different well-known software components for magnetic resonance imaging (MRI) analysis are integrated to obtain reliable measurements of DWI and PWI disturbances in MS.

Results

We generated the Diffusion/Perfusion Project (DPP) Suite, in which a series of external software programs are managed and harmonically and hierarchically incorporated by in-house developed Matlab software to perform the following processes: 1) image pre-processing, including imaging data anonymization and conversion from DICOM to Nifti format; 2) co-registration of 2D and 3D non-enhanced and Gd-enhanced T1-weighted images in fluid-attenuated inversion recovery (FLAIR) space; 3) lesion segmentation and classification, in which FLAIR lesions are at first segmented and then categorized according to their presumed evolution; 4) co-registration of segmented FLAIR lesion in T1 space to obtain the FLAIR lesion mask in the T1 space; 5) normal appearing tissue segmentation, in which T1 lesion mask is used to segment basal ganglia/thalami, normal appearing grey matter (NAGM) and normal appearing white matter (NAWM); 6) DWI and PWI map generation; 7) co-registration of basal ganglia/thalami, NAGM, NAWM, DWI and PWI maps in previously segmented FLAIR space; 8) data analysis. All these steps are automatic, except for lesion segmentation and classification.

Conclusion

We developed a promising method to limit misclassifications and user errors, providing clinical researchers with a practical and reproducible tool to measure DWI and PWI changes in MS.

Peer Review reports

Background

The role of diffusion-weighted imaging (DWI) and perfusion-weighted imaging (PWI) modalities in multiple sclerosis (MS) has recently received increased attention due to the potential of these two advanced magnetic resonance imaging (MRI) techniques in detecting the structural and hemodynamic characteristics of MS-related focal [17] and diffuse [816] brain abnormalities in gray and white matter, which characterize the well-known heterogeneity of the disease [17]. In fact, although conventional MRI findings are currently considered a valid surrogate marker for MS diagnosis and progression in treated and untreated patients, their diagnostic and prognostic value still remains very limited given the inability of conventional MRI in identifying the specific pathologic substrates of MS lesions [17]. Thus, it could be crucial to understand whether the detection and quantification of focal and diffuse DWI and PWI changes may help in recognizing the different mechanisms implicated in MS damage and, as a consequence, in improving diagnostic accuracy, early outcome prediction and response to treatment monitoring in MS. As DWI and PWI can be easily integrated in the context of MRI examination, this may have a large impact for routine clinical setting and patient quality of life. Therefore, further studies are warranted to clarify the actual significance of DWI and PWI disturbances in MS. However, the evaluation of DWI and PWI alterations in MS is generally restricted to the research field and is currently performed by different software programs, used separately from each other with lack of standardization regarding the overall process [116, 18, 19]. This implies several steps including various co-registration and tissue/lesion segmentation tasks which make the analysis rather laborious, time-consuming and prone to inaccuracies due to human intervention. These limitations could explain why the results coming from previous studies were not always concordant. In addition, there are no large-scale studies investigating DWI and PWI abnormalities in MS focal lesions categorized according to different stages of their evolution (acute and chronic) [20]. Thus, a more integrated analysis process incorporating all software packages employed in performing co-registration and tissue/lesion segmentation steps would be beneficial. This approach should be based on the activation of the different software modules according to a logical sequence leading to precise measurements of DWI and PWI values in focal MS lesions, in normal appearing grey matter (NAGM) and in normal appearing white matter (NAWM). For these reasons, the pipeline proposed in this work consists in an implementation of already described algorithms [4, 6, 10, 13, 15] combined according to a hierarchical order in a semi-automated manner. Although many automated methods have recently been developed for MS lesion detection [2123], we chose semi-automated operations for the identification of focal damage to minimize potential biases due to lesion misclassification [18, 19], which could overcome operator-dependent misinterpretations related to visual inspection. On the other hand, the lack of clear standards renders it difficult to judge the superiority of one approach over other available choices [18, 19, 24]. Accordingly, we included tools commonly used in the MS literature which have been demonstrated to be both efficient and accurate in co-registration and tissue/lesion segmentation procedures. Moreover, the investigators of our group have many combined years of experience using these tools [18, 19, 2426]. In this way, we sought to provide a promising tool for reducing analysis complexity and obtaining reproducible results.

Methods

Definition and general description of the DPP Suite and modules

The process management system named Diffusion/Perfusion Project (DPP) described in the paper is an in-house developed suite written in Matlab (The MathWorks, Natick, MA, USA) and requiring the Image Processing Toolbox. The DPP is a collection of software modules all related to MRI data management, sharing the same GUI (Graphical User Interface) and exchanging data with each other. DPP Suite integrates commonly used software tools which are able to perform different types of data analysis and management. The primary aim of DPP Suite is to create a uniform environment where it can be possible to assess a considerably larger number of data from MS patients compared to the other current analysis methods, reducing as much as possible analysis complexity, time required and potential human errors. The most relevant procedures manageable through DPP Suite are schematically presented in Fig. 1, where data and operations are shown as a flowchart. In summary, DPP Suite operations include: 1) image pre-processing; 2) registration of T1-weighted images; 3) lesion segmentation and classification; 4) registration of lesion masks; 5) normal appearing tissue segmentation; 6) PWI and DWI map generation; 7) registration of tissue segmentation and quantitative MRI maps; 8) data analysis.

Fig. 1
figure 1

Flowchart of Diffusion/Perfusion Project (DPP) Suite. The DPP Suite is used for diffusion-weighted imaging (DWI) and perfusion-weighted imaging (PWI) measurements in focal and diffuse abnormalities in multiple sclerosis (MS) patients. OspFE = Ferrara Hospital; MRI = magnetic resonance imaging; FLAIR = axial fluid-attenuated inversion recovery MRI images; T1 = 2D axial non-enhanced T1-weighted spin-Echo or 3D non-enhanced T1-weighted gradient-Echo MRI images; Gd T1 = Gadolinium-enhanced T1-weighted spin-Echo MRI images; r_T1 = registered 2D axial non-enhanced T1-weighted spin-Echo or 3D non-enhanced T1-weighted gradient-Echo MRI images; r_Gd T1 = registered Gadolinium-enhanced T1-weighted spin-Echo MRI images; ROI = regions of interest; NAWM = normal appearing white matter; NAGM = normal appearing grey matter; ADC = apparent diffusion coefficient; CBF = cerebral blood flow; CBV = cerebral blood volume; MTT = mean transit time

Pre-processing

Image pre-processing starts with the automatic anonymization of MRI sequences for each patient which are exported from a PACS database and copied in a local repository dynamically linked with the DPP Suite. This process aims at protecting patient identity during the whole procedure. Furthermore, demographic data, resulting analysis and patient identity are stored as a protected file controlled by the DPP Suite. The anonymization procedure is performed by Image Processing Toolbox Matlab function with some adaptations. The original embedded task for data anonymization, called dicomanon, was modified generating a function called dpp_dicomanon that can strengthen the patient data confidentiality level if needed. After anonymization, DICOM format [27] files are converted in NIFTI format [28] using the Statistical Parametric Mapping (SPM) 8 toolbox (http://www.fil.ion.ucl.ac.uk/spm/) [29]. Notably, pre-processing is performed on a limited dataset that includes the following MRI sequences: axial fluid-attenuated inversion recovery (FLAIR); two-dimensional (2D) axial non-enhanced T1-weighted spin-echo or three-dimensional (3D) non-enhanced T1 gradient-echo; axial Gadolinium (Gd)-enhanced T1-weighted spin-echo; axial DWI and axial PWI. Therefore, before data conversion, a DPP function selects patients having all MRI sequences requested for analysis, excluding those with incomplete radiological data. Concurrently, a set of report files containing a checklist of unavailable sequences for each non-conforming patient is generated. In addition, all MRI data are reorganized in a storage structure aimed at making a uniform data format, including sequences names, filenames or data storing and other details, that is independent of that given by different MRI scanners (e.g. Philips, Siemens or GE), without modifications in information content.

Registration of T1-weighted images

In this first step (Fig. 2), both axial 2D non-enhanced T1-weighted spin-echo or 3D non-enhanced T1 gradient-echo and axial Gd-enhanced T1-weighted spin-echo are registered in FLAIR space using an automated process based on the employment of a DPP module invoking one of the two following external software packages: SPM or FMRIB’s Linear Image Registration Tool (FLIRT) from FMRIB Software Library (FSL) suite (http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/flirt) [30, 31]. Although T2-weighted images are generally considered the most sensitive in detecting infratentorial lesions [32], FLAIR images serve for the following lesion segmentation since they improve lesion/brain contrast due to the suppression of cerebrospinal fluid signal [33]. On the other hand, T1-weighted images allow the identification of MS T1 hypointense (black holes) and T1 Gd-enhancing lesions as well as the evaluation of brain atrophy [17]. In this regard, it is well-accepted that 3D are superior to 2D T1 images in the determination of brain volume [34]. However, we chose to process also 2D T1 images since, in clinical practice, not all centers are equipped to routinely perform 3D T1 sequences in MS patients. The choice between SPM and FSL FLIRT is user selectable.

Fig. 2
figure 2

An illustrative example of registration of T1-weighted images. SPM = Statistical Parametric Mapping; FSL = FMRIB Software Library; FLIRT = FMRIB’s Linear Image Registration Tool; FLAIR = axial fluid-attenuated inversion recovery MRI images; T1 = 2D axial non-enhanced T1-weighted spin-Echo or 3D non-enhanced T1-weighted gradient-Echo MRI images; Gd T1 = Gadolinium-enhanced T1-weighted spin-Echo MRI images; r_T1 = registered 2D axial non-enhanced T1-weighted spin-Echo or 3D non-enhanced T1-weighted gradient-Echo MRI images; r_Gd T1 = registered Gadolinium-enhanced T1-weighted spin-Echo MRI images

Lesion segmentation and classification

The development of automated techniques for lesion detection is one of the most central challenges in MS research. Therefore, a number of approaches have recently been proposed [2123]. However, it is generally accepted that there are no automatic lesion segmentation methods with 100 % reliability [18, 19]. This is the reason why a series of semi-automated algorithms were designed and tested in order to support and simplify lesion segmentation and classification. This step is one of the most critical and complex because it involves both human operation and automated processes. In fact, two basic operations are implemented: a) semi-automatic lesion segmentation; b) semi-automatic lesion classification.

Semi-automatic lesion segmentation

As depicted in Fig. 3, this step is performed on FLAIR images using Jim (Jim 6.0, Xinapse Systems, Leicester, UK; http://www.xinapse.com) [34] as an external software package. After visual identification, each lesion is semi-automatically segmented by a local threshold-based technique. In addition, a region of interest (ROI) of the NAWM is manually outlined. The output of this process is an ROI file corresponding to the delineated areas.

Fig. 3
figure 3

A descriptive example of semi-automated lesion segmentation process on fluid-attenuated inversion recovery (FLAIR) images. Segmented hyperintense lesions in red; area used for NAWM mean intensity estimation in green

Semi-automatic lesion classification

Using the FLAIR-derived lesion ROI file, DDP Suite automatically masks the non-enhanced and Gd-enhanced T1-weighted images (Fig. 4). The DPP Suite then calculates the intensity of each lesion in both non-enhanced and Gd-enhanced T1-weighted sequence. Based on the recently proposed classification [20], the algorithm categorizes each T2-weighted hyperintense lesion, based on its intensity in four classes: 1) Gd-enhancing and T1-weighted isointense (C1); 2) Gd-enhancing and T1-weighted hypointense (C2); 3) non Gd-enhancing and T1-weighted isointense (C3); 4) non Gd-enhancing and T1-weighted hypointense, i.e. black holes (C4). As, in absence of serial MRI examinations, lesion activity is demonstrable only by Gd enhancement [35], C1 and C2 type lesions are considered as acute, whereas C3 and C4 lesions are judged as chronic [36, 37]. The output of the process is a recombined ROI file enriched with classification of each lesion given by a different color code for each lesion type and a descriptive text label where the type and characteristics of the single lesion are briefly reported (Fig. 4). Lesion classification is accomplished using a DPP algorithm based on a lesion intensity comparison to the NAWM ROI intensity level. The thresholds to identify the lesion classes are defined as a configurable multiplier of the standard deviation of the intensity values in the NAWM ROI.

Fig. 4
figure 4

A demonstrative example showing the automatic lesion classification process. FLAIR = axial fluid-attenuated inversion recovery MRI images; r_T1 = registered 2D axial non-enhanced T1-weighted spin-Echo or 3D non-enhanced T1-weighted gradient-Echo MRI images; r_Gd T1 = registered Gadolinium-enhanced T1-weighted spin-Echo MRI images. ROI = Region Of Interest; area used for NAWM mean intensity estimation in red

$$ Thr{e}_{High}={\overline{I}}_{default}+Mf\cdot St-dev\left({I}_{NAWM}\right) $$
(1)
$$ Thr{e}_{Low}={\overline{I}}_{default}-Mf\cdot St-dev\left({I}_{NAWM}\right) $$
(2)

Where Ī is the mean intensity of the NAWM and Mf is the multiplier factor and St_dev is the standard deviation calculation function. The mean intensity of ach lesion is then calculated and compared with the two thresholds referred to in formulas (1) and (2) that are calculated for both non-enhanced and Gd-enhanced T1-weighted images. The automatic lesion classification algorithm performance is briefly presented in Fig. 5 to document the accuracy of the procedure. The error percentage of automatic classification was less than 1 % for C1 and C2 lesion classes and about 21 % and 23 % for C3 and C4 lesion classes, respectively. It is important to underline that the low error percentage found for C1 and C2 lesion classes could be related to the small number of this type of lesions occurred in the selected patients, as well as in all patients analyzed. Therefore, these results support the need of a visual correction for automatic lesion classification. The output of the automatic lesion classification process is a text file in Jim ROI Analysis Tool format, containing all the ROI definitions and classifications. Automatic lesion classifications are visually checked and revised by the operator. The new checked file is then automatically reloaded and converted by DDP Suite into different revised ROI files, including the lesions categorized as total lesions, lesion classes (C1, C2, C3 and C4) and single lesion, which are then used in the following steps.

Fig. 5
figure 5

Automatic lesion classification algorithm performance for a group of 15 randomly selected patients. The automatic classification algorithm is compared with classification of the same lesions performed visually by an expert. Vertical axis shows the error percentage over total number of lesions. Group 1 (>40) = patient group 1 was composed by 5 patients with more than 40 lesions; Group 2 (>20 ≤ 40) = patient group 2 was composed by 5 patients with more than 20 and less than 40 lesions; Group 3 (≤20) = patient group 3 was composed by 5 patients with less than 20 lesions; Total = mean values between group 1, 2 and 3; C1 = lesion class 1; C2 = lesion class 2; C3 = lesion class 3; C4 = lesion class 4

Registration of lesion masks

This stage requires the creation of a lesion mask in the T1 space and is performed by SPM or FSL FLIRT external software packages invoked by a DPP module. Briefly, FLAIR images previously segmented are used to automatically produce a lesion mask that is coregistered in the non-enhanced T1-weighted space to obtain a registered lesion mask. When FLIRT is chosen, coregistration is done applying to the lesion mask in the FLAIR space the transformation matrix generated by the registration of FLAIR and T1. If SPM is selected, T1 is set as the reference image, FLAIR as source and the lesion mask as other. The result is a black and white lesion mask that is a binarization of the brain lesion area where lesions are white and the remaining brain tissue is black (Fig. 6).

Fig. 6
figure 6

A graphic example of registration of lesion masks. FLAIR = axial fluid-attenuated inversion recovery MRI images; T1 = 2D axial non-enhanced T1-weighted spin-Echo or 3D non-enhanced T1-weighted gradient-Echo MRI images; SPM = Statistical Parametric Mapping; FSL = FMRIB Software Library; FLIRT = FMRIB’s Linear Image Registration Tool; r_T1 = registered 2D axial non-enhanced T1-weighted spin-Echo or 3D non-enhanced T1-weighted

Normal appearing tissue segmentation

As depicted in Fig. 7, DPP Suite invokes automatic segmentation of the basal ganglia and thalami via the external FSL tool FMRIB’s Integrated Registration and Segmentation Tool (FIRST) (http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/first) [38]. The input is the non-enhanced T1-weighted sequence. The segmented basal ganglia structures include the right and left caudate, putamen and globus pallidus. The following step is represented by the automatic segmentation of grey and white matter for which DPP Suite invokes FSL SIENAX (Structural Image Evaluation using Normalization of Atrophy) (http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/SIENA) [39]. In this case, the inputs are non-enhanced T1-weighted sequence and registered T1 lesion mask, whereas the output are two files including NAGM and NAWM images obtained after subtracting registered T1 lesion mask from non-enhanced T1-weighted. In addition, FSL SIENAX generates a report file including total brain tissue volume, as a whole and normalized according to skull size, and normalized NAGM and NAWM volumes.

Fig. 7
figure 7

An illustrative example of normal appearing tissue segmentation. T1 = 2D axial non-enhanced T1-weighted spin-Echo or 3D non-enhanced T1-weighted gradient-Echo MRI images; FSL = FMRIB Software Library; FIRST = FMRIB’s Integrated Registration and Segmentation Tool; SIENAX = Structural Image Evaluation using Normalization of Atrophy; r_T1 = registered 2D axial non-enhanced T1-weighted spin-Echo or 3D non-enhanced T1-weighted gradient-Echo MRI images; NAGM = normal appearing grey matter; NAWM = normal appearing white matter

PWI map generation

PWI studies are performed with a dynamic susceptibility contrast (DSC) MRI first-pass bolus-tracking technique using echo-planar gradient-echo T2* sequences. PWI analysis provides relative measurements of brain hemodynamic parameters such as Cerebral Blood Flow (CBF), Cerebral Blood Volume (CBV) and Mean Transit Time (MTT). CBF, CBV and MTT maps are generated by a singular value decomposition (SVD) deconvolution operation based on the measurement of an arterial input function (AIF) [40]. The calculation of PWI maps is automatically performed by Jim Perfusion Analysis tool invoked by DPP Suite. DSC images consist of a time-series of sequences, one volume for each time point, which monitor the concentration of an injected paramagnetic contrast agent transiting from the blood vessels to the brain tissue. Therefore, AIF determination implies the knowledge of the exact volume where the contrast agent is perceptible in the brain (Contrast Arrival Point). For that reason, the DPP Suite implements an algorithm that identifies the contrast arrival volume number using Jim Stats. This algorithm evaluates the mean intensity in volumes, using in subsequent steps the average intensity of the previous analyzed volumes, in order to reduce the noise affecting the images. It detects when the difference of mean intensity between two subsequent volumes is more than an adjustable threshold. The threshold is not an absolute value or an absolute percent, but is a fraction of the difference between maximum and minimum intensity value measured in all volumes of the sequence. Thus, the threshold is less dependent from the volume intensity absolute level.

DWI map generation

DWI studies are often performed with a single-shot echo-planar T2 spin-echo sequence according to the Stejskal-Tanner method [41]. The diffusion gradients are applied in three orthogonal directions (x, y, z) with two b-values (0 and 1000 s/mm2) to form the isotropic DWI images at b 1000 s/mm2. DWI analysis takes as input T2 images and extracts from these images apparent Diffusion Coefficient (ADC) maps, related to each Cartesian axis. More precisely, as reported elsewhere [42], ADC maps are generated using T2-weighted images at b 0s/mm2 and isotropic DWI images at b 1000 s/mm2 obtained in all three orthogonal directions. All calculations are automatically performed by Jim Image Algebra tool invoked by DPP Suite controlling the entire process. The process output is an average ADC map, obtained calculating the mean of the previously calculated ADC on the three Cartesian axes. After this process, previously generated ADC maps and PWI maps are ready to be registered in the next step (Fig. 8).

Fig. 8
figure 8

A descriptive example of generated apparent diffusion coefficient (ADC) and perfusion-weighted imaging (PWI) maps. CBF = Cerebral Blood Flow; CBV = Cerebral Blood Volume; MTT = Mean Transit Time; DWI = Diffusion Weighted Imaging

Registration of tissue segmentation and quantitative MRI maps

This step is aimed at automatically translating the results of all intermediate processes previously described in the FLAIR space to allow the final data analysis in which DWI and PWI values are measured in every lesion as well as in the basal ganglia and thalami, NAGM and NAWM. DPP Suite invokes SPM or FSL FLIRT external software tools which generate the following registered maps:

From T1 space:

  1. 1.

    Basal ganglia and thalami maps;

  2. 2.

    NAGM map;

  3. 3.

    NAWM map;

    from DWI space:

  4. 4.

    Average ADC map;

    from PWI space:

  5. 5.

    CBV, CBF and MTT maps.

The different maps are registered into the FLAIR space and used in the next data analysis (Fig. 9). The coregistration is performed using a similar method as in registration of lesion masks.

Fig. 9
figure 9

A graphic example of registration of tissue segmentation and quantitative MRI maps. NAGM = normal appearing grey matter; NAWM = normal appearing white matter; ADC = apparent diffusion coefficient; CBF = cerebral blood flow; CBV = cerebral blood volume; MTT = mean transit time; SPM = Statistical Parametric Mapping; FSL = FMRIB Software Library; FLIRT = FMRIB’s Linear Image Registration Tool; FLAIR = axial fluid-attenuated inversion recovery MRI images

Data analysis

The final step represents the key advance performed by the DPP Suite compared to existing semi-automated methods. Measurements are obtained by the integration of the entire set of images and maps previously generated. This result is obtained using distinct software modules. In this stage, two groups of automatic analysis are developed. In the first one (Fig. 10, panel a), NAGM, NAWM and basal ganglia maps are used to mask ADC and PWI maps owing to Jim Masker invoked by DPP Suite. At this point, DPP Suite activates the Jim Stats tool that is able to calculate ADC, CBF, CBV and MTT values in these brain areas. In addition, the Jim Stats tool also measures NAGM, NAWM and basal ganglia/thalami volumes and voxel number and DPP Suite parses previously saved FSL SIENAX report file including whole and normalized total brain tissue volume and normalized NAGM and NAWM volumes. In the second group of data analysis (Fig. 10, panel b), DPP Suite invokes Jim Masker to mask DWI and PWI maps with FLAIR segmented lesions which DPP Suite has previously saved and stored as total, single class (C1, C2, C3 and C4) and single lesion maps. In this way, it is possible to obtain ADC, CBF, CBV and MTT values in all types of lesions where, in addition, also volume and voxel number are measured. All of these data are stored in a comma separated values (csv) file.

Fig. 10
figure 10

Two diagrams describing DPP data analysis. Panel a: measurements of total, brain normal appearing grey matter (NAGM) and normal appearing white matter (NAWM) volume and voxel number, both as a whole and normalized according to skull size, and measurements of apparent diffusion coefficient (ADC), cerebral blood flow (CBF), cerebral blood volume (CBV) and mean transit time (MTT) in basal ganglia, NAGM and NAWM. Panel b: measurements of apparent diffusion coefficient (ADC), cerebral blood flow (CBF), cerebral blood volume (CBV) and mean transit time (MTT) in previously saved and stored FLAIR lesion categorized as total, class C1, C2, C3, C4 and single. norm = normalized; C1 = enhancing T2-weighted hyperintense and T1-weighted isointense; C2 = enhancing T2-weighted hyperintense and T1-weighted ipointense ; C3 = non-enhancing T2-weighted hyperintense and T1-weighted isointense; C4 = non-enhancing T2-weighted hyperintense and T1-weighted ipointense, black holes

Graphical User Interface

The Graphical user Interface (GUI) is shown in Fig. 11. The GUI keeps hidden all configuration parameters. Thus, the user is unable to modify the system parametrization and has a limited number of operations to perform. The configuration parameters are collected in a text configuration file. However, the configuration can be modified as needed by an expert operator, based on the needs of the study. These parameters are not shown in the GUI to facilitate the use of DPP suite by non-expert operators. The GUI configuration presents two sections: the first area in which all the process steps are singularly selectable and the second area where only three process macro steps can be activated. All these steps are performed automatically by DPP Suite, except lesion segmentation and classification which requires human intervention. The GUI presents also two directory browsing selection buttons for a more user friendly and flexible selection of input and output data directories. In order to control the process status and evolution, three status bars are also present in the lower part of the GUI window: a) a status bar defining the step under execution or the process execution status; b) a status-sub bar describing the sub-module under execution; c) a status-info bar indicating the patient number whose data are under analysis. The lower button is the step/process activation button, which starts the selected operations to be executed in an automated way by the DPP Suite.

Fig. 11
figure 11

A picture illustrating the Graphical User Interface (GUI)

Process safety and data security

All process steps, such as utilized parameters, the final results and the intermediate data are logged, saved and stored in the DPP Suite. This ensures complete environment preservation. For example, when an external tool is invoked by the DPP Suite both images and results and the tool’s standard output/error data log is read and saved. This approach allows post processing visual verification of e.g. co-registration (SPM or FSL FLIRT), tissue segmentation (SIENAX or FSL FIRST) or automatic detection of AIF-like voxels (Jim Perfusion tool). In Fig. 12 is presented an example of coregistration check performed using the Check Reg tool part of SPM module for functional MRI. Although processing parameters were tuned and optimized for every single step in DPP suite, in case of failure, configuration can be modified to correct processing errors. In this way, a clinician can check the results and make sure that they are accurate. Other security measures are integrated in DPP suite as well. For example, if a set of data represent both an output for the (n-1)th step and the input for the (n)th step, the entire data are copied before being modified by the (n)th step. Moreover, execution times and software version are preserved for every run of the suite (e.g. pre-processing data structure). This approach allows data reconstruction, process verification and software debugging, making it possible to reproduce every single step or the entire process and, thus, future validation of the DPP Suite.

Fig. 12
figure 12

A visual coregistration check example using Check Reg tool in SPM. Left to right are presented three panels showing the output of Check Reg in case of a T1 (lower images) to FLAIR (higher images) sequences coregistration. Three relevant points were selected in order to check coregistration visually

Results

Software metrics

In order to evaluate the DPP Suite performance, the hardware and software configurations are listed in Table 1. It is important to note that the entire suite is carried out by a Linux Virtual Machine running in a Windows based PC. The execution time for all modules in a single patient (woman; 33 year old; clinically and MRI inactive with Relapsing-Remitting MS; disease duration = 84 months; Expanded Disability Status Scale = 2.5) and in five patients (4 women and 1 men; mean age = 46.4 ± 3.7 years; 2 clinically and MRI active and 3 clinically and MRI inactive with Relapsing-Remitting MS; median disease duration = 1 months; median Expanded Disability Status Scale = 1.5) were evaluated to test the DPP Suite performance. This analysis resulted linear regarding the number of patients, while the execution time varied as a function of number of lesions of patients (Fig. 13). Typical execution time for a single patient can vary from 30 to 55 min depending on the patient characteristics (number of lesions and MRI quality). The key information derived from this analysis is that the most time-consuming process is the anonymization with dpp_dicomanon. Interestingly, the typical execution time of the entire suite analysis is relatively short (45 min), which seems to be acceptable for a research use. It is important to note that the DPP Suite is able to work with different equipment since it can run on all hardware supporting VMware player (https://www.vmware.com/) or compatible virtualization software.

Table 1 Test Bench Hardware and Software
Fig. 13
figure 13

Execution time benchmark in a single patient (yellow/left) and 5 patients (blue/right). Vertical axis shows the execution times in the hours:minutes:seconds format. Matlab R2010a, Xinapse Jim 6.0, FMRIB Software library (FSL) 4.1.9 and Statistical Parametric Mapping (SPM) 8 were the software systems employed. coreg_1 = registration of T1-weighted images; lesion_class = lesion classification; coreg_2 = registration of lesion masks; auto_segment = normal appearing tissue segmentation; coreg_3 = registration of tissue segmentation and quantitative MRI maps

Reproducibility of results

The repeatability of data coming from DPP Suite was tested with the analysis of lesion number and ADC, CBF, CBV and MTT values obtained from 38 patients with Relapsing-Remitting MS (31 women and 7 men; mean age = 45.8 ± 9.1 years; 8 clinically active and 30 clinically inactive; median disease duration = 9 months; median Expanded Disability Status Scale = 2.0) by two different readers (EG with 2 years of experience; EF with 15 years of experience) who performed a double blinded, independent semi-automatic lesion segmentation and classification of T2-weighted hyperintense lesions. After checking data for normality by using the Kolmogorov-Smirnov test, continuous variables were compared using Mann-Whitney U test or independent-samples t test when appropriate. In addition, kappa inter-observer agreement was calculated. Kappa values were interpreted according to the proposed standards of Landis and Koch: 0–0.20 (slight agreement); 0.21–0.40 (fair agreement); 0.41–0.60 (moderate agreement); 0.61–0.80 (substantial agreement); 0.81–1.00 (almost perfect agreement) [43]. Tables 2 and 3 show that there were not statistically significant differences between the two readers in the evaluation of lesion number and ADC, CBF, CBV and MTT values detected in the four classes of T2-weighted hyperintense lesions. Inter-observer agreement between the two readers was substantial for lesion number and ADC, CBF, CBV and MTT values in C1 lesion class and for lesion number and ADC and MTT values in C2 lesion class, almost perfect for all parameters assessed in C3 and C4 lesion classes, and only moderate for CBF and CBV values in C2 lesion class. These findings argue for a good reproducibility of results provided by DPP Suite. On the other hand, the discrepancies observed between the two readers could be mainly attributable to differences in how the users have outlined and categorized the lesions, even if the selection of co-registration (FSL FLIRT versus SPM) and decision of whether an automated analysis passes quality control or not could represent other potential explanations. The modest inter-observer agreement between the two readers found for CBF and CBV values in C2 lesion class could be also affected by the current limitations in discriminating between acute active and chronic active Gd-enhancing and T1-weighted hypointense T2-weighted hyperintense lesions [44]. In any case, such differences can be minimized based on having some type of training between the users (i.e. which option should be selected and how to assess the quality of the analysis).

Table 2 Number of focal lesions and ADC, CBF, CBV and MTT values in C1 and C2
Table 3 Number of focal lesions and ADC, CBF, CBV and MTT values in C3 and C4

Written informed consent was given by all patients before inclusion and the study design was approved by the Research Ethics Board of Azienda Ospedaliero-Universitaria di Ferrara (Italy) that is our Local Committee for Medical Ethics in Research

Discussion and conclusions

In this work we implemented an alternative system to analyze DWI and PWI abnormalities in various classes of lesions and in normal appearing brain tissues from patients with MS. The novelty of our approach is represented by a semi-automated integration of several previously validated software packages which are sequentially activated instead of separately utilized. This has the effect of significantly reducing human intervention that can be a source of bias and improper tissue and/or lesion classification. This approach makes the analysis quicker, simpler and provides reliable results. In fact, except for two checkpoints represented by lesion segmentation and classification, DPP Suite procedures offer a highly automatic elaboration of a large amount of MRI data in which the different algorithms are harmonically and hierarchically incorporated. The main objective of the development of our DPP Suite is to provide clinical researchers with a practical and reproducible tool to clarify the actual significance of DWI and PWI disturbances in MS. On the other hand, the coherent integration process obtained with the DPP Suite offers an intuitive time improvement compared to manually performing the individual steps. Finally, the DPP Suite provides a “best of breed” approach for the external tool choice and usage for each specific operation, a software modularity leading to a better management of method complexity and reusability in the setting of process safety. However, the evaluation of the DPP Suite in terms of usability, sustainability and maintainability by using different target users remains to be addressed.

References

  1. Balashov KE, Lindzen E. Acute demyelinating lesions with restricted diffusion in multiple sclerosis. Mult Scler. 2012;18:1745–53.

    Article  PubMed  PubMed Central  Google Scholar 

  2. Zeid NA, Pirko I, Erickson B, Weigand SD, Thomsen KM, Scheithauer B, et al. Diffusion-weighted imaging characteristics of biopsy-proven demyelinating brain lesions. Neurology. 2012;78:1655–62.

    Article  PubMed  PubMed Central  Google Scholar 

  3. Eisele P, Szabo K, Griebe M, Rossmanith C, Förster A, Hennerici M, et al. Reduced diffusion in a subset of acute MS lesions: a serial multiparametric MRI study. AJNR Am J Neuroradiol. 2012;33:1369–73.

    Article  PubMed  CAS  Google Scholar 

  4. Wuerfel J, Bellmann-Strobl J, Brunecker P, Aktas O, McFarland H, Villringer A, et al. Changes in cerebral perfusion precede plaque formation in multiple sclerosis: a longitudinal perfusion MRI study. Brain. 2004;127:111–9.

    Article  PubMed  Google Scholar 

  5. Ge Y, Law M, Johnson G, Herbert J, Babb JS, Mannon LJ, et al. Dynamic susceptibility contrast perfusion MR imaging of multiple sclerosis lesions: characterizing hemodynamic impairment and inflammatory activity. AJNR Am J Neuroradiol. 2005;26:1539–47.

    PubMed  Google Scholar 

  6. Peruzzo D, Castellaro M, Calabrese M, Veronese E, Rinaldi F, Bernardi V, et al. Heterogeneity of cortical lesions in multiple sclerosis: an MRI perfusion study. J Cereb Blood Flow Metab. 2013;33:457–63.

    Article  PubMed  PubMed Central  Google Scholar 

  7. Narayana PA, Zhou Y, Hasan KM, Datta S, Sun X, Wolinsky JS. Hypoperfusion and T1-hypointense lesions in white matter in multiple sclerosis. Mult Scler. 2014;20:365–73.

    Article  PubMed  PubMed Central  Google Scholar 

  8. Werring DJ, Brassat D, Droogan AG, Clark CA, Symms MR, Barker GJ, et al. The pathogenesis of lesions and normal-appearing white matter changes in multiple sclerosis: a serial diffusion MRI study. Brain. 2000;123:1667–76.

    Article  PubMed  Google Scholar 

  9. Filippi M, Iannucci G, Cercignani M, Rocca MA, Pratesi A, Comi G. A quantitative study of water diffusion in multiple sclerosis lesions and normal-appearing white matter using echo-planar imaging. Arch Neurol. 2000;57:1017–21.

    Article  PubMed  CAS  Google Scholar 

  10. Tavazzi E, Dwyer MG, Weinstock-Guttman B, Lema J, Bastianello S, Bergamaschi R, et al. Quantitative diffusion weighted imaging measures in patients with multiple sclerosis. Neuroimage. 2007;36:746–54.

    Article  PubMed  Google Scholar 

  11. Garaci FG, Colangelo V, Ludovici A, Gaudiello F, Marziali S, Centonze D, et al. A diffusion longitudinal MR imaging study in normal-appearing white matter in untreated relapsing-remitting multiple sclerosis. AJNR Am J Neuroradiol. 2007;28:475–8.

    PubMed  CAS  Google Scholar 

  12. Law M, Saindane AM, Ge Y, Babb JS, Johnson G, Mannon LJ, et al. Microvascular abnormality in relapsing remitting multiple sclerosis: perfusion MR imaging findings in normal-appearing white matter. Radiology. 2004;231:645–52.

    Article  PubMed  Google Scholar 

  13. Adhya S, Johnson G, Herbert J, Jaggi H, Babb JS, Grossman RI, et al. Pattern of hemodynamic impairment in multiple sclerosis: dynamic susceptibility contrast perfusion MR imaging at 3.0 T. Neuroimage. 2006;33:1029–35.

    Article  PubMed  PubMed Central  Google Scholar 

  14. Inglese M, Park S-J, Johnson G, Babb JS, Miles L, Jaggi H, et al. Deep gray matter perfusion in multiple sclerosis: dynamic susceptibility contrast perfusion magnetic resonance imaging at 3.0 T. Arch Neurol. 2007;64:196–202.

    Article  PubMed  Google Scholar 

  15. Zamboni P, Menegatti E, Weinstock-Guttman B, Dwyer MG, Schirda CV, Malagoni AM, et al. Hypoperfusion of brain parenchyma is associated with the severity of chronic cerebrospinal venous insufficiency in patients with multiple sclerosis: a cross-sectional preliminary report. BMC Med. 2011;9:22.

    Article  PubMed  PubMed Central  Google Scholar 

  16. Paling D, Thade Petersen E, Tozer DJ, Altmann DR, Wheeler-Kingshott CA, Kapoor R, et al. Cerebral arterial bolus arrival time is prolonged in multiple sclerosis and associated with disability. J Cereb Blood Flow Metab. 2014;34:34–42.

    Article  PubMed  PubMed Central  Google Scholar 

  17. Filippi M, Rocca MA. MR imaging of multiple sclerosis. Radiology. 2011;259:659–81.

    Article  PubMed  Google Scholar 

  18. Mortazavi D, Kouzani AZ, Soltanian-Zadeh H. Segmentation of multiple sclerosis lesions in MR images: a review. Neuroradiology. 2012;54:299–320.

    Article  PubMed  Google Scholar 

  19. Lladó X, Ganiler O, Oliver A, Martí R, Freixenet J, Valls L, et al. Automated detection of multiple sclerosis lesions in serial brain MRI. Neuroradiology. 2012;54:787–807.

    Article  PubMed  Google Scholar 

  20. Zivadinov R, Stosic M, Cox JL, Ramasamy DP, Dwyer MG. The place of conventional MRI and newly emerging MRI techniques in monitoring different aspects of treatment outcome. J Neurol. 2008;255:61–74.

    Article  PubMed  Google Scholar 

  21. Datta S, Sajja BR, He R, Wolinsky JS, Gupta RK, Narayana PA. Segmentation and quantification of black holes in multiple sclerosis. Neuroimage. 2006;29:467–74.

    Article  PubMed  PubMed Central  Google Scholar 

  22. Datta S, Sajja BR, He R, Gupta RK, Wolinsky JS, Narayana PA. Segmentation of gadolinium-enhanced lesions on MRI in multiple sclerosis. J Magn Reson Imaging. 2007;25:932–7.

    Article  PubMed  Google Scholar 

  23. Schmidt P, Gaser C, Arsic M, Buck D, Förschler A, Berthele A, et al. An automated tool for detection of FLAIR-hyperintense white-matter lesions in multiple sclerosis. Neuroimage. 2012;59:3774–83.

    Article  PubMed  Google Scholar 

  24. Vrenken H, Jenkinson M, Horsfield MA, Battaglini M, van Schijndel RA, Rostrup E, et al. Recommendations to improve imaging and analysis of brain lesion load and atrophy in longitudinal studies of multiple sclerosis. J Neurol. 2013;260:2458–71.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  25. Tavazzi E, Laganà MM, Bergsland N, Tortorella P, Pinardi G, Lunetta C, et al. Grey matter damage in progressive multiple sclerosis versus amyotrophic lateral sclerosis: a voxel-based morphometry MRI study. Neurol Sci. 2015;36:371–7.

    Article  PubMed  Google Scholar 

  26. Bergsland N, Laganà MM, Tavazzi E, Caffini M, Tortorella P, Baglio F, et al. Corticospinal tract integrity is related to primary motor cortex thinning in relapsing-remitting multiple sclerosis. Mult Scler. 2015. [Epub ahead of print].

  27. Lim J, Zein R. The digital imaging and communications in medicine (DICOM): description, structure and applications. In: Kamrani AK, Nasr EA, editors. Rapid Prototyping: Theory and practice. New York: Springer; 2006. p. 63–86.

    Chapter  Google Scholar 

  28. Larobina M, Murino L. Medical image file formats. J Digit Imaging. 2014;27:200–6.

    Article  PubMed  PubMed Central  Google Scholar 

  29. Ashburner J, Andersson JLR, Friston KJ. Image registration using a symmetric prior-in three-dimensions. Hum Brain Mapping. 2000;9:212–25.

    Article  CAS  Google Scholar 

  30. Jenkinson M, Smith S. A global optimisation method for robust affine registration of brain images. Med Image Anal. 2001;5:143–56.

    Article  PubMed  CAS  Google Scholar 

  31. Jenkinson M, Beckmann CF, Behrens TEJ, Woolrich MW, Smith SM. FSL. Neuroimage. 2012;62:782–90.

    Article  PubMed  Google Scholar 

  32. Gawne-Cain ML, O’Riordan JI, Thompson AJ, Moseley IF, Miller DH. Multiple sclerosis lesion detection in the brain: a comparison of fast fluid-attenuated inversion recovery and conventional T2-weighted dual spin echo. Neurology. 1997;49:364–70.

    Article  PubMed  CAS  Google Scholar 

  33. Hennig J, Nauerth A, Friedburg H. RARE imaging: a fast imaging method for clinical MR. Magn Reson Med. 1986;3:823–33.

    Article  PubMed  CAS  Google Scholar 

  34. Bermel RA, Sharma J, Tjoa CW, Puli SR, Bakshi R. A semiautomated measure of whole-brain atrophy in multiple sclerosis. J Neurol Sci. 2003;208:57–65.

    Article  PubMed  Google Scholar 

  35. Lublin FD, Reingold SC, Cohen JA, Cutter GR, Sørensen PS, Thompson AJ, et al. Defining the clinical course of multiple sclerosis: the 2013 revisions. Neurology. 2014;83:278–86.

    Article  PubMed  PubMed Central  Google Scholar 

  36. Ge Y. Multiple Sclerosis: The Role of MR Imaging. AJNR Am J Neuroradiol. 2006;27:1165–76.

    PubMed  CAS  Google Scholar 

  37. Zivadinov R, Bergsland N, Stosic M, Sharma J, Nussenbaum F, Durfee J, et al. Use of perfusion- and diffusion-weighted imaging in differential diagnosis of acute and chronic ischemic stroke and multiple sclerosis. Neurol Res. 2008;30:816–26.

    Article  PubMed  Google Scholar 

  38. Patenaude B, Smith SM, Kennedy DN, Jenkinson M. A Bayesian model of shape and appearance for subcortical brain segmentation. Neuroimage. 2011;56:907–22.

    Article  PubMed  PubMed Central  Google Scholar 

  39. Smith SM, Zhang Y, Jenkinson M, Chen J, Matthews PM, Federico A, et al. Accurate, robust, and automated longitudinal and cross-sectional brain change analysis. Neuroimage. 2002;17:479–89.

    Article  PubMed  Google Scholar 

  40. Østergaard L, Weisskoff RM, Chesler DA, Gyldensted C, Rosen BR. High resolution measurement of cerebral blood flow using intravascular tracer bolus passages. Part I. Mathematical approach andstatistical analysis. Magn Reson Med. 1996;36:715–25.

    Article  PubMed  Google Scholar 

  41. Stejskal EO, Tanner JE. Spin diffusion measurements: spin echoes in the presence of a time dependent field gradient. J Chem Phys. 1965;42:288.

    Article  CAS  Google Scholar 

  42. Le Bihan D, Breton E, Lallemand D, Grenier P, Cabanis E, Laval-Jeantet M. MR imaging of intravoxel incoherent motions: application to diffusion and perfusion in neurologic disorders. Radiology. 1986;161:401–7.

    Article  PubMed  Google Scholar 

  43. Landis JR, Koch GG. The measurement of observer agreement for categorical data. Biometrics. 1977;33:159–74.

    Article  PubMed  CAS  Google Scholar 

  44. Campbell Z, Sahm D, Donohue K, Jamison J, Davis M, Pellicano C, et al. Characterizing contrast-enhancing and re-enhancing lesions in multiple sclerosis. Neurology. 2012;78:1493–9.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Enrico Fainardi.

Additional information

Competing interests

The author(s) declare that they have no competing interests.

Authors’ contributions

AR designed and implemented the algorithm, participated in the study concept and design, in data acquisition and interpretation and in manuscript preparation, editing and review. MRuggeri participated in manuscript preparation and editing. ML participated in the study design, in data analysis and in manuscript editing and review. NB participated in the study design, in data analysis and in manuscript editing and review. EG contributed to data acquisition and interpretation. MRovaris contributed to the study design, in data analysis and in manuscript editing and review. EF conceived the study, participated in the study design, performed the statistical analysis, contributed to data acquisition and interpretation and in manuscript preparation, editing and review. All authors read and approved the final manuscript.

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Revenaz, A., Ruggeri, M., Laganà, M. et al. A semi-automated measuring system of brain diffusion and perfusion magnetic resonance imaging abnormalities in patients with multiple sclerosis based on the integration of coregistration and tissue segmentation procedures. BMC Med Imaging 16, 4 (2016). https://doi.org/10.1186/s12880-016-0108-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s12880-016-0108-1

Keywords