Skip to Content
  • Article
  • Open Access

14 October 2026

28 Pages

Semantic Segmentation of Brain Tumor MRI Images Using ResUNet, ResNet-50, and DenseNet121: A Comparative Study

and
1
Department of Computer Science, Madras Christian College (Autonomous), Chennai 600059, Tamil Nadu, India
2
Bharathi Women’s College (Autonomous), Chennai 600108, Tamil Nadu, India
*
Author to whom correspondence should be addressed.

Abstract

Brain tumor segmentation from Magnetic Resonance Imaging (MRI) is an important task in tumor analysis, treatment planning, and disease monitoring. However, manual delineation of tumor regions is time-consuming, subjective, and prone to inter-observer variability. This study presents a comparative evaluation of three deep learning-based 2D semantic segmentation models: ResUNet, ResNet-50, and DenseNet121, using the BraTS 2020 multimodal MRI dataset. The MRI images were preprocessed using rotation, histogram equalization, Gaussian blur, and intensity normalization. The three models were evaluated under a standardized experimental framework using identical training, validation, and test partitions. Segmentation performance was assessed for Whole Tumor (WT), Tumor Core (TC), and Enhancing Tumor (ET) using Accuracy, Dice coefficient, Intersection over Union (IoU), HD95, Precision, Sensitivity, and Specificity across three independent runs. In the slice-level evaluation, ResUNet achieved the highest mean Dice for WT (0.7936 ± 0.0573), TC (0.7309 ± 0.0984), and ET (0.6589 ± 0.0774), together with the highest mean IoU and precision across all three tumor regions. ResUNet achieved the lowest HD95 for WT, whereas ResNet-50 obtained the lowest HD95 for TC and ET and the highest sensitivity for WT. ResUNet achieved the highest sensitivity for TC and ET and the highest specificity across all three tumor regions. DenseNet121 demonstrated a comparatively lower segmentation performance, particularly for ET. Additionally, a separate patient-level evaluation was conducted using 100 MRI subjects who were not included in the original 20-patient dataset. Volumetric segmentation performance was assessed by combining 2D slice-wise predictions into complete MRI volumes. ResUNet achieved the highest patient-level Dice for WT (0.6569 ± 0.0204), TC (0.4598 ± 0.0236), and ET (0.4676 ± 0.0268). Furthermore, slice-level tumor areas were calculated in pixels from predicted and ground-truth segmentation masks to assess tumor area estimation. Overall, ResUNet demonstrated the strongest and most consistent segmentation performance across slice-level and patient-level evaluations.

1. Introduction

Brain tumors are among the most challenging neurological disorders owing to their heterogeneous appearance, irregular boundaries, and varying sizes and locations within the brain. Accurate delineation of tumor regions is essential for diagnosis, treatment planning, surgical intervention, and post-treatment monitoring. Magnetic Resonance Imaging (MRI) is the preferred imaging modality for brain tumor assessment because of its excellent soft-tissue contrast and its ability to provide complementary anatomical information through multimodal sequences, such as T1-weighted, T1-weighted contrast-enhanced (T1ce), T2-weighted, and fluid-attenuated inversion recovery (FLAIR) [1,2]. Despite its clinical importance, manual segmentation of brain tumors from MRI images remains labor-intensive, time-consuming, and subject to inter-observer variability, motivating the development of reliable automated segmentation techniques [1]. Recent advances in artificial intelligence, particularly deep learning, have significantly improved the accuracy and consistency of medical image segmentation by automatically learning discriminative features from multimodal MRI data [1,2].
Convolutional Neural Networks (CNNs) have become the foundation of modern medical image segmentation because of their ability to extract hierarchical spatial features directly from imaging data. Among CNN-based architectures, U-Net has emerged as one of the most successful models for biomedical image segmentation owing to its encoder–decoder architecture and skip connections that preserve both contextual and spatial information [3]. Subsequent improvements to U-Net have incorporated residual learning to enhance feature propagation, improve gradient flow, and facilitate the training of deeper networks [4]. Similarly, Residual Networks (ResNet) employ shortcut connections to overcome the vanishing-gradient problem, enabling the extraction of robust high-level features from complex medical images [5]. DenseNet121 promotes feature reuse through dense connectivity between layers, resulting in efficient parameter utilization and improved information flow [6]. These architectures have demonstrated promising performance in various medical image segmentation applications, including brain tumor analysis [1,2].
The Brain Tumor Segmentation (BraTS) challenge has established a widely accepted benchmark for evaluating automated brain tumor segmentation algorithms. The BraTS 2020 dataset provides multimodal MRI scans with expert-annotated ground-truth masks, enabling standardized evaluation of segmentation methods. Numerous studies have employed BraTS datasets to evaluate CNN-based, transformer-based, and hybrid deep learning models, demonstrating the importance of multimodal MRI for tumor localization and segmentation [1,2]. Recent surveys have further highlighted the growing adoption of advanced deep learning architectures for automated brain tumor segmentation, while identifying segmentation accuracy, robustness, and computational efficiency as continuing research challenges [1,2,7].
Although deep learning has significantly improved brain tumor segmentation from MRI images, variations in model architecture, preprocessing techniques, dataset preparation, and evaluation protocols can make direct comparison between segmentation approaches difficult. Therefore, evaluating different architectures under a common experimental framework is important for understanding their relative strengths and limitations. These considerations motivated the present study, which comparatively evaluated three deep learning-based 2D semantic segmentation models, namely, ResUNet, ResNet-50, and DenseNet121, for brain tumor MRI segmentation using the BraTS 2020 dataset under standardized experimental conditions.
In this study, MRI images were preprocessed using rotation, histogram equalization, Gaussian blur, and intensity normalization. ResUNet, ResNet-50, and DenseNet121 were evaluated using identical training, validation, and test partitions to ensure a consistent comparison. Segmentation performance was assessed for the Whole Tumor (WT), Tumor Core (TC), and Enhancing Tumor (ET) regions using Accuracy, Dice coefficient, Intersection over Union (IoU), 95th percentile Hausdorff distance (HD95), precision, sensitivity, and specificity. To assess the stability of the model performance, three independent runs were performed, and the region-specific results were summarized using mean ± standard deviation (SD).
Additionally, an independent patient-level volumetric segmentation evaluation was conducted using 100 MRI subjects, each comprising 155 MRI slices. Because the evaluated models employ 2D architectures, individual slice-wise segmentation predictions were aggregated to reconstruct complete volumetric segmentation masks for patient-level evaluation. Furthermore, slice-level tumor areas were calculated in pixels from the predicted and ground-truth segmentation masks to examine tumor area estimation. The comparative evaluation examined the relative performance of the three 2D segmentation models at both the slice and patient levels using the BraTS 2020 dataset.
The remainder of this paper is organized as follows. Section 2 reviews the relevant literature. Section 3 describes the materials and methods, including the dataset, preprocessing techniques, deep learning models, experimental framework, and evaluation metrics. Section 4 presents the experimental results and discussion. Finally, Section 5 concludes the study and outlines the potential directions for future research.

