CN111091562B - A method and system for measuring the size of gastrointestinal lesions - Google Patents
A method and system for measuring the size of gastrointestinal lesions Download PDFInfo
- Publication number
- CN111091562B CN111091562B CN201911338548.6A CN201911338548A CN111091562B CN 111091562 B CN111091562 B CN 111091562B CN 201911338548 A CN201911338548 A CN 201911338548A CN 111091562 B CN111091562 B CN 111091562B
- Authority
- CN
- China
- Prior art keywords
- reference object
- size
- lesion
- image
- digestive tract
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0012—Biomedical image inspection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10068—Endoscopic image
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30028—Colon; Small intestine
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30092—Stomach; Gastric
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30096—Tumor; Lesion
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Geometry (AREA)
- Evolutionary Computation (AREA)
- Bioinformatics & Computational Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Biology (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Quality & Reliability (AREA)
- Endoscopes (AREA)
Abstract
本发明公开了一种消化道病灶大小测量方法及系统,所述方法包括:获取包含病变和参照物的消化道内窥镜图像;识别其中所包含的参照物;计算所述参照物与消化道粘膜相交的宽度;结合真实实验得到的参照物与消化道粘膜交界处的尺寸大小,得到图像像素与实际尺寸之间的对应关系;提取消化道内窥镜图像中所包含的病灶区域;根据图像像素与实际尺寸之间的对应关系,得到所述病灶的实际大小。本发明能够在内窥镜操作过程中,在不借助额外设备且不延长操作时间的前提下,实现病灶大小的精确测量。
The invention discloses a method and system for measuring the size of digestive tract lesions. The method includes: acquiring an endoscopic image of the digestive tract including lesions and a reference object; identifying the reference object contained therein; calculating the relationship between the reference object and the digestive tract mucosa The width of the intersection; combined with the size of the junction between the reference object and the digestive tract mucosa obtained from the real experiment, the corresponding relationship between the image pixels and the actual size was obtained; the lesion area included in the digestive tract endoscopy image was extracted; The corresponding relationship between the actual sizes is obtained to obtain the actual size of the lesion. The present invention can realize the accurate measurement of the size of the lesion during the operation of the endoscope without resorting to additional equipment and without prolonging the operation time.
Description
技术领域technical field
本发明属于人工智能技术领域,尤其涉及一种消化道病灶大小测量方 法及系统。The invention belongs to the technical field of artificial intelligence, and in particular relates to a method and system for measuring the size of gastrointestinal lesions.
背景技术Background technique
本部分的陈述仅仅是提供了与本公开相关的背景技术信息,不必然构 成在先技术。The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.
使用电子内镜做诊断,在取出病灶活检之前,如何准确测量病灶大小 是一大难点,内镜下病灶大小的测量与内镜治疗决策和资料分析有关。由 于缺乏传感器,内镜不能像超声一样方便地测量息肉大小。在临床实践中, 大多数内镜医师通过目测或开放式活检钳估计息肉大小。然而,研究已经 证实,内窥镜医师在体外常常不能准确估计息肉的大小,这直接影响了治 疗决策的选择。目前已有多种方法来测量病变,据发明人了解,目前建立的方法有向体内输送参照物,如输送特制的测量参照物体、外接激光装置 投射激光束等;或者通过购买特殊三维立体内镜建立空间坐标系,通过三 维重建技术获取病变大小等,但是这些方法或多或少的需要额外的设备或 内镜操作时间,且测量精度有待提高。Using electronic endoscopy for diagnosis, it is difficult to accurately measure the size of the lesion before removing the lesion for biopsy. The measurement of the lesion size under the endoscope is related to the decision-making of endoscopic treatment and data analysis. Due to the lack of sensors, endoscopy cannot measure polyp size as easily as ultrasound. In clinical practice, most endoscopists estimate polyp size by visual inspection or open biopsy forceps. However, studies have confirmed that endoscopists often cannot accurately estimate polyp size in vitro, which directly affects the choice of treatment decisions. At present, there are many methods to measure lesions. According to the inventor's knowledge, the currently established methods include delivering reference objects into the body, such as delivering a special measurement reference object, projecting a laser beam from an external laser device, etc.; or purchasing a special three-dimensional stereoscopic endoscope. Establishing a spatial coordinate system and obtaining the lesion size through three-dimensional reconstruction technology, etc., but these methods more or less require additional equipment or endoscopic operation time, and the measurement accuracy needs to be improved.
发明内容SUMMARY OF THE INVENTION
为克服上述现有技术的不足,本发明提供了一种消化道病灶大小测量 方法及系统,能够在内窥镜操作过程中,在不借助额外设备且不延长操作 时间的前提下,实现病灶大小的精确测量。In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides a method and system for measuring the size of gastrointestinal lesions, which can achieve the size of the lesions during the endoscopic operation without the aid of additional equipment and without prolonging the operation time. accurate measurement.
为实现上述目的,本发明的一个或多个实施例提供了如下技术方案:To achieve the above object, one or more embodiments of the present invention provide the following technical solutions:
一种消化道病灶大小测量方法,包括以下步骤:A method for measuring the size of gastrointestinal lesions, comprising the following steps:
获取包含病变和参照物的消化道内窥镜图像;Obtain endoscopic images of the digestive tract including lesions and reference objects;
识别其中所包含的参照物;identify the references contained therein;
计算所述参照物与消化道粘膜相交的宽度;calculating the width of the intersection of the reference and the mucous membrane of the digestive tract;
结合真实实验得到的参照物与消化道粘膜交界处的尺寸大小,得到图 像像素与实际尺寸之间的对应关系;Combined with the size of the reference object obtained in the real experiment and the size of the junction of the alimentary canal mucosa, the corresponding relationship between the image pixels and the actual size is obtained;
提取消化道内窥镜图像中所包含的病灶区域;Extract the lesion area included in the endoscopic image of the digestive tract;
根据图像像素与实际尺寸之间的对应关系,得到所述病灶的实际大小。According to the corresponding relationship between the image pixels and the actual size, the actual size of the lesion is obtained.
进一步地,识别图像中所包含的参照物采用预先构建的参照物识别模 型;所述模型构建方法包括:Further, the reference object included in the identification image adopts a pre-built reference object identification model; the model construction method includes:
获取训练数据,所述训练数据为参照物轮廓进行了预先标注的消化道 内窥镜样本图像;Obtaining training data, the training data is the alimentary tract endoscope sample image that has been pre-marked with reference to the outline of the object;
对所述训练数据中的样本图像进行掩码处理;performing mask processing on the sample images in the training data;
采用经过掩码处理的训练数据,训练Mask R-CNN模型,得到参照物 识别模型。Using the masked training data, the Mask R-CNN model is trained to obtain the reference object recognition model.
进一步地,计算所述参照物与消化道粘膜相交的宽度包括:Further, calculating the width of the intersection of the reference object and the alimentary canal mucosa includes:
对识别出的参照物的轮廓进行角点检测;Perform corner detection on the contour of the identified reference object;
根据检测到的角点和参照物轮廓计算所述参照物与消化道粘膜相交的 宽度。The width of the intersection of the reference and the mucous membrane of the digestive tract is calculated from the detected corner points and the outline of the reference.
进一步地,计算所述参照物与消化道粘膜相交的宽度包括:Further, calculating the width of the intersection of the reference object and the alimentary canal mucosa includes:
根据参照物轮廓识别参照物与消化道粘膜交界处的一侧的角点;Identify the corner point on one side of the junction between the reference object and the alimentary canal mucosa according to the outline of the reference object;
在对侧的轮廓线上取多个点,基于所述多个点进行直线拟合,得到对 侧的拟合直线;Take a plurality of points on the contour line of the opposite side, and perform straight line fitting based on the plurality of points to obtain the fitted straight line on the opposite side;
将识别出的所述角点投影到拟合直线上,得到的投影点和所述角点之 间的距离即为参照物与消化道粘膜相交的宽度。The identified corner points are projected onto the fitted straight line, and the distance between the obtained projection point and the corner point is the width of the intersection of the reference object and the alimentary canal mucosa.
进一步地,提取图像中所包含的病灶区域采用边缘提取算法。Further, an edge extraction algorithm is used to extract the lesion area included in the image.
进一步地,得到所述病灶的实际大小包括:Further, obtaining the actual size of the lesion includes:
提取病灶区域的外接矩形,并获取该外接矩形长和宽相应的像素数;Extract the circumscribed rectangle of the lesion area, and obtain the number of pixels corresponding to the length and width of the circumscribed rectangle;
根据图像像素与实际尺寸之间的对应关系,得到所述病灶外接矩形的 长和宽实际大小。According to the corresponding relationship between the image pixels and the actual size, the actual size of the length and width of the circumscribed rectangle of the lesion is obtained.
进一步地,所述参照物为喷射的前向水柱或活检钳。Further, the reference object is a jetted forward water column or a biopsy forceps.
一个或多个实施例提供了一种消化道病灶大小测量系统,包括:One or more embodiments provide a system for measuring the size of gastrointestinal lesions, comprising:
参照物图像获取模块,获取包含病变和参照物的消化道内窥镜图像;A reference object image acquisition module, which acquires an endoscopic image of the digestive tract including the lesion and the reference object;
参照物识别模块,识别其中所包含的参照物;A reference object identification module to identify the reference objects contained therein;
像素与实际尺寸对应关系计算模块,计算所述参照物与消化道粘膜交 界处的尺寸大小;结合真实实验得到的参照物与消化道粘膜交界处的尺寸 大小,得到图像像素与实际尺寸之间的对应关系;The pixel and actual size correspondence relationship calculation module calculates the size of the junction between the reference object and the alimentary canal mucosa; Combined with the size of the reference object and the junction of the alimentary canal mucosa obtained in the real experiment, the difference between the image pixel and the actual size is obtained. Correspondence;
病灶提取模块,提取消化道内窥镜图像中所包含的病灶区域;The lesion extraction module extracts the lesion area included in the gastrointestinal endoscopy image;
病灶尺寸计算模块,根据图像像素与实际尺寸之间的对应关系,得到 所述病灶的实际大小。The lesion size calculation module obtains the actual size of the lesion according to the corresponding relationship between the image pixels and the actual size.
一个或多个实施例提供了一种电子设备,包括存储器、处理器及存储 在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序 时实现所述的消化道病灶大小测量方法。One or more embodiments provide an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implements the gastrointestinal lesion when the processor executes the program Size measurement method.
一个或多个实施例提供了一种计算机可读存储介质,其上存储有计算 机程序,该程序被处理器执行时实现所述的消化道病灶大小测量方法。One or more embodiments provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the method for measuring the size of a gastrointestinal lesion.
以上一个或多个技术方案存在以下有益效果:One or more of the above technical solutions have the following beneficial effects:
本发明提供的病灶大小测量方法,采用内镜里的前向水柱或者活检钳 作为病变测量参照标准,运用卷积神经网络识别前向水柱或者活检钳与消 化道粘膜交界处的尺寸大小作为测量标尺,根据参照物在图像中病变投影 面直径计算病灶大小,本发明无需借助额外设备,在正常内镜操作过程中 即可完成病灶大小的测量,且不会延长操作时间,经济性好,可操作性强, 为病变治疗手段的选择提供了依据。In the method for measuring the size of the lesion provided by the present invention, the forward water column or biopsy forceps in the endoscope is used as the reference standard for lesion measurement, and the convolutional neural network is used to identify the size of the junction of the forward water column or biopsy forceps and the alimentary canal mucosa as the measurement scale , the size of the lesion is calculated according to the diameter of the projection surface of the lesion in the image of the reference object. The present invention can complete the measurement of the size of the lesion during the normal endoscopic operation without the aid of additional equipment, without prolonging the operation time, and is economical and operable. It is strong and provides a basis for the selection of treatment methods for lesions.
附图说明Description of drawings
构成本发明的一部分的说明书附图用来提供对本发明的进一步理解, 本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不 当限定。The accompanying drawings that form a part of the present invention are used to provide further understanding of the present invention, and the exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention.
图1为本发明一个或多个实施例中消化道病灶大小测量方法流程图;1 is a flow chart of a method for measuring the size of gastrointestinal lesions in one or more embodiments of the present invention;
图2a为本发明一个或多个实施例中包含活检钳的胃镜图像;Figure 2a is an image of a gastroscope including a biopsy forceps in one or more embodiments of the present invention;
图2b为本发明一个或多个实施例中包含前向水柱的胃镜图像;Figure 2b is a gastroscopic image including an anterior water column in one or more embodiments of the present invention;
图3为本发明一个或多个实施例中对前向水柱的识别效果图;Fig. 3 is the identification effect diagram of the forward water column in one or more embodiments of the present invention;
图4为本发明一个或多个实施例中生成的参照物的轮廓图像;4 is a contour image of a reference object generated in one or more embodiments of the present invention;
图5为本发明一个或多个实施例中参照物与胃粘膜交界处的示意图;5 is a schematic diagram of the junction between the reference object and the gastric mucosa in one or more embodiments of the present invention;
图6为本发明一个或多个实施例中获取的包含病灶的胃镜图像;6 is a gastroscopic image including a lesion obtained in one or more embodiments of the present invention;
图7为本发明一个或多个实施例中病灶区域的外接矩形示意图;7 is a schematic diagram of a circumscribed rectangle of a lesion area in one or more embodiments of the present invention;
图8为本发明一个或多个实施例中标注尺寸的病灶区域示意图。FIG. 8 is a schematic diagram of a dimensioned lesion area in one or more embodiments of the present invention.
具体实施方式Detailed ways
应该指出,以下详细说明都是示例性的,旨在对本发明提供进一步的 说明。除非另有指明,本文使用的所有技术和科学术语具有与本发明所属 技术领域的普通技术人员通常理解的相同含义。It should be noted that the following detailed description is exemplary and intended to provide further explanation of the invention. Unless otherwise defined, 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 invention belongs.
需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非 意图限制根据本发明的示例性实施方式。如在这里所使用的,除非上下文 另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的 是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步 骤、操作、器件、组件和/或它们的组合。It should be noted that the terminology used herein is for the purpose of describing specific embodiments only, and is not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the context clearly dictates otherwise, the singular is intended to include the plural as well, furthermore, it is to be understood that when the terms "comprising" and/or "including" are used in this specification, it indicates that There are features, steps, operations, devices, components and/or combinations thereof.
在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组 合。Embodiments of the invention and features of the embodiments may be combined with each other without conflict.
实施例一Example 1
如图1所示,本实施例公开了一种消化道病灶大小测量方法,以测量 胃粘膜上的病灶大小为例,包括以下步骤:As shown in Figure 1, the present embodiment discloses a method for measuring the size of a digestive tract lesion, taking the measurement of the lesion size on the gastric mucosa as an example, comprising the following steps:
步骤1:在采用内窥镜操作过程中,获取包含病变和参照物的胃镜图像。Step 1: During the procedure using the endoscope, acquire a gastroscopic image including the lesion and reference object.
由于胃镜检查时,胃镜镜头与胃粘膜之间的距离会发生变化,为了保 证病变和参照物是在同一镜头远近前提下,在医师发现病变时,采集包含 病变和参照物的胃镜图像。参照物可以是喷射的前向水柱或者是活检钳。 由于水柱和活检钳都属于胃镜检查过程中医师经常使用的辅助手段或工 具,将其作为参照物,并且获取同时包含病变和参照物的胃镜图像不会使 得检查过程明显延长,在正常检查过程中即可完成。Since the distance between the gastroscope lens and the gastric mucosa will change during gastroscopy, in order to ensure that the lesion and the reference object are at the same distance from the lens, when the physician finds the lesion, the gastroscope image containing the lesion and the reference object is collected. The reference can be a jet of forward water or a biopsy forceps. Since both the water jet and biopsy forceps are auxiliary means or tools frequently used by physicians in the process of gastroscopy, they are used as reference objects, and the acquisition of gastroscopic images containing both lesions and reference objects will not significantly prolong the examination process. In the normal examination process to complete.
采用电子胃镜将患者的检查情况反映到显示屏上,并将带有测量标准 参照物的胃镜图像作为资料进行存储,从而获得待检测的目标胃镜图像。The electronic gastroscope is used to reflect the patient's examination situation on the display screen, and the gastroscope image with the measurement standard reference object is stored as data, so as to obtain the target gastroscope image to be detected.
电子胃镜镜头畸变会对胃镜下测量病灶造成误差,因此还需对电子胃 镜镜头畸变进行校正,本实施例利用一个特定模板,计算出理想效果图和 畸变图之间的映射关系,从中获取畸变变化方程来矫正图像。The distortion of the electronic gastroscope lens will cause errors in the measurement of lesions under the gastroscope, so it is necessary to correct the distortion of the electronic gastroscope lens. In this embodiment, a specific template is used to calculate the mapping relationship between the ideal effect map and the distortion map, and obtain the distortion change from it. equation to rectify the image.
步骤2:基于训练好的胃镜图像的参照物识别模型,对电子胃镜采集的 胃镜图像进行检测,获取到标注参照物的轮廓,如图3-4所示。Step 2: Based on the trained gastroscope image reference object recognition model, the gastroscope image collected by the electronic gastroscope is detected, and the outline of the marked reference object is obtained, as shown in Figure 3-4.
其中,训练胃镜图像参照物的轮廓检测模型具体包括:Among them, the contour detection model for training gastroscope image reference objects specifically includes:
(1)获取包含参照物的样本胃镜图像,对样本胃镜图像里的参 照物进行轮廓标注,得到训练样本。(1) Obtain a sample gastroscopic image containing a reference object, and perform contour annotation on the reference object in the sample gastroscopic image to obtain a training sample.
(2)对所述样本胃镜图像进行图像处理,得到样本胃镜图像数据集。(2) Perform image processing on the sample gastroscopic image to obtain a sample gastroscopic image data set.
其中,图像处理包括:生成掩码图像,4x4像素邻域的双三次插值缩放 处理。通过掩码处理缩小后的图像能够尽量多的保留图像细节特征,有利 于网络的训练。Wherein, the image processing includes: generating a mask image, bicubic interpolation scaling processing of 4x4 pixel neighborhood. The image reduced by mask processing can retain as many image details as possible, which is beneficial to the training of the network.
(3)根据所述样本胃镜图像数据集,训练MASK-RCNN卷积神经网 络,得到训练好的识别胃镜图像的参照物识别模型。(3) according to described sample gastroscope image data set, train MASK-RCNN convolutional neural network, obtain the reference object recognition model that recognizes gastroscope image trained.
将样本胃镜图像数据集按照6:2:2的比例划分为样本胃镜图像训练集、 样本胃镜图像测试集和样本胃镜图像验证集,输入到待训练的胃镜图像的 参照物识别模型中。在本发明实施例,参照物识别模型基于卷积神经网络 训练得到,该卷积神经网络包含多个卷积层,每个卷积层中叠加若干个可 选地卷积核,以提高卷积神经网络的性能。在样本胃镜图像数据集经过卷 积神经网络的一系列卷积和池化运算之后,提取出样本胃镜图像的图像特 征,根据图像特征判断该样本胃镜图像的图像是否包含待检测的水柱或者 活检钳等参照物,并通过样本胃镜图像测试集和样本胃镜图像验证集对卷 积神经网络进行测试和验证,若满足预设条件,则得到训练好的参照物识 别模型。The sample gastroscopic image data set is divided into a sample gastroscopic image training set, a sample gastroscopic image testing set and a sample gastroscopic image verification set according to the ratio of 6:2:2, and input them into the reference object recognition model of the gastroscopic image to be trained. In the embodiment of the present invention, the reference object recognition model is obtained by training a convolutional neural network. The convolutional neural network includes a plurality of convolutional layers, and each convolutional layer is superimposed with several optional convolution kernels to improve the convolutional performance. performance of neural networks. After the sample gastroscopic image data set undergoes a series of convolution and pooling operations of the convolutional neural network, the image features of the sample gastroscopic image are extracted, and according to the image features, it is judged whether the image of the sample gastroscopic image contains the water column or biopsy forceps to be detected. The convolutional neural network is tested and verified through the sample gastroscope image test set and the sample gastroscope image verification set. If the preset conditions are met, the trained reference object recognition model is obtained.
步骤3:计算所述参照物与消化道粘膜相交的宽度。Step 3: Calculate the width of the intersection of the reference object and the mucous membrane of the digestive tract.
其中,对于水柱而言,水柱与消化道粘膜相交的宽度为水柱喷射到消 化道粘膜的接触面直径。Among them, for the water column, the width of the intersection of the water column and the mucous membrane of the alimentary canal is the diameter of the contact surface where the water column is sprayed to the mucous membrane of the alimentary canal.
3.1:先在轮廓图像中寻找具有最大特征值的角点集合,这里采用 Shi-Tomasi角点检测算法实现。3.1: First, find the corner set with the largest eigenvalue in the contour image, which is implemented by the Shi-Tomasi corner detection algorithm.
3.2:获取参照物与消化道粘膜交界处两端的角点。由于水柱喷射的角 度是固定的,右侧的角点可以比较准确的识别,而左侧的角点不易准确识 别,故先识别出参照物与粘膜交界处右侧的角点,再从参照物轮廓左侧的 边上取5个点,对这5个点采用最小二值化拟合直线算法,拟合出左侧轮 廓线的直线方程(y=kx+d),求右侧角点在左侧轮廓线上投影点,右侧角点和 该投影点就认为是水柱或者活检钳等参照物与消化道粘膜交界处两端的角 点,计算两个点的距离即为参照物与消化道粘膜相交的宽度,如图5所示。3.2: Obtain the corner points at both ends of the junction between the reference object and the digestive tract mucosa. Since the angle of the water jet is fixed, the right corner can be identified more accurately, but the left corner is not easy to identify accurately, so first identify the right corner at the junction of the reference object and the mucosa, and then start from the reference object. Take 5 points on the left side of the contour, use the minimum binarization fitting straight line algorithm for these 5 points, and fit the straight line equation of the left contour line (y=kx+d), find the right corner point in The projection point on the left contour line, the right corner point and the projection point are considered to be the corner points at the junction between a reference object such as a water column or biopsy forceps and the gastrointestinal mucosa, and the distance between the two points is calculated as the reference object and the digestive tract. The width of the mucosal intersection, as shown in Figure 5.
结合真实实验得到的参照物与消化道粘膜交界处的尺寸大小,得到图 像像素与实际尺寸之间的对应关系。例如,根据真实实验得出水柱等参照 物与消化道粘膜的接触面直径是1mm,依据步骤4求出的两个接触点,即 认为两个接触点实际直径是1mm。Combined with the size of the junction of the reference object obtained from the real experiment and the digestive tract mucosa, the corresponding relationship between the image pixels and the actual size is obtained. For example, according to the real experiment, it is concluded that the diameter of the contact surface between the water column and other reference objects and the alimentary canal mucosa is 1mm. According to the two contact points obtained in step 4, the actual diameter of the two contact points is considered to be 1mm.
步骤4:从消化道内窥镜图像中,提取病灶区域。Step 4: Extract the lesion area from the endoscopic image of the digestive tract.
获取的包含病灶的胃镜图像如图6所示,依据Canny边界提取算法获 得病灶的轮廓图像,如图7所示提取到的病灶轮廓。根据轮廓区域位置可 得出矩形区域大小。The acquired gastroscopic image containing the lesion is shown in Figure 6, and the contour image of the lesion is obtained according to the Canny boundary extraction algorithm, and the extracted lesion contour is shown in Figure 7. The size of the rectangular area can be obtained from the position of the contour area.
步骤5:对比参照物直径,得出图像中病变的大小。Step 5: Compare the diameter of the reference object to obtain the size of the lesion in the image.
依据下面公式:图像中交界处两点间距/病灶区域长、宽间距=交界处实 际长度/病灶区域实际长度。According to the following formula: the distance between two points at the junction in the image/the distance between the length and width of the lesion area=the actual length of the junction/the actual length of the lesion area.
步骤6:根据图像像素与实际尺寸之间的对应关系,得到所述病灶的实 际大小,如图8所示。Step 6: According to the corresponding relationship between the image pixels and the actual size, the actual size of the lesion is obtained, as shown in FIG. 8 .
实施例二Embodiment 2
本实施例的目的是提供一种消化道病灶大小测量系统。The purpose of this embodiment is to provide a system for measuring the size of digestive tract lesions.
一种消化道病灶大小测量系统,包括:A system for measuring the size of gastrointestinal lesions, comprising:
参照物图像获取模块,获取包含病变和参照物的消化道内窥镜图像;A reference object image acquisition module, which acquires an endoscopic image of the digestive tract including the lesion and the reference object;
参照物识别模块,识别其中所包含的参照物;A reference object identification module to identify the reference objects contained therein;
像素与实际尺寸对应关系计算模块,计算所述参照物与消化道粘膜交 界处的尺寸大小;结合真实实验得到的参照物与消化道粘膜交界处的尺寸 大小,得到图像像素与实际尺寸之间的对应关系;The pixel and actual size correspondence relationship calculation module calculates the size of the junction between the reference object and the alimentary canal mucosa; Combined with the size of the reference object and the junction of the alimentary canal mucosa obtained in the real experiment, the difference between the image pixel and the actual size is obtained. Correspondence;
病灶提取模块,提取消化道内窥镜图像中所包含的病灶区域;The lesion extraction module extracts the lesion area included in the gastrointestinal endoscopy image;
病灶尺寸计算模块,根据图像像素与实际尺寸之间的对应关系,得到 所述病灶的实际大小。The lesion size calculation module obtains the actual size of the lesion according to the corresponding relationship between the image pixels and the actual size.
实施例三Embodiment 3
本实施例的目的是提供一种电子设备。The purpose of this embodiment is to provide an electronic device.
一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器 上运行的计算机程序,所述处理器执行所述程序时实现以下步骤,包括:An electronic device, comprising a memory, a processor and a computer program stored on the memory and running on the processor, the processor implements the following steps when executing the program, including:
获取包含病变和参照物的消化道内窥镜图像;Obtain endoscopic images of the digestive tract including lesions and reference objects;
识别其中所包含的参照物;identify the references contained therein;
计算所述参照物与消化道粘膜交界处的尺寸大小;Calculate the size of the junction between the reference object and the alimentary canal mucosa;
结合真实实验得到的参照物与消化道粘膜交界处的尺寸大小,得到图 像像素与实际尺寸之间的对应关系;Combined with the size of the reference object obtained in the real experiment and the size of the junction of the alimentary canal mucosa, the corresponding relationship between the image pixels and the actual size is obtained;
提取消化道内窥镜图像中所包含的病灶区域;Extract the lesion area included in the endoscopic image of the digestive tract;
提取其中所包含的病灶区域,根据图像像素与实际尺寸之间的对应关 系,得到所述病灶的实际大小。The lesion area contained therein is extracted, and the actual size of the lesion is obtained according to the corresponding relationship between the image pixels and the actual size.
实施例四Embodiment 4
本实施例的目的是提供一种计算机可读存储介质。The purpose of this embodiment is to provide a computer-readable storage medium.
一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器 执行时执行以下步骤:A computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the following steps are performed:
获取包含病变和参照物的消化道内窥镜图像;Obtain endoscopic images of the digestive tract including lesions and reference objects;
识别其中所包含的参照物;identify the references contained therein;
计算所述参照物与消化道粘膜交界处的尺寸大小;Calculate the size of the junction between the reference object and the alimentary canal mucosa;
结合真实实验得到的参照物与消化道粘膜交界处的尺寸大小,得到图 像像素与实际尺寸之间的对应关系;Combined with the size of the reference object obtained in the real experiment and the size of the junction of the alimentary canal mucosa, the corresponding relationship between the image pixels and the actual size is obtained;
提取消化道内窥镜图像中所包含的病灶区域;Extract the lesion area included in the endoscopic image of the digestive tract;
根据图像像素与实际尺寸之间的对应关系,得到所述病灶的实际大小。According to the corresponding relationship between the image pixels and the actual size, the actual size of the lesion is obtained.
以上实施例二、三和四中涉及的各步骤与方法实施例一相对应,具体 实施方式可参见实施例一的相关说明部分。术语“计算机可读存储介质”应该 理解为包括一个或多个指令集的单个介质或多个介质;还应当被理解为包 括任何介质,所述任何介质能够存储、编码或承载用于由处理器执行的指 令集并使处理器执行本发明中的任一方法。The steps involved in the second, third and fourth embodiments above correspond to the method embodiment 1, and the specific implementation can refer to the relevant description part of the embodiment 1. The term "computer-readable storage medium" should be understood to include a single medium or multiple media including one or more sets of instructions; it should also be understood to include any medium capable of storing, encoding or carrying for use by a processor The executed instruction set causes the processor to perform any of the methods of the present invention.
以上一个或多个实施例具有以下技术效果:The above one or more embodiments have the following technical effects:
本发明提供的病灶大小测量方法,采用内镜里的前向水柱或者活检钳 作为病变测量参照标准,运用卷积神经网络识别前向水柱或者活检钳与消 化道粘膜交界处的尺寸大小作为测量标尺,根据参照物在图像中的粗细变 化计算病灶大小,本发明无需借助额外设备,在正常内镜操作过程中即可 完成病灶大小的测量,且不会延长操作时间,经济性好,可操作性强,为 病变治疗手段的选择提供了依据。In the method for measuring the size of the lesion provided by the present invention, the forward water column or biopsy forceps in the endoscope is used as the reference standard for lesion measurement, and the convolutional neural network is used to identify the size of the junction of the forward water column or biopsy forceps and the alimentary canal mucosa as the measurement scale , the size of the lesion is calculated according to the thickness change of the reference object in the image, the present invention does not require additional equipment, the measurement of the size of the lesion can be completed during the normal endoscopic operation, and the operation time is not prolonged, with good economy and operability. It provides a basis for the selection of treatment methods for lesions.
本领域技术人员应该明白,上述本发明的各模块或各步骤可以用通用 的计算机装置来实现,可选地,它们可以用计算装置可执行的程序代码来 实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它 们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成 单个集成电路模块来实现。本发明不限制于任何特定的硬件和软件的结合。Those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by the computing device, so that they can be stored in a storage device. The device is executed by a computing device, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps in them are fabricated into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于 本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精 神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明 的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
上述虽然结合附图对本发明的具体实施方式进行了描述,但并非对本 发明保护范围的限制,所属领域技术人员应该明白,在本发明的技术方案 的基础上,本领域技术人员不需要付出创造性劳动即可做出的各种修改或 变形仍在本发明的保护范围以内。Although the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, they do not limit the scope of protection of the present invention. Those skilled in the art should understand that on the basis of the technical solutions of the present invention, those skilled in the art do not need to pay creative work. Various modifications or deformations that can be made are still within the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911338548.6A CN111091562B (en) | 2019-12-23 | 2019-12-23 | A method and system for measuring the size of gastrointestinal lesions |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911338548.6A CN111091562B (en) | 2019-12-23 | 2019-12-23 | A method and system for measuring the size of gastrointestinal lesions |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111091562A CN111091562A (en) | 2020-05-01 |
| CN111091562B true CN111091562B (en) | 2020-12-01 |
Family
ID=70395892
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911338548.6A Active CN111091562B (en) | 2019-12-23 | 2019-12-23 | A method and system for measuring the size of gastrointestinal lesions |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111091562B (en) |
Families Citing this family (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111260648B (en) * | 2020-05-06 | 2020-08-21 | 杭州迪英加科技有限公司 | Method and device for measuring lesion area of gastric mucosa ESD excision specimen image |
| CN112257506A (en) * | 2020-09-21 | 2021-01-22 | 北京豆牛网络科技有限公司 | Fruit and vegetable size identification method, device, electronic device and computer readable medium |
| CN112153320B (en) * | 2020-09-23 | 2022-11-08 | 北京京东振世信息技术有限公司 | Method and device for measuring size of article, electronic equipment and storage medium |
| CN112580437B (en) * | 2020-11-26 | 2024-09-06 | 复旦大学附属中山医院 | A method and device for measuring target size |
| CN113538228B (en) * | 2020-12-04 | 2025-10-24 | 腾讯科技(深圳)有限公司 | Image processing method, device and electronic equipment based on artificial intelligence |
| CN112863699B (en) * | 2020-12-31 | 2021-09-07 | 山东大学齐鲁医院 | A mobile terminal-based ESD preoperative discussion system |
| CN114052641A (en) * | 2021-11-04 | 2022-02-18 | 深圳市博盛医疗科技有限公司 | Laparoscope system for reducing three-dimensional distortion in 3D vision based on intelligent optimization technology |
| CN116416182A (en) * | 2021-12-29 | 2023-07-11 | 无锡市朗珈同创软件有限公司 | Digital pathological sampling plate establishing method |
| CN114680809A (en) * | 2022-02-17 | 2022-07-01 | 河北大学 | Measurement system for utilize facula to measure polyp size under enteroscope |
| CN114740614B (en) * | 2022-05-07 | 2024-04-19 | 深圳市微视光电科技有限公司 | Endoscope probe capable of assisting in measurement |
| CN116579974A (en) * | 2023-03-08 | 2023-08-11 | 北京知见生命科技有限公司 | Pathological sample sampling control method and device, equipment and storage medium |
| CN116958147B (en) * | 2023-09-21 | 2023-12-22 | 青岛美迪康数字工程有限公司 | Target area determining method, device and equipment based on depth image characteristics |
| CN118587220B (en) * | 2024-08-07 | 2024-11-05 | 大连清东科技有限公司 | An intelligent analysis system for internal medicine medical imaging data |
| CN120616409B (en) * | 2025-08-15 | 2025-10-28 | 武汉楚精灵医疗科技有限公司 | Endoscopic instrument-assisted measurement method and device |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102670155A (en) * | 2012-03-19 | 2012-09-19 | 中国人民解放军南京军区南京总医院 | Method for establishing object and image correlation factor for endoscope measurement and applications thereof in endoscope measurement |
| CN104083172A (en) * | 2013-11-28 | 2014-10-08 | 北京华科创智健康科技股份有限公司 | Method and device for quantitatively measuring size of focus through electronic endoscope |
| CN106456271A (en) * | 2014-03-28 | 2017-02-22 | 直观外科手术操作公司 | Quantitative 3D imaging and printing of surgical implants |
| WO2018008195A1 (en) * | 2016-07-05 | 2018-01-11 | オリンパス株式会社 | Image processing device, image processing system, method for operating image processing device, and program for operating image processing device |
| CN109381152A (en) * | 2017-08-04 | 2019-02-26 | 卡普索影像公司 | For the area of the object of interest in stomach image or the method for volume and equipment |
| CN110200580A (en) * | 2019-06-14 | 2019-09-06 | 石焕 | A kind of householder method for tumor in digestive tract clinic early detection |
| CN110473192A (en) * | 2019-04-10 | 2019-11-19 | 腾讯医疗健康(深圳)有限公司 | Digestive endoscope image recognition model training and recognition methods, apparatus and system |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103505217A (en) * | 2012-06-28 | 2014-01-15 | 吕海涛 | Method for accurately measuring size of nidus under endoscope |
| CN104146711A (en) * | 2014-08-01 | 2014-11-19 | 深圳市开立科技有限公司 | Endoscope based lesion size measurement method and system |
| CN109141250B (en) * | 2018-08-08 | 2020-08-04 | 深圳码隆科技有限公司 | Case size measuring method and device and case size measuring server |
-
2019
- 2019-12-23 CN CN201911338548.6A patent/CN111091562B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102670155A (en) * | 2012-03-19 | 2012-09-19 | 中国人民解放军南京军区南京总医院 | Method for establishing object and image correlation factor for endoscope measurement and applications thereof in endoscope measurement |
| CN104083172A (en) * | 2013-11-28 | 2014-10-08 | 北京华科创智健康科技股份有限公司 | Method and device for quantitatively measuring size of focus through electronic endoscope |
| CN106456271A (en) * | 2014-03-28 | 2017-02-22 | 直观外科手术操作公司 | Quantitative 3D imaging and printing of surgical implants |
| WO2018008195A1 (en) * | 2016-07-05 | 2018-01-11 | オリンパス株式会社 | Image processing device, image processing system, method for operating image processing device, and program for operating image processing device |
| CN109381152A (en) * | 2017-08-04 | 2019-02-26 | 卡普索影像公司 | For the area of the object of interest in stomach image or the method for volume and equipment |
| CN110473192A (en) * | 2019-04-10 | 2019-11-19 | 腾讯医疗健康(深圳)有限公司 | Digestive endoscope image recognition model training and recognition methods, apparatus and system |
| CN110200580A (en) * | 2019-06-14 | 2019-09-06 | 石焕 | A kind of householder method for tumor in digestive tract clinic early detection |
Non-Patent Citations (2)
| Title |
|---|
| Lesion Classification of Wireless Capsule Endoscopy Images;Wenming Yang等;《2019 IEEE 16th International Symposium on Biomedical Imaging(ISBI 2019)》;20190711;第1238-1242页 * |
| 内镜专用直接测量尺的设计及临床应用价值;王向前等;《中华消化病与影像杂志》;20121231;第2卷(第6期);第30-32页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111091562A (en) | 2020-05-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111091562B (en) | A method and system for measuring the size of gastrointestinal lesions | |
| CN113573654B (en) | AI system, method and storage medium for detecting and measuring lesion size | |
| CN107920722B (en) | Reconstruction by object detection from images captured from the capsule camera | |
| CN100399978C (en) | Endoscopy system | |
| Bao et al. | A video-based speed estimation technique for localizing the wireless capsule endoscope inside gastrointestinal tract | |
| CN104582559B (en) | Endoscopic system and the method for work of endoscopic system | |
| Bao et al. | A computer vision based speed estimation technique for localiz ing the wireless capsule endoscope inside small intestine | |
| Ali et al. | A pilot study on automatic three-dimensional quantification of Barrett’s esophagus for risk stratification and therapy monitoring | |
| WO2021212693A1 (en) | Gabor wavelet-fused multi-scale local level set ultrasonic image segmentation method | |
| CN110443802B (en) | Image detection method and device, equipment and storage medium | |
| CN113274129A (en) | Cardiothoracic surgery auxiliary control system based on virtual reality | |
| US20220358750A1 (en) | Learning device, depth information acquisition device, endoscope system, learning method, and program | |
| CN116958147B (en) | Target area determining method, device and equipment based on depth image characteristics | |
| CN111311626A (en) | Automatic detection method of skull fracture based on CT image and electronic medium | |
| WO2022194014A1 (en) | Completeness self-checking method of capsule endoscope, electronic device, and readable storage medium | |
| CN115222878A (en) | Scene reconstruction method applied to lung bronchoscope surgical robot | |
| WO2022184154A1 (en) | Method and system for recognizing extension length of miniature endoscopic ultrasonography probe, and storage medium | |
| CN116974369A (en) | Method, system, equipment and storage medium for operating medical image in operation | |
| EP4664397A1 (en) | Endoscopic target structure evaluation system and method, device, and storage medium | |
| US11850090B2 (en) | Guided lung coverage and automated detection using ultrasound devices | |
| CN104936505B (en) | The navigation carried out using the image of advance collection | |
| US12511746B2 (en) | Auxiliary evaluation system and method | |
| US20230334658A1 (en) | Quantification of barrett's oesophagus | |
| CN114565599B (en) | Lung model acquisition device, method, electronic device and storage medium | |
| CN105678794A (en) | Image-processing-based evaluation method for scar treatment effect |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CB03 | Change of inventor or designer information | ||
| CB03 | Change of inventor or designer information |
Inventor after: Zuo Xiuli Inventor after: Feng Jian Inventor after: Ma Mingjun Inventor after: Li Yanqing Inventor after: Li Zhen Inventor after: Shao Xuejun Inventor after: Yang Xiaoyun Inventor after: Lai Yonghang Inventor after: Xin Wei Inventor before: Zuo Xiuli Inventor before: Feng Jian Inventor before: Ma Mingjun Inventor before: Li Yanqing Inventor before: Li Zhen Inventor before: Shao Xuejun Inventor before: Yang Xiaoyun Inventor before: Lai Yonghang Inventor before: Xin Wei |
