Anatomy-Change-Aware Bidirectional Selective State-Space Memory for Clinically Deployed Thoracic Radiotherapy Auto-Contouring
Organizations: Department of Mathematics and Physics, North South University, Dhaka, 1229, Bangladesh · Big-Matrix Lab, Department of Mathematics and Physics, North South University, Dhaka, 1229, Bangladesh · Department of Electrical and Computer Engineering, North South University, Dhaka, 1229, Bangladesh · Department of Radiation Oncology, Dhaka, National Institute of Cancer Research & Hospital, 1212, Bangladesh ·
Abstract
We developed DAMM-Net++, a 2.5D architecture for thoracic OAR and target volume segmentation that addresses three persistent challenges in radiotherapy auto-contouring: inter-slice surface incoherence, systematic failure on small low-contrast targets, and the absence of per-case reliability signals. The central component is an anatomy-change-aware bidirectional selective state-space memory that models through-plane anatomical change and selectively propagates context along the axial slice sequence. A boundary-aware decoder sharpens near-surface predictions, and an uncertainty head provides calibrated per-voxel confidence for clinical triage. We evaluated 2,146 patients across four centers, an independent external cohort of 112 patients, and a multicenter reader study involving 17 radiation oncologists on 305 cases. The model achieves a mean Dice of 0.955 and HD95 of 3.78 mm, with the largest gains on low-contrast organs-at-risk (OARs) and target volumes where through-plane context is most critical. The uncertainty head is well-calibrated and supports case-level triage. In the reader study, AI assistance reduced contouring time by 75-80% across experience levels and raised junior-reader IoU from 0.861 to 0.925, matching the unedited model. External validation showed a modest internal-to-external drop (< 5%) with calibrated uncertainty transferring without recalibration. The complete deployment pipeline from DICOM ingestion to TPS-compatible RTSTRUCT export has been integrated into the clinical workflow at a partner hospital, where it is used to assist with contouring. These results suggest that anatomically motivated inter-slice memory, paired with uncertainty-guided review, offers a clinically viable path for thoracic auto-contouring.
Figures & tables
| Institution | Patients | Proportion (%) | Acquisition Years | Role |
| Internal Cohort | ||||
| Bangladesh Medical University (BMU) | 1,447 | 67.4 | 2020–2026 | Internal |
| Square Hospital Limited (SHL) | 309 | 14.4 | 2018–2026 | Internal |
| Labaid Hospital (LH) | 278 | 13.0 | 2019–2025 | Internal |
| External Validation Cohort | ||||
| United Hospital (UHL) | 112 | N/A | 2026 | External Validation |
| Model | Transition signal | Selective SSM | Dice | vs SSM only |
| Base | N/A | × | 0.9047 | N/A |
| SSM only | × | ✓ | 0.9251 | N/A |
| Difference + SSM | Real | ✓ | ||
| Randomized + SSM | Random | ✓ | 0.9254 | |
| Shuffled + SSM | Corrupted | ✓ | ||
| Full model | Real | ✓ |
| Structure | Base | +Mem | Full | (Full Base) |
| Spinal cord | 0.8901 | |||
| Esophagus | 0.8210 | |||
| Heart | 0.9601 | |||
| Lung (R) | 0.9704 | |||
| Lung (L) | 0.9758 | |||
| Trachea | 0.8642 |
| Variant | Dice | ACE | NLL | AUROC |
| Softmax-entropy proxy | 0.9502 | 0.081 | 0.214 | 0.712 |
| Variance head, std. loss | ||||
| Unc. head + UA loss (ours) |
| Struc- ture | Metric | Ours | nnUNet | nnMamba | UNETR++ | Swin- UNETR |
| SC | DSC | |||||
| IoU | ||||||
| HD95 | ||||||
| ASD | ||||||
| NSD | ||||||
| ESO | DSC |
| Metric | Expert ( ) | Senior ( ) | Junior ( ) | Model (unedited) | Exp vs Jun | Sen vs Jun | Model vs Jun |
| IoU: No-AI | |||||||
| Mean SD | 0.9490 0.0058 | 0.9047 0.0092 | 0.8606 0.0133 | N/A | 0.0001 | 0.0001 | N/A |
| Median [IQR] | 0.9493 [0.9450–0.9530] | 0.9046 [0.8981–0.9107] | 0.8606 [0.8515–0.8702] | N/A | |||
| IoU: AI-Assisted | |||||||
| Mean SD | 0.9702 0.0038 | 0.9487 0.0062 | 0.9245 0.0091 | 0.9226 0.0070 | 0.0021 | 0.0001 | 0.0001 |
| Median [IQR] | 0.9702 [0.9676–0.9727] | 0.9486 [0.9447–0.9531] | 0.9246 [0.9184–0.9306] | N/A | |||
Medical Image Segmentation
Medical image segmentation delineates organs, lesions, and other structures in scans to support measurement, diagnosis, treatment planning, and research.
See all 796 papers