Automatic consecutive context perceived transformer GAN for serial sectioning image blind inpainting

Comput Biol Med. 2021 Sep:136:104751. doi: 10.1016/j.compbiomed.2021.104751. Epub 2021 Aug 10.

Abstract

Background and objective: Serial sectioning is the routine method in histology study. In order to restore the defective images in section stack, and overcome the limitations of manual annotation of broken areas, we developed a fully automatic approach for locating and restoring the defective image stack.

Methods: We proposed a novel end-to-end framework named automatic consecutive context perceived transformer GAN (ACCP-GAN) for fully automatic serial sectioning image blind inpainting. The first stage network (auto-detection module) was designed to detect the broken areas and repair them roughly, then guided the second stage network (refined inpainting module) to generate these expected patches precisely; therefore, the segmentation part was integrated into restoring part. The transformer module (SPTransformer), based on self-attention mechanism, was introduced to make the refined inpainting module focus on the features from neighboring images to help in correcting inpainting results. Moreover, gated convolution was largely used to extract features from normal parts in the defective image. The framework was trained and validated on the N7 dataset (803 images), and the generalization ability of the model was tested on the E17 (701 images) and N5 (413 images) datasets, all of these images were collected for previous kidney study.

Results: N7 dataset was divided into training, validation, and test sets with a ratio of 6:2:2. Our model performed well in broken areas segmentation with the accuracy = 0.9995. The final restoration got the best performance with FSIM = 0.9478, MS-SSIM = 0.9592, PSNR = 29.7903, VIF = 0.8543, and FID = 47.2252 compared to the popular inpainting methods. The model was further tested on E15 and N5 datasets, and the generalization ability was satisfying.

Conclusions: Our method could detect and restore the defective serial sectioning image stack automatically, even the broken patches were large on an individual image. The newly designed SPTransformer performed well in feature extraction. This method reduced the workload of manual annotation and improved the analysis or application of large scale sectioning image stack in histology research.

Keywords: Blind inpainting; Generative adversarial networks; Serial sectioning image; Transformer.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Image Processing, Computer-Assisted*