# Virtual NBI image synthesis using stable diffusion for enhanced recognition of early gastric cancer: a technical validation study

**Authors:** Changda Lei, Xiuji Kan, Yifan Ouyang, Yutong Mei, Yunbo Guo, Kaicheng Hong, Junbo Li, Bilin Wang, Rui Li

PMC · DOI: 10.1080/07853890.2025.2523565 · 2025-06-28

## TL;DR

This study uses stable diffusion to convert white light endoscopy images into virtual NBI images, improving early gastric cancer detection accuracy for endoscopists.

## Contribution

A novel method for generating virtual NBI images using stable diffusion to enhance early gastric cancer diagnosis.

## Key findings

- Virtual NBI images improved diagnostic accuracy compared to white light endoscopy images.
- Junior endoscopists showed increased accuracy when using virtual NBI images.
- Virtual NBI images achieved higher area concordance and whole-lesion diagnosis rates than white light endoscopy.

## Abstract

Narrow band imaging (NBI) can assist endoscopists in detecting early gastric cancer (EGC) more easily, but its widespread use is hindered by economic cost and technical property rights. We aim to realize the conversion of white light endoscopy (WLE) images into virtual narrow band imaging (Vir–NBI) images using stable diffusion.

Endoscopic images were retrospectively collected from 325 patients who underwent endoscopic submucosal dissection (ESD). A total of 273 NBI images from 218 patients were used to fine-tune stable diffusion, which then converted 111 WLE images from 107 patients into Vir–NBI images. Endoscopists assessed the images and evaluated their effectiveness in diagnosing EGC and depicting lesion margins in the form of WLE, NBI, and Vir–NBI image pairs.

Compared with WLE images, Vir-NBI images have better quality. The accuracy of junior endoscopists in diagnosing EGC by observing WLE images alone, simultaneous WLE and NBI images, and simultaneous WLE and Vir–NBI images were 61.26%, 79.28% and 81.08%, respectively. For intermediate endoscopists, the diagnostic accuracy was 72.07%, 86.79% and 84.68%, respectively. For senior endoscopists, the diagnostic accuracy was 80.18%, 95.50% and 92.79%, respectively. In addition,Vir-NBI images had higher area concordance rate andsuccessful whole-lesion diagnosis than WLE images (43.85% vs 39.32%, p < 0.001) (45.33% vs 32.87%, p < 0.001).

Vir–NBI images has similar observation effect with real NBI image, which helps endoscopists better visualize the lesion structure, thus improving the accuracy of EGC diagnosis.

## Linked entities

- **Diseases:** early gastric cancer (MONDO:0001060)

## Full-text entities

- **Diseases:** EGC (MESH:D013274)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Figures

7 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12207768/full.md

---
Source: https://tomesphere.com/paper/PMC12207768