3. Materials and Methods

This section describes the materials and methods adopted for the semantic segmentation of brain tumor Magnetic Resonance Imaging (MRI) images. The proposed framework consists of five major stages: dataset acquisition, image preprocessing, data preparation, deep learning-based semantic segmentation, and performance evaluation. Initially, multimodal MRI images were obtained from the BraTS 2020 dataset. The acquired images were preprocessed to ensure consistency before model training. Subsequently, the processed data were prepared according to the experimental settings and used to train the ResUNet, ResNet-50, and DenseNet121 models. Finally, the trained models were assessed using quantitative performance metrics to determine their effectiveness in segmenting brain tumor regions. An additional independent patient-level evaluation was conducted using 100 BraTS 2020 subjects to provide a consistent comparison across the three architectures. The overall workflow adopted in this study is illustrated in Figure 1.
Figure 1. Overall workflow of the proposed methodology for brain tumor MRI image segmentation.

3.1. Dataset

An experimental study was conducted using the Brain Tumor Segmentation (BraTS) 2020 dataset, which serves as a benchmark dataset for evaluating automated brain tumor segmentation algorithms. The dataset comprises multimodal Magnetic Resonance Imaging (MRI) scans and expert-annotated segmentation masks, enabling supervised learning and objective performance evaluation. The standardized nature of the dataset supports the evaluation of DL-based semantic segmentation models.
Each patient record contains four MRI modalities: T1-weighted (T1), T1-weighted contrast-enhanced (T1ce), T2-weighted (T2), and fluid-attenuated inversion recovery (FLAIR) images. These modalities provide complementary information regarding the anatomical structure and pathological characteristics of brain tumors. T1 images describe normal brain anatomy, T1ce provides enhanced visualization of contrast-enhancing tumor regions, T2 highlights abnormal tissues, and FLAIR suppresses cerebrospinal fluid signals to improve the visualization of edema and infiltrative tumor regions. The corresponding ground-truth segmentation masks supplied with the dataset were used for the supervised model development and evaluation. Representative multimodal MRI images from the BraTS 2020 dataset are shown in Figure 2.
Figure 2. Representative multimodal MRI images from the BraTS 2020 dataset showing T1, T1ce, T2, FLAIR, and the corresponding ground truth segmentation mask. The purple background represents non-tumor regions, while the colored areas indicate the annotated tumor regions.

3.2. Image Preprocessing

The BraTS 2020 MRI images were subjected to a standardized preprocessing pipeline before model training. Three complementary MRI modalities—namely, FLAIR, T1-weighted contrast-enhanced (T1ce), and T2-weighted images—were used as the input channels. To ensure consistency across the comparative experiments, the same preprocessing sequence was applied to the data used for ResUNet, ResNet-50, and DenseNet121. The preprocessing operations were performed sequentially as rotation, histogram equalization, Gaussian blur, and intensity normalization. After preprocessing, the three modalities were combined to form an input representation of 240 × 240 × 3. The preprocessing workflow is illustrated in Figure 3.
Figure 3. Image preprocessing workflow adopted for the BraTS 2020 MRI dataset.

3.2.1. Rotation

Rotation standardizes the orientation of MRI images before model training. This operation reduces orientation-related variations within the dataset and enables deep learning models to learn meaningful spatial features more effectively. In this study, a 10° rotation was applied consistently to the MRI images as the first step of the preprocessing pipeline.

3.2.2. Histogram Equalization

Histogram equalization improves image contrast by redistributing pixel intensity values over a wider range. This enhancement increases the visibility of tumor regions and facilitates better feature extraction during model training.

3.2.3. Gaussian Blur

Gaussian blur reduces image noise while preserving important structural information. This preprocessing step produces smoother images and contributes to more stable feature extraction during training. In this study, a 3 × 3 Gaussian kernel was consistently applied to the MRI images.

3.2.4. Intensity Normalization

Intensity normalization standardizes the pixel intensity values of MRI images to reduce variations caused by different acquisition conditions. This process improves data consistency, facilitates model convergence, and supports stable segmentation performance. In this study, the pixel intensity values were normalized to the range [0, 1]. Figure 4 illustrates the representative outputs of the preprocessing techniques applied to an MRI image. The same preprocessing sequence was consistently applied to the three MRI modalities—FLAIR, T1ce, and T2—used as input to ResUNet, ResNet-50, and DenseNet121.
Figure 4. Representative outputs of the image preprocessing techniques applied to a FLAIR MRI image from the BraTS 2020 dataset.

3.3. Data Preparation

