A method for diagnosing a gastric lesion in an endoscopic image, wherein the method for diagnosing a gastric lesion in an endoscopic image includes obtaining a plurality of gastric lesion images, and generating a data set by linking the plurality of gastric lesion images and patient information Step, pre-processing the data set to be applicable to a deep learning algorithm, and constructing an artificial neural network through learning by inputting the pre-processed data set as an input and outputting an item regarding the diagnosis result of the lesion. can do.내시경 이미지에서 위 병변을 진단하는 방법에 관한 것으로서, 내시경 이미지에서 위 병변을 진단하는 방법은 복수의 위 병변 이미지를 획득하는 단계, 상기 복수의 위 병변 이미지와 환자 정보 를 연계하여 데이터 세트를 생성하는 단계, 딥러닝 알고리즘에 적용 가능하도록 상기 데이터 세트를 전처리하는 단계, 전처리 과정을 거친 상기 데이터 세트를 입력으로 하고 위 병변 진단 결과에 관한 항목을 출력으로 하는 학습을 통한 인공신경망을 구축하는 단계를 포함할 수 있다.