Organizations: School of Medicine, Zanjan University of Medical Sciences, Zanjan, Iran · Department of CS & IT, Institute for Advanced Studies in Basic Sciences, Zanjan, Iran
Accurate glioma segmentation is vital for diagnosis and follow-up, but manual segmentation is time-consuming, subjective, and variable across interpreters. Gliomas are heterogeneous in size, shape, and location. Deep learning has therefore emerged as a potential solution. CNNs excel at local features but may struggle with long-range dependencies, whereas Vision Transformers capture global context efficiently but incur higher computational complexity. Most previous studies focused on pre-treatment gliomas; post-treatment cases with resection cavities (RCs) remain less explored. This study proposes a Cross-Attention-Guided Mamba-CNN (CMC-Seg) model within a cascaded framework for pre- and post-treatment diffuse glioma segmentation, aiming to balance accuracy and computational cost. Experiments used BraTS 2025 mpMRI of diffuse glioma patients. After preprocessing, a coarse segmentation model extracted tumor-centered patches, which were fed to CMC-Seg for fine-grained segmentation. CMC-Seg was compared with 3D U-Net, SegResNet, SwinUNETR, UNETR, nnFormer, and SegMamba. On the test set, CMC-Seg achieved the highest mean Dice (81.20%) and non-enhancing tumor core (NETC) Dice (77.09%). It also achieved an RC Dice of 78.63% and the lowest 95% Hausdorff distance (HD95; 4.39 mm). Results were comparable to CNN and Mamba baselines and significantly better than Transformer-based baselines (P < 0.05). CMC-Seg required the fewest inference GFLOPs (381.49). Ablation experiments indicated that multi-direction scanning and cross-attention improved performance, particularly for RC (P < 0.05). Grad-CAM explainability experiments showed that CMC-Seg focuses on diagnostically relevant tumor regions.
Figures & tables
Study
Model backbone
Dataset
Pros
Cons
( Myronenko (2018) )
CNNs (SegResNet)
BraTS 2018
Additional VAE branch Improved generalization under limited data
No explicit long-range dependency modeling Absence of post-treatment data Absence of XAI
( Ma et al. (2024a) )
Hybrid Transformer-CNN (DTASUnet)
BraTS 2018, BraTS 2020
Capturing both local features and global context Interpretability
Computational cost Absence of post-treatment data
( Hatamizadeh et al. (2021) )
Hybrid Transformer-CNN (Swin UNETR)
BraTS 2021
Hierarchical shifted-window attention Capturing both local features and global context
Data-hungry without pretraining Absence of post-treatment data Absence of XAI
( Liu et al. (2023) )
CNN (AMMGS)
BraTS2020, BraTS2019
Focus on small-intensity dissimilarity
Absence of post-treatment data Absence of XAI
( Xing et al. (2024) )
Hybrid Mamba-CNN (SegMamba)
BraTS 2023
Capturing both local features and global context Global receptive field at linear complexity
Absence of post-treatment data Absence of XAI
( Jin et al. (2026) )
Hybrid Mamba-CNN (DM-UNet)
BraTS 2023
Low computational cost Capturing both local features and global context Global receptive field at linear complexity
Limitations in handling small lesions, low-contrast regions, and intricate boundary structures Absence of post-treatment data Absence of XAI
Table 1: Summary of some related works.
Figure 1: The overall workflow of proposed framework. A) Training and utilization of a coarse segmentation model to approximately detect the ROI. B) Patch extraction from the original input image according to the ROI. C) Training and utilization of CMC-Seg to predict mask patches. D) Merging the predicted mask patches to reconstruct the full-size masks and evaluate the segmentation performance. E) Conducting explainability experiments.
Tumor class
Subgroup
Development dataset
Test dataset
Total dataset
Prevalence (%)
NETC
Pre-treatment
96.54
96.75
96.56
Post-treatment
43.45
44.51
43.55
Total
66.62
66.9
66.64
SNFH
Pre-treatment
99.91
100
99.92
Post-treatment
99.79
100
99.81
Table 2: Prevalence and mean volume ± standard deviation of each tumor class.
Figure 2: Detailed architecture of CMC-Seg. H, W, D correspond to the spatial dimensions; C is the channel size of the input image, and F is the base feature size. An input 3D MRI volume is processed through an initial patch embedding and four encoder stages. Each stage consists of an MDM and a residual block, followed by a convolution layer with a stride of 2. The MDM block scans the flattened image along three different axes plus their reverse directions. The decoder symmetrically upsamples the features, fuses them with filtered encoder features via cross-attention, and then the fused features go through the residual block.
Figure 3: Validation IoU and validation loss plot of CMC-Seg and benchmark models. CMC-Seg achieves the best validation IoU and loss compared to benchmark models.
Model
WT
TC
ET
NETC
SNFH
RC
Mean
3D U-Net ( Çiçek et al. (2016) )
91.44 ± 9.17
81.58 ± 26.08
79.93 ± 26.40
76.49 ± 32.06
87.82 ± 11.57
79.83 ± 28.90
81.10 ± 14.62
SegResNet ( Myronenko (2018) )
91.48 ± 9.14
82.16 ± 24.91
81.27 ± 24.63
75.28 ± 33.95
87.78 ± 11.43
78.30 ± 29.37
80.89 ± 14.23
Swin-UNETR ( Hatamizadeh et al. (2021) )
90.98 ± 9.33
81.26 ± 25.85
80.56 ± 25.41
73.93 ± 33.88
87.23 ± 11.75
76.45 ± 30.56
79.98 ± 15.50
UNETR ( Hatamizadeh et al. (2022) )
90.04 ± 9.98
79.14 ± 27.39
77.78 ± 27.78
71.93 ± 34.87
85.93 ± 12.59
70.60 ± 34.76
77.37 ± 16.05
nnFormer ( Zhou et al. (2023) )
89.44 ± 9.80
79.27 ± 27.21
77.40 ± 26.48
73.85 ± 32.59
85.15 ± 12.20
73.84 ± 31.30
78.07 ± 14.64
SegMamba ( Xing et al. (2024) )
91.44 ± 9.47
82.64 ± 24.55
81.34 ± 24.75
74.94 ± 33.27
87.99 ± 11.98
77.57 ± 30.16
80.82 ± 15.02
Table 3: Dice score ( ± standard deviation) of tumor classes and subregions on the test data.
Model
Subgroup
WT
TC
ET
RC
Mean
3D U-Net ( Çiçek et al. (2016) )
Pre-treatment
92.0 ± 8.5
88.1 ± 17.3
84.0 ± 19.6
—
80.5 ± 15.2
Post-treatment
91.0 ± 9.6
76.7 ± 30.2
76.9 ± 30.1
79.8 ± 28.9
81.5 ± 14.2
SegResNet ( Myronenko (2018) )
Pre-treatment
92.2 ± 8.1
87.2 ± 18.3
85.0 ± 17.8
—
80.5 ± 15.4
Post-treatment
91.0 ± 9.8
78.4 ± 28.3
78.4 ± 28.4
78.3 ± 29.4
81.2 ± 13.3
Swin-UNETR ( Hatamizadeh et al. (2021) )
Pre-treatment
91.8 ± 8.5
87.8 ± 15.7
84.4 ± 17.5
—
80.5 ± 14.8
Post-treatment
90.4 ± 9.9
76.4 ± 30.5
77.7 ± 29.7
76.5 ± 30.6
79.6 ± 16.0
Table 4: Dice score ( ± standard deviation) of tumor classes and subregions based on treatment status on the test data.
Figure 4: Visualization of the segmentation results of CMC-Seg and benchmark models on the BraTS 2025 dataset.
Model
WT
TC
ET
NETC
SNFH
RC
Mean
3D U-Net ( Çiçek et al. (2016) )
5.00 ± 8.90
6.02 ± 12.51
5.44 ± 12.28
5.11 ± 9.62
4.82 ± 8.06
4.51 ± 7.91
5.15 ± 5.87
SegResNet ( Myronenko (2018) )
5.08 ± 9.48
6.19 ± 11.83
5.34 ± 11.56
4.75 ± 9.12
4.89 ± 8.71
4.69 ± 7.40
5.03 ± 5.75
Swin-UNETR ( Hatamizadeh et al. (2021) )
6.10 ± 10.10
7.09 ± 13.98
5.84 ± 12.60
5.75 ± 11.45
5.73 ± 9.16
5.30 ± 8.11
5.81 ± 6.52
UNETR ( Hatamizadeh et al. (2022) )
6.34 ± 10.01
7.36 ± 12.83
6.25 ± 12.52
5.95 ± 10.51
6.20 ± 9.46
6.06 ± 8.90
6.21 ± 6.21
nnFormer ( Zhou et al. (2023) )
5.61 ± 10.07
6.97 ± 14.12
6.11 ± 13.84
4.99 ± 9.64
5.46 ± 9.39
5.25 ± 7.86
5.55 ± 6.76
SegMamba ( Xing et al. (2024) )
5.60 ± 10.17
7.06 ± 14.06
6.16 ± 13.51
5.60 ± 11.67
5.32 ± 9.42
4.94 ± 8.72
5.68 ± 7.30
Table 5: HD95 score (mm; lower is better) ± standard deviation of tumor classes and subregions on the test data.
Model
Subgroup
WT
TC
ET
RC
Mean
3D U-Net ( Çiçek et al. (2016) )
Pre-treatment
5.90 ± 9.02
5.71 ± 12.07
4.98 ± 11.34
—
5.95 ± 6.23
Post-treatment
4.32 ± 8.75
6.28 ± 12.86
5.81 ± 12.96
4.51 ± 7.91
4.55 ± 5.52
SegResNet ( Myronenko (2018) )
Pre-treatment
6.26 ± 9.85
6.11 ± 11.11
4.85 ± 10.46
—
5.93 ± 6.14
Post-treatment
4.18 ± 9.09
6.26 ± 12.37
5.72 ± 12.36
4.69 ± 7.40
4.35 ± 5.34
Swin-UNETR ( Hatamizadeh et al. (2021) )
Pre-treatment
7.05 ± 10.19
5.68 ± 10.02
4.48 ± 9.42
—
6.47 ± 7.14
Post-treatment
5.38 ± 9.96
8.23 ± 16.42
6.91 ± 14.54
5.30 ± 8.11
5.32 ± 5.96
Table 6: HD95 score (lower is better) ± std of tumor classes and subregions based on treatment status on the test data.
Metric
Subgroup
NETC
SNFH
ET
WT
RC
TC
Mean
Precision (%) (Pre.)
Pre-treatment
79.6 ± 25.5
83.0 ± 14.3
84.2 ± 20.7
90.5 ± 9.7
—
88.6 ± 17.7
82.3 ± 13.8
Post-treatment
90.0 ± 21.1
88.4 ± 12.8
83.3 ± 24.4
89.4 ± 12.0
84.1 ± 24.0
83.3 ± 24.7
86.5 ± 10.6
Recall (%) (Sensitivity)
Pre-treatment
77.4 ± 29.1
88.0 ± 13.5
87.6 ± 15.6
94.1 ± 9.2
—
89.8 ± 15.3
84.3 ± 13.3
Post-treatment
81.1 ± 32.4
92.1 ± 9.7
82.7 ± 24.9
93.2 ± 9.1
83.2 ± 26.8
82.7 ± 25.1
84.9 ± 12.8
Table 7: Precision and recall ( ± standard deviation) of tumor classes and subregions on the test data.
Model
Parameters
GFLOPs
VRAM (GB)
Inference Time (ms)
3D U-Net ( Çiçek et al. (2016) )
16.32M
3807.41
7.81
1089.00 ± 10.92
SegResNet ( Myronenko (2018) )
25.21M
1174.14
8.50
411.41 ± 2.41
Swin-UNETR ( Hatamizadeh et al. (2021) )
62.19M
1550.16
7.57
929.35 ± 6.50
UNETR ( Hatamizadeh et al. (2022) )
143.16M
4123.45
8.43
1154.32 ± 9.14
nnFormer ( Zhou et al. (2023) )
150.06M
494.86
6.29
1091.87 ± 6.59
SegMamba ( Xing et al. (2024) )
67.42M
2928.91
8.35
1392.28 ± 12.21
Table 8: Computational efficiency and complexity metrics of the models.
Figure 5: The computational cost versus accuracy trade-off. Model parameters are shown by their circle size. CMC-Seg achieves the best mean Dice score-to-GFLOPs ratio, although it demonstrates the slowest inference time.
Dice score (%) ↑
HD95 score (mm) ↓
Model
NETC
SNFH
ET
RC
Mean
NETC
SNFH
ET
RC
Mean
Model (B)
74.50 ± 33.99
87.58 ± 11.78
80.33 ± 25.87
75.17 ± 32.00
79.93 ± 15.04
5.41 ± 10.30
4.92 ± 8.80
5.65 ± 12.44
4.78 ± 7.19
5.28 ± 6.08
Model (C)
75.73 ± 33.00
87.75 ± 11.54
80.96 ± 25.59
78.48 ± 29.52
81.00 ± 14.45
4.79 ± 8.95
5.15 ± 9.17
5.77 ± 12.72
4.90 ± 7.53
5.27 ± 6.03
Model (D)
75.24 ± 33.00
87.72 ± 11.88
80.38 ± 25.51
76.44 ± 31.15
80.39 ± 14.52
5.38 ± 10.32
5.18 ± 9.16
5.88 ± 13.43
4.72 ± 7.26
5.40 ± 6.02
CMC-Seg
77.09 ± 31.79
87.53 ± 12.04
80.73 ± 25.28
78.63 ± 29.91
81.20 ± 14.37
4.90 ± 9.30
5.15 ± 9.06
5.65 ± 11.91
4.39 ± 7.24
5.20 ± 5.83
Table 9: Dice and HD95 score ( ± standard deviation) of the ablation models.
Figure 6: Effectiveness of the multi-directional Mamba and cross-attention strategy on the RC class. Model (B) uses simple Mamba blocks; Model (C) uses plain skip connections; Model (D) uses simple Mamba blocks and plain skip connections. The combination of multi-directional Mamba and cross-attention achieved the highest Dice score and the lowest HD95 score for the RC class. Asterisks indicate statistically significant differences.
Figure 7: Visualization of per-class internal feature activation maps (heatmaps) from the last residual block of CMC-Seg.
Figure 8: Visualization of per-class internal feature activation maps (heatmaps) from the third decoder residual block of CMC-Seg.
Figure 9: Visualization of per-class internal feature activation maps (heatmaps) from the bottleneck layer of CMC-Seg.
Brain tumor segmentation uses medical imaging, especially MRI, to delineate tumors and their subregions for diagnosis, treatment planning, and monitoring.
Department of Radiology and Medical Imaging, University of Virginia, VA, USA · Department of Radiology and Medical Imaging, Biomedical Engineering, School of Data Science, University of Virginia, VA, USA