CN113576508B - Cerebral hemorrhage auxiliary diagnosis system based on neural network - Google Patents
Cerebral hemorrhage auxiliary diagnosis system based on neural network Download PDFInfo
- Publication number
- CN113576508B CN113576508B CN202110826032.7A CN202110826032A CN113576508B CN 113576508 B CN113576508 B CN 113576508B CN 202110826032 A CN202110826032 A CN 202110826032A CN 113576508 B CN113576508 B CN 113576508B
- Authority
- CN
- China
- Prior art keywords
- image
- neural network
- cerebral hemorrhage
- module
- training
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000013528 artificial neural network Methods 0.000 title claims abstract description 44
- 206010008111 Cerebral haemorrhage Diseases 0.000 title claims abstract description 43
- 238000003745 diagnosis Methods 0.000 title claims abstract description 33
- 238000012549 training Methods 0.000 claims abstract description 30
- 208000032843 Hemorrhage Diseases 0.000 claims abstract description 17
- 230000011218 segmentation Effects 0.000 claims abstract description 15
- 238000012545 processing Methods 0.000 claims abstract description 13
- 230000008030 elimination Effects 0.000 claims abstract description 6
- 238000003379 elimination reaction Methods 0.000 claims abstract description 6
- 230000000877 morphologic effect Effects 0.000 claims abstract description 6
- 230000003902 lesion Effects 0.000 claims description 16
- 230000000740 bleeding effect Effects 0.000 claims description 15
- 230000006835 compression Effects 0.000 claims description 5
- 238000007906 compression Methods 0.000 claims description 5
- 238000001914 filtration Methods 0.000 claims description 3
- 230000008676 import Effects 0.000 claims description 3
- 238000004088 simulation Methods 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 abstract description 6
- 238000001514 detection method Methods 0.000 abstract description 6
- 238000007781 pre-processing Methods 0.000 abstract description 4
- 238000002591 computed tomography Methods 0.000 description 38
- 238000000034 method Methods 0.000 description 6
- 208000008574 Intracranial Hemorrhages Diseases 0.000 description 3
- 230000001154 acute effect Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000010801 machine learning Methods 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 210000004556 brain Anatomy 0.000 description 2
- 208000026106 cerebrovascular disease Diseases 0.000 description 2
- 201000010099 disease Diseases 0.000 description 2
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000012800 visualization Methods 0.000 description 2
- 208000014644 Brain disease Diseases 0.000 description 1
- 206010053476 Traumatic haemorrhage Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000005013 brain tissue Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010191 image analysis Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010827 pathological analysis Methods 0.000 description 1
- 230000001575 pathological effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000002269 spontaneous effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 208000024891 symptom Diseases 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/02—Arrangements for diagnosis sequentially in different planes; Stereoscopic radiation diagnosis
- A61B6/03—Computed tomography [CT]
- A61B6/032—Transmission computed tomography [CT]
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/50—Apparatus 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/501—Apparatus 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 the head, e.g. neuroimaging or craniography
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/52—Devices using data or image processing specially adapted for radiation diagnosis
- A61B6/5205—Devices using data or image processing specially adapted for radiation diagnosis involving processing of raw data to produce diagnostic data
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B6/00—Apparatus or devices for radiation diagnosis; Apparatus or devices for radiation diagnosis combined with radiation therapy equipment
- A61B6/52—Devices using data or image processing specially adapted for radiation diagnosis
- A61B6/5211—Devices using data or image processing specially adapted for radiation diagnosis involving processing of medical diagnostic data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/084—Backpropagation, e.g. using gradient descent
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0012—Biomedical image inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/155—Segmentation; Edge detection involving morphological operators
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/20—ICT specially adapted for the handling or processing of medical images for handling medical images, e.g. DICOM, HL7 or PACS
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H50/00—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
- G16H50/20—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for computer-aided diagnosis, e.g. based on medical expert systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10072—Tomographic images
- G06T2207/10081—Computed x-ray tomography [CT]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30016—Brain
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A90/00—Technologies having an indirect contribution to adaptation to climate change
- Y02A90/10—Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Medical Informatics (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Theoretical Computer Science (AREA)
- Biomedical Technology (AREA)
- Public Health (AREA)
- Radiology & Medical Imaging (AREA)
- Molecular Biology (AREA)
- Biophysics (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Pathology (AREA)
- General Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Heart & Thoracic Surgery (AREA)
- Veterinary Medicine (AREA)
- High Energy & Nuclear Physics (AREA)
- Animal Behavior & Ethology (AREA)
- Surgery (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Primary Health Care (AREA)
- Epidemiology (AREA)
- Dentistry (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Neurosurgery (AREA)
- Neurology (AREA)
- Pulmonology (AREA)
- Databases & Information Systems (AREA)
- Quality & Reliability (AREA)
- Apparatus For Radiation Diagnosis (AREA)
Abstract
Description
技术领域Technical Field
本发明属于医学图像处理及分割技术领域,更具体地,涉及一种基于神经网络的脑出血辅助诊断系统。The present invention belongs to the technical field of medical image processing and segmentation, and more specifically, relates to a neural network-based auxiliary diagnosis system for cerebral hemorrhage.
背景技术Background technique
脑出血是指原发性非外伤性的脑实质出血,也称自发性脑出血,是急性脑血管病中病死率最高的疾病类型,占急性脑血管病的20%~30%。目前,急性脑血管相关的疾病已经成为第三大致人死亡的疾病。脑出血出血量多少的判定可作为后续医生所采取治疗手段的重要参照。Cerebral hemorrhage refers to primary non-traumatic bleeding in the brain parenchyma, also known as spontaneous cerebral hemorrhage. It is the type of disease with the highest mortality rate among acute cerebrovascular diseases, accounting for 20% to 30% of acute cerebrovascular diseases. At present, acute cerebrovascular-related diseases have become the third leading cause of death. The determination of the amount of bleeding in cerebral hemorrhage can serve as an important reference for the subsequent treatment measures taken by doctors.
目前,临床上普遍采用X射线计算机断层扫描(X-ray computed tomography,CT)作为脑出血主要筛查手段,具有操作便捷、经济且无创等优点。但由于脑出血CT图像中的出血区域容易与其他正常脑组织混淆,诊断医生定性观察及定量化分析时难度较大;同时,脑出血发病急,且进展迅速,发病后症状在数分钟或数小时内达到高峰。但由于病理诊断需要镜下操作,肉眼观察工作量大,CT报告一般需6-24小时后才能得出,等候时间过久,且查验报告容易受病理医生经验及疲劳状态等影响。同时,部分偏远地区受限于医疗资源分布,尤其缺乏经验丰富的医生,难以快速明确CT诊断,易导致病人错过最佳治疗时机。At present, X-ray computed tomography (CT) is widely used in clinical practice as the main screening method for cerebral hemorrhage, which has the advantages of convenient operation, economy and non-invasiveness. However, since the hemorrhage area in the CT image of cerebral hemorrhage is easily confused with other normal brain tissues, it is difficult for diagnostic doctors to make qualitative observations and quantitative analyses; at the same time, cerebral hemorrhage occurs rapidly and progresses rapidly, and the symptoms reach a peak within minutes or hours after onset. However, since pathological diagnosis requires microscopic operation and the workload of naked eye observation is large, CT reports generally take 6-24 hours to be obtained, the waiting time is too long, and the inspection report is easily affected by the experience and fatigue status of the pathologist. At the same time, some remote areas are limited by the distribution of medical resources, especially the lack of experienced doctors, and it is difficult to quickly determine the CT diagnosis, which can easily cause patients to miss the best time for treatment.
随着机器学习技术的发展及其在医学领域广泛应用,在脑出血辅助诊断领域,基于机器学习方法建立脑出血CT及病理切片图像辅助分析工具,可利用计算机强大的图像处理及矩阵运算能力,提高图像分析效率,减少医生工作量,有助于在一定程度上缓解区域医疗资源不平衡。但出于保护病人隐私等考虑,CT装置拍摄的CT图像存储于医院内部系统中,一般只支持打印成胶片,难以直接向外界程序开放数据接口,使得上述基于机器学习的辅助分析程序难以应用于原始拍摄图像。解决该问题的一种方式是对打印后的CT胶片进行二次拍摄并作为程序的输入,但二次拍摄CT图像的质量受拍摄视角和光照条件的影响较大,使得常规辅助分析程序难以得到准确的脑出血诊断结果。因此针对二次拍摄CT图像设计有效的脑出血辅助诊断系统,是当前有待解决的问题,且具有重要的实际应用价值。With the development of machine learning technology and its wide application in the medical field, in the field of auxiliary diagnosis of cerebral hemorrhage, the establishment of auxiliary analysis tools for cerebral hemorrhage CT and pathological slice images based on machine learning methods can utilize the powerful image processing and matrix computing capabilities of computers to improve image analysis efficiency, reduce the workload of doctors, and help to alleviate the imbalance of regional medical resources to a certain extent. However, for the sake of protecting patient privacy, the CT images taken by the CT device are stored in the internal system of the hospital, and generally only support printing into films. It is difficult to directly open the data interface to external programs, making it difficult to apply the above-mentioned auxiliary analysis program based on machine learning to the original captured images. One way to solve this problem is to take a second shot of the printed CT film and use it as the input of the program, but the quality of the second-shot CT image is greatly affected by the shooting angle and lighting conditions, making it difficult for conventional auxiliary analysis programs to obtain accurate cerebral hemorrhage diagnosis results. Therefore, designing an effective auxiliary diagnosis system for cerebral hemorrhage based on the second-shot CT image is a problem that needs to be solved at present, and it has important practical application value.
发明内容Summary of the invention
针对现有技术的以上缺陷或改进需求,本发明提供了一种基于神经网络的脑出血辅助诊断系统,只需要利用手机拍摄患者CT图像进行上传,便可利用训练好的神经网络完成出血病灶检测、出血量计算等,从而帮助医生确定患者脑出血情况,提高诊断效率。In response to the above defects or improvement needs of the prior art, the present invention provides a neural network-based auxiliary diagnosis system for cerebral hemorrhage. It only requires using a mobile phone to take a CT image of the patient and upload it, and then the trained neural network can be used to complete bleeding lesion detection, bleeding volume calculation, etc., thereby helping doctors determine the patient's cerebral hemorrhage condition and improving diagnostic efficiency.
为实现上述目的,本发明提供了一种基于神经网络的脑出血辅助诊断系统,包括以下模块:To achieve the above object, the present invention provides a neural network-based cerebral hemorrhage auxiliary diagnosis system, comprising the following modules:
获取模块,用于获取多张原始的CT图像,并标记出病灶区域;An acquisition module is used to acquire multiple original CT images and mark the lesion area;
处理模块,用于对所述多张原始的CT图像进行图像增强,得到训练集;A processing module, used for performing image enhancement on the plurality of original CT images to obtain a training set;
训练模块,用于利用所述训练集对神经网络进行训练;A training module, used for training a neural network using the training set;
第一诊断模块,用于获取二次拍摄的CT图像并进行预处理,并将处理后的图像输入训练后的神经网络,得到与输入图像尺寸一致的表示每个像素置信度的灰度图;The first diagnostic module is used to obtain the secondary CT image and perform preprocessing, and input the processed image into the trained neural network to obtain a grayscale image representing the confidence of each pixel that is consistent with the size of the input image;
第二诊断模块,用于对所述灰度图依次进行阈值分割、形态学闭运算以及消除孔洞处理;并根据处理后的灰度图实现脑出血病灶检测以及出血量计算。The second diagnosis module is used to perform threshold segmentation, morphological closing operation and hole elimination processing on the grayscale image in sequence; and realize cerebral hemorrhage lesion detection and bleeding volume calculation based on the processed grayscale image.
进一步地,所述训练模块,还用于将多张相邻图像导入神经网络的输入层,进行联合训练。Furthermore, the training module is also used to import multiple adjacent images into the input layer of the neural network for joint training.
进一步地,所述训练模块,还用于根据所选择的交叉熵损失函数,计算神经网络输出的灰度图与标注的原始CT图像的损失,并将损失反向传播用于更新神经网络权重参数。Furthermore, the training module is also used to calculate the loss between the grayscale image output by the neural network and the annotated original CT image according to the selected cross entropy loss function, and back-propagate the loss to update the neural network weight parameters.
进一步地,获取二次拍摄的CT图像并进行预处理,包括:获取二次拍摄的CT图像,并进行图像中心裁剪和图像压缩,以使处理后的图像与原始CT图像的形状和尺寸一致。Furthermore, the second-shot CT image is obtained and preprocessed, including: obtaining the second-shot CT image, and performing image center cropping and image compression to make the processed image consistent with the shape and size of the original CT image.
进一步地,进行图像中心裁剪和图像压缩之后,所述第一诊断模块还用于对图像进行灰度化处理。Furthermore, after performing image center cropping and image compression, the first diagnosis module is also used to perform grayscale processing on the image.
进一步地,采用的图像增强的手段包括:灰度随机抖动、对比度调整、多种噪声模拟、滤波操作以及随机亮斑叠加。Furthermore, the image enhancement methods adopted include: grayscale random jitter, contrast adjustment, multiple noise simulations, filtering operations and random bright spot superposition.
进一步地,所述神经网络为全卷积语义分割神经网络。Furthermore, the neural network is a fully convolutional semantic segmentation neural network.
总体而言,通过本发明所构思的以上技术方案,能够取得以下有益效果:In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:
(1)本发明提供的脑出血辅助诊断系统,考虑到在实际应用中,CT装置拍摄的CT图像不能立即导出,无法快速利用训练好的神经网络完成出血病灶检测、出血量计算等,故选择通过手机等用户设备对原始CT图像进行二次拍摄。又由于二次拍摄的图像与原始CT图像存在差异,故通过图像增强方法改变训练集中原始CT图像的灰度分布、图像形状等特征,使其更接近二次拍摄图像的特征,从而提高学到模型的泛化能力。基于训练后的神经网络得到相应灰度图后,又依次进行阈值分割、形态学闭运算以及消除孔洞处理,还原真实的脑出血情况。如此,本发明能够提高脑出血诊疗的效率和准确率。(1) The brain hemorrhage auxiliary diagnosis system provided by the present invention takes into account that in actual applications, the CT images taken by the CT device cannot be exported immediately, and it is impossible to quickly use the trained neural network to complete the detection of bleeding lesions, the calculation of the amount of bleeding, etc., so it is chosen to perform a second shot of the original CT image through a user device such as a mobile phone. Since there are differences between the second-shot image and the original CT image, the grayscale distribution, image shape and other features of the original CT image in the training set are changed through an image enhancement method to make it closer to the features of the second-shot image, thereby improving the generalization ability of the learned model. After obtaining the corresponding grayscale image based on the trained neural network, threshold segmentation, morphological closing operation and hole elimination processing are performed in sequence to restore the actual brain hemorrhage situation. In this way, the present invention can improve the efficiency and accuracy of brain hemorrhage diagnosis and treatment.
(2)本发明在训练集的图像输入神经网络前,设计了多张相邻图片一并导入的程序,先按照图像的先后顺序排序,在将当前图像导入神经网络前,查询到当前图像的前后相邻图像,将其和当前图像一同导入神经网络的输入层,进行联合训练。从而可以降低最终结果的虚警率,使得最终的分割结果的可信度更高。(2) Before the image of the training set is input into the neural network, the present invention designs a program for importing multiple adjacent images at the same time, firstly sorting the images in order, and before the current image is input into the neural network, querying the adjacent images before and after the current image, and importing them and the current image into the input layer of the neural network together for joint training. This can reduce the false alarm rate of the final result, making the final segmentation result more credible.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明实施例提供的一种基于神经网络的脑出血辅助诊断系统的框图;FIG1 is a block diagram of a neural network-based cerebral hemorrhage auxiliary diagnosis system provided by an embodiment of the present invention;
图2为本发明实施例提供的脑出血检出可视化效果图。FIG. 2 is a visualization effect diagram of cerebral hemorrhage detection provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
在本发明中,本发明及附图中的术语“第一”、“第二”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。In the present invention, the terms "first", "second", etc. (if any) in the present invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
如图1所示,本发明提供的基于神经网络的脑出血辅助诊断系统100,包括:As shown in FIG1 , the neural network-based cerebral hemorrhage auxiliary diagnosis system 100 provided by the present invention includes:
获取模块110,用于获取多张原始的CT图像,并标记出病灶区域;An acquisition module 110 is used to acquire multiple original CT images and mark the lesion area;
具体地,把专业人员标记的JSON标签文件批量转化为模型输入的Mask,即和CT图像尺寸大小一致的jpg二值图像。Mask作为正确标注的数据输入模型,其中Mask的二值分别表示有脑出血病灶区域和无脑出血病灶区域。Specifically, the JSON tag files marked by professionals are batch converted into masks for model input, that is, jpg binary images of the same size as the CT image. Mask is used as the correctly labeled data input model, where the binary values of Mask represent the areas with cerebral hemorrhage lesions and the areas without cerebral hemorrhage lesions.
处理模块120,用于对所述多张原始的CT图像进行图像增强,得到训练集;A processing module 120, configured to perform image enhancement on the plurality of original CT images to obtain a training set;
具体地,由于直接获取的为原始CT的灰度图像,但系统实际使用的是手机等用户设备二次拍摄的CT图像,因此对于神经网络而言,存在训练集数据和测试集数据的分布情况不一致的问题。对于这个问题,在分析了原始CT图像和二次拍摄CT图像的图像直方图之后,我们有针对性地选取了合理的图像增强方法,用于改变训练集中原始CT图像的灰度分布、图像形状等特征,使其更接近二次拍摄图像的特征,从而提高学到模型的泛化能力。采用的图像增强的手段包括:灰度随机抖动、对比度调整(针对二次拍摄图像的直方图选择合适的对比度参数)、多种噪声模拟(模拟拍摄中的噪声干扰)、滤波操作(模拟拍摄中可能会产生的抖动模糊)、随机亮斑叠加(用于模拟拍摄中的反光)。Specifically, since the grayscale image of the original CT is directly acquired, but the system actually uses the CT image taken by the user device such as a mobile phone, there is a problem of inconsistent distribution of the training set data and the test set data for the neural network. For this problem, after analyzing the image histograms of the original CT image and the second-shot CT image, we have targetedly selected reasonable image enhancement methods to change the grayscale distribution, image shape and other features of the original CT image in the training set to make it closer to the features of the second-shot image, thereby improving the generalization ability of the learned model. The image enhancement methods used include: grayscale random jitter, contrast adjustment (selecting appropriate contrast parameters for the histogram of the second-shot image), multiple noise simulations (simulating noise interference in shooting), filtering operations (simulating jitter blur that may occur in shooting), and random bright spot superposition (used to simulate reflections in shooting).
训练模块130,用于利用所述训练集对神经网络进行训练;A training module 130, configured to train a neural network using the training set;
具体地,神经网络为全卷积语义分割神经网络,该网络在医学图像的分割问题上有显著的效果;该网络主要由编码器(encoder)、解码器(decoder)和跳层连接(skipconnection)组成:编码器作用为下采样,将图像转为含有高语义信息的特征图(featuremap);解码器作用为上采样,将高语义的信息转化为像素级别分类的分数图(score map);跳层连接用于连接同一尺度下的前后特征图。网络输出为与输入图像尺寸一致的表示每个像素置信度的灰度图。根据所选择的交叉熵损失函数,计算神经网络输出的灰度图与标注的原始CT图像的损失,并将损失反向传播用于更新神经网络权重参数。Specifically, the neural network is a fully convolutional semantic segmentation neural network, which has a significant effect on the segmentation problem of medical images; the network is mainly composed of an encoder, a decoder, and a skip connection: the encoder acts as a downsampler, converting the image into a feature map containing high semantic information; the decoder acts as an upsampler, converting the high semantic information into a score map for pixel-level classification; the skip connection is used to connect the front and back feature maps at the same scale. The network output is a grayscale image representing the confidence of each pixel with the same size as the input image. According to the selected cross entropy loss function, the loss between the grayscale image output by the neural network and the annotated original CT image is calculated, and the loss is back-propagated to update the neural network weight parameters.
进一步地,在训练集的图像输入神经网络前,设计了多张相邻图片一并导入的程序,先按照图像的先后顺序排序,在将当前图像导入神经网络前,查询到当前图像的前后相邻图像,将其和当前图像一同导入神经网络的输入层,进行联合训练。从而可以降低最终结果的虚警率,使得最终的分割结果的可信度更高。Furthermore, before the training set images are input into the neural network, a program is designed to import multiple adjacent images at once. The images are sorted in order, and before the current image is input into the neural network, the adjacent images before and after the current image are queried, and the images are imported into the input layer of the neural network together with the current image for joint training. This can reduce the false alarm rate of the final result and make the final segmentation result more credible.
第一诊断模块140,用于获取二次拍摄的CT图像并进行预处理,并将处理后的图像输入训练后的神经网络,得到与输入图像尺寸一致的表示每个像素置信度的灰度图;The first diagnosis module 140 is used to obtain the second-shot CT image and perform preprocessing, and input the processed image into the trained neural network to obtain a grayscale image representing the confidence of each pixel that is consistent with the size of the input image;
具体地,医生在良好光照条件下稳定拍摄的且精度较高的CT图像并上传;获取二次拍摄的CT图像,并进行预处理,包括:图像中心裁剪(裁剪为和训练集图像一致的正方形形状)、图像压缩(将图像压缩至与训练集一致的尺寸,减少测试过程中的运算量)、图像灰度化。Specifically, doctors take stable and high-precision CT images under good lighting conditions and upload them; obtain secondary CT images and perform preprocessing, including: image center cropping (cropping to a square shape consistent with the training set image), image compression (compressing the image to a size consistent with the training set to reduce the amount of calculations during the test), and image grayscale.
第二诊断模块150,用于对所述灰度图依次进行阈值分割、形态学闭运算以及消除孔洞处理;并根据处理后的灰度图实现脑出血病灶检测以及出血量计算。The second diagnosis module 150 is used to perform threshold segmentation, morphological closing operation and hole elimination processing on the grayscale image in sequence; and to detect cerebral hemorrhage lesions and calculate the amount of bleeding based on the processed grayscale image.
具体地,对灰度图进行阈值分割处理(初步得到表示脑出血病灶的前景和表示无病灶的背景)、形态学闭运算(用于消除分割后的孤立点并融合细窄的连通区域)、消除孔洞操作(通过寻找连通域,来消除病灶前景中的孔洞,还原真实的脑出血情况),得到最终预测的脑出血图像Mask。根据一个病人的脑出血图像Mask计算出血量,并判断是否发生脑出血,当出血量大于设定的误差可接受范围时,判定为脑出血,并输出脑出血量。Specifically, the grayscale image is subjected to threshold segmentation processing (preliminarily obtaining the foreground representing the cerebral hemorrhage lesion and the background representing the lesion-free lesion), morphological closing operation (used to eliminate isolated points after segmentation and merge narrow connected areas), and hole elimination operation (by finding connected areas, the holes in the lesion foreground are eliminated to restore the real cerebral hemorrhage situation) to obtain the final predicted cerebral hemorrhage image Mask. The amount of bleeding is calculated based on the cerebral hemorrhage image Mask of a patient, and it is determined whether cerebral hemorrhage occurs. When the amount of bleeding is greater than the set acceptable error range, it is determined as cerebral hemorrhage and the amount of cerebral hemorrhage is output.
此外,可以在手机等用户设备的微信端架设封装好的辅助诊断小程序,手机微信端启动该小程序后根据交互输入患者基础信息及二次拍摄的CT图像内容,根据训练好的模型输出患者是/否脑出血和出血量计算结果等;根据小程序页面交互式的区域选择,可手动放大脑部CT不同出血点位置、出血量等信息后并输出初步诊断结论。In addition, a packaged auxiliary diagnosis applet can be set up on the WeChat side of mobile phones and other user devices. After the WeChat side of the mobile phone starts the applet, the patient's basic information and the content of the second CT image are interactively input, and the trained model is used to output whether the patient has cerebral hemorrhage and the calculation results of the amount of bleeding, etc.; according to the interactive area selection on the applet page, the location of different bleeding points on the brain CT, the amount of bleeding and other information can be manually enlarged to output the preliminary diagnosis conclusion.
本发明实施例提供的脑出血检出可视化效果图如图2所示,能够精准将出血病灶进行定位,识别后的影像中,白色区域为有脑出血病灶区域、黑色区域为无脑出血病灶区域,同时输出是/否脑出血及出血量结论。The visualization effect diagram of cerebral hemorrhage detection provided by an embodiment of the present invention is shown in Figure 2, which can accurately locate the bleeding lesions. In the identified image, the white area is the area with cerebral hemorrhage lesions, and the black area is the area without cerebral hemorrhage lesions. At the same time, the conclusion of whether there is cerebral hemorrhage and the amount of bleeding is output.
在实际应用中,本发明可以同时对脑部多种疾病进行联动诊断形成全方位的、综合全面的诊疗结果,突破现有医学各个科室独立诊疗、范围有限的局限,降低重复询医和检查的概率,诊断更加准确和全面。In practical applications, the present invention can simultaneously perform linkage diagnosis on multiple brain diseases to form a comprehensive and integrated diagnosis and treatment result, breaking through the limitations of independent diagnosis and treatment and limited scope of each department in existing medicine, reducing the probability of repeated medical consultation and examination, and making the diagnosis more accurate and comprehensive.
本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110826032.7A CN113576508B (en) | 2021-07-21 | 2021-07-21 | Cerebral hemorrhage auxiliary diagnosis system based on neural network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110826032.7A CN113576508B (en) | 2021-07-21 | 2021-07-21 | Cerebral hemorrhage auxiliary diagnosis system based on neural network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113576508A CN113576508A (en) | 2021-11-02 |
CN113576508B true CN113576508B (en) | 2024-07-09 |
Family
ID=78248798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110826032.7A Active CN113576508B (en) | 2021-07-21 | 2021-07-21 | Cerebral hemorrhage auxiliary diagnosis system based on neural network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113576508B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114049938B (en) * | 2021-11-22 | 2025-03-28 | 上海商汤善萃医疗科技有限公司 | Image detection method and related device, electronic device and storage medium |
CN114549532B (en) * | 2022-04-27 | 2022-07-08 | 珠海市人民医院 | Cerebral ischemia auxiliary analysis method and system based on medical image processing |
CN115274099B (en) * | 2022-09-26 | 2022-12-30 | 之江实验室 | Human-intelligent interactive computer-aided diagnosis system and method |
CN116309647B (en) * | 2023-04-27 | 2023-07-25 | 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) | Method for constructing craniocerebral lesion image segmentation model, image segmentation method and device |
CN117455845B (en) * | 2023-10-16 | 2025-02-14 | 北京理工大学 | Intelligent image processing method and system for acute cerebral hemorrhage CT images |
CN119131403B (en) * | 2024-11-18 | 2025-02-11 | 华中科技大学同济医学院附属同济医院 | Processing method and device of cerebral hemorrhage segmentation prediction model based on self-supervision learning |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109949309A (en) * | 2019-03-18 | 2019-06-28 | 安徽紫薇帝星数字科技有限公司 | A kind of CT image for liver dividing method based on deep learning |
CN111445457A (en) * | 2020-03-26 | 2020-07-24 | 北京推想科技有限公司 | Network model training method and device, network model identification method and device, and electronic equipment |
CN111833311A (en) * | 2020-06-18 | 2020-10-27 | 安徽农业大学 | Image recognition method based on deep learning and its application in rice disease recognition |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110503630B (en) * | 2019-07-19 | 2023-05-09 | 江苏师范大学 | Cerebral hemorrhage classifying, positioning and predicting method based on three-dimensional deep learning model |
CN113095470B (en) * | 2020-01-08 | 2024-04-23 | 字节跳动有限公司 | Training method, image processing method and device for neural network and storage medium |
CN111242925B (en) * | 2020-01-13 | 2023-08-29 | 北京妙医佳健康科技集团有限公司 | Target detection method, device and electronic equipment for CT image data |
CN112686336A (en) * | 2021-01-28 | 2021-04-20 | 杭州电子科技大学 | Burn surface of a wound degree of depth classification system based on neural network |
CN112991320B (en) * | 2021-04-07 | 2022-04-01 | 德州市人民医院 | System and method for predicting hematoma expansion risk of cerebral hemorrhage patient |
-
2021
- 2021-07-21 CN CN202110826032.7A patent/CN113576508B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109949309A (en) * | 2019-03-18 | 2019-06-28 | 安徽紫薇帝星数字科技有限公司 | A kind of CT image for liver dividing method based on deep learning |
CN111445457A (en) * | 2020-03-26 | 2020-07-24 | 北京推想科技有限公司 | Network model training method and device, network model identification method and device, and electronic equipment |
CN111833311A (en) * | 2020-06-18 | 2020-10-27 | 安徽农业大学 | Image recognition method based on deep learning and its application in rice disease recognition |
Also Published As
Publication number | Publication date |
---|---|
CN113576508A (en) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113576508B (en) | Cerebral hemorrhage auxiliary diagnosis system based on neural network | |
CN112070119B (en) | Ultrasonic section image quality control method, device and computer equipment | |
CN111862044B (en) | Ultrasonic image processing method, ultrasonic image processing device, computer equipment and storage medium | |
CN108464840B (en) | Automatic detection method and system for breast lumps | |
CN108133476B (en) | Method and system for automatically detecting pulmonary nodules | |
CN114612389B (en) | Fundus image quality evaluation method and device based on multi-source and multi-scale feature fusion | |
WO2021114817A1 (en) | Oct image lesion detection method and apparatus based on neural network, and medium | |
CN115131300B (en) | Intelligent three-dimensional diagnosis method and system for osteoarthritis based on deep learning | |
JP7638269B2 (en) | Image processing for stroke characterization | |
CN118552504A (en) | Ultrasonic image detection method and system based on artificial intelligence | |
CN114649092B (en) | Auxiliary diagnosis method and device based on semi-supervised learning and multi-scale feature fusion | |
CN115063369A (en) | Brain image detection method, computer equipment and storage medium | |
CN110021022A (en) | A kind of thyroid gland nuclear medical image diagnostic method based on deep learning | |
CN108062749A (en) | Recognition methods, device and the electronic equipment of musculus levator ani ceasma | |
CN116797828A (en) | Method and device for processing oral full-view film and readable storage medium | |
Rao et al. | OTONet: deep neural network for precise otoscopy image classification | |
Yin et al. | Image‐based remote evaluation of PASI scores with psoriasis by the YOLO‐v4 algorithm | |
Galagan et al. | Automation of polycystic ovary syndrome diagnostics through machine learning algorithms in ultrasound imaging | |
CN115274094A (en) | Liver cancer imaging combined AFP diagnosis model construction method, system and device | |
CN114612484B (en) | Retinal OCT Image Segmentation Method Based on Unsupervised Learning | |
Manokhin et al. | Intracranial Hemorrhage Segmentation Using Neural Network and Riesz Fractional Order Derivative-based Texture Enhancement | |
CN113537407B (en) | Image data evaluation processing method and device based on machine learning | |
CN115439695A (en) | Melanoma classification method and system based on CycleGAN and BAFCNN | |
CN117476219B (en) | Auxiliary method and auxiliary system for locating CT tomographic images based on big data analysis | |
CN118071745B (en) | A fracture detection method and system based on deep learning |
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 |