A Deep Reinforcement Learning Framework for Rapid Diagnosis of Whole Slide Pathological Images

Tingting Zheng, Weixing Chen, Shuqin Li, Hao Quan, Qun Bai, Tianhang Nan, Song Zheng, Xinghua Gao, Yue Zhao, Xiaoyu Cui

TL;DR

This paper introduces a novel weakly supervised deep reinforcement learning framework (WSDRL) that mimics how pathologists diagnose whole slide pathological images. By combining a "search agent" for rapid scanning and a "decision agent" for detailed analysis, WSDRL significantly reduces inference time and memory usage while maintaining high diagnostic accuracy, even without pixel-level annotations.

What Problem Does This Paper Address?

Histopathological image analysis, crucial for diagnosing diseases like cancer, relies heavily on deep neural networks (DNNs). However, whole slide images (WSIs) are massive (gigapixel resolution), making traditional DNN training computationally expensive due to the need to divide them into numerous patches, leading to long convergence times and high memory demands. Furthermore, obtaining pixel-level annotations for these images is extremely difficult and time-consuming, hindering the development of robust DNN models. Existing methods often overlook the sequential, multi-magnification diagnostic process that pathologists naturally employ, which involves a quick overview followed by focused examination.

Methods

The proposed WSDRL framework decomposes the diagnostic process into two key components:

  • Search Agent (SeAgent): This agent mimics the pathologist's initial low-magnification scan. It uses a Long Short-Term Memory (LSTM) network to process feature vectors extracted from different magnifications (5x and 10x) of the WSI. The SeAgent learns to navigate the image, identifying potentially suspicious regions.
  • Decision Agent (DeAgent): This agent acts like the pathologist's high-magnification examination. It takes the features identified by the SeAgent and makes a final diagnosis.

A crucial aspect of WSDRL is its weakly supervised nature. Instead of relying on pixel-level labels, it uses a Multi-Instance Learning Teacher Model (MILTM). This MILTM, trained on global image labels, acts as a "teacher" that guides the SeAgent by providing rewards and informs the DeAgent through knowledge distillation. This teacher-student approach allows the model to learn from prior knowledge without requiring precise annotations. The framework models the interaction as a Markov Decision Process (MDP), where the SeAgent learns an optimal search policy to maximize cumulative rewards.

Datasets

The experiments were conducted on a private dataset comprising 212 samples: 105 patients with melanoma and 107 with benign nevus. The WSIs were scanned at 40x magnification and standardized to 224x224 input image size. The dataset was split into training (60%), validation (20%), and testing (20%) sets.

Key Insights and Ideas

  • Mimicking Pathologist Workflow: The core innovation is translating the human diagnostic process (low-mag scan -> high-mag focus) into a reinforcement learning framework. This sequential, multi-magnification approach is key to efficiency.
  • Weak Supervision is Powerful: The success of the MILTM as a teacher, providing rewards and guidance without pixel-level data, is a significant finding. This bypasses the major bottleneck of annotation in digital pathology.
  • Reinforcement Learning for Navigation: Using RL for the SeAgent allows it to learn an optimal strategy for exploring the WSI, effectively reducing the number of patches that need detailed analysis.
  • Knowledge Distillation for Guidance: The teacher-student model, with knowledge distillation from MILTM to DeAgent, effectively transfers learned features and improves the DeAgent's ability to recognize subtle pathological patterns.

Key Results

The proposed WSDRL framework demonstrated strong performance:

  • Accuracy: The method achieved a high accuracy of 0.950±0.034, outperforming several MIL-based methods.
  • Efficiency: Crucially, WSDRL significantly reduced inference time. While other methods took over 2800 seconds for inference, WSDRL achieved this in just 723.68±11.970 seconds, representing a substantial speedup (approximately 20% of other methods). This is attributed to the intelligent search strategy that avoids processing unnecessary image regions.
  • Ablation Studies: The results from ablation studies confirmed the importance of each component. Removing KLdiv/CE from the DeAgent loss function decreased performance, highlighting the benefit of the teacher's guidance. Removing the SeAgent's zoom operation (5x and 10x integration) also led to a drop in accuracy, emphasizing the value of multi-magnification search.

Limitations and Future Work

The authors acknowledge several points:

  • Dataset Size: While the dataset is reasonably sized, larger and more diverse datasets could further improve generalization.
  • MILTM as a Bottleneck: The performance of the SeAgent is influenced by the quality of the MILTM's feature extraction and reward signals.
  • Future Directions: The authors plan to extend their approach to more models and datasets. They also aim to explore further applications of deep reinforcement learning for improved interpretability and efficiency in computer-aided diagnosis. The potential to combine WSDRL with other advanced deep learning techniques for even greater performance is also a promising avenue.

Summary updated

BibTeX
@misc{zheng2022deep,
  author = {Tingting Zheng and Weixing Chen and Shuqin Li and Hao Quan and Qun Bai and Tianhang Nan and Song Zheng and Xinghua Gao and Yue Zhao and Xiaoyu Cui},
  title = {{A Deep Reinforcement Learning Framework for Rapid Diagnosis of Whole Slide Pathological Images}},
  year = {2022},
  eprint = {2205.02850},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.02850},
}
Figure