Following preprocessing, the MRI images and their corresponding groundtruth segmentation masks were organized for supervised multiclass semantic segmentation. The FLAIR, T1ce, and T2 modalities were combined to form three-channel MRI inputs of size 240 × 240 × 3 pixels. The original BraTS tumor label 4 was remapped to 3, resulting in four segmentation classes: 0 (background), 1 (necrotic/non-enhancing tumor core), 2 (peritumoral edema), and 3 (enhancing tumors).
A standardized subset comprising 20 patient volumes from the BraTS 2020 dataset was used in the experiments. Each volume contained 155 axial slices, resulting in a total of 3100 MRI slices. The same preprocessed dataset was used for ResUNet, ResNet-50, and DenseNet121 to ensure a consistent basis for comparison.
The dataset was partitioned using the train_test_split procedure with a fixed random state of 42. Initially, 70% of the data were assigned to the training set, and the remaining 30% formed a temporary set. The temporary set was subsequently divided equally into validation and testing sets. Thus, the final dataset consisted of 2170 training slices (70%), 465 validation slices (15%), and 465 test slices (15%). The same training, validation, and testing subsets were used for all three models.
In the original experimental setup, the partitioning was performed at the slice level rather than at the patient level; therefore, slices originating from the same patient volume may occur across the training, validation, and testing subsets. This is acknowledged as a limitation of the original experimental design. The distribution of MRI slices across the training, validation, and test sets is illustrated in Figure 5.
Figure 5. Data distribution of the training, validation, and test sets.
To address the potential patient-level data leakage associated with the original slice-level partitioning, an additional independent patient-level evaluation was conducted using 100 BraTS 2020 subjects excluded from the original 20-patient experimental cohort. The previously trained ResUNet, ResNet-50, and DenseNet121 models were evaluated without retraining. The same preprocessing procedures and three MRI modalities (FLAIR, T1ce, and T2) were maintained. For each patient, all 155 axial slices were processed, and the predicted segmentation masks were reconstructed into three-dimensional volumes. The segmentation results were evaluated using consistent definitions of the whole tumor (WT: classes 1, 2, and 3), tumor core (TC: classes 1 and 3), and enhancing tumor (ET: class 3). This additional evaluation was designed to provide a common patient-level basis for comparing the three architectures.

3.4. Deep Learning Models

To investigate the effectiveness of different deep learning approaches for brain tumor MRI segmentation, three semantic segmentation models—ResUNet, ResNet-50, and DenseNet121—were implemented and evaluated using the BraTS 2020 dataset. All three models were trained and evaluated using the same preprocessed MRI data, identical training, validation, and test subsets, and common experimental settings to provide a consistent basis for comparison. The models received three-channel MRI inputs comprising FLAIR, T1ce, and T2 modalities and generated four-class segmentation outputs representing the background and three tumor tissue classes. Although the experimental conditions were standardized, the models retained their respective architectural characteristics, enabling their segmentation performance to be compared using the same data and evaluation framework.

3.4.1. ResUNet

ResUNet combines the encoder–decoder structure of U-Net with residual learning to improve feature extraction and gradient propagation. The residual connections facilitate the learning of deeper representations while preserving the spatial information required for accurate pixel-wise segmentation of brain tumor regions. In this study, the ResUNet model received preprocessed 240 × 240 × 3 MRI inputs comprising FLAIR, T1ce, and T2 modalities. The network was configured for four-class semantic segmentation, representing the background (class 0), necrotic/non-enhancing tumor core (class 1), peritumoral edema (class 2), and enhancing tumor (class 3). A softmax activation function was used in the output layer to obtain class-wise segmentation probabilities.
For training, a cross-entropy loss was used for multiclass semantic segmentation. The model was optimized using the Adam optimizer with a learning rate of 1 × 10−4, a batch size of 1, and five training epochs. To assess the model stability, three independent runs were performed using seeds 42, 123, and 2026. The same preprocessed dataset and identical training, validation, and test partitions were maintained across all runs and the three models to ensure a consistent comparison. The architecture of the ResUNet model used in this study is illustrated in Figure 6.
Figure 6. ResUNet architecture used for semantic segmentation of brain tumor MRI images.

3.4.2. ResNet-50

ResNet-50 employs residual shortcut connections that facilitate the training of deep neural networks by improving gradient propagation and reducing the vanishing gradient problem. In this study, ResNet-50 was employed as the encoder backbone of a U-Net-based semantic segmentation architecture for brain tumor segmentation. The model received preprocessed MRI inputs of size 240 × 240 × 3, comprising the FLAIR, T1ce, and T2 modalities. For compatibility with the encoder–decoder architecture, the input was internally resized to 256 × 256 × 3 using bilinear interpolation and processed through the network. The resulting four-class segmentation output was subsequently resized to 240 × 240 × 4.
The network generated four-class segmentation maps representing the background (class 0), necrotic/non-enhancing tumor core (class 1), peritumoral edema (class 2), and enhancing tumor (class 3), using softmax activation in the output layer. Cross-entropy loss was used for multiclass semantic segmentation. The model was optimized using the Adam optimizer with a learning rate of 1 × 10−4, a batch size of 1, and five training epochs. To assess model stability, three independent runs were performed using random seeds 42, 123, and 2026. The same preprocessed dataset and identical training, validation, and test partitions were maintained across all runs and across the three models to ensure a consistent comparison. The architecture of the ResNet-based U-Net segmentation model used in this study is shown in Figure 7.
Figure 7. ResNet-50-based U-Net architecture used for semantic segmentation of brain tumor MRI images.

3.4.3. DenseNet121

DenseNet121 employs dense connectivity, in which each layer receives feature maps from the preceding layers, promoting feature reuse and improving gradient propagation. In this study, DenseNet121 was used for the multiclass semantic segmentation of brain tumor MRI images. The model received the same preprocessed 240 × 240 × 3 MRI inputs comprising the FLAIR, T1ce, and T2 modalities. The network was configured for four-class segmentation, representing the background (class 0), necrotic/non-enhancing tumor core (class 1), peritumoral edema (class 2), and enhancing tumor (class 3), with a softmax activation function in the output layer.
For training, cross-entropy loss was used for multiclass semantic segmentation. The model was trained using the standardized experimental framework adopted for the comparative analysis, with a batch size of 1 and five training epochs. The same preprocessed dataset and identical 70% training, 15% validation, and 15% test partitions were maintained to ensure consistency with the ResUNet and ResNet-50 experiments. The architecture of the DenseNet121 segmentation model used in this study is shown in Figure 8.
Figure 8. DenseNet121 architecture used for semantic segmentation of brain tumor MRI images.

