[go: up one dir, main page]

CN109363699B - A method and device for identifying breast imaging lesions - Google Patents

A method and device for identifying breast imaging lesions Download PDF

Info

Publication number
CN109363699B
CN109363699B CN201811203383.7A CN201811203383A CN109363699B CN 109363699 B CN109363699 B CN 109363699B CN 201811203383 A CN201811203383 A CN 201811203383A CN 109363699 B CN109363699 B CN 109363699B
Authority
CN
China
Prior art keywords
breast
image
feature
images
convolution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811203383.7A
Other languages
Chinese (zh)
Other versions
CN109363699A (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.)
Hangzhou Shenrui Health Technology Co.,Ltd.
Original Assignee
Hangzhou Yitu Healthcare Technology Co ltd
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 Hangzhou Yitu Healthcare Technology Co ltd filed Critical Hangzhou Yitu Healthcare Technology Co ltd
Priority to CN201811203383.7A priority Critical patent/CN109363699B/en
Publication of CN109363699A publication Critical patent/CN109363699A/en
Application granted granted Critical
Publication of CN109363699B publication Critical patent/CN109363699B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B6/00Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
    • A61B6/52Devices using data or image processing specially adapted for radiation diagnosis
    • A61B6/5211Devices using data or image processing specially adapted for radiation diagnosis involving processing of medical diagnostic data
    • A61B6/5217Devices using data or image processing specially adapted for radiation diagnosis involving processing of medical diagnostic data extracting a diagnostic or physiological parameter from medical diagnostic data
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B6/00Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
    • A61B6/50Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment specially adapted for specific body parts; specially adapted for specific clinical applications
    • A61B6/502Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment specially adapted for specific body parts; specially adapted for specific clinical applications for diagnosis of breast, i.e. mammography

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Medical Informatics (AREA)
  • Radiology & Medical Imaging (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • High Energy & Nuclear Physics (AREA)
  • Veterinary Medicine (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Optics & Photonics (AREA)
  • Pathology (AREA)
  • Public Health (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Physics & Mathematics (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Physiology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Dentistry (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Apparatus For Radiation Diagnosis (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention provides a method and a device for identifying a breast image focus, which relate to the technical field of machine learning, and the method comprises the following steps: acquiring a mammary gland image; the breast images include breast images of different projection positions of different ipsilateral breasts; inputting the mammary gland image into a feature extraction module to obtain feature images of different sizes of the mammary gland image; inputting the breast image of the breast on the other side of the same projection position of the breast image as a reference image of the breast image into the feature extraction module to obtain reference feature images with different sizes; determining a breast lesion identification frame according to the characteristic image and the reference characteristic image; and determining the breast focus of the breast image according to the breast focus identification frame determined from each characteristic image.

Description

一种乳腺影像病灶识别的方法及装置Method and device for identifying breast imaging lesions

技术领域technical field

本发明实施例涉及机器学习技术领域,尤其涉及一种乳腺影像病灶识别的方法及装置。Embodiments of the present invention relate to the technical field of machine learning, and in particular, to a method and device for identifying breast imaging lesions.

背景技术Background technique

目前,乳腺影像可以利用低剂量的X光检查人类的乳房,它能侦测各种乳房肿瘤、囊肿等病灶,有助于早期发现乳癌,并降低其死亡率。乳腺影像是一种有效的检测方法,可以用于诊断多种女性乳腺相关的疾病。当然,其中最主要的使用还是在乳腺癌,尤其是早期乳腺癌的筛查上。因此若能有效的检测出乳腺影像上各种乳腺癌早期表现,对医生的帮助是巨大的。At present, breast imaging can use low-dose X-rays to examine human breasts, which can detect various breast tumors, cysts and other lesions, help early detection of breast cancer, and reduce its mortality. Breast imaging is an effective test that can be used to diagnose a variety of breast-related diseases in women. Of course, the most important use is in the screening of breast cancer, especially early breast cancer. Therefore, if the early manifestations of breast cancer on breast images can be effectively detected, it will be of great help to doctors.

当患者拍摄乳腺影像之后,医生通过个人经验判断乳腺影像中的病灶,该方法效率较低,并且存在较大的主观性。After a patient takes a breast image, the doctor judges the lesions in the breast image through personal experience. This method is inefficient and has greater subjectivity.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种乳腺影像病灶识别的方法及装置,用于解决现有技术中通过医生经验判断乳腺影像中乳腺病灶的方法效率低的问题。Embodiments of the present invention provide a method and device for identifying breast lesions in breast images, which are used to solve the problem of low efficiency in the prior art method for judging breast lesions in breast images based on doctor's experience.

本发明实施例提供一种乳腺影像病灶识别的方法,包括:An embodiment of the present invention provides a method for identifying breast imaging lesions, including:

获取乳腺影像;所述乳腺影像包括不同侧乳房的不同投照位的乳腺影像;acquiring breast images; the breast images include breast images of different projection positions of different breasts;

将所述乳腺影像输入至特征提取模块中,获取所述乳腺影像不同尺寸的特征图像;Inputting the breast image into a feature extraction module to obtain feature images of different sizes of the breast image;

将所述乳腺影像的同一投照位的另一侧乳房的乳腺影像作为所述乳腺影像的参考影像,输入至所述特征提取模块,获得不同尺寸的参考特征图像;Taking the breast image of the other side of the breast at the same projection position of the breast image as the reference image of the breast image, and inputting it to the feature extraction module to obtain reference feature images of different sizes;

根据所述特征图像和所述参考特征图像,确定乳腺病灶识别框;determining a breast lesion identification frame according to the feature image and the reference feature image;

根据从各特征图像中确定出的乳腺病灶识别框,确定乳腺影像的乳腺病灶。According to the identification frame of breast lesions determined from each feature image, the breast lesions of the breast image are determined.

一种可能的实现方式,所述根据所述特征图像和所述参考特征图像,确定乳腺病灶识别框,包括:A possible implementation manner, the determining a breast lesion identification frame according to the feature image and the reference feature image includes:

确定所述特征图像中的第一乳腺病灶识别框和所述参考特征图像中的第二乳腺病灶识别框;determining a first breast lesion identification frame in the feature image and a second breast lesion identification frame in the reference feature image;

若确定所述第一乳腺病灶识别框和所述第二乳腺病灶识别框的位置和/或大小都相同,则删除所述第一乳腺病灶识别框。If it is determined that the positions and/or sizes of the first breast lesion identification frame and the second breast lesion identification frame are the same, the first breast lesion identification frame is deleted.

一种可能的实现方式,所述特征提取模块包括N个卷积模块;所述N个卷积模块为下采样卷积块或上采样卷积块;每个下采样卷积块或上采样卷积块提取的特征图像的尺寸均不同,所述N个卷积模块的每个卷积模块中包括第一卷积层、第二卷积层;所述第一卷积层输出的特征图像的个数小于所述第一卷积层输入的特征图像的个数;所述第二卷积层输出的特征图像的个数大于所述第一卷积层输入的特征图像的个数;N大于0;A possible implementation, the feature extraction module includes N convolution modules; the N convolution modules are down-sampling convolution blocks or up-sampling convolution blocks; each down-sampling convolution block or up-sampling volume The size of the feature images extracted by the block is different, and each convolution module of the N convolution modules includes a first convolution layer and a second convolution layer; the feature images output by the first convolution layer are The number is less than the number of feature images input by the first convolution layer; the number of feature images output by the second convolution layer is greater than the number of feature images input by the first convolution layer; N is greater than 0;

针对所述乳腺影像的不同尺寸的特征图像中的任意一个特征图像,从所述特征图像中确定出乳腺病灶识别框。For any one of the feature images of different sizes of the breast image, a breast lesion identification frame is determined from the feature image.

一种可能的实现方式,所述获取所述乳腺影像的不同尺寸的特征图像,包括:A possible implementation manner, the acquiring feature images of different sizes of the breast image includes:

将所述乳腺影像依次通过N/2个下采样卷积块提取N/2个所述乳腺影像的第一特征图像;extracting N/2 first feature images of the breast images through N/2 down-sampling convolution blocks in sequence from the breast images;

将第N/2个下采样卷积块输出的第一特征图像依次通过N/2个上采样卷积块提取N/2个所述乳腺影像的第二特征图像,每个上采样卷积块提取的第二特征图像的尺寸均不同;Extracting N/2 second feature images of the mammary image from the first feature image output by the N/2th downsampling convolution block sequentially through N/2 upsampling convolution blocks, each upsampling convolution block The sizes of the extracted second feature images are all different;

将尺寸相同的第一特征图像和第二特征图像合并后,确定N个所述乳腺影像的不同尺寸的特征图像。After merging the first feature image and the second feature image with the same size, N feature images of different sizes of the breast images are determined.

一种可能的实现方式,所述神经卷积网络模型还包括特征预处理模块,所述特征预处理模块位于所述N个卷积模块之前;所述将所述乳腺影像输入至特征提取模块中,包括:A possible implementation manner, the neural convolutional network model further includes a feature preprocessing module, the feature preprocessing module is located before the N convolution modules; the breast image is input into the feature extraction module ,include:

将所述乳腺影像输入至所述特征预处理模块中,所述特征预处理模块包括一个卷积层,一个BN层,一个Relu层和一个池化层;所述特征预处理模块的卷积核大小大于所述N个卷积模块中的卷积和的大小;Input the breast image into the feature preprocessing module, the feature preprocessing module includes a convolution layer, a BN layer, a Relu layer and a pooling layer; the convolution kernel of the feature preprocessing module The size is greater than the size of the convolution sum in the N convolution modules;

或者,所述特征预处理模块包括连续的多个卷积层,一个BN层,一个Relu层和一个池化层;所述特征预处理模块的卷积核大小与所述N个卷积模块中的最大的卷积核的大小相等。Alternatively, the feature preprocessing module includes a plurality of consecutive convolutional layers, a BN layer, a Relu layer and a pooling layer; the size of the convolution kernel of the feature preprocessing module is the same as that of the N convolutional modules. The size of the largest convolution kernel is equal.

一种可能的实现方式,所述将所述乳腺影像输入至特征提取模块之前,还包括:A possible implementation manner, before the breast image is input to the feature extraction module, further comprising:

获取所述乳腺影像的原始文件;obtaining the original file of the breast image;

在所述乳腺影像的原始文件中选取至少一组窗宽窗位,并获取所述至少一组窗宽窗位对应的图片格式的乳腺影像;Selecting at least one group of window widths and window levels in the original file of the breast image, and acquiring a breast image in a picture format corresponding to the at least one group of window widths and window levels;

根据所述至少一组窗宽窗位对应的图片格式的乳腺影像,作为输入至所述特征提取模块的乳腺影像。The mammary images in the picture format corresponding to the at least one group of window widths and window levels are used as the mammary images input to the feature extraction module.

本发明实施例提供一种乳腺影像病灶识别的装置,包括:An embodiment of the present invention provides a device for identifying breast imaging lesions, including:

获取单元,用于获取乳腺影像;所述乳腺影像包括不同侧乳房的不同投照位的乳腺影像;an acquisition unit, configured to acquire breast images; the breast images include breast images of different projection positions of different breasts;

处理单元,用于将所述乳腺影像输入至特征提取模块中,获取所述乳腺影像不同尺寸的特征图像;将所述乳腺影像的同一投照位的另一侧乳房的乳腺影像作为所述乳腺影像的参考影像,输入至所述特征提取模块,获得不同尺寸的参考特征图像;根据所述特征图像和所述参考特征图像,确定乳腺病灶识别框;根据从各特征图像中确定出的乳腺病灶识别框,确定乳腺影像的乳腺病灶。a processing unit, configured to input the breast image into a feature extraction module to obtain characteristic images of different sizes of the breast image; use the breast image of the other side of the breast at the same projection position of the breast image as the breast image The reference image of the image is input to the feature extraction module to obtain reference feature images of different sizes; according to the feature image and the reference feature image, the identification frame of breast lesions is determined; according to the breast lesions determined from each feature image Recognition box to identify breast lesions on breast images.

一种可能的实现方式,所述处理单元,具体用于:A possible implementation manner, the processing unit is specifically used for:

确定所述特征图像中的第一乳腺病灶识别框和所述参考特征图像中的第二乳腺病灶识别框;若确定所述第一乳腺病灶识别框和所述第二乳腺病灶识别框的位置和/或大小都相同,则删除所述第一乳腺病灶识别框。Determine the first breast lesion identification frame in the feature image and the second breast lesion identification frame in the reference feature image; if the position and the position of the first breast lesion identification frame and the second breast lesion identification frame are determined or the same size, delete the first breast lesion identification frame.

另一方面,本发明实施例提供了一种计算设备,包括至少一个处理单元以及至少一个存储单元,其中,所述存储单元存储有计算机程序,当所述程序被所述处理单元执行时,使得所述处理单元执行上述任一项所述方法的步骤。On the other hand, an embodiment of the present invention provides a computing device, including at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the program causes the The processing unit performs the steps of any of the methods described above.

又一方面,本发明实施例提供了一种计算机可读存储介质,其存储有可由计算设备执行的计算机程序,当所述程序在所述计算设备上运行时,使得所述计算设备执行上述任一项所述方法的步骤。In another aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program executable by a computing device, and when the program runs on the computing device, causes the computing device to execute any of the above A step of the method.

本发明实施例中,由于提取乳腺影像的特征图像,并识别每一个特征图像中的乳腺,可以快速识别乳腺的病灶,提高了乳腺病灶识别的效率。In the embodiment of the present invention, since the characteristic images of breast images are extracted and the breast in each characteristic image is identified, breast lesions can be quickly identified, and the efficiency of breast lesion identification is improved.

另外,通过在卷积神经网络模型中,设置第一卷积层输出的通道数减少,且第二卷积层输出的通道数增加至第一卷积层输入的通道数,使得卷积过程中,有效的保留了图像中的有效信息,在减少参数量的同时,提高了特征图像的提取的有效性,进而提高了检测乳腺影像中乳腺病灶检出的准确性。In addition, in the convolutional neural network model, the number of channels output by the first convolution layer is set to decrease, and the number of channels output by the second convolution layer is increased to the number of channels input by the first convolution layer, so that during the convolution process , effectively retaining the effective information in the image, while reducing the amount of parameters, improving the effectiveness of feature image extraction, thereby improving the detection accuracy of breast lesions in breast images.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1a为本发明实施例提供的一种乳腺影像的示意图;1a is a schematic diagram of a breast image provided by an embodiment of the present invention;

图1b为本发明实施例提供的一种乳腺影像的示意图;FIG. 1b is a schematic diagram of a breast image provided by an embodiment of the present invention;

图1c为本发明实施例提供的一种乳腺影像的示意图;1c is a schematic diagram of a breast image provided by an embodiment of the present invention;

图1d为本发明实施例提供的一种乳腺影像的示意图;1d is a schematic diagram of a breast image provided by an embodiment of the present invention;

图2为本发明实施例提供的一种乳腺影像病灶识别的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for identifying breast imaging lesions according to an embodiment of the present invention;

图3a为本发明实施例提供的一种特征提取模块的结构示意图;3a is a schematic structural diagram of a feature extraction module provided by an embodiment of the present invention;

图3b为本发明实施例提供的一种特征提取模块的结构示意图;3b is a schematic structural diagram of a feature extraction module provided by an embodiment of the present invention;

图3c为本发明实施例提供的一种特征提取模块的结构示意图;3c is a schematic structural diagram of a feature extraction module provided by an embodiment of the present invention;

图3为本发明实施例提供的一种乳腺影像病灶识别的流程示意图;3 is a schematic flowchart of a breast imaging lesion identification according to an embodiment of the present invention;

图4为本发明实施例提供的一种乳腺影像病灶识别的流程示意图;4 is a schematic flowchart of a breast imaging lesion identification according to an embodiment of the present invention;

图5为本发明实施例提供的一种乳腺影像病灶识别的装置的结构示意图;FIG. 5 is a schematic structural diagram of a device for identifying breast imaging lesions according to an embodiment of the present invention;

图6为本发明实施例提供的一种计算设备的结构示意图。FIG. 6 is a schematic structural diagram of a computing device according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and beneficial effects of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

本发明实施例中,以乳腺X射线影像为例,进行示例性的描述,其他影像在此不再赘述。乳腺影像可以利用低剂量(约为0.7毫西弗)的X光检查人类(主要是女性)的乳房,它能侦测各种乳房肿瘤、囊肿等病灶,有助于早期发现乳癌,并降低其死亡率。有一些国家提倡年长(一般为45周岁以上)的女性定期(间隔从一年到五年不等)进行乳腺摄影,以筛检出早期的乳腺癌。乳腺影像一般包含四份X光摄像,分别为2侧乳房的2种投照位(头尾位CC,内外侧斜位MLO)的四份乳腺影像,如图1a-d所示。In this embodiment of the present invention, an X-ray mammogram is used as an example for exemplary description, and other images are not described in detail here. Breast imaging can use low-dose (about 0.7 millisievert) X-rays to examine human (mainly female) breasts, which can detect various breast tumors, cysts and other lesions, help early detection of breast cancer, and reduce its incidence. mortality rate. In some countries, older women (generally over 45 years of age) are encouraged to undergo regular mammography (at intervals ranging from one to five years) to screen for early breast cancer. Breast images generally include four X-ray images, which are four breast images of two projection positions (cephalo-caudal CC, medial-lateral oblique MLO) of two breasts, as shown in Figure 1a-d.

现有技术往往只检测钙化或者肿块这样单独类型的病灶,不能同时对多种病灶同时进行检出,应用范围狭窄。同时针对钙化这些病灶,使用的是基于图像初级特征方法,这类方法比较简单,同时检测的准确性也比较差。针对钙化、肿块、不对称性、结构扭曲等多种类型可能存在于同一病灶中,检测的准确性较差,无法满足应用要求。The existing technology often only detects a single type of lesions such as calcification or mass, and cannot detect multiple lesions at the same time, and has a narrow application range. At the same time, for these lesions of calcification, the primary image-based feature method is used, which is relatively simple, and the detection accuracy is also relatively poor. For calcification, mass, asymmetry, structural distortion and other types that may exist in the same lesion, the detection accuracy is poor and cannot meet the application requirements.

针对上述问题,本发明实施例提供一种乳腺影像病灶识别的方法,如图2所示,包括:In view of the above problems, an embodiment of the present invention provides a method for identifying breast imaging lesions, as shown in FIG. 2 , including:

步骤201:获取乳腺影像;Step 201: acquiring breast images;

步骤202:将所述乳腺影像输入至特征提取模块中,获取所述乳腺影像不同尺寸的特征图像;Step 202: Input the breast image into a feature extraction module, and obtain characteristic images of different sizes of the breast image;

一种可能的实现方式,所述特征提取模块包括N个卷积模块;所述N个卷积模块为下采样卷积块和/或上采样卷积块;每个下采样卷积块或上采样卷积块提取的特征图像的尺寸均不同,所述N个卷积模块的每个卷积模块中包括第一卷积层、第二卷积层;所述第一卷积层输出的特征图像的个数小于所述第一卷积层输入的特征图像的个数;所述第二卷积层输出的特征图像的个数大于所述第二卷积层输入的特征图像的个数;N大于0;A possible implementation, the feature extraction module includes N convolution modules; the N convolution modules are down-sampling convolution blocks and/or up-sampling convolution blocks; each down-sampling convolution block or up-sampling convolution block The sizes of the feature images extracted by the sampling convolution blocks are all different, and each convolution module of the N convolution modules includes a first convolution layer and a second convolution layer; the features output by the first convolution layer The number of images is less than the number of feature images input by the first convolution layer; the number of feature images output by the second convolution layer is greater than the number of feature images input by the second convolution layer; N is greater than 0;

举例来说,该特征提取模块可以包括三个下采样卷积块。每个卷积模块可以包括第一卷积层和第二卷积层,第一卷积层包括卷积层,与卷积层连接的归一化(BatchNormalization,BN)层、与BN层连接的激活函数层,如图3a示出的卷积模块包括第一卷积层和第二卷积层。For example, the feature extraction module may include three downsampling convolution blocks. Each convolutional module may include a first convolutional layer and a second convolutional layer, the first convolutional layer includes a convolutional layer, a normalization (BatchNormalization, BN) layer connected with the convolutional layer, and a BN layer connected with the BN layer. The activation function layer, the convolution module shown in Figure 3a, includes a first convolution layer and a second convolution layer.

为增加特征提取模块的深度,如图3b所示,一种可能的实现方式,特征图像经过卷积模块的步骤可以包括:In order to increase the depth of the feature extraction module, as shown in Figure 3b, a possible implementation manner, the steps of the feature image passing through the convolution module may include:

步骤一:将所述卷积模块输入的特征图像输入至所述第一卷积层获得第一特征图像;第一卷积层的卷积核可以为N1*m*m*N2;N1为所述卷积模块输入的特征图像的通道数,N2为第一特征图像的通道数;N1>N2;Step 1: Input the feature image input by the convolution module into the first convolution layer to obtain the first feature image; the convolution kernel of the first convolution layer can be N1*m*m*N2; The number of channels of the feature image input by the convolution module, N2 is the number of channels of the first feature image; N1>N2;

步骤二:将第一特征图像输入至所述第二卷积层获得第二特征图像;第一卷积层的卷积核可以为N2*m*m*N3;N3为第二特征图像的通道数;N3>N2;Step 2: Input the first feature image into the second convolution layer to obtain the second feature image; the convolution kernel of the first convolution layer can be N2*m*m*N3; N3 is the channel of the second feature image number; N3>N2;

步骤三:将所述卷积模块输入的特征图像和所述第二特征图像合并后,确定为所述卷积模块输出的特征图像。Step 3: After combining the feature image input by the convolution module and the second feature image, determine the feature image output by the convolution module.

在一种具体的实施例中,第二卷积层输出的特征图像的个数可以与第一卷积层输入的特征图像的个数相等。即,N1=N2。In a specific embodiment, the number of feature images output by the second convolution layer may be equal to the number of feature images input by the first convolution layer. That is, N1=N2.

上文所描述的乳腺影像对应的特征图像的确定方式仅为一种可能的实现方式,在其它可能的实现方式中,也可以通过其它方式确定乳腺影像对应的特征图像,具体不做限定。The method for determining the characteristic image corresponding to the breast image described above is only one possible implementation manner, and in other possible implementation manners, the characteristic image corresponding to the breast image may also be determined in other manners, which is not specifically limited.

需要说明的是:本发明实施例中的激活函数可以为多种类型的激活函数,比如,可以为线性整流函数(Rectified Linear Unit,ReLU),具体不做限定;It should be noted that the activation function in the embodiment of the present invention may be various types of activation functions, for example, may be a linear rectification function (Rectified Linear Unit, ReLU), which is not specifically limited;

由于本发明实施例中输入的图像为二维图像,因此,本发明实施例中的特征提取模块可以为(2Dimensions,2D)卷积神经网络中的特征提取模块,相应地,第一卷积层的卷积核大小可以为m*m、第二卷积层的卷积核大小可以为n*n;m和n可以相同也可以不同,在此不做限定;其中,m,n为大于或等于1的整数。第一卷积层输出的特征图像的个数小于所述第一卷积层输入的特征图像的个数;所述第二卷积层输出的特征图像的个数大于所述第二卷积层输入的特征图像的个数。Since the input image in the embodiment of the present invention is a two-dimensional image, the feature extraction module in the embodiment of the present invention may be a feature extraction module in a (2Dimensions, 2D) convolutional neural network. Correspondingly, the first convolutional layer The size of the convolution kernel can be m*m, and the size of the convolution kernel of the second convolution layer can be n*n; m and n can be the same or different, which is not limited here; where m, n are greater than or An integer equal to 1. The number of feature images output by the first convolution layer is less than the number of feature images input by the first convolution layer; the number of feature images output by the second convolution layer is greater than the number of feature images output by the second convolution layer The number of input feature images.

进一步的,为优化特征提取模块,一种可能的实现方式,如图3c所示,所述第一卷积层和所述第二卷积层之间还包括第三卷积层;所述第三卷积层输入的特征图像为所述第一卷积层输出的图像,所述第三卷积层输出的特征图像为所述第二卷积层输入的图像。Further, in order to optimize the feature extraction module, a possible implementation manner, as shown in Figure 3c, further includes a third convolution layer between the first convolution layer and the second convolution layer; The feature image input by the third convolution layer is the image output by the first convolution layer, and the feature image output by the third convolution layer is the image input by the second convolution layer.

其中,第三卷积层的卷积核大小可以为k*k,k与m,n可以相同,也可以不同,在此不做限定。The size of the convolution kernel of the third convolution layer may be k*k, and k may be the same as m, and n may be different, which is not limited here.

一个具体的实施例中,所述第一卷积层的卷积核的大小为3*3;所述第二卷积层的卷积核的大小为3*3;所述第三卷积层的卷积核的大小为1*1。In a specific embodiment, the size of the convolution kernel of the first convolutional layer is 3*3; the size of the convolutional kernel of the second convolutional layer is 3*3; the size of the third convolutional layer The size of the convolution kernel is 1*1.

通过上述卷积核的设置方式,可以有效的提高特征提取的感知野,有利于提高乳腺病灶识别的准确度。By setting the above convolution kernel, the perceptual field of feature extraction can be effectively improved, which is beneficial to improve the accuracy of breast lesion identification.

不同尺寸的特征图像可以为不同像素的特征图像,比如像素为500×500的特征图像与像素为1000×1000的特征图像为不同尺寸的特征图像。Feature images of different sizes may be feature images of different pixels, for example, a feature image with pixels of 500×500 and a feature image with pixels of 1000×1000 are feature images of different sizes.

可选地,采用预先训练好的乳腺病灶检测模型提取乳腺影像的不同尺寸的特征图像,模型是采用2D卷积神经网络对已标记的多个乳腺影像进行训练后确定的。Optionally, a pre-trained breast lesion detection model is used to extract feature images of different sizes of breast images, and the model is determined after training multiple labeled breast images by using a 2D convolutional neural network.

可选地,在提取乳腺影像的不同尺寸的特征图像之前,将图像缩放到特定尺寸,使各方向上像素与实际长度的比例尺一定。Optionally, before extracting characteristic images of different sizes of the mammary image, the images are scaled to a specific size, so that the scale between the pixels in each direction and the actual length is constant.

另一种可能的实现方式,所述特征提取模块包括N/2个下采样卷积块和N/2个上采样卷积块;所述获取所述乳腺影像的不同尺寸的特征图像,包括:In another possible implementation manner, the feature extraction module includes N/2 down-sampling convolution blocks and N/2 up-sampling convolution blocks; the acquiring feature images of different sizes of the breast image includes:

将所述乳腺影像依次通过N/2个下采样卷积块提取N/2个所述乳腺影像的第一特征图像;extracting N/2 first feature images of the breast images through N/2 down-sampling convolution blocks in sequence from the breast images;

将第N/2个下采样卷积块输出的第一特征图像依次通过N/2个上采样卷积块提取N/2个所述乳腺影像的第二特征图像,每个上采样卷积块提取的第二特征图像的尺寸均不同;Extracting N/2 second feature images of the mammary image from the first feature image output by the N/2th downsampling convolution block sequentially through N/2 upsampling convolution blocks, each upsampling convolution block The sizes of the extracted second feature images are all different;

将尺寸相同的第一特征图像和第二特征图像合并后,确定N个所述乳腺影像的不同尺寸的特征图像。After merging the first feature image and the second feature image with the same size, N feature images of different sizes of the breast images are determined.

为提高特征提取的感知野,提高特征提取的性能,一种可能的实现方式,所述特征提取模块之前还包括特征预处理模块;所述特征预处理模块包括一个卷积层,一个BN层,一个Relu层和一个池化层;所述特征预处理模块的卷积核大小大于所述N个卷积模块中任一卷积模块的卷积核的大小。In order to improve the perceptual field of feature extraction and improve the performance of feature extraction, a possible implementation manner, the feature extraction module further includes a feature preprocessing module; the feature preprocessing module includes a convolution layer, a BN layer, One Relu layer and one pooling layer; the size of the convolution kernel of the feature preprocessing module is larger than the size of the convolution kernel of any one of the N convolution modules.

优选的,所述卷积层的卷积核大小可以为7*7,间隔为2个像素。池化层为2*2的最大值池化。通过特征预处理模块,可以将图像面积迅速缩小,边长变为原有1/4,有效的提高特征图像的感知野,快速的提取浅层特征,有效的减少原始信息的损失。Preferably, the size of the convolution kernel of the convolution layer may be 7*7, and the interval is 2 pixels. The pooling layer is 2*2 max pooling. Through the feature preprocessing module, the image area can be quickly reduced, and the side length can be reduced to 1/4 of the original, which can effectively improve the perceptual field of the feature image, quickly extract shallow features, and effectively reduce the loss of original information.

一种可能的实现方式,所述特征预处理模块包括连续的多个卷积层,一个BN层,一个Relu层和一个池化层;所述特征预处理模块的卷积核大小与所述N个卷积模块中的最大的卷积核的大小相等。A possible implementation, the feature preprocessing module includes a plurality of consecutive convolutional layers, a BN layer, a Relu layer and a pooling layer; the size of the convolution kernel of the feature preprocessing module is the same as the N layer. The largest convolution kernels in each convolution module are of equal size.

特征图像经过特征预处理模块的步骤可以包括:将所述乳腺影像输入至特征预处理模块,获得预处理的特征图像;将所述预处理的特征图像作为所述特征提取模块的输入。The step of passing the feature image through the feature preprocessing module may include: inputting the breast image to the feature preprocessing module to obtain a preprocessed feature image; and using the preprocessed feature image as an input to the feature extraction module.

步骤203:针对所述乳腺影像的不同尺寸的特征图像中的任意一个特征图像,从所述特征图像中确定出乳腺病灶识别框。Step 203 : for any feature image in the feature images of different sizes of the breast image, determine a breast lesion identification frame from the feature image.

可选地,采用预先训练好的乳腺病灶检测模型从特征图像中确定出乳腺病灶识别框,乳腺病灶检测模型是采用2D卷积神经网络对已标记乳腺病灶的多个乳腺影像进行训练后确定的。从特征图像中确定出的乳腺病灶识别框框选的区域并不一定都包含乳腺病灶,故需要根据乳腺病灶识别框的乳腺病灶概率对各乳腺病灶识别框进行筛选,将乳腺病灶概率小于预设阈值的乳腺病灶识别框删除,其中,乳腺病灶概率为乳腺病灶识别框框选的区域为乳腺病灶的概率。Optionally, a pre-trained breast lesion detection model is used to determine a breast lesion identification frame from the feature image, and the breast lesion detection model is determined after training multiple breast images of marked breast lesions by using a 2D convolutional neural network. . The area selected by the breast lesion identification frame determined from the feature image does not necessarily contain breast lesions. Therefore, it is necessary to screen each breast lesion identification frame according to the breast lesion probability of the breast lesion identification frame. The breast lesion probability is smaller than the preset threshold. The breast lesion identification box of is deleted, wherein the breast lesion probability is the probability that the area selected by the breast lesion identification frame is a breast lesion.

步骤204:根据从各特征图像中确定出的乳腺病灶识别框,确定乳腺影像的乳腺病灶。Step 204: Determine the breast lesions of the breast image according to the breast lesion identification frame determined from each feature image.

具体的,确定出乳腺病灶识别框之后,将识别框作为乳腺影像中的乳腺病灶输出,输出的乳腺病灶参数包括乳腺病灶的中心坐标以及乳腺病灶的直径,其中乳腺病灶的中心坐标为乳腺病灶识别框的中心坐标,乳腺病灶的直径为乳腺病灶识别框的中心至其中一个面的距离。Specifically, after the identification frame of the breast lesions is determined, the identification frame is output as the breast lesions in the breast image, and the output parameters of the breast lesions include the central coordinates of the breast lesions and the diameter of the breast lesions, wherein the central coordinates of the breast lesions are the identification of the breast lesions. The center coordinate of the box, the diameter of the breast lesion is the distance from the center of the breast lesion identification box to one of the faces.

由于提取乳腺影像的不同尺寸的特征图像,并识别每一个特征图像中的乳腺病灶,故既能检测到大尺寸的乳腺病灶,同时也能检测到小尺寸的乳腺病灶,提高了乳腺病灶检测的精度。其次,相较于人工判断乳腺影像中是否存在乳腺病灶的方法,本申请中自动检测乳腺病灶的方法有效地提高了乳腺病灶检测效率。Since the feature images of different sizes of breast images are extracted and the breast lesions in each feature image are identified, both large-sized breast lesions and small-sized breast lesions can be detected, which improves the detection accuracy of breast lesions. precision. Secondly, compared with the method of manually judging whether there are breast lesions in a breast image, the method for automatically detecting breast lesions in the present application effectively improves the detection efficiency of breast lesions.

由于从各个特征图像中确定出的乳腺病灶识别框可能存在多个识别框对应一个乳腺病灶,若直接根据乳腺病灶识别框的数量确定乳腺影像中乳腺病灶的数量,将导致检测得到的乳腺病灶数量存在很大偏差,故需要将各特征图像转化为同一尺寸的特征图像并对齐,然后将从各特征图像中确定出的乳腺病灶识别框进行筛选,并将筛选后的乳腺病灶识别框确定为乳腺影像中的乳腺病灶。Since the identification frame of breast lesions determined from each feature image may have multiple identification frames corresponding to one breast lesion, if the number of breast lesions in the breast image is directly determined according to the number of identification frames of breast lesions, the number of breast lesions detected will result in the detection of the number of breast lesions. There is a large deviation, so it is necessary to convert each feature image into a feature image of the same size and align it, and then screen the breast lesion identification frame determined from each feature image, and determine the screened breast lesion identification frame as the breast lesion identification frame. Breast lesions in imaging.

为进一步提高乳腺病灶的识别准确率,一种可能的实现方式,所述乳腺影像包括不同侧乳房的不同投照位的乳腺影像;所述将所述乳腺影像输入至特征提取模块,包括:In order to further improve the recognition accuracy of breast lesions, a possible implementation manner, the breast images include breast images of different projection positions of different breasts; the inputting the breast images to the feature extraction module includes:

将所述乳腺影像的同一投照位的另一侧乳房的乳腺影像作为所述乳腺影像的参考影像,输入至所述特征提取模块,获得参考特征图像;Taking the breast image of the other side of the breast at the same projection position of the breast image as a reference image of the breast image, inputting it to the feature extraction module to obtain a reference feature image;

所述针对所述乳腺影像的不同尺寸的特征图像中的任意一个特征图像,从所述特征图像中确定出乳腺病灶识别框;包括:For any one of the feature images of different sizes of the breast image, determining a breast lesion identification frame from the feature image; including:

确定所述特征图像中的第一乳腺病灶识别框和所述参考特征图像中的第二乳腺病灶识别框;determining a first breast lesion identification frame in the feature image and a second breast lesion identification frame in the reference feature image;

若确定所述第一乳腺病灶识别框和所述第二乳腺病灶识别框的位置和/或大小都相同,则删除所述第一乳腺病灶识别框。If it is determined that the positions and/or sizes of the first breast lesion identification frame and the second breast lesion identification frame are the same, the first breast lesion identification frame is deleted.

为进一步提高乳腺病灶识别的准确率,如图3所示,本发明实施例提供一种乳腺影像病灶识别的方法,包括:In order to further improve the accuracy of breast lesion identification, as shown in FIG. 3 , an embodiment of the present invention provides a method for breast imaging lesion identification, including:

步骤301:获取乳腺影像;所述乳腺影像包括不同侧乳房的不同投照位的乳腺影像;Step 301 : acquiring a breast image; the breast image includes breast images of different projection positions of different breasts;

步骤302:将所述乳腺影像输入至特征提取模块中,获取所述乳腺影像不同尺寸的特征图像;Step 302: Input the breast image into a feature extraction module to obtain feature images of different sizes of the breast image;

步骤403:将所述乳腺影像的同一投照位的另一侧乳房的乳腺影像作为所述乳腺影像的参考影像,输入至所述特征提取模块,获得不同尺寸的参考特征图像;Step 403: Use the breast image of the other side of the breast at the same projection position of the breast image as the reference image of the breast image, and input it to the feature extraction module to obtain reference feature images of different sizes;

步骤304:根据所述特征图像和所述参考特征图像,确定乳腺病灶识别框;Step 304: Determine a breast lesion identification frame according to the feature image and the reference feature image;

步骤305:根据从各特征图像中确定出的乳腺病灶识别框,确定乳腺影像的乳腺病灶。Step 305 : Determine the breast lesions of the breast image according to the breast lesion identification frames determined from each feature image.

通过参考特征图像的识别,进一步提高了特征图像中病灶识别框中的识别准确率,避免了乳腺正常腺体的干扰,提高了病灶检出率。Through the identification of the reference feature image, the recognition accuracy of the lesion identification frame in the feature image is further improved, the interference of the normal glands of the breast is avoided, and the detection rate of the lesion is improved.

一种可能的实现方式,乳腺病灶识别框的筛选过程包括:In a possible implementation, the screening process of the breast lesion identification frame includes:

步骤一、确定所述特征图像中的第一乳腺病灶识别框和所述参考特征图像中的第二乳腺病灶识别框;Step 1. Determine the first breast lesion identification frame in the feature image and the second breast lesion identification frame in the reference feature image;

步骤二、若确定所述第一乳腺病灶识别框和所述第二乳腺病灶识别框的位置和/或大小都相同,则删除所述第一乳腺病灶识别框。Step 2: If it is determined that the position and/or size of the first breast lesion identification frame and the second breast lesion identification frame are the same, delete the first breast lesion identification frame.

可选地,乳腺病灶识别框的筛选过程还可以包括以下步骤:Optionally, the screening process of the breast lesion identification frame may further include the following steps:

步骤一,从各特征图像的乳腺病灶识别框中确定乳腺病灶概率最大的乳腺病灶识别框。Step 1: Determine the breast lesion identification frame with the largest breast lesion probability from the breast lesion identification frame of each feature image.

步骤二,计算乳腺病灶概率最大的乳腺病灶识别框与其他乳腺病灶识别框的交并比。Step 2: Calculate the intersection ratio of the breast lesion identification frame with the largest breast lesion probability and other breast lesion identification frames.

步骤三,将交并比大于预设阈值的其他乳腺病灶识别框删除。Step 3: Delete the identification frames of other breast lesions whose intersection ratio is greater than a preset threshold.

步骤四,从剩余的其他乳腺病灶识别框中确定乳腺病灶概率最大的乳腺病灶识别框,重复执行乳腺病灶识别框的筛选过程,直到没有剩余的其他乳腺病灶识别框。Step 4: Determine the breast lesion identification frame with the largest breast lesion probability from the remaining other breast lesion identification frames, and repeat the screening process of the breast lesion identification frame until there are no remaining breast lesion identification frames.

下面结合具体的例子对上述乳腺病灶识别框的筛选过程进行说明,设定各特征图像中确定出的乳腺病灶识别框分别为A、B、C、D、E、F,上述各乳腺病灶识别框的乳腺病灶概率分别为:P(A)=0.9、P(B)=0.85、P(C)=0.95、P(D)=0.75、P(E)=0.96、P(F)=0.65。将上述乳腺病灶识别框按照乳腺病灶概率从大到小进行排序后为:E、C、A、B、D、F,排序后可知各特征图像的乳腺病灶识别框中乳腺病灶概率最大的乳腺病灶识别框为E,然后分别计算乳腺病灶识别框E与其他各乳腺病灶识别框之间的交并比IOU,其中交并比的计算方式如式(1)所示:The following describes the screening process of the above-mentioned breast lesion identification frame with specific examples. The breast lesion identification frames determined in each feature image are set to be A, B, C, D, E, and F respectively. The above-mentioned breast lesion identification frames The probabilities of breast lesions were: P(A)=0.9, P(B)=0.85, P(C)=0.95, P(D)=0.75, P(E)=0.96, P(F)=0.65. The above breast lesion identification frames are sorted according to the probability of breast lesions from large to small as: E, C, A, B, D, F. After sorting, it can be known that the breast lesions with the highest probability of breast lesions in the breast lesion identification frame of each feature image The identification frame is E, and then the intersection ratio IOU between the breast lesion identification frame E and other breast lesion identification frames is calculated respectively, and the calculation method of the intersection ratio is shown in formula (1):

Figure BDA0001830589060000111
Figure BDA0001830589060000111

其中,m为乳腺病灶概率最大的乳腺病灶识别框,n为与乳腺病灶识别框m比较的乳腺病灶识别框,IOU为乳腺病灶识别框m与乳腺病灶识别框n之间的交并比。Among them, m is the breast lesion identification frame with the largest breast lesion probability, n is the breast lesion identification frame compared with the breast lesion identification frame m, and IOU is the intersection ratio between the breast lesion identification frame m and the breast lesion identification frame n.

设定预设阈值为0.5,若乳腺病灶识别框C与乳腺病灶识别框E之间的交并比大于0.5,乳腺病灶识别框A与乳腺病灶识别框E之间的交并比大于0.5,乳腺病灶识别框B、乳腺病灶识别框D、乳腺病灶识别框F与乳腺病灶识别框E之间的交并比均小于0.5,则删除乳腺病灶识别框C和乳腺病灶识别框A,将乳腺病灶识别框E确定为乳腺影像中的乳腺病灶。The preset threshold is set to 0.5. If the intersection ratio between the breast lesion identification frame C and the breast lesion identification frame E is greater than 0.5, the intersection ratio between the breast lesion identification frame A and the breast lesion identification frame E is greater than 0.5, and the breast lesion identification frame E is greater than 0.5. If the intersection ratio between the lesion identification frame B, the breast lesion identification frame D, the breast lesion identification frame F, and the breast lesion identification frame E is all less than 0.5, the breast lesion identification frame C and the breast lesion identification frame A are deleted, and the breast lesions are identified. Box E identifies breast lesions in breast imaging.

进一步地,将剩余的其他乳腺病灶识别框B、D、F根据乳腺病灶概率进行排序,确定乳腺病灶概率最大的乳腺病灶识别框为乳腺病灶识别框B,然后计算乳腺病灶识别框B与乳腺病灶识别框D之间的交并比以及乳腺病灶识别框B与乳腺病灶识别框F之间的交并比。若乳腺病灶识别框B与乳腺病灶识别框D之间的交并比大于0.5,乳腺病灶识别框B与乳腺病灶识别框F之间的交并比小于0.5,则删除乳腺病灶识别框D,将乳腺病灶识别框B以及乳腺病灶识别框F确定为乳腺影像中的乳腺病灶。由于根据乳腺病灶识别框的乳腺病灶概率以及乳腺病灶识别框之间的交并比对各特征图像中确定出的乳腺病灶识别框进行筛选,避免重复检测乳腺影像中的同一个乳腺病灶并输出,提高检测乳腺影像中乳腺病灶数量的准确性。Further, the remaining other breast lesion identification frames B, D, and F are sorted according to the breast lesion probability, and the breast lesion identification frame with the largest breast lesion probability is determined as the breast lesion identification frame B, and then the breast lesion identification frame B and the breast lesion are calculated. The intersection ratio between the identification boxes D and the intersection ratio between the breast lesion identification frame B and the breast lesion identification frame F. If the intersection ratio between the breast lesion identification frame B and the breast lesion identification frame D is greater than 0.5, and the intersection ratio between the breast lesion identification frame B and the breast lesion identification frame F is less than 0.5, the breast lesion identification frame D is deleted, and the breast lesion identification frame D is deleted. The breast lesion identification frame B and the breast lesion identification frame F are determined as breast lesions in the breast image. Since the breast lesion identification frame determined in each feature image is screened according to the breast lesion probability of the breast lesion identification frame and the intersection between the breast lesion identification frames, it is avoided to repeatedly detect and output the same breast lesion in the breast image. Improve the accuracy of detecting the number of breast lesions in breast images.

下面具体介绍一下通过卷积神经网络对已标记乳腺病灶的多个乳腺影像进行训练确定乳腺病灶检测模型过程,如图4所示,包括以下步骤:The following is a detailed introduction to the process of determining a breast lesion detection model by training multiple breast images of marked breast lesions through a convolutional neural network, as shown in Figure 4, including the following steps:

步骤401,获取乳腺影像作为训练样本。Step 401, acquiring breast images as training samples.

具体地,可以将获取的多幅乳腺影像直接作为训练样本,也可以对获取的多幅乳腺影像进行增强操作,扩大训练样本的数据量,增强操作包括但不限于:随机上下左右平移设定像素(比如0~20像素)、随机旋转设定角度(比如-15~15度)、随机缩放设定倍数(比如0.85~1.15倍)。Specifically, the acquired multiple breast images can be directly used as training samples, or an enhancement operation can be performed on the acquired multiple breast images to expand the data volume of the training samples. The enhancement operations include but are not limited to: random up, down, left, and right translation to set pixels (such as 0 to 20 pixels), random rotation to set the angle (such as -15 to 15 degrees), and random zoom to set the multiple (such as 0.85 to 1.15 times).

步骤402,人工标记训练样本中的乳腺病灶。Step 402, manually label the breast lesions in the training sample.

可以通过医生等专业人员对训练样本中的乳腺病灶进行标记,标记的内容包括乳腺病灶的中心坐标以及乳腺病灶的直径。具体地,可以由多名医生对乳腺病灶进行标注,并通过多人投票合成的方式确定最终的乳腺病灶以及乳腺病灶参数,结果用掩码图的方式保存。需要说明的是,人工标记训练样本中乳腺病灶与训练样本的增强操作不分先后,可以先人工标记训练样本中的乳腺病灶,然后再将标记乳腺病灶的训练样本进行增强操作,也可以先将训练样本进行增强操作,然后人工对增强操作后的训练样本进行标记。The breast lesions in the training samples can be marked by professionals such as doctors, and the marked content includes the center coordinates of the breast lesions and the diameter of the breast lesions. Specifically, a plurality of doctors can mark the breast lesions, and determine the final breast lesions and parameters of the breast lesions through a multi-person voting method, and save the results in the form of a mask map. It should be noted that the breast lesions in the manually marked training samples and the enhancement operations of the training samples are in no particular order. The breast lesions in the training samples can be manually marked first, and then the training samples marked with breast lesions can be enhanced. The training samples are augmented, and then the augmented training samples are manually labeled.

步骤403,将训练样本输入卷积神经网络进行训练,确定乳腺病灶识别模型。Step 403 , input the training samples into the convolutional neural network for training to determine a breast lesion identification model.

该卷积神经网络的结构包括输入层、下采样卷积块、上采样卷积块、目标检测网络以及输出层。将训练样本进行预处理后输入上述卷积神经网络,将输出的乳腺病灶与预先标记的训练样本的掩码图进行损失函数计算,然后采用反向传播算法以及sgd优化算法反复迭代,确定乳腺病灶检测模型。The structure of the convolutional neural network includes an input layer, a down-sampling convolution block, an up-sampling convolution block, a target detection network, and an output layer. The training samples are preprocessed and input into the above-mentioned convolutional neural network, the loss function is calculated between the output breast lesions and the mask map of the pre-labeled training samples, and then the back propagation algorithm and the sgd optimization algorithm are used iteratively to determine the breast lesions. Detection model.

进一步地,采用上述训练确定的乳腺病灶检测模型提取乳腺影像的不同尺寸的特征图像的过程,包括以下步骤:Further, the process of using the breast lesion detection model determined by the above training to extract characteristic images of different sizes of breast images includes the following steps:

步骤一,将乳腺影像依次通过N/2个下采样卷积块提取N个乳腺影像的第一特征图像。In step 1, the mammary images are sequentially passed through N/2 down-sampling convolution blocks to extract the first characteristic images of the N mammary images.

每个下采样卷积块提取的第一特征图像的尺寸均不同,N/2大于0。The size of the first feature image extracted by each down-sampling convolution block is different, and N/2 is greater than 0.

可选地,下采样卷积块包括第一卷积层和第二卷积层、组连接层、前后连接层、下采样层。Optionally, the downsampling convolutional block includes a first convolutional layer and a second convolutional layer, a group connection layer, a front-to-back connection layer, and a downsampling layer.

步骤二,将第N/2个下采样卷积块输出的第一特征图像依次通过N/2个上采样卷积块提取N/2个乳腺影像的第二特征图像。Step 2: Extract the second feature images of N/2 mammary images from the first feature images output by the N/2 th down-sampling convolution block through N/2 up-sampling convolution blocks in sequence.

每个上采样卷积块提取的第二特征图像的尺寸均不同。The size of the second feature image extracted by each upsampling convolution block is different.

可选地,上采样卷积块包括卷积层、组连接层、前后连接层、上采样层以及合成连接层。卷积层包括卷积运算,batch normalization层和RELU层。Optionally, the upsampling convolutional block includes a convolutional layer, a group connection layer, a front-to-back connection layer, an upsampling layer, and a synthetic connection layer. The convolution layer includes convolution operation, batch normalization layer and RELU layer.

步骤三,将尺寸相同的第一特征图像和第二特征图像合并后,确定N/2个乳腺影像的不同尺寸的特征图像。Step 3: After merging the first feature image and the second feature image with the same size, the feature images of different sizes of N/2 breast images are determined.

通过上采样卷积块中的合成连接层将尺寸相同的第一特征图像和第二特征图像合并确定不同尺寸的特征图像。可选地,在合并时,是将第一特征图像和第二特征图像的通道数进行合并,合并后得到的特征图像的尺寸与第一特征图像和第二特征图像的尺寸相同。The first feature image and the second feature image with the same size are combined by the synthetic connection layer in the up-sampling convolution block to determine the feature images of different sizes. Optionally, when merging, the channel numbers of the first feature image and the second feature image are combined, and the size of the feature image obtained after merging is the same as the size of the first feature image and the second feature image.

进一步地,采用上述训练确定的乳腺病灶检测模型从特征图像中确定出乳腺病灶识别框的过程,包括以下步骤:Further, the process of using the breast lesion detection model determined by the above training to determine the breast lesion identification frame from the characteristic image includes the following steps:

步骤一,针对特征图像中任意一个像素,以像素为中心,向四周扩散确定第一区域。Step 1, for any pixel in the feature image, take the pixel as the center, and diffuse to the surrounding to determine the first area.

步骤二,在第一区域中根据预设规则设置多个预设框。In step 2, a plurality of preset frames are set in the first area according to preset rules.

由于乳腺病灶的形状不一,故可以将预设框设置为多种形状。预设规则可以是将预设框中心与第一区域的中心重合,也可以是预设框的角与第一区域的角重合等等。Due to the different shapes of breast lesions, the preset frame can be set to various shapes. The preset rule may be that the center of the preset frame coincides with the center of the first area, or the corners of the preset frame and the corners of the first area overlap, and so on.

在一个具体的实施例中,乳腺病灶预设框选取的方式为,对于每个特征图的每个像素,认为其为一个锚点。在每个锚点上设置多个长宽比不一的预设框。对于每个预设框,通过对特征图进行卷积,预测一个坐标和尺寸的偏移,以及置信度,根据坐标和尺寸的偏移,以及置信度,确定预设框。In a specific embodiment, the method for selecting the breast lesion preset frame is to consider each pixel of each feature map as an anchor point. Set multiple preset boxes with different aspect ratios on each anchor point. For each preset frame, the feature map is convolved to predict the offset of a coordinate and size, and the confidence, and the preset frame is determined according to the offset of the coordinate and size, and the confidence.

步骤三,针对任意一个预设框,预测预设框与第一区域的位置偏差。Step 3, for any preset frame, predict the positional deviation between the preset frame and the first area.

步骤四,根据位置偏差调整预设框后确定乳腺病灶识别框,并预测乳腺病灶识别框的乳腺病灶概率。Step 4: Determine the breast lesion identification frame after adjusting the preset frame according to the position deviation, and predict the breast lesion probability of the breast lesion identification frame.

其中,乳腺病灶概率为乳腺病灶识别框框选的区域为乳腺病灶的概率。通过预测预设框与第一区域的位置偏差,然后采用位置偏差调整预设框确定识别框,以使识别框更多地框选特征图中的乳腺病灶区域,提高乳腺病灶检测的准确性。Among them, the breast lesion probability is the probability that the area selected by the breast lesion identification box is a breast lesion. By predicting the positional deviation between the preset frame and the first area, and then adjusting the preset frame by using the position deviation to determine the identification frame, so that the identification frame selects more breast lesion areas in the feature map and improves the accuracy of breast lesion detection.

具体的训练过程可以包括:将训练数据影像输入上述的卷积神经网络进行计算。传入时,将病灶不同窗宽窗位的多张影像传入。训练时,在网络输出的预测框中,选取置信度最高的预测框集和与训练样本重合最大的预测框集合。将预测框置信度和样本标注的交叉熵,与训练样本的标注病灶和预测框的偏移的交叉熵,两者的加权和作为loss函数。通过反向传播的方法训练,训练的优化算法使用带有动量和阶梯衰减的sgd算法。The specific training process may include: inputting the training data image into the above-mentioned convolutional neural network for calculation. When passing in, multiple images with different window widths and window levels of the lesion are passed in. During training, in the prediction frame output by the network, select the prediction frame set with the highest confidence and the prediction frame set with the largest coincidence with the training samples. The weighted sum of the prediction box confidence and the cross-entropy of the sample annotation, and the cross-entropy of the labeled lesions of the training sample and the offset of the prediction box, is used as the loss function. Trained by the method of backpropagation, the trained optimization algorithm uses the sgd algorithm with momentum and step decay.

在算法使用过程中,通过预处理模块,将输入图像预处理,以提高特征提取的效果。In the process of using the algorithm, the input image is preprocessed through the preprocessing module to improve the effect of feature extraction.

一种可能的实现方式,所述获取乳腺影像,包括:A possible implementation manner, the acquiring a breast image includes:

步骤一、将拍摄的乳腺影像图像,根据高斯滤波,确定所述乳腺影像图像的二值化图像;Step 1: Determine the binarized image of the breast image image according to Gaussian filtering of the captured breast image image;

步骤二、获取所述二值化图像的连通区域,将连通区域中最大的区域对应于所述乳腺影像图像的区域作为分割出的乳腺图像;Step 2: Obtain the connected regions of the binarized image, and use the largest region in the connected regions corresponding to the region of the breast imaging image as the segmented breast image;

步骤三、将所述分割出的乳腺图像添加至预设的图像模板中,生成预处理后的乳腺图像;并将所述预处理后的乳腺图像作为输入至所述特征提取模块的乳腺影像。Step 3: Add the segmented breast image to a preset image template to generate a pre-processed breast image; and use the pre-processed breast image as a breast image input to the feature extraction module.

具体的,预处理模块的输入为以Dicom格式形式保存的乳腺影像。预处理可以包括腺体分割和图像归一化;腺体分割的主要目的是将输入的乳腺影像中的乳腺部分提取出,剔除其他无关的干扰的图像;图像归一化是将图像化归为统一格式图像,具体的,包括:Specifically, the input of the preprocessing module is breast images saved in Dicom format. Preprocessing can include gland segmentation and image normalization; the main purpose of gland segmentation is to extract the breast part of the input breast image and remove other irrelevant images; image normalization is to classify the image as Uniform format images, specifically, include:

在步骤一中,具体的二值化的阈值可以通过求图像灰度直方图的最大类间距方法获得。In step 1, the specific binarization threshold can be obtained by calculating the maximum class spacing method of the grayscale histogram of the image.

在步骤二中,可以将二值化的结果,通过漫水法(flood fill)获得独立的区域块,并统计每个区域块的面积;将面积最大的区域块对应的图像上的区域,作为分割出来的乳腺图像。In step 2, the binarized result can be obtained by the flood fill method to obtain independent area blocks, and the area of each area block can be counted; the area on the image corresponding to the area block with the largest area is taken as Segmented breast images.

在步骤三中,预设的图像模板可以为黑色底板的正方形图像;具体的,可以将获得的分割出来的乳腺图像,通过加黑边填充的方式扩充为1:1的正方形图像。In step 3, the preset image template may be a square image with a black bottom plate; specifically, the obtained segmented breast image may be expanded into a 1:1 square image by filling with black borders.

另外,输出的乳腺影像可以通过像素缩放,例如,可以将图像差值缩放到4096像素×4096像素大小。In addition, the output mammogram can be scaled by pixels, for example, the image difference can be scaled to a size of 4096 pixels×4096 pixels.

针对乳腺,由于乳腺照射剂量以及拍摄的外界因素等原因,可以通过调整乳腺的窗宽窗位,以获得更好的乳腺病灶识别的识别效果。一种可能的实现方式,所述将所述乳腺影像输入至特征提取模块之前,还包括:For mammary glands, due to the irradiation dose of mammary glands and external factors of shooting, the window width and window level of mammary glands can be adjusted to obtain better recognition effect of mammary gland lesion recognition. A possible implementation manner, before the breast image is input to the feature extraction module, further comprising:

获取所述乳腺影像的原始文件;obtaining the original file of the breast image;

在所述乳腺影像的原始文件中选取至少一组窗宽窗位,并获取所述至少一组窗宽窗位对应的图片格式的乳腺影像;Selecting at least one group of window widths and window levels in the original file of the breast image, and acquiring a breast image in a picture format corresponding to the at least one group of window widths and window levels;

根据所述至少一组窗宽窗位对应的图片格式的乳腺影像,作为输入至所述特征提取模块的乳腺影像。The mammary images in the picture format corresponding to the at least one group of window widths and window levels are used as the mammary images input to the feature extraction module.

在一个具体实施例中,可以通过三组窗宽窗位,将dicom图像转换为png图像,例如,第一组窗宽为4000,窗位2000;第二组窗宽为1000;窗位为2000;第三组窗宽为1500,窗位为1500。In a specific embodiment, the dicom image can be converted into a png image through three groups of window widths and levels, for example, the first group of window widths is 4000 and the window level is 2000; the second group of window widths is 1000; the window level is 2000 ; The third group of window width is 1500, and the window level is 1500.

基于相同的技术构思,本发明实施例提供了一种乳腺病灶识别的装置,如图5所示,该装置可以执行乳腺病灶识别的方法的流程,该装置包括获取单元501、处理单元502。Based on the same technical concept, an embodiment of the present invention provides an apparatus for identifying breast lesions. As shown in FIG. 5 , the apparatus can execute the flow of the method for identifying breast lesions.

获取单元501,用于获取乳腺影像;所述乳腺影像包括不同侧乳房的不同投照位的乳腺影像;an acquiring unit 501, configured to acquire a breast image; the breast image includes breast images of different projection positions of different breasts;

处理单元502,用于将所述乳腺影像输入至特征提取模块中,获取所述乳腺影像不同尺寸的特征图像;将所述乳腺影像的同一投照位的另一侧乳房的乳腺影像作为所述乳腺影像的参考影像,输入至所述特征提取模块,获得不同尺寸的参考特征图像;根据所述特征图像和所述参考特征图像,确定乳腺病灶识别框;根据从各特征图像中确定出的乳腺病灶识别框,确定乳腺影像的乳腺病灶。The processing unit 502 is configured to input the breast image into a feature extraction module, and obtain characteristic images of different sizes of the breast image; and use the breast image of the other side of the breast at the same projection position of the breast image as the breast image. The reference image of the breast image is input to the feature extraction module to obtain reference feature images of different sizes; according to the feature image and the reference feature image, the identification frame of breast lesions is determined; according to the breast lesions determined from each feature image The lesion identification box identifies the breast lesions of the breast image.

一种可能的实现方式,所述处理单元502,具体用于:A possible implementation manner, the processing unit 502 is specifically used for:

确定所述特征图像中的第一乳腺病灶识别框和所述参考特征图像中的第二乳腺病灶识别框;若确定所述第一乳腺病灶识别框和所述第二乳腺病灶识别框的位置和/或大小都相同,则删除所述第一乳腺病灶识别框。Determine the first breast lesion identification frame in the feature image and the second breast lesion identification frame in the reference feature image; if the position and the position of the first breast lesion identification frame and the second breast lesion identification frame are determined or the same size, delete the first breast lesion identification frame.

一种可能的实现方式,所述处理单元502,具体用于:A possible implementation manner, the processing unit 502 is specifically used for:

将所述乳腺影像依次通过N/2个下采样卷积块提取N/2个所述乳腺影像的第一特征图像;将第N/2个下采样卷积块输出的第一特征图像依次通过N/2个上采样卷积块提取N/2个所述乳腺影像的第二特征图像,每个上采样卷积块提取的第二特征图像的尺寸均不同;将尺寸相同的第一特征图像和第二特征图像合并后,确定N个所述乳腺影像的不同尺寸的特征图像。The breast images are sequentially passed through N/2 downsampling convolution blocks to extract N/2 first feature images of the breast images; the first feature images output by the N/2th downsampling convolution blocks are sequentially passed through N/2 upsampling convolution blocks extract N/2 second feature images of the breast image, and the sizes of the second feature images extracted by each upsampling convolution block are different; After merging with the second feature image, N feature images of different sizes of the breast images are determined.

一种可能的实现方式,所述特征处理模块之前还包括特征预处理模块;所述处理单元502,具体用于:A possible implementation manner, the feature processing module further includes a feature preprocessing module; the processing unit 502 is specifically used for:

将所述乳腺影像输入至所述特征预处理模块中,所述特征预处理模块包括一个卷积层,一个BN层,一个Relu层和一个池化层;所述特征预处理模块的卷积核大小大于所述N个卷积模块中的卷积和的大小;Input the breast image into the feature preprocessing module, the feature preprocessing module includes a convolution layer, a BN layer, a Relu layer and a pooling layer; the convolution kernel of the feature preprocessing module The size is greater than the size of the convolution sum in the N convolution modules;

或者,所述特征预处理模块包括连续的多个卷积层,一个BN层,一个Relu层和一个池化层;所述特征预处理模块的卷积核大小与所述N个卷积模块中的最大的卷积核的大小相等。Alternatively, the feature preprocessing module includes a plurality of consecutive convolutional layers, a BN layer, a Relu layer and a pooling layer; the size of the convolution kernel of the feature preprocessing module is the same as that of the N convolutional modules. The size of the largest convolution kernel is equal.

一种可能的实现方式,所述获取单元501,用于:A possible implementation manner, the obtaining unit 501 is used for:

获取所述乳腺影像的原始文件;obtaining the original file of the breast image;

所述处理单元502,具体用于:The processing unit 502 is specifically used for:

在所述乳腺影像的原始文件中选取至少一组窗宽窗位,并获取所述至少一组窗宽窗位对应的图片格式的乳腺影像;根据所述至少一组窗宽窗位对应的图片格式的乳腺影像,作为输入至所述特征提取模块的乳腺影像。Select at least one group of window widths and window levels in the original file of the mammary image, and acquire mammary images in the picture format corresponding to the at least one group of window widths and window levels; according to the pictures corresponding to the at least one group of window widths and window levels Format of breast images as input to the feature extraction module.

一种可能的实现方式,所述乳腺影像包括不同侧乳房的不同投照位的乳腺影像;所述获取单元501,用于:In a possible implementation manner, the breast images include breast images of different projection positions of different breasts; the acquiring unit 501 is configured to:

将所述乳腺影像的同一投照位的另一侧乳房的乳腺影像作为所述乳腺影像的参考影像,输入至所述特征提取模块,获得参考特征图像;确定所述特征图像中的第一乳腺病灶识别框和所述参考特征图像中的第二乳腺病灶识别框;若确定所述第一乳腺病灶识别框和所述第二乳腺病灶识别框的位置和/或大小都相同,则删除所述第一乳腺病灶识别框。The breast image of the other side of the breast at the same projection position of the breast image is used as the reference image of the breast image, and input to the feature extraction module to obtain a reference feature image; determine the first breast in the feature image The lesion identification frame and the second breast lesion identification frame in the reference feature image; if it is determined that the position and/or size of the first breast lesion identification frame and the second breast lesion identification frame are the same, delete the First breast lesion identification box.

本发明实施例提供了一种计算设备,包括至少一个处理单元以及至少一个存储单元,其中,所述存储单元存储有计算机程序,当所述程序被所述处理单元执行时,使得所述处理单元执行乳腺病灶识别的方法的步骤。如图6所示,为本发明实施例中所述的计算设备的硬件结构示意图,该计算设备具体可以为台式计算机、便携式计算机、智能手机、平板电脑等。具体地,该计算设备可以包括存储器801、处理器802及存储在存储器上的计算机程序,所述处理器802执行所述程序时实现上述实施例中的任一乳腺病灶识别的方法的步骤。其中,存储器801可以包括只读存储器(ROM)和随机存取存储器(RAM),并向处理器802提供存储器801中存储的程序指令和数据。An embodiment of the present invention provides a computing device, including at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit causes the processing unit to Steps for performing a method of breast lesion identification. As shown in FIG. 6 , it is a schematic diagram of the hardware structure of the computing device described in the embodiment of the present invention, and the computing device may specifically be a desktop computer, a portable computer, a smart phone, a tablet computer, or the like. Specifically, the computing device may include a memory 801, a processor 802, and a computer program stored on the memory. When the processor 802 executes the program, the steps of any of the methods for identifying a breast lesion in the foregoing embodiments are implemented. Wherein, the memory 801 may include read only memory (ROM) and random access memory (RAM), and provide the processor 802 with program instructions and data stored in the memory 801 .

进一步地,本申请实施例中所述的计算设备还可以包括输入装置803以及输出装置804等。输入装置803可以包括键盘、鼠标、触摸屏等;输出装置804可以包括显示设备,如液晶显示器(Liquid Crystal Display,LCD)、阴极射线管(Cathode Ray Tube,CRT),触摸屏等。存储器801,处理器802、输入装置803和输出装置804可以通过总线或者其他方式连接,图6中以通过总线连接为例。处理器802调用存储器801存储的程序指令并按照获得的程序指令执行上述实施例提供的乳腺病灶识别的方法。Further, the computing device described in the embodiments of the present application may further include an input device 803, an output device 804, and the like. The input device 803 may include a keyboard, a mouse, a touch screen, etc.; the output device 804 may include a display device, such as a liquid crystal display (LCD), a cathode ray tube (CRT), a touch screen, and the like. The memory 801 , the processor 802 , the input device 803 and the output device 804 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 6 . The processor 802 invokes the program instructions stored in the memory 801 and executes the method for identifying a breast lesion provided by the foregoing embodiment according to the obtained program instructions.

本发明实施例还提供了一种计算机可读存储介质,其存储有可由计算设备执行的计算机程序,当所述程序在计算设备上运行时,使得所述计算设备执行乳腺病灶识别的方法的步骤。Embodiments of the present invention further provide a computer-readable storage medium, which stores a computer program executable by a computing device, and when the program runs on the computing device, causes the computing device to perform steps of the method for identifying breast lesions .

本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, or as a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although preferred embodiments of the present invention have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of the present invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims (6)

1.一种乳腺影像病灶识别的装置,其特征在于,包括:1. A device for identifying breast imaging lesions, comprising: 获取单元,用于获取乳腺影像;所述乳腺影像包括不同侧乳房的不同投照位的乳腺影像;an acquisition unit, configured to acquire breast images; the breast images include breast images of different projection positions of different breasts; 处理单元,用于将所述乳腺影像输入至特征提取模块中,获取所述乳腺影像不同尺寸的特征图像;将所述乳腺影像的同一投照位的另一侧乳房的乳腺影像作为所述乳腺影像的参考影像,输入至所述特征提取模块,获得不同尺寸的参考特征图像;根据所述特征图像和所述参考特征图像,确定乳腺病灶识别框;根据从各特征图像中确定出的乳腺病灶识别框,确定乳腺影像的乳腺病灶;a processing unit, configured to input the breast image into a feature extraction module to obtain characteristic images of different sizes of the breast image; use the breast image of the other side of the breast at the same projection position of the breast image as the breast image The reference image of the image is input to the feature extraction module to obtain reference feature images of different sizes; according to the feature image and the reference feature image, the identification frame of breast lesions is determined; according to the breast lesions determined from each feature image Recognition box to determine breast lesions in breast images; 根据所述特征图像和所述参考特征图像,确定乳腺病灶识别框,包括:确定所述特征图像中的第一乳腺病灶识别框和所述参考特征图像中的第二乳腺病灶识别框;若确定所述第一乳腺病灶识别框和所述第二乳腺病灶识别框的位置和/或大小都相同,则删除所述第一乳腺病灶识别框;According to the feature image and the reference feature image, determining a breast lesion identification frame includes: determining a first breast lesion identification frame in the feature image and a second breast lesion identification frame in the reference feature image; if determining If the positions and/or sizes of the first breast lesion identification frame and the second breast lesion identification frame are the same, the first breast lesion identification frame is deleted; 所述根据从各特征图像中确定出的乳腺病灶识别框,确定乳腺影像的乳腺病灶,具体包括:确定出乳腺病灶识别框之后,将识别框作为乳腺影像中的乳腺病灶输出,输出的乳腺病灶参数包括乳腺病灶的中心坐标以及乳腺病灶的直径;Determining the breast lesions of the breast image according to the identification frames of breast lesions determined from each feature image specifically includes: after determining the identification frames of breast lesions, outputting the identification frames as breast lesions in the breast images, and outputting the breast lesions of the breast The parameters include the center coordinates of the breast lesions and the diameter of the breast lesions; 所述特征提取模块包括N个卷积模块;所述N个卷积模块为下采样卷积块或上采样卷积块;每个下采样卷积块或上采样卷积块提取的特征图像的尺寸均不同,所述N个卷积模块的每个卷积模块中包括第一卷积层、第二卷积层;所述第一卷积层输出的特征图像的个数小于所述第一卷积层输入的特征图像的个数;所述第二卷积层输出的特征图像的个数大于所述第一卷积层输入的特征图像的个数;N大于0;针对所述乳腺影像的不同尺寸的特征图像中的任意一个特征图像,从所述任意一个特征图像中确定出乳腺病灶识别框。The feature extraction module includes N convolution modules; the N convolution modules are down-sampling convolution blocks or up-sampling convolution blocks; The sizes are all different, and each convolution module of the N convolution modules includes a first convolution layer and a second convolution layer; the number of feature images output by the first convolution layer is smaller than that of the first convolution layer. The number of feature images input by the convolution layer; the number of feature images output by the second convolution layer is greater than the number of feature images input by the first convolution layer; N is greater than 0; for the breast image Any one of the feature images of different sizes, and a breast lesion identification frame is determined from the any one of the feature images. 2.如权利要求1所述的装置,其特征在于,所述获取所述乳腺影像的不同尺寸的特征图像,包括:2 . The apparatus according to claim 1 , wherein the acquiring characteristic images of different sizes of the breast image comprises: 2 . 将所述乳腺影像依次通过N/2个下采样卷积块提取N/2个所述乳腺影像的第一特征图像;extracting N/2 first feature images of the breast images through N/2 down-sampling convolution blocks in sequence from the breast images; 将第N/2个下采样卷积块输出的第一特征图像依次通过N/2个上采样卷积块提取N/2个所述乳腺影像的第二特征图像,每个上采样卷积块提取的第二特征图像的尺寸均不同;Extracting N/2 second feature images of the mammary image from the first feature image output by the N/2th downsampling convolution block sequentially through N/2 upsampling convolution blocks, each upsampling convolution block The sizes of the extracted second feature images are all different; 将尺寸相同的第一特征图像和第二特征图像合并后,确定N个所述乳腺影像的不同尺寸的特征图像。After merging the first feature image and the second feature image with the same size, N feature images of different sizes of the breast images are determined. 3.如权利要求1所述的装置,其特征在于,所述特征提取模块之前还包括特征预处理模块,所述特征预处理模块包括一个卷积层,一个BN层,一个Relu层和一个池化层;所述特征预处理模块的卷积核大小大于所述N个卷积模块中的卷积和的大小;3. The apparatus according to claim 1, characterized in that, before the feature extraction module, it further comprises a feature preprocessing module, and the feature preprocessing module comprises a convolutional layer, a BN layer, a Relu layer and a pool The size of the convolution kernel of the feature preprocessing module is larger than the size of the convolution sum in the N convolution modules; 或者,所述特征预处理模块包括连续的多个卷积层,一个BN层,一个Relu层和一个池化层;所述特征预处理模块的卷积核大小与所述N个卷积模块中的最大的卷积核的大小相等。Alternatively, the feature preprocessing module includes a plurality of consecutive convolutional layers, a BN layer, a Relu layer and a pooling layer; the size of the convolution kernel of the feature preprocessing module is the same as that of the N convolutional modules. The size of the largest convolution kernel is equal. 4.如权利要求1所述的装置,其特征在于,所述将所述乳腺影像输入至特征提取模块之前,还包括:4. The apparatus according to claim 1, wherein before inputting the breast image to the feature extraction module, the method further comprises: 获取所述乳腺影像的原始文件;obtaining the original file of the breast image; 在所述乳腺影像的原始文件中选取至少一组窗宽窗位,并获取所述至少一组窗宽窗位对应的图片格式的乳腺影像;Selecting at least one group of window widths and window levels in the original file of the breast image, and acquiring a breast image in a picture format corresponding to the at least one group of window widths and window levels; 根据所述至少一组窗宽窗位对应的图片格式的乳腺影像,作为输入至所述特征提取模块的乳腺影像。The mammary images in the picture format corresponding to the at least one group of window widths and window levels are used as the mammary images input to the feature extraction module. 5.一种计算设备,其特征在于,包括至少一个处理单元以及至少一个存储单元,其中,5. A computing device, comprising at least one processing unit and at least one storage unit, wherein, 所述存储单元存储有计算机程序,当所述程序被所述处理单元执行时,使得所述处理单元执行以下步骤:The storage unit stores a computer program that, when executed by the processing unit, causes the processing unit to perform the following steps: 获取乳腺影像;所述乳腺影像包括不同侧乳房的不同投照位的乳腺影像;acquiring breast images; the breast images include breast images of different projection positions of different breasts; 将所述乳腺影像输入至特征提取模块中,获取所述乳腺影像不同尺寸的特征图像;Inputting the breast image into a feature extraction module to obtain feature images of different sizes of the breast image; 将所述乳腺影像的同一投照位的另一侧乳房的乳腺影像作为所述乳腺影像的参考影像,输入至所述特征提取模块,获得不同尺寸的参考特征图像;Taking the breast image of the other side of the breast at the same projection position of the breast image as the reference image of the breast image, and inputting it to the feature extraction module to obtain reference feature images of different sizes; 根据所述特征图像和所述参考特征图像,确定乳腺病灶识别框;determining a breast lesion identification frame according to the feature image and the reference feature image; 根据从各特征图像中确定出的乳腺病灶识别框,确定乳腺影像的乳腺病灶;According to the identification frame of breast lesions determined from each feature image, determine the breast lesions of the breast image; 根据所述特征图像和所述参考特征图像,确定乳腺病灶识别框,包括:确定所述特征图像中的第一乳腺病灶识别框和所述参考特征图像中的第二乳腺病灶识别框;若确定所述第一乳腺病灶识别框和所述第二乳腺病灶识别框的位置和/或大小都相同,则删除所述第一乳腺病灶识别框;According to the feature image and the reference feature image, determining a breast lesion identification frame includes: determining a first breast lesion identification frame in the feature image and a second breast lesion identification frame in the reference feature image; if determining If the positions and/or sizes of the first breast lesion identification frame and the second breast lesion identification frame are the same, the first breast lesion identification frame is deleted; 所述根据从各特征图像中确定出的乳腺病灶识别框,确定乳腺影像的乳腺病灶,具体包括:确定出乳腺病灶识别框之后,将识别框作为乳腺影像中的乳腺病灶输出,输出的乳腺病灶参数包括乳腺病灶的中心坐标以及乳腺病灶的直径;Determining the breast lesions of the breast image according to the identification frames of breast lesions determined from each feature image specifically includes: after determining the identification frames of breast lesions, outputting the identification frames as breast lesions in the breast images, and outputting the breast lesions of the breast The parameters include the center coordinates of the breast lesions and the diameter of the breast lesions; 所述特征提取模块包括N个卷积模块;所述N个卷积模块为下采样卷积块或上采样卷积块;每个下采样卷积块或上采样卷积块提取的特征图像的尺寸均不同,所述N个卷积模块的每个卷积模块中包括第一卷积层、第二卷积层;所述第一卷积层输出的特征图像的个数小于所述第一卷积层输入的特征图像的个数;所述第二卷积层输出的特征图像的个数大于所述第一卷积层输入的特征图像的个数;N大于0;针对所述乳腺影像的不同尺寸的特征图像中的任意一个特征图像,从所述任意一个特征图像中确定出乳腺病灶识别框。The feature extraction module includes N convolution modules; the N convolution modules are down-sampling convolution blocks or up-sampling convolution blocks; The sizes are all different, and each convolution module of the N convolution modules includes a first convolution layer and a second convolution layer; the number of feature images output by the first convolution layer is smaller than that of the first convolution layer. The number of feature images input by the convolution layer; the number of feature images output by the second convolution layer is greater than the number of feature images input by the first convolution layer; N is greater than 0; for the breast image Any one of the feature images of different sizes, and a breast lesion identification frame is determined from the any one of the feature images. 6.一种计算机可读存储介质,其特征在于,其存储有可由计算设备执行的计算机程序,当所述程序在所述计算设备上运行时,使得所述计算设备执行以下步骤:6. A computer-readable storage medium, characterized in that it stores a computer program executable by a computing device, and when the program runs on the computing device, the computing device is made to perform the following steps: 获取乳腺影像;所述乳腺影像包括不同侧乳房的不同投照位的乳腺影像;acquiring breast images; the breast images include breast images of different projection positions of different breasts; 将所述乳腺影像输入至特征提取模块中,获取所述乳腺影像不同尺寸的特征图像;Inputting the breast image into a feature extraction module to obtain feature images of different sizes of the breast image; 将所述乳腺影像的同一投照位的另一侧乳房的乳腺影像作为所述乳腺影像的参考影像,输入至所述特征提取模块,获得不同尺寸的参考特征图像;Taking the breast image of the other side of the breast at the same projection position of the breast image as the reference image of the breast image, and inputting it to the feature extraction module to obtain reference feature images of different sizes; 根据所述特征图像和所述参考特征图像,确定乳腺病灶识别框;determining a breast lesion identification frame according to the feature image and the reference feature image; 根据从各特征图像中确定出的乳腺病灶识别框,确定乳腺影像的乳腺病灶;According to the identification frame of breast lesions determined from each feature image, determine the breast lesions of the breast image; 根据所述特征图像和所述参考特征图像,确定乳腺病灶识别框,包括:确定所述特征图像中的第一乳腺病灶识别框和所述参考特征图像中的第二乳腺病灶识别框;若确定所述第一乳腺病灶识别框和所述第二乳腺病灶识别框的位置和/或大小都相同,则删除所述第一乳腺病灶识别框;According to the feature image and the reference feature image, determining a breast lesion identification frame includes: determining a first breast lesion identification frame in the feature image and a second breast lesion identification frame in the reference feature image; if determining If the positions and/or sizes of the first breast lesion identification frame and the second breast lesion identification frame are the same, the first breast lesion identification frame is deleted; 所述根据从各特征图像中确定出的乳腺病灶识别框,确定乳腺影像的乳腺病灶,具体包括:确定出乳腺病灶识别框之后,将识别框作为乳腺影像中的乳腺病灶输出,输出的乳腺病灶参数包括乳腺病灶的中心坐标以及乳腺病灶的直径;Determining the breast lesions of the breast image according to the identification frames of breast lesions determined from each feature image specifically includes: after determining the identification frames of breast lesions, outputting the identification frames as breast lesions in the breast images, and outputting the breast lesions of the breast The parameters include the center coordinates of the breast lesions and the diameter of the breast lesions; 所述特征提取模块包括N个卷积模块;所述N个卷积模块为下采样卷积块或上采样卷积块;每个下采样卷积块或上采样卷积块提取的特征图像的尺寸均不同,所述N个卷积模块的每个卷积模块中包括第一卷积层、第二卷积层;所述第一卷积层输出的特征图像的个数小于所述第一卷积层输入的特征图像的个数;所述第二卷积层输出的特征图像的个数大于所述第一卷积层输入的特征图像的个数;N大于0;针对所述乳腺影像的不同尺寸的特征图像中的任意一个特征图像,从所述任意一个特征图像中确定出乳腺病灶识别框。The feature extraction module includes N convolution modules; the N convolution modules are down-sampling convolution blocks or up-sampling convolution blocks; The sizes are all different, and each convolution module of the N convolution modules includes a first convolution layer and a second convolution layer; the number of feature images output by the first convolution layer is smaller than that of the first convolution layer. The number of feature images input by the convolution layer; the number of feature images output by the second convolution layer is greater than the number of feature images input by the first convolution layer; N is greater than 0; for the breast image Any one of the feature images of different sizes, and a breast lesion identification frame is determined from the any one of the feature images.
CN201811203383.7A 2018-10-16 2018-10-16 A method and device for identifying breast imaging lesions Active CN109363699B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811203383.7A CN109363699B (en) 2018-10-16 2018-10-16 A method and device for identifying breast imaging lesions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811203383.7A CN109363699B (en) 2018-10-16 2018-10-16 A method and device for identifying breast imaging lesions

Publications (2)

Publication Number Publication Date
CN109363699A CN109363699A (en) 2019-02-22
CN109363699B true CN109363699B (en) 2022-07-12

Family

ID=65400002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811203383.7A Active CN109363699B (en) 2018-10-16 2018-10-16 A method and device for identifying breast imaging lesions

Country Status (1)

Country Link
CN (1) CN109363699B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109363697B (en) * 2018-10-16 2020-10-16 杭州依图医疗技术有限公司 A method and device for identifying breast imaging lesions
TWI769370B (en) * 2019-03-08 2022-07-01 太豪生醫股份有限公司 Focus detection apparatus and method thereof
CN109978894A (en) * 2019-03-26 2019-07-05 成都迭迦科技有限公司 A kind of lesion region mask method and system based on three-dimensional mammary gland color ultrasound
CN110013264A (en) * 2019-04-29 2019-07-16 北京青燕祥云科技有限公司 X-ray image recognition methods, device, electronic equipment and storage medium
CN110400302B (en) * 2019-07-25 2021-11-09 杭州依图医疗技术有限公司 Method and device for determining and displaying focus information in breast image
CN111028310B (en) * 2019-12-31 2023-10-03 上海联影医疗科技股份有限公司 Method, device, terminal and medium for determining scanning parameters of breast tomography
CN111325282B (en) * 2020-03-05 2023-10-27 北京深睿博联科技有限责任公司 Mammary gland X-ray image identification method and device adapting to multiple models
CN111415332B (en) * 2020-03-05 2023-10-24 北京深睿博联科技有限责任公司 Mammary gland X-ray image linkage method and device
CN113344854A (en) * 2021-05-10 2021-09-03 深圳瀚维智能医疗科技有限公司 Breast ultrasound video-based focus detection method, device, equipment and medium
TWI832671B (en) * 2023-01-13 2024-02-11 國立中央大學 Mammography intelligent diagnosis method by using machine learning from mammography image

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7646902B2 (en) * 2005-02-08 2010-01-12 Regents Of The University Of Michigan Computerized detection of breast cancer on digital tomosynthesis mammograms
CN101373479A (en) * 2008-09-27 2009-02-25 华中科技大学 A computerized image retrieval method and system for mammography
JP6778174B2 (en) * 2014-07-18 2020-10-28 コーニンクレッカ フィリップス エヌ ヴェKoninklijke Philips N.V. Stenosis evaluation
CN105975785A (en) * 2016-05-13 2016-09-28 深圳市前海安测信息技术有限公司 Mammary gland screening image automatic processing system and method
CN108090889B (en) * 2016-11-21 2020-10-13 医渡云(北京)技术有限公司 Mammary gland image coordinate system establishing method and device
CN107665491B (en) * 2017-10-10 2021-04-09 清华大学 Pathological image recognition method and system
CN107680678B (en) * 2017-10-18 2020-12-01 北京航空航天大学 Thyroid ultrasound image nodule diagnosis system based on multi-scale convolutional neural network
CN108648192B (en) * 2018-05-17 2021-08-17 杭州依图医疗技术有限公司 Method and device for detecting nodules

Also Published As

Publication number Publication date
CN109363699A (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN109447065B (en) Method and device for identifying mammary gland image
CN109363699B (en) A method and device for identifying breast imaging lesions
CN109363698B (en) Method and device for identifying breast image signs
CN109363697B (en) A method and device for identifying breast imaging lesions
Ahmad et al. Deep learning empowered breast cancer diagnosis: Advancements in detection and classification
US10580137B2 (en) Systems and methods for detecting an indication of malignancy in a sequence of anatomical images
US10111632B2 (en) System and method for breast cancer detection in X-ray images
CN110046627B (en) Method and device for identifying mammary gland image
US20170098310A1 (en) Edge-based local adaptive thresholding system and methods for foreground detection
US20170109880A1 (en) System and method for blood vessel analysis and quantification in highly multiplexed fluorescence imaging
Sarosa et al. Mammogram breast cancer classification using gray-level co-occurrence matrix and support vector machine
US12154268B2 (en) Digital tissue segmentation
US11983845B1 (en) Digital tissue segmentation and viewing
EP3953691A1 (en) Methods and systems for crack detection using a fully convolutional network
WO2020066257A1 (en) Classification device, classification method, program, and information recording medium
US11954853B2 (en) Systems and methods for fast mammography data handling
WO2021139447A1 (en) Abnormal cervical cell detection apparatus and method
CN112053325A (en) Breast mass image processing and classifying system
CN109461144B (en) Method and device for identifying mammary gland image
CN114581698A (en) Target classification method based on space cross attention mechanism feature fusion
CN111062909A (en) Method and equipment for judging benign and malignant breast masses
US20230334660A1 (en) Digital tissue segmentation and viewing
Nguyen et al. A Robust Approach for Breast Cancer Classification from DICOM Images
US12211206B1 (en) Multistage region-of-interest identification in medical images
CN112529900A (en) Method, device, terminal and storage medium for matching ROI in mammary gland image

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 311121 Hangzhou City, Yuhang District, Cangqian Street, Longyuan Road No. 88, Building 3, 14th Floor, B1403 Room

Patentee after: Hangzhou Shenrui Health Technology Co.,Ltd.

Country or region after: China

Address before: 310012 Zhejiang Province, Hangzhou City, Xihu District, Zhuantang Technology and Economy Zone Block 2, Building 1, 5th Floor, Room 503

Patentee before: HANGZHOU YITU HEALTHCARE TECHNOLOGY Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address