CN114549425A - Medical image detection method and device, storage medium and computer equipment - Google Patents
Medical image detection method and device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN114549425A CN114549425A CN202210099872.2A CN202210099872A CN114549425A CN 114549425 A CN114549425 A CN 114549425A CN 202210099872 A CN202210099872 A CN 202210099872A CN 114549425 A CN114549425 A CN 114549425A
- Authority
- CN
- China
- Prior art keywords
- segment
- bronchial
- medical image
- lung
- image
- 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.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 115
- 210000004072 lung Anatomy 0.000 claims abstract description 123
- 210000000621 bronchi Anatomy 0.000 claims abstract description 57
- 210000004204 blood vessel Anatomy 0.000 claims abstract description 55
- 238000000034 method Methods 0.000 claims abstract description 46
- 230000002685 pulmonary effect Effects 0.000 claims abstract description 41
- 230000011218 segmentation Effects 0.000 claims description 63
- 238000005070 sampling Methods 0.000 claims description 44
- 238000012545 processing Methods 0.000 claims description 43
- 238000012549 training Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 13
- 238000007781 pre-processing Methods 0.000 claims description 13
- 238000003062 neural network model Methods 0.000 claims description 12
- 238000000605 extraction Methods 0.000 claims description 9
- 238000012937 correction Methods 0.000 claims description 6
- 238000010606 normalization Methods 0.000 claims description 6
- 238000012952 Resampling Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 claims description 5
- 230000009467 reduction Effects 0.000 claims description 5
- 230000002349 favourable effect Effects 0.000 abstract 1
- 238000002591 computed tomography Methods 0.000 description 28
- 201000009267 bronchiectasis Diseases 0.000 description 24
- 210000000038 chest Anatomy 0.000 description 8
- 210000001367 artery Anatomy 0.000 description 6
- 238000013528 artificial neural network Methods 0.000 description 6
- 238000003384 imaging method Methods 0.000 description 6
- 210000001147 pulmonary artery Anatomy 0.000 description 6
- 238000003745 diagnosis Methods 0.000 description 5
- 238000011156 evaluation Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 238000001914 filtration Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000013527 convolutional neural network Methods 0.000 description 3
- 238000013135 deep learning Methods 0.000 description 3
- 201000010099 disease Diseases 0.000 description 3
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 3
- 230000002792 vascular Effects 0.000 description 3
- 238000013136 deep learning model Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000010339 dilation Effects 0.000 description 2
- 238000009499 grossing Methods 0.000 description 2
- 239000012535 impurity Substances 0.000 description 2
- 210000001562 sternum Anatomy 0.000 description 2
- 208000024891 symptom Diseases 0.000 description 2
- 210000003462 vein Anatomy 0.000 description 2
- 235000002566 Capsicum Nutrition 0.000 description 1
- 206010009691 Clubbing Diseases 0.000 description 1
- 206010011224 Cough Diseases 0.000 description 1
- 206010016654 Fibrosis Diseases 0.000 description 1
- 241000288140 Gruiformes Species 0.000 description 1
- 208000000616 Hemoptysis Diseases 0.000 description 1
- 206010021143 Hypoxia Diseases 0.000 description 1
- 206010061218 Inflammation Diseases 0.000 description 1
- 239000006002 Pepper Substances 0.000 description 1
- 235000016761 Piper aduncum Nutrition 0.000 description 1
- 235000017804 Piper guineense Nutrition 0.000 description 1
- 244000203593 Piper nigrum Species 0.000 description 1
- 235000008184 Piper nigrum Nutrition 0.000 description 1
- 206010036790 Productive cough Diseases 0.000 description 1
- 208000037656 Respiratory Sounds Diseases 0.000 description 1
- 230000036770 blood supply Effects 0.000 description 1
- 208000013116 chronic cough Diseases 0.000 description 1
- 230000001684 chronic effect Effects 0.000 description 1
- 238000013145 classification model Methods 0.000 description 1
- 208000023096 clubbing of fingers Diseases 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 210000004177 elastic tissue Anatomy 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004761 fibrosis Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000007954 hypoxia Effects 0.000 description 1
- 230000004054 inflammatory process Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003902 lesion Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 210000003205 muscle Anatomy 0.000 description 1
- 235000016709 nutrition Nutrition 0.000 description 1
- 230000035764 nutrition Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 206010037833 rales Diseases 0.000 description 1
- 230000000306 recurrent effect Effects 0.000 description 1
- 150000003839 salts Chemical class 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000006403 short-term memory Effects 0.000 description 1
- 208000024794 sputum Diseases 0.000 description 1
- 210000003802 sputum Anatomy 0.000 description 1
- 210000001519 tissue Anatomy 0.000 description 1
- 210000003371 toe Anatomy 0.000 description 1
- 210000003437 trachea Anatomy 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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; CALCULATING OR 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/10072—Tomographic images
- G06T2207/10081—Computed x-ray tomography [CT]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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; CALCULATING OR 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; CALCULATING OR 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/30061—Lung
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/30101—Blood vessel; Artery; Vein; Vascular
Landscapes
- Engineering & Computer Science (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)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Apparatus For Radiation Diagnosis (AREA)
Abstract
Description
技术领域technical field
本申请涉及医学影像处理技术领域,尤其是涉及到一种医学影像的检测方法、装置、存储介质和计算机设备。The present application relates to the technical field of medical image processing, and in particular, to a medical image detection method, device, storage medium and computer equipment.
背景技术Background technique
支气管扩张(简称支扩)是由于支气管及其周围肺组织慢性化脓性炎症和纤维化,使支气管壁的肌肉和弹性组织破坏,导致支气管变形及持久扩张。支扩的影像学表现可分为柱状、囊柱状、囊状扩张。对于同一支气管段而言,柱状支扩多为疾病发展早期的征象,而囊状则为疾病后期的征象,囊柱状支扩介乎于两者之间。但对于不同肺叶而言,支扩的影像学受累程度个体间差异甚大。Bronchiectasis (referred to as bronchiectasis) is due to chronic suppurative inflammation and fibrosis of the bronchus and its surrounding lung tissue, which destroys the muscle and elastic tissue of the bronchial wall, resulting in bronchial deformation and persistent expansion. The imaging manifestations of bronchiectasis can be divided into columnar, cystic columnar, and cystic dilatation. For the same bronchial segment, columnar bronchiectasis is mostly a sign of early disease development, while cystic is a sign of late disease, and cystic columnar bronchiectasis is between the two. However, for different lobes, the degree of imaging involvement of bronchiectasis varies greatly between individuals.
相关技术中的评分系统能够全面地评价支气管扩张以及其伴随的影像学征象,该系统在模型训练及使用阶段并未对三种征象在流程上及方法上有区别对待。但由于囊状和囊柱状的征象由于与正常支气管从影像特征上来说易于区分,而柱状征象与正常支气管相比难于区分,而且支扩的影像学受累程度个体间差异甚大。若采用相同的方法同时检测三种征象,缺少单一个体因素的考虑,势必导致柱状的征象检测精度低,从而无法实现支扩的分级评估,那么在支气管扩张的初期诊断上势必存在较大的偏差和空白区。The scoring system in the related art can comprehensively evaluate bronchiectasis and its accompanying imaging signs, and the system does not treat the three signs differently in terms of procedures and methods during model training and use. However, cystic and cystic-columnar signs are easy to distinguish from normal bronchial imaging features, while columnar signs are difficult to distinguish from normal bronchus, and the degree of imaging involvement of bronchiectasis varies greatly among individuals. If the same method is used to detect three signs at the same time, the lack of consideration of a single individual factor will inevitably lead to low detection accuracy of columnar signs, so that the graded evaluation of bronchiectasis cannot be achieved, and there is bound to be a large deviation in the initial diagnosis of bronchiectasis. and blank space.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供了一种医学影像的检测方法、装置、存储介质和计算机设备,能够自动化的检测支气管的柱状征象,有利于提高医生的阅片效率,减轻工作负担。In view of this, the present application provides a medical image detection method, device, storage medium and computer equipment, which can automatically detect the columnar signs of the bronchus, which is beneficial to improve the doctor's reading efficiency and reduce the workload.
根据本申请的一个方面,提供了一种医学影像的检测方法,包括:According to one aspect of the present application, a method for detecting medical images is provided, comprising:
获取肺部医学影像;提取肺部医学影像中的动脉血管和支气管,支气管包括多个不同级别的支气管段;根据支气管段的中心线与动脉血管的中心线之间的距离,确定肺部医学影像中支气管段对应的目标动脉血管段;对支气管段和目标动脉血管段进行检测处理,确定支气管段的检测结果。Acquire lung medical images; extract arterial blood vessels and bronchi in lung medical images, bronchus includes multiple bronchial segments at different levels; determine lung medical images according to the distance between the centerline of the bronchial segment and the centerline of the arterial blood vessel The target arterial vessel segment corresponding to the middle bronchial segment; the bronchial segment and the target arterial vessel segment are detected and processed to determine the detection result of the bronchial segment.
可选地,对支气管段和目标动脉血管段进行检测处理,确定支气管段的检测结果,具体包括:Optionally, performing detection processing on the bronchial segment and the target arterial vessel segment to determine the detection result of the bronchial segment, specifically including:
按照预设间距,对肺部医学影像中的第二支气管段、第一支气管段对应的目标动脉血管段中至少一者,以及第一支气管段进行截取处理,得到第一图像,第二支气管段为第一支气管段的前一个级别的支气管段;将第一图像和/或第一图像的掩码,输入柱状征象检测模型,以确定第一支气管段的检测结果;其中,柱状征象检测模型基于肺部样本图像和肺部样本图像对应的柱状征象标签训练得到。According to the preset interval, at least one of the second bronchial segment, the target arterial vessel segment corresponding to the first bronchial segment, and the first bronchial segment in the pulmonary medical image are intercepted to obtain a first image, the second bronchial segment is the bronchial segment of the previous level of the first bronchial segment; the first image and/or the mask of the first image is input into the columnar sign detection model to determine the detection result of the first bronchial segment; wherein, the columnar sign detection model is based on The lung sample images and the columnar sign labels corresponding to the lung sample images are trained.
可选地,医学影像的检测方法还包括:Optionally, the detection method of the medical image further includes:
获取肺部样本图像,肺部样本图像包括多个不同级别的支气管段样本和多个不同级别的支气管段样本对应的和目标动脉血管段样本;在第一支气管段样本的直径大于对应的目标动脉血管段样本的直径,或第一支气管段样本的直径与第二支气管段样本的直径之间的差值大于预设差值的情况下,生成第一支气管段样本的柱状征象标签,柱状征象标签用于标记支气管存在柱状征象;对标记有柱状征象标签的第二支气管段样本、第一支气管段样本对应的目标动脉血管段样本中至少一者,以及第一支气管段样本进行截取处理,得到第二图像;根据第二图像和/或第二图像的掩码,训练神经网络模型,得到柱状征象检测模型。Obtain a lung sample image, the lung sample image includes a plurality of different levels of bronchial segment samples and a plurality of different levels of bronchial segment samples corresponding to the target arterial blood vessel segment samples; the diameter of the first bronchial segment sample is larger than the corresponding target artery When the diameter of the blood vessel segment sample, or the difference between the diameter of the first bronchial segment sample and the diameter of the second bronchial segment sample is greater than the preset difference, a columnar sign label of the first bronchial segment sample is generated, and the columnar sign label is It is used to mark the presence of columnar signs in the bronchus; at least one of the second bronchial segment sample marked with the columnar sign label, the target arterial blood vessel segment sample corresponding to the first bronchial segment sample, and the first bronchial segment sample are intercepted to obtain the first bronchial segment sample. Two images; according to the second image and/or the mask of the second image, a neural network model is trained to obtain a columnar sign detection model.
可选地,根据支气管段的中心线与动脉血管的中心线之间的距离,确定肺部医学影像中支气管段对应的目标动脉血管段,具体包括:Optionally, according to the distance between the centerline of the bronchial segment and the centerline of the arterial vessel, determine the target arterial vessel segment corresponding to the bronchial segment in the pulmonary medical image, specifically including:
确定支气管段的中心线上的第一采样点;分别计算第一采样点与动脉血管的中心线上多个第二采样点之间的距离;将最小的距离对应的第二采样点,确定为第一采样点对应的伴随点;按照支气管段的起点坐标和终点坐标,确定支气管段对应的至少一个动脉血管段;根据伴随点的位置,从至少一个动脉血管段选取目标动脉血管段。Determine the first sampling point on the centerline of the bronchial segment; calculate the distances between the first sampling point and a plurality of second sampling points on the centerline of the arterial vessel; determine the second sampling point corresponding to the smallest distance as A companion point corresponding to the first sampling point; at least one arterial vessel segment corresponding to the bronchial segment is determined according to the start and end coordinates of the bronchial segment; and a target arterial vessel segment is selected from at least one arterial vessel segment according to the location of the companion point.
可选地,提取肺部医学影像中的动脉血管和支气管,具体包括:Optionally, extract arterial blood vessels and bronchi in lung medical images, including:
将肺部医学影像输入动脉血管分割模型,得到肺部医学影像中的动脉血管;将肺部医学影像输入支气管分割模型,得到肺部医学影像中的支气管;其中,动脉血管分割模型基于肺部样本图像及其对应的动脉血管分割标签训练得到,肺部分割模型基于肺部样本图像及其对应的肺部分割标签训练得到。Input the lung medical image into the arterial blood vessel segmentation model to obtain the arterial blood vessels in the lung medical image; input the lung medical image into the bronchial segmentation model to obtain the bronchus in the lung medical image; wherein, the arterial blood vessel segmentation model is based on the lung samples The images and their corresponding arterial and vessel segmentation labels are trained, and the lung segmentation model is trained based on the lung sample images and their corresponding lung segmentation labels.
可选地,医学影像的检测方法还包括:Optionally, the detection method of the medical image further includes:
在检测结果为存在柱状征象的情况下,将肺部医学影像中存在柱状征象的支气管段进行差异显示。When the detection result is that there are columnar signs, the bronchial segments with columnar signs in the lung medical images are displayed differentially.
可选地,医学影像的检测方法还包括:Optionally, the detection method of the medical image further includes:
在检测结果为存在柱状征象的情况下,关联存储存在柱状征象的支气管段的中心点和内径。When the detection result is that there is a columnar sign, the center point and the inner diameter of the bronchial segment where the columnar sign is present are associated and stored.
可选地,获取肺部医学影像,具体包括:Optionally, acquiring lung medical images, including:
获取待检测医学影像;对待检测医学影像进行预处理;对预处理后的待检测医学影像进行肺部分割处理,得到肺部医学影像;其中,预处理包括以下至少之一:降噪处理、归一化处理、尺寸校正处理、CT值截断处理、重采样处理。Obtaining the medical image to be detected; preprocessing the medical image to be detected; performing lung segmentation processing on the preprocessed medical image to be detected to obtain a medical lung image; wherein the preprocessing includes at least one of the following: noise reduction processing, normalization Normalization processing, size correction processing, CT value truncation processing, resampling processing.
根据本申请的另一方面,提供了一种医学影像的检测装置,装置包括:According to another aspect of the present application, a medical image detection device is provided, the device comprising:
获取模块,用于获取肺部医学影像;提取模块,用于提取肺部医学影像中的动脉血管和支气管,支气管包括多个不同级别的支气管段;确定模块,用于根据支气管段的中心线与动脉血管的中心线之间的距离,确定肺部医学影像中支气管段对应的目标动脉血管段;检测模块,用于对支气管段和目标动脉血管段进行检测处理,确定支气管段的检测结果。The acquisition module is used to acquire lung medical images; the extraction module is used to extract the arterial blood vessels and bronchi in the lung medical images, and the bronchi includes multiple bronchial segments of different levels; the determination module is used to extract the bronchial segments according to the center line and the bronchial segment. The distance between the centerlines of the arterial vessels determines the target arterial vessel segment corresponding to the bronchial segment in the lung medical image; the detection module is used to detect and process the bronchial segment and the target arterial vessel segment to determine the detection result of the bronchial segment.
可选地,医学影像的检测装置还包括:截取模块,按照预设间距,对肺部医学影像中的第二支气管段、第一支气管段对应的目标动脉血管段中至少一者,以及第一支气管段进行截取处理,得到第一图像,第二支气管段为第一支气管段的前一个级别的支气管段;检测模块具体用于,将第一图像和/或第一图像的掩码,输入柱状征象检测模型,以确定第一支气管段的检测结果;其中,柱状征象检测模型基于肺部样本图像和肺部样本图像对应的柱状征象标签训练得到。Optionally, the medical image detection device further includes: an interception module, which, according to a preset interval, performs at least one of the second bronchial segment, the target arterial vessel segment corresponding to the first bronchial segment, and the first bronchial segment in the pulmonary medical image, according to a preset interval. The bronchial segment is intercepted to obtain the first image, and the second bronchial segment is the bronchial segment of the previous level of the first bronchial segment; the detection module is specifically used to input the first image and/or the mask of the first image into the columnar A sign detection model is used to determine the detection result of the first bronchial segment; wherein, the columnar sign detection model is trained based on the lung sample image and the columnar sign label corresponding to the lung sample image.
可选地,获取模块,还用于获取肺部样本图像,肺部样本图像包括多个不同级别的支气管段样本和多个不同级别的支气管段样本对应的和目标动脉血管段样本;医学影像的检测装置还包括:标记模块,用于在第一支气管段样本的直径大于对应的目标动脉血管段样本的直径,或第一支气管段样本的直径与第二支气管段样本的直径之间的差值大于预设差值的情况下,生成第一支气管段样本的柱状征象标签,柱状征象标签用于标记支气管存在柱状征象;截取模块,还用于对标记有柱状征象标签的第二支气管段样本、第一支气管段样本对应的目标动脉血管段样本中至少一者,以及第一支气管段样本进行截取处理,得到第二图像;医学影像的检测装置还包括:训练模块,用于根据第二图像和/或第二图像的掩码,训练神经网络模型,得到柱状征象检测模型。Optionally, the acquisition module is further configured to acquire lung sample images, where the lung sample images include multiple bronchial segment samples of different levels and samples of target arterial blood vessel segments corresponding to multiple bronchial segment samples of different levels; The detection device further includes: a marking module, used for when the diameter of the first bronchial segment sample is larger than the diameter of the corresponding target arterial blood vessel segment sample, or the difference between the diameter of the first bronchial segment sample and the diameter of the second bronchial segment sample When the difference is greater than the preset value, a columnar sign label of the first bronchial segment sample is generated, and the columnar sign label is used to mark the presence of columnar signs in the bronchus; the interception module is also used for the second bronchial segment sample marked with the columnar sign label, At least one of the target arterial blood vessel segment samples corresponding to the first bronchial segment sample and the first bronchial segment sample are intercepted to obtain a second image; the medical image detection device further includes: a training module for /or the mask of the second image, train the neural network model, and obtain the columnar sign detection model.
可选地,确定模块,具体用于确定支气管段的中心线上的第一采样点;分别计算第一采样点与动脉血管的中心线上多个第二采样点之间的距离;确定模块,具体用于将最小的距离对应的第二采样点,确定为第一采样点对应的伴随点;按照支气管段的起点坐标和终点坐标,确定支气管段对应的至少一个动脉血管段;根据伴随点的位置,从至少一个动脉血管段选取目标动脉血管段。Optionally, a determining module is specifically configured to determine a first sampling point on the centerline of the bronchial segment; respectively calculate the distances between the first sampling point and a plurality of second sampling points on the centerline of the arterial blood vessel; the determining module, Specifically, the second sampling point corresponding to the smallest distance is determined as the accompanying point corresponding to the first sampling point; at least one arterial vessel segment corresponding to the bronchial segment is determined according to the coordinates of the starting point and the end point of the bronchial segment; position, and a target arterial vessel segment is selected from at least one arterial vessel segment.
可选地,提取模块,具体用于将肺部医学影像输入动脉血管分割模型,得到肺部医学影像中的动脉血管;将肺部医学影像输入支气管分割模型,得到肺部医学影像中的支气管;其中,动脉血管分割模型基于肺部样本图像及其对应的动脉血管分割标签训练得到,肺部分割模型基于肺部样本图像及其对应的肺部分割标签训练得到。Optionally, the extraction module is specifically configured to input the pulmonary medical image into the arterial blood vessel segmentation model to obtain the arterial blood vessels in the pulmonary medical image; input the pulmonary medical image into the bronchial segmentation model to obtain the bronchus in the pulmonary medical image; Among them, the arterial blood vessel segmentation model is trained based on the lung sample images and their corresponding arterial blood vessel segmentation labels, and the lung segmentation model is trained based on the lung sample images and their corresponding lung segmentation labels.
可选地,医学影像的检测装置还包括:Optionally, the medical image detection device further includes:
显示模块,用于在检测结果为存在柱状征象的情况下,将肺部医学影像中存在柱状征象的支气管段进行差异显示。The display module is used for differentially displaying the bronchial segments with columnar signs in the lung medical image when the detection result is that there are columnar signs.
可选地,医学影像的检测装置还包括:Optionally, the medical image detection device further includes:
存储模块,用于在检测结果为存在柱状征象的情况下,关联存储存在柱状征象的支气管段的中心点和内径。The storage module is configured to associate and store the center point and the inner diameter of the bronchial segment where the columnar sign exists when the detection result is that the columnar sign exists.
可选地,获取模块,具体用于获取待检测医学影像;医学影像的检测装置还包括:预处理模块,用于对待检测医学影像进行预处理;分割模块,用于对预处理后的待检测医学影像进行肺部分割处理,得到肺部医学影像;其中,预处理包括以下至少之一:降噪处理、归一化处理、尺寸校正处理、CT值截断处理、重采样处理。Optionally, an acquisition module is specifically used to acquire the medical image to be detected; the medical image detection device further includes: a preprocessing module, used to preprocess the medical image to be detected; a segmentation module, used to preprocess the to-be-detected image The medical image is subjected to lung segmentation processing to obtain a lung medical image; wherein, the preprocessing includes at least one of the following: noise reduction processing, normalization processing, size correction processing, CT value truncation processing, and resampling processing.
根据本申请又一个方面,提供了一种存储介质,其上存储有计算机程序,程序被处理器执行时实现上述医学影像的检测方法。According to yet another aspect of the present application, a storage medium is provided on which a computer program is stored, and when the program is executed by a processor, the foregoing method for detecting a medical image is implemented.
根据本申请再一个方面,提供了一种计算机设备,包括存储介质、处理器及存储在存储介质上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述医学影像的检测方法。According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, and the processor implements the above-mentioned detection method for medical images when the computer program is executed. .
借由上述技术方案,考虑到柱状征象的临床判别标准,如支气管的管径大于伴行肺动脉的直径,或随着支气管树的走行,支气管的管径没有缩小的趋势。将支气管的影像信息和伴随动脉血管信息作为柱状征象的判别依据,实现了对支气管柱状征象的自动检测和分级评估,减少医生主观性判断的差异,提高了柱状征象的检测精度,进而辅助医生进行影像判断与鉴别,提升对支气管扩张的精准诊疗能力。With the above technical solution, considering the clinical criteria of columnar signs, such as the diameter of the bronchus is larger than the diameter of the accompanying pulmonary artery, or the diameter of the bronchus does not tend to decrease with the course of the bronchial tree. Using bronchial image information and accompanying arterial blood vessel information as the basis for judging columnar signs, it realizes automatic detection and grading evaluation of bronchial columnar signs, reduces differences in doctors' subjective judgments, improves the detection accuracy of columnar signs, and assists doctors in Image judgment and identification to improve the ability of accurate diagnosis and treatment of bronchiectasis.
上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the description, and in order to make the above-mentioned and other purposes, features and advantages of the present application more obvious and easy to understand , and the specific embodiments of the present application are listed below.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation of the present application. In the attached image:
图1示出了本申请实施例提供的医学影像的检测方法的流程示意图之一;FIG. 1 shows one of the schematic flowcharts of the medical image detection method provided by the embodiment of the present application;
图2示出了本申请实施例提供的医学影像的检测方法的流程示意图之二;FIG. 2 shows the second schematic flowchart of the medical image detection method provided by the embodiment of the present application;
图3示出了本申请实施例提供的医学影像的检测装置的结构框图。FIG. 3 shows a structural block diagram of an apparatus for detecting a medical image provided by an embodiment of the present application.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present application will be described in detail with reference to the accompanying drawings and in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict.
支扩的典型症状有慢性咳嗽、咳大量脓痰和反复咯血。支扩在早期可无明显的体征,可在患处听到大小不等的湿罗音,在支扩逐渐加重后出现低氧症状,可见杵状指、趾及全身营养较差的状况。如背景技术所述,目前所采用的支气管扩张评价系统,无法针对柱状征象进行准确的判断,临床应用中常仍然需要有经验的医生对计算机断层扫描(ComputedTomography,CT)图像进行评估,存在比较大的主观性,并且,常规CT图像上病变区域和正常区域间的差异以及供血区的边界用肉眼直接观察的难度较高,并不能达到很高的诊断准确率。因此,有必要开发可以自动评估CT图像的系统以实现支扩柱状征象的自动化检测和分级评估。The typical symptoms of bronchiectasis are chronic cough, copious purulent sputum and repeated hemoptysis. There may be no obvious signs in the early stage of bronchiectasis, and wet rales of different sizes can be heard in the affected area. After the bronchiectasis gradually increases, symptoms of hypoxia appear, clubbing of fingers, toes and poor general nutrition can be seen. As described in the background art, the currently used bronchiectasis evaluation system cannot accurately judge the columnar signs. In clinical application, an experienced doctor is often required to evaluate computed tomography (CT) images. Subjectivity, and the difference between the lesion area and the normal area and the boundary of the blood supply area on conventional CT images are difficult to directly observe with the naked eye, and cannot achieve a high diagnostic accuracy. Therefore, it is necessary to develop a system that can automatically evaluate CT images for the automatic detection and grading of bronchiectasis.
为了减少医生主观性差异,提高柱状支扩诊断的效率和准确性,减少患者的等待时间,提高治疗效果,本申请提供了一种医学影像的检测方法、装置、存储介质和计算机设备。以下通过实施例进行详细说明。In order to reduce the differences in the subjectivity of doctors, improve the efficiency and accuracy of the diagnosis of columnar bronchiectasis, reduce the waiting time of patients, and improve the treatment effect, the present application provides a medical image detection method, device, storage medium and computer equipment. The following is a detailed description through examples.
如图1所示,在本实施例中提供了一种医学影像的检测方法,该方法包括:As shown in FIG. 1 , a method for detecting medical images is provided in this embodiment, and the method includes:
步骤101,获取肺部医学影像;
其中,可以通过胸部摄影仪器设备对患者的胸部进行扫描,从而得到患者的肺部医学影像,该肺部医学影像可以为CT影像。Wherein, the chest of the patient can be scanned by the chest photographing equipment, so as to obtain a medical image of the patient's lungs, and the medical image of the lungs can be a CT image.
具体地,获取肺部医学影像的步骤具体包括:获取待检测医学影像;对待检测医学影像进行预处理;对预处理后的待检测医学影像进行肺部分割处理,得到肺部医学影像。Specifically, the step of acquiring the pulmonary medical image specifically includes: acquiring the medical image to be detected; preprocessing the medical image to be detected; and performing lung segmentation processing on the preprocessed medical image to be detected to obtain the pulmonary medical image.
其中,预处理包括以下至少之一:降噪处理、归一化处理、尺寸校正处理、CT值截断处理、重采样处理。The preprocessing includes at least one of the following: noise reduction processing, normalization processing, size correction processing, CT value truncation processing, and resampling processing.
在该实施例中,通过CT设备对患者胸部区域进行扫描,得到待检测医学影像。获得待检测医学影像后,对待检测医学影像进行预处理,从而使得后续处理可以获取规格统一的图像输入,降低非关键信息的干扰,进而保证了成像质量,提升检测准确性,稳定性和一致性。预处理后,基于肺部分割模型对待检测医学影像进行肺部分割处理,得到待检测医学影像对应的至少一个肺部感兴趣区域,也即肺部医学影像,从而能够从待检测医学影像中分割出肺部的实质区域,以去除胸骨的图像,进而避免胸骨图像在后续图像配准时产生干扰,便于精准识别肺部的支气管柱状征象。In this embodiment, the chest region of the patient is scanned by the CT equipment to obtain the medical image to be detected. After obtaining the medical image to be detected, the medical image to be detected is preprocessed, so that the subsequent processing can obtain image input with uniform specifications, reduce the interference of non-critical information, thus ensure the imaging quality, and improve the detection accuracy, stability and consistency . After preprocessing, lung segmentation processing is performed on the medical image to be detected based on the lung segmentation model to obtain at least one area of interest in the lung corresponding to the medical image to be detected, that is, the medical image of the lung, so that the medical image to be detected can be segmented. The parenchymal area of the lung is extracted to remove the image of the sternum, so as to avoid the interference of the sternum image in the subsequent image registration, which is convenient to accurately identify the bronchial columnar signs of the lung.
在实际应用场景中,以三维平扫CT图像为原始输入图像为例,在预处理时,通过尺寸校正处理将平扫CT图像的尺寸调整到预设尺寸,以便于统一所有的医学影像,便于后续将提取出的特征与病症特征相对比。然后采用线性或非线性的平滑及滤波技术对平扫CT图像进行降噪处理。例如,利用高斯平滑滤波、中值滤波等方法中的至少一种去除图像中的噪声(如,椒盐噪声)。以中值滤波为例,将平扫CT图像中每一像素点的灰度值设置为该点某邻域窗口内的所有像素点灰度值的中值,让周围的像素值接近于真实值,从而消除孤立的噪声点。去噪后,将平扫CT图像的CT值在-1000到1000之间进行截断并归一化,获得的图像值在0到1间分布,并以像素大小为0.6毫米的间隔对其在三维方向重新插值,得到宽高深大小为W×H×D的标准化CT图像。最后,利用肺部分割模型或区域增长法提取肺部感兴趣区。其中,肺部分割模型可采用UNet网络架构或相关网络架构,由于神经网络模型具有处理速度快,处理精度较高的优点,因此,通过肺部分割模型进行肺部分割,能够有效提高肺部分割的速率和准确率,从而提高后续支气管柱状征象检测的速率和准确率,鲁棒性较高。In practical application scenarios, taking the 3D plain CT image as the original input image as an example, during preprocessing, the size of the plain CT image is adjusted to a preset size through size correction processing, so as to unify all medical images and facilitate the The extracted features are then compared with the disease features. Then use linear or nonlinear smoothing and filtering techniques to denoise the plain CT image. For example, noise (eg, salt and pepper noise) in the image is removed using at least one of Gaussian smoothing filtering, median filtering, and the like. Taking median filtering as an example, the gray value of each pixel in the plain CT image is set to the median value of all pixel gray values in a certain neighborhood window of the point, so that the surrounding pixel values are close to the true value. , thereby eliminating isolated noise points. After denoising, the CT value of the plain CT image is truncated and normalized between -1000 and 1000. The obtained image value is distributed between 0 and 1, and the pixel size is 0.6 mm. The direction is re-interpolated to obtain a normalized CT image with a width, height and depth of W×H×D. Finally, lung ROIs are extracted using a lung segmentation model or a region growing method. Among them, the lung segmentation model can use the UNet network architecture or related network architecture. Since the neural network model has the advantages of fast processing speed and high processing accuracy, lung segmentation through the lung segmentation model can effectively improve the lung segmentation. Therefore, the rate and accuracy of subsequent bronchial columnar sign detection are improved, and the robustness is high.
步骤102,提取肺部医学影像中的动脉血管和支气管;
其中,支气管包括多个不同级别的支气管段。人的支气管至肺泡约有24级分支,形成支气管树,不同级别的支气管段可以记作L1、L2……Ln。可以理解的是,同一级别的支气管段可以包括多条支气管分支,以一级支气管段为例,则同一级别的多条支气管分支可记作L1-1、L1-2……L1-m。利用中心线提取方法,提取不同级别的支气管段的中心线,可记作line0n-m,且每个中心线包括起始点P0、终点Pw。Among them, the bronchus includes multiple bronchial segments of different levels. There are about 24 branches from human bronchi to alveoli, forming a bronchial tree. The bronchial segments of different levels can be recorded as L 1 , L 2 ......L n . It can be understood that a bronchial segment at the same level can include multiple bronchial branches. Taking a first-level bronchial segment as an example, multiple bronchial branches at the same level can be denoted as L 1-1 , L 1-2 ......L 1- m . Using the centerline extraction method, the centerlines of bronchial segments of different levels are extracted, which can be recorded as line0 nm , and each centerline includes the starting point P 0 and the ending point P w .
在实际应用场景中,可采用传统算法、深度学习模型、模板匹配方法及语义分割算法三种支气管分级算法,对支气管进行分级。In practical application scenarios, three bronchial grading algorithms, namely traditional algorithms, deep learning models, template matching methods and semantic segmentation algorithms, can be used to classify bronchial tubes.
具体地,将肺部医学影像输入支气管分割模型,得到肺部医学影像中的支气管,该肺部分割模型基于肺部样本图像及其对应的肺部分割标签训练得到。将肺部医学影像输入动脉血管分割模型,得到肺部医学影像中的动脉血管,该动脉血管分割模型基于肺部样本图像及其对应的动脉血管分割标签训练得到。Specifically, the lung medical image is input into a bronchial segmentation model to obtain the bronchi in the lung medical image, and the lung segmentation model is trained based on the lung sample image and its corresponding lung segmentation label. The pulmonary medical images are input into the arterial blood vessel segmentation model to obtain the arterial blood vessels in the pulmonary medical images. The arterial blood vessel segmentation model is trained based on the lung sample images and their corresponding arterial blood vessel segmentation labels.
值得一提的是,由于动脉和静脉在影像上相互交叉,两者相邻并且灰度非常接近,特别是在非对比增强的CT图像中,动静脉分叉和交叉之间的区别非常小。故而先获取肺部医学影像中各像素点对应的CT值;筛选出所有位于阈值范围内的CT值对应的目标像素点,粗分割出肺部医学影像的肺血管区域和杂质区域,从而结合肺部CT图像中各像素点对应的CT值,保证肺部CT图像中的肺血管区域能够全部被提取出来,避免分割提取时出现遗漏。进一步,根据肺血管区域和杂质区域内任一像素点与其邻域内像素点组成的边界,精分割出肺血管区域。将肺血管区域的图像输入动脉血管分割模型,以将动脉区域和静脉区域进行有效分割,提高肺部动静脉分离的精准性和效率。It is worth mentioning that since the arteries and veins cross each other on the image, the two are adjacent and the grayscale is very close, especially in the non-contrast-enhanced CT images, the difference between the arteriovenous bifurcation and the intersection is very small. Therefore, the CT value corresponding to each pixel in the lung medical image is obtained first; all the target pixels corresponding to the CT value within the threshold range are screened out, and the pulmonary vascular area and impurity area of the lung medical image are roughly segmented, so as to combine the lung. The CT value corresponding to each pixel in the partial CT image ensures that all the pulmonary blood vessel regions in the lung CT image can be extracted and avoids omissions during segmentation and extraction. Further, according to the boundary composed of any pixel point in the pulmonary blood vessel area and the impurity area and the pixel point in its neighborhood, the pulmonary blood vessel area is finely segmented. The image of the pulmonary vascular area is input into the arterial vascular segmentation model to effectively segment the arterial area and the venous area, and improve the accuracy and efficiency of pulmonary arterial and venous separation.
步骤103,根据支气管段的中心线与动脉血管的中心线之间的距离,确定肺部医学影像中支气管段对应的目标动脉血管段;
其中,目标动脉血管段即与支气管段具有最近距离的动脉血管,也称为伴随动脉血管。Among them, the target arterial vessel segment is the arterial vessel with the shortest distance from the bronchial segment, and is also called the accompanying arterial vessel.
步骤104,对支气管段和目标动脉血管段进行检测处理,确定支气管段的检测结果。
在该实施例中,考虑到柱状征象的临床判别标准,如支气管的管径大于伴行肺动脉的直径,或随着支气管树的走行,支气管的管径没有缩小的趋势。对肺部医学影像中的动脉血管和支气管进行提取,以获得准确的支气管信息和动脉信息。通过支气管段的中心线与动脉血管的中心线之间的距离确定与该支气管段近距离最近的目标动脉血管段。再以支气管的影像信息和目标动脉血管信息作为柱状征象的判别依据,实现了对支气管柱状征象的自动检测和分级评估,减少医生主观性判断的差异,提高了柱状征象的检测精度,进而辅助医生进行影像判断与鉴别,提升对支气管扩张的精准诊疗能力。In this embodiment, considering the clinical criteria for columnar signs, such as the diameter of the bronchus is larger than the diameter of the accompanying pulmonary artery, or the diameter of the bronchus does not tend to decrease along the course of the bronchial tree. Extract arterial vessels and bronchi in lung medical images to obtain accurate bronchial and arterial information. The target arterial vessel segment closest to the bronchial segment is determined by the distance between the centerline of the bronchial segment and the centerline of the arterial vessel. Then, the bronchial image information and target arterial blood vessel information are used as the basis for judging the columnar signs, which realizes the automatic detection and grading evaluation of the bronchial columnar signs, reduces the differences in the subjective judgment of doctors, improves the detection accuracy of the columnar signs, and then assists the doctors. Perform image judgment and identification to improve the ability of accurate diagnosis and treatment of bronchiectasis.
在本申请实施例中,进一步地,对支气管段和目标动脉血管段进行检测处理,确定支气管段的检测结果的步骤,具体包括:In the embodiment of the present application, further, the steps of performing detection processing on the bronchial segment and the target arterial vessel segment, and determining the detection result of the bronchial segment, specifically include:
步骤104-1,按照预设间距,对肺部医学影像中的第二支气管段、第一支气管段对应的目标动脉血管段中至少一者,以及第一支气管段进行截取处理,得到第一图像;Step 104-1, according to a preset interval, perform interception processing on at least one of the second bronchial segment, the target arterial vessel segment corresponding to the first bronchial segment, and the first bronchial segment in the pulmonary medical image to obtain a first image ;
其中,第一支气管段为系统使用者需要进行检测柱状征象的级别的支气管,第二支气管段为第一支气管段的前一个级别的支气管段,例如,第一支气管段为4级支气管段,则第二支气管段为3级支气管段,换言之,第一支气管段为第二支气管段的分支。Wherein, the first bronchial segment is the bronchus of the level that the system user needs to detect the columnar signs, and the second bronchial segment is the bronchial segment of the previous level of the first bronchial segment. For example, if the first bronchial segment is the fourth-level bronchial segment, then The second bronchial segment is a third-order bronchial segment, in other words, the first bronchial segment is a branch of the second bronchial segment.
进一步地,第一图像包括第一支气管段的至少一个三维图像块,以及第二支气管段和/或目标动脉血管段的至少一个三维图像块,例如,第一图像包括第一支气管段的2个局部图像和目标动脉血管段的2个局部图像,或者第一支气管段的2个局部图像和第二支气管段的2个局部图像,或者第一支气管段、第二支气管段和目标动脉血管段各2个局部图像。而且,在支气管段或目标动脉血管段上,相邻两个三维图像块中心点之间的距离为预设间距。Further, the first image includes at least one three-dimensional image block of the first bronchial segment, and at least one three-dimensional image block of the second bronchial segment and/or the target arterial vessel segment, for example, the first image includes two of the first bronchial segment. A partial image and 2 partial images of the target arterial vessel segment, or 2 partial images of the first bronchial segment and 2 partial images of the second bronchial segment, or each of the first bronchial segment, the second bronchial segment, and the target arterial vessel segment. 2 partial images. Moreover, on the bronchial segment or the target arterial vessel segment, the distance between the center points of two adjacent three-dimensional image blocks is a preset distance.
步骤104-2,将第一图像和/或第一图像的掩码,输入柱状征象检测模型,以确定第一支气管段的检测结果。Step 104-2: Input the first image and/or the mask of the first image into the columnar sign detection model to determine the detection result of the first bronchial segment.
其中,柱状征象检测模型基于肺部样本图像和肺部样本图像对应的柱状征象标签训练得到。柱状征象标签用于区分肺部样本图像中的支气管段样本是否存在柱状征象。The columnar sign detection model is trained based on the lung sample images and the columnar sign labels corresponding to the lung sample images. The columnar sign label is used to distinguish the presence or absence of columnar signs in the bronchial segment samples in the lung sample images.
在该实施例中,将第一图像和/或第一图像的掩码作为输入数据,通过柱状征象检测模型,对第一支气管段的管径及其伴行肺动脉的直径差异,或第一支气管段相对于其级别的前一个级别的支气管段的管径变化趋势进行分析,从而判别出第一支气管段是否发生柱状征象。利用深度学习技术构建的分类模型对支气管柱状征象的自动化检测,同时由于预先对支气管进行了分级,能够有针对性的对所需级别的支气管进行检测,实现了支气管的分级评估。进而减少医生主观性判断的差异,提高了柱状征象的诊断精度,进而辅助医生进行影像诊断与鉴别,支持后续的治疗和康复,提升对支气管扩张的精准诊疗能力。In this embodiment, the first image and/or the mask of the first image is used as input data, and the columnar sign detection model is used to determine the diameter difference of the first bronchial segment and its accompanying pulmonary artery, or the first bronchus The change trend of the diameter of the bronchial segment relative to the bronchial segment of the previous level is analyzed, so as to determine whether the columnar sign occurs in the first bronchial segment. The classification model constructed by deep learning technology can automatically detect bronchial columnar signs. At the same time, because the bronchus is graded in advance, it can detect the bronchus of the required level in a targeted manner, and realize the bronchial classification evaluation. This reduces differences in doctors' subjective judgments, improves the diagnostic accuracy of columnar signs, and assists doctors in image diagnosis and identification, supports subsequent treatment and rehabilitation, and improves the ability to accurately diagnose and treat bronchiectasis.
需要说明的是,由于一级的支气管段不存在第二支气管段,故而无法通过管径变化趋势分析一级的支气管段是否发生柱状征象。It should be noted that since there is no second bronchial segment in the first-level bronchial segment, it is impossible to analyze whether the columnar sign occurs in the first-level bronchial segment through the change trend of the tube diameter.
可以理解的是,为了避免模型的检测误差,可以按照支气管级别,先输入一个级别的第一支气管段相关的第一图像,得到该级别的第一支气管段的检测结果。然后再输入其他一个等级的第一支气管段相关的第一图像。如此循环,直至系统使用者需求级别的第一支气管段全部检测完毕,汇总所有第一支气管段的检测结果。It can be understood that, in order to avoid the detection error of the model, the first image related to the first bronchial segment of a level can be input according to the bronchial level, and the detection result of the first bronchial segment of this level can be obtained. The first images related to the first bronchial segment of another level are then input. This cycle is repeated until all the first bronchial segments of the system user demand level are detected, and the detection results of all the first bronchial segments are aggregated.
进一步地,获取柱状征象检测模型的步骤包括:获取肺部样本图像,肺部样本图像包括多个不同级别的支气管段样本和多个不同级别的支气管段样本对应的和目标动脉血管段样本;在第一支气管段样本的直径大于对应的目标动脉血管段样本的直径,或第一支气管段样本的直径与第二支气管段样本的直径之间的差值大于预设差值的情况下,生成第一支气管段样本的柱状征象标签,柱状征象标签用于标记支气管存在柱状征象;对标记有柱状征象标签的第二支气管段样本、第一支气管段样本对应的目标动脉血管段样本中至少一者,以及第一支气管段样本进行截取处理,得到第二图像;根据第二图像和/或第二图像的掩码,训练神经网络模型,得到柱状征象检测模型。Further, the step of obtaining the columnar sign detection model includes: obtaining a lung sample image, where the lung sample image includes a plurality of bronchial segment samples of different levels and a plurality of bronchial segment samples of different levels and corresponding target arterial blood vessel segment samples; When the diameter of the first bronchial segment sample is greater than the diameter of the corresponding target artery segment sample, or the difference between the diameter of the first bronchial segment sample and the diameter of the second bronchial segment sample is greater than the preset difference, the first bronchial segment sample is generated. A columnar sign label of the bronchial segment sample, the columnar sign label is used to mark the presence of columnar signs in the bronchus; for at least one of the second bronchial segment sample marked with the columnar sign label and the target artery segment sample corresponding to the first bronchial segment sample, And the first bronchial segment sample is intercepted to obtain a second image; according to the second image and/or the mask of the second image, a neural network model is trained to obtain a columnar sign detection model.
其中,第二支气管段样本为第一支气管段样本的前一个级别的支气管段。由于在人体健康的情况下,随着支气管树的走行,支气管的管径呈现缩小的趋势,也即,第一支气管段样本的直径小于第二支气管段样本。那么,为了判断第一支气管段样本是否出现柱状征象,预设差值可设置为小于0的数值,而且考虑到级别越高,支气管管径越细,那么相邻两个级别的支气管管径差距越小,由此,可设置第一支气管段样本的级别越高,预设差值越大。Wherein, the second bronchial segment sample is the bronchial segment of the previous level of the first bronchial segment sample. As the human body is healthy, the diameter of the bronchus tends to decrease as the bronchial tree travels, that is, the diameter of the first bronchial segment sample is smaller than that of the second bronchial segment sample. Then, in order to determine whether the first bronchial segment sample has columnar signs, the preset difference can be set to a value less than 0, and considering that the higher the level, the thinner the bronchial diameter, the difference between the bronchial diameters of two adjacent levels The smaller the value, the higher the level of the first bronchial segment sample can be set, and the larger the preset difference value is.
在该实施例中,识别肺部样本图像中第一支气管段样本、第二支气管段样本、目标动脉血管段样本的直径。比对肺部样本图像中第一支气管段样本和第二支气管段样本的直径,若第一支气管段样本的直径与第二支气管段样本的直径之间的差值大于预设差值,说明支气管段的管径的变化趋势满足柱状征象;或者比对肺部样本图像中第一支气管段样本及其对应的目标动脉血管段样本的直径,若第一支气管段样本的直径大于对应的目标动脉血管段样本的直径,说明存在柱状征象。在检测到柱状征象后,生成柱状征象标签,以标记该第一支气管段样本。利用标记有柱状征象标签的第一支气管段样本,以及第二支气管段样本和/或第一支气管段样本对应的目标动脉血管段样本的第二图像对神经网络模型进行训练,或者利用第二图像的掩码对神经网络模型进行训练,得到柱状征象检测模型。从而通过深度学习的方式利用大数据训练建立用于检测正常支气管与柱状征象支气管的特征模型(柱状征象检测模型),进而利用模型将临床肺部影像数据中的正常支气管与柱状扩张支气管进行区分,减轻医生的工作量。In this embodiment, the diameters of the first bronchial segment sample, the second bronchial segment sample, and the target arterial vessel segment sample in the lung sample image are identified. Compare the diameters of the first bronchial segment sample and the second bronchial segment sample in the lung sample image, if the difference between the diameter of the first bronchial segment sample and the second bronchial segment sample is greater than the preset difference, it means that the bronchial The change trend of the diameter of the segment satisfies the columnar sign; or compare the diameters of the first bronchial segment sample and the corresponding target arterial blood vessel segment sample in the lung sample image, if the diameter of the first bronchial segment sample is larger than the corresponding target arterial blood vessel The diameter of the segment sample, indicating the presence of columnar signs. After the columnar sign is detected, a columnar sign label is generated to label the first bronchial segment sample. The neural network model is trained using the first bronchial segment sample marked with the columnar sign label and the second image of the second bronchial segment sample and/or the target arterial vessel segment sample corresponding to the first bronchial segment sample, or using the second image The mask is used to train the neural network model to obtain a columnar feature detection model. Therefore, a feature model (columnar sign detection model) for detecting normal bronchi and columnar sign bronchi is established by using big data training through deep learning, and then the model is used to distinguish normal bronchi and columnar dilated bronchi in clinical lung image data. Reduce the workload of doctors.
具体地,神经网络(Neural Networks,NN)模型可以是卷积神经网络(Convolutional Neural Networks,CNN)模型、残差收缩网络(Deep Residual ShrinkageNetwork,DRSN)模型、全连接神经网络(Fully Connected Neural Network,FCNN)模型、循环神经网络(Recurrent Neural Network,RNN)模型或长短期记忆网络(Long Short-TermMemory,LSTM)模型。本申请实施例不作具体限定。Specifically, the neural network (Neural Networks, NN) model may be a convolutional neural network (Convolutional Neural Networks, CNN) model, a residual shrinkage network (Deep Residual Shrinkage Network, DRSN) model, a fully connected neural network (Fully Connected Neural Network, FCNN) model, Recurrent Neural Network (RNN) model or Long Short-Term Memory (LSTM) model. The embodiments of the present application are not specifically limited.
可以理解的是,若肺部样本图像上已经添加了柱状征象标签,则无需再次进行直径比对的步骤,可直接根据标记有柱状征象标签的第二图像和/或第二图像的掩码,训练神经网络模型。例如,将患者的历史肺部CT图像作为肺部样本图像,在患者就医过程中,将医生标注的结果作为柱状征象标签。It can be understood that, if a columnar sign label has been added to the lung sample image, it is not necessary to perform the step of diameter comparison again, and the second image marked with the columnar sign label and/or the mask of the second image may be Train a neural network model. For example, the patient's historical lung CT images are used as lung sample images, and during the patient's medical treatment, the results marked by doctors are used as columnar sign labels.
在实际应用场景中,为了保证柱状征象的检测精度,训练模型所需的训练样本尽可能与检测时输入的数据一致。例如,训练柱状征象检测模型时采用第一支气管段样本和第二支气管段样本的第二图像作为训练样本,则在后续通过该柱状征象检测模型检测时,需要将包括第一支气管段和第二支气管段的第一图像输入柱状征象检测模型。再例如,训练柱状征象检测模型时采用第一支气管段样本及其对应的目标动脉血管段样本的第二图像掩码作为训练样本,则在后续通过该柱状征象检测模型检测时,需要将包括第一支气管段和目标动脉血管段的第一图像掩码输入柱状征象检测模型。In practical application scenarios, in order to ensure the detection accuracy of columnar signs, the training samples required for training the model are as consistent as possible with the data input during detection. For example, when training the columnar sign detection model, the second image of the first bronchial segment sample and the second bronchial segment sample is used as the training sample, then in the subsequent detection by the columnar sign detection model, it is necessary to include the first bronchial segment and the second bronchial segment sample. The first image of the bronchial segment is input to the columnar sign detection model. For another example, when training the columnar sign detection model, the second image mask of the first bronchial segment sample and its corresponding target arterial vessel segment sample is used as the training sample, then in the subsequent detection by the columnar sign detection model, it is necessary to include the first A first image mask of a bronchial segment and a target arterial vessel segment is input to the columnar feature detection model.
在本申请实施例中,进一步地,根据支气管段的中心线与动脉血管的中心线之间的距离,确定肺部医学影像中支气管段对应的目标动脉血管段的步骤,具体包括:In the embodiment of the present application, further, according to the distance between the centerline of the bronchial segment and the centerline of the arterial vessel, the step of determining the target arterial vessel segment corresponding to the bronchial segment in the pulmonary medical image specifically includes:
步骤103-1,确定支气管段的中心线上的第一采样点;Step 103-1, determining the first sampling point on the centerline of the bronchial segment;
其中,第一采样点在支气管段的中心线上的位置可以按需设置,一个管段的中心线上第一采样点的数量可以为多个,多个第一采样点之间的间距可以相同也可以不同。例如,预先设定在支气管段的中心线上选取6个第一采样点,且选取规则为中心线的起点为第一个第一采样点,终点为第六个第一采样点,第一采样点之间等间距。Wherein, the position of the first sampling point on the centerline of the bronchial segment can be set as required, the number of the first sampling point on the centerline of a tube segment can be multiple, and the spacing between the multiple first sampling points can be the same or can be different. For example, it is preset to select 6 first sampling points on the center line of the bronchial segment, and the selection rule is that the starting point of the center line is the first first sampling point, the end point is the sixth first sampling point, and the first sampling point is the first sampling point. The points are equally spaced.
步骤103-2,分别计算第一采样点与动脉血管的中心线上多个第二采样点之间的距离;Step 103-2, respectively calculating the distances between the first sampling point and a plurality of second sampling points on the centerline of the arterial blood vessel;
步骤103-3,将最小的距离对应的第二采样点,确定为第一采样点对应的伴随点;Step 103-3, determining the second sampling point corresponding to the smallest distance as the accompanying point corresponding to the first sampling point;
在该实施例中,对于一个第一采样点,分别计算该第一采样点与动脉血管的中心线上多个第二采样点之间的距离,得到与该第一采样点相关的距离集合。距离集合中的最小值对应的第二采样点,也即动脉血管上距离该第一采样点最近的第二采样点,将其作为该第一采样点对应的伴随点,以便于后续确定每个支气管段对应的目标动脉血管段。In this embodiment, for a first sampling point, the distances between the first sampling point and a plurality of second sampling points on the centerline of the arterial blood vessel are calculated respectively, to obtain a set of distances related to the first sampling point. The second sampling point corresponding to the minimum value in the distance set, that is, the second sampling point on the arterial blood vessel that is closest to the first sampling point, is taken as the accompanying point corresponding to the first sampling point, so as to facilitate the subsequent determination of each sampling point. The bronchial segment corresponds to the target arterial vessel segment.
步骤103-4,按照支气管段的起点坐标和终点坐标,确定支气管段对应的至少一个动脉血管段;Step 103-4: Determine at least one arterial vessel segment corresponding to the bronchial segment according to the coordinates of the starting point and the ending point of the bronchial segment;
步骤103-5,根据伴随点的位置,从至少一个动脉血管段选取目标动脉血管段。Step 103-5: Select a target arterial vessel segment from at least one arterial vessel segment according to the position of the accompanying point.
在该实施例中,按照支气管段的起点坐标和终点坐标,对动脉血管进行截取,以确定出符合支气管段长度范围的至少一个动脉血管段。考虑到每个支气管段的多个第一采样点对应的多个伴随点可能不在同一个动脉血管的中心线上。通过统计的方式,选取具有最多伴随点的动脉血管段作为最接近该支气管段的目标动脉血管段。以便于通过目标动脉血管段和支气管段的相关信息检测柱状征象。In this embodiment, the arterial blood vessel is intercepted according to the coordinates of the start point and the end point of the bronchial segment, so as to determine at least one arterial blood vessel segment that conforms to the length range of the bronchial segment. Considering that the multiple concomitant points corresponding to the multiple first sampling points of each bronchial segment may not be on the centerline of the same arterial vessel. By means of statistics, the arterial vessel segment with the most concomitant points is selected as the target arterial vessel segment closest to the bronchial segment. In order to facilitate the detection of columnar signs with the relevant information of the target arterial vessel segment and bronchial segment.
在本申请实施例中,进一步地,医学影像的检测方法还包括:在检测结果为存在柱状征象的情况下,将肺部医学影像中存在柱状征象的支气管段进行差异显示。In the embodiment of the present application, further, the method for detecting a medical image further includes: when the detection result is that there is a columnar sign, differentially displaying the bronchial segments with the columnar sign in the lung medical image.
在该实施例中,若确定肺部医学影像的支气管段存在柱状征象,则将肺部医学影像中存在柱状征象的支气管段和不存在柱状征象的支气管段进行差异显示。以便于系统使用者(医生)能够直观的获知支气管段的扩张情况,有利于提升支扩鉴别效率。In this embodiment, if it is determined that the bronchial segment in the pulmonary medical image has the columnar sign, the bronchial segment with the columnar sign and the bronchial segment without the columnar sign in the pulmonary medical image are displayed differently. In order to facilitate the system user (doctor) to intuitively know the expansion of the bronchial segment, it is beneficial to improve the identification efficiency of bronchiectasis.
具体地,差异显示的方式可以是在肺部医学影像中支气管段的指定位置生成柱状征象标签;也可以是高亮显示该支气管段的标记信息,例如,对肺部医学影像中支气管段的名称进行高亮处理;亦可以在肺部医学影像中添加该支气管段存在柱状征象的文字提示信息。本申请实施例不作具体限定。Specifically, the way of displaying the difference may be to generate a columnar sign label at a specified position of the bronchial segment in the lung medical image; it may also be to highlight the label information of the bronchial segment, for example, the name of the bronchial segment in the lung medical image. Highlighting is performed; text prompting information of the presence of columnar signs in the bronchial segment can also be added to the pulmonary medical image. The embodiments of the present application are not specifically limited.
进一步地,将肺部医学影像中存在柱状征象的支气管段进行差异显示的步骤,具体包括:提取存在柱状征象的支气管段的征象特征信息;根据征象特征信息确定显示等级;根据显示等级对应的显示方式对存在柱状征象的支气管段进行差异显示。例如,通过征象特征信息判断柱状支扩严重程度,通过严重程度与显示等级之间的对应关系,确定该支气管段的显示方式。例如,若第一支气管段与第二支气管段的管径差值大于第一显示等级关联的预设差值,确定第一支气管段为第一显示等级,第一显示等级对应的显示方式为以红色高亮显示该支气管段的标记信息;若第一支气管段与第二支气管段的管径差值大于第二显示等级关联的预设差值,确定第一支气管段为第二显示等级,第一显示等级对应的显示方式为以黄色高亮显示该支气管段的标记信息,其中,第一显示等级关联的预设差值大于第二显示等级关联的预设差值,也即,第一显示等级的支气管段相比于第二显示等级的支气管段的支扩情况更为严重。从而通过不同的显示方式,使得系统使用者能够通过肺部医学影像直观的区分不同支扩情况的支气管段,大大提升支扩鉴别效率。Further, the step of differentially displaying bronchial segments with columnar signs in the pulmonary medical image specifically includes: extracting sign feature information of the bronchial segments with columnar signs; determining a display level according to the sign feature information; Differential display of bronchial segments with columnar signs. For example, the severity of columnar bronchiectasis is determined by the sign feature information, and the display mode of the bronchial segment is determined by the corresponding relationship between the severity and the display level. For example, if the diameter difference between the first bronchial segment and the second bronchial segment is greater than the preset difference associated with the first display level, the first bronchial segment is determined as the first display level, and the display mode corresponding to the first display level is as follows: The marking information of the bronchial segment is highlighted in red; if the diameter difference between the first bronchial segment and the second bronchial segment is greater than the preset difference associated with the second display level, the first bronchial segment is determined as the second display level, and the first bronchial segment is determined as the second display level. The display mode corresponding to a display level is to highlight the marking information of the bronchial segment in yellow, wherein the preset difference value associated with the first display level is greater than the preset difference value associated with the second display level, that is, the first display level Bronchial dilatation was more severe in grade bronchial segments than in bronchial segments in the second displayed grade. Therefore, through different display methods, the system users can intuitively distinguish bronchial segments with different bronchiectasis through lung medical images, which greatly improves the identification efficiency of bronchiectasis.
在本申请实施例中,进一步地,医学影像的检测方法还包括:在检测结果为存在柱状征象的情况下,关联存储存在柱状征象的支气管段的中心点和内径。In the embodiment of the present application, further, the method for detecting a medical image further includes: in the case that the detection result is that there is a columnar sign, the center point and the inner diameter of the bronchial segment where the columnar sign is present are associated and stored.
在该实施例中,若确定肺部医学影像的支气管段存在柱状征象,则关联存储存在柱状征象的支气管段的中心点和内径,以便于实现柱状征象的信息追溯,使得系统使用者能够直观的获知支气管段的扩张情况,降低系统使用者的阅片工作量,有利于提升支扩鉴别效率。In this embodiment, if it is determined that there is a columnar sign in the bronchial segment of the pulmonary medical image, the center point and inner diameter of the bronchial segment with the columnar sign are stored in association, so as to realize the information traceability of the columnar sign, so that the system user can intuitively Knowing the dilation of the bronchial segments reduces the workload of the system users in reading images, which is beneficial to improve the identification efficiency of bronchiectasis.
如图2所示,在本申请一个具体实施例中,提出一种医学影像的检测方法,包括:As shown in FIG. 2, in a specific embodiment of the present application, a method for detecting medical images is proposed, including:
步骤201,图像获取及图像预处理;
具体地,可以通过CT设备对患者的胸部进行扫描,从而得到患者的待检测胸部图像。对待检测胸部图像进行标准化处理,将待检测胸部图像的CT值在-1000到1000之间进行截断并归一化,获得的图像值在0到1间分布,并以像素大小为0.6毫米的间隔对其在三维方向重新插值,得到宽高深大小为W×H×D的标准化待检测胸部图像。Specifically, the chest of the patient may be scanned by a CT device, so as to obtain an image of the chest to be detected of the patient. The chest image to be detected is normalized, and the CT value of the chest image to be detected is truncated and normalized between -1000 and 1000. The obtained image values are distributed between 0 and 1, and the pixel size is 0.6 mm. It is re-interpolated in the three-dimensional direction to obtain the normalized chest image to be detected whose width, height and depth are W×H×D.
步骤202,肺部区域分割;
具体地,可以采用传统的区域增长方法或者基于模型的肺实质分割方法,获取肺部区域分割结果(肺部医学影像),若采用后者则需要根据需求标注肺实质区域,然后通过神经网络模型训练得到肺实质分割模型。Specifically, the traditional area growth method or the model-based lung parenchyma segmentation method can be used to obtain the lung area segmentation results (pulmonary medical images). The training obtained the lung parenchyma segmentation model.
步骤203,支气管分割;
具体地,在肺分割区域内进行支气管分割,并将所有的支气管标注为mask0。支气管分割可以采用传统区域增长方法,如从气管较粗的地方选取种子点开始根据阈值区域生长;也可以采用基于模型的方法分割支气管,若采用模型的方法则需要根据需求手动标注支气管,然后通过神经网络模型训练得到支气管分割模型。Specifically, bronchi segmentation is performed within the lung segmentation region, and all bronchi are labeled as mask 0 . Bronchial segmentation can use traditional regional growth methods, such as selecting seed points from thicker parts of the trachea to start growing according to the threshold area; or using a model-based method to segment the bronchus. The neural network model is trained to obtain a bronchial segmentation model.
步骤204,肺动脉血管分割;
具体地,在肺分割区域内进行动脉血管分割,并将所有肺动脉血管标注为mask1。由于平扫CT动静脉血管无区别,传统肺动脉血管分割方法效果不好,可以采用基于模型的方法分割动脉血管,需要根据需求手动标注动脉血管,然后通过神经网络模型训练得到动脉血管分割模型。但由于动静脉区别不大,但只要分出血管即可。Specifically, arterial vessel segmentation is performed within the lung segmentation region, and all pulmonary arterial vessels are labeled as mask 1 . Since there is no difference between arterial and venous vessels in plain CT scan, the traditional pulmonary artery segmentation method is not effective. Model-based methods can be used to segment arterial vessels. Arterial vessels need to be manually marked according to requirements, and then an arterial vessel segmentation model is obtained through neural network model training. However, since there is little difference between arteries and veins, it is enough to separate the blood vessels.
步骤205,支气管分级;
具体地,根据支气管分割结果mask0,利用中心线提取方法,提取支气管中心线line0n,并根据中心线计算连通域在mask0上将支气管分成不同级别,得到支气管分级L1、L2……Ln。Specifically, according to the bronchial segmentation result mask 0 , use the centerline extraction method to extract the bronchial centerline line0 n , and calculate the connected domain according to the center line to divide the bronchus into different levels on the mask 0 to obtain the bronchial classification L 1 , L 2 ...... L n .
步骤206,支气管伴随动脉血管搜索;
具体地,计算肺实质区域内所有点到支气管中心线的距离场,得到map图;在肺动脉血管分割结果mask1上提取动脉血管中心线line1;从支气管分级中提取不同级别支气管段line1n,每条支气管段中心线包含起始点P0、终点Pw以及等间距的第一采样点P1、P2……P(w-1),在map图中依次搜索每个支气管段的采样点到line1距离最短的line1上的伴随点,记为A0、A1……A(w-1);有时点A0、A1……A(w-1)可能不在同一段动脉血管的中心线上,可根据多点投票方式选取投票最多的一段中心线作为该支气管段的伴随动脉血管段(目标动脉血管段)中心线line1n,从而能够根据mask0上不同的支气管段在mask1上搜索距离最近的伴随动脉血管段。Specifically, calculate the distance field from all points in the lung parenchyma area to the bronchial centerline to obtain a map; extract the arterial blood vessel centerline line1 on the pulmonary artery segmentation result mask 1 ; extract different levels of bronchial segments line1 n from the bronchial classification, each The center line of a bronchial segment includes the starting point P 0 , the end point P w and the first sampling points P 1 , P 2 ...... P (w-1) at equal intervals. The accompanying points on line1 with the shortest distance from line1 are denoted as A 0 , A 1 ......A (w-1) ; sometimes points A 0 , A 1 ...... A (w-1) may not be in the centerline of the same segment of arterial vessels In the above, the centerline of the most voted segment can be selected as the centerline line1 n of the accompanying arterial vessel segment (target arterial vessel segment) of the bronchial segment according to the multi-point voting method, so that the mask 1 can be searched according to different bronchial segments on mask 0 . The nearest concomitant arterial vessel segment.
步骤207,支气管分类;
具体地,基于模型的支气管分类方法,根据肺部样本图像中支气管段line0n以及伴随动脉血管段line1n,获取以下信息:Specifically, the model-based bronchial classification method obtains the following information according to the bronchial segment line0 n and the accompanying arterial vessel segment line1 n in the lung sample image:
(1)根据支气管段line0n中心线拉直该段支气管原始图像,并等间距采样截取三维小块图像I0n;(1) Straighten the original image of the bronchus segment line0 n according to the centerline of the segment, and sample and intercept the three-dimensional small block image I0 n at equal intervals;
(2)同样操作截取支气管分割段line0n在mask0上的三维小块掩码M0n;(2) the same operation intercepts the three-dimensional small block mask M0 n of the bronchial segment line0 n on the mask 0 ;
(3)在该支气管段line0n的上级支气管段line0(n-1)上同样操作提取相应的三维图像I0(n-1)、三维掩码M0(n-1);(3) extract corresponding three-dimensional image I0 (n-1) and three-dimensional mask M0 (n-1 ) on the superior bronchial segment line0 (n-1) of this bronchial segment line0 n by the same operation;
(4)在支气管段line0n所伴随的动脉血管段line1n上同样操作提取相应的三维图像I1n、三维掩码M1n;(4) Extract the corresponding three-dimensional image I1 n and three-dimensional mask M1 n by the same operation on the arterial vessel segment line1 n accompanying the bronchial segment line0 n ;
将收集的图像块I0n、M0n、I0(n-1)、M0(n-1)、I1n、M1n合并在一起作为神经网络的输入,根据医生标注的结果(0为正常支气管、1为扩张支气管)作为标签,训练三维神经网络模型(柱状征象检测模型),该模型结构和参数设计无特殊要求;The collected image blocks I0 n , M0 n , I0 (n-1) , M0 (n-1) , I1 n , M1 n are merged together as the input of the neural network, according to the results marked by the doctor (0 is normal bronchus, 1 is dilated bronchus) as a label to train a three-dimensional neural network model (columnar sign detection model), the model structure and parameter design have no special requirements;
在进行柱状征象检测过程中,采用同样的方式获得肺部医学影像中与支气管段line0n以及伴随动脉血管段line1n相关的I0n、M0n、I0(n-1)、M0(n-1)、I1n、M1n,并输入柱状征象检测模型,根据mask0内支气管段信息以及mask1内伴随动脉血管信息利用深度学习模型区分出支气管是否存在柱状扩张。During the detection of columnar signs, I0 n , M0 n , I0 (n-1) , M0 (n-1 related to the bronchial segment line0 n and the accompanying arterial vessel segment line1 n in the lung medical images were obtained in the same way. ) , I1 n , M1 n , and input the columnar sign detection model. According to the bronchial segment information in mask 0 and the accompanying arterial blood vessel information in mask 1 , the deep learning model is used to distinguish whether there is columnar dilation of the bronchus.
步骤208,支气管信息输出;
具体地,将步骤207中分类完成的标注为1的支气管段在mask0上标记为不同值,同时记录该支气管段的中心点以及计算支气管内径作为输出,从而将扩张支气管及其位置信息计算出每个扩张的测量及统计信息并输出。Specifically, the bronchial segment marked as 1 after the classification in
在该实施例中,通过深度学习的方式利用大数据训练建立支气管的特征模型,将支气管影像信息、伴随动脉血管信息以及上级支气管影像信息等都作为网络的判别依据,不仅将临床肺部CT影像数据中的正常支气管与柱状扩张支气管进行区分,而且可以提高柱状征象的诊断精度,减轻医生的工作量。In this embodiment, the bronchial feature model is established by using big data training through deep learning, and the bronchial image information, accompanying arterial blood vessel information, and superior bronchial image information are all used as the basis for the network to discriminate, not only the clinical lung CT image The normal bronchi in the data can be distinguished from the columnar dilated bronchi, which can improve the diagnostic accuracy of columnar signs and reduce the workload of doctors.
进一步地,作为上述医学影像的检测方法的具体实现,本申请实施例提供了一种医学影像的检测装置,如图3所示,该医学影像的检测装置包括:获取模块、提取模块、确定模块以及检测模块。Further, as a specific implementation of the above method for detecting medical images, an embodiment of the present application provides a device for detecting medical images. As shown in FIG. 3 , the device for detecting medical images includes: an acquisition module, an extraction module, and a determination module and detection modules.
其中,获取模块,用于获取肺部医学影像;提取模块,用于提取肺部医学影像中的动脉血管和支气管,支气管包括多个不同级别的支气管段;确定模块,用于根据支气管段的中心线与动脉血管的中心线之间的距离,确定肺部医学影像中支气管段对应的目标动脉血管段;检测模块,用于对支气管段和目标动脉血管段进行检测处理,确定支气管段的检测结果。Among them, the acquisition module is used to acquire lung medical images; the extraction module is used to extract the arterial blood vessels and bronchi in the lung medical images, and the bronchi includes multiple bronchial segments of different levels; the determination module is used to determine the center of the bronchial segments according to the The distance between the line and the center line of the arterial vessel determines the target arterial vessel segment corresponding to the bronchial segment in the lung medical image; the detection module is used to detect and process the bronchial segment and the target arterial vessel segment to determine the detection result of the bronchial segment .
进一步地,医学影像的检测装置还包括:截取模块,按照预设间距,对肺部医学影像中第二支气管段、第一支气管段对应的目标动脉血管段中至少一者,以及第一支气管段进行截取处理,得到第一图像,第二支气管段为第一支气管段的前一个级别的支气管段;检测模块具体用于,将第一图像和/或第一图像的掩码,输入柱状征象检测模型,以确定第一支气管段的检测结果;其中,柱状征象检测模型基于肺部样本图像和肺部样本图像对应的柱状征象标签训练得到。Further, the medical image detection device further includes: an interception module, which, according to a preset interval, analyzes at least one of the second bronchial segment, the target arterial vessel segment corresponding to the first bronchial segment, and the first bronchial segment in the lung medical image. The interception process is performed to obtain a first image, and the second bronchial segment is the bronchial segment of the previous level of the first bronchial segment; the detection module is specifically used to input the first image and/or the mask of the first image into the columnar sign detection The model is used to determine the detection result of the first bronchial segment; wherein, the columnar sign detection model is obtained by training based on the lung sample image and the columnar sign label corresponding to the lung sample image.
进一步地,获取模块,还用于获取肺部样本图像,肺部样本图像包括多个不同级别的支气管段样本和多个不同级别的支气管段样本对应的和目标动脉血管段样本;医学影像的检测装置还包括:标记模块,用于在第一支气管段样本的直径大于对应的目标动脉血管段样本的直径,或第一支气管段样本的直径与第二支气管段样本的直径之间的差值大于预设差值的情况下,生成第一支气管段样本的柱状征象标签,柱状征象标签用于标记支气管存在柱状征象;截取模块,还用于对标记有柱状征象标签的第二支气管段样本、第一支气管段样本对应的目标动脉血管段样本中至少一者,以及第一支气管段样本进行截取处理,得到第二图像;医学影像的检测装置还包括:训练模块,用于根据第二图像和/或第二图像的掩码,训练神经网络模型,得到柱状征象检测模型。Further, the acquisition module is also used to acquire lung sample images, and the lung sample images include multiple bronchial segment samples of different levels and samples of target arterial blood vessel segments corresponding to multiple bronchial segment samples of different levels; detection of medical images; The apparatus further includes: a marking module for when the diameter of the first bronchial segment sample is greater than the diameter of the corresponding target arterial vessel segment sample, or the difference between the diameter of the first bronchial segment sample and the diameter of the second bronchial segment sample is greater than In the case of a preset difference, a columnar sign label of the first bronchial segment sample is generated, and the columnar sign label is used to mark the presence of a columnar sign in the bronchus; the interception module is also used for the second bronchial segment sample marked with the columnar sign label, the first At least one of the target arterial blood vessel segment samples corresponding to a bronchial segment sample, and the first bronchial segment sample are intercepted to obtain a second image; the medical image detection device further includes: a training module, configured according to the second image and/or Or the mask of the second image, train the neural network model, and obtain the columnar sign detection model.
进一步地,确定模块,具体用于确定支气管段的中心线上的第一采样点;分别计算第一采样点与动脉血管的中心线上多个第二采样点之间的距离;确定模块,具体用于将最小的距离对应的第二采样点,确定为第一采样点对应的伴随点;按照支气管段的起点坐标和终点坐标,确定支气管段对应的至少一个动脉血管段;根据伴随点的位置,从至少一个动脉血管段选取目标动脉血管段。Further, the determination module is specifically used to determine the first sampling point on the centerline of the bronchial segment; the distances between the first sampling point and a plurality of second sampling points on the centerline of the arterial blood vessel are calculated respectively; the determination module, specifically It is used to determine the second sampling point corresponding to the smallest distance as the accompanying point corresponding to the first sampling point; according to the starting point coordinates and end point coordinates of the bronchial segment, determine at least one arterial vessel segment corresponding to the bronchial segment; according to the position of the accompanying point , and select a target arterial vessel segment from at least one arterial vessel segment.
进一步地,提取模块,具体用于将肺部医学影像输入动脉血管分割模型,得到肺部医学影像中的动脉血管;将肺部医学影像输入支气管分割模型,得到肺部医学影像中的支气管;其中,动脉血管分割模型基于肺部样本图像及其对应的动脉血管分割标签训练得到,肺部分割模型基于肺部样本图像及其对应的肺部分割标签训练得到。Further, the extraction module is specifically used for inputting the pulmonary medical image into the arterial blood vessel segmentation model to obtain the arterial blood vessels in the pulmonary medical image; inputting the pulmonary medical image into the bronchial segmentation model to obtain the bronchus in the pulmonary medical image; wherein , the arterial vessel segmentation model is trained based on the lung sample images and their corresponding arterial vessel segmentation labels, and the lung segmentation model is trained based on the lung sample images and their corresponding lung segmentation labels.
进一步地,医学影像的检测装置还包括:显示模块,用于在检测结果为存在柱状征象的情况下,将肺部医学影像中存在柱状征象的支气管段进行差异显示。Further, the medical image detection device further includes: a display module, configured to display the bronchial segments with columnar signs in the lung medical image differentially when the detection result is that there are columnar signs.
进一步地,医学影像的检测装置还包括:存储模块,用于在检测结果为存在柱状征象的情况下,关联存储存在柱状征象的支气管段的中心点和内径。Further, the medical image detection apparatus further includes: a storage module, configured to associate and store the center point and the inner diameter of the bronchial segment where the columnar sign exists when the detection result is that the columnar sign exists.
进一步地,获取模块,具体用于获取待检测医学影像;医学影像的检测装置还包括:预处理模块,用于对待检测医学影像进行预处理;分割模块,用于对预处理后的待检测医学影像进行肺部分割处理,得到肺部医学影像;其中,预处理包括以下至少之一:降噪处理、归一化处理、尺寸校正处理、CT值截断处理、重采样处理。Further, the acquisition module is specifically used to acquire the medical image to be detected; the medical image detection device further includes: a preprocessing module, used to preprocess the medical image to be detected; a segmentation module, used to preprocess the medical image to be detected. The image is subjected to lung segmentation processing to obtain a lung medical image; wherein, the preprocessing includes at least one of the following: noise reduction processing, normalization processing, size correction processing, CT value truncation processing, and resampling processing.
在该实施例中,医学影像的检测装置的各模块执行各自功能时实现第一方面的任一实施例中的医学影像的检测方法的步骤,因此,医学影像的检测装置同时也包括第一方面任一实施例中的医学影像的检测方法的全部有益效果,在此不再赘述。In this embodiment, each module of the medical image detection apparatus implements the steps of the medical image detection method in any embodiment of the first aspect when each module performs its own function. Therefore, the medical image detection apparatus also includes the first aspect. All the beneficial effects of the medical image detection method in any of the embodiments will not be repeated here.
需要说明的是,本申请实施例提供的一种医学影像的检测装置所涉及各功能模块的其他相应描述,可以参考图1和图2的对应描述,在此不再赘述。It should be noted that, for other corresponding descriptions of the functional modules involved in the medical image detection apparatus provided in the embodiments of the present application, reference may be made to the corresponding descriptions in FIG. 1 and FIG. 2 , which will not be repeated here.
在具体的应用场景中,本申请实施例中的医学影像的检测装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、智能摄像设备、穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)或个人计算机(personal computer,PC)等,本申请实施例不作具体限定。In a specific application scenario, the medical image detection device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a smart camera device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant. (personal digital assistant, PDA), etc., the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), or a personal computer (personal computer, PC), etc., which are not specifically limited in the embodiments of the present application.
根据本申请又一个方面,提供了一种存储介质,其上存储有计算机程序,程序被处理器执行时实现上述医学影像的检测方法。According to yet another aspect of the present application, a storage medium is provided on which a computer program is stored, and when the program is executed by a processor, the foregoing method for detecting a medical image is implemented.
根据本申请再一个方面,提供了一种计算机设备,包括存储介质、处理器及存储在存储介质上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述医学影像的检测方法。According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, and the processor implements the above-mentioned detection method for medical images when the computer program is executed. .
基于上述如图1和图2所示方法,相应的,本申请实施例还提供了一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的医学影像的检测方法。Based on the above methods shown in FIGS. 1 and 2 , correspondingly, an embodiment of the present application further provides a storage medium on which a computer program is stored, and when the program is executed by a processor, implements the above method for detecting medical images.
基于这样的理解,本申请的技术方案可以以软件产品或硬件产品或软硬件相结合的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施场景的方法。Based on this understanding, the technical solution of the present application can be embodied in the form of a software product or a hardware product or a combination of software and hardware, and the software product can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, A mobile hard disk, etc.), including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method of each implementation scenario of the present application.
基于上述如图1所示的医学影像的检测方法,以及图3所示的医学影像的检测装置实施例,为了实现上述目的,本申请实施例还提供了一种计算机设备,具体可以为个人计算机、服务器、网络设备等,该计算机设备包括存储介质和处理器;存储介质,用于存储计算机程序;处理器,用于执行计算机程序以实现上述医学影像的检测方法。Based on the medical image detection method shown in FIG. 1 and the embodiment of the medical image detection apparatus shown in FIG. 3 , in order to achieve the above purpose, the embodiment of the present application also provides a computer device, which may be a personal computer. , a server, a network device, etc., the computer device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to implement the above method for detecting medical images.
可选地,该计算机设备还可以包括用户接口、网络接口、摄像头、射频(RadioFrequency,RF)电路,传感器、音频电路、WI-FI模块等等。用户接口可以包括显示屏(Display)、输入单元比如键盘(Keyboard)等,可选用户接口还可以包括USB接口、读卡器接口等。网络接口可选的可以包括标准的有线接口、无线接口(如蓝牙接口、WI-FI接口)等。Optionally, the computer device may further include a user interface, a network interface, a camera, a radio frequency (Radio Frequency, RF) circuit, a sensor, an audio circuit, a WI-FI module, and the like. The user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, and the like. Optional network interfaces may include standard wired interfaces, wireless interfaces (such as Bluetooth interfaces, WI-FI interfaces), and the like.
本领域技术人员可以理解,本实施例提供的一种计算机设备结构并不构成对该计算机设备的限定,可以包括更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of a computer device provided in this embodiment does not constitute a limitation on the computer device, and may include more or less components, or combine some components, or arrange different components.
存储介质中还可以包括操作系统、网络通信模块。操作系统是管理和保存计算机设备硬件和软件资源的程序,支持信息处理程序以及其它软件和/或程序的运行。网络通信模块用于实现存储介质内部各控件之间的通信,以及与该实体设备中其它硬件和软件之间通信。The storage medium may also include an operating system and a network communication module. An operating system is a program that manages and saves the hardware and software resources of computer equipment, supports the operation of information processing programs and other software and/or programs. The network communication module is used to realize the communication between various controls in the storage medium, as well as the communication with other hardware and software in the physical device.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可以借助软件加必要的通用硬件平台的方式来实现,也可以通过硬件实现。From the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware.
本领域技术人员可以理解附图只是一个优选实施场景的示意图,附图中的单元或流程并不一定是实施本申请所必须的。本领域技术人员可以理解实施场景中的装置中的单元可以按照实施场景描述进行分布于实施场景的装置中,也可以进行相应变化位于不同于本实施场景的一个或多个装置中。上述实施场景的单元可以合并为一个单元,也可以进一步拆分成多个子单元。Those skilled in the art can understand that the accompanying drawing is only a schematic diagram of a preferred implementation scenario, and the units or processes in the accompanying drawing are not necessarily necessary to implement the present application. Those skilled in the art can understand that the units in the device in the implementation scenario may be distributed in the device in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the implementation scenario with corresponding changes. The units of the above implementation scenarios may be combined into one unit, or may be further split into multiple subunits.
上述本申请序号仅仅为了描述,不代表实施场景的优劣。以上公开的仅为本申请的几个具体实施场景,但是,本申请并非局限于此,任何本领域的技术人员能思之的变化都应落入本申请的保护范围。The above serial numbers in this application are only for description, and do not represent the pros and cons of the implementation scenarios. The above disclosures are only a few specific implementation scenarios of the present application, however, the present application is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210099872.2A CN114549425A (en) | 2022-01-27 | 2022-01-27 | Medical image detection method and device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210099872.2A CN114549425A (en) | 2022-01-27 | 2022-01-27 | Medical image detection method and device, storage medium and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114549425A true CN114549425A (en) | 2022-05-27 |
Family
ID=81673543
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210099872.2A Pending CN114549425A (en) | 2022-01-27 | 2022-01-27 | Medical image detection method and device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114549425A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118823035A (en) * | 2024-06-25 | 2024-10-22 | 内蒙古科技大学包头医学院 | A bronchial extraction method, device and computer equipment based on CT images |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070049839A1 (en) * | 2005-08-31 | 2007-03-01 | Siemens Corporate Research Inc. | System and method for automated airway evaluation for multi-slice computed tomography (msct) image data using airway lumen diameter, airway wall thickness and broncho-arterial ratio |
US20070064988A1 (en) * | 2005-09-16 | 2007-03-22 | Siemens Corporate Research Inc | System and method for grouping airways and arteries for quantitative analysis |
US20100128940A1 (en) * | 2005-02-11 | 2010-05-27 | Koninklijke Philips Electronics, N.V. | Method of automatic extraction of the pulmonary artery tree from 3d medical images |
US20110051885A1 (en) * | 2008-04-18 | 2011-03-03 | Koninklijke Philips Electronics N.V. | Segmenting pulmonary arteries |
WO2020044840A1 (en) * | 2018-08-31 | 2020-03-05 | 富士フイルム株式会社 | Region dividing device, method and program, similarity determination device, method and program, and feature amount derivation device, method and program |
CN111784631A (en) * | 2020-05-20 | 2020-10-16 | 上海联影智能医疗科技有限公司 | An image processing device, method and storage medium |
-
2022
- 2022-01-27 CN CN202210099872.2A patent/CN114549425A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100128940A1 (en) * | 2005-02-11 | 2010-05-27 | Koninklijke Philips Electronics, N.V. | Method of automatic extraction of the pulmonary artery tree from 3d medical images |
US20070049839A1 (en) * | 2005-08-31 | 2007-03-01 | Siemens Corporate Research Inc. | System and method for automated airway evaluation for multi-slice computed tomography (msct) image data using airway lumen diameter, airway wall thickness and broncho-arterial ratio |
US20070064988A1 (en) * | 2005-09-16 | 2007-03-22 | Siemens Corporate Research Inc | System and method for grouping airways and arteries for quantitative analysis |
US20110051885A1 (en) * | 2008-04-18 | 2011-03-03 | Koninklijke Philips Electronics N.V. | Segmenting pulmonary arteries |
CN102007515A (en) * | 2008-04-18 | 2011-04-06 | 皇家飞利浦电子股份有限公司 | Segmenting pulmonary arteries |
WO2020044840A1 (en) * | 2018-08-31 | 2020-03-05 | 富士フイルム株式会社 | Region dividing device, method and program, similarity determination device, method and program, and feature amount derivation device, method and program |
CN111784631A (en) * | 2020-05-20 | 2020-10-16 | 上海联影智能医疗科技有限公司 | An image processing device, method and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118823035A (en) * | 2024-06-25 | 2024-10-22 | 内蒙古科技大学包头医学院 | A bronchial extraction method, device and computer equipment based on CT images |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107895367B (en) | Bone age identification method and system and electronic equipment | |
CN111145206B (en) | Liver image segmentation quality assessment method and device and computer equipment | |
CN109166124B (en) | A Quantitative Method for Retinal Vascular Morphology Based on Connected Regions | |
CN108133476B (en) | Method and system for automatically detecting pulmonary nodules | |
CN112465772B (en) | Fundus colour photographic image blood vessel evaluation method, device, computer equipment and medium | |
US10115039B2 (en) | Method and system for machine learning based classification of vascular branches | |
CN108898595B (en) | Construction method and application of positioning model of focus region in chest image | |
US8411927B2 (en) | Marker detection in X-ray images | |
JP4950071B2 (en) | Method for automatic extraction of pulmonary artery tree from 3D medical images | |
CN111667456B (en) | A method and device for detecting vascular stenosis in coronary X-ray sequence angiography | |
CN108961229A (en) | Cardiovascular OCT image based on deep learning easily loses plaque detection method and system | |
CN108986073A (en) | A kind of CT image pulmonary nodule detection method based on improved Faster R-CNN frame | |
CN105103163A (en) | Multimodal segmentation in intravascular images | |
JP2008259622A (en) | Report writing supporting apparatus and its program | |
JP2012223315A (en) | Medical image processing apparatus, method, and program | |
CN113781439A (en) | Ultrasonic video focus segmentation method and device | |
CN110189307B (en) | Pulmonary nodule detection method and system based on multi-model fusion | |
CN111476774A (en) | Intelligent sign recognition device based on novel coronavirus pneumonia CT detection | |
CN108932720A (en) | A kind of the encephalic patch and carotid plaques intelligent scissor method of magnetic resonance image | |
CN111797901A (en) | A Retinal Artery and Vein Classification Method and Device Based on Topological Structure Estimation | |
CN116934747B (en) | Fundus image segmentation model training method, equipment and glaucoma auxiliary diagnosis system | |
Gao et al. | Automatic optic disc segmentation based on modified local image fitting model with shape prior information | |
Morales et al. | Segmentation and analysis of retinal vascular tree from fundus images processing | |
CN114549425A (en) | Medical image detection method and device, storage medium and computer equipment | |
WO2024008100A1 (en) | Needle biopsy site positioning method and apparatus, and storage medium |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20240226 Address after: 110167 No. 177-1 Innovation Road, Hunnan District, Shenyang City, Liaoning Province Applicant after: Shenyang Neusoft Medical Systems Co.,Ltd. Country or region after: China Address before: 110167 room 336, No. 177-1, Chuangxin Road, Hunnan District, Shenyang City, Liaoning Province Applicant before: Shenyang advanced medical equipment Technology Incubation Center Co.,Ltd. Country or region before: China |
|
TA01 | Transfer of patent application right |