3.4.4. Training Configuration

To ensure a consistent and reliable comparison, ResUNet, ResNet-50, and DenseNet121 were trained within a standardized experimental framework using the same preprocessed dataset and identical training, validation, and test partitions. Cross-entropy loss was used for the multiclass semantic segmentation. All three models were optimized using the Adam optimizer with a learning rate of 1 × 10−4, a batch size of 1, and five training epochs. To assess the stability and reproducibility of the model performance, three independent runs were performed for each model using random seeds 42, 123, and 2026.
The same evaluation protocol was applied to all the models. Segmentation performance was assessed for the Whole Tumor (WT), Tumor Core (TC), and Enhancing Tumor (ET) regions using the Dice coefficient, Intersection over Union (IoU), 95th percentile Hausdorff distance (HD95), precision, sensitivity, and specificity. The results of the three independent runs were summarized as mean ± standard deviation (SD) to provide a consistent comparison of model performance.

3.5. Performance Evaluation Metrics

The segmentation performances of ResUNet, ResNet-50, and DenseNet121 were evaluated using a common set of quantitative metrics to ensure consistent comparison. The evaluation was performed for three clinically relevant BraTS tumor regions: Whole Tumor (WT), Tumor Core (TC), and Enhancing Tumor (ET). The background class was excluded from the region-wise evaluation of the images. WT was defined using classes 1, 2, and 3; TC using classes 1 and 3; and ET using class 3.
Overall pixel-wise accuracy was also calculated as an additional performance measure. However, because background pixels constitute a large proportion of brain MRI images, accuracy alone may provide an overly optimistic assessment of segmentation performance. Therefore, the comparative analysis primarily emphasizes region-specific segmentation metrics, including the Dice coefficient, IoU, HD95, precision, sensitivity, and specificity for WT, TC, and ET.
The principal evaluation metrics were the Dice coefficient, Intersection over Union (IoU/Jaccard index), 95th percentile Hausdorff distance (HD95), precision, sensitivity, and specificity. Accuracy was additionally calculated during model evaluation. For each model, three independent runs were performed, and the region-wise quantitative results were summarized as mean ± standard deviation (SD). Here, TP, TN, FP, and FN denote true positive, true negative, false positive, and false negative pixels, respectively.

3.5.1. Accuracy

Accuracy measures the proportion of correctly classified pixels among all evaluated pixels:
Accuracy = TP + TN TP + TN + FP + FN
Because brain MRI segmentation contains a large proportion of background pixels, accuracy alone may provide an overly optimistic assessment of the segmentation performance. Therefore, region-wise Dice, IoU, HD95, precision, sensitivity, and specificity measures were used as the primary metrics for comparing the three models.

3.5.2. Dice Coefficient

The Dice coefficient measures the spatial overlap between the predicted tumor region and the corresponding ground-truth region.
Dice = 2 TP 2 TP + FP + FN

3.5.3. Precision

Precision measures the proportion of predicted tumor pixels that are correctly classified.
Precision = TP TP + FP

3.5.4. Sensitivity (Recall)

Sensitivity, also known as recall, measures the ability of the model to correctly identify pixels belonging to the tumor region. A higher sensitivity indicates that a greater proportion of the actual tumor region has been correctly identified.
Sensitivity = TP TP + FN

3.5.5. Specificity

Specificity measures the ability of the model to correctly identify non-tumor pixels. Higher specificity indicates that a greater proportion of non-tumor pixels has been correctly identified.
Specificity = TN TN + FP

3.5.6. Intersection over Union (IoU)

IoU, also referred to as the Jaccard index, measures the intersection between the predicted and ground truth tumor regions relative to their union:
IoU = TP TP + FP + FN

3.5.7. 95th Percentile Hausdorff Distance (HD95)

The Hausdorff distance HD95 evaluates the spatial boundary agreement between the predicted segmentation and ground truth mask. This represents the 95th percentile of the bidirectional distances between the boundaries of the predicted and reference regions. In contrast to overlap-based metrics, lower HD95 values indicate better segmentation performance, as they represent smaller boundary discrepancies.

3.5.8. Loss

Cross-entropy loss was used for multiclass semantic segmentation. For a four-class segmentation problem, the cross-entropy loss can be expressed as
L CE = − 1 N ∑ i = 1 N ∑ c = 1 C y i , c log y ^ i , c
where N represents the number of pixels, C represents the number of classes, yi,c denotes the ground truth class representation for pixel i, and ŷi,c represents the predicted probability for class c. The loss was used to optimize the segmentation models during training, whereas region-wise evaluation metrics were used for the principal cross-model performance comparison.
Finally, the same WT, TC, and ET definitions and evaluation procedure were applied to ResUNet, ResNet-50, and DenseNet121, providing a consistent basis for quantitative comparison across the three architectures.
For additional independent patient-level evaluation, the same 100 BraTS 2020 subjects were used to evaluate the three previously trained runs of ResUNet, ResNet-50, and DenseNet121 without retraining. For each patient, predictions from all 155 axial slices were reconstructed into a three-dimensional segmentation volume. The predicted and ground truth volumes were evaluated using identical definitions of WT (classes 1, 2, and 3), TC (classes 1 and 3), and ET (class 3). The same region-specific evaluation metrics were applied to all three architecture types. Patient-level metrics were aggregated within each run, and the results across the three runs were summarized as mean ± standard deviation (SD), providing a consistent basis for independent patient-level comparisons.

4. Results and Discussion

