SwinUNeCCt: bidirectional hash-based agent transformer for cervical cancer MRI image multi-task learning

Chongshuang Yang, Zhuoyi Tan, Yijie Wang, Ran Bi, Tianliang Shi, Yang Jing, Chao Huang, Peng Jiang, Xiangyang FuScientific 2024

Abstract

Cervical cancer is the fourth most common malignant tumor among women globally. While Magnetic Resonance Imaging (MRI) is the gold standard for diagnosis and staging, manual segmentation is time-consuming and subjective. This paper introduces SwinUNeCCt, a novel 3D medical imaging model designed for automatic lesion identification. By incorporating a bidirectional hash-based agent self-attention mechanism, the model optimizes the interaction between local and global features while reducing computational complexity. Validated on the high-resolution DeepCervix dataset, SwinUNeCCt achieves state-of-the-art performance in both segmentation (DSC: 0.811) and classification tasks, outperforming existing models like nnU-Net and SwinUNetR.

Introduction

Cervical cancer remains a significant global health threat, with approximately 600,000 new cases reported in 2022. Accurate diagnosis via MRI is critical, yet current automated models face significant hurdles. Most existing research relies on low-resolution (5mm) slices that lack fine-grained tumor margins. Furthermore, standard Transformer models, which are excellent at capturing global context, suffer from quadratic computational complexity that makes processing high-resolution 3D medical data prohibitively expensive. SwinUNeCCt addresses these challenges by combining the local detail extraction of CNNs with an efficient, compressed self-attention mechanism.

The SwinUNeCCt Architecture

The core innovation of SwinUNeCCt lies in its ability to balance high-resolution feature extraction with computational efficiency. The architecture is built upon three primary components:

  • Window-based Bi-directional Hashing-based Agent Attention (W-BHA-MSA): This module uses "agent tokens" as intermediaries for global information. A hashing algorithm reduces the number of key-value pairs, effectively compressing the mathematical operations without losing critical diagnostic features.
  • Bidirectional Interaction (BDI): This ensures that local features (such as lesion textures) and global features (overall pelvic anatomy) interact across both spatial and channel dimensions.
  • Tri-Branch Inception (TBI): A lightweight CNN module that extracts fine-grained local details using three parallel processing paths.
Detailed architecture of the SwinUNeCCt model featuring the W-BHA-MSA and BDI modules.

The DeepCervix Dataset

To support this research, the authors introduced the DeepCervix dataset, sourced from 122 patients at Tongren City People’s Hospital. Unlike standard datasets, DeepCervix features 1mm slice thickness in pelvic dynamic contrast-enhanced (DCE) MRI scans. This high resolution allows for much more precise mapping of tumor boundaries. Annotations were jointly completed by medical professionals to ensure high reliability for both segmentation and classification (degree of differentiation and pathological types).

Results and Performance

SwinUNeCCt demonstrates superior performance across multiple key metrics. In semantic segmentation tasks, it achieved a Dice Similarity Coefficient (DSC) of 0.811 and an Intersection over Union (IoU) of 0.676. Notably, it significantly improved boundary precision, reducing the 95th percentile Hausdorff Distance (95HD) to 5.09, compared to 9.52 for the widely-used nnU-Net.

Comparison of original MRI scans and ground truth segmentation masks for cervical cancer lesions.

A key insight from the study is the "Multi-Task Bonus": training the model to simultaneously classify the cancer type and segment the lesion improved overall accuracy. The spatial information required for classification provides unified guidance that sharpens segmentation boundaries. Despite its high performance, the model remains efficient, requiring only 445.4 GFLOPs, significantly less than competitors like nnFormer.

Conclusion

SwinUNeCCt represents a significant advancement in computer-aided diagnosis for cervical cancer. By utilizing a bidirectional hash-based attention mechanism, it provides a scalable solution for high-resolution 3D MRI analysis. Future work will focus on multi-center validation to ensure the model's robustness across different clinical environments and the exploration of semi-supervised learning to reduce the burden of manual annotation.

Summary updated

BibTeX
@inproceedings{yang2024swinunecct,
  author = {Chongshuang Yang and Zhuoyi Tan and Yijie Wang and Ran Bi and Tianliang Shi and Yang Jing and Chao Huang and Peng Jiang and Xiangyang Fu},
  title = {{SwinUNeCCt: bidirectional hash-based agent transformer for cervical cancer MRI image multi-task learning}},
  booktitle = {Scientific},
  year = {2024},
  doi = {10.1038/s41598-024-75544-5},
}
Figure