CN114359288B - Medical image cerebral aneurysm detection and positioning method based on artificial intelligence - Google Patents
Medical image cerebral aneurysm detection and positioning method based on artificial intelligence Download PDFInfo
- Publication number
- CN114359288B CN114359288B CN202210279446.7A CN202210279446A CN114359288B CN 114359288 B CN114359288 B CN 114359288B CN 202210279446 A CN202210279446 A CN 202210279446A CN 114359288 B CN114359288 B CN 114359288B
- Authority
- CN
- China
- Prior art keywords
- pixel
- confidence
- image
- medical image
- point
- 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.)
- Expired - Fee Related
Links
- 201000008450 Intracranial aneurysm Diseases 0.000 title claims abstract description 18
- 238000013473 artificial intelligence Methods 0.000 title claims abstract description 13
- 238000001514 detection method Methods 0.000 title claims abstract description 13
- 238000000034 method Methods 0.000 title claims description 32
- 230000003902 lesion Effects 0.000 claims abstract description 23
- 230000008859 change Effects 0.000 claims abstract description 21
- 230000001575 pathological effect Effects 0.000 claims abstract description 6
- 238000012545 processing Methods 0.000 claims abstract description 5
- 238000012549 training Methods 0.000 claims description 11
- 238000011156 evaluation Methods 0.000 claims description 9
- 230000008569 process Effects 0.000 claims description 8
- 238000007781 pre-processing Methods 0.000 claims description 7
- 238000002059 diagnostic imaging Methods 0.000 claims description 5
- 238000004458 analytical method Methods 0.000 claims description 4
- 238000012937 correction Methods 0.000 claims description 4
- 230000000717 retained effect Effects 0.000 claims description 3
- 238000010276 construction Methods 0.000 claims 1
- 230000003247 decreasing effect Effects 0.000 claims 1
- 230000036285 pathological change Effects 0.000 claims 1
- 231100000915 pathological change Toxicity 0.000 claims 1
- 230000001502 supplementing effect Effects 0.000 claims 1
- 239000000284 extract Substances 0.000 abstract description 7
- 206010028980 Neoplasm Diseases 0.000 description 10
- 230000011218 segmentation Effects 0.000 description 10
- 230000004807 localization Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000003062 neural network model Methods 0.000 description 2
- 206010002329 Aneurysm Diseases 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 208000021138 brain aneurysm Diseases 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Landscapes
- Apparatus For Radiation Diagnosis (AREA)
Abstract
本发明涉及一种基于人工智能的医学影像脑动脉瘤检测方法,其获取待检测医学影像的第一置信度图;提取待检测医学影像的感兴趣区域,根据感兴趣区域,得到其八邻域图像,进而得到参考图像;将参考图像的像素点替换掉感兴趣区域的像素点,得到参考医学影像,得到第二置信度图;将第一部分置信度图与第二部分置信度图作差,得到八邻域置信度变化图;并对其进行二值化处理,对像素值为1的像素点进行曲线拟合,得到N条直线;判断N条直线是否在感兴趣区域内有交点,若有交点且交点的置信度大于设定阈值,则该交点为病变点,则待测医学影像为病理图像。即本发明额外分析了目标区域邻域的置信度变化,提高了判断的准确率,同时减少了误判的概率。
The invention relates to a medical image cerebral aneurysm detection method based on artificial intelligence, which obtains a first confidence level map of the medical image to be detected; extracts the region of interest of the medical image to be detected, and obtains its eight neighborhoods according to the region of interest image, and then obtain the reference image; replace the pixels of the reference image with the pixels of the region of interest, obtain the reference medical image, and obtain the second confidence map; make the difference between the first part of the confidence map and the second part of the confidence map, Obtain the eight-neighborhood confidence change map; perform binarization processing on it, perform curve fitting on the pixel points with the pixel value of 1, and obtain N straight lines; judge whether the N straight lines have intersections in the region of interest, if If there is an intersection point and the confidence level of the intersection point is greater than the set threshold, the intersection point is a lesion point, and the medical image to be tested is a pathological image. That is, the present invention additionally analyzes the change of confidence in the neighborhood of the target area, thereby improving the accuracy of judgment and reducing the probability of misjudgment.
Description
技术领域technical field
本发明涉及医学图像处理领域,具体涉及基于人工智能的医学影像脑动脉瘤检测和定位方法。The invention relates to the field of medical image processing, in particular to a method for detecting and locating cerebral aneurysm in medical images based on artificial intelligence.
背景技术Background technique
现有基于医学图像处理进行脑动脉瘤检测和定位的方法,为采用神经网络,结合自注意力机制等网络优化方法实现脑动脉瘤的检测和定位。但是其需要足够多的病变图像作为训练样本,而实际中难以获取数量较多的病变图像,且由于病变程度、病变位置等属性不同,导致在训练样本较少的情况下,训练好的检测网络在识别病变时泛化能力较差。There are existing methods for cerebral aneurysm detection and localization based on medical image processing, in order to use neural network, combined with network optimization methods such as self-attention mechanism to realize the detection and localization of cerebral aneurysm. However, it needs enough lesion images as training samples, and it is difficult to obtain a large number of lesion images in practice, and due to the different attributes such as the degree of lesion and the location of the lesion, the trained detection network can be improved when the number of training samples is small. Poor generalization ability when identifying lesions.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种基于人工智能的医学影像脑动脉瘤检测和定位方法,用于解决在训练样本较少的情况下,训练好的检测网络在识别病变时泛化能力较差的问题。The purpose of the present invention is to provide an artificial intelligence-based medical imaging cerebral aneurysm detection and localization method, which is used to solve the problem that the trained detection network has poor generalization ability when recognizing lesions when the training samples are few. .
本发明提供的一种基于人工智能的医学影像脑动脉瘤检测和定位方法的技术方案,包括以下步骤:The technical solution of an artificial intelligence-based medical imaging cerebral aneurysm detection and localization method provided by the present invention includes the following steps:
获取待检测医学影像,对所述待检测医学影像进行预处理,得到第一置信度图;acquiring a medical image to be detected, and preprocessing the medical image to be detected to obtain a first confidence map;
提取待检测医学影像的感兴趣区域,根据所述感兴趣区域,得到感兴趣区域的八邻域图像;对所述八邻域进行合并后得到八通道邻域图像,并将八通道邻域图像输入网络预测模型中,得到对应的参考图像;将所述参考图像的像素点替换掉所述待检测医学影像中的感兴趣区域的像素点,得到参考医学影像,并对所述参考医学影像进行预处理,得到第二置信度图;Extract the region of interest of the medical image to be detected, and obtain eight neighborhood images of the region of interest according to the region of interest; combine the eight neighborhoods to obtain an eight-channel neighborhood image, and combine the eight-channel neighborhood image Input the network prediction model to obtain the corresponding reference image; replace the pixels of the reference image with the pixels of the region of interest in the medical image to be detected to obtain the reference medical image, and perform the reference medical image. Preprocessing to obtain a second confidence map;
提取待测医学影像的八邻域图像对应的第一部分置信度图和参考医学影像的八邻域图像对应的第二部分置信度图,将所述第一部分置信度图和第二部分置信度图作差,得到八邻域置信度变化图;对所述八邻域置信度变化图进行二值化处理,将大于0的像素点置1,并对像素值为1的像素点进行曲线拟合,得到拟合的N条直线,其中N大于等于1;Extract the first part of the confidence map corresponding to the eight-neighborhood image of the medical image to be tested and the second part of the confidence map corresponding to the eight-neighborhood image of the reference medical image, and combine the first part of the confidence map and the second part of the confidence map Make the difference, and obtain the eight-neighborhood confidence change map; binarize the eight-neighborhood confidence change map, set the pixel points greater than 0 to 1, and perform curve fitting on the pixel points with the pixel value of 1 , get the fitted N straight lines, where N is greater than or equal to 1;
判断N条直线是否在所述感兴趣区域内有交点,若有交点且交点的置信度大于设定阈值,则该交点为病变点,则所述待测医学影像为病理图像;反之,则无病变点,则所述待测医学影像为正常图像。Determine whether the N straight lines have an intersection in the region of interest. If there is an intersection and the confidence of the intersection is greater than the set threshold, then the intersection is a lesion, and the medical image to be tested is a pathological image; otherwise, there is no lesions, the medical image to be tested is a normal image.
进一步地,所述提取待检测医学影像的感兴趣区域的方法为:Further, the method for extracting the region of interest of the medical image to be detected is:
选取第一置信度图中前k个置信度大的像素点构成第一像素点集合;Selecting the first k pixels with high confidence in the first confidence map to form a first set of pixels;
计算所述第一像素点集合中的任意两像素点之间的欧氏距离,当所述欧式距离小于预设阈值,则将该两像素点合并为单个像素点,所述单个像素点的像素值为所述两像素点中任意一像素点的像素值;并将未构成集合的像素点补充第一像素点集合,继续进行合并判断,直至第一像素点集合内的元素个数为k,进而得到新的第一像素点集合;Calculate the Euclidean distance between any two pixels in the first set of pixels, and when the Euclidean distance is less than a preset threshold, combine the two pixels into a single pixel, and the pixel of the single pixel The value is the pixel value of any one of the two pixel points; and the pixels that do not constitute a set are supplemented with the first pixel set, and the merging judgment is continued until the number of elements in the first pixel set is k, and then obtain a new first pixel point set;
构建大小的滑窗,采用所述滑窗提取新的第一像素点集合的每个像素点周围信息,并根据提取区域的置信度均值作为评价指标,若评价指标,则以为最优模板尺寸,否则,令,,直至获取到最优滑窗尺寸;Construct The size of the sliding window, the sliding window is used to extract the surrounding information of each pixel point of the new first pixel point set, and the confidence average value of the extracted area is used as the evaluation index , if the evaluation index , then with is the optimal template size, otherwise, let , , until the optimal sliding window size is obtained;
根据所述最优滑窗尺寸对所述待检测医学影像进行区域的提取,得到与最优滑窗尺寸相同的感兴趣区域。The region of the medical image to be detected is extracted according to the optimal sliding window size, so as to obtain a region of interest with the same size as the optimal sliding window.
进一步地,所述网络预测模型的训练过程为:Further, the training process of the network prediction model is:
获取多张真实病变医学影像和非病变医学影像,并随机选择各医学影像的中心点,按照所述最优滑窗尺寸获取中心图像和八邻域图像,以中心图像为标注数据,八邻域图像作为网络预测模型的输入训练样本,对所述网络预测模型进行训练。Obtain multiple real diseased medical images and non-lesioned medical images, and randomly select the center point of each medical image, obtain the center image and eight neighborhood images according to the optimal sliding window size, take the center image as the labeling data, and the eight neighborhoods The images are used as input training samples for the network prediction model, and the network prediction model is trained.
进一步地,所述的拟合的N条直线的获取过程为:Further, the acquisition process of the described fitted N straight lines is:
1)分别对八邻域置信度变化图中像素值为1的像素点进行直线拟合,得到第一直线;1) Perform straight line fitting on the pixel points with a pixel value of 1 in the eight-neighborhood confidence change graph to obtain the first straight line;
2)分别计算各像素点到所述第一直线的距离,并得到所有像素点的距离均值,当距离均值大于等于拟合度阈值,则依次提取出所述距离最大的像素点,直至剩余像素点的拟合度小于所述拟合度阈值,并统计提取出的像素点的个数,当个数大于设定个数,则对提取出的像素点进行直线拟合,得到第二直线,并计算得到对应的距离均值,判断是否大于等于拟合度阈值,依次类推,直至拟合的所有直线的像素点均满足拟合度阈值,则得到N条直线。2) Calculate the distance from each pixel to the first straight line, and obtain the average distance of all pixels. When the average distance is greater than or equal to the fit threshold, extract the pixel with the largest distance in turn, until the remaining The fitting degree of the pixel points is less than the fitting degree threshold, and the number of the extracted pixel points is counted. When the number is greater than the set number, a straight line is performed on the extracted pixel points to obtain a second straight line. , and calculate the corresponding distance mean, determine whether it is greater than or equal to the fit threshold, and so on, until all the pixels of the fitted lines meet the fit threshold, then N straight lines are obtained.
进一步地,所述病变点为根据拟合直线所包括像素点的置信度变化值梯度进行筛选,若自感兴趣区域内交点向外梯度呈下降趋势,则保留该交点,否则,删除该交点。进一步地,还包括根据所述交点对感兴趣区域内各像素点对应的第一置信度作修正:Further, the lesion point is screened according to the gradient of the confidence change value of the pixel points included in the fitted straight line. If the gradient from the intersection point in the region of interest to the outside shows a downward trend, the intersection point is retained, otherwise, the intersection point is deleted. Further, it also includes modifying the first confidence level corresponding to each pixel in the region of interest according to the intersection point:
1)计算交点与各像素点的欧式距离设为,表示第个交点,表示第个像素点;1) Calculate the Euclidean distance between the intersection and each pixel as , means the first a point of intersection, means the first pixels;
2)则各交点的置信度修正值为:2) Then the confidence correction value of each intersection point for:
则各像素点的修正后的第一置信度为,其中为第一置信度图中各像素点的第一置信度,为交点总个数。Then the corrected first confidence level of each pixel is ,in is the first confidence level of each pixel in the first confidence level map, is the total number of intersections.
进一步地,在进行交点的置信度与设定阈值比较之前,还包括对所述像素点的置信度进行归一化处理。Further, before comparing the confidence level of the intersection point with the set threshold, it also includes normalizing the confidence level of the pixel point.
进一步地,根据确定好的病变点以及修正后的第一置信度图得到类别图像,并对所述类别图形进行连通域分析得到若干连通域,筛选掉像素点个数小于设定数目的连通域,以剩余各连通域的包围框的中心点作为定位点。Further, a category image is obtained according to the determined lesion point and the corrected first confidence map, and a connected domain is obtained by performing a connected domain analysis on the category graph, and the connected domain with the number of pixels less than the set number is filtered out. , take the center point of the bounding box of the remaining connected domains as the anchor point.
本发明具有如下有益效果:相较于直接通过置信度进行判断的方式,本申请通过替换操作获取替换前和替换后的置信度图,额外分析了目标区域邻域的置信度变化,基于邻域置信度变化的趋向性辅助目标区域像素点置信度进行一定程度的修正,提高了判断的准确率,同时也减少了误判和错判的概率。The present invention has the following beneficial effects: compared with the method of directly judging by the confidence, the present application obtains the confidence map before and after the replacement through the replacement operation, additionally analyzes the confidence change of the neighborhood of the target area, and based on the neighborhood The trend of confidence change assists the pixel confidence of the target area to be corrected to a certain extent, which improves the accuracy of judgment and reduces the probability of misjudgment and misjudgment.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案和优点,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它附图。In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description The drawings are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明的一种基于人工智能的医学影像脑动脉瘤检测方法的方法流程图。FIG. 1 is a method flowchart of a method for detecting a brain aneurysm in medical images based on artificial intelligence according to the present invention.
具体实施方式Detailed ways
为了更进一步阐述本发明为达成预定发明目的所采取的技术手段及功效,以下结合附图及较佳实施例,对依据本发明的方案,其具体实施方式、结构、特征及其功效,详细说明如下。在下述说明中,不同的“一个实施例”或“另一个实施例”指的不一定是同一实施例。此外,一或多个实施例中的特定特征、结构、或特点可由任何合适形式组合。In order to further illustrate the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the following describes the solution according to the present invention, its specific implementation, structure, features and effects in detail with reference to the accompanying drawings and preferred embodiments. as follows. In the following description, different "one embodiment" or "another embodiment" are not necessarily referring to the same embodiment. Furthermore, the particular features, structures, or characteristics in one or more embodiments may be combined in any suitable form.
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。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.
下面结合附图具体的说明本发明所提供的一种基于人工智能的医学影像脑动脉瘤检测方法的具体方案。The specific scheme of an artificial intelligence-based medical imaging cerebral aneurysm detection method provided by the present invention will be specifically described below with reference to the accompanying drawings.
具体地,请参阅图1,其示出了本发明一个实施例提供的一种基于人工智能的医学影像脑动脉瘤检测方法的方法流程图,该方法包括以下步骤:Specifically, please refer to FIG. 1, which shows a method flowchart of an artificial intelligence-based medical imaging cerebral aneurysm detection method provided by an embodiment of the present invention, and the method includes the following steps:
步骤1,获取待检测医学影像,对所述待检测医学影像进行预处理,得到第一置信图。Step 1: Acquire a medical image to be detected, and preprocess the medical image to be detected to obtain a first confidence map.
本实施例中的待测医学影像为CT图像。The medical image to be tested in this embodiment is a CT image.
其中,对CT图像进行预处理的过程为:Among them, the process of preprocessing the CT image is as follows:
1)构建语义分割网络,所述语义分割网络结构为编码器-解码器结构;利用标签数据对语义分割网络进行训练,得到训练好的语义分割网络;1) Build a semantic segmentation network, and the semantic segmentation network structure is an encoder-decoder structure; use the label data to train the semantic segmentation network to obtain a trained semantic segmentation network;
训练的标签数据为:若干CT图像,由多张存在脑动脉瘤CT图像和多张不存在脑动脉瘤CT图像构成,标签数据为像素级标注。The training label data is: several CT images, which are composed of multiple CT images with cerebral aneurysm and multiple CT images without cerebral aneurysm, and the label data is pixel-level annotation.
其中语义分割网络的损失函数采用二值交叉熵作为损失函数。The loss function of the semantic segmentation network adopts binary cross entropy as the loss function.
由于语义分割网络为公知的网络,因此,此处不再具体介绍其训练过程。Since the semantic segmentation network is a well-known network, its training process will not be described in detail here.
2)以待处理的图像作为输入,输入训练好的语义分割网络中,输出语义分割图像,进而得到第一置信度图;2) Take the image to be processed as the input, input the trained semantic segmentation network, output the semantic segmentation image, and then obtain the first confidence map;
需要说明的是,在获取语义分割图像时,各像素点均有对应的类别,而类别的获取过程为网络输出每个像素点的类别置信度,由于本申请所述语义分割为二分类,则一个像素点有两个类别置信度(瘤体类别和非瘤体类别),再通过Softmax函数处理后,输出最大置信度对应的类别作为像素点的类别;并提取像素点的瘤体类别对应的置信度,将所有像素点的瘤体类别对应的置信度构成第一置信度图,其中第一置信度图中各像素点像素值值域为。It should be noted that when acquiring the semantic segmentation image, each pixel has a corresponding category, and the acquisition process of the category is that the network outputs the category confidence of each pixel. Since the semantic segmentation described in this application is divided into two categories, then A pixel has two categories of confidence (tumor category and non-tumor category), and then processed by the Softmax function, the category corresponding to the maximum confidence is output as the category of the pixel; and the corresponding tumor category of the pixel is extracted. Confidence degree, the confidence degree corresponding to the tumor type of all pixel points is formed into a first confidence degree map, wherein the pixel value range of each pixel in the first confidence degree map is .
步骤2,提取待检测医学影像的感兴趣区域,根据所述感兴趣区域,得到感兴趣区域的八邻域图像;对所述八邻域进行合并后得到八通道邻域图像,并将八通道邻域图像输入网络预测模型中,得到对应的参考图像;将所述参考图像的像素点替换掉所述待检测医学影像中的感兴趣区域的像素点,得到参考医学影像,并对参考医学影像进行预处理,得到第二置信度图。Step 2: Extract the region of interest of the medical image to be detected, and obtain eight neighborhood images of the region of interest according to the region of interest; combine the eight neighborhoods to obtain an eight-channel neighborhood image, and combine the eight-channel neighborhood images. The neighborhood image is input into the network prediction model, and the corresponding reference image is obtained; the pixels of the reference image are replaced by the pixels of the region of interest in the medical image to be detected, and the reference medical image is obtained, and the reference medical image is compared. Perform preprocessing to obtain a second confidence map.
本实施例中感兴趣区域的提取可以采用连通域分析法进行提取;作为其他实施方式,还可以采用以下步骤进行感兴趣区域的提取,具体地:In this embodiment, the region of interest can be extracted by using the connected domain analysis method; as another implementation manner, the following steps can also be used to extract the region of interest, specifically:
1)选取第一置信度图中前k个置信度大的像素点构成第一像素点集合;1) Select the first k pixels with high confidence in the first confidence map to form the first set of pixels;
2)计算所述第一像素点集合中的任意两像素点之间的欧氏距离,当所述欧式距离小于预设阈值,则将该两像素点合并为单个像素点,所述单个像素点的像素值为所述两像素点中任意一像素点的像素值;并将未构成集合的像素点补充第一像素点集合,继续进行合并判断,直至第一像素点集合内的元素个数为k,进而得到新的第一像素点集合;2) Calculate the Euclidean distance between any two pixels in the first set of pixels, and when the Euclidean distance is less than a preset threshold, combine the two pixels into a single pixel, the single pixel The pixel value of the pixel value is the pixel value of any pixel point in the two pixel points; and the pixel points that do not constitute a set are supplemented with the first pixel point set, and the merging judgment is continued until the number of elements in the first pixel point set is k, and then obtain a new first set of pixels;
需要说明的是,此处可基于实施者对检测的精度自适应调整,所需检测精度越高,则值越大,在本申请中设置为10;预设阈值用于将第一像素点集合内距离较近的像素点合并,进而可以避免同一动脉瘤区域像素点被多次处理,在本实施例中预设阈值设置为,其中,为第一置信度图的宽和高。It should be noted that here It can be adaptively adjusted based on the detection accuracy of the implementer. The higher the required detection accuracy, the The larger the value, it is set to 10 in this application; the preset threshold It is used to combine the pixels with short distances in the first pixel point set, so as to avoid the pixels in the same aneurysm area being processed multiple times. In this embodiment, the threshold is preset. Set as ,in, are the width and height of the first confidence map.
3)构建大小的滑窗,采用所述滑窗提取新的第一像素点集合的每个像素点周围信息,并根据提取区域的置信度均值作为评价指标,若评价指标,则以为最优模板尺寸,否则,令,,直至获取到最优滑窗尺寸;3) Build The size of the sliding window, the sliding window is used to extract the surrounding information of each pixel point of the new first pixel point set, and the confidence average value of the extracted area is used as the evaluation index , if the evaluation index , then with is the optimal template size, otherwise, let , , until the optimal sliding window size is obtained;
上述步骤中,初始值设置为5,表示以尺寸模板提取信息后获取的评价指标,为评价指标阈值,在本申请中设置为0.2。In the above steps, The initial value is set to 5, means with The evaluation index obtained after the information is extracted from the size template, For the evaluation index threshold, it is set to 0.2 in this application.
4)根据最优滑窗尺寸对所述待检测医学影像进行区域的提取,得到与最优滑窗尺寸相同的感兴趣区域。4) Extracting a region of the medical image to be detected according to the optimal sliding window size to obtain a region of interest with the same size as the optimal sliding window.
具体地,本发明的感兴趣区域的提取可以采用神经网络模型进行特征的提取,由于神经网络模型提取特征为现有技术,此处不再过多介绍。需要说明的是,本发明通过确定最优的滑窗尺寸,在进行感兴趣区域的提取时,能够限定感兴趣区域的尺寸大小。Specifically, the extraction of the region of interest of the present invention can use a neural network model to extract features. Since the neural network model extraction of features is in the prior art, it will not be described here. It should be noted that, by determining the optimal sliding window size, the present invention can limit the size of the region of interest when extracting the region of interest.
基于上述提取的感兴趣区域,得到该感兴趣区域的八邻域图像,具体地,提取感兴趣区域的中心像素点坐标为,则以相同尺寸模板基于像素点坐标,,,,,,,为中心,在CT图像中提取八邻域图像;同时对八邻域图像进行Concat后,得到八通道邻域图像。Based on the extracted region of interest, the eight neighborhood images of the region of interest are obtained. Specifically, the coordinates of the center pixel of the extracted region of interest are: , then use the same size template based on pixel coordinates , , , , , , , As the center, the eight neighborhood images are extracted from the CT image; at the same time, after the eight neighborhood images are Concat, the eight channel neighborhood images are obtained.
本实施例中的参考图像的获取为:通过将八通道邻域图像作为网络预测模型的输入,输出参考图像。The acquisition of the reference image in this embodiment is as follows: the reference image is output by taking the eight-channel neighborhood image as the input of the network prediction model.
上述中的网络预测模型的训练为:获取多张真实病变医学影像和非病变医学影像,并随机选择各医学影像的中心点,按照所述最优滑窗尺寸获取中心图像和八邻域图像,以中心图像为标注数据,八邻域图像作为网络预测模型的输入训练样本,对所述网络预测模型进行训练。The training of the network prediction model in the above is as follows: obtaining multiple real diseased medical images and non-lesioned medical images, randomly selecting the center point of each medical image, and obtaining the center image and eight neighborhood images according to the optimal sliding window size, The central image is used as the labeled data, and the eight-neighborhood image is used as the input training sample of the network prediction model, and the network prediction model is trained.
本实施例中的参考参考医学影像对应的第二置信度图的获取方法与步骤1中的预处理的方法相同,此处不再过多赘述。The method for acquiring the second confidence map corresponding to the reference medical image in this embodiment is the same as the method for preprocessing in step 1, and details are not repeated here.
步骤3,提取待测医学影像的八邻域图像对应的第一部分置信度图和参考医学影像的八邻域图像对应的第二部分置信度图,将所述第一部分置信度图和第二部分置信度图作差,得到八邻域置信度变化图;对所述八邻域置信度变化图进行二值化处理,将大于0的像素点置1,并对像素值为1的像素点进行曲线拟合,得到拟合的N条直线,其中N大于等于1;Step 3, extract the first part of the confidence map corresponding to the eight-neighborhood image of the medical image to be tested and the second part of the confidence map corresponding to the eight-neighborhood image of the reference medical image, and combine the first part of the confidence map and the second part. The confidence degree map is made difference, and the eight-neighborhood confidence degree change map is obtained; the eight-neighborhood confidence degree change map is binarized, the pixels greater than 0 are set to 1, and the pixel points with the pixel value of 1 are processed. Curve fitting, and N straight lines are obtained, where N is greater than or equal to 1;
上述步骤中的提取相应影像的部分置信度图是根据步骤2中的像素点以及最优滑窗尺寸可以直接对应确定的,也即通过图像与置信度图的对比,提取对应位置的像素点的置信度,构成部分置信度图即可。The partial confidence map for extracting the corresponding image in the above steps can be directly determined according to the pixel points in step 2 and the optimal sliding window size, that is, through the comparison between the image and the confidence map, the corresponding position of the pixel point is extracted. Confidence can be formed by forming a partial confidence map.
本实施例中的第一部分置信度图与第二部分置信度图作差是两图中对应的像素点的置信度进行作差,进而得到了置信度变化值。The difference between the first part of the confidence map and the second part of the confidence map in this embodiment is the difference of the confidence of the corresponding pixel points in the two images, and then the confidence change value is obtained.
需要说明的是,上述步骤利用八邻域图像的八邻域置信度变化图作为参考因素,是由于感兴趣区域可能是瘤体也可能是非瘤体,当为非瘤体时,其邻域图像信息通常情况下与感兴趣区域的置信度相同,但若是瘤体,则感兴趣区域影响其邻域图像信息,即邻域图像信息发生变化,因此,利用邻域信息的变化能从侧面检测感兴趣区域是否是瘤体类别。It should be noted that the above steps use the eight-neighborhood confidence change map of the eight-neighborhood image as a reference factor, because the region of interest may be a tumor body or a non-tumor body. When it is a non-tumor body, its neighborhood image The information is usually the same as the confidence level of the region of interest, but if it is a tumor, the region of interest affects its neighborhood image information, that is, the neighborhood image information changes. Whether the region of interest is a tumor type.
本实施例中,拟合的N条直线的获取过程为:In this embodiment, the acquisition process of the fitted N straight lines is:
1)分别对八邻域置信度变化图中像素值为1的像素点进行直线拟合,得到第一直线;1) Perform straight line fitting on the pixel points with a pixel value of 1 in the eight-neighborhood confidence change graph to obtain the first straight line;
2)分别计算各像素点到所述第一直线的距离,并得到所有像素点的距离均值,当距离均值大于等于拟合度阈值,则依次提取出所述距离最大的像素点,直至剩余像素点的拟合度小于所述拟合度阈值,并统计提取出的像素点的个数,当个数大于设定个数,则对提取出的像素点进行直线拟合,得到第二直线,并计算得到对应的距离均值,判断是否大于等于拟合度阈值,依次类推,直至拟合的所有直线的像素点均满足拟合度阈值,则得到N条直线。2) Calculate the distance from each pixel to the first straight line, and obtain the average distance of all pixels. When the average distance is greater than or equal to the fit threshold, extract the pixel with the largest distance in turn, until the remaining The fitting degree of the pixel points is less than the fitting degree threshold, and the number of the extracted pixel points is counted. When the number is greater than the set number, a straight line is performed on the extracted pixel points to obtain a second straight line. , and calculate the corresponding distance mean, determine whether it is greater than or equal to the fit threshold, and so on, until all the pixels of the fitted lines meet the fit threshold, then N straight lines are obtained.
上述中的设定个数取值为3;拟合度阈值设置为5,当然其可以根据实际情况进行确定。The set number in the above is 3; the fit threshold is Set to 5, of course, it can be determined according to the actual situation.
步骤4,判断N条直线是否在所述感兴趣区域内有交点,若有交点且交点的置信度大于设定阈值,则该交点为病变点,则所述待测医学影像为病理图像;反之,则无病变点,则所述待测医学影像为正常图像。Step 4: Determine whether the N straight lines have an intersection in the region of interest. If there is an intersection and the confidence of the intersection is greater than the set threshold, then the intersection is a lesion point, and the medical image to be tested is a pathological image; otherwise , then there is no lesion, and the medical image to be tested is a normal image.
本实施例中病变点为根据拟合直线所包括像素点的置信度变化值梯度进行筛选,若自感兴趣区域内的交点向外梯度呈下降趋势,则保留该交点,否则,删除该交点。其中的自感兴趣区域内交点向外梯度呈下降趋势是从感兴趣区域内开始向外,判断形成的交点的置信度变化值的梯度是否呈下降趋势。In this embodiment, the lesion points are screened according to the gradient of the confidence change value of the pixel points included in the fitted straight line. If the gradient from the intersection point in the region of interest shows a downward trend, the intersection point is retained, otherwise, the intersection point is deleted. The downward trend of the gradient from the intersection point in the region of interest to the outside is from the region of interest to the outside, and it is judged whether the gradient of the confidence change value of the formed intersection point has a downward trend.
进一步地,为了更准确,本实施例中还包括根据所述交点对感兴趣区域内各像素点对应的第一置信度作修正:Further, in order to be more accurate, this embodiment also includes modifying the first confidence level corresponding to each pixel point in the region of interest according to the intersection point:
1)计算交点与各像素点的欧式距离设为,表示第个交点,表示第个像素点;1) Calculate the Euclidean distance between the intersection and each pixel as , means the first a point of intersection, means the first pixels;
2)则各交点的置信度修正值为:2) Then the confidence correction value of each intersection point for:
则各像素点的修正后的第一置信度为,其中为第一置信度图中各像素点的第一置信度,为交点总个数。Then the corrected first confidence level of each pixel is ,in is the first confidence level of each pixel in the first confidence level map, is the total number of intersections.
然后将修正后的像素点的置信度与设定阈值进行比较,确定该交点是否为病变点。同时,上述步骤中,在进行交点的置信度与设定阈值比较之前,还包括对所述像素点的置信度进行归一化处理,即对所有感兴趣区域像素点修正后的像素值进行归一化,归一化后,提取归一化值大于等于0.5的像素点作为病变像素点。Then, the confidence level of the corrected pixel point is compared with the set threshold to determine whether the intersection point is a lesion point. At the same time, in the above steps, before comparing the confidence level of the intersection with the set threshold, it also includes normalizing the confidence level of the pixel points, that is, normalizing the corrected pixel values of all pixel points in the region of interest. After normalization, pixels with a normalized value greater than or equal to 0.5 are extracted as lesion pixels.
基于上述确定好的病变像素点,本发明还可以对肿瘤位置进行定位,具体地,根据确定好的病变点以及修正后的第一置信度图得到类别图像,并对所述类别图形进行连通域分析得到若干连通域,筛选掉像素点个数小于设定数目的连通域,以剩余各连通域的包围框的中心点作为定位点。Based on the above determined lesion pixel points, the present invention can also locate the tumor position. Specifically, a category image is obtained according to the determined lesion point and the corrected first confidence level map, and a connected domain is performed on the category graphic. A number of connected domains are obtained by analysis, and the connected domains whose number of pixels is less than the set number are filtered out, and the center point of the bounding box of the remaining connected domains is used as the positioning point.
本实施例中的设定数据为5;上述中的类别图像,是通过将病变点对应的像素点赋值为病变类别,得到类别图像。The set data in this embodiment is 5; the category image in the above is obtained by assigning the pixel point corresponding to the lesion point as the lesion category to obtain the category image.
本发明的方案通过替换操作获取替换前和替换后的置信度图,额外分析了目标区域邻域的置信度变化,基于邻域置信度变化的趋向性辅助目标区域像素点置信度进行一定程度的修正,提高了判断的准确率,同时也减少了误判和错判的概率,能够精准的脑动脉瘤CT图像检测和定位。The scheme of the present invention obtains the confidence map before and after replacement through the replacement operation, additionally analyzes the confidence change of the neighborhood of the target area, and assists the pixel point confidence in the target area based on the trend of the neighborhood confidence change to a certain degree. The correction improves the accuracy of judgment, reduces the probability of misjudgment and misjudgment, and can accurately detect and locate cerebral aneurysm CT images.
需要说明的是:上述本发明实施例先后顺序仅仅为了描述,不代表实施例的优劣。且上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。It should be noted that: the above-mentioned order of the embodiments of the present invention is only for description, and does not represent the advantages or disadvantages of the embodiments. And the foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210279446.7A CN114359288B (en) | 2022-03-22 | 2022-03-22 | Medical image cerebral aneurysm detection and positioning method based on artificial intelligence |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210279446.7A CN114359288B (en) | 2022-03-22 | 2022-03-22 | Medical image cerebral aneurysm detection and positioning method based on artificial intelligence |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114359288A CN114359288A (en) | 2022-04-15 |
CN114359288B true CN114359288B (en) | 2022-06-07 |
Family
ID=81094474
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210279446.7A Expired - Fee Related CN114359288B (en) | 2022-03-22 | 2022-03-22 | Medical image cerebral aneurysm detection and positioning method based on artificial intelligence |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114359288B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114549532B (en) * | 2022-04-27 | 2022-07-08 | 珠海市人民医院 | Cerebral ischemia auxiliary analysis method and system based on medical image processing |
CN115359051B (en) * | 2022-10-19 | 2023-12-15 | 江苏诺阳家居科技有限公司 | Aneurysm identification method based on pattern identification |
CN117611926B (en) * | 2024-01-22 | 2024-04-23 | 重庆医科大学绍兴柯桥医学检验技术研究中心 | Medical image recognition method and system based on AI model |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108596893A (en) * | 2018-04-24 | 2018-09-28 | 东北大学 | a kind of image processing method and system |
CN110796656A (en) * | 2019-11-01 | 2020-02-14 | 上海联影智能医疗科技有限公司 | Image detection method, image detection device, computer equipment and storage medium |
CN111428812A (en) * | 2020-04-14 | 2020-07-17 | 沈阳先进医疗设备技术孵化中心有限公司 | Construction method and device of medical image data |
CN112508783A (en) * | 2020-11-19 | 2021-03-16 | 西安全志科技有限公司 | Image processing method based on directional interpolation, computer device and computer readable storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007034733A (en) * | 2005-07-27 | 2007-02-08 | Toshiba Corp | Object region detecting system, method and program |
FR2942669B1 (en) * | 2009-02-27 | 2011-04-01 | Commissariat Energie Atomique | METHODS OF IMAGE SEGMENTATION AND DETECTION OF PARTICULAR STRUCTURES. |
CN107507201A (en) * | 2017-09-22 | 2017-12-22 | 深圳天琴医疗科技有限公司 | A kind of medical image cutting method and device |
CN113011398A (en) * | 2021-04-28 | 2021-06-22 | 北京邮电大学 | Target change detection method and device for multi-temporal remote sensing image |
-
2022
- 2022-03-22 CN CN202210279446.7A patent/CN114359288B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108596893A (en) * | 2018-04-24 | 2018-09-28 | 东北大学 | a kind of image processing method and system |
CN110796656A (en) * | 2019-11-01 | 2020-02-14 | 上海联影智能医疗科技有限公司 | Image detection method, image detection device, computer equipment and storage medium |
CN111428812A (en) * | 2020-04-14 | 2020-07-17 | 沈阳先进医疗设备技术孵化中心有限公司 | Construction method and device of medical image data |
CN112508783A (en) * | 2020-11-19 | 2021-03-16 | 西安全志科技有限公司 | Image processing method based on directional interpolation, computer device and computer readable storage medium |
Non-Patent Citations (3)
Title |
---|
Medical Image Segmentation of Blood Vessels Based on Clifford Algebra and Voronoi Diagram;Zhen Jie Huang et al;《Journal of Software》;20180630;第13卷(第6期);第361-373页 * |
基于深度学习的时间飞跃法磁共振血管成像对脑动脉瘤自动检测方法研究;耿辰 等;《上海医学》;20201231;第43卷(第5期);第274-279页 * |
颅内动脉瘤破裂风险评估的研究进展;李茂桐 等;《医学综述》;20190930;第25卷(第18期);第3662-3666页 * |
Also Published As
Publication number | Publication date |
---|---|
CN114359288A (en) | 2022-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114359288B (en) | Medical image cerebral aneurysm detection and positioning method based on artificial intelligence | |
Liao et al. | Automatic segmentation for cell images based on bottleneck detection and ellipse fitting | |
US20190080450A1 (en) | Tissue Staining Quality Determination | |
CN114067109B (en) | Grain detection method, grain detection device and storage medium | |
CN111582111B (en) | Cell component segmentation method based on semantic segmentation | |
JP2017107543A (en) | Method and system for automated analysis of cell images | |
Zhou et al. | Optic disc and cup segmentation in retinal images for glaucoma diagnosis by locally statistical active contour model with structure prior | |
CN110796643A (en) | Rail fastener defect detection method and system | |
CN108073918A (en) | The vascular arteriovenous crossing compression feature extracting method of eye ground | |
CN108615239B (en) | Tongue Image Segmentation Method Based on Thresholding Technique and Grayscale Projection | |
Xu et al. | Using transfer learning on whole slide images to predict tumor mutational burden in bladder cancer patients | |
CN112150429A (en) | Attention mechanism guided kidney CT image segmentation method | |
CN109147932B (en) | Cancer cell HER2 gene amplification analysis method and system | |
CN114820625B (en) | Automobile top block defect detection method | |
CN101231745A (en) | An Automatic Segmentation Method for Optimizing the Initial Segmentation Boundary of Image | |
CN112967262B (en) | Urine sediment tube type identification method based on morphological segmentation and deep learning | |
CN111127400A (en) | Method and device for detecting breast lesions | |
CN111612749B (en) | Focus detection method and device based on lung image | |
CN104866850B (en) | A kind of optimization method of text image binaryzation | |
CN104933723A (en) | Tongue image segmentation method based on sparse representation | |
Nguyen et al. | Pavement crack detection and segmentation based on deep neural network | |
CN112396580A (en) | Circular part defect detection method | |
CN111445456A (en) | Classification model, network model training method and device, and identification method and device | |
CN115471494A (en) | Wo citrus quality inspection method, device, equipment and storage medium based on image processing | |
CN116034398A (en) | Attentional multi-arm machine learning model for lesion segmentation |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220607 |