Invasive carcinoma segmentation in whole slide images using MS-ResMTUNet

Yiqing Liu, Huijuan Shi, Qiming He, Yuqiu Fu, Yizhi Wang, Yonghong He, Anjia Han, Tian GuanHeliyon 2024

TL;DR

This paper introduces MS-ResMTUNet, a novel deep learning architecture that effectively segments invasive carcinoma in breast cancer whole slide images (WSIs). By combining the strengths of Vision Transformers and CNNs with a multi-scale approach and conditional random fields, it achieves state-of-the-art performance, paving the way for more accurate and automated breast cancer diagnosis.

What Problem Does This Paper Address?

Accurate identification of invasive carcinoma (IC) is critical for diagnosing breast cancer and determining patient treatment. Histopathological examination of WSIs is the gold standard, but it's time-consuming and can be subjective. While deep learning has shown promise in medical image analysis, effectively segmenting IC from other similar regions like ductal carcinoma in situ (DCIS) in WSIs remains a significant challenge. Existing methods often struggle to differentiate these subtle differences or handle the large scale and contextual variations present in WSIs. This paper aims to bridge this gap by developing a robust automated system for precise IC segmentation.

Methods

The core of the proposed solution is the ResMTUNet architecture, a hybrid model that leverages both Vision Transformers (ViT) and Convolutional Neural Networks (CNNs).

  • Dual-Branch Encoder: ResMTUNet employs a dual-branch encoder. One branch uses a Transformer to capture global contextual information, while the other uses residual CNN blocks to extract local features. This combination allows the model to understand both the fine details and the broader context of the image.
  • Multi-Task Learning: The model is trained with a multi-task learning approach, incorporating both a classification head (to predict image categories like normal, abnormal, or invasive carcinoma) and a segmentation head. This encourages the encoder to learn more general features beneficial for both tasks.
  • U-Net Decoder: A U-Net-style decoder is used to fuse the multi-level features extracted by the encoder, generating a segmentation mask.
  • MS-ResMTUNet for WSIs: To handle whole slide images (WSIs), the trained ResMTUNet is adapted into MS-ResMTUNet. This involves:
  • Dividing WSIs into smaller patches.
  • Generating multi-scale inputs for each patch (e.g., 512x512, 768x768, 1024x1024) to capture variations in tumor size.
  • Averaging the predictions from these multi-scale inputs.
  • Conditional Random Field (CRF): A fully connected CRF is used as a post-processing step to refine segmentation boundaries and improve spatial consistency by considering pixel relationships and image appearance.

Datasets

  • BRACS Dataset: This dataset was used for training and evaluating the ResMTUNet and MS-ResMTUNet models. The authors transformed the original BRACS classification dataset into a semantic segmentation dataset by manually annotating segmentation masks.
  • SYSU Test Images: A smaller set of 24 images from an internal dataset (SYSU) was used for quantitative assessment of the ResMTUNet and MS-ResMTUNet models. These images were categorized into normal lobules, in-situ carcinoma, and invasive carcinoma.

Key Insights and Ideas

  • Transformer-CNN Synergy: The paper strongly advocates for the combined power of Vision Transformers and CNNs in pathological image analysis. The Transformer excels at capturing long-range dependencies and global context, while CNNs are adept at local feature extraction. Their integration in a dual-branch encoder proves more effective than either alone.
  • Multi-Scale for WSIs: The challenge of varying tumor sizes in WSIs is effectively addressed by a multi-scale input strategy. This allows the model to adapt to different scales without requiring a fixed input size for the entire WSI, leading to more consistent segmentation.
  • Multi-Task Learning Benefits: Training with both classification and segmentation tasks simultaneously helps the model learn more robust and generalizable features, improving performance on both objectives.
  • CRF for Refinement: The post-processing step using CRF significantly enhances segmentation quality by enforcing spatial consistency and fine-tuning boundaries, especially in complex regions.

Key Results

  • Classification Performance: ResMTUNet achieved an overall F1 score of 89.20% and an F1 score of 90.56% for invasive carcinoma, outperforming several state-of-the-art CNNs and Transformers in comparative experiments.
  • Segmentation Performance: On the BRACS dataset, MS-ResMTUNet achieved an overall IoU of 83.49% and an IoUic of 76.20%, and an overall Dice of 91.04% and a Diceic of 86.64%. It outperformed other segmentation models by significant margins (e.g., >2.24% in IoU, >5.69% in IoUic).
  • WSI Segmentation: Qualitative results on WSIs demonstrated that MS-ResMTUNet provides superior spatial consistency and avoids erroneous detections in challenging areas compared to the original ResMTUNet.
  • Efficiency: ResMTUNet has a parameter count of 110.73M and GFLOPs of 91.13. MS-ResMTUNet (without CRF) has an inference time of 2.43s, while MS-ResMTUNet (with CRF) takes 17.23s, highlighting the trade-off between advanced post-processing and inference speed.

Limitations and Future Work

  • Computational Cost: The proposed MS-ResMTUNet, especially with CRF, has high computational requirements, leading to longer inference times. The authors plan to explore GPU acceleration for CRF and investigate knowledge distillation techniques to create a more lightweight model.
  • Performance Improvement: While achieving state-of-the-art results, there is still room for improvement. Future work includes exploring adaptive multi-scale weight adjustments and integrating deep learning fusion strategies.
  • Data Diversity: The authors suggest that using multi-center data will further enhance the model's generalization ability and robustness by capturing greater real-world diversity.
  • Downstream Tasks: Integrating invasive carcinoma segmentation with downstream tasks like immunochemistry analysis (e.g., Ki-67 index scoring) is a key future direction to expand the model's practical utility.

Summary updated

Abstract

Identifying the invasive cancer area is a crucial step in the automated diagnosis of digital pathology slices of the breast. When examining the pathological sections of patients with invasive ductal carcinoma, several evaluations are required specifically for the invasive cancer area. However, currently there is little work that can effectively distinguish the invasive cancer area from the ductal carcinoma in situ in whole slide images. To address this issue, we propose a novel architecture named ResMTUnet that combines the strengths of vision transformer and CNN, and uses multi-task learning to achieve accurate invasive carcinoma recognition and segmentation in breast cancer. Furthermore, we introduce a multi-scale input model based on ResMTUnet with conditional random field, named MS-ResMTUNet, to perform segmentation on WSIs. Our systematic experimentation has shown that the proposed network outperforms other competitive methods and effectively segments invasive carcinoma regions in WSIs. This lays a solid foundation for subsequent analysis of breast pathological slides in the future. The code is available at: https://github.com/liuyiqing2018/MS-ResMTUNet.
BibTeX
@inproceedings{liu2024invasive,
  author = {Yiqing Liu and Huijuan Shi and Qiming He and Yuqiu Fu and Yizhi Wang and Yonghong He and Anjia Han and Tian Guan},
  title = {{Invasive carcinoma segmentation in whole slide images using MS-ResMTUNet}},
  booktitle = {Heliyon},
  year = {2024},
  doi = {10.1016/j.heliyon.2024.e26413},
}
Figure