Skip to main content
QUICK REVIEW

[Paper Review] Blind Inpainting of Large-scale Masks of Thin Structures with Adversarial and Reinforcement Learning

Hao Chen, Mario Valerio Giuffrida|arXiv (Cornell University)|Dec 5, 2019
Remote Sensing and LiDAR ApplicationsEnvironmental Science8 references5 citations
TL;DR

This paper proposes a novel blind inpainting method for large-scale binary segmentation masks of thin structures using adversarial training with a dual-discriminator setup and reinforcement learning via Policy Gradient. It achieves state-of-the-art performance, with results comparable to human experts on plant root datasets, by jointly optimizing local patch-level details and global structural coherence without requiring prior knowledge of gap locations.

ABSTRACT

Several imaging applications (vessels, retina, plant roots, road networks from satellites) require the accurate segmentation of thin structures for subsequent analysis. Discontinuities (gaps) in the extracted foreground may hinder down-stream image-based analysis of biomarkers, organ structure and topology. In this paper, we propose a general post-processing technique to recover such gaps in large-scale segmentation masks. We cast this problem as a blind inpainting task, where the regions of missing lines in the segmentation masks are not known to the algorithm, which we solve with an adversarially trained neural network. One challenge of using large images is the memory capacity of current GPUs. The typical approach of dividing a large image into smaller patches to train the network does not guarantee global coherence of the reconstructed image that preserves structure and topology. We use adversarial training and reinforcement learning (Policy Gradient) to endow the model with both global context and local details. We evaluate our method in several datasets in medical imaging, plant science, and remote sensing. Our experiments demonstrate that our model produces the most realistic and complete inpainted results, outperforming other approaches. In a dedicated study on plant roots we find that our approach is also comparable to human performance. Implementation available at \url{https://github.com/Hhhhhhhhhhao/Thin-Structure-Inpainting}.

Motivation & Objective

  • To address the challenge of gap-filling in binary segmentation masks of thin structures, such as retinal vessels, plant roots, and road networks, where gaps hinder downstream analysis.
  • To develop a blind inpainting approach where the locations of missing regions are unknown to the model, unlike conventional non-blind inpainting methods.
  • To overcome GPU memory limitations in processing large-scale images by training on patches while preserving global structural coherence through a global discriminator.
  • To improve inpainting quality by combining local patch-level refinement with global structural consistency using adversarial training and reinforcement learning.
  • To demonstrate generalization across diverse domains, including medical imaging, plant science, and remote sensing, with quantitative and qualitative validation.

Proposed method

  • The method uses a U-Net-based generator network trained on randomly cropped patches from large-scale images, with artificial gaps introduced during training.
  • A local discriminator (D_L) is trained to assess the realism of inpainted patches by comparing them to ground truth patches.
  • A global discriminator (D_G) evaluates the overall structural coherence of the complete image by comparing the full inpainted image to the original (gap-free) image.
  • Policy Gradient reinforcement learning is employed to train the generator in a non-differentiable setting, enabling interaction between the generator and the global discriminator despite the random sampling and re-composition process.
  • The model is trained on a combination of synthetic data (with artificial gaps) and real data (with actual gaps), improving generalization to real-world segmentation masks.
  • The final model, GAN-GL-M, is trained on both synthetic and real root data, enabling it to generalize to real-world discontinuities while maintaining high-fidelity inpainting.

Experimental results

Research questions

  • RQ1Can a deep learning model effectively perform blind inpainting on large-scale binary masks without prior knowledge of gap locations?
  • RQ2How can global structural coherence be preserved in large-scale image inpainting when training is performed on small patches?
  • RQ3To what extent can a reinforcement learning-based training scheme with a global discriminator improve the realism and completeness of inpainted thin structures?
  • RQ4Can the proposed method achieve performance comparable to human experts in segmenting complex thin structures like plant roots?
  • RQ5Does combining synthetic and real data during training improve generalization and performance on real-world segmentation masks?

Key findings

  • The GAN-GL-M model achieved a mean F1-score of 0.7211 (±0.5970) on real root patches, outperforming all baselines and approaching expert-level performance.
  • On whole root segmentation masks, GAN-GL-M reduced the number of connected components by 13.58 (±14.47), indicating significant improvement in structural completeness.
  • The model improved root length and convex hull area measurements, with convex hull area increasing by 81.12 (±23.94) in the inpainted results, showing better reconnection of fragmented segments.
  • In comparison to expert annotations, GAN-GL-M achieved comparable or better performance on root length and convex hull area, suggesting consistent and realistic inpainting.
  • The global discriminator (D_G) combined with Policy Gradient was essential for preserving topological structure, as models without it produced fragmented results with higher connected component counts.
  • Visual and quantitative evaluation confirmed that GAN-GL-M produced the most realistic and complete inpainting results across medical, plant, and remote sensing datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.