This section presents the experimental results obtained using ResUNet, ResNet-50, and DenseNet121 for the semantic segmentation of brain tumor MRI images. The three models were evaluated using the preprocessed BraTS 2020 dataset under the experimental settings described in Section 3. Segmentation performance was quantitatively assessed for the whole tumor (WT), tumor core (TC), and enhancing tumor (ET) regions using the Dice coefficient, Intersection over Union (IoU), 95th percentile Hausdorff distance (HD95), precision, sensitivity, and specificity. In addition to the original experimental results, an independent patient-level evaluation involving 100 BraTS 2020 subjects was conducted to provide a consistent comparison across the three models. The patient-level results are reported as mean ± standard deviation (SD) across three independent runs. Qualitative segmentation results were also examined to assess the ability of the models to delineate different tumor regions.

4.1. Quantitative Performance Evaluation

This section presents the quantitative segmentation performance of three 2D deep learning models, namely ResUNet, ResNet-50, and DenseNet121, using the BraTS 2020 dataset. The evaluation is organized into two parts: slice-level analysis using 465 test slices and an independent patient-level evaluation involving 100 MRI subjects. Both evaluations assess segmentation performance for the Whole Tumor (WT), Tumor Core (TC), and Enhancing Tumor (ET) regions using standard quantitative metrics. In the patient-level evaluation, volumetric segmentation performance was assessed by aggregating 2D slice-wise predictions across complete MRI volumes. The results are presented separately to provide a comprehensive comparison of the three architectures at both the slice and patient levels. Additional comparative results for the three models, including slice-level accuracy and independent patient-level Dice coefficient and IoU, are presented in Appendix A.

4.1.1. Slice-Level Quantitative Performance Evaluation

Table 1 presents the quantitative segmentation performances of ResUNet, ResNet-50, and DenseNet121 for the WT, TC, and ET regions. The results demonstrate clear differences among the three architectures in the standardized experimental framework.
Table 1. Quantitative comparison of ResUNet, ResNet-50, and DenseNet121 using overall pixel-wise accuracy and region-specific segmentation metrics for WT, TC, and ET (mean ± SD across three independent runs). Bold values indicate the best-performing model for each evaluation metric.
Overall, the four-class pixel-wise accuracy and region-specific binary accuracy were evaluated using the same 465 test slices across three independent runs. As shown in Table 1, ResUNet achieved the highest overall accuracy (0.9940 ± 0.0018), followed by ResNet-50 (0.9898 ± 0.0021) and DenseNet121 (0.9848 ± 0.0046). ResUNet also achieved the highest binary accuracies for WT, TC, and ET. However, the accuracy may be influenced by the large proportion of background and non-tumor pixels. Therefore, greater emphasis was placed on the Dice, IoU, HD95, precision, sensitivity, and specificity when assessing the segmentation performance.
ResUNet achieved the highest mean Dice coefficient for all three tumor regions, with 0.7936 ± 0.0573 for WT, 0.7309 ± 0.0984 for TC, and 0.6589 ± 0.0774 for the ET. ResNet-50 achieved Dice coefficients of 0.6928 ± 0.0323, 0.6537 ± 0.1114, and 0.5338 ± 0.1436 for the WT, TC, and ET classes, respectively. DenseNet121 obtained comparatively lower Dice coefficients of 0.6055 ± 0.0767, 0.4648 ± 0.1262, and 0.2863 ± 0.0892.
A similar trend was observed for IoU, where ResUNet achieved the highest mean values for WT (0.6602 ± 0.0773), TC (0.5825 ± 0.1273), and ET (0.4947 ± 0.0892). ResNet-50 obtained intermediate IoU values, whereas DenseNet121 produced the lowest values across the three tumor regions.
For boundary-distance performance, ResUNet achieved the lowest HD95 for WT (5.2226 ± 2.4671), whereas ResNet-50 achieved lower HD95 values for TC (8.9014 ± 4.3323) and ET (6.9931 ± 5.0874) than the other models. Therefore, although ResUNet demonstrated the strongest overall region overlap performance, ResNet-50 showed better boundary-distance performance for TC and ET.
The precision, sensitivity, and specificity results provide further insight into the model behavior. ResUNet achieved the highest mean precision across WT, TC, and ET and maintained high sensitivity and specificity. ResNet-50 demonstrated particularly high WT sensitivity (0.9765 ± 0.0083), indicating strong detection of the whole tumor region. DenseNet121 generally exhibited lower Dice, IoU, and precision values, particularly for the ET region.
Overall, the quantitative results indicate that ResUNet provided the strongest and most consistent overlap-based segmentation performance, while ResNet-50 showed competitive sensitivity and favorable HD95 performance for TC and ET. DenseNet121 showed a comparatively lower segmentation performance under the standardized experimental conditions.

4.1.2. Patient-Level Quantitative Performance Evaluation

To further compare the performance of the three architectures, a separate evaluation was conducted using 100 BraTS 2020 patient volumes. Previously trained ResUNet, ResNet-50, and DenseNet121 models were evaluated on the same patient cohort using consistent WT, TC, and ET definitions. The evaluation results are summarized across three independent runs and are presented in Table 2. This analysis provides a patient-level comparison that is separate from the original slice-level results presented in Table 1.
Table 2. Independent patient-level quantitative comparison of ResUNet, ResNet-50, and DenseNet121 on 100 BraTS 2020 subjects (mean ± SD across three independent runs). Bold values indicate the best-performing model for each evaluation metric.

4.2. Qualitative Segmentation Results

In addition to the quantitative evaluation, the qualitative segmentation results were visually examined to assess the ability of ResUNet, ResNet-50, and DenseNet121 to delineate the Whole Tumor (WT), Tumor Core (TC), and Enhancing Tumor (ET) regions. Representative preprocessed FLAIR images, corresponding ground truth masks, and predicted segmentation masks were compared to examine the spatial agreement between the reference annotations and the model predictions. The qualitative analysis is presented in two parts: slice-level segmentation results for the individual models and patient-level comparative results across the three model architectures.

4.2.1. Slice-Level Qualitative Segmentation Results

