To develop deep learning through a CNN to detect early and advanced gastric cancer, we constructed an Al-based diagnostic system that was trained by more than 13,000 images of EGD. We then tested the diagnostic accuracy of this system to detect gastric cancer.