Endoscopic gastric cancer risk grading system, media and equipment based on artificial intelligence

By combining the endoscopic shooting distance and the artificial intelligence system for intestinal metaplasia diagnosis, the problem of inappropriate observation distance and unclear lesion characteristics during endoscopic examination is solved, and accurate endoscopic gastric cancer risk assessment and high-risk population screening are achieved .

CN118430818BActive Publication Date: 2024-10-22SHANDONG UNIV QILU HOSPITAL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410888340.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-22
Estimated Expiration
2044-07-04

Smart Images

  • Figure CN118430818B_ABST
    Figure CN118430818B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of medical image processing technology, and provides an artificial intelligence-based endoscopic gastric cancer risk grading system, medium and equipment, and its technical scheme is: obtaining endoscopic image samples; training the endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network in combination with the endoscopic image samples to obtain the trained endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network; processing the endoscopic image to be identified based on the trained endoscopic shooting distance recognition network to obtain an endoscopic image that meets the shooting distance requirements; combining the endoscopic image that meets the shooting distance requirements with the trained intestinal metaplasia severity grading network to obtain the intestinal metaplasia severity classification result. It combines the endoscopic shooting distance with the diagnosis of intestinal metaplasia diseases, can automatically identify the moderate distance of endoscopic photography, and evaluate the severity of intestinal metaplasia for standard parts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of medical image processing, and in particular relates to an artificial intelligence-based endoscopic gastric cancer risk grading system, medium and equipment. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] According to the regular pattern of chronic gastritis evolving into gastric cancer, that is, normal gastric mucosa-chronic superficial gastritis-chronic atrophic gastritis-intestinal metaplasia-intraepithelial neoplasia-gastric cancer, intestinal metaplasia, as an important precancerous state, has a certain risk of canceration. With the development of endoscopic technology, endoscopic diagnosis of gastric mucosal diseases has made great progress.

[0004] In gastric cancer risk assessment, a new endoscopic grading of gastric intestinal metaplasia (EGGIM) scoring method based on image-enhanced endoscopy (IEE) has been proposed. Although the effective application of the EGGIM endoscopic scoring system can stratify the gastric cancer risk of patients and screen out the high-risk population for gastric cancer during endoscopic examination, and then conducting targeted endoscopic examination is a more feasible screening strategy, the effective application of the EGGIM score depends largely on the experience of the endoscopist.

[0005] In addition, some progress has been made in artificial intelligence to identify the severity of intestinal metaplasia in a single image. However, during IEE endoscopic examinations, the observation distance of the endoscope may not be appropriate because the image is not taken at a moderate distance in non-magnified mode, making it difficult to accurately estimate the severity of the lesion. At the same time, the characteristics of intestinal metaplasia lesions are not obvious, and they often show similar symptoms to other gastric diseases under endoscopy, resulting in a certain inaccuracy in the assessment of the severity of the lesions. Summary of the invention

[0006] In order to solve at least one technical problem existing in the above-mentioned background technology, the present invention provides an artificial intelligence-based endoscopic gastric cancer risk grading system, medium and equipment, which combine the endoscopic shooting distance with the diagnosis of intestinal metaplasia disease, aiming to automatically identify the moderate distance of endoscopic photography during IEE endoscopic examination and evaluate the severity of intestinal metaplasia in standard parts, thereby achieving real-time endoscopic assessment of gastric cancer risk and assisting endoscopists in identifying people at high risk of gastric cancer.

[0007] In order to achieve the above object, the present invention adopts the following technical solution:

[0008] The first aspect of the present invention provides an artificial intelligence-based endoscopic gastric cancer risk grading system, comprising the following steps:

[0009] A data acquisition module, used for acquiring endoscopic image samples;

[0010] A network training module is used to train an endoscope shooting distance recognition network and an intestinal metaplasia severity grading network in combination with an endoscope image sample to obtain a trained endoscope shooting distance recognition network and an intestinal metaplasia severity grading network; wherein, when training the endoscope shooting distance recognition network and the intestinal metaplasia severity grading network, images whose endoscope shooting distance is greater than a first threshold and less than a second threshold are marked as positive samples, and images whose shooting distance is less than the first threshold or greater than the second threshold are marked as negative samples;

[0011] The risk assessment module is used to process the endoscopic images to be identified based on the trained endoscopic shooting distance recognition network to obtain endoscopic images that meet the shooting distance requirements; and to combine the endoscopic images that meet the shooting distance requirements with the trained intestinal metaplasia severity grading network to obtain the intestinal metaplasia severity classification results.

[0012] Furthermore, the system further includes a data preprocessing module, which, after acquiring the endoscopic image samples, also includes preprocessing the endoscopic image samples by using rule-based endoscopic image reconstruction, and the specific operations are as follows:

[0013] Cropping the image to remove the annotation information to obtain a first image sample;

[0014] Processing the cropped image to a uniform resolution to obtain a second image sample;

[0015] Based on the second image sample, data enhancement technology is used to obtain the third image sample by randomly rotating and flipping the data and using random index generation.

[0016] Furthermore, in the network training module, the first threshold is the minimum distance at which each part of the stomach can be identified in the endoscopic field of view, and the second threshold is the farthest distance at which specific features of the mucosa of each part of the stomach can be observed in the endoscopic field of view.

[0017] Furthermore, in the network training module, the construction process of the endoscope shooting distance recognition network includes:

[0018] The endoscopic image is input through the input layer, the distance feature of the endoscopic image is extracted through the feature extraction layer, the distance feature is restored to the channel feature information of the image through the output layer, and the channel feature is restored to probability information to output the shooting distance result;

[0019] The feature extraction layer sequentially extracts the input image through the first feature extraction layer to obtain a first resolution feature, combines the first resolution feature with the second feature extraction layer to obtain a second resolution feature, combines the second resolution feature with the third feature extraction layer to obtain a third resolution feature; combines the third resolution feature with the fourth feature extraction layer to obtain a fourth resolution feature;

[0020] Among them, the first resolution < the second resolution < the third resolution < the fourth resolution.

[0021] Furthermore, in the network training module, the construction process of the intestinal metaplasia severity grading network includes:

[0022] Endoscopic image information that meets the shooting distance requirements is received through the input layer, and then the image information is extracted through the feature extraction module to capture the deep features of the image. The feature space mapping sample labeling space is calculated through the fully connected layer, and finally the grading features of the severity of intestinal metaplasia are restored to the channel feature information of the image through the output layer, and the channel features are restored to probability information to finally output the intestinal metaplasia severity recognition result.

[0023] Furthermore, in the network training module, the endoscope shooting distance recognition network adopts the ResNet network, and the intestinal metaplasia severity recognition network adopts the VGG network.

[0024] Furthermore, the intestinal metaplasia severity classification results include: grade 0, grade 1 and grade 2, representing no intestinal metaplasia, focal intestinal metaplasia and extensive intestinal metaplasia, respectively.

[0025] Furthermore, the basis for judging whether the endoscopic image meets the shooting distance requirements is: first, the output results of the endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network; second, according to the training loss function of the endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network, if both conditions meet the set requirements, then the endoscopic image meets the shooting distance requirements.

[0026] A third aspect of the present invention provides a computer-readable storage medium.

[0027] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements:

[0028] obtaining endoscopic image samples;

[0029] The endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network are trained by combining the endoscopic image samples to obtain the trained endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network;

[0030] When training the endoscope shooting distance recognition network and the intestinal metaplasia severity grading network, images whose endoscope shooting distance is greater than a first threshold and less than a second threshold are marked as positive samples, and images whose shooting distance is less than the first threshold or greater than the second threshold are marked as negative samples;

[0031] The endoscopic image to be identified is processed based on the trained endoscopic shooting distance recognition network to obtain an endoscopic image that meets the shooting distance requirements;

[0032] The endoscopic images that met the shooting distance requirements were combined with the trained intestinal metaplasia severity grading network to obtain the intestinal metaplasia severity classification results.

[0033] A fourth aspect of the present invention provides a computer device.

[0034] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program:

[0035] obtaining endoscopic image samples;

[0036] The endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network are trained by combining the endoscopic image samples to obtain the trained endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network;

[0037] When training the endoscope shooting distance recognition network and the intestinal metaplasia severity grading network, images whose endoscope shooting distance is greater than a first threshold and less than a second threshold are marked as positive samples, and images whose shooting distance is less than the first threshold or greater than the second threshold are marked as negative samples;

[0038] The endoscopic image to be identified is processed based on the trained endoscopic shooting distance recognition network to obtain an endoscopic image that meets the shooting distance requirements;

[0039] The endoscopic images that met the shooting distance requirements were combined with the trained intestinal metaplasia severity grading network to obtain the intestinal metaplasia severity classification results.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] 1. In order to solve the problem of inaccurate assessment of the severity of lesions, the present invention takes into account the difficulty in accurately estimating the severity of lesions caused by inappropriate observation distance of the endoscope. By combining the endoscopic shooting distance with the diagnosis of intestinal metaplasia, the moderate distance of endoscopic photography can be automatically identified during the IEE endoscopic examination, and the severity of intestinal metaplasia can be assessed for standard sites, thereby improving the accuracy of real-time endoscopic assessment of gastric cancer risk.

[0042] 2. The present invention skillfully combines the endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network. In the endoscopic shooting distance recognition network, the residual network structure is used to avoid the gradient vanishing problem, and the expression ability and performance of the model are improved. In clinical applications, it alleviates the problem of doctors taking images too far or too close under the endoscope; in the intestinal metaplasia severity grading network, the convolution kernel stacking method is used, so that the network can reduce the amount of calculation and memory usage while maintaining high accuracy. In clinical applications, it improves the accuracy of doctors in identifying the severity of intestinal metaplasia lesions under endoscopy.

[0043] 3. The present invention also introduces the EGGIM scoring method, which makes it possible to evaluate the risk of early gastric cancer based on intestinal metaplasia, providing a more accurate and reliable basis for doctors' diagnosis.

[0044] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0046] Figure 1 An artificial intelligence-based endoscopic gastric cancer risk grading system provided by an embodiment of the present invention;

[0047] Figure 2 It is a schematic diagram of the network structure of endoscope shooting distance recognition provided by an embodiment of the present invention;

[0048] Figure 3 is a schematic diagram of a network structure for grading severity of intestinal metaplasia provided by an embodiment of the present invention;

[0049] Figure 4 This is a flow chart of an artificial intelligence-based endoscopic gastric cancer risk grading method provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0051] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0052] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0053] Embodiment 1

[0054] like Figure 1 As shown, this embodiment provides an artificial intelligence-based endoscopic gastric cancer risk grading system, including:

[0055] A data acquisition module, used for acquiring endoscopic image samples;

[0056] A data preprocessing module, used for preprocessing endoscope image samples;

[0057] A network training module is used to train an endoscope shooting distance recognition network and an intestinal metaplasia severity grading network in combination with endoscope image samples to obtain a trained endoscope shooting distance recognition network and an intestinal metaplasia severity grading network;

[0058] The grading module is used to process the endoscopic images to be identified based on the trained endoscopic shooting distance recognition network to obtain endoscopic images that meet the shooting distance requirements; and to combine the endoscopic images that meet the shooting distance requirements with the trained intestinal metaplasia severity grading network to obtain the intestinal metaplasia severity classification results.

[0059] In the data preprocessing module, rule-based endoscopic image reconstruction and preprocessing are adopted. The specific operations are as follows:

[0060] The initial endoscopic image contains annotation information such as shooting time, shooting mode and thumbnail display, and there are two resolutions, such as 1980×1080 and 1280×720.

[0061] Before data processing, the images are first cropped to remove annotation information, which may lead to large differences in image size. During model training, in order to ensure the generalization and stability of the model, all images are uniformly scaled to a uniform resolution, such as 224×224. In addition, data augmentation technology is used to increase data diversity through operations such as random rotation and flipping, and random index generation is used to disrupt the data order to prevent overfitting of the model.

[0062] In the network training module, based on the pre-processed endoscope images combined with the trained endoscope shooting distance recognition network, the endoscope image data set with the required distance is screened, including:

[0063] Before training the endoscope shooting distance recognition network, obtain a first training sample set: mark images whose shooting distance is greater than a first threshold and less than a second threshold as positive samples, and mark images whose shooting distance is less than the first threshold or greater than the second threshold as negative samples; that is, mark images whose shooting distance is moderate as positive samples, and mark images whose shooting distance is too far or too close as negative samples.

[0064] In this embodiment, the first threshold is the minimum distance at which various parts of the stomach can be identified in the endoscopic field of view, and the second threshold is the farthest distance at which specific features of the mucosa of various parts of the stomach can be observed in the endoscopic field of view.

[0065] like Figure 2 As shown, in this embodiment, the scope shooting distance recognition network adopts a ResNet network, and the ResNet network includes an input layer, a feature extraction layer and an output layer;

[0066] The endoscopic image is input through the input layer, the distance feature of the endoscopic image is extracted through the feature extraction layer, the distance feature is restored to the channel feature information of the image through the output layer, and the channel feature is restored to probability information to output the shooting distance result;

[0067] Next, the construction process of the endoscope shooting distance recognition network based on ResNet is described in detail:

[0068] Input layer (L1): The input of each sample is A three-dimensional matrix, where are the width and height of the endoscope image, and 3 is the number of channels.

[0069] Feature extraction layer (L2): extracts features from the original image passed into the input layer. The input is The original image color information, H is the height of the input image, W is the width of the input image, and 3 is the yellow, green, and blue channels.

[0070] The feature extraction layer extracts the input image through the first feature extraction layer in sequence to obtain a first resolution feature, combines the first resolution feature with the second feature extraction layer to obtain a second resolution feature, combines the second resolution feature with the third feature extraction layer to obtain a third resolution feature; combines the third resolution feature with the fourth feature extraction layer to obtain a fourth resolution feature;

[0071] Wherein, the first resolution < the second resolution < the third resolution < the fourth resolution;

[0072] The original image passed into the input layer undergoes a convolution with a kernel of 7×7, a stride of 2, an input channel of 3, and an output channel of 64; a maximum pooling with a size of 3×3, a stride of 2, an input channel of 64, and an output channel of 64;

[0073] The first feature extraction layer contains a convolution with a kernel Conv of 1×1, a stride of 1, 64 input channels, and 64 output channels, a convolution with a kernel Conv of 3×3, a stride of 1, 64 input channels, and 64 output channels, and a convolution with a kernel Conv of 1×1, a stride of 1, 64 input channels, and 256 output channels.

[0074] The second feature extraction layer contains a convolution with a kernel Conv of 1×1, a stride of 1, an input channel of 256, and an output channel of 128, a convolution with a kernel Conv of 3×3, a stride of 1, an input channel of 128, and an output channel of 128, and a convolution with a kernel Conv of 1×1, a stride of 1, an input channel of 128, and an output channel of 512.

[0075] The third feature extraction layer contains a convolution with a kernel Conv of 1×1, a stride of 1, an input channel of 512, and an output channel of 256, a convolution with a kernel Conv of 3×3, a stride of 1, an input channel of 256, and an output channel of 256, and a convolution with a kernel Conv of 1×1, a stride of 1, an input channel of 256, and an output channel of 1024;

[0076] The fourth feature extraction layer includes a convolution with a convolution kernel Conv of 1×1, a stride of 1, an input channel of 1024, and an output channel of 512, a convolution with a convolution kernel Conv of 3×3, a stride of 1, an input channel of 512, and an output channel of 512, and a convolution with a convolution kernel Conv of 1×1, a stride of 1, an input channel of 512, and an output channel of 2048;

[0077] The deep features of the endoscopic image are extracted through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer;

[0078] Among them, the formula for standard convolution is , Indicates the current convolution point position, {(-1,-1),(-1,0),…,(0,1),(1,1)} represents the surrounding points. for The points listed in is the network weight, For corresponding point features, the function of the feature extraction module (L2) is to obtain the deep features of the endoscopic image.

[0079] Output layer (L3): The final recognition result of the endoscope shooting distance is output through the output layer.

[0080] The deep features of the endoscopic image are sequentially passed through a fully connected layer with an input channel of 2048, an output channel of 1, and an output size of 3; a sigmoid activation layer; the activation function formula is .

[0081] The loss function included in the ResNet network constructed in this embodiment is defined as follows:

[0082] ,

[0083] in, is the output value of the network, To label the data.

[0084] The accurate recognition of shooting distance in endoscopic images is achieved by using the ResNet network model. The network uses the residual network structure to avoid the gradient vanishing problem and improve the model's expression ability and performance. In clinical applications, it alleviates the problem of doctors taking images too far or too close under endoscopy.

[0085] In the grading module, the screened endoscopic image dataset and the intestinal metaplasia severity recognition network are combined to obtain the severity of intestinal metaplasia, including:

[0086] like Figure 3 As shown, in this embodiment, the intestinal metaplasia severity recognition network adopts a VGG network, and the VGG network includes an input layer, a feature extraction layer and an output layer;

[0087] Endoscopic image information that meets the shooting distance requirements is received through the input layer, and then the image information is extracted through the feature extraction module to capture the deep features of the image; the feature space mapping sample label space is calculated through the fully connected layer to reduce the influence of the feature position on the severity recognition of intestinal metaplasia lesions; finally, the grading features of the severity of intestinal metaplasia are restored to the channel feature information of the image through the output layer, and the channel features are restored to probability information to finally output the intestinal metaplasia severity recognition result.

[0088] Before training the scope shooting distance recognition network, obtain a second training sample, mark the images in the training sample whose shooting distance is greater than the first threshold and less than the second threshold as positive samples, and mark the images whose shooting distance is less than the first threshold or greater than the second threshold as negative samples;

[0089] Next, the construction process of the intestinal metaplasia severity grading network based on the VGG network is described in detail:

[0090] Input layer (L1): The input of each sample is A three-dimensional matrix, where is the width and height of the second training sample image, and 3 is the number of channels.

[0091] Feature extraction layer (L2): extracts features from the original image passed into the input layer. The input is The original image color information, H is the height of the input image, W is the width of the input image, and 3 is the yellow, green, and blue channels.

[0092] The original image passed into the input layer is sequentially subjected to two convolutions with a convolution kernel of 3×3, a stride of 1, an input channel of 3, and an output channel of 64; and a maximum pooling of 2×2, a stride of 2, an input channel of 64, and an output channel of 64;

[0093] Two convolution kernels conv2 are 3×3, with a stride of 1, 64 input channels, and 128 output channels;

[0094] A max pooling with a size of 2×2, a stride of 2, 128 input channels, and 128 output channels;

[0095] The three convolution kernels conv3 are 3×3, the stride is 1, the input channel is 128, and the output channel is 256;

[0096] A maximum pooling of size 2×2, stride 2, input channels 256, and output channels 256;

[0097] Three convolution kernels conv4 with a size of 3×3, a stride of 1, an input channel of 256, and an output channel of 512; a maximum pooling with a size of 2×2, a stride of 2, an input channel of 512, and an output channel of 512;

[0098] The three convolution kernels conv5 are 3×3, the stride is 1, the input channel is 512, and the output channel is 512;

[0099] A maximum pooling of size 2×2, stride 2, input channels 512, and output channels 512;

[0100] Among them, the formula for standard convolution is , Indicates the current convolution point position, for The surrounding points listed in is the network weight, X is the corresponding point feature, and the function of the feature extraction module (L2) is to obtain the deep features of the endoscopic image.

[0101] Output layer (L3): The input of this layer is the output features of L2. The main function of the output layer L3 is to output the final recognition result of the endoscope shooting distance. The information passes through two 1×1×4096 fully connected layers fc6 and fc7; a 1×1×1000 fully connected layer fc8; a softmax function; a sigmoid activation layer; the activation function formula is .

[0102] The loss function included in the VGG network constructed in this embodiment is defined as follows:

[0103] ,

[0104] in, is the output value of the network, To label the data.

[0105] In order to speed up the convergence of the network, the weights and biases of each layer of the above two networks are randomized to a normal distribution with a mean of 0 and a variance of ,in is the number of upper-layer features. The loss function is defined using the cross entropy function.

[0106] At the same time, the Adam optimizer and gradient descent algorithm are used in PyTorch to adjust the connection weights and biases. The maximum number of iterations is set to 100 and the loss threshold is set to 0.0001.

[0107] Ultimately, the basis for judging whether an endoscopic image meets the shooting distance requirements is: first, the output results of the endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network meet the set requirements; second, the training loss functions of the endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network meet the set requirements.

[0108] If both conditions are met, the endoscope image meets the shooting distance requirement.

[0109] In this embodiment, the classification results of the severity of intestinal metaplasia include: grade 0, grade 1 and grade 2, which respectively represent no intestinal metaplasia, focal intestinal metaplasia and extensive intestinal metaplasia.

[0110] The method further includes, based on the intestinal metaplasia severity grading result, using the gastrointestinal metaplasia grading EGGIM score to obtain a risk level assessment result, specifically including:

[0111] No intestinal metaplasia was scored as 0 points, focal intestinal metaplasia (≤30% of the area) was scored as 1 point, and extensive intestinal metaplasia (>30% of the area) was scored as 2 points, with a total score of 10 points. Subsequently, the severity scores of intestinal metaplasia in the five gastric images of the patient were added together. When the score was greater than or equal to 5 points, the patient was judged as a high-risk patient. When the score was less than 5 points, the patient was judged as a low-risk patient.

[0112] Embodiment 2

[0113] like Figure 4 As shown, this embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the following is achieved:

[0114] S101, obtaining an endoscope image sample;

[0115] S102, training an endoscope shooting distance recognition network and an intestinal metaplasia severity grading network in combination with the endoscope image samples to obtain trained endoscope shooting distance recognition network and intestinal metaplasia severity grading network;

[0116] When training the endoscope shooting distance recognition network and the intestinal metaplasia severity grading network, images whose endoscope shooting distance is greater than a first threshold and less than a second threshold are marked as positive samples, and images whose shooting distance is less than the first threshold or greater than the second threshold are marked as negative samples;

[0117] S103, processing the endoscope image to be identified based on the trained endoscope shooting distance recognition network to obtain an endoscope image that meets the shooting distance requirement;

[0118] S104. Combining the endoscopic image that meets the shooting distance requirement with the trained intestinal metaplasia severity grading network, obtain an intestinal metaplasia severity classification result.

[0119] Embodiment 3

[0120] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the following is achieved:

[0121] S101, obtaining an endoscope image sample;

[0122] S102, training an endoscope shooting distance recognition network and an intestinal metaplasia severity grading network in combination with the endoscope image samples to obtain trained endoscope shooting distance recognition network and intestinal metaplasia severity grading network;

[0123] When training the endoscope shooting distance recognition network and the intestinal metaplasia severity grading network, images whose endoscope shooting distance is greater than a first threshold and less than a second threshold are marked as positive samples, and images whose shooting distance is less than the first threshold or greater than the second threshold are marked as negative samples;

[0124] S103, processing the endoscope image to be identified based on the trained endoscope shooting distance recognition network to obtain an endoscope image that meets the shooting distance requirement;

[0125] S104. Combining the endoscopic image that meets the shooting distance requirement with the trained intestinal metaplasia severity grading network, obtain an intestinal metaplasia severity classification result.

[0126] Embodiment 4

[0127] This embodiment provides a program product, which is a computer program product, including a computer program. When the computer program is executed by a processor, the following is achieved:

[0128] S101, obtaining an endoscope image sample;

[0129] S102, training an endoscope shooting distance recognition network and an intestinal metaplasia severity grading network in combination with the endoscope image samples to obtain trained endoscope shooting distance recognition network and intestinal metaplasia severity grading network;

[0130] When training the endoscope shooting distance recognition network and the intestinal metaplasia severity grading network, images whose endoscope shooting distance is greater than a first threshold and less than a second threshold are marked as positive samples, and images whose shooting distance is less than the first threshold or greater than the second threshold are marked as negative samples;

[0131] S103, processing the endoscope image to be identified based on the trained endoscope shooting distance recognition network to obtain an endoscope image that meets the shooting distance requirement;

[0132] S104. Combining the endoscopic image that meets the shooting distance requirement with the trained intestinal metaplasia severity grading network, obtain an intestinal metaplasia severity classification result.

[0133] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An artificial intelligence-based endoscopic gastric cancer risk grading system, characterized by: include: A data acquisition module, used for acquiring endoscopic image samples; A network training module is used to train an endoscope shooting distance recognition network and an intestinal metaplasia severity grading network in combination with an endoscope image sample to obtain a trained endoscope shooting distance recognition network and an intestinal metaplasia severity grading network; wherein, when training the endoscope shooting distance recognition network and the intestinal metaplasia severity grading network, images whose endoscope shooting distance is greater than a first threshold and less than a second threshold are marked as positive samples, and images whose shooting distance is less than the first threshold or greater than the second threshold are marked as negative samples; In the network training module, the construction process of the endoscope shooting distance recognition network includes: inputting the endoscope image through the input layer, extracting the distance feature of the endoscope image through the feature extraction layer, restoring the distance feature to the channel feature information of the image through the output layer, and restoring the channel feature to probability information to output the shooting distance result; The endoscope shooting distance recognition network extracts deep features of the endoscope image through the first, second, third and fourth feature extraction layers; wherein the feature extraction layer extracts the input image through the first feature extraction layer in sequence to obtain a first resolution feature, combines the first resolution feature with the second feature extraction layer to obtain a second resolution feature, combines the second resolution feature with the third feature extraction layer to obtain a third resolution feature; combines the third resolution feature with the fourth feature extraction layer to obtain a fourth resolution feature; wherein the first resolution < the second resolution < the third resolution < the fourth resolution; In the network training module, the first threshold is the minimum distance at which each part of the stomach can be identified in the endoscopic field of view, and the second threshold is the farthest distance at which the specific features of the mucosa of each part of the stomach can be observed in the endoscopic field of view; The grading module is used to process the endoscopic image to be identified based on the trained endoscopic shooting distance recognition network to obtain an endoscopic image that meets the shooting distance requirements; and to combine the endoscopic image that meets the shooting distance requirements with the trained intestinal metaplasia severity grading network to obtain an intestinal metaplasia severity classification result; The basis for judging whether an endoscopic image meets the shooting distance requirements is: first, the output results of the endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network; second, according to the training loss function of the endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network, if both conditions meet the set requirements, then the endoscopic image meets the shooting distance requirements.

2. The artificial intelligence-based endoscopic gastric cancer risk grading system according to claim 1, characterized in that: The system also includes a data preprocessing module, which, after acquiring the endoscopic image samples, also includes preprocessing the endoscopic image samples by using rule-based endoscopic image reconstruction, and the specific operations are as follows: Cropping the image to remove the annotation information to obtain a first image sample; Processing the cropped image to a uniform resolution to obtain a second image sample; Based on the second image sample, data enhancement technology is used to obtain the third image sample by randomly rotating and flipping the data and using random index generation.

3. The artificial intelligence-based endoscopic gastric cancer risk grading system according to claim 1, characterized in that: In the network training module, the construction process of the intestinal metaplasia severity grading network includes: Endoscopic image information that meets the shooting distance requirements is received through the input layer, and then the image information is extracted through the feature extraction module to capture the deep features of the image. The feature space mapping sample labeling space is calculated through the fully connected layer, and finally the grading features of the severity of intestinal metaplasia are restored to the channel feature information of the image through the output layer, and the channel features are restored to probability information to finally output the intestinal metaplasia severity recognition result.

4. The artificial intelligence-based endoscopic gastric cancer risk grading system according to claim 1, characterized in that: In the network training module, the endoscope shooting distance recognition network uses the ResNet network, and the intestinal metaplasia severity recognition network uses the VGG network.

5. The artificial intelligence-based endoscopic gastric cancer risk grading system according to claim 1, characterized in that: The intestinal metaplasia severity classification results include: grade 0, grade 1 and grade 2, representing no intestinal metaplasia, focal intestinal metaplasia and extensive intestinal metaplasia, respectively.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, it achieves: obtaining endoscopic image samples; The endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network are trained by combining the endoscopic image samples to obtain the trained endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network; When training the endoscope shooting distance recognition network and the intestinal metaplasia severity grading network, images whose endoscope shooting distance is greater than a first threshold and less than a second threshold are marked as positive samples, and images whose shooting distance is less than the first threshold or greater than the second threshold are marked as negative samples; The endoscopic image to be identified is processed based on the trained endoscopic shooting distance recognition network to obtain an endoscopic image that meets the shooting distance requirements; Combining the endoscopic images that meet the shooting distance requirements with the trained intestinal metaplasia severity classification network, the intestinal metaplasia severity classification results are obtained; The construction process of the endoscope shooting distance recognition network includes: inputting the endoscope image through the input layer, extracting the distance feature of the endoscope image through the feature extraction layer, restoring the distance feature to the channel feature information of the image through the output layer, and restoring the channel feature to probability information to output the shooting distance result; The endoscope shooting distance recognition network extracts deep features of the endoscope image through the first, second, third and fourth feature extraction layers; wherein the feature extraction layer extracts the input image through the first feature extraction layer in sequence to obtain a first resolution feature, combines the first resolution feature with the second feature extraction layer to obtain a second resolution feature, combines the second resolution feature with the third feature extraction layer to obtain a third resolution feature; combines the third resolution feature with the fourth feature extraction layer to obtain a fourth resolution feature; wherein the first resolution < the second resolution < the third resolution < the fourth resolution; The first threshold is the minimum distance at which each part of the stomach can be identified in the endoscopic field of view, and the second threshold is the maximum distance at which specific features of the mucosa of each part of the stomach can be observed in the endoscopic field of view; The basis for judging whether an endoscopic image meets the shooting distance requirements is: first, the output results of the endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network; second, according to the training loss function of the endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network, if both conditions meet the set requirements, then the endoscopic image meets the shooting distance requirements.

7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the following is achieved: obtaining endoscopic image samples; The endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network are trained by combining the endoscopic image samples to obtain the trained endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network; When training the endoscope shooting distance recognition network and the intestinal metaplasia severity grading network, images whose endoscope shooting distance is greater than a first threshold and less than a second threshold are marked as positive samples, and images whose shooting distance is less than the first threshold or greater than the second threshold are marked as negative samples; The endoscopic image to be identified is processed based on the trained endoscopic shooting distance recognition network to obtain an endoscopic image that meets the shooting distance requirements; Combining the endoscopic images that meet the shooting distance requirements with the trained intestinal metaplasia severity classification network, the intestinal metaplasia severity classification results are obtained; The construction process of the endoscope shooting distance recognition network includes: inputting the endoscope image through the input layer, extracting the distance feature of the endoscope image through the feature extraction layer, restoring the distance feature to the channel feature information of the image through the output layer, and restoring the channel feature to probability information to output the shooting distance result; The endoscope shooting distance recognition network extracts deep features of the endoscope image through the first, second, third and fourth feature extraction layers; wherein the feature extraction layer extracts the input image through the first feature extraction layer in sequence to obtain a first resolution feature, combines the first resolution feature with the second feature extraction layer to obtain a second resolution feature, combines the second resolution feature with the third feature extraction layer to obtain a third resolution feature; combines the third resolution feature with the fourth feature extraction layer to obtain a fourth resolution feature; wherein the first resolution < the second resolution < the third resolution < the fourth resolution; The first threshold is the minimum distance at which each part of the stomach can be identified in the endoscopic field of view, and the second threshold is the maximum distance at which specific features of the mucosa of each part of the stomach can be observed in the endoscopic field of view; The basis for judging whether an endoscopic image meets the shooting distance requirements is: first, the output results of the endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network; second, according to the training loss function of the endoscopic shooting distance recognition network and the intestinal metaplasia severity grading network, if both conditions meet the set requirements, then the endoscopic image meets the shooting distance requirements.