Pixel level deep reinforcement learning for accurate and robust medical image segmentation

Yunxin Liu, Di Yuan, Zhenghua Xu, Yuefu Zhan, Hongwei Zhang, Jun Lu, Thomas LukasiewiczScientific 2025

Abstract

Existing deep learning methods for medical image segmentation often rely on stacking complex architectures, leading to unsustainable model sizes and high deployment costs. To break this cycle, we propose PixelDRL-MG (Pixel-level Deep Reinforcement Learning with pixel-by-pixel Mask Generation). By treating each pixel as an independent agent within a Pixel-level Asynchronous Advantage Actor-Critic (PA3C) framework, our model achieves state-of-the-art accuracy—particularly at object boundaries—using significantly fewer parameters. PixelDRL-MG demonstrates exceptional robustness in low-resource (50-shot and 100-shot) scenarios, making it a highly efficient alternative to traditional U-Net variants.

Introduction: Beyond the "Stacking" Paradigm

The current landscape of medical image segmentation is dominated by the U-Net architecture and its increasingly complex derivatives. While these models have achieved high performance, progress has largely shifted toward a "path dependency" of stacking attention gates, nested skip pathways, and transformer modules. This trend results in massive models that are computationally expensive and often struggle with blurry boundaries.

PixelDRL-MG addresses these challenges by reframing segmentation as a reinforcement learning task. Instead of predicting a static probability map, the model iteratively refines a binary mask, allowing for sharper edges and greater parameter efficiency.

Methodology: Pixels as Agents

The core of PixelDRL-MG is the Pixel-level Asynchronous Advantage Actor-Critic (PA3C) strategy. In this framework, every pixel in the image is treated as an autonomous agent.

Architecture Overview

The model consists of a Feature Extraction Module (based on VGG16), a Self-Attention Module (SAM) for global context, and dual Policy and Value networks. The SAM ensures that while each pixel acts locally, it remains aware of the broader image structure.

The PixelDRL-MG architecture integrates feature extraction, self-attention, and policy/value networks to guide pixel-level actions.

Iterative Refinement and Action Space

Unlike traditional methods that output a single probability map requiring an arbitrary threshold, PixelDRL-MG uses a binary action space. Agents choose between two actions: "set to zero" (background) or "do nothing" (foreground). This process is repeated over multiple iterations (typically $T=10$), allowing the mask to evolve and correct errors dynamically based on the evolving global context.

The iterative PA3C process demonstrates how the state of each pixel is updated over T steps to produce the final segmentation mask.

Key Insights and Results

The model was evaluated on Cardiac MRI, Brain MRI, and PET-CT datasets, consistently outperforming eight major baselines, including nnU-Net and TransUnet.

  • Parameter Efficiency: PixelDRL-MG achieves superior results with only 7.14 million parameters, compared to over 105 million in models like TransUnet. This makes it far more viable for deployment on standard hospital hardware.
  • Boundary Precision: By treating pixels as agents sensitive to their neighbors through dilated convolutions, the model improved Boundary IoU (BIoU) by 3.0–3.4% over the next best methods.
  • Low-Shot Robustness: In 50-shot training scenarios where many transformer-based models failed to converge, PixelDRL-MG maintained high performance, proving its utility in data-scarce medical environments.

Conclusion

PixelDRL-MG offers a path away from the unsustainable complexity of modern deep learning architectures. By leveraging the iterative, decision-based nature of reinforcement learning at the pixel level, it provides a robust, efficient, and accurate solution for medical image segmentation. Future work will explore expanding the action space for multi-class segmentation and further optimizing the computational speed of the iterative process.

Reference: Liu, Y., Yuan, D., Xu, Z., et al. (2025). Pixel level deep reinforcement learning for accurate and robust medical image segmentation. Scientific Reports, 15:8213. https://doi.org/10.1038/s41598-025-92117-2

Summary updated

BibTeX
@inproceedings{liu2025pixel,
  author = {Yunxin Liu and Di Yuan and Zhenghua Xu and Yuefu Zhan and Hongwei Zhang and Jun Lu and Thomas Lukasiewicz},
  title = {{Pixel level deep reinforcement learning for accurate and robust medical image segmentation}},
  booktitle = {Scientific},
  year = {2025},
  doi = {10.1038/s41598-025-92117-2},
}
Figure