Figure 9 shows representative qualitative results obtained using ResUNet. The predicted masks generally show good correspondence with the ground-truth annotations across the three tumor regions. Figure 10 shows the corresponding qualitative results for ResNet-50. ResNet-50 identified the major tumor regions in several representative cases; however, variations in the agreement between the predicted and ground truth masks were observed, particularly for TC and ET. Figure 11 shows the qualitative results obtained using DenseNet121.
Figure 9. Representative qualitative segmentation results obtained using ResUNet, showing the input MRI image, ground-truth segmentation, and predicted segmentation with WT, TC, and ET Dice scores. The segmentation colors represent background (purple), necrotic/non-enhancing tumor (blue), edema (green), and enhancing tumor (yellow).
Figure 10. Representative qualitative segmentation results obtained using ResNet-50, showing the input MRI image, ground-truth segmentation, and predicted segmentation with WT, TC, and ET Dice scores. The segmentation colors represent background (purple), necrotic/non-enhancing tumor (blue), edema (green), and enhancing tumor (yellow).
Figure 11. Representative qualitative segmentation results obtained using DenseNet121, showing the preprocessed FLAIR MRI slice, ground-truth segmentation, and predicted segmentation with WT, TC, and ET Dice scores. The segmentation colors represent background (purple), necrotic/non-enhancing tumor (blue), edema (green), and enhancing tumor (yellow).
DenseNet121 identified the major tumor regions in several cases; however, greater differences between the predicted and ground-truth masks were observed, particularly for the smaller TC and ET regions. These qualitative observations are consistent with the quantitative results presented in Table 1.
The ResUNet achieved the highest mean Dice and IoU values for WT, TC, and ET, indicating a stronger overall overlap with the reference segmentations. ResNet-50 showed intermediate overlap performance, whereas DenseNet121 demonstrated a comparatively lower performance, particularly for ET.

4.2.2. Patient-Level Qualitative Segmentation Results

Figure 12 presents a patient-level qualitative comparison of ResUNet, ResNet-50, and DenseNet121 for five representative patients from the BraTS 2020 dataset. ResUNet and ResNet-50 generally demonstrate closer spatial agreement with the ground-truth masks, preserving the irregular tumor boundaries and internal regions more effectively. In contrast, DenseNet121 produces smoother and more compact segmentation masks, with visible differences in tumor boundaries and internal structures. The WT, TC, and ET Dice scores displayed for each patient further illustrate variations in segmentation performance across the three architectures. These observations provide additional qualitative insights into the comparative performance of the models.
Figure 12. Patient-level qualitative comparison of brain tumor segmentation results obtained using ResUNet, ResNet-50, and DenseNet121 for five representative BraTS 2020 patients. Each row presents the preprocessed FLAIR image, ground-truth segmentation, and predicted segmentation masks from the three models, along with the corresponding whole tumor (WT), tumor core (TC), and enhancing tumor (ET) Dice scores.

4.3. Training and Validation Performance

The training and validation performance of ResUNet, ResNet-50, and DenseNet121 was examined across three independent runs to assess training behavior and stability. Figure 13, Figure 14 and Figure 15 present the WT, TC, and ET Dice learning curves for the three models, while Figure 16, Figure 17 and Figure 18 present the corresponding training and validation loss curves.
Figure 13. Training and validation Dice learning curves for WT, TC, and ET across three independent runs of ResUNet.
Figure 14. Training and validation Dice learning curves for WT, TC, and ET across three independent runs of ResNet-50.
Figure 15. Training and validation Dice learning curves for WT, TC, and ET across three independent runs of DenseNet121.
Figure 16. Training and validation loss curves across three independent runs of ResUNet.
Figure 17. Training and validation loss curves across three independent runs of ResNet-50.
Figure 18. Training and validation loss curves across three independent runs of DenseNet121.
For ResUNet, the training Dice values consistently increased across the five epochs for WT, TC, and ET. The validation Dice values showed greater variation across the three runs, particularly for the TC and ET. The training loss decreased substantially during the initial epochs and remained low thereafter, whereas the validation loss exhibited run-to-run variability.
ResNet-50 also demonstrated increasing training Dice values across the five epochs for all the three tumor regions. Greater fluctuations were observed in the validation Dice curves, particularly for the TC and ET. The training loss decreased considerably after the first epoch and continued to decline, whereas the validation loss exhibited greater variation across the runs.
For DenseNet121, the training Dice values progressively increased across the epochs for WT, TC, and ET. However, the validation Dice curves exhibited a noticeable variability among the three runs. The training loss decreased markedly during the first two epochs and continued to decline, whereas the validation loss fluctuated across epochs and runs.
Overall, the learning curves demonstrate that all three models showed progressive learning during training, whereas the variability observed in the validation curves indicates differences in validation performance across the independent runs. This variability is also reflected in the mean ± SD results reported in Table 1 and supports the use of multiple independent runs rather than relying on a single, training run.

4.4. Slice-Level Tumor Area Analysis

To complement the segmentation metrics, a slice-level tumor area analysis was performed using three representative test cases. The analysis considered the whole tumor (WT), tumor core (TC), and enhancing tumor (ET) regions. For each region, the tumor area was determined by counting the number of pixels belonging to the corresponding region in the ground truth and predicted segmentation masks. The predicted areas obtained using ResUNet, ResNet-50, and DenseNet121 were then compared with the corresponding ground truth areas. The slice-level tumor area values for the three representative test cases are presented in Table 3.
Table 3. Slice-Level Tumor Area Analysis for Representative Test Cases.
As shown in Table 3, the ResUNet generally produced tumor area estimates closer to the ground truth values across representative cases, particularly for the WT and TC regions. ResNet-50 also provided comparable estimates for some regions, whereas DenseNet121 showed larger deviations in several cases. In the challenging Training_011 case, DenseNet121 did not identify the TC and ET regions, whereas ResUNet and ResNet-50 retained predictions for these regions. These findings complement the Dice, IoU, and HD95 results by providing an additional assessment of tumor extent estimation in individual MRI slices. Since the analysis is based on individual 2D slices, the reported values represent the slice-level tumor area rather than the three-dimensional tumor volume.

4.5. Comparative Discussion

The comparative evaluation demonstrates clear differences in the segmentation performance of the three deep learning-based 2D semantic segmentation models, namely, ResUNet, ResNet-50, and DenseNet121, across the WT, TC, and ET regions.
The overall pixel-wise accuracy was also evaluated, with ResUNet showing the strongest overall performance; however, greater emphasis was placed on region-specific segmentation metrics because of the predominance of background pixels.
Under the standardized experimental framework, ResUNet achieved the highest mean Dice coefficients for WT (0.7936 ± 0.0573), TC (0.7309 ± 0.0984), and ET (0.6589 ± 0.0774), together with the highest mean IoU and precision values across all three tumor regions. These results indicate that ResUNet provided the most consistent overall agreement between the predicted and ground truth segmentation masks.
ResUNet also achieved the lowest HD95 for WT (5.2226 ± 2.4671), indicating better boundary agreement for the whole tumor. However, ResNet-50 obtained lower HD95 values of 8.9014 ± 4.3323 and 6.9931 ± 5.0874 for TC and ET, respectively.
ResNet-50 also achieved the highest WT sensitivity (0.9765 ± 0.0083), whereas ResUNet achieved higher sensitivity for TC (0.9389 ± 0.0470) and ET (0.8711 ± 0.0536). ResUNet further obtained the highest specificity across WT, TC, and ET.
DenseNet121 showed comparatively lower Dice and IoU values across all three tumor regions, with the largest performance reduction observed for the ET region. The qualitative results and slice-level tumor area analysis also demonstrated greater variation in the predictions. In the representative Training_011 case, DenseNet121 failed to identify the TC and ET regions, whereas ResUNet and ResNet-50 retained the predictions for these regions.
An independent patient-level volumetric segmentation evaluation was conducted using 100 MRI subjects, with each subject comprising 155 MRI slices. Because the three evaluated models were based on 2D architectures, segmentation predictions were generated for individual MRI slices and subsequently aggregated to reconstruct complete volumetric segmentation masks for each patient. The resulting patient-level volumetric segmentations were evaluated against the corresponding ground-truth masks using the Dice coefficient for WT, TC, and ET. ResUNet achieved the highest mean patient-level Dice coefficients for WT (0.6569 ± 0.0204), TC (0.4598 ± 0.0236), and ET (0.4676 ± 0.0268), outperforming ResNet-50 and DenseNet121 across all three tumor regions.
Although the patient-level Dice coefficients were numerically lower than the slice-level results obtained under a separate evaluation setup, ResUNet maintained the highest relative performance across all three tumor regions in both evaluations. These findings demonstrate the importance of assessing 2D segmentation models using complete patient MRI volumes, in addition to individual slices.
Overall, the quantitative, qualitative, slice-level tumor area, and independent patient-level volumetric segmentation analyses indicated that ResUNet provided the strongest overall segmentation performance among the three evaluated 2D models. ResNet-50 demonstrated competitive sensitivity and boundary accuracy for specific tumor regions, while DenseNet121 showed comparatively lower and less consistent performance under the same experimental conditions.

5. Conclusions

This study presents a comparative evaluation of three deep learning-based 2D semantic segmentation models—ResUNet, ResNet-50, and DenseNet121—for brain tumor MRI images using the BraTS 2020 dataset. The models were evaluated under a standardized experimental framework using the same preprocessed dataset and identical training, validation, and test partitions. Slice-level segmentation performance was assessed for the Whole tumor (WT), Tumor core (TC), and Enhancing tumor (ET) regions using accuracy, Dice coefficient, Intersection over Union (IoU), 95th percentile Hausdorff distance (HD95), precision, sensitivity, and specificity across three independent runs.
The slice-level experimental results demonstrated that ResUNet achieved the highest mean Dice coefficients for WT (0.7936 ± 0.0573), TC (0.7309 ± 0.0984), and ET (0.6589 ± 0.0774), together with the highest mean IoU and precision values across all three tumor regions. ResUNet also achieved the lowest HD95 for WT, while ResNet-50 obtained lower HD95 values for TC and ET. ResNet-50 achieved the highest sensitivity for WT, whereas ResUNet achieved higher sensitivity for TC and ET and the highest specificity across all three regions. DenseNet121 showed comparatively lower segmentation performance, particularly for the ET region.
An independent patient-level volumetric segmentation evaluation was also conducted using 100 MRI subjects, each comprising 155 MRI slices. Because the evaluated models employed 2D architectures, slice-wise segmentation predictions were aggregated to reconstruct complete volumetric segmentation masks for each patient. ResUNet achieved the highest mean patient-level Dice coefficients for WT (0.6569 ± 0.0204), TC (0.4598 ± 0.0236), and ET (0.4676 ± 0.0268), outperforming ResNet-50 and DenseNet121 across all three tumor regions. These findings demonstrated that ResUNet maintained its relative performance advantage in both slice-level and independent patient-level evaluations.
The quantitative findings were further supported by the qualitative evaluation and slice-level tumor area analysis. ResUNet generally produced segmentation masks and tumor-area estimates that were more consistent with the corresponding ground-truth annotations, whereas ResNet-50 demonstrated competitive performance for specific tumor regions. Overall, the results indicate that ResUNet provided the strongest and most consistent segmentation performance among the three evaluated 2D models across slice-level and patient-level evaluations.
Future studies should investigate additional deep learning architectures and training strategies and validate the models using larger and more diverse MRI datasets. Further evaluation using independent external datasets may help assess the robustness and generalizability of segmentation models for computer-aided brain tumor analysis.

Author Contributions

Conceptualization, F.R.P. and D.G.; methodology, F.R.P.; software, F.R.P.; validation, F.R.P.; formal analysis, F.R.P.; investigation, F.R.P.; writing—original draft preparation, F.R.P.; writing—review and editing, D.G.; supervision, D.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The BraTS 2020 dataset used in this study is publicly available from the BraTS repository at https://www.med.upenn.edu/cbica/brats2020/data.html (accessed on 22 September 2026).

Acknowledgments

The authors used ChatGPT (OpenAI, GPT-6) for language editing and grammatical improvements during manuscript preparation. The authors reviewed and verified the final content and take full responsibility for the manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
MRIMagnetic Resonance Imaging
T1T1-weighted MRI
T1ceT1-weighted contrast-enhanced MRI
T2T2-weighted MRI
FLAIRFluid-Attenuated Inversion Recovery
BraTSBrain Tumor Segmentation
CNNConvolutional Neural Network

Appendix A. Additional Comparative Performance Results

Figure A1. Comparison of Slice-Level accuracy across WT, TC, and ET for ResUNet, ResNet-50, and DenseNet121.
Figure A2. Comparison of Slice-Level Dice Coefficient across WT, TC, and ET for ResUNet, ResNet-50 and DenseNet121.
Figure A3. Comparison of Slice-Level Precision across WT, TC, and ET for ResUNet, ResNet-50 and DenseNet121.
Figure A4. Comparison of Slice-Level Sensitivity across WT, TC, and ET for ResUNet, ResNet-50 and DenseNet121.
Figure A5. Comparison of Slice-Level Specificity across WT, TC, and ET for ResUNet, ResNet-50 and DenseNet121.
Figure A6. Comparison of Slice-Level IoU across WT, TC, and ET for ResUNet, ResNet-50 and DenseNet121.
Figure A7. Comparison of Slice-Level HD95 across WT, TC, and ET for ResUNet, ResNet-50, and DenseNet121.
Figure A8. Comparison of Patient-Level Dice Coefficient across WT, TC, and ET for ResUNet, ResNet-50, and DenseNet121.
Figure A9. Comparison of Patient-Level Intersection over Union (IoU) across WT, TC, and ET for ResUNet, ResNet-50, and DenseNet121.

References

  1. Abidin, A.Z.; Khan, M.A.; Alhaisoni, M.; Naqvi, R.A.; Haider, A.; Kim, H.S.; Jeong, D.; Lee, S.W. Recent Deep Learning-Based Brain Tumor Segmentation Models Using Multi-Modality Magnetic Resonance Imaging: A Prospective Survey. Front. Bioeng. Biotechnol. 2024, 12, 1392807. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Ming, Y.; Song, C.; Li, W.; Yang, Z.; Wang, A. Exploring Approaches to Tackle Cross-Domain Challenges in Brain Medical Image Segmentation: A Systematic Review. Front. Neurosci. 2024, 18, 1401329. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention (MICCAI); Springer: Cham, Switzerland, 2015; pp. 234–241. [Google Scholar]
  4. Huang, L.; Miron, A.; Hone, K.; Li, Y. Segmenting Medical Images: From U-Net to Res-UNet and nnU-Net. arXiv 2024, arXiv:2407.04353. [Google Scholar]
  5. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2016; pp. 770–778. [Google Scholar] [CrossRef] [Scilit]
  6. Huang, G.; Liu, Z.; Van der Maaten, L.; Weinberger, K.Q. Densely Connected Convolutional Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2017; pp. 2261–2269. [Google Scholar] [CrossRef] [Scilit]
  7. Verma, A.; Yadav, A.K. Brain Tumor Segmentation with Deep Learning: Current Approaches and Future Perspectives. J. Neurosci. Methods 2025, 418, 110424. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Bakas, S.; Reyes, M.; Jakab, A.; Bauer, S.; Rempfler, M.; Crimi, A.; Shinohara, R.T.; Berger, C.; Fathallah-Shaykh, H.; Davatzikos, C.; et al. Identifying the Best Machine Learning Algorithms for Brain Tumor Segmentation, Progression Assessment, and Overall Survival Prediction in the BRATS Challenge. arXiv 2018, arXiv:1811.02629. [Google Scholar]
  9. Myronenko, A. 3D MRI Brain Tumor Segmentation Using Autoencoder Regularization. In Proceedings of the International MICCAI Brainlesion Workshop; Springer: Cham, Switzerland, 2019; pp. 311–320. [Google Scholar]
  10. Zhou, Z.; Siddiquee, M.M.R.; Tajbakhsh, N.; Liang, J. UNet++: A Nested U-Net Architecture for Medical Image Segmentation. In Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support; Springer: Cham, Switzerland, 2018; pp. 3–11. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Isensee, F.; Jaeger, P.F.; Kohl, S.A.A.; Petersen, J.; Maier-Hein, K.H. nnU-Net: A Self-Configuring Method for Deep Learning-Based Biomedical Image Segmentation. Nat. Methods 2021, 18, 203–211. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Zhou, Z.; Sodha, V.; Pang, J.; Gotway, M.B.; Liang, J. Models Genesis: Generic Autodidactic Models for 3D Medical Image Analysis. Med. Image Anal. 2021, 67, 101840. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Dorfner, F.J.; Patel, J.B.; Kalpathy-Cramer, J.; Gerstner, E.R.; Bridge, C.P. A Review of Deep Learning for Brain Tumor Analysis in MRI. npj Precis. Oncol. 2025, 9, 2. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Byeon, H.; Al-Kubaisi, M.; Dutta, A.K.; Alghayadh, F.; Soni, M.; Bhende, M.; Chunduri, V.; Suresh Babu, K.; Jeet, R. Brain Tumor Segmentation Using Neuro-Technology Enabled Intelligence-Cascaded U-Net Model. Front. Comput. Neurosci. 2024, 18, 1391025. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Maqsood, R.; Abid, F.; Rasheed, J.; Osman, O.; Alsubai, S. Optimal Res-UNET Architecture with Deep Supervision for Tumor Segmentation. Front. Med. 2025, 12, 1593016. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Angona, T.M.; Mondal, M.R.H. An Attention Based Residual U-Net with Swin Transformer for Brain MRI Segmentation. Array 2025, 25, 100376. [Google Scholar] [CrossRef] [Scilit]
  17. Kannan, S.; Suryamritha, M.; Balaji, V.; Singh, R.P. UNet-VT: Integrating U-Net and Vision Transformers for Enhancing Brain Tumor Segmentation in MRI Scans. Procedia Comput. Sci. 2025, 258, 2210–2219. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.