CN111986216A - RSG liver CT image interactive segmentation algorithm based on neural network improvement - Google Patents

RSG liver CT image interactive segmentation algorithm based on neural network improvement Download PDF

Info

Publication number
CN111986216A
CN111986216A CN202010907881.0A CN202010907881A CN111986216A CN 111986216 A CN111986216 A CN 111986216A CN 202010907881 A CN202010907881 A CN 202010907881A CN 111986216 A CN111986216 A CN 111986216A
Authority
CN
China
Prior art keywords
liver
image
pixel
neural network
segmentation
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.)
Granted
Application number
CN202010907881.0A
Other languages
Chinese (zh)
Other versions
CN111986216B (en
Inventor
张丽娟
章润
李东明
李阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi University
Original Assignee
Changchun University of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Changchun University of Technology filed Critical Changchun University of Technology
Priority to CN202010907881.0A priority Critical patent/CN111986216B/en
Publication of CN111986216A publication Critical patent/CN111986216A/en
Application granted granted Critical
Publication of CN111986216B publication Critical patent/CN111986216B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10072Tomographic images
    • G06T2207/10081Computed x-ray tomography [CT]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20092Interactive image processing based on input by user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30056Liver; Hepatic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Medical Informatics (AREA)
  • Quality & Reliability (AREA)
  • Radiology & Medical Imaging (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Apparatus For Radiation Diagnosis (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

本发明提出一种基于一维卷积神经网络改进的区域生长算法对肝脏CT图像进行交互式分割,通过神经网络统筹考虑像素的灰度值、空间信息、不同梯度值等多种信息作为生长规则,提高了区域生长法的稳定性,增强了算法对边缘复杂结构的分割能力。具体步骤如下:首先是图像预处理,提取CT图像序列集中含有肝脏的切片,使用窗口算法将CT图像转化为灰度图像;然后是图像边缘检测,计算像素在不同边缘检测算子下的梯度值作为该像素的特征,形成像素特征向量;接下来是构建网络模型,提取训练数据集,训练网络模型;最后是分割,将训练好的卷积神经网络模型作为区域生长算法的生长准则,利用鼠标点击肝脏区域产生初始分割结果,利用形态学方法进行填充孔洞得到最终结果。

Figure 202010907881

The present invention proposes an improved region growing algorithm based on one-dimensional convolutional neural network to interactively segment liver CT images, and comprehensively considers pixel gray value, spatial information, different gradient values and other information as growth rules through the neural network , which improves the stability of the region growing method and enhances the algorithm's ability to segment complex edge structures. The specific steps are as follows: first, image preprocessing, extracting slices containing liver in CT image sequence set, and using window algorithm to convert CT image into grayscale image; then image edge detection, calculating the gradient value of pixels under different edge detection operators As the feature of the pixel, the pixel feature vector is formed; the next step is to build a network model, extract the training data set, and train the network model; the last step is segmentation, using the trained convolutional neural network model as the growth criterion of the region growing algorithm, using the mouse Click on the liver area to generate the initial segmentation results, and use morphological methods to fill the holes to obtain the final results.

Figure 202010907881

Description

一种基于神经网络改进的RSG肝脏CT图像交互式分割算法An Improved Interactive Segmentation Algorithm of RSG Liver CT Image Based on Neural Network

技术领域technical field

本发明提出一种基于一维卷积神经网络改进的区域生长算法(Region SeedsGrowing,RSG)对肝脏CT图像进行交互式分割,通过神经网络统筹考虑像素的灰度值、空间信息、不同梯度值等多种信息作为生长规则,提高了区域生长法的稳定性,增强了算法对边缘复杂结构的分割能力。The present invention proposes an improved region growing algorithm (Region Seeds Growing, RSG) based on a one-dimensional convolutional neural network to interactively segment liver CT images, and the gray value, spatial information, different gradient values, etc. of pixels are considered as a whole through the neural network. A variety of information is used as a growth rule, which improves the stability of the region growing method and enhances the algorithm's ability to segment complex structures at the edge.

背景技术Background technique

CT是无侵害性的器官体外成像手段,由于其成像速度较快、分辨力较高、效果较好,已经成为临床医生进行医疗诊断不可或缺的重要手段,可视化技术与医学图像分析结合,在对肝脏疾病的诊断中占有主导地位。通过对肝脏CT图像进行分割,提取出肝脏组织并获得相应的特征信息,医生可以很直观地了解患者肝脏内部的详细情况,对诊断及下一步治疗计划的制定起到关键作用。CT is a non-invasive in vitro imaging method of organs. Because of its fast imaging speed, high resolution and good effect, it has become an indispensable and important method for clinicians to make medical diagnosis. The combination of visualization technology and medical image analysis has It dominates the diagnosis of liver disease. By segmenting liver CT images, extracting liver tissue and obtaining corresponding feature information, doctors can intuitively understand the details of the patient's liver, which plays a key role in the diagnosis and the formulation of the next treatment plan.

当前的分割方法可以分为三类:手动,半自动和全自动。手动分割方法繁琐,耗时,并且可能受到观察者间和观察者内部变异性的影响。需要将图像的每个像素手动分配到其类别,尽管可以通过该技术获得非常准确的结果,但是所需的时间将限制一些任务转换成临床实践。对于某些任务,单个案例的手动分割可能需要数小时。全自动方法不需要人力,在过去的几十年中,研究人员开发了许多自动分割方法。但是,全自动分割方法很少能获得足够准确、鲁棒的结果,以至于在临床上是不实用的。这通常是由于图像质量差(带有噪音,部分体积效应,伪影和低对比度),患者之间的差异大,病理学带来的不均匀外观以及临床医生之间的方案差异导致给定结构边界的定义不同。Current segmentation methods can be divided into three categories: manual, semi-automatic and fully automatic. Manual segmentation methods are cumbersome, time-consuming, and can suffer from inter- and intra-observer variability. Each pixel of the image needs to be manually assigned to its class, and while very accurate results can be obtained with this technique, the time required will limit the translation of some tasks into clinical practice. For some tasks, manual segmentation of a single case can take hours. Fully automated methods do not require human effort, and researchers have developed many automatic segmentation methods over the past few decades. However, fully automated segmentation methods rarely achieve sufficiently accurate and robust results to be clinically impractical. This is usually due to poor image quality (with noise, partial volume effects, artifacts and low contrast), large patient-to-patient variability, uneven appearance from pathology, and protocol differences between clinicians for a given structure Boundaries are defined differently.

为了解决全自动分割方法的局限性,交互式分割方法在临床实践中是可行的,因为它可以在许多应用中提供更高的准确性和鲁棒性,例如规划脑肿瘤的放射治疗。由于提供用于分割的手动注释既费时又费力,因此有效的交互式分割方法对于实际使用非常重要。良好的交互式分割方法应以尽可能少的用户交互获得准确的结果,从而提高交互效率。尽管存在大量的交互式分割方法,但大多数方法都需要大量的用户交互和花费较长的用户时间,或者其基础模型的学习能力有限。例如,广泛使用的ITK-SNAP以用户提供的种子像素或斑点为起点,并采用主动轮廓模型进行分割。它要求在初始时就进行大量的用户交互,一旦获得初始细分,就很难通过其他用户交互来完善基础模型。SlicSeg在单个开始切片中接受用户提供的涂鸦,以训练在线随机森林进行3D分割,但是缺乏灵活性,无法进行进一步的用户编辑。Random Walks和Graph Cuts从涂鸦中学习,并允许用户提供其他涂鸦以进行细化。他们使用随机游走和高斯混合模型(GMM)作为基础模型。但是,他们需要大量的涂鸦才能获得令人满意的分割效果。本文利用卷积神经网络改进常规区域生长算法的生长规则,通过鼠标点击即可完成交互产生分割图像。To address the limitations of fully automated segmentation methods, an interactive segmentation method is feasible in clinical practice as it can provide higher accuracy and robustness in many applications, such as planning radiation therapy for brain tumors. Since providing manual annotations for segmentation is time-consuming and labor-intensive, effective interactive segmentation methods are important for practical use. A good interactive segmentation method should obtain accurate results with as little user interaction as possible, thereby improving interaction efficiency. Although a large number of interactive segmentation methods exist, most of them require a large amount of user interaction and take a long user time, or their underlying models have limited learning ability. For example, the widely used ITK-SNAP takes user-supplied seed pixels or blobs as starting points and adopts an active contour model for segmentation. It requires a lot of user interaction at the beginning, and once the initial segmentation is obtained, it is difficult to refine the base model with other user interactions. SlicSeg accepts user-provided scribbles in a single start slice to train an online random forest for 3D segmentation, but lacks flexibility for further user editing. Random Walks and Graph Cuts learn from doodles and allow users to provide other doodles for refinement. They used random walks and Gaussian mixture models (GMMs) as base models. However, they require a lot of doodles to obtain satisfactory segmentation results. In this paper, the convolutional neural network is used to improve the growth rules of the conventional region growing algorithm, and the segmentation image can be generated interactively by clicking the mouse.

发明内容SUMMARY OF THE INVENTION

本发明的目的是为了解决传统的区域生长法对肝脏CT图像分割精度不高、稳定弱的问题,提出使用基于一维卷积神经网络改进的区域生长算法对肝脏CT图像进行交互式分割,通过神经网络统筹考虑像素的灰度值、空间信息、不同梯度值等多种信息作为生长规则,为了实现上述目的,本发明的步骤如下:The purpose of the present invention is to solve the problems of low accuracy and weak stability of liver CT image segmentation by the traditional region growing method, and proposes to use an improved region growing algorithm based on a one-dimensional convolutional neural network to interactively segment the liver CT image. The neural network comprehensively considers the gray value, spatial information, different gradient values and other information of pixels as growth rules. In order to achieve the above purpose, the steps of the present invention are as follows:

步骤一:图像预处理,提取CT图像序列集中含有肝脏的切片,使用窗口算法(W/L)将CT图像转化为灰度图像;Step 1: Image preprocessing, extracting slices containing liver in the CT image sequence set, and using window algorithm (W/L) to convert CT images into grayscale images;

步骤二:图像边缘检测,计算像素在不同边缘检测算子下的梯度值作为该像素的特征,形成像素特征向量;Step 2: Image edge detection, calculate the gradient value of the pixel under different edge detection operators as the feature of the pixel, and form a pixel feature vector;

步骤三:构建网络模型,提取训练数据集,训练网络模型,该网络以一对像素特征向量为输入,以两像素的关联度系数为输出;Step 3: constructing a network model, extracting a training data set, and training a network model, the network takes a pair of pixel feature vectors as input, and takes the correlation coefficient of two pixels as output;

步骤四:分割,将训练好的卷积神经网络模型作为区域生长算法的生长准则,利用鼠标点击肝脏区域产生初始分割结果,利用形态学方法进行填充孔洞得到最终结果。Step 4: Segmentation, using the trained convolutional neural network model as the growth criterion of the region growth algorithm, using the mouse to click the liver region to generate the initial segmentation result, and using the morphological method to fill the holes to obtain the final result.

所述步骤一中的具体情况如下:The specific situation in the step 1 is as follows:

(1)提取切片:(1) Extract slices:

数据集包括原始CT图像和分割标签,在标签图像中,专业人员已经将13个腹部器官与数字一一对应,其中肝脏对应的数字为6。切片T满足:Start+5 < T <End-5。其中Start表示标签图像序列集中最早出现数字6的序列号,End表示标签图像序列集中最后出现数字6的序列号;The dataset includes raw CT images and segmentation labels. In the label images, professionals have assigned 13 abdominal organs to numbers one-to-one, of which the liver corresponds to a number 6. Slice T satisfies: Start+5 < T <End-5. Among them, Start represents the serial number of the earliest number 6 in the label image sequence set, and End represents the serial number of the last number 6 in the label image sequence set;

(2)图像转换:(2) Image conversion:

使用Window-Leveling(W/L)窗口算法处理后该像素点的值g(i)为:The value g(i) of the pixel after processing using the Window-Leveling (W/L) window algorithm is:

Figure RE-206009DEST_PATH_IMAGE001
Figure RE-206009DEST_PATH_IMAGE001

其中:

Figure RE-335508DEST_PATH_IMAGE002
Figure RE-773442DEST_PATH_IMAGE003
,肝脏组织的CT值通常位于50~250之间,取ww=200,wl=150。in:
Figure RE-335508DEST_PATH_IMAGE002
,
Figure RE-773442DEST_PATH_IMAGE003
, the CT value of liver tissue is usually between 50 and 250, take ww=200, wl=150.

所述步骤二中的具体情况如下:The specific situation in the second step is as follows:

对图像分别进行Sobel算子、Roberts算子、Canny算子、Gabor算子、Sobel_h算子、 Sobel_v算子、Robert_neg_diag算子滤波,得到的值作为该像素的特征值,形成像素特征向 量:

Figure RE-194059DEST_PATH_IMAGE004
,其中
Figure RE-604312DEST_PATH_IMAGE005
为该像素的灰度值。 The image is filtered by the Sobel operator, Roberts operator, Canny operator, Gabor operator, Sobel_h operator, Sobel_v operator, and Robert_neg_diag operator respectively, and the obtained value is used as the eigenvalue of the pixel to form a pixel eigenvector:
Figure RE-194059DEST_PATH_IMAGE004
,in
Figure RE-604312DEST_PATH_IMAGE005
is the grayscale value of the pixel.

所述步骤三中的具体情况如下:The specific situation in the third step is as follows:

(1)提取数据:(1) Extract data:

限定取值区域,肝脏边界向外10像素城市街区距离以内:Limit the value area, within 10 pixels of the city block distance from the liver boundary:

Figure RE-452182DEST_PATH_IMAGE006
Figure RE-452182DEST_PATH_IMAGE006

区域包含两部分:肝脏内部区域和肝脏外10像素距离区域。在区域内任意选取两像素 组合配对,形成神经网络的一个输入样本X,

Figure RE-377413DEST_PATH_IMAGE007
对应的输出标签Y, The region contains two parts: the inner region of the liver and the region outside the liver with a distance of 10 pixels. Arbitrarily select two pixel combinations in the area to form an input sample X of the neural network,
Figure RE-377413DEST_PATH_IMAGE007
The corresponding output label Y,

Figure RE-788671DEST_PATH_IMAGE008
Figure RE-788671DEST_PATH_IMAGE008

(2) 训练网络模型(2) Train the network model

网络模型最后层级使用sigmoid激活函数,将输出值

Figure RE-115748DEST_PATH_IMAGE009
归一化到(0,1)之间,表示输入两像素属于同一区域的概率:
Figure RE-400098DEST_PATH_IMAGE010
,其中Z表示未激活前的输出值;使用二元交叉熵函数(binary cross entropy)作为网络的损失函数:The final layer of the network model uses the sigmoid activation function to output the value
Figure RE-115748DEST_PATH_IMAGE009
Normalized to (0, 1), indicating the probability that the input two pixels belong to the same region:
Figure RE-400098DEST_PATH_IMAGE010
, where Z represents the output value before activation; the binary cross entropy function is used as the loss function of the network:

Figure RE-750308DEST_PATH_IMAGE011
Figure RE-750308DEST_PATH_IMAGE011

只有当

Figure RE-512728DEST_PATH_IMAGE009
Figure RE-694311DEST_PATH_IMAGE012
相等时,loss才为0,否则loss就是个正数,且概率相差越大,loss就越大。only when
Figure RE-512728DEST_PATH_IMAGE009
and
Figure RE-694311DEST_PATH_IMAGE012
When they are equal, the loss is 0, otherwise the loss is a positive number, and the greater the probability difference, the greater the loss.

所述步骤四中的具体情况如下:The specific situation in the fourth step is as follows:

(1)将训练好的卷积神经网络模型作为区域生长算法的生长准则,在判断种子像素时,f1四邻域里像素f2是否合并到种子像素所代表的生长区域中时,将f1、f2作神经网络的输入,得到输出结果y,当y>0.9时,合并;反之不合并。重复执行该步骤,直到所有种子像素四领域内的像素无满足条件的;初始的种子像素通过鼠标点击选取;(1) The trained convolutional neural network model is used as the growth criterion of the region growth algorithm. When judging the seed pixel, when the pixel f 2 in the four neighborhoods of f 1 is merged into the growth region represented by the seed pixel, the f 1 , f 2 are used as the input of the neural network, and the output result y ' is obtained. When y ' > 0.9, they are merged; otherwise, they are not merged. Repeat this step until all the pixels in the four fields of seed pixels do not meet the conditions; the initial seed pixels are selected by mouse click;

(2)由于肝脏组织中包含血管和肿瘤等,分割结果中的肝脏区域存在孔洞。形态学填充孔洞的基本原理为:

Figure RE-336513DEST_PATH_IMAGE013
,其中
Figure RE-236336DEST_PATH_IMAGE014
是孔洞填充的起始点,B是用来填充孔洞的结构元素,
Figure RE-802447DEST_PATH_IMAGE015
是A的补集。对公式不断进行迭代计算,直到
Figure RE-838536DEST_PATH_IMAGE016
,最终的填充结果是
Figure RE-402372DEST_PATH_IMAGE017
和边界的并集,即最终分割结果。(2) Since the liver tissue contains blood vessels and tumors, there are holes in the liver region in the segmentation result. The basic principle of morphological filling of holes is:
Figure RE-336513DEST_PATH_IMAGE013
,in
Figure RE-236336DEST_PATH_IMAGE014
is the starting point for hole filling, B is the structural element used to fill the hole,
Figure RE-802447DEST_PATH_IMAGE015
is the complement of A. Iteratively calculate the formula until
Figure RE-838536DEST_PATH_IMAGE016
, the final filling result is
Figure RE-402372DEST_PATH_IMAGE017
and the union of the boundaries, that is, the final segmentation result.

本发明还包括这样一些特征:The present invention also includes such features:

相比较传统的区域生长算法的生长规则,只比较相邻像素灰度值这单一维度;本文通过神经网络统筹考虑像素的灰度值、空间信息、不同梯度值等多种信息作为生长规则,提高了算法的稳定性,增强了算法对边缘复杂结构的处理能力。虽然只对肝脏附近区域内像素进行训练,但本发明也能有效对未训练区域进行分割。Compared with the growth rules of the traditional region growing algorithm, only the single dimension of the gray value of adjacent pixels is compared. In this paper, the gray value, spatial information, different gradient values and other information of pixels are considered as the growth rules through the neural network. The stability of the algorithm is improved, and the processing ability of the algorithm to the complex structure of the edge is enhanced. Although only the pixels in the area near the liver are trained, the present invention can also effectively segment the untrained area.

相比较其他交互式方法,本发明交互方式操作简单,分割结果边缘更精细。本发明适应于内部结构单一的医疗图像分割,对于语义复杂的自然图像分割效果不太明显。Compared with other interactive methods, the interactive mode of the present invention is simple to operate, and the edge of the segmentation result is finer. The present invention is suitable for medical image segmentation with a single internal structure, and has less obvious effect on natural image segmentation with complex semantics.

附图说明Description of drawings

图1为本发明的方法流程图Fig. 1 is the method flow chart of the present invention

图2为一维卷积神经网络架构图Figure 2 is a one-dimensional convolutional neural network architecture diagram

具体实施方式Detailed ways

对于本领域技术人员来说,附图中某些公知结构及其说明可能省略是可以理解的。下面结合附图和实现步骤对本发明作进一步的描述。It will be understood by those skilled in the art that some well-known structures and their descriptions may be omitted from the drawings. The present invention will be further described below in conjunction with the accompanying drawings and implementation steps.

本发明提出一种基于一维卷积神经网络改进的区域生长算法对肝脏CT图像进行交互式分割,通过神经网络统筹考虑像素的灰度值、空间信息、不同梯度值等多种信息作为生长规则,提高了区域生长法的稳定性,增强了算法对边缘复杂结构的分割能力。The present invention proposes an improved region growing algorithm based on one-dimensional convolutional neural network to interactively segment liver CT images, and comprehensively considers pixel gray value, spatial information, different gradient values and other information as growth rules through the neural network , which improves the stability of the region growing method and enhances the algorithm's ability to segment complex edge structures.

图1为本发明的方法流程图,首先是图像预处理,提取CT图像序列集中含有肝脏的切片,使用窗口算法将CT图像转化为灰度图像;然后是图像边缘检测,计算像素在不同边缘检测算子下的梯度值作为该像素的特征,形成像素特征向量;接下来是构建网络模型,提取训练数据集,训练网络模型;最后是分割,将训练好的卷积神经网络模型作为区域生长算法的生长准则,利用鼠标点击肝脏区域产生初始分割结果,利用形态学方法进行填充孔洞得到最终结果。Fig. 1 is the flow chart of the method of the present invention, first is image preprocessing, extracts slices containing liver in CT image sequence set, uses window algorithm to transform CT image into grayscale image; Then is image edge detection, calculates pixel to detect at different edges The gradient value under the operator is used as the feature of the pixel to form the pixel feature vector; the next step is to build a network model, extract the training data set, and train the network model; the last step is segmentation, using the trained convolutional neural network model as the region growing algorithm The growth criterion was used to generate the initial segmentation results by clicking the liver region with the mouse, and the morphological method was used to fill the holes to obtain the final results.

具体的实现步骤为:The specific implementation steps are:

Step1.1 提取切片:Step1.1 Extract slices:

数据集包括原始CT图像和分割标签,在标签图像中,专业人员已经将13个腹部器官与数字一一对应,其中肝脏对应的数字为6。切片T满足:Start+5 < T <End-5。其中Start表示标签图像序列集中最早出现数字6的序列号,End表示标签图像序列集中最后出现数字6的序列号;The dataset includes raw CT images and segmentation labels. In the label images, professionals have assigned 13 abdominal organs to numbers one-to-one, of which the liver corresponds to a number 6. Slice T satisfies: Start+5 < T <End-5. Among them, Start represents the serial number of the earliest number 6 in the label image sequence set, and End represents the serial number of the last number 6 in the label image sequence set;

Step1.2 图像转换: Step1.2 Image conversion:

使用Window-Leveling(W/L)窗口算法处理后该像素点的值g(i)为:The value g(i) of the pixel after processing using the Window-Leveling (W/L) window algorithm is:

Figure RE-789491DEST_PATH_IMAGE018
Figure RE-789491DEST_PATH_IMAGE018

其中:

Figure RE-893714DEST_PATH_IMAGE002
Figure RE-236839DEST_PATH_IMAGE003
,肝脏组织的CT值通常位于50~250之间,取ww=200,wl=150。in:
Figure RE-893714DEST_PATH_IMAGE002
,
Figure RE-236839DEST_PATH_IMAGE003
, the CT value of liver tissue is usually between 50 and 250, take ww=200, wl=150.

Step2对图像分别进行Sobel算子、Roberts算子、Canny算子、Gabor算子、Sobel_h 算子、Sobel_v算子、Robert_neg_diag算子滤波,得到的值作为该像素的特征值,形成像素 特征向量:

Figure RE-33894DEST_PATH_IMAGE004
,其中
Figure RE-642730DEST_PATH_IMAGE005
为该像素的灰度值。 Step2 filter the image with Sobel operator, Roberts operator, Canny operator, Gabor operator, Sobel_h operator, Sobel_v operator, Robert_neg_diag operator respectively, and the obtained value is used as the feature value of the pixel to form the pixel feature vector:
Figure RE-33894DEST_PATH_IMAGE004
,in
Figure RE-642730DEST_PATH_IMAGE005
is the grayscale value of the pixel.

Step3.1 提取数据:Step3.1 Extract data:

限定取值区域,肝脏边界向外10像素城市街区距离以内:Limit the value area, within 10 pixels of the city block distance from the liver boundary:

Figure RE-753905DEST_PATH_IMAGE006
Figure RE-753905DEST_PATH_IMAGE006

区域包含两部分:肝脏内部区域和肝脏外10像素距离区域。在区域内任意选取两像素 组合配对,形成神经网络的一个输入样本X,

Figure RE-764587DEST_PATH_IMAGE007
对应的输出标签Y, The region contains two parts: the inner region of the liver and the region outside the liver with a distance of 10 pixels. Arbitrarily select two pixel combinations in the area to form an input sample X of the neural network,
Figure RE-764587DEST_PATH_IMAGE007
The corresponding output label Y,

Figure RE-732543DEST_PATH_IMAGE008
Figure RE-732543DEST_PATH_IMAGE008

Step3.2 训练网络模型:Step3.2 Train the network model:

网络模型最后层级使用sigmoid激活函数,将输出值

Figure RE-15625DEST_PATH_IMAGE009
归一化到(0,1)之间,表示输入两像素属于同一区域的概率:
Figure RE-461650DEST_PATH_IMAGE019
,其中Z表示未激活前的输出值;使用二元交叉熵函数(binary cross entropy)作为网络的损失函数:The final layer of the network model uses the sigmoid activation function to output the value
Figure RE-15625DEST_PATH_IMAGE009
Normalized to (0, 1), indicating the probability that the input two pixels belong to the same region:
Figure RE-461650DEST_PATH_IMAGE019
, where Z represents the output value before activation; use the binary cross entropy function as the loss function of the network:

Figure RE-592417DEST_PATH_IMAGE020
Figure RE-592417DEST_PATH_IMAGE020

只有当

Figure RE-668958DEST_PATH_IMAGE009
Figure RE-252386DEST_PATH_IMAGE012
相等时,loss才为0,否则loss就是个正数,且概率相差越大,loss就越大。only when
Figure RE-668958DEST_PATH_IMAGE009
and
Figure RE-252386DEST_PATH_IMAGE012
When they are equal, the loss is 0, otherwise the loss is a positive number, and the greater the probability difference, the greater the loss.

Step4.1将训练好的卷积神经网络模型作为区域生长算法的生长准则,在判断种子像素时,f1四邻域里像素f2是否合并到种子像素所代表的生长区域中时,将f1、f2作神经网络的输入,得到输出结果y,当y>0.9时,合并;反之不合并。重复执行该步骤,直到所有种子像素四领域内的像素无满足条件的;初始的种子像素通过鼠标点击选取;Step4.1 Use the trained convolutional neural network model as the growth criterion of the region growth algorithm. When judging the seed pixel, when the pixel f 2 in the four neighborhoods of f 1 is merged into the growth region represented by the seed pixel, the f 1 , f 2 are used as the input of the neural network, and the output result y ' is obtained. When y ' > 0.9, they are merged; otherwise, they are not merged. Repeat this step until all the pixels in the four fields of seed pixels do not meet the conditions; the initial seed pixels are selected by mouse click;

Step4.2由于肝脏组织中包含血管和肿瘤等,分割结果中的肝脏区域存在孔洞。形态学填充孔洞的基本原理为:

Figure RE-502101DEST_PATH_IMAGE013
,其中
Figure RE-674326DEST_PATH_IMAGE014
是孔洞填充的起始点,B是用来填充孔洞的结构元素,
Figure RE-984084DEST_PATH_IMAGE015
是A的补集。对公式不断进行迭代计算,直到
Figure RE-54808DEST_PATH_IMAGE016
,最终的填充结果是
Figure RE-45898DEST_PATH_IMAGE017
和边界的并集,即最终分割结果。Step4.2 Since the liver tissue contains blood vessels and tumors, there are holes in the liver area in the segmentation result. The basic principle of morphological filling of holes is:
Figure RE-502101DEST_PATH_IMAGE013
,in
Figure RE-674326DEST_PATH_IMAGE014
is the starting point for hole filling, B is the structural element used to fill the hole,
Figure RE-984084DEST_PATH_IMAGE015
is the complement of A. Iteratively calculate the formula until
Figure RE-54808DEST_PATH_IMAGE016
, the final filling result is
Figure RE-45898DEST_PATH_IMAGE017
and the union of the boundaries, that is, the final segmentation result.

图2为一维卷积神经网络架构图。本发明的神经网络架构如图2所示,类似于卷积神经网络,先进行卷积层,然后通过flatten层将二维输入一维化,过渡到全连接层,最后通过sigmoid激活函数输出常数概率值。但是网络的卷积层有所不同,使用的是一维卷积。卷积核步长为1,即每次卷积,卷积核都对应向量的一整行,相邻行之间互相独立,不进行交叉合并。Figure 2 is a one-dimensional convolutional neural network architecture diagram. The neural network architecture of the present invention is shown in Figure 2, which is similar to the convolutional neural network. First, the convolution layer is performed, and then the two-dimensional input is one-dimensionalized by the flatten layer, and then transitioned to the fully connected layer, and finally the constant is output through the sigmoid activation function. probability value. But the convolutional layers of the network are different, using one-dimensional convolutions. The step size of the convolution kernel is 1, that is, for each convolution, the convolution kernel corresponds to an entire row of the vector, and adjacent rows are independent of each other, and no cross-merging is performed.

Claims (5)

1.一种基于神经网络改进的RSG肝脏CT图像交互式分割算法,其特征在于,包括以下步骤:1. an improved RSG liver CT image interactive segmentation algorithm based on neural network, is characterized in that, comprises the following steps: Step1:图像预处理,提取CT图像序列集中含有肝脏的切片,使用窗口算法(W/L)将CT图像转化为灰度图像;Step1: Image preprocessing, extract the slices containing the liver in the CT image sequence set, and use the window algorithm (W/L) to convert the CT image into a grayscale image; Step2:图像边缘检测,计算像素在不同边缘检测算子下的梯度值作为该像素的特征,形成像素特征向量;Step2: Image edge detection, calculate the gradient value of the pixel under different edge detection operators as the feature of the pixel, and form the pixel feature vector; Step3:构建网络模型,提取训练数据集,训练网络模型,该网络以一对像素特征向量为输入,以两像素的关联度系数为输出;Step3: Build a network model, extract the training data set, and train the network model. The network takes a pair of pixel feature vectors as input, and takes the correlation coefficient of two pixels as the output; Step4:分割,将训练好的卷积神经网络模型作为区域生长算法的生长准则,利用鼠标点击肝脏区域产生初始分割结果,利用形态学方法进行填充孔洞得到最终结果。Step4: Segmentation, using the trained convolutional neural network model as the growth criterion of the region growth algorithm, using the mouse to click the liver region to generate the initial segmentation result, and using the morphological method to fill the holes to obtain the final result. 2.根据权利要求1所述的一种基于神经网络改进的RSG肝脏CT图像交互式分割算法,其特征在于,所述Step1中的具体过程如下:2. a kind of RSG liver CT image interactive segmentation algorithm based on neural network improvement according to claim 1, is characterized in that, the concrete process in described Step1 is as follows: Step1.1 提取切片:Step1.1 Extract slices: 数据集包括原始CT图像和分割标签,在标签图像中,专业人员已经将13个腹部器官与数字一一对应,其中肝脏对应的数字为6;切片T满足:Start+5 < T <End-5,其中Start表示标签图像序列集中最早出现数字6的序列号,End表示标签图像序列集中最后出现数字6的序列号;The dataset includes original CT images and segmentation labels. In the label images, professionals have mapped 13 abdominal organs to numbers, among which the number corresponding to liver is 6; slice T satisfies: Start+5 < T <End-5 , where Start represents the serial number of the earliest number 6 in the label image sequence set, and End represents the serial number of the last number 6 in the label image sequence set; Step1.2 图像转换:Step1.2 Image conversion: 使用Window-Leveling(W/L)窗口算法处理后该像素点的值g(i)为:The value g(i) of the pixel after processing using the Window-Leveling (W/L) window algorithm is:
Figure 586300DEST_PATH_IMAGE001
Figure 586300DEST_PATH_IMAGE001
其中:
Figure 503440DEST_PATH_IMAGE002
Figure 220861DEST_PATH_IMAGE003
,肝脏组织的CT值通常位于50~250之间,取ww=200,wl=150。
in:
Figure 503440DEST_PATH_IMAGE002
,
Figure 220861DEST_PATH_IMAGE003
, the CT value of liver tissue is usually between 50 and 250, take ww=200, wl=150.
3.根据权利要求1所述的一种基于神经网络改进的RSG肝脏CT图像交互式分割算法,其特征在于,所述Step2中的具体过程如下:3. a kind of RSG liver CT image interactive segmentation algorithm based on neural network improvement according to claim 1, is characterized in that, the concrete process in described Step2 is as follows: Step2 对图像分别进行Sobel算子、Roberts算子、Canny算子、Gabor算子、Sobel_h算子、Sobel_v算子、Robert_neg_diag算子滤波,得到的值作为该像素的特征值,形成像素特征向量:
Figure 616070DEST_PATH_IMAGE004
,其中
Figure 430442DEST_PATH_IMAGE005
为该像素的灰度值。
Step2 Filter the image with Sobel operator, Roberts operator, Canny operator, Gabor operator, Sobel_h operator, Sobel_v operator, Robert_neg_diag operator respectively, and the obtained value is used as the eigenvalue of the pixel to form the pixel eigenvector:
Figure 616070DEST_PATH_IMAGE004
,in
Figure 430442DEST_PATH_IMAGE005
is the grayscale value of the pixel.
4.根据权利要求1所述的一种基于神经网络改进的RSG肝脏CT图像交互式分割算法,其特征在于,所述Step3中的具体过程如下:4. a kind of RSG liver CT image interactive segmentation algorithm based on neural network improvement according to claim 1, is characterized in that, the concrete process in described Step3 is as follows: Step3.1 提取数据:Step3.1 Extract data: 限定取值区域,肝脏边界向外10像素城市街区距离以内:Limit the value area, within 10 pixels of the city block distance from the liver boundary:
Figure 439855DEST_PATH_IMAGE006
Figure 439855DEST_PATH_IMAGE006
区域包含两部分:肝脏内部区域和肝脏外10像素距离区域;在区域内任意选取两像素组合配对,形成神经网络的一个输入样本X,
Figure 706889DEST_PATH_IMAGE007
对应的输出标签Y,
The area consists of two parts: the inner area of the liver and the area with a distance of 10 pixels outside the liver; two pixel combinations are randomly selected in the area to form an input sample X of the neural network,
Figure 706889DEST_PATH_IMAGE007
The corresponding output label Y,
Figure 905789DEST_PATH_IMAGE008
Figure 905789DEST_PATH_IMAGE008
Step3.2 训练网络模型:Step3.2 Train the network model: 网络模型最后层级使用sigmoid激活函数,将输出值
Figure 512351DEST_PATH_IMAGE009
归一化到(0,1)之间,表示输入两像素属于同一区域的概率:
Figure 505715DEST_PATH_IMAGE010
,其中Z表示未激活前的输出值;使用二元交叉熵函数(binary cross entropy)作为网络的损失函数:
The final layer of the network model uses the sigmoid activation function to output the value
Figure 512351DEST_PATH_IMAGE009
Normalized to (0, 1), indicating the probability that the input two pixels belong to the same region:
Figure 505715DEST_PATH_IMAGE010
, where Z represents the output value before activation; use the binary cross entropy function as the loss function of the network:
Figure 260044DEST_PATH_IMAGE011
Figure 260044DEST_PATH_IMAGE011
只有当
Figure 184006DEST_PATH_IMAGE009
Figure 707392DEST_PATH_IMAGE012
相等时,loss才为0,否则loss就是个正数,且概率相差越大,loss就越大。
only when
Figure 184006DEST_PATH_IMAGE009
and
Figure 707392DEST_PATH_IMAGE012
When they are equal, the loss is 0, otherwise the loss is a positive number, and the greater the probability difference, the greater the loss.
5.根据权利要求1所述的一种基于神经网络改进的RSG肝脏CT图像交互式分割算法,其特征在于,所述Step4中的具体过程如下:5. a kind of RSG liver CT image interactive segmentation algorithm based on neural network improvement according to claim 1, is characterized in that, the concrete process in described Step4 is as follows: Step4.1将训练好的卷积神经网络模型作为区域生长算法的生长准则,在判断种子像素时,f1四邻域里像素f2是否合并到种子像素所代表的生长区域中时,将f1、f2作神经网络的输入,得到输出结果y,当y>0.9时,合并;反之不合并;重复执行该步骤,直到所有种子像素四领域内的像素无满足条件的;初始的种子像素通过鼠标点击选取;Step4.1 Use the trained convolutional neural network model as the growth criterion of the region growth algorithm. When judging the seed pixel, when the pixel f 2 in the four neighborhoods of f 1 is merged into the growth region represented by the seed pixel, the f 1 , f 2 are used as the input of the neural network, and the output result y ' is obtained. When y ' > 0.9, merge; otherwise, do not merge; repeat this step until all the pixels in the four fields of the seed pixels do not meet the conditions; the initial seed Pixels are selected by mouse click; Step4.2由于肝脏组织中包含血管和肿瘤等,分割结果中的肝脏区域存在孔洞;形态学填充孔洞的基本原理为:
Figure 137236DEST_PATH_IMAGE013
,其中
Figure 316545DEST_PATH_IMAGE014
是孔洞填充的起始点,B是用来填充孔洞的结构元素,
Figure 591668DEST_PATH_IMAGE015
是A的补集;对公式不断进行迭代计算,直到
Figure 235139DEST_PATH_IMAGE016
,最终的填充结果是
Figure 751397DEST_PATH_IMAGE017
和边界的并集,即最终分割结果。
Step4.2 Since the liver tissue contains blood vessels and tumors, there are holes in the liver area in the segmentation result; the basic principle of morphological filling of holes is:
Figure 137236DEST_PATH_IMAGE013
,in
Figure 316545DEST_PATH_IMAGE014
is the starting point for hole filling, B is the structural element used to fill the hole,
Figure 591668DEST_PATH_IMAGE015
is the complement of A; iteratively computes the formula until
Figure 235139DEST_PATH_IMAGE016
, the final filling result is
Figure 751397DEST_PATH_IMAGE017
and the union of the boundaries, that is, the final segmentation result.
CN202010907881.0A 2020-09-02 2020-09-02 RSG liver CT image interactive segmentation algorithm based on neural network improvement Active CN111986216B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010907881.0A CN111986216B (en) 2020-09-02 2020-09-02 RSG liver CT image interactive segmentation algorithm based on neural network improvement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010907881.0A CN111986216B (en) 2020-09-02 2020-09-02 RSG liver CT image interactive segmentation algorithm based on neural network improvement

Publications (2)

Publication Number Publication Date
CN111986216A true CN111986216A (en) 2020-11-24
CN111986216B CN111986216B (en) 2024-01-12

Family

ID=73448212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010907881.0A Active CN111986216B (en) 2020-09-02 2020-09-02 RSG liver CT image interactive segmentation algorithm based on neural network improvement

Country Status (1)

Country Link
CN (1) CN111986216B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177953A (en) * 2021-04-27 2021-07-27 平安科技(深圳)有限公司 Liver region segmentation method, liver region segmentation device, electronic device, and storage medium
CN114693927A (en) * 2022-03-25 2022-07-01 西安交通大学 An interactive image segmentation method and system based on internal and external guidance
CN117744232A (en) * 2024-02-19 2024-03-22 中铁十六局集团第一工程有限公司 Concrete pouring method for beam joints of steel reinforced concrete columns

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106056596A (en) * 2015-11-30 2016-10-26 浙江德尚韵兴图像科技有限公司 Fully-automatic three-dimensional liver segmentation method based on local apriori information and convex optimization
CN106127819A (en) * 2016-06-30 2016-11-16 上海联影医疗科技有限公司 Medical image extracts method and the device thereof of vessel centerline
CN107016683A (en) * 2017-04-07 2017-08-04 衢州学院 The level set hippocampus image partition method initialized based on region growing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106056596A (en) * 2015-11-30 2016-10-26 浙江德尚韵兴图像科技有限公司 Fully-automatic three-dimensional liver segmentation method based on local apriori information and convex optimization
CN106127819A (en) * 2016-06-30 2016-11-16 上海联影医疗科技有限公司 Medical image extracts method and the device thereof of vessel centerline
CN107016683A (en) * 2017-04-07 2017-08-04 衢州学院 The level set hippocampus image partition method initialized based on region growing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SUHAS G. SAPATE ET AL.: "Radiomics based detection and characterization of suspicious lesions on full field digital mammograms", 《COMPUTER METHODS AND PROGRAMS IN BIOMEDICINE》 *
任志淼: "基于全卷积神经网络和动态自适应区域 生长法的红外图像目标分割方法", 《光电技术及应用》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177953A (en) * 2021-04-27 2021-07-27 平安科技(深圳)有限公司 Liver region segmentation method, liver region segmentation device, electronic device, and storage medium
CN113177953B (en) * 2021-04-27 2024-04-26 平安科技(深圳)有限公司 Liver region segmentation method, liver region segmentation device, electronic equipment and storage medium
CN114693927A (en) * 2022-03-25 2022-07-01 西安交通大学 An interactive image segmentation method and system based on internal and external guidance
CN117744232A (en) * 2024-02-19 2024-03-22 中铁十六局集团第一工程有限公司 Concrete pouring method for beam joints of steel reinforced concrete columns
CN117744232B (en) * 2024-02-19 2024-05-14 中铁十六局集团第一工程有限公司 Concrete pouring method for beam joints of steel reinforced concrete columns

Also Published As

Publication number Publication date
CN111986216B (en) 2024-01-12

Similar Documents

Publication Publication Date Title
US11379985B2 (en) System and computer-implemented method for segmenting an image
CN109035252B (en) A kind of super-pixel method towards medical image segmentation
CN109584254B (en) Heart left ventricle segmentation method based on deep full convolution neural network
Li et al. Vessels as 4-D curves: Global minimal 4-D paths to extract 3-D tubular surfaces and centerlines
CN110120033A (en) Based on improved U-Net neural network three-dimensional brain tumor image partition method
CN107644420B (en) Vascular image segmentation method and MRI system based on centerline extraction
CN104794708B (en) A kind of atherosclerotic plaque ingredient dividing method based on multiple features study
Qian et al. An integrated method for atherosclerotic carotid plaque segmentation in ultrasound image
WO2019000455A1 (en) Method and system for segmenting image
WO2022213654A1 (en) Ultrasonic image segmentation method and apparatus, terminal device, and storage medium
Wang et al. Annotation-efficient learning for medical image segmentation based on noisy pseudo labels and adversarial learning
CN107680110B (en) Three-dimensional level set segmentation method of inner ear based on statistical shape model
CN110276736A (en) A Method of Magnetic Resonance Image Fusion Based on Weight Prediction Network
CN111986216A (en) RSG liver CT image interactive segmentation algorithm based on neural network improvement
CN102622750A (en) Stomach computed tomography (CT) sequence image segmentation method based on interactive region growth
CN107424145A (en) The dividing method of nuclear magnetic resonance image based on three-dimensional full convolutional neural networks
CN112419320B (en) Cross-modal cardiac segmentation method based on SAM and multi-layer UDA
CN110163872A (en) A kind of method and electronic equipment of HRMR image segmentation and three-dimensional reconstruction
Kuo et al. Nested graph cut for automatic segmentation of high-frequency ultrasound images of the mouse embryo
CN114972362A (en) Medical image automatic segmentation method and system based on RMAU-Net network
CN115830016A (en) Medical image registration model training method and equipment
CN112150564B (en) Medical image fusion algorithm based on deep convolution neural network
CN103839048B (en) Stomach CT image lymph gland recognition system and method based on low-rank decomposition
CN109285176B (en) A brain tissue segmentation method based on regularized graph cuts
CN115439650A (en) Kidney ultrasound image segmentation method based on cross-modal transfer learning of CT images

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
TA01 Transfer of patent application right

Effective date of registration: 20231207

Address after: No. 333 Wuxi Avenue, Wuxi City, Jiangsu Province, 214000

Applicant after: Wuxi University

Address before: 130012 No. 2055 Yan'an Street, Chaoyang District, Changchun City, Jilin Province

Applicant before: Changchun University of Technology

GR01 Patent grant
GR01 Patent grant