Method and system for identifying images of endoscope in lower digestive tract
Technical Field
The disclosure belongs to the field of digestive tract endoscope image identification, and particularly relates to a lower digestive tract endoscope image identification method and system.
Background
The statements in this section merely provide background information related to the present disclosure and may not necessarily constitute prior art.
Lower gastrointestinal endoscopy often requires determining where in the colon and rectum a lesion is located. The inventor finds that most of the current lower gastrointestinal endoscopy is human eye observation, and the lesion part cannot be accurately judged. For example, multiple polyps in the lower alimentary tract are found by inspection with the human eye, but cannot be accurately determined whether they are located in the ascending colon, the transverse colon, or the descending or sigmoid colon;
in addition, some parts may be missed during lower gastrointestinal endoscopy, for example, the image quality of a certain part is poor due to the slippery body or the poor filling of the intestinal lumen, so that the lower gastrointestinal endoscopy quality is affected, and the possibility of missed diagnosis of lesions is caused.
Disclosure of Invention
In order to solve the above problems, the present disclosure provides a method and a system for recognizing an image of a lower gastrointestinal endoscope, which can accurately determine a cecum at an endoscope entry end point of the lower gastrointestinal endoscope and recognize a part to which an image acquired in a lower gastrointestinal endoscope withdrawal process belongs in real time.
In order to achieve the purpose, the following technical scheme is adopted in the disclosure:
a first aspect of the present disclosure provides a lower alimentary canal endoscope image recognition method, including:
acquiring a lower digestive tract part image, marking a class to be identified and an auxiliary class for identifying an interference image, and dividing the class into a training set and a testing set; the category to be identified comprises a primary category and a secondary category, and the secondary category belongs to a subcategory of the primary category;
training and testing a lower digestive tract part recognition model A and a lower digestive tract part recognition model B by utilizing a training set and a testing set; the lower digestive tract part identification model A is used for identifying a primary class and an auxiliary class, and the lower digestive tract part identification model B is used for identifying a secondary class;
in the process of endoscope entering operation, if the trained lower gastrointestinal tract part recognition model A recognizes that the type of the current lower gastrointestinal tract endoscope image is a cecum in a first-class category, and the probability that the cecum exists in N continuous non-similar images exceeds a preset threshold value, starting endoscope withdrawing operation; n is a positive integer greater than or equal to 3;
in the process of endoscope withdrawal operation, real-time detection is carried out on an endoscope image of the alimentary tract based on a lower alimentary tract part identification model A and a lower alimentary tract part identification model B, images belonging to auxiliary categories are excluded, and if the probability that the continuous N non-similar images are all in the same category exceeds a preset threshold value, a primary category and a secondary category to which the images belong are output.
A second aspect of the present disclosure provides a lower gastrointestinal endoscope image recognition system, comprising:
the image marking module is used for acquiring the lower digestive tract part image, marking the category to be identified and the auxiliary category for identifying the interference image, and dividing the category into a training set and a testing set; the category to be identified comprises a primary category and a secondary category, and the secondary category belongs to a subcategory of the primary category;
a model training module for training and testing a lower digestive tract part recognition model A and a lower digestive tract part recognition model B by using a training set and a test set; the lower digestive tract part identification model A is used for identifying a primary class and an auxiliary class, and the lower digestive tract part identification model B is used for identifying a secondary class;
a withdrawal operation starting judgment module, which is used for starting withdrawal operation if the trained lower gastrointestinal tract part recognition model A recognizes that the type of the current lower gastrointestinal tract endoscope image is a cecum in a first-class type and the probability that the cecum exists in the continuous N non-similar images exceeds a preset threshold value in the process of the retraction operation; n is a positive integer greater than or equal to 3;
and the image real-time identification module is used for detecting the endoscope image of the alimentary canal in real time based on the lower alimentary canal part identification model A and the lower alimentary canal part identification model B in the process of endoscope withdrawal operation, eliminating the images belonging to the auxiliary category, and outputting the primary category and the secondary category to which the images belong if the probability that the N continuous non-similar images are all in the same category exceeds a preset threshold value.
A third aspect of the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps in the lower gastrointestinal endoscope image recognition method as described above.
A fourth aspect of the present disclosure provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the lower alimentary canal endoscope image recognition method as described above when executing the program.
The beneficial effects of this disclosure are:
(1) the method comprises the steps of obtaining a lower digestive tract part image and marking a category to be identified and an auxiliary category for identifying an interference image; the category to be identified comprises a primary category and a secondary category, and the secondary category belongs to a subcategory of the primary category; the lower digestive tract part identification model A is trained by using the lower digestive tract part images marked with the auxiliary categories and the lower digestive tract part images marked with the primary categories, so that the influence of blurred images, defocused images, reflection artifacts, residual sundries, effusion and the like on image identification is reduced, and the accuracy of lower digestive tract part identification is improved; training a lower digestive tract part recognition model B by marking a lower digestive tract part image of a secondary category, and using a two-stage recognition model to improve the recognition accuracy;
(2) the method also utilizes the probability that the continuous N non-similar images are in the same category and exceeds a preset threshold value as the final category of the images, so as to determine the position reached by the current endoscope head, and improve the accuracy of the position judgment of the endoscope head;
(3) this openly can each anatomical site under intelligent recognition among the alimentary canal endoscopy to with its sign, be convenient for confirm its place colorectal part after discovering pathological change under the endoscope, can discern the interference image and get rid of through alimentary canal position recognition model A down moreover, do not carry out one-level classification and secondary classification, for example: the endoscope inspection quality of the lower digestive tract is guaranteed due to the fact that the endoscope body slips or is poor in filling, the detection rate of pathological changes is improved, the anatomical part where the pathological changes are located can be identified in real time to be marked in time, follow-up treatment and follow-up visit of a patient are facilitated, and the computer-assisted endoscope inspection quality is guaranteed.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure and are not to limit the disclosure.
FIG. 1 is a flow chart of a method for identifying images of a lower alimentary canal endoscope provided by an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a lower gastrointestinal endoscope image recognition system provided in an embodiment of the present disclosure.
Detailed Description
The present disclosure is further described with reference to the following drawings and examples.
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present disclosure. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
Example 1
Fig. 1 is a flowchart of a lower ablation tract endoscope image recognition method according to the embodiment.
The following describes in detail the specific implementation process of the lower alimentary canal endoscope image recognition method according to this embodiment with reference to fig. 1:
as shown in fig. 1, a method for recognizing an image of a lower alimentary canal endoscope of the present embodiment at least includes:
step S101: acquiring a lower digestive tract part image, marking a class to be identified and an auxiliary class for identifying an interference image, and dividing the class into a training set and a testing set; the category to be identified comprises a first-level category and a second-level category, and the second-level category belongs to a sub-category of the first-level category.
In a specific implementation, the first class includes ileocecal valve, colon, sigmoid colon, and rectum; the secondary classes belong to the sub-classes of the colon, including ascending, transverse and descending; the auxiliary category is a preset interference image category and is used for eliminating interference images;
the auxiliary categories comprise appendix opening, effusion, lens distance smaller than a preset value from the intestinal wall, lens shielding, intestinal cavity contraction, incomplete intestinal cavity and fuzziness.
For all cases during the following examination of the digestive tract, specific classifications are shown, for example, in table 1:
TABLE 1 image Classification and selection principles
The intestinal cavity is poor in inspiration or inflation and good in inflation, and can be judged according to the air volume in the intestinal cavity.
In the embodiment, the category to be detected is the category to be identified for the lower digestive tract examination, and since the background of the lower digestive tract image is single and is easily interfered by special factors, the addition of the auxiliary category is beneficial to eliminating the interference, and the effective image is more accurately screened.
The first class is a primary judgment, and the second class is a secondary judgment by using a fine-grained classification network because the similarity of ascending, transverse and descending colon is too high so as to improve the identification accuracy.
Step S102: training and testing a lower digestive tract part recognition model A and a lower digestive tract part recognition model B by utilizing a training set and a testing set; the lower digestive tract part recognition model A is used for recognizing the primary category and the auxiliary category, and the lower digestive tract part recognition model B is used for recognizing the secondary category.
In specific implementation, the lower digestive tract part identification model A adopts an image classification model provided by a deep learning framework Keras application module;
keras is a highly modular, written in pure Python and backend with Tensorflow, Theano, and CNTK. Keras was generated to support rapid experiments. Keras understands a model as a working graph of sequences or data of one layer, and fully configurable modules can be freely combined together with minimum cost and are also easy to expand.
And (2) training the local area in a characteristic supervision mode by using a multi-branch structure and simultaneously utilizing local information and global information of the lower digestive tract endoscope image in the training set through a fine-grained classification network DFL-CNN (learning a cognitive Filter Bank with a CNN), so as to obtain a lower digestive tract part identification model B.
For the fine-grained classification network DFL-CNN: global information is also crucial for fine-grained classification. One branch is needed to decode the global information. I.e. the normal conv + fc layer. And then selecting a proper higher-layer convolution, and separating out another branch to strengthen mid-level capability and pay attention to local information. The method can accurately locate the key area with resolution and extract effective features from the detected key area for classification.
Step S103: in the process of endoscope entering operation, if the trained lower digestive tract part recognition model A recognizes that the type of the current lower digestive tract endoscope image is a cecum in a first-class category and the probability that the continuous N non-similar images are cecum exceeds a preset threshold (such as 0.8 or 0.9), starting endoscope withdrawing operation; n is a positive integer greater than or equal to 3.
Because the lower digestive tract identification difficulty is high, the part of the single image cannot be accurately judged, and the identification is carried out by adopting a continuous multi-frame non-similar image combined judgment mode.
The specific logic is as follows:
the images collected in the checking process are judged in real time through a lower digestive tract part identification model A, after auxiliary class images are eliminated, similarity comparison is carried out on the continuously identified class images to be detected, and if N continuous non-similar images belong to the same class to be detected, a lens is considered to arrive at the part.
And the similarity calculation logic generates a hash sequence through a mean hash algorithm and calculates a Hamming distance, and when the Hamming distance is greater than a set threshold value, the image is judged to be a non-similar image. The correlation algorithm is as follows:
(a) mean value hash algorithm
Zooming: the picture is scaled to 8 x 8, the structure is preserved, and the details are removed.
Graying: and converting into a 256-step gray scale map.
And (3) averaging: the average of all pixels of the gray map is calculated.
And (3) comparison: the pixel value greater than the average is noted as 1 and conversely as 0 for a total of 64 bits.
Generating a hash: and combining the 1 and 0 generated in the steps in sequence.
(b) Hamming distance calculation
The Hamming Distance/Hamming Distance is used for calculating the similarity of two vectors; that is, by comparing whether each bit of the vector is the same or not, if different, the hamming distance is added by 1, so as to obtain the hamming distance. The higher the vector similarity, the smaller the corresponding hamming distance. For example, positions 10001001 and 10110001 differ by 3.
The lower gastrointestinal examination is divided into two stages of endoscope entering and endoscope withdrawing, the endoscope entering stage does not need to be identified, and the critical point for distinguishing the endoscope entering and the endoscope withdrawing is whether the lens reaches the cecum or not, so the identification accuracy of the cecum is particularly important.
Combining the lower digestive tract part identification model A, and simultaneously reducing the error rate of the blind returning valve identification as much as possible by increasing the threshold, for example, the threshold is set to be 0.9, which means that the output probability of the current frame image model exceeds 90% before the blind returning valve is considered to be reached.
Step S104: in the process of endoscope withdrawal operation, real-time detection is carried out on an endoscope image of the alimentary tract based on a lower alimentary tract part identification model A and a lower alimentary tract part identification model B, images belonging to auxiliary categories are excluded, and if the probability that the continuous N non-similar images are all in the same category exceeds a preset threshold value, a primary category and a secondary category to which the images belong are output.
In a specific implementation, when the lower gastrointestinal tract endoscope image is identified by using the lower gastrointestinal tract part identification model a and the category to which the lower gastrointestinal tract endoscope image belongs is output as a colon, after the auxiliary category image is excluded, if the probability that the N consecutive non-similar images simultaneously belong to the colon exceeds a first preset threshold (for example, 0.9), the lower gastrointestinal tract endoscope image is secondarily judged by using the lower gastrointestinal tract part identification model B, and when the probability that the N consecutive non-similar images output as the same secondary category exceeds a second preset threshold (for example, 0.8), the lens is judged to have reached the secondary category part.
It should be noted that, in other embodiments, the values of the first preset threshold and the second preset threshold may be selectively set by a person skilled in the art according to actual situations.
The embodiment acquires the lower digestive tract part image and marks out the category to be identified and the auxiliary category for identifying the interference image; the category to be identified comprises a primary category and a secondary category, and the secondary category belongs to a subcategory of the primary category; the lower digestive tract part identification model A is trained by using the lower digestive tract part images marked with the auxiliary categories and the lower digestive tract part images marked with the primary categories, so that the influence of blurred images, defocused images, reflection artifacts, residual sundries, effusion and the like on image identification is reduced, and the accuracy of lower digestive tract part identification is improved; training a lower digestive tract part recognition model B by marking a lower digestive tract part image of a secondary category, and using a two-stage recognition model to improve the recognition accuracy;
in the embodiment, the probability that the N continuous non-similar images are in the same category exceeds a preset threshold value is used as the final category of the image, so that the position where the current endoscope head reaches is determined, and the accuracy of judging the position of the endoscope head is improved;
this embodiment can each anatomical site under intelligent recognition among the alimentary canal endoscopy to with its sign, discover under the endoscope that it is convenient for confirm its colorectal part of place after the pathological change, can discern the interference image and get rid of through alimentary canal position recognition model A down moreover, do not carry out one-level classification and secondary classification, for example: the endoscope inspection quality of the lower digestive tract is guaranteed due to the fact that the endoscope body slips or is poor in filling, the detection rate of pathological changes is improved, the anatomical part where the pathological changes are located can be identified in real time to be marked in time, follow-up treatment and follow-up visit of a patient are facilitated, and the computer-assisted endoscope inspection quality is guaranteed.
Example 2
Fig. 2 is a schematic structural diagram of a lower gastrointestinal endoscope image recognition system according to the present embodiment.
The following describes the structural components of the lower gastrointestinal endoscope image recognition system of the present embodiment in detail with reference to fig. 2:
as shown in fig. 2, the lower gastrointestinal endoscope image recognition system of the present embodiment at least includes:
(1) the image marking module is used for acquiring the lower digestive tract part image, marking the category to be identified and the auxiliary category for identifying the interference image, and dividing the category into a training set and a testing set; the category to be identified comprises a first-level category and a second-level category, and the second-level category belongs to a sub-category of the first-level category.
In a specific implementation, the first class includes ileocecal valve, colon, sigmoid colon, and rectum; the secondary classes belong to the sub-classes of the colon, including ascending, transverse and descending; the auxiliary category is a preset interference image category and is used for eliminating interference images;
the auxiliary categories comprise appendix opening, effusion, lens distance smaller than a preset value from the intestinal wall, lens shielding, intestinal cavity contraction, incomplete intestinal cavity and fuzziness.
For all cases during the following examination of the digestive tract, specific classifications are shown, for example, in table 1:
TABLE 1 image Classification and selection principles
The intestinal cavity is poor in inspiration or inflation and good in inflation, and can be judged according to the air volume in the intestinal cavity.
In the embodiment, the category to be detected is the category to be identified for the lower digestive tract examination, and since the background of the lower digestive tract image is single and is easily interfered by special factors, the addition of the auxiliary category is beneficial to eliminating the interference, and the effective image is more accurately screened.
The first class is a primary judgment, and the second class is a secondary judgment by using a fine-grained classification network because the similarity of ascending, transverse and descending colon is too high so as to improve the identification accuracy.
(2) A model training module for training and testing a lower digestive tract part recognition model A and a lower digestive tract part recognition model B by using a training set and a test set; the lower digestive tract part recognition model A is used for recognizing the primary category and the auxiliary category, and the lower digestive tract part recognition model B is used for recognizing the secondary category.
In specific implementation, the lower digestive tract part identification model A adopts an image classification model provided by a deep learning framework Keras application module;
keras is a highly modular, written in pure Python and backend with Tensorflow, Theano, and CNTK. Keras was generated to support rapid experiments. Keras understands a model as a working graph of sequences or data of one layer, and fully configurable modules can be freely combined together with minimum cost and are also easy to expand.
And (2) training the local area in a characteristic supervision mode by using a multi-branch structure and simultaneously utilizing local information and global information of the lower digestive tract endoscope image in the training set through a fine-grained classification network DFL-CNN (learning a cognitive Filter Bank with a CNN), so as to obtain a lower digestive tract part identification model B.
For the fine-grained classification network DFL-CNN: global information is also crucial for fine-grained classification. One branch is needed to decode the global information. I.e. the normal conv + fc layer. And then selecting a proper higher-layer convolution, and separating out another branch to strengthen mid-level capability and pay attention to local information. The method can accurately locate the key area with resolution and extract effective features from the detected key area for classification.
(3) A withdrawal operation starting judgment module, configured to, in a process of a retraction operation, start a withdrawal operation if the trained lower gastrointestinal tract part recognition model a recognizes that the type of the current lower gastrointestinal tract endoscopic image is a cecum in a first-class category and a probability that all of N consecutive non-similar images are cecum exceeds a preset threshold (e.g., 0.8 or 0.9); n is a positive integer greater than or equal to 3.
Because the lower digestive tract identification difficulty is high, the part of the single image cannot be accurately judged, and the identification is carried out by adopting a continuous multi-frame non-similar image combined judgment mode.
The specific logic is as follows:
the images collected in the checking process are judged in real time through a lower digestive tract part identification model A, after auxiliary class images are eliminated, similarity comparison is carried out on the continuously identified class images to be detected, and if N continuous non-similar images belong to the same class to be detected, a lens is considered to arrive at the part.
And the similarity calculation logic generates a hash sequence through a mean hash algorithm and calculates a Hamming distance, and when the Hamming distance is greater than a set threshold value, the image is judged to be a non-similar image. The correlation algorithm is as follows:
(a) mean value hash algorithm
Zooming: the picture is scaled to 8 x 8, the structure is preserved, and the details are removed.
Graying: and converting into a 256-step gray scale map.
And (3) averaging: the average of all pixels of the gray map is calculated.
And (3) comparison: the pixel value greater than the average is noted as 1 and conversely as 0 for a total of 64 bits.
Generating a hash: and combining the 1 and 0 generated in the steps in sequence.
(b) Hamming distance calculation
The Hamming Distance/Hamming Distance is used for calculating the similarity of two vectors; that is, by comparing whether each bit of the vector is the same or not, if different, the hamming distance is added by 1, so as to obtain the hamming distance. The higher the vector similarity, the smaller the corresponding hamming distance. For example, positions 10001001 and 10110001 differ by 3.
The lower gastrointestinal examination is divided into two stages of endoscope entering and endoscope withdrawing, the endoscope entering stage does not need to be identified, and the critical point for distinguishing the endoscope entering and the endoscope withdrawing is whether the lens reaches the cecum or not, so the identification accuracy of the cecum is particularly important.
Combining the lower digestive tract part identification model A, and simultaneously reducing the error rate of the blind returning valve identification as much as possible by increasing the threshold, for example, the threshold is set to be 0.9, which means that the output probability of the current frame image model exceeds 90% before the blind returning valve is considered to be reached.
(4) And the image real-time identification module is used for detecting the endoscope image of the alimentary canal in real time based on the lower alimentary canal part identification model A and the lower alimentary canal part identification model B in the process of endoscope withdrawal operation, eliminating the images belonging to the auxiliary category, and outputting the primary category and the secondary category to which the images belong if the probability that the N continuous non-similar images are all in the same category exceeds a preset threshold value.
In a specific implementation, when the lower gastrointestinal tract endoscope image is identified by using the lower gastrointestinal tract part identification model a and the category to which the lower gastrointestinal tract endoscope image belongs is output as a colon, after the auxiliary category image is excluded, if the probability that the N consecutive non-similar images simultaneously belong to the colon exceeds a first preset threshold (for example, 0.9), the lower gastrointestinal tract endoscope image is secondarily judged by using the lower gastrointestinal tract part identification model B, and when the probability that the N consecutive non-similar images output as the same secondary category exceeds a second preset threshold (for example, 0.8), the lens is judged to have reached the secondary category part.
It should be noted that, in other embodiments, the values of the first preset threshold and the second preset threshold may be selectively set by a person skilled in the art according to actual situations.
The embodiment acquires the lower digestive tract part image and marks out the category to be identified and the auxiliary category for identifying the interference image; the category to be identified comprises a primary category and a secondary category, and the secondary category belongs to a subcategory of the primary category; the lower digestive tract part identification model A is trained by using the lower digestive tract part images marked with the auxiliary categories and the lower digestive tract part images marked with the primary categories, so that the influence of blurred images, defocused images, reflection artifacts, residual sundries, effusion and the like on image identification is reduced, and the accuracy of lower digestive tract part identification is improved; training a lower digestive tract part recognition model B by marking a lower digestive tract part image of a secondary category, and using a two-stage recognition model to improve the recognition accuracy;
in the embodiment, the probability that the N continuous non-similar images are in the same category exceeds a preset threshold value is used as the final category of the image, so that the position where the current endoscope head reaches is determined, and the accuracy of judging the position of the endoscope head is improved;
this embodiment can each anatomical site under intelligent recognition among the alimentary canal endoscopy to with its sign, discover under the endoscope that it is convenient for confirm its colorectal part of place after the pathological change, can discern the interference image and get rid of through alimentary canal position recognition model A down moreover, do not carry out one-level classification and secondary classification, for example: the endoscope inspection quality of the lower digestive tract is guaranteed due to the fact that the endoscope body slips or is poor in filling, the detection rate of pathological changes is improved, the anatomical part where the pathological changes are located can be identified in real time to be marked in time, follow-up treatment and follow-up visit of a patient are facilitated, and the computer-assisted endoscope inspection quality is guaranteed.
Example 3
The present embodiment provides a computer-readable storage medium on which a computer program is stored, characterized in that the program realizes the steps in the lower gastrointestinal endoscope image recognition method shown in fig. 1 when executed by a processor.
The embodiment acquires the lower digestive tract part image and marks out the category to be identified and the auxiliary category for identifying the interference image; the category to be identified comprises a primary category and a secondary category, and the secondary category belongs to a subcategory of the primary category; the lower digestive tract part identification model A is trained by using the lower digestive tract part images marked with the auxiliary categories and the lower digestive tract part images marked with the primary categories, so that the influence of blurred images, defocused images, reflection artifacts, residual sundries, effusion and the like on image identification is reduced, and the accuracy of lower digestive tract part identification is improved; training a lower digestive tract part recognition model B by marking a lower digestive tract part image of a secondary category, and using a two-stage recognition model to improve the recognition accuracy;
in the embodiment, the probability that the N continuous non-similar images are in the same category exceeds a preset threshold value is used as the final category of the image, so that the position where the current endoscope head reaches is determined, and the accuracy of judging the position of the endoscope head is improved;
this embodiment can each anatomical site under intelligent recognition among the alimentary canal endoscopy to with its sign, discover under the endoscope that it is convenient for confirm its colorectal part of place after the pathological change, can discern the interference image and get rid of through alimentary canal position recognition model A down moreover, do not carry out one-level classification and secondary classification, for example: the endoscope inspection quality of the lower digestive tract is guaranteed due to the fact that the endoscope body slips or is poor in filling, the detection rate of pathological changes is improved, the anatomical part where the pathological changes are located can be identified in real time to be marked in time, follow-up treatment and follow-up visit of a patient are facilitated, and the computer-assisted endoscope inspection quality is guaranteed.
Example 4
The present embodiment provides a computer apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the lower gastrointestinal endoscope image recognition method as shown in fig. 1 when executing the program.
The embodiment acquires the lower digestive tract part image and marks out the category to be identified and the auxiliary category for identifying the interference image; the category to be identified comprises a primary category and a secondary category, and the secondary category belongs to a subcategory of the primary category; the lower digestive tract part identification model A is trained by using the lower digestive tract part images marked with the auxiliary categories and the lower digestive tract part images marked with the primary categories, so that the influence of blurred images, defocused images, reflection artifacts, residual sundries, effusion and the like on image identification is reduced, and the accuracy of lower digestive tract part identification is improved; training a lower digestive tract part recognition model B by marking a lower digestive tract part image of a secondary category, and using a two-stage recognition model to improve the recognition accuracy;
in the embodiment, the probability that the N continuous non-similar images are in the same category exceeds a preset threshold value is used as the final category of the image, so that the position where the current endoscope head reaches is determined, and the accuracy of judging the position of the endoscope head is improved;
this embodiment can each anatomical site under intelligent recognition among the alimentary canal endoscopy to with its sign, discover under the endoscope that it is convenient for confirm its colorectal part of place after the pathological change, can discern the interference image and get rid of through alimentary canal position recognition model A down moreover, do not carry out one-level classification and secondary classification, for example: the endoscope inspection quality of the lower digestive tract is guaranteed due to the fact that the endoscope body slips or is poor in filling, the detection rate of pathological changes is improved, the anatomical part where the pathological changes are located can be identified in real time to be marked in time, follow-up treatment and follow-up visit of a patient are facilitated, and the computer-assisted endoscope inspection quality is guaranteed.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure, and various modifications and changes may be made to the present disclosure by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.