CN118658159A - Indirect immunofluorescence image processing method and system - Google Patents
Indirect immunofluorescence image processing method and system Download PDFInfo
- Publication number
- CN118658159A CN118658159A CN202411132326.XA CN202411132326A CN118658159A CN 118658159 A CN118658159 A CN 118658159A CN 202411132326 A CN202411132326 A CN 202411132326A CN 118658159 A CN118658159 A CN 118658159A
- Authority
- CN
- China
- Prior art keywords
- region
- interest
- cell
- grayscale
- threshold
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000010166 immunofluorescence Methods 0.000 title claims abstract description 88
- 238000003672 processing method Methods 0.000 title claims description 17
- 238000001514 detection method Methods 0.000 claims abstract description 127
- 238000000034 method Methods 0.000 claims abstract description 112
- 238000012545 processing Methods 0.000 claims abstract description 95
- 238000013145 classification model Methods 0.000 claims abstract description 24
- 238000000605 extraction Methods 0.000 claims abstract description 17
- 239000011159 matrix material Substances 0.000 claims description 30
- 230000008569 process Effects 0.000 claims description 25
- 230000006870 function Effects 0.000 claims description 24
- 230000015654 memory Effects 0.000 claims description 24
- 230000011218 segmentation Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 20
- 238000004364 calculation method Methods 0.000 claims description 19
- 238000005070 sampling Methods 0.000 claims description 19
- 241000700605 Viruses Species 0.000 claims description 18
- 238000003708 edge detection Methods 0.000 claims description 17
- 230000000877 morphologic effect Effects 0.000 claims description 9
- 230000003044 adaptive effect Effects 0.000 claims description 8
- 238000012216 screening Methods 0.000 claims description 8
- 239000000284 extract Substances 0.000 claims description 3
- 230000002441 reversible effect Effects 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 claims description 2
- 230000004044 response Effects 0.000 claims 6
- 238000010586 diagram Methods 0.000 description 34
- 238000012360 testing method Methods 0.000 description 34
- 238000002073 fluorescence micrograph Methods 0.000 description 30
- 238000012549 training Methods 0.000 description 14
- 241000701044 Human gammaherpesvirus 4 Species 0.000 description 11
- 238000004422 calculation algorithm Methods 0.000 description 10
- 230000036961 partial effect Effects 0.000 description 10
- 239000000427 antigen Substances 0.000 description 9
- 102000036639 antigens Human genes 0.000 description 9
- 108091007433 antigens Proteins 0.000 description 9
- 241000709687 Coxsackievirus Species 0.000 description 8
- 241000709661 Enterovirus Species 0.000 description 7
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 5
- 241000701076 Macacine alphaherpesvirus 1 Species 0.000 description 5
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 5
- 201000010099 disease Diseases 0.000 description 5
- 238000010606 normalization Methods 0.000 description 5
- 238000012706 support-vector machine Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 4
- 230000000717 retained effect Effects 0.000 description 4
- 241000701161 unidentified adenovirus Species 0.000 description 4
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 3
- 108060003951 Immunoglobulin Proteins 0.000 description 3
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 3
- 238000010276 construction Methods 0.000 description 3
- 238000013135 deep learning Methods 0.000 description 3
- 238000003745 diagnosis Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000011156 evaluation Methods 0.000 description 3
- 102000018358 immunoglobulin Human genes 0.000 description 3
- 239000012535 impurity Substances 0.000 description 3
- 230000035945 sensitivity Effects 0.000 description 3
- 210000002966 serum Anatomy 0.000 description 3
- 238000010200 validation analysis Methods 0.000 description 3
- 208000002454 Nasopharyngeal Carcinoma Diseases 0.000 description 2
- 206010061306 Nasopharyngeal cancer Diseases 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 229940099472 immunoglobulin a Drugs 0.000 description 2
- 238000002372 labelling Methods 0.000 description 2
- 238000007477 logistic regression Methods 0.000 description 2
- 238000013508 migration Methods 0.000 description 2
- 230000005012 migration Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 201000011216 nasopharynx carcinoma Diseases 0.000 description 2
- 238000003062 neural network model Methods 0.000 description 2
- 244000052769 pathogen Species 0.000 description 2
- 238000004445 quantitative analysis Methods 0.000 description 2
- 230000001052 transient effect Effects 0.000 description 2
- 230000003612 virological effect Effects 0.000 description 2
- 208000035473 Communicable disease Diseases 0.000 description 1
- 108010026292 Epstein-Barr viral capsid antigen Proteins 0.000 description 1
- 206010015108 Epstein-Barr virus infection Diseases 0.000 description 1
- 206010025323 Lymphomas Diseases 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 210000000234 capsid Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007635 classification algorithm Methods 0.000 description 1
- 238000007621 cluster analysis Methods 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 238000013399 early diagnosis Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000003703 image analysis method Methods 0.000 description 1
- 201000006747 infectious mononucleosis Diseases 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000012528 membrane Substances 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000001717 pathogenic effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000004451 qualitative analysis Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000002829 reductive effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007790 solid phase Substances 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
- 238000002759 z-score normalization Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/60—Type of objects
- G06V20/69—Microscopic objects, e.g. biological cells or cellular parts
- G06V20/698—Matching; Classification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/25—Determination of region of interest [ROI] or a volume of interest [VOI]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/28—Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/60—Type of objects
- G06V20/69—Microscopic objects, e.g. biological cells or cellular parts
- G06V20/695—Preprocessing, e.g. image segmentation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Investigating Or Analysing Biological Materials (AREA)
Abstract
本发明涉及一种间接免疫荧光图像的处理方法及系统,属于医学检测图像处理技术领域。所述方法包括:对间接免疫荧光图像进行目标检测以得到多个感兴趣区域;对每个感兴趣区域进行二值化处理;对每个感兴趣区域的二值化图像进行连通域检测以筛除不符合细胞特异性条件的连通域,将符合细胞特异性条件的连通域作为细胞区域并赋值为相同的灰度值以得到感兴趣区域掩膜;对每个细胞区域进行轮廓提取,基于每个细胞区域的轮廓,从细胞区域提取出预置多个目标特征的特征值;以及基于细胞区域集合中预置数量的细胞区域的目标特征值构建分类模型输入量,经所述分类模型得到检测样本的抗体类别为阳性或阴性。本发明实施例提高了抗体检测效率,降低了误判率。
The present invention relates to a method and system for processing indirect immunofluorescence images, and belongs to the technical field of medical detection image processing. The method comprises: performing target detection on the indirect immunofluorescence image to obtain multiple regions of interest; performing binarization processing on each region of interest; performing connected domain detection on the binarized image of each region of interest to screen out connected domains that do not meet cell-specific conditions, and taking the connected domains that meet the cell-specific conditions as cell regions and assigning the same grayscale value to obtain a mask of the region of interest; performing contour extraction on each cell region, and extracting characteristic values of preset multiple target features from the cell region based on the contour of each cell region; and constructing a classification model input based on the target characteristic values of a preset number of cell regions in a cell region set, and obtaining the antibody category of the detected sample as positive or negative through the classification model. The embodiment of the present invention improves the efficiency of antibody detection and reduces the misjudgment rate.
Description
技术领域Technical Field
本发明涉及一种医学检测图像处理技术领域,特别地涉及一种间接免疫荧光图像的处理方法及系统。The present invention relates to the technical field of medical detection image processing, and in particular to a method and system for processing indirect immunofluorescence images.
背景技术Background Art
间接免疫荧光法是一种广泛应用于临床抗体检测的重要技术,在多种疾病的筛查与诊断中具有重要意义和价值。这种方法用于病原体相关抗体的检测时,通常以细胞为基质,例如,爱泼斯坦-巴尔病毒(Epstein-Barr Virus,简称EBV)、柯萨奇病毒(Coxsackievirus,简称CV)和肠道病毒(Enterovirus,简称EV)等。Indirect immunofluorescence is an important technique widely used in clinical antibody detection, and has important significance and value in the screening and diagnosis of various diseases. This method is usually used as a cell matrix when used to detect pathogen-related antibodies, such as Epstein-Barr Virus (EBV), Coxsackievirus (CV), and Enterovirus (EV).
EBV感染与多种疾病相关,如传染性单核细胞增多症、淋巴瘤和鼻咽癌等。通过间接免疫荧光法检测EBV衣壳抗原抗体(如Viral Capsid Antigen -Immunoglobulin A,简称VCA-IgA)和早期抗原抗体(如Early Antigen -Immunoglobulin A,简称EA-IgA)已成为鼻咽癌筛查和诊断的重要手段。同样, CV和EA作为常见病原体,可引起多种感染性疾病。另外,检测柯萨奇B病毒抗体(如Coxsackievirus B- Immunoglobulin M,简称CBV-IgM)和肠道病毒抗体(如EV-IgM和EV-IgG)等对这些疾病的早期诊断和治疗具有重要意义。EBV infection is associated with a variety of diseases, such as infectious mononucleosis, lymphoma, and nasopharyngeal carcinoma. The detection of EBV capsid antigen antibodies (such as Viral Capsid Antigen -Immunoglobulin A, referred to as VCA-IgA) and early antigen antibodies (such as Early Antigen -Immunoglobulin A, referred to as EA-IgA) by indirect immunofluorescence has become an important means of screening and diagnosis of nasopharyngeal carcinoma. Similarly, CV and EA, as common pathogens, can cause a variety of infectious diseases. In addition, the detection of Coxsackie B virus antibodies (such as Coxsackievirus B- Immunoglobulin M, referred to as CBV-IgM) and enterovirus antibodies (such as EV-IgM and EV-IgG) is of great significance for the early diagnosis and treatment of these diseases.
间接免疫荧光法的基本原理如下:将含有特定抗原成分(如前述VCA、EA等)的细胞制成固相检测基质,将患者血清样本与之反应,然后加入荧光标记的抗人免疫球蛋白抗体。如果患者血清中存在目标抗体(如前述的VCA-IgA、EA-IgA、CBV-IgM、EV-IgM或EV-IgG),它们会与基质上的抗原成分结合,进而与荧光标记抗体结合,形成特异性荧光特征。通过观察这些特征,可以判断目标抗体的存在与否。The basic principle of indirect immunofluorescence is as follows: cells containing specific antigen components (such as the aforementioned VCA, EA, etc.) are made into a solid phase detection matrix, the patient serum sample is reacted with it, and then fluorescently labeled anti-human immunoglobulin antibodies are added. If there are target antibodies in the patient's serum (such as the aforementioned VCA-IgA, EA-IgA, CBV-IgM, EV-IgM or EV-IgG), they will bind to the antigen components on the matrix, and then bind to the fluorescently labeled antibodies to form specific fluorescent characteristics. By observing these characteristics, the presence or absence of the target antibody can be determined.
目前在临床应用中,常用两种方式进行判读:一种是通过与显微镜相连接的相机拍摄间接免疫荧光图片,由检验人员进行人工判读;二是由经验丰富的技术人员直接在显微镜下观察判读。这两种方法都依赖于人工辨识荧光和形态特征,以确定检测样本抗体的阴阳性以及滴度。Currently, there are two common methods for interpretation in clinical applications: one is to take indirect immunofluorescence images with a camera connected to a microscope, and then have the test personnel manually interpret them; the other is to have experienced technicians directly observe and interpret them under a microscope. Both methods rely on manual identification of fluorescence and morphological characteristics to determine the positive and negative nature and titer of the antibodies in the test samples.
然而,这种人工判读方法存在一些局限性。由于不同检测样本和不同实验条件下,特异荧光及形态特征可能存在较大波动,人工定量和定性分析容易受到主观因素影响。尤其是当检测样本中包含非特异性细胞和杂质时,荧光特征可能不够显著,检测结果的准确性高度依赖技术人员的专业水平和判读经验。这不仅可能导致较高的误判率,也降低了检测效率。However, this manual interpretation method has some limitations. Due to the large fluctuations in specific fluorescence and morphological characteristics in different test samples and under different experimental conditions, manual quantitative and qualitative analysis is easily affected by subjective factors. Especially when the test sample contains non-specific cells and impurities, the fluorescence characteristics may not be significant enough, and the accuracy of the test results is highly dependent on the professional level and interpretation experience of the technicians. This may not only lead to a higher misjudgment rate, but also reduce the detection efficiency.
因此,开发更客观、准确和高效的间接免疫荧光图像分析方法具有重要意义。Therefore, it is of great significance to develop more objective, accurate and efficient indirect immunofluorescence image analysis methods.
发明内容Summary of the invention
针对现有技术中存在的技术问题,本发明提出了一种间接免疫荧光图像的处理方法及系统,用以提高抗体检测效率,降低误判率。In view of the technical problems existing in the prior art, the present invention proposes a method and system for processing indirect immunofluorescence images to improve the efficiency of antibody detection and reduce the misjudgment rate.
为了解决上述的技术问题,根据本发明的一个方面,本发明提供了一种间接免疫荧光图像的处理方法,所述间接免疫荧光图像为特定病毒的抗体检测样本的荧光图像,所述方法包括:In order to solve the above technical problems, according to one aspect of the present invention, the present invention provides a method for processing an indirect immunofluorescence image, wherein the indirect immunofluorescence image is a fluorescent image of an antibody detection sample of a specific virus, and the method comprises:
对间接免疫荧光图像进行目标检测以得到多个感兴趣区域,其中,每个感兴趣区域包括疑似细胞区域和背景区域;Performing target detection on the indirect immunofluorescence image to obtain multiple regions of interest, wherein each region of interest includes a suspected cell region and a background region;
对每个感兴趣区域进行二值化处理以得到二值化图像,其中二值化图像的灰度值分别为第一灰度值和第二灰度值,且第一灰度值和第二灰度值不相等;Performing binarization processing on each region of interest to obtain a binarized image, wherein the grayscale values of the binarized image are respectively a first grayscale value and a second grayscale value, and the first grayscale value and the second grayscale value are not equal;
对每个感兴趣区域的二值化图像进行连通域检测,以筛除不符合细胞特异性条件的连通域,将符合细胞特异性条件的连通域作为细胞区域并赋值为相同的灰度值以得到感兴趣区域掩膜,其中,感兴趣区域掩膜中的细胞区域像素点和背景区域像素点的灰度值分别为第一灰度值和第二灰度值;Performing a connected domain detection on the binary image of each region of interest to screen out connected domains that do not meet the cell-specific conditions, and taking the connected domains that meet the cell-specific conditions as cell regions and assigning them the same grayscale value to obtain a region of interest mask, wherein the grayscale values of the cell region pixel points and the background region pixel points in the region of interest mask are the first grayscale value and the second grayscale value, respectively;
对每个细胞区域进行轮廓提取,基于每个细胞区域的轮廓,从所述细胞区域提取出多个预置目标特征的特征值;以及Performing contour extraction on each cell region, and extracting feature values of a plurality of preset target features from the cell region based on the contour of each cell region; and
基于细胞区域集合中预置数量的细胞区域的多个目标特征的特征值构建模型输入量,将所述模型输入量输入给训练完成的分类模型,经所述分类模型得到所述间接免疫荧光图像对应检测样本的抗体类别为阳性或阴性。A model input is constructed based on the characteristic values of multiple target features of a preset number of cell regions in the cell region set, and the model input is input into a trained classification model. The classification model determines whether the antibody category of the indirect immunofluorescence image corresponding to the detection sample is positive or negative.
根据本发明的另一个方面,本发明还提供了一种间接免疫荧光图像的处理系统,其中包括目标检测模块、二值化模块、连通域检测模块、掩膜模块、特征提取模块以及分类模块,其中,所述目标检测模块经配置以对间接免疫荧光图像进行目标检测以得到多个感兴趣区域,其中,每个感兴趣区域包括疑似细胞区域和背景区域;所述二值化模块与所述目标检测模块相连接,经配置以对每个感兴趣区域进行二值化处理以得到二值化图像,其中,二值化图像的灰度值分别为第一灰度值和第二灰度值,且第一灰度值和第二灰度值不相等;所述连通域检测模块与所述二值化模块相连接,经配置以对每个感兴趣区域的二值化图像进行连通域检测,以筛除不符合细胞特异性条件的连通域;所述掩膜模块与所述连通域检测模块相连接,经配置以将符合细胞特异性条件的连通域作为细胞区域并赋值为相同的灰度值,以得到感兴趣区域掩膜,其中,感兴趣区域掩膜中的细胞区域像素点和背景区域像素点的灰度值分别为第一灰度值和第二灰度值;所述特征提取模块与所述掩膜模块相连接,经配置以对每个细胞区域进行轮廓提取;基于每个细胞区域的轮廓,从所述细胞区域提取预置的多个目标特征的特征值;所述分类模块与所述特征提取模块相连接,经配置以基于细胞区域集合中预置数量的细胞区域的多个目标特征的特征值构建模型输入量,将所述模型输入量输入给训练完成的分类模型,经所述分类模型得到所述间接免疫荧光图像对应检测样本的抗体类别为阳性或阴性。According to another aspect of the present invention, the present invention also provides an indirect immunofluorescence image processing system, which includes a target detection module, a binarization module, a connected domain detection module, a mask module, a feature extraction module and a classification module, wherein the target detection module is configured to perform target detection on the indirect immunofluorescence image to obtain multiple regions of interest, wherein each region of interest includes a suspected cell region and a background region; the binarization module is connected to the target detection module, and is configured to perform binarization processing on each region of interest to obtain a binary image, wherein the grayscale values of the binary image are respectively a first grayscale value and a second grayscale value, and the first grayscale value and the second grayscale value are not equal; the connected domain detection module is connected to the binarization module, and is configured to perform connected domain detection on the binary image of each region of interest to screen out connected domains that do not meet cell-specific conditions; The mask module is connected to the connected domain detection module, and is configured to take the connected domain that meets the cell-specific conditions as the cell region and assign the same grayscale value to obtain the region of interest mask, wherein the grayscale values of the cell region pixel points and the background region pixel points in the region of interest mask are the first grayscale value and the second grayscale value respectively; the feature extraction module is connected to the mask module, and is configured to perform contour extraction on each cell region; based on the contour of each cell region, the feature values of multiple preset target features are extracted from the cell region; the classification module is connected to the feature extraction module, and is configured to construct a model input based on the feature values of multiple target features of a preset number of cell regions in the cell region set, and the model input is input to the trained classification model, and the classification model obtains the antibody category of the indirect immunofluorescence image corresponding to the detection sample as positive or negative.
根据本发明的另一个方面,本发明还提供了一种电子设备,其中包括处理器和存储器,所述存储器上存储有计算机程序指令集,在所述处理器执行存储器上的计算机程序指令集时前述的间接免疫荧光图像的处理方法。According to another aspect of the present invention, the present invention also provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program instruction set, and when the processor executes the computer program instruction set on the memory, the aforementioned indirect immunofluorescence image processing method is performed.
根据本发明的另一个方面,本发明还提供了一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序指令集,所述计算机程序指令集被处理器执行时实现前述的间接免疫荧光图像的处理方法。According to another aspect of the present invention, the present invention also provides a computer-readable storage medium, wherein a computer program instruction set is stored on the computer-readable storage medium, and when the computer program instruction set is executed by a processor, the aforementioned indirect immunofluorescence image processing method is implemented.
根据本发明的另一个方面,本发明还提供了一种计算机程序产品,其包括计算机程序指令集,所述计算机程序指令集被处理器执行时实现前述的间接免疫荧光图像的处理方法。According to another aspect of the present invention, the present invention further provides a computer program product, which includes a computer program instruction set, and when the computer program instruction set is executed by a processor, the aforementioned indirect immunofluorescence image processing method is implemented.
本发明提供的处理方式代替了人工对检测样本的荧光图片的判读,有效地解决了人工判读带来的缺陷,处理速度快、检测精度高,有效地提高了相关疾病患者的诊断效率。The processing method provided by the present invention replaces the manual interpretation of the fluorescent images of the test samples, effectively solves the defects caused by manual interpretation, has fast processing speed and high detection accuracy, and effectively improves the diagnosis efficiency of patients with related diseases.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
下面,将结合附图对本发明的优选实施方式进行进一步详细的说明,其中:The preferred embodiments of the present invention will be further described in detail below with reference to the accompanying drawings, wherein:
图1是以VCA为抗原的EBV抗体检测荧光图像局部示意图;FIG1 is a partial schematic diagram of a fluorescent image of EBV antibody detection using VCA as an antigen;
图2是柯萨奇A病毒的抗体检测荧光图像局部示意图;FIG2 is a partial schematic diagram of a fluorescent image of antibody detection of Coxsackie A virus;
图3是根据本发明一个实施例的间接免疫荧光图像的处理系统的设备连接示意图;FIG3 is a schematic diagram of device connections of an indirect immunofluorescence image processing system according to an embodiment of the present invention;
图4是根据本发明一个实施例的间接免疫荧光图像的处理方法流程图;FIG4 is a flow chart of a method for processing an indirect immunofluorescence image according to an embodiment of the present invention;
图5是根据本发明一个实施例对间接免疫荧光图像进行目标检测以得到多个ROI的方法流程图;FIG5 is a flow chart of a method for performing target detection on an indirect immunofluorescence image to obtain multiple ROIs according to an embodiment of the present invention;
图6是根据本发明一个实施例确定每个初步感兴趣区域的新区域置信度的方法的流程图;6 is a flow chart of a method for determining a new region confidence level for each preliminary region of interest according to an embodiment of the present invention;
图7是根据本发明一个实施例的经过目标检测步骤输出的VCA-IgA荧光图像局部示意图;FIG7 is a partial schematic diagram of a VCA-IgA fluorescence image outputted through a target detection step according to an embodiment of the present invention;
图8是根据本发明第二个实施例的经过目标检测步骤输出的腺病毒抗体的荧光图像局部示意图;FIG8 is a partial schematic diagram of a fluorescent image of an adenovirus antibody output after a target detection step according to a second embodiment of the present invention;
图9是根据本发明第三个实施例的经过目标检测步骤输出的柯萨奇B病毒CBV-IgM的荧光图像局部示意图;9 is a partial schematic diagram of a fluorescent image of Coxsackie B virus CBV-IgM outputted after a target detection step according to a third embodiment of the present invention;
图10是根据本发明第四个实施例的经过目标检测步骤输出的肠道病毒EV-IgM的荧光图像局部示意图;10 is a partial schematic diagram of a fluorescent image of enterovirus EV-IgM outputted after a target detection step according to a fourth embodiment of the present invention;
图11是根据本发明一个实施例对每个感兴趣区域进行二值化处理以得到对应的感兴趣区域的二值化图像的方法流程图;FIG11 is a flow chart of a method for performing binarization processing on each region of interest to obtain a binarized image of the corresponding region of interest according to an embodiment of the present invention;
图12是根据本发明一个实施例在进行二值化处理时的进一步处理方法流程图;FIG12 is a flow chart of a further processing method when performing binarization processing according to an embodiment of the present invention;
图13是根据本发明一个实施例的确定第一方差阈值的方法流程图;FIG13 is a flow chart of a method for determining a first variance threshold according to an embodiment of the present invention;
图14是根据本发明的一个实施例的对柯萨奇病毒抗体的荧光图像进行处理后得到的图像示意图;FIG14 is a schematic diagram of an image obtained after processing a fluorescent image of a Coxsackie virus antibody according to an embodiment of the present invention;
图15是根据本发明的一个实施例的对EBV的VCA-IgA荧光图像进行处理后得到的图像示意图;FIG15 is a schematic diagram of an image obtained after processing a VCA-IgA fluorescence image of EBV according to an embodiment of the present invention;
图16是根据本发明一个实施例的判断一个连通域是否符合细胞特异性条件的方法流程图;FIG16 is a flow chart of a method for determining whether a connected domain meets cell-specific conditions according to an embodiment of the present invention;
图17是根据本发明一个实施例的基于细胞区域轮廓的细胞形状特征的示意图;FIG17 is a schematic diagram of cell shape features based on cell region contours according to one embodiment of the present invention;
图18是根据本发明一个实施例的基于细胞区域轮廓的细胞边缘形态特征的示意图;FIG18 is a schematic diagram of cell edge morphological features based on cell region contours according to one embodiment of the present invention;
图19是根据本发明一个实施例的基于细胞区域轮廓的荧光规律特征的示意图;FIG19 is a schematic diagram of fluorescence regularity characteristics based on cell region contours according to an embodiment of the present invention;
图20是根据本发明一个实施例的滴度等级的分类方法流程图;FIG20 is a flow chart of a titer grade classification method according to one embodiment of the present invention;
图21是根据本发明一个实施例在进行滴度等级分类之前筛除ROI的方法流程图;FIG21 is a flow chart of a method for screening out ROIs before titer grade classification according to one embodiment of the present invention;
图22是根据本发明的一个实施例的间接免疫荧光图像的处理系统原理框图;以及FIG22 is a principle block diagram of an indirect immunofluorescence image processing system according to an embodiment of the present invention; and
图23是根据本发明一个实施例的电子设备的硬件结构原理示意图。FIG. 23 is a schematic diagram of the hardware structure principle of an electronic device according to an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
在以下的详细描述中,可以参看作为本申请一部分用来说明本申请的特定实施例的各个说明书附图。在附图中,相似的附图标记在不同图式中描述大体上类似的组件。本申请的各个特定实施例在以下进行了足够详细的描述,使得具备本领域相关知识和技术的普通技术人员能够实施本申请的技术方案。应当理解,还可以利用其它实施例或者对本申请的实施例进行结构、逻辑或者电性的改变。In the following detailed description, reference may be made to the various specification drawings that are part of the present application and are used to illustrate specific embodiments of the present application. In the accompanying drawings, similar reference numerals describe substantially similar components in different figures. The various specific embodiments of the present application are described below in sufficient detail so that a person of ordinary skill in the art with relevant knowledge and skills in the art can implement the technical solutions of the present application. It should be understood that other embodiments may also be used or structural, logical or electrical changes may be made to the embodiments of the present application.
通过临床发现,在应用于病毒抗体检测的一类间接免疫荧光图像中,细胞的荧光特征,尤其是阳性细胞的荧光特征显著区别于图像背景。如图1和图2所示,图1为以VCA为抗原的EBV抗体检测荧光图像局部示意图,其中的荧光强度大的点状区域对应一个阳性细胞区域,荧光强度弱的区域对应为背景区域。图2是柯萨奇A病毒的抗体检测荧光图像局部示意图,其中具有强荧光边缘的区域对应一个阳性细胞区域,其他荧光强度弱的区域对应为背景区域。然而,在以细胞为基质的病毒抗体检测中,除了阳性细胞表现出较强的特异性荧光特征外,一些假阳细胞和杂质也可能会产生较强的荧光信号,从而对细胞的识别和阴阳性的判断造成干扰。在人工判断时高度依赖技术人员的专业水平和判读经验,易产生误判。针对于此,本发明基于深度学习技术从荧光图像中精准地识别细胞区域,利用荧光图像中阳性细胞的特点从细胞区域中提取出相应的特征,从而准确地判断出抗体的阴阳性及检测样本的滴度等级。Through clinical findings, in a class of indirect immunofluorescence images used for virus antibody detection, the fluorescence characteristics of cells, especially the fluorescence characteristics of positive cells, are significantly different from the image background. As shown in Figures 1 and 2, Figure 1 is a local schematic diagram of a fluorescence image of EBV antibody detection using VCA as an antigen, in which a dotted area with large fluorescence intensity corresponds to a positive cell area, and an area with weak fluorescence intensity corresponds to a background area. Figure 2 is a local schematic diagram of a fluorescence image of antibody detection of Coxsackie A virus, in which an area with a strong fluorescence edge corresponds to a positive cell area, and other areas with weak fluorescence intensity correspond to background areas. However, in virus antibody detection using cells as a matrix, in addition to positive cells showing strong specific fluorescence characteristics, some false positive cells and impurities may also produce strong fluorescence signals, thereby interfering with the identification of cells and the judgment of positive and negative properties. It is highly dependent on the professional level and interpretation experience of technicians when making manual judgments, and is prone to misjudgment. In view of this, the present invention accurately identifies cell areas from fluorescence images based on deep learning technology, and extracts corresponding features from cell areas using the characteristics of positive cells in fluorescence images, thereby accurately judging the positive and negative properties of antibodies and the titer level of the test sample.
参见图3,图3是根据本发明一个实施例的间接免疫荧光图像的处理系统的设备连接示意图。在本实施例中,检测系统由一台或多台计算设备101实现,所述计算设备101例如为台式电脑、膝上型电脑或平板电脑,所述计算设备101或者连接荧光显微镜102,或者连接其他存储设备103或者通过网络104与其他设备相连接,所述计算设备101从这些设备中获得基于间接免疫荧光法制备的检测样本的荧光图片。例如,当所述计算设备101与荧光显微镜102相连接时,可以实时获取检测样本的荧光图片,具体的操作步骤例如为:首先将患者血清滴加到含有特定抗原的玻片上,再向其中加入采用荧光标记的抗人免疫球蛋白从而得到检测样本载片;而后将所述检测样本载片放置在连接有相机的荧光显微镜102下;接着调整好光路;而后控制相机随机选取1~8个视野进行荧光片拍摄,进而得到同一检测样本的1-8幅荧光图片。荧光显微镜102将得到的荧光图片发送给计算设备101。另外,检测样本的荧光图片也可以通过与其他计算设备连接的荧光显微镜拍摄,并存储到存储设备103中,再将所述存储设备103连接到计算设备101,由计算设备101从存储设备103中读取检测样本荧光图片。再有,所述计算设备101也可以通过网络104与其他设备连接,从其他设备中读取或请求得到所要处理的检测样本荧光图片。本发明通过由计算设备101实施的处理系统实现了本发明提供的间接免疫荧光图像的处理方法,通过对基于间接免疫荧光法制备的检测样本荧光图像的处理确定检测样本的抗体为阴性或阳性。本发明提供的处理方式代替了人工对检测样本的荧光图片的判读,有效地解决了人工判读带来的缺陷,处理速度快、检测精度高,有效地提高了相关疾病患者的诊断效率。See Figure 3, which is a schematic diagram of the device connection of the indirect immunofluorescence image processing system according to an embodiment of the present invention. In this embodiment, the detection system is implemented by one or more computing devices 101, and the computing device 101 is, for example, a desktop computer, a laptop computer or a tablet computer. The computing device 101 is either connected to a fluorescent microscope 102, or connected to other storage devices 103 or connected to other devices through a network 104, and the computing device 101 obtains a fluorescent image of the test sample prepared based on the indirect immunofluorescence method from these devices. For example, when the computing device 101 is connected to the fluorescent microscope 102, the fluorescent image of the test sample can be obtained in real time. The specific operation steps are, for example: first, the patient's serum is dripped onto a glass slide containing a specific antigen, and then anti-human immunoglobulin labeled with fluorescent markers is added thereto to obtain a test sample slide; then the test sample slide is placed under a fluorescent microscope 102 connected to a camera; then the optical path is adjusted; then the camera is controlled to randomly select 1 to 8 fields of view for fluorescent film shooting, and then 1 to 8 fluorescent images of the same test sample are obtained. The fluorescence microscope 102 sends the obtained fluorescence image to the computing device 101. In addition, the fluorescence image of the test sample can also be taken by a fluorescence microscope connected to other computing devices and stored in the storage device 103, and then the storage device 103 is connected to the computing device 101, and the computing device 101 reads the fluorescence image of the test sample from the storage device 103. In addition, the computing device 101 can also be connected to other devices through the network 104, and read or request the fluorescence image of the test sample to be processed from other devices. The present invention implements the processing method of the indirect immunofluorescence image provided by the present invention through the processing system implemented by the computing device 101, and determines whether the antibody of the test sample is negative or positive by processing the fluorescence image of the test sample prepared based on the indirect immunofluorescence method. The processing method provided by the present invention replaces the manual interpretation of the fluorescence image of the test sample, effectively solves the defects caused by manual interpretation, has fast processing speed and high detection accuracy, and effectively improves the diagnostic efficiency of patients with related diseases.
图4是根据本发明一个实施例的间接免疫荧光图像的处理方法流程图,结合图3,图4所示方法可由图1中的计算设备101实施,本实施例中的间接免疫荧光图像为特定病毒的检测样本的荧光图像,所述方法包括:FIG4 is a flow chart of a method for processing an indirect immunofluorescence image according to an embodiment of the present invention. In combination with FIG3 , the method shown in FIG4 can be implemented by the computing device 101 in FIG1 . The indirect immunofluorescence image in this embodiment is a fluorescent image of a detection sample of a specific virus. The method includes:
步骤S1,对间接免疫荧光图像进行目标检测以得到多个感兴趣区域(the Regionsof Interest,简称ROI),其中,每个ROI包括疑似细胞区域和背景区域。Step S1, performing target detection on the indirect immunofluorescence image to obtain a plurality of regions of interest (ROIs), wherein each ROI includes a suspected cell region and a background region.
步骤S2,对每个ROI进行二值化处理以得到对应的二值化图像,二值化图像中的灰度值分别为第一灰度值和第二灰度值,第一灰度值和第二灰度值不相等。Step S2, performing binarization processing on each ROI to obtain a corresponding binarized image, wherein the grayscale values in the binarized image are respectively a first grayscale value and a second grayscale value, and the first grayscale value and the second grayscale value are not equal.
步骤S3,对每个感兴趣区域的二值化图像进行连通域检测以筛除不符合细胞特异性条件的连通域。Step S3, performing connected domain detection on the binary image of each region of interest to filter out connected domains that do not meet cell-specific conditions.
步骤S4,将符合细胞特异性条件的连通域作为细胞区域并赋值为相同的灰度值以得到感兴趣区域掩膜(简称为ROI掩膜)。In step S4, the connected domains meeting the cell-specific conditions are regarded as cell regions and assigned the same grayscale value to obtain a region of interest mask (abbreviated as ROI mask).
步骤S5,对每个ROI掩膜中的细胞区域进行轮廓提取。Step S5, extracting the contour of each cell region in the ROI mask.
步骤S6,基于每个细胞区域的轮廓,从所述细胞区域提取出预置的多个目标特征的特征值。Step S6: based on the contour of each cell region, extracting feature values of a plurality of preset target features from the cell region.
步骤S7,基于预置数量的细胞区域的多个目标特征的特征值构建模型输入量,将所述模型输入量输入给训练完成的分类模型,经所述分类模型得到所述间接免疫荧光图像对应检测样本的抗体类别为阳性或阴性。其中,所述分类模型为经过标注的样本训练得到的二分类模型,其中所述样本由从间接免疫荧光图像中提取的多个细胞区域的多个目标特征和类别构成,所述分类模型的输出值表示间接免疫荧光图像对应检测样本的抗体类别为阳性或阴性。Step S7, constructing a model input based on the feature values of multiple target features of a preset number of cell regions, inputting the model input into the trained classification model, and obtaining the antibody category of the indirect immunofluorescence image corresponding to the detection sample as positive or negative through the classification model. The classification model is a binary classification model obtained by training with labeled samples, wherein the sample is composed of multiple target features and categories of multiple cell regions extracted from the indirect immunofluorescence image, and the output value of the classification model indicates whether the antibody category of the indirect immunofluorescence image corresponding to the detection sample is positive or negative.
其中,在通过图3所示的设备得到荧光图片后,为了方便后续的处理,对该荧光图片进行预处理以提升图像质量的稳定性,例如对图片尺寸进行裁剪得到规定尺寸的图像(以下称为荧光图像),而后对荧光图像的像素值进行归一化处理,随后存储为能够用于图4所示方法进行处理的图像文件,或者直接通过图4所示的方法进行处理以确定出对应检测样本的抗体的阴阳性。其中,归一化处理可以采用任意一种算法,例如Min-Max归一化算法、z-score标准化算法、log对数函数归一化算法、反正切函数归一化算法等等,本领域的普通技术人员可以基于应用习惯选择任意一种,在此不再赘述。After obtaining the fluorescence image through the device shown in FIG3 , in order to facilitate subsequent processing, the fluorescence image is preprocessed to improve the stability of the image quality, for example, the image size is cropped to obtain an image of a specified size (hereinafter referred to as a fluorescence image), and then the pixel values of the fluorescence image are normalized, and then stored as an image file that can be used for processing by the method shown in FIG4 , or directly processed by the method shown in FIG4 to determine the positive and negative of the antibody corresponding to the test sample. Among them, the normalization process can use any algorithm, such as the Min-Max normalization algorithm, the z-score normalization algorithm, the log function normalization algorithm, the inverse tangent function normalization algorithm, etc., and ordinary technicians in this field can choose any one based on application habits, which will not be repeated here.
在一个实施例中,在步骤S1中采用基于深度学习的神经网络模型对间接免疫荧光图像进行目标检测。所述神经网络模型为一种目标检测模型,可以采用一阶段检测网络或二阶段检测网络,一阶段检测网络对应的算法例如为YOLO(You Only Look Once)、SSD(Single Shot MultiBox Detector),二阶段检测网络对应的算法例如为Faster R-CNN(Faster Region-based Convolutional Neural Network),Mask R-CNN、Cascade R-CNN等。经过前述算法对图像的处理,能够从图像中检测出包含细胞区域的矩形区域,即感兴趣区域(ROI),并输出相应的描述信息。在一个实施例中,所述的描述信息包括区域坐标、区域类别及区域置信度,其中的区域坐标值由区域左上角坐标、区域宽度和高度共四个数值构成,区域类别为从数字0开始的整数,代表了目标检测模型对图像进行检测时对该目标的分类类别,区域置信度例如为0-1之间的数字,数值越大表示该ROI属于该类别的概率越大,可信度越高。本发明的目标检测模型应用的网络能够满足密集目标场景下的鲁棒性能,并能够有效进行多尺度细胞特征提取,满足了泛化能力的要求,通过对目标检测模型进行针对性训练,可以得到适用于特定病毒抗体检测的模型。例如,使用EBV抗体免疫荧光图片标注的数据训练模型,可以得到适用于EBV抗体检测(如VCA-IgA、EA-IgA)的目标检测模型;使用柯萨奇病毒的人工标注数据,则可以得到适用于柯萨奇病毒抗体检测的模型。这种训练方法使模型能针对特定病毒抗体的检测进行优化。值得注意的是,基于已有的模型(如EBV抗体检测模型),通过引入少量其它病毒抗体的标注数据,可以快速完成模型迁移和更新。这种迁移学习方法大大提高了模型的适应性和效率,使其能够相对容易地扩展到其他病毒抗体的检测,如柯萨奇A病毒抗体检测、柯萨奇B病毒抗体检测、肠道病毒抗体检测、腺病毒抗体检测等等。In one embodiment, in step S1, a neural network model based on deep learning is used to detect targets in indirect immunofluorescence images. The neural network model is a target detection model, which can use a one-stage detection network or a two-stage detection network. The algorithms corresponding to the one-stage detection network are, for example, YOLO (You Only Look Once), SSD (Single Shot MultiBox Detector), and the algorithms corresponding to the two-stage detection network are, for example, Faster R-CNN (Faster Region-based Convolutional Neural Network), Mask R-CNN, Cascade R-CNN, etc. After the image is processed by the aforementioned algorithm, a rectangular area containing a cell area, that is, a region of interest (ROI), can be detected from the image, and the corresponding description information is output. In one embodiment, the description information includes region coordinates, region categories, and region confidence, wherein the region coordinate value is composed of four values of the coordinates of the upper left corner of the region, the width of the region, and the height. The region category is an integer starting from the number 0, which represents the classification category of the target when the target detection model detects the image. The region confidence is, for example, a number between 0 and 1. The larger the value, the greater the probability that the ROI belongs to the category, and the higher the credibility. The network used in the target detection model of the present invention can meet the robust performance in dense target scenarios, and can effectively perform multi-scale cell feature extraction, meet the requirements of generalization ability, and by conducting targeted training on the target detection model, a model suitable for specific virus antibody detection can be obtained. For example, using the data training model annotated with EBV antibody immunofluorescence images, a target detection model suitable for EBV antibody detection (such as VCA-IgA, EA-IgA) can be obtained; using the manually annotated data of Coxsackie virus, a model suitable for Coxsackie virus antibody detection can be obtained. This training method enables the model to be optimized for the detection of specific virus antibodies. It is worth noting that based on the existing model (such as the EBV antibody detection model), by introducing a small amount of annotated data of other virus antibodies, the model migration and update can be completed quickly. This migration learning method greatly improves the adaptability and efficiency of the model, so that it can be relatively easily extended to the detection of other virus antibodies, such as Coxsackie A virus antibody detection, Coxsackie B virus antibody detection, enterovirus antibody detection, adenovirus antibody detection, etc.
在一个实施例中,为了训练前述的目标检测模型,首先收集数量足够多的、基于特定病毒抗体检测而拍摄的间接免疫荧光图片,而后对荧光图片的图像尺寸进行统一裁剪和归一化处理,之后由临床检验专家为处理后的荧光图像赋予阴性或阳性的标签。其中,对于标记为阳性标签的荧光图像包含有足够数量的特异性荧光细胞。而后对标记为阳性标签的图像进行人工地细胞标注,包括人工采用矩形框框出细胞区域,并根据荧光特征而标注该区域类别,例如,将尺寸足够大的细胞归为一类,尺寸小的细胞归为另一类;或者将荧光形式相近的细胞归为一类,例如,荧光强度大的细胞归为一类,荧光强度小的归为另一类等等。本发明通过对样本的详细标注,既有利于目标检测时得到理想的ROI,也有利于后续特征构建的指向性。标注完成后的每一幅荧光图像作为一个样本,所述样本中包括了多个ROI及对应的区域类别,从而得到样本集。In one embodiment, in order to train the aforementioned target detection model, a sufficient number of indirect immunofluorescence images taken based on specific virus antibody detection are first collected, and then the image size of the fluorescence images is uniformly cropped and normalized, and then the processed fluorescence images are assigned negative or positive labels by clinical laboratory experts. Among them, the fluorescence image marked with a positive label contains a sufficient number of specific fluorescent cells. Then the image marked with a positive label is manually labeled with cells, including manually using a rectangular frame to frame the cell area, and annotating the area category according to the fluorescence characteristics, for example, cells with a sufficiently large size are classified into one category, and cells with a small size are classified into another category; or cells with similar fluorescence forms are classified into one category, for example, cells with large fluorescence intensity are classified into one category, and cells with small fluorescence intensity are classified into another category, etc. The present invention is not only conducive to obtaining an ideal ROI during target detection, but also conducive to the directionality of subsequent feature construction through detailed labeling of samples. Each fluorescent image after labeling is taken as a sample, and the sample includes multiple ROIs and corresponding area categories, thereby obtaining a sample set.
而后将样本集划分为训练集和验证集,例如将样本集中的80%样本划分为训练集,将样本集中的20%样本划分为验证集。基于训练集的样本训练神经网络,并在验证集上进行模型性能评估,当模型损失收敛并符合性能评估要求时,即得到了用于推荐ROI的目标检测模型。Then divide the sample set into a training set and a validation set, for example, 80% of the samples in the sample set are divided into a training set, and 20% of the samples in the sample set are divided into a validation set. The neural network is trained based on the samples in the training set, and the model performance is evaluated on the validation set. When the model loss converges and meets the performance evaluation requirements, the object detection model for recommending ROI is obtained.
当以前述方法对一种特定病毒检测样本训练得到目标检测模型后,可以将其模型参数迁移至另一种特定病毒检测样本的目标检测模型,通过少量的样本即可完成训练。After training a target detection model for a specific virus detection sample using the aforementioned method, its model parameters can be transferred to the target detection model of another specific virus detection sample, and the training can be completed using a small number of samples.
另外,当训练时的样本混合了多种特定病毒检测样本时,训练得到目标检测模型可以同时适用于多种特定病毒检测样本。In addition, when the samples during training are mixed with multiple specific virus detection samples, the trained target detection model can be applicable to multiple specific virus detection samples at the same time.
参见图5,图5是根据本发明一个实施例对间接免疫荧光图像进行目标检测以得到多个ROI的方法流程图,所述方法包括:Referring to FIG. 5 , FIG. 5 is a flow chart of a method for performing target detection on an indirect immunofluorescence image to obtain multiple ROIs according to an embodiment of the present invention, the method comprising:
步骤S11,将所述间接免疫荧光图像输入给目标检测模型,经所述目标检测模型处理得到多个初步ROI及其描述信息,所述描述信息包括区域坐标、区域类别及区域置信度,所述多个初步ROI构成初步ROI集合。Step S11, inputting the indirect immunofluorescence image into a target detection model, and obtaining a plurality of preliminary ROIs and their description information after being processed by the target detection model, wherein the description information includes region coordinates, region category and region confidence, and the plurality of preliminary ROIs constitute a preliminary ROI set.
步骤S12,设置一个初步ROI为处理目标。Step S12, setting a preliminary ROI as a processing target.
步骤S13,基于区域坐标确定的交叠面积和区域置信度作为计算因子确定目标初步ROI的新区域置信度。Step S13, determining a new region confidence of the target preliminary ROI using the overlapping area determined based on the region coordinates and the region confidence as calculation factors.
步骤S14,计算所述目标初步ROI的新区域置信度和置信度阈值的差值或比值以对比目标初步ROI的新区域置信度和置信度阈值的大小。Step S14: Calculate the difference or ratio between the new region confidence of the target preliminary ROI and the confidence threshold to compare the new region confidence of the target preliminary ROI with the confidence threshold.
步骤S15,判断目标初步ROI的新区域置信度是否小于置信度阈值,如果目标初步ROI的新区域置信度小于所述置信度阈值,在步骤S16,从初步ROI集合中去除目标初步ROI,而后执行步骤S17。如果目标初步ROI的新区域置信度大于或等于所述置信度阈值,则执行步骤S17。Step S15, determining whether the new region confidence of the target preliminary ROI is less than the confidence threshold, if the new region confidence of the target preliminary ROI is less than the confidence threshold, in step S16, removing the target preliminary ROI from the preliminary ROI set, and then executing step S17. If the new region confidence of the target preliminary ROI is greater than or equal to the confidence threshold, executing step S17.
步骤S17,判断是否还有初步ROI未处理,如果还有,则返回步骤S12,如果没有,则结束处理流程。Step S17, determining whether there are any preliminary ROIs that have not been processed, if so, returning to step S12, if not, ending the processing flow.
其中,在步骤S11中,目标检测模型得到的多个初步ROI通常会存在两个或两个以上的ROI交叠的情况,为了减少计算量,需要从多个交叠的ROI中去除冗余的ROI。对于本发明来说,当两个阳性细胞的位置存在重叠区域时,得到的对应ROI处于交叠位置,但是这种情况的ROI并不能作为冗余ROI去除。因而,本发明在筛除冗余ROI时,不仅参考交叠区域的面积,还参考该ROI的区域置信度,以这两种因素确定冗余ROI,从而既达到了精简ROI的目的,也避免了错误去除代表阳性细胞的ROI。Among them, in step S11, there are usually two or more ROIs overlapping among the multiple preliminary ROIs obtained by the target detection model. In order to reduce the amount of calculation, it is necessary to remove redundant ROIs from the multiple overlapping ROIs. For the present invention, when there is an overlapping area at the position of two positive cells, the corresponding ROI obtained is in an overlapping position, but the ROI in this case cannot be removed as a redundant ROI. Therefore, when screening out redundant ROIs, the present invention not only refers to the area of the overlapping area, but also refers to the regional confidence of the ROI, and determines the redundant ROI based on these two factors, thereby achieving the purpose of streamlining ROIs and avoiding the erroneous removal of ROIs representing positive cells.
参见图6,图6是根据本发明一个实施例确定每个初步感兴趣区域的新区域置信度的方法的流程图,所述的方法包括以下步骤:Referring to FIG. 6 , FIG. 6 is a flow chart of a method for determining a new region confidence of each preliminary region of interest according to an embodiment of the present invention, wherein the method comprises the following steps:
步骤S131,获取目标初步ROI的目标区域坐标和目标区域置信度。Step S131, obtaining the target region coordinates and target region confidence of the target preliminary ROI.
步骤S132,获取当前区域置信度最大的第一初步ROI的第一区域坐标。Step S132, obtaining the first region coordinates of the first preliminary ROI with the maximum confidence in the current region.
步骤S133,基于第一区域坐标和目标区域坐标计算第一初步ROI和目标初步ROI的交并比(Intersection over Union, 简称IoU)。Step S133: calculating an intersection over union (IoU) between the first preliminary ROI and the target preliminary ROI based on the first region coordinates and the target region coordinates.
步骤S134,以所述交并比作为预置函数的自变量计算得到函数值。Step S134, using the intersection-and-union ratio as an independent variable of a preset function to calculate a function value.
步骤S135,以所述函数值作为目标区域置信度的权重计算得到目标初步ROI的新区域置信度。Step S135 , using the function value as the weight of the target region confidence to calculate a new region confidence of the target preliminary ROI.
在一个实施例中,目标检测模型得到的第i个初步ROI表示为,即一个6×1的矩阵,矩阵中的6个元素分别为代表区域坐标值的区域左上角坐标、区域宽和区域高4个值以及该ROI的类别和区域置信度si,因而目标检测模型输出的初步ROI集合C可以表示为,其中n为初步ROI的数量。在本实施例中,步骤S134中的预置函数例为如一维高斯方差函数,因而最终得到第i个初步ROI的新区域置信度Si的步骤可以由以下公式1-1表达:In one embodiment, the i-th preliminary ROI obtained by the target detection model is expressed as , that is, a 6×1 matrix, the 6 elements in the matrix are the coordinates of the upper left corner of the region, the width of the region, the height of the region, and the category and confidence of the region s i of the ROI, so the preliminary ROI set C output by the target detection model can be expressed as , where n is the number of preliminary ROIs. In this embodiment, the preset function in step S134 is, for example, a one-dimensional Gaussian variance function, so the step of finally obtaining the new region confidence S i of the i-th preliminary ROI can be expressed by the following formula 1-1:
1-1 1-1
其中表示当前确定的目标初步ROI,表示当前所有初步ROI中置信度最大的第一初步ROI,IoU表示两个初步ROI的交并比得分,用于量化两个初步ROI的交叠面积,为高斯方差参数。in Indicates the currently determined target preliminary ROI, It represents the first preliminary ROI with the highest confidence among all the current preliminary ROIs. IoU represents the intersection-over-union score of two preliminary ROIs, which is used to quantify the overlapping area of two preliminary ROIs. is the Gaussian variance parameter.
经过上述处理,通过区域置信度从初步ROI集合中筛除了一些ROI,剩余的ROI则作为目标检测步骤的输出,用于进行步骤S2的二值化处理。参见图7至图10,图7是根据本发明一个实施例的经过目标检测步骤输出的VCA-IgA的荧光图像局部示意图,图8是根据本发明第二个实施例的经过目标检测步骤输出的腺病毒抗体的荧光图像局部示意图,图9是根据本发明第三个实施例的经过目标检测步骤输出的柯萨奇B病毒CBV-IgM的荧光图像局部示意图,图10是根据本发明第四个实施例的经过目标检测步骤输出的肠道病毒EV-IgM的荧光图像局部示意图。After the above processing, some ROIs are screened out from the preliminary ROI set by the regional confidence, and the remaining ROIs are used as the output of the target detection step for the binarization processing of step S2. Referring to Figures 7 to 10, Figure 7 is a partial schematic diagram of the fluorescence image of VCA-IgA output through the target detection step according to one embodiment of the present invention, Figure 8 is a partial schematic diagram of the fluorescence image of adenovirus antibodies output through the target detection step according to the second embodiment of the present invention, Figure 9 is a partial schematic diagram of the fluorescence image of Coxsackie B virus CBV-IgM output through the target detection step according to the third embodiment of the present invention, and Figure 10 is a partial schematic diagram of the fluorescence image of enterovirus EV-IgM output through the target detection step according to the fourth embodiment of the present invention.
在步骤S2中,由于细胞区域的荧光杂乱程度、背景的荧光干扰能够影响对ROI中细胞区域和背景区域的确定,因而,在本发明的一个实施例中,为了提高在二值化时能够准确区分出细胞区域和背景区域,根据ROI的荧光干扰程度的不同采用不同的图像处理方法。其中,以ROI的灰度方差作为评价荧光干扰程度的参数,当ROI的灰度方差大于或等于一个阈值(为了与其他场景使用的方差阈值相区分,以下称为第一方差阈值)时,说明背景荧光干扰较为严重,此时选择自适应阈值分割方法得到二值化的分割阈值,并基于所述分割阈值对所述感兴趣区域进行二值化处理,当ROI的灰度方差小于第一方差阈值时,说明背景的荧光干扰不强,此时应该更加关注细胞本身荧光的获取,因而此时对所述ROI进行边缘检测,基于边缘检测结果对所述感兴趣区域进行二值化处理。因而在一个实施例中,步骤S2中对每个感兴趣区域进行二值化处理以得到对应的感兴趣区域掩膜的具体过程参见图11,图11是根据本发明一个实施例对每个感兴趣区域进行二值化处理以得到对应的感兴趣区域的二值化图像的方法流程图,所述方法包括:In step S2, since the fluorescence disorder degree of the cell area and the fluorescence interference of the background can affect the determination of the cell area and the background area in the ROI, in one embodiment of the present invention, in order to improve the ability to accurately distinguish the cell area and the background area during binarization, different image processing methods are used according to the different fluorescence interference degrees of the ROI. Among them, the grayscale variance of the ROI is used as a parameter for evaluating the fluorescence interference degree. When the grayscale variance of the ROI is greater than or equal to a threshold (in order to distinguish it from the variance threshold used in other scenes, hereinafter referred to as the first variance threshold), it means that the background fluorescence interference is more serious. At this time, the adaptive threshold segmentation method is selected to obtain the binarization segmentation threshold, and the region of interest is binarized based on the segmentation threshold. When the grayscale variance of the ROI is less than the first variance threshold, it means that the background fluorescence interference is not strong. At this time, more attention should be paid to the acquisition of the fluorescence of the cell itself. Therefore, the ROI is edge detected at this time, and the region of interest is binarized based on the edge detection result. Therefore, in one embodiment, the specific process of performing binarization processing on each region of interest in step S2 to obtain a corresponding region of interest mask is shown in FIG11 , which is a flow chart of a method for performing binarization processing on each region of interest to obtain a binarized image of the corresponding region of interest according to one embodiment of the present invention, the method comprising:
步骤S21,计算每个ROI的灰度方差。Step S21, calculating the grayscale variance of each ROI.
步骤S22,对比每个ROI的灰度方差与第一方差阈值的大小。Step S22: comparing the grayscale variance of each ROI with a first variance threshold.
步骤S23,判断所述灰度方差是否大于或等于第一方差阈值,当所述灰度方差大于或等于第一方差阈值时,在步骤S24,采用自适应阈值分割对所述ROI进行值化处理以得到ROI的二值化图像。当所述灰度方差小于第一方差阈值,在步骤S25,采用边缘检测法对所述ROI进行二值化处理以得到ROI的二值化图像。Step S23, judging whether the grayscale variance is greater than or equal to a first variance threshold, when the grayscale variance is greater than or equal to the first variance threshold, in step S24, using adaptive threshold segmentation to perform binarization processing on the ROI to obtain a binary image of the ROI. When the grayscale variance is less than the first variance threshold, in step S25, using edge detection method to perform binarization processing on the ROI to obtain a binary image of the ROI.
在另一个实施例中,在图11中对全部的ROI进行完二值化处理之后进一步包括图12中的处理步骤:In another embodiment, after binarization processing is performed on all ROIs in FIG. 11 , the processing steps in FIG. 12 are further included:
步骤S25,分别计算每个ROI的二值化图像与其对应ROI的结构相似度。Step S25 , respectively calculating the structural similarity between the binary image of each ROI and its corresponding ROI.
步骤S26,基于全部的ROI的二值化图像与其各自对应的ROI的结构相似度计算二值化处理的损失量。In step S26, the loss amount of the binarization process is calculated based on the structural similarity between the binarized images of all ROIs and their corresponding ROIs.
步骤S27,判断所述损失量是否大于或等于损失阈值,如果所述损失量大于或等于损失阈值,则在步骤S28调整所述第一方差阈值;而后返回步骤S22,基于调整后的第一方差阈值,对每个ROI重新进行二值化处理。如果所述损失量小于损失阈值,则结束处理。Step S27, determine whether the loss amount is greater than or equal to the loss threshold, if the loss amount is greater than or equal to the loss threshold, then adjust the first variance threshold in step S28; then return to step S22, based on the adjusted first variance threshold, re-binarize each ROI. If the loss amount is less than the loss threshold, then end the process.
在本实施例中,在对全部的ROI进行完二值化处理后,计算总损失量,在总损失量超过损失阈值时,说明此二值化过程的失损过大,区分的细胞区域和背景区域没有达到准确度要求,此时调整第一方差阈值,因而使本发明得到的ROI的二值化图像中的细胞区域与原本的细胞区域更加接近,从而提高了后续判断检测样本阴阳性的准确度。In this embodiment, after all ROIs are binarized, the total loss is calculated. When the total loss exceeds the loss threshold, it means that the loss of the binarization process is too large, and the distinguished cell area and background area do not meet the accuracy requirement. At this time, the first variance threshold is adjusted, so that the cell area in the binarized image of the ROI obtained by the present invention is closer to the original cell area, thereby improving the accuracy of subsequent judgment of the positive and negative detection of the sample.
在前述图11和图12两个实施例中,采用自适应阈值分割方法对一个ROI二值化处理的过程可以如下流程所示:In the above two embodiments of FIG. 11 and FIG. 12 , the process of binarizing a ROI using the adaptive threshold segmentation method can be shown as the following flow:
首先将ROI灰度化得到ROI灰度图;而后遍历ROI灰度图中的像素点的灰度值建立灰度直方图;之后统计每个灰度等级内像素点的数量,得到像素点位于不同灰度等级的概率;而后以ROI灰度图中像素点灰度值从最小值到最大值作为阈值进行遍历,将灰度值高于该当前阈值的所有像素点记为类别A,反之则被记为类别B;计算类别A与类别B之间方差。方差的计算公式1-2如下:First, grayscale the ROI to obtain the ROI grayscale image; then traverse the grayscale values of the pixels in the ROI grayscale image to establish a grayscale histogram; then count the number of pixels in each grayscale level to obtain the probability of the pixel being at different grayscale levels; then traverse the grayscale values of the pixels in the ROI grayscale image from the minimum to the maximum as the threshold, and record all pixels with grayscale values higher than the current threshold as category A, otherwise they are recorded as category B; calculate the variance between category A and category B .variance The calculation formula 1-2 is as follows:
1-2 1-2
其中,为阈值为t时像素点被划为类别A的概率;为阈值为t时像素点被划为类别B的概率;为阈值为t时A类中像素点的灰度均值,为阈值为t时B类中像素点的灰度均值。in, is the probability that the pixel is classified as category A when the threshold is t; is the probability that the pixel is classified as category B when the threshold is t; is the grayscale mean of the pixels in class A when the threshold is t, is the grayscale mean of the pixels in class B when the threshold is t.
当阈值t使值最大时,认为类别A、B之间的差异最为明显,此时将该阈值定位为最佳分割阈值。When the threshold t When the value is the largest, it is considered that the difference between categories A and B is the most obvious, and the threshold is then positioned as the optimal segmentation threshold.
在得到最佳分割阈值后,利用最佳分割阈值对ROI进行二值化,即将ROI中灰度值高于该最佳分割阈值的像素点赋值为0,低于该阈值的像素点赋值为255,此时则得到了二值化图像。After obtaining the optimal segmentation threshold, the ROI is binarized using the optimal segmentation threshold, that is, the pixels in the ROI whose grayscale values are higher than the optimal segmentation threshold are assigned a value of 0, and the pixels whose grayscale values are lower than the threshold are assigned a value of 255. At this time, a binary image is obtained.
在另一个实施例中,也可以采用Triangle二值化分割方法,将直方图中到波峰位置和波谷位置连线最远的点作为分割阈值。In another embodiment, a Triangle binary segmentation method may also be used, and the point in the histogram that is farthest from the line connecting the peak position and the trough position is used as the segmentation threshold.
前述两种方法都无需人工输入参数,可以适应荧光杂乱区域的ROI,并能够获得较好的二值化图像。Both of the above methods do not require manual input of parameters, can adapt to the ROI of the fluorescent cluttered area, and can obtain better binary images.
在本发明中,在确定使用边缘检测法对所述ROI进行二值化处理时,可以使用任意一种边缘检测的方法。在一个实施例中,基于边缘检测结果对一个ROI进行二值化处理的过程例如包括以下步骤:In the present invention, when determining to use an edge detection method to perform a binarization process on the ROI, any edge detection method may be used. In one embodiment, the process of performing a binarization process on a ROI based on the edge detection result, for example, includes the following steps:
首先对当前ROI使用Sobel算子计算水平方向和竖直方向的一阶导数以得到梯度图,其中,一阶导数即为图像梯度。而后根据得到的梯度图确定边界的梯度幅值和方向。之后对每个像素点进行检查,从每个像素点周围具有相同梯度方向的像素点中确定出梯度幅值最大值。再根据双阈值法确定出最大及最小梯度阈值,并根据梯度阈值确定真实边缘。将属于边缘的像素点的灰度值设置为255,其他像素点的灰度值设置为0,从而得到二值化图像。First, the Sobel operator is used to calculate the first-order derivatives in the horizontal and vertical directions of the current ROI to obtain a gradient map, where the first-order derivative is the image gradient. Then, the gradient amplitude and direction of the boundary are determined based on the obtained gradient map. After that, each pixel is checked, and the maximum gradient amplitude is determined from the pixels with the same gradient direction around each pixel. Then, the maximum and minimum gradient thresholds are determined based on the double threshold method, and the true edge is determined based on the gradient threshold. The grayscale value of the pixel points belonging to the edge is set to 255, and the grayscale value of other pixel points is set to 0, thereby obtaining a binary image.
在另一个实施例中,可以采用自适应Canny算子的边缘检测方法。其中,Canny算子中的高阈值和低阈值能够对非特异荧光进行有效地抑制,从而提高了ROI腌膜中细胞区域的准确性。其中,Canny算子中的阈值可以通过聚类的方式获得,例如:对全部采用边缘检测的ROI的像素点进行无监督聚类分析得到两个聚类簇,一个为对应于细胞区域的第一聚类簇,另一个为对应于背景的第一聚类簇,而后再分别计算两个聚类簇的中心,将第一聚类簇中心对应的像素点的灰度值作为Canny算子中的高阈值,将第二聚类簇中心对应的像素点的灰度值作为Canny算子中的低阈值。具体的检测过程在此不再赘述。In another embodiment, an edge detection method of an adaptive Canny operator may be used. The high threshold and low threshold in the Canny operator can effectively suppress non-specific fluorescence, thereby improving the accuracy of the cell area in the ROI membrane. The threshold in the Canny operator can be obtained by clustering, for example: performing unsupervised cluster analysis on all pixel points of the ROI using edge detection to obtain two clusters, one is a first cluster corresponding to the cell area, and the other is a first cluster corresponding to the background, and then calculating the centers of the two clusters respectively, and using the grayscale value of the pixel corresponding to the center of the first cluster as the high threshold in the Canny operator, and using the grayscale value of the pixel corresponding to the center of the second cluster as the low threshold in the Canny operator. The specific detection process will not be repeated here.
前述的边缘检测方法中Canny算子的两个阈值通过聚类的方式确定,无需人工输入参数,减少了人工调参的过程,提升了边缘检测在不同场景下的泛化性能,且提高了细胞掩膜的提取效率。In the aforementioned edge detection method, the two thresholds of the Canny operator are determined by clustering, without the need for manual parameter input, thus reducing the process of manual parameter adjustment, improving the generalization performance of edge detection in different scenarios, and improving the efficiency of cell mask extraction.
另外,前述的第一方差阈值可以通过有限定的计算得到,其中在一个实施例中,参见图13,图13是根据本发明一个实施例的确定第一方差阈值的方法流程图,所述方法包括以下步骤:In addition, the aforementioned first variance threshold can be obtained by limited calculation. In one embodiment, referring to FIG. 13 , FIG. 13 is a flow chart of a method for determining a first variance threshold according to an embodiment of the present invention, and the method comprises the following steps:
步骤S201,获取样本集合,所述样本集合中的样本为对样本间接免疫荧光图像进行目标检测后得到的ROI。Step S201 , obtaining a sample set, where the samples in the sample set are ROIs obtained after performing target detection on the sample indirect immunofluorescence image.
步骤S202,设置第一阈值的调整次数i = 1,其中i = 1, 2, 3,……, n。n为设置的最高次数。Step S202, setting the adjustment times of the first threshold value i = 1, wherein i = 1, 2, 3, ..., n. n is the highest number of times set.
步骤S203,计算每个ROI的灰度方差。Step S203, calculating the grayscale variance of each ROI.
步骤S204,比较每个ROI的灰度方差与预置的第一阈值的大小。当一个ROI的灰度方差大于或等于第一阈值时,在步骤S205,采用自适应阈值分割的方法对ROI进行二值化处理得到ROI二值化图像。当一个ROI的灰度方方差小于第一阈值时,在步骤S206,采用边缘检测的方法对ROI进行二值化处理并得到ROI二值化图像。Step S204, compare the grayscale variance of each ROI with the preset first threshold. When the grayscale variance of a ROI is greater than or equal to the first threshold, in step S205, the ROI is binarized by using the adaptive threshold segmentation method to obtain a ROI binary image. When the grayscale variance of a ROI is less than the first threshold, in step S206, the ROI is binarized by using the edge detection method to obtain a ROI binary image.
步骤S207,计算每个ROI二值化图像与其对应ROI的结构相似度。Step S207, calculating the structural similarity between each ROI binary image and its corresponding ROI.
步骤S208,基于全部的ROI二值化图像与其各自对应ROI的结构相似度计算二值化处理的损失量。Step S208 : calculating the loss of the binarization processing based on the structural similarity between all ROI binarized images and their corresponding ROIs.
步骤S209,判断调整次数i是否等于n,如果调整次数i不等于n,则在步骤S2010,调整第一阈值的大小,以得到新的第一阈值,并返回步骤S204。如果调整次数i等于n,则执行步骤S2011。Step S209, determine whether the adjustment number i is equal to n, if the adjustment number i is not equal to n, then in step S2010, adjust the first threshold to obtain a new first threshold, and return to step S204. If the adjustment number i is equal to n, execute step S2011.
步骤S2011,对多个(n个)损失量按照大小排序。Step S2011, sorting multiple (n) loss amounts by size.
步骤S2012,将最小损失量对应的第一阈值确定为第一方差阈值。Step S2012: determine the first threshold corresponding to the minimum loss amount as the first variance threshold.
通过上述流程可见,在本实施例中,首先对第一阈值预置一个具体数值,而后基于该第一阈值的具体值最终得到二值化处理的损失量,然后再调整第一阈值的具体数值,再基于新的第一阈值最终得到二值化处理的另一个损失量,经过有限次的计算得到多个损失量,将损失量最小的第一阈值确定为第一方差阈值,从而使得步骤S2中的二值化图像中的细胞区域与原来的ROI中的细胞区域的形状更加接近。在另一个实施例中,图13中确定第一方差阈值的终止条件也可以不是对第一阈值进行调整的有限次数,而是在每次得到二值化处理的损失量时,比较二值化处理的损失量是否小于被允许的最大损失量,如果二值化处理的损失量小于了被允许的最大损失量,则说明当前二值化处理的损失量可以被接收并满足精确度要求,则停止第一阈值的调整,并将此时的第一阈值确定为第一方差阈值。It can be seen from the above process that in this embodiment, a specific value is first preset for the first threshold, and then the loss amount of the binarization process is finally obtained based on the specific value of the first threshold, and then the specific value of the first threshold is adjusted, and then another loss amount of the binarization process is finally obtained based on the new first threshold. After a finite number of calculations, multiple loss amounts are obtained, and the first threshold with the smallest loss amount is determined as the first variance threshold, so that the shape of the cell area in the binarized image in step S2 is closer to the shape of the cell area in the original ROI. In another embodiment, the termination condition for determining the first variance threshold in FIG. 13 may not be the finite number of times the first threshold is adjusted, but each time the loss amount of the binarization process is obtained, the loss amount of the binarization process is compared to see whether it is less than the maximum loss amount allowed. If the loss amount of the binarization process is less than the maximum loss amount allowed, it means that the current loss amount of the binarization process can be accepted and meets the accuracy requirement, then the adjustment of the first threshold is stopped, and the first threshold at this time is determined as the first variance threshold.
前述说明中涉及的损失量可以采用以下代价函数表达式1-3计算:The loss amount involved in the above description can be calculated using the following cost function expressions 1-3:
1-3 1-3
其中,为缩放系数,可以调整代价函数处于固定区间内,保证方差较小时整体损失不会接近于无穷,k为二值化处理的路径,例如,k=1时表示采用自适应阈值分割方法二值化,k=2时表示采用边缘检测法二值化。表示第k条路径中的ROI数量,z为总的ROI数量,MSSIM表示一个ROI的平均结构相似度,其计算公式如公式1-4所示:in, is the scaling factor, which can adjust the cost function to be within a fixed interval to ensure that the overall loss will not approach infinity when the variance is small. k is the path of binarization processing. For example, k=1 indicates that the adaptive threshold segmentation method is used for binarization, and k=2 indicates that the edge detection method is used for binarization. represents the number of ROIs in the kth path, z represents the total number of ROIs, and MSSIM represents the average structural similarity of an ROI. Its calculation formula is shown in Formula 1-4:
1-4 1-4
其中,和分别代表ROI二值化图像和ROI,,为结构相似度,为单个ROI中计算值的窗口数量,和分别为在ROI二值化图像和ROI中提取到的第个窗口,在一个实施例中,窗口大小为11个像素点。in, and Represent ROI binary image and ROI respectively, , is the structural similarity, Calculated for a single ROI The number of windows of values, and are respectively the first In one embodiment, the window size is 11 pixels.
表示第k个路径上的所有ROI的MSSIM均值。表示第k个路径上的所有ROI的MSSIM方差。 represents the MSSIM mean of all ROIs on the kth path. represents the MSSIM variance of all ROIs on the kth path.
基于前述公式计算二值化处理的损失量的处理过程包括以下步骤:The process of calculating the loss amount of binarization processing based on the above formula includes the following steps:
统计基于分割阈值进行二值化处理的第一ROI及其数量。Count the first ROI and its number after binary processing based on the segmentation threshold .
基于每一个第一ROI的二值化图像与其对应的第一ROI的第一结构相似度MSSIM及第一ROI数量计算第一结构相似度的平均值及其方差。Based on the first structural similarity MSSIM of each first ROI binary image and its corresponding first ROI and the number of first ROIs Calculate the average of the first structural similarity and its variance .
统计基于边缘检测结果进行二值化处理的第二ROI及第二ROI数量。Count the second ROI and the number of second ROIs that are binarized based on edge detection results .
基于每一个第二ROI的二值化图像与其对应的第二ROI的结构相似度MSSIM及第二ROI数量计算第二结构相似度平均值及其方差。Based on the structure similarity MSSIM of each second ROI binary image and its corresponding second ROI and the number of second ROIs Calculate the average of the second structural similarity and its variance .
分别计算第一结构相似度的平均值及其方差的第一比值和第二结构相似度平均值及其方差的第二比值。Calculate the average value of the first structural similarity respectively and its variance The first ratio and the second structural similarity average and its variance The second ratio of .
以第一ROI数量对ROI总数量z(第一ROI数量和第二ROI数量之和)的占比作为第一比值的权重、以第二ROI数量对ROI总数量z的占比作为第二比值的权重,分别计算第一比值的第一加权值和第二比值的第二加权值。First ROI quantity For the total number of ROIs z (the number of first ROIs and the second ROI number The proportion of the sum of the two ratios is used as the weight of the first ratio, and the number of the second ROI is used as the weight of the first ratio. The proportion of the total number z of ROIs is used as the weight of the second ratio, and a first weighted value of the first ratio and a second weighted value of the second ratio are calculated respectively.
以所述第一加权值和第二加权值分别作为预置代价函数的自变量计算得到对应的代价函数值,所述代价函数值作为二值化处理的损失量。The first weighted value and the second weighted value are respectively used as preset cost functions The independent variable is used to calculate the corresponding cost function value, and the cost function value is used as the loss amount of the binarization processing.
从前述的代价函数的表达式及计算过程可见,若ROI的二值化图像中的细胞位置越准确,则其和原图的相似程度越高,相应的损失量会越小。本发明在计算损失量时,不仅计算了每个ROI的二值化图像与其对应的ROI的结构相似度,并且还计算了每种计算路径的占比,因而得到的总体损失量既体现了全体ROI的二值化图像中的细胞位置的准确程度,也体现出了不同计算路径的对总体损失量的影响程度,从而能够更准确地得到第一方差阈值。From the expression and calculation process of the aforementioned cost function, it can be seen that if the cell position in the binary image of the ROI is more accurate, the similarity between it and the original image is higher, and the corresponding loss amount will be smaller. When calculating the loss amount, the present invention not only calculates the structural similarity between the binary image of each ROI and its corresponding ROI, but also calculates the proportion of each calculation path. Therefore, the overall loss amount obtained not only reflects the accuracy of the cell position in the binary image of all ROIs, but also reflects the influence of different calculation paths on the overall loss amount, so that the first variance threshold can be obtained more accurately.
在步骤S3中,在每个ROI的二值化图像进行连通域检测时,遍历ROI二值化图像中的像素点,对像素点的灰度值进行对比,将每个像素点邻域内灰度值相等的像素点确定为同一连通域,从而得到一个或多个连通域,而后基于细胞特异性条件,删除不符合细胞特异性条件的连通域,保留符合细胞特异性条件的连通域,再经过步骤S4对符合细胞特异性条件的连通域内的像素点赋值得到ROI掩膜。In step S3, when connected domain detection is performed on the binary image of each ROI, the pixel points in the ROI binary image are traversed, the grayscale values of the pixel points are compared, and the pixel points with equal grayscale values in the neighborhood of each pixel point are determined as the same connected domain, thereby obtaining one or more connected domains, and then based on the cell-specific conditions, the connected domains that do not meet the cell-specific conditions are deleted, and the connected domains that meet the cell-specific conditions are retained. Then, in step S4, the pixel points in the connected domain that meets the cell-specific conditions are assigned values to obtain the ROI mask.
参见图14,其为对柯萨奇病毒抗体的荧光图像进行处理后得到的图像示意图,其中的第一组图像为基于步骤S1目标检测处理后得到的ROI示意图,第二组图像是对第一组中的ROI二值化处理后得到的二值化图像示意图,第三组图像是对第二组中的二值化图像进行连通域检测后得到的ROI掩膜示意图。See Figure 14, which is a schematic diagram of images obtained after processing the fluorescent image of Coxsackie virus antibodies, wherein the first group of images is a schematic diagram of ROI obtained after target detection processing based on step S1, the second group of images is a schematic diagram of binary images obtained after binarization processing of the ROI in the first group, and the third group of images is a schematic diagram of ROI masks obtained after connected domain detection is performed on the binary images in the second group.
参见图15,其为对EBV的VCA-IgA的荧光图像进行处理后得到的图像示意图,其中的第一组图像为基于步骤S1目标检测处理后得到的ROI示意图,第二组图像是对第一组中的ROI二值化处理后得到的二值化图像示意图,第三组图像是对第二组中的二值化图像进行连通域检测后得到的ROI掩膜示意图。See Figure 15, which is a schematic diagram of images obtained after processing the fluorescence image of EBV VCA-IgA, wherein the first group of images is a schematic diagram of ROI obtained after target detection processing based on step S1, the second group of images is a schematic diagram of binary images obtained after binarization processing of the ROI in the first group, and the third group of images is a schematic diagram of ROI masks obtained after connected domain detection is performed on the binary images in the second group.
参见图16,图16是根据本发明一个实施例的判断一个连通域是否符合细胞特异性条件的方法流程图,所述方法包括以下步骤:Referring to FIG. 16 , FIG. 16 is a flow chart of a method for determining whether a connected domain meets a cell-specific condition according to an embodiment of the present invention, the method comprising the following steps:
步骤S41,计算连通域面积以及质心坐标。Step S41, calculating the area and centroid coordinates of the connected domain.
步骤S42,基于所述ROI的区域坐标计算其中心坐标。Step S42, calculating the center coordinates of the ROI based on the region coordinates of the ROI.
步骤S43,计算所述连通域质心坐标与对应的ROI的中心坐标的距离。Step S43, calculating the distance between the centroid coordinates of the connected domain and the center coordinates of the corresponding ROI.
步骤S44,判断所述连通域质心坐标与其对应的ROI的中心坐标的距离是否小于距离阈值,如果连通域质心坐标与其对应的ROI的中心坐标的距离大于或等于距离阈值,则说明所述连通域偏离ROI区域,则在步骤S46确定筛除所述连通域。如果连通域质心坐标与其对应的ROI的中心坐标的距离小于距离阈值,则说明有可能符合细胞特异性条件,则执行步骤S45。Step S44, determine whether the distance between the centroid coordinates of the connected domain and the center coordinates of the corresponding ROI is less than the distance threshold. If the distance between the centroid coordinates of the connected domain and the center coordinates of the corresponding ROI is greater than or equal to the distance threshold, it means that the connected domain deviates from the ROI area, and then determine to filter out the connected domain in step S46. If the distance between the centroid coordinates of the connected domain and the center coordinates of the corresponding ROI is less than the distance threshold, it means that the cell-specific condition may be met, and then step S45 is executed.
步骤S45,判断在所述连通域面积是否小于面积阈值,如果所述连通域面积小于面积阈值,则说明所述连通域不符合阳性细胞的大小要求,即不符合细胞特异性条件,不符合细胞特异性条件,则在步骤S46确定筛除所述连通域。如果所述连通域面积大于或等于面积阈值,则确定所述连通域符合细胞特异性条件,在步骤S47确定保留所述连通域。Step S45, judging whether the area of the connected domain is less than the area threshold, if the area of the connected domain is less than the area threshold, it means that the connected domain does not meet the size requirement of the positive cell, that is, it does not meet the cell-specific condition, and if it does not meet the cell-specific condition, it is determined to screen out the connected domain in step S46. If the area of the connected domain is greater than or equal to the area threshold, it is determined that the connected domain meets the cell-specific condition, and it is determined to retain the connected domain in step S47.
只有前述两个条件都符合时确定保留该连通域,否则筛除该连通域。在一个特殊情况下,若经过前述图16所示的流程,一个ROI中最终剩下的连通域数量小于1,则说明当前的ROI中没有合适的细胞区域,此时在后续的特征构建时,跳过特征构建步骤,而是对全部的目标特征的特征值赋值为-1。Only when both of the above two conditions are met, the connected domain is retained, otherwise the connected domain is screened out. In a special case, if the number of connected domains remaining in an ROI is less than 1 after the process shown in Figure 16, it means that there is no suitable cell area in the current ROI. At this time, in the subsequent feature construction, the feature construction step is skipped, and the feature values of all target features are assigned to -1.
其中,在步骤S41中,基于连通域可获得其轮廓,基于轮廓中像素中心点绘制闭合轮廓区域,设轮廓中包含的像素点数量为,轮廓内侧所包含的像素点数量为, 由于使用像素中心点进行轮廓提取,因此处于边缘轮廓上的像素点在计算面积时会只保留位于轮廓内侧的一半,最终的连通域面积contour_area如下式1-5所示:In step S41, the contour can be obtained based on the connected domain, and the closed contour area is drawn based on the pixel center point in the contour. The number of pixels contained in the contour is set to , the number of pixels contained inside the contour is , Since the pixel center point is used for contour extraction, only half of the pixels on the edge contour will be retained when calculating the area. The final connected domain area contour_area is shown in the following formula 1-5:
1-5 1-5
连通域的质心坐标求法如下:首先对属于同一连通域的所有像素点的横、纵坐标分别进行累加,再分别除以该连通域内所包含的总像素点数量得到连通域最终的质心坐标,如下式1-6和1-7所示,其中为连通域中包含的总像素点数量,为连通域索引。The method to calculate the centroid coordinates of the connected domain is as follows: First, The horizontal and vertical coordinates of all pixels are accumulated respectively, and then divided by the total number of pixels contained in the connected domain to obtain the connected domain. Final center of mass coordinates , as shown in the following formulas 1-6 and 1-7, where Connected domain The total number of pixels contained in is the connected domain index.
1-6 1-6
1-7 1-7
步骤S42中的ROI的中心坐标基于区域坐标中的4个值求得,其可以通过cv2库里的指定函数实现,在此不再赘述。The center coordinates of the ROI in step S42 are obtained based on the four values in the region coordinates, which can be implemented by a specified function in the cv2 library and will not be described in detail here.
步骤S44中的面积阈值为基于统计数据确定的常数,例如,针对不同的细胞类别分别统计每类阳性细胞的面积范围,从而确定出各类阳性细胞的面积阈值。同理,距离阈值通过统计每类阳性细胞的半径范围确定。The area threshold in step S44 is a constant determined based on statistical data, for example, the area range of each type of positive cells is counted for different cell types, thereby determining the area threshold of each type of positive cells. Similarly, the distance threshold is determined by counting the radius range of each type of positive cells.
本发明针对各类阳性细胞在荧光图像中特点,在一个实施例中预置有多个目标特征,其中,所述的目标特征为细胞形状特征、细胞边缘形态特征和荧光规律特征。The present invention targets the characteristics of various positive cells in fluorescent images, and in one embodiment, presets a plurality of target features, wherein the target features are cell shape features, cell edge morphology features and fluorescence regularity features.
从所述细胞区域提取出细胞形状特征的特征值时,首先根据细胞区域的轮廓计算细胞区域的内接面积,所述的内接面积例如为提到取的细胞区域轮廓内部包含的像素点数量。而后根据细胞区域的轮廓计算细胞区域周长,例如,按照一个固定方向计算轮廓中所有相邻点间的欧氏距离并求和。而后基于细胞区域的内接面积和周长计算细胞区域的圆度。圆度计算公式如下表1-8所示:When extracting the characteristic value of the cell shape feature from the cell region, the inscribed area of the cell region is first calculated according to the outline of the cell region, and the inscribed area is, for example, the number of pixels contained in the extracted cell region outline. Then the perimeter of the cell region is calculated according to the outline of the cell region, for example, the Euclidean distance between all adjacent points in the outline is calculated in a fixed direction and summed. Then the roundness of the cell region is calculated based on the inscribed area and perimeter of the cell region. The roundness calculation formula is shown in Table 1-8 below:
1-8 1-8
其中,为圆度,s为内接面积,l为周长。in, is the circularity, s is the inscribed area, and l is the circumference.
其中,细胞区域的内接面积为第一细胞形状特征;细胞区域的圆度为第二细胞形状特征。如图17所示,图17是本发明一个实施例的基于细胞区域轮廓的细胞形状特征的示意图,圆度的计算与细胞区域的周长(蓝色区域)和面积(红色区域)相关,绿色为参考外接圆,当蓝色轮廓无限接近于绿色轮廓时圆度为1。Among them, the inscribed area of the cell region is the first cell shape feature; the roundness of the cell region is the second cell shape feature. As shown in Figure 17, Figure 17 is a schematic diagram of the cell shape feature based on the cell region contour according to an embodiment of the present invention. The calculation of the roundness is related to the perimeter (blue area) and area (red area) of the cell region. The green is the reference circumscribed circle. When the blue contour is infinitely close to the green contour, the roundness is 1.
基于提取到的细胞区域的轮廓计算细胞边缘形态特征的特征值时,首先对细胞区域的轮廓按照预置像素点数量进行间隔多次采样,每次采样获取预置数量的像素点。例如,采样间隔为个像素点,细胞区域的轮廓包含N个像素点,从轮廓横坐标最小的像素点开始顺时针采样,每个采样周期采样的像素点数量为2个以上,优选3个,以下的示例说明中每个采样周期采样的像素点数量为3个。When calculating the characteristic value of the cell edge morphological feature based on the extracted cell region contour, the cell region contour is first sampled multiple times at intervals according to the preset number of pixels, and each sampling obtains the preset number of pixels. For example, the sampling interval is The outline of the cell area contains N pixels, and sampling is carried out clockwise from the pixel with the smallest horizontal coordinate of the outline. The number of pixels sampled in each sampling period is more than 2, preferably 3. In the following example, the number of pixels sampled in each sampling period is 3.
而后基于每次采样得到的预置数量的像素点的坐标计算曲率以得到曲率集合K。例如,将每个采样周期得到的像素点归为一个子集合,经过多个(如)采样周期得到多个采样子集合,多个采样子集合合并为多个采集集合。在一个实施例中,通过以下公式1-9计算曲率:Then, the curvature is calculated based on the coordinates of a preset number of pixel points obtained in each sampling to obtain a curvature set K. For example, the pixel points obtained in each sampling period are classified into a subset, and after multiple (such as ) The sampling period obtains multiple sampling subsets, and the multiple sampling subsets are combined into multiple acquisition sets. In one embodiment, the curvature is calculated by the following formula 1-9:
1-9 1-9
其中,所述其中为全部采样周期获得的采样集合中的像素点的横坐标集合,t为采样子集合的数量;为全部采样周期获得的采样集合中的像素点纵坐标集合,和分别为轮廓在方向的一阶梯度和在方向的一阶梯度。和分别为轮廓在方向的二阶梯度和在方向的二阶梯度。通过前述公式1-9计算得到的细胞区域的轮廓的曲率集合。Among them, the is the horizontal coordinate set of pixel points in the sampling set obtained in all sampling periods, and t is the number of sampling subsets; is the vertical coordinate set of the pixel points in the sampling set obtained in all sampling periods, and The contours are The first-order gradient in the direction and The first-order gradient of the direction. and The contours are The second-order gradient in the direction and The curvature set of the contour of the cell area calculated by the above formula 1-9 .
而后基于曲率集合K中的多个曲率按照以下公式1-10计算曲率方差:Then, the curvature variance is calculated based on multiple curvatures in the curvature set K according to the following formula 1-10: :
1-10 1-10
其中为曲率集合K中所有元素的均值。in is the mean of all elements in the curvature set K.
所述的曲率方差作为细胞边缘形态特征的特征值,能够有效地表达出细胞边缘的平滑情况,并且能够有效地抑制细胞边缘荧光不完整的情况。参见图18,图18是根据本发明一个实施例的基于细胞区域轮廓的细胞边缘形态特征的可视化示意图,其中的x标记为采样的像素点,圆为基于每个采样周期的采样点得到的近似曲率圆。The curvature variance As the characteristic value of the cell edge morphological feature, it can effectively express the smoothness of the cell edge and effectively suppress the incomplete fluorescence of the cell edge. Referring to Figure 18, Figure 18 is a visualization diagram of the cell edge morphological feature based on the cell region contour according to an embodiment of the present invention, wherein the x mark is the sampled pixel point, and the circle is the approximate curvature circle obtained based on the sampling point of each sampling period.
基于提取到的细胞区域的轮廓计算荧光规律特征的特征值时,首先基于细胞区域的轮廓内部区域像素点的灰度值进行灰度共生矩阵转换,得到灰度共生矩阵。其中,M表示矩阵中的灰度级别,在一个实施例中,为了包含所有可能的灰度值,M取值为256,为在进行灰度共生矩阵转换时进行像素关联计算的距离,为像素关联计算的角度。所述的灰度共生矩阵为一个M×M的矩阵,矩阵中的元素表示为 ,其中为该元素在灰度共生矩阵的横坐标和纵坐标。When calculating the characteristic value of the fluorescence regularity feature based on the extracted cell area contour, the gray level co-occurrence matrix is first converted based on the gray value of the pixel point in the inner area of the cell area contour to obtain the gray level co-occurrence matrix Wherein, M represents the gray level in the matrix. In one embodiment, in order to include all possible gray values, M takes a value of 256. is the distance for pixel association calculation when gray-level co-occurrence matrix conversion is performed, is the angle of pixel association calculation. The gray level co-occurrence matrix is an M×M matrix, and the elements in the matrix are expressed as ,in are the horizontal and vertical coordinates of the element in the gray-level co-occurrence matrix.
而后基于所述灰度共生矩阵元素,按照以下公式1-11计算轮廓内部区域的能量E,所述能量E作为荧光规律特征的特征值。Then, based on the gray-level co-occurrence matrix elements, the energy E of the inner area of the contour is calculated according to the following formula 1-11, and the energy E is used as the characteristic value of the fluorescence regularity feature.
1-11 1-11
能量能够有效地度量细胞区域荧光均匀程度和纹理粗细程度。当图像纹理均一、规则时,灰度共生矩阵的元素主要是集中在对角线附近,能量值较大,参见图19,图19是根据本发明一个实施例的基于细胞区域轮廓的荧光规律特征的示意图,矩阵中的亮点越多则代表该图的能量值越大;反之,当图像的灰度值分布随机性较大时,灰度共生矩阵的元素分布会更加分散。因而通过能量量化细胞荧光图像的纹理特征规律,有助于突出特异荧光和非特异荧光之间的规律差异。Energy can effectively measure the uniformity of fluorescence and texture coarseness of the cell area. When the image texture is uniform and regular, the elements of the grayscale co-occurrence matrix are mainly concentrated near the diagonal, and the energy value is large. See Figure 19, which is a schematic diagram of the fluorescence regularity characteristics based on the cell area contour according to an embodiment of the present invention. The more bright spots in the matrix, the greater the energy value of the image; conversely, when the grayscale value distribution of the image is more random, the distribution of elements of the grayscale co-occurrence matrix will be more dispersed. Therefore, quantifying the texture feature regularity of the cell fluorescence image through energy helps to highlight the regular differences between specific fluorescence and non-specific fluorescence.
在一个实施例中,将前述提取出的各个ROI的多个特征值构成特征矩阵F,例如,每个ROI的多个特征值作为矩阵行,矩阵列为各个不同的特征值。在一个实施例中,矩阵列共有5列,分别对应于前述的细胞区域的内接面积s、细胞区域的圆度、曲率方差、能量E和区域类别,因而当ROI的数量为n为时,得到的特征矩阵F可表示为。其中,假设分类模型的输入量为,则将当前ROI掩膜中的区域置信度排序在前t个的ROI的特征值构成特征矩阵F。In one embodiment, the multiple eigenvalues of each ROI extracted above constitute a feature matrix F, for example, multiple eigenvalues of each ROI are used as matrix rows, and the matrix columns are different eigenvalues. In one embodiment, the matrix columns have 5 columns, corresponding to the inscribed area s of the cell region, the roundness of the cell region, , curvature variance , energy E and region category, so when the number of ROIs is n, the obtained feature matrix F can be expressed as . It is assumed that the input of the classification model is , then the eigenvalues of the ROIs whose regional confidences in the current ROI mask are ranked in the top t constitute the feature matrix F.
本发明中的分类模型例如可以采用各种二分类算法,如逻辑回归(LR)、支持向量机(SVM)、神经网络等等算法。在一个实施例中,采用核函数为高斯核函数的SVM算法作为分类模型,在将前述的特征矩阵F作为模型输入量输入给SVM模型时,SVM模型输出数值0或数值1,0对应为阴性结果,1对应为阳性结果。The classification model in the present invention can adopt various binary classification algorithms, such as logistic regression (LR), support vector machine (SVM), neural network, etc. In one embodiment, an SVM algorithm with a kernel function of a Gaussian kernel function is used as a classification model. When the aforementioned feature matrix F is input to the SVM model as a model input, the SVM model outputs a value of 0 or a value of 1, 0 corresponding to a negative result, and 1 corresponding to a positive result.
为了训练得到所述分类模型,收集人工标注了阴阳性的荧光图像作为原数据,并基于图4中步骤S1至步骤S6的方法,对于每一幅荧光图像得到一个特征矩阵F,每个特征矩阵F作为一条样本,从而构成样本集。另外,也可以采用前述目标检测模型的训练集中样本作为原数据而得到样本集。将样本集按照80%和20%分为训练集和评估集,经过训练,在模型收敛并评估后符合相关要求后得到所述分类模型。由于样本数据包括了多个细胞区域类别,因而在训练完成后的分类模型,针对输入量中的不同类别,对输入量中的特征匹配与其类别相对应的权重,因而可以实现阴阳性的准确分类。相比于人工判读,分类模型可以保证对于不同荧光类型细胞处理的稳定性,且处理效率高,分类准确。In order to train and obtain the classification model, fluorescent images with artificial positive and negative annotated are collected as original data, and based on the method of steps S1 to S6 in Figure 4, a feature matrix F is obtained for each fluorescent image, and each feature matrix F is used as a sample to form a sample set. In addition, the sample set can also be obtained by using the samples in the training set of the aforementioned target detection model as original data. The sample set is divided into a training set and an evaluation set according to 80% and 20%, and after training, the classification model is obtained after the model converges and evaluates and meets the relevant requirements. Since the sample data includes multiple cell area categories, the classification model after training is completed, for different categories in the input, matches the features in the input with the weights corresponding to their categories, thereby accurately classifying positive and negative. Compared with manual interpretation, the classification model can ensure the stability of processing cells of different fluorescent types, and has high processing efficiency and accurate classification.
另外,本发明提供的处理方法还进一步包括滴度等级的分类处理步骤,在得到ROI掩膜后,将所述ROI掩膜及其ROI构成第一滴度等级分类集合,参见图20,图20是根据本发明一个实施例的滴度等级分类方法流程图,所述方法包括以下步骤:In addition, the processing method provided by the present invention further includes a titer level classification processing step. After obtaining the ROI mask, the ROI mask and its ROI constitute a first titer level classification set. See FIG. 20 , which is a flow chart of a titer level classification method according to an embodiment of the present invention. The method includes the following steps:
步骤S81,对第一滴度等级分类集合中的ROI掩膜的细胞区域的灰度均值进行逆序排列构成灰度均值序列。Step S81, the grayscale means of the cell area of the ROI mask in the first titer level classification set are arranged in reverse order to form a grayscale mean sequence.
步骤S82,计算所述灰度均值序列的平均值。Step S82, calculating the average value of the grayscale mean value sequence.
步骤S83,按照预置序列位数从所述灰度均值序列中获取对应位数的灰度均值。Step S83, obtaining the grayscale mean of the corresponding number of bits from the grayscale mean sequence according to the preset number of bits of the sequence.
步骤S84,计算灰度均值序列的平均值和对应位数的灰度均值的加权和,将所述加权和作为所述间接免疫荧光图像的亮度值。Step S84, calculating the average value of the grayscale mean value sequence and the weighted sum of the grayscale mean values of the corresponding bits, and using the weighted sum as the brightness value of the indirect immunofluorescence image.
步骤S85,将所述间接免疫荧光图像的亮度值与定义滴度等级的亮度阈值进行对比以得到对应的滴度等级,将所述滴度等级确定为所述检测样本的滴度等级。Step S85, comparing the brightness value of the indirect immunofluorescence image with the brightness threshold defining the titer level to obtain a corresponding titer level, and determining the titer level as the titer level of the test sample.
其中,步骤S83中的预置序列位数例如中位数、1/4位数等。当采用中位数、1/4位数时,在步骤S84中按照以下公式1-12计算所述间接免疫荧光图像的亮度值I:The preset sequence digits in step S83 are, for example, the median, the quarter digit, etc. When the median or the quarter digit is used, the brightness value I of the indirect immunofluorescence image is calculated in step S84 according to the following formula 1-12:
1-12 1-12
其中,为灰度均值序列的1/4位数,为灰度均值序列的中位数,为灰度均值序列的平均值。分别为对应的权重,其为已知的经验值。in, is the 1/4 digit of the grayscale mean sequence, is the median of the grayscale mean sequence, is the average value of the grayscale mean sequence. are the corresponding weights respectively, which are known empirical values.
在一个实施例中,设置有4个滴度等级,对应的亮度阈值区间如下表1所示:In one embodiment, four titer levels are set, and the corresponding brightness threshold intervals are shown in Table 1 below:
表1Table 1
在根据公式1-12计算得到间接免疫荧光图像的亮度值I后,在步骤S85中,将该亮度值I分别与表1中的5个亮度阈值进行对比以确定所在的亮度阈值区间,从而确定对应的滴度等级。After the brightness value I of the indirect immunofluorescence image is calculated according to formula 1-12, in step S85, the brightness value I is compared with the five brightness thresholds in Table 1 to determine the brightness threshold interval, thereby determining the corresponding titer level.
在另一个实施例中,在前述步骤S81之前还进一步包括对ROI进行筛除的步骤,参见图21,图21是根据本发明一个实施例在进行滴度等级分类之前筛除ROI的方法流程图,所述方法包括以下步骤:In another embodiment, before the aforementioned step S81, a step of screening out ROI is further included. Referring to FIG. 21 , FIG. 21 is a flow chart of a method for screening out ROI before titer grade classification according to an embodiment of the present invention, and the method includes the following steps:
步骤S71,分别计算第一滴度等级分类集合中每个ROI的灰度方差。Step S71, respectively calculating the grayscale variance of each ROI in the first titer level classification set.
步骤S72,从所述第一滴度等级分类集合中筛除灰度方差大于或等于第二方差阈值的ROI及对应的ROI掩膜。Step S72: Screen out ROIs and corresponding ROI masks whose grayscale variance is greater than or equal to a second variance threshold from the first titer level classification set.
步骤S73,基于剩余的ROI及对应的ROI掩膜,分别计算每个ROI中的细胞区域灰度均值A1、背景区域灰度均值B1以及细胞区域灰度均值A1与背景区域灰度均值B1的差值C1。Step S73, based on the remaining ROIs and the corresponding ROI masks, respectively calculate the cell region grayscale mean A1, the background region grayscale mean B1, and the difference C1 between the cell region grayscale mean A1 and the background region grayscale mean B1 in each ROI.
步骤S74,从当前第一滴度等级分类集合中筛除细胞区域灰度均值A1小于第二阈值或细胞区域灰度均值与背景区域灰度均值的差值C1小于第三阈值的ROI。也就是说,对于当前第一滴度等级分类集合中的一个ROI,只有在同时满足细胞区域灰度均值A1大于或等于第二阈值、细胞区域灰度均值与背景区域灰度均值的差值C1大于或等于第三阈值时被保留下来。Step S74, ROIs whose cell region grayscale mean A1 is less than the second threshold or whose difference C1 between the cell region grayscale mean and the background region grayscale mean is less than the third threshold are screened out from the current first titer level classification set. That is to say, for an ROI in the current first titer level classification set, it is retained only if it satisfies both the cell region grayscale mean A1 greater than or equal to the second threshold and the difference C1 between the cell region grayscale mean and the background region grayscale mean is greater than or equal to the third threshold.
当ROI的灰度方差大于或等于第二方差阈值时,说明当前的ROI成像异常,或者亮度成像过曝,此类区域不再具有滴度评估的意义,本发明实施例采用灰度方差来筛选适合用于滴度评估的ROI,提升了整体的计算效率。When the grayscale variance of the ROI is greater than or equal to the second variance threshold, it indicates that the current ROI imaging is abnormal, or the brightness imaging is overexposed, and such areas are no longer meaningful for titer assessment. The embodiment of the present invention uses grayscale variance to screen ROIs suitable for titer assessment, thereby improving the overall calculation efficiency.
另外,如果细胞区域灰度均值A1小于第二阈值,说明细胞区域的亮度不够,而且当细胞区域的亮度与背景区域的亮度差别不大时,同样不具有滴度评估的意义,通过将不具有滴度评估意义的ROI筛除,进一步提升了整体的计算效率,且提高了滴度等级分类的准确性。In addition, if the grayscale mean A1 of the cell area is less than the second threshold, it means that the brightness of the cell area is not enough. When the brightness of the cell area is not much different from that of the background area, it is also meaningless for titer assessment. By screening out ROIs that are not meaningful for titer assessment, the overall calculation efficiency is further improved, and the accuracy of titer grade classification is improved.
本发明实施例利用深度学习算法,基于检测样本荧光图像的特点提取出相应的荧光特征,可以同时实现对免疫荧光图像的定量分析和定性分类,有效地解决了非特异性荧光和杂质等噪声干扰带来的假阳性误检问题,并且本发明提供的方法泛化性能强,可以适用于不同类别的病毒抗体的检测,由于在特征提取时利用了检测样本荧光图像的特点,减少了非特异性荧光对分类结果的影响,因而抗体阴阳性的检测结果和滴度等级的分类准确率高。The embodiment of the present invention utilizes a deep learning algorithm to extract corresponding fluorescence features based on the characteristics of the fluorescence image of the detection sample, and can simultaneously realize quantitative analysis and qualitative classification of the immunofluorescence image, effectively solving the problem of false positive and false detection caused by noise interference such as nonspecific fluorescence and impurities. In addition, the method provided by the present invention has strong generalization performance and can be applied to the detection of different categories of viral antibodies. Since the characteristics of the fluorescence image of the detection sample are utilized during feature extraction, the influence of nonspecific fluorescence on the classification results is reduced, and thus the detection results of antibody positive and negative and the classification accuracy of titer levels are high.
在另一方面,参见图22,图22是根据本发明一个实施例的间接免疫荧光图像的处理系统原理框图,本实施例中的处理系统10包括图像获取模块11、目标检测模块12、二值化模块13、连通域检测模块14、掩膜模块15、特征提取模块16和分类模块17,其中,所述图像获取模块11用以获取基于间接免疫荧光法制备的检测样本的荧光图像,所述检测样本例如抗原为VCA或EA的EBV抗体检测样本、柯萨奇A/B病毒抗体检测样本、肠道病毒抗体检测样本、腺病毒抗体检测样本等等。在一个实施例中,所述的图像获取模块11可以通过数据读取的方式从存储设备中读取指定的检测样本的荧光图片,或者通过网络从另一设备中读取指定的检测样本荧光图片,还可以实时地与荧光显微镜连接,接收荧光显微镜实时拍摄的检测样本荧光图片。所述图像获取模块11还对前述获得的荧光图片进行相应的预处理,如剪裁、归一化处理等。On the other hand, referring to FIG. 22, FIG. 22 is a principle block diagram of an indirect immunofluorescence image processing system according to an embodiment of the present invention. The processing system 10 in this embodiment includes an image acquisition module 11, a target detection module 12, a binarization module 13, a connected domain detection module 14, a mask module 15, a feature extraction module 16 and a classification module 17, wherein the image acquisition module 11 is used to obtain a fluorescent image of a test sample prepared based on the indirect immunofluorescence method, and the test sample is, for example, an EBV antibody test sample with an antigen of VCA or EA, a Coxsackie A/B virus antibody test sample, an enterovirus antibody test sample, an adenovirus antibody test sample, etc. In one embodiment, the image acquisition module 11 can read the fluorescent image of the specified test sample from a storage device by data reading, or read the fluorescent image of the specified test sample from another device through a network, and can also be connected to a fluorescent microscope in real time to receive the fluorescent image of the test sample taken in real time by the fluorescent microscope. The image acquisition module 11 also performs corresponding preprocessing on the fluorescent image obtained above, such as cropping, normalization, etc.
所述的目标检测模块12接受图像获取模块11预处理完间接免疫荧光图像,并进行目标检测以得到多个感兴趣区域,其中,每个感兴趣区域包括疑似细胞区域和背景区域。参见图14和图15中的第一组图像,具体的处理流程请参见前述方法部分的说明,在此不再赘述。The target detection module 12 receives the indirect immunofluorescence image pre-processed by the image acquisition module 11, and performs target detection to obtain multiple regions of interest, wherein each region of interest includes a suspected cell region and a background region. Referring to the first group of images in Figures 14 and 15, the specific processing flow is described in the description of the aforementioned method section, which will not be repeated here.
所述二值化模块13与所述目标检测模块12相连接,对目标检测模块12处理得到的每个感兴趣区域进行二值化处理以得到二值化图像,其中,其中二值化图像的灰度值分别为第一灰度值和第二灰度值且第一灰度值和第二灰度值不相等。参见图14和图15中的第二组图像,其中的第一灰度值和第二灰度值分别为0和255。具体的处理流程请参见前述方法部分的说明,在此不再赘述。The binarization module 13 is connected to the target detection module 12, and performs binarization processing on each region of interest processed by the target detection module 12 to obtain a binarized image, wherein the grayscale values of the binarized image are respectively the first grayscale value and the second grayscale value, and the first grayscale value and the second grayscale value are not equal. Referring to the second group of images in FIG. 14 and FIG. 15, the first grayscale value and the second grayscale value are respectively 0 and 255. For the specific processing flow, please refer to the description of the aforementioned method part, which will not be repeated here.
所述连通域检测模块14与所述二值化模块13相连接,以对每个感兴趣区域的二值化图像进行连通域检测以筛除不符合细胞特异性条件的连通域。The connected domain detection module 14 is connected to the binarization module 13 to perform connected domain detection on the binarized image of each region of interest to filter out connected domains that do not meet the cell-specific conditions.
掩膜模块15与所述连通域检测模块14相连接,将符合细胞特异性条件的连通域作为细胞区域并赋值为相同的灰度值以得到感兴趣区域掩膜,其中,感兴趣区域掩膜中的细胞区域像素点和背景区域像素点的灰度值分别为第一灰度值和第二灰度值,参见图14和图15中的第三组图像。具体的处理流程请参见前述方法部分的说明。具体的处理流程请参见前述方法部分的说明,在此不再赘述。The mask module 15 is connected to the connected domain detection module 14, and the connected domain that meets the cell-specific conditions is used as the cell region and assigned the same grayscale value to obtain the region of interest mask, wherein the grayscale values of the cell region pixel points and the background region pixel points in the region of interest mask are the first grayscale value and the second grayscale value, respectively, see the third group of images in Figures 14 and 15. For the specific processing flow, please refer to the description of the aforementioned method part. For the specific processing flow, please refer to the description of the aforementioned method part, which will not be repeated here.
特征提取模块16与所述掩膜模块15相连接,对每个细胞区域进行轮廓提取,基于每个细胞区域的轮廓,从所述细胞区域提取出预置的多个目标特征的特征值。具体的处理流程请参见前述方法部分的说明,在此不再赘述。The feature extraction module 16 is connected to the mask module 15, and performs contour extraction on each cell region, and based on the contour of each cell region, extracts the feature values of multiple preset target features from the cell region. For the specific processing flow, please refer to the description of the aforementioned method part, which will not be repeated here.
分类模块17与所述特征提取模块16相连接,基于细胞区域集合中预置数量的细胞区域的多个目标特征的特征值构建模型输入量,将所述模型输入量输入给分类模型,经所述分类模型得到所述间接免疫荧光图像对应检测样本的抗体类别为阳性或阴性。具体的处理流程请参见前述方法部分的说明,在此不再赘述。The classification module 17 is connected to the feature extraction module 16, and constructs a model input based on the feature values of multiple target features of a preset number of cell regions in the cell region set, and inputs the model input to the classification model, and the classification model obtains whether the antibody category of the indirect immunofluorescence image corresponding to the detection sample is positive or negative. Please refer to the description of the aforementioned method section for the specific processing flow, which will not be repeated here.
在另一个实施例中,所述处理系统10还进一步包括滴度等级模块18,如图22中的虚线框所示,其与掩膜模块15相连接,经配置以通过对感兴趣区域掩膜的细胞区域的灰度值进行计算得到所述间接免疫荧光图像的亮度值;通过将所述间接免疫荧光图像的亮度值与定义滴度等级的亮度阈值进行对比以得到对应的滴度等级,将所述滴度等级确定为所述检测样本的滴度等级。进一步地,还可以在计算ROI掩膜的细胞区域的灰度值之前筛除不具有滴度意义的ROI,从而提升了整体的计算效率,提高了滴度等级分类的准确性。In another embodiment, the processing system 10 further includes a titer level module 18, as shown in the dotted box in FIG22, which is connected to the mask module 15 and is configured to obtain the brightness value of the indirect immunofluorescence image by calculating the gray value of the cell area of the region of interest mask; by comparing the brightness value of the indirect immunofluorescence image with the brightness threshold defining the titer level to obtain the corresponding titer level, the titer level is determined as the titer level of the test sample. Furthermore, before calculating the gray value of the cell area of the ROI mask, ROIs that have no titer significance can be screened out, thereby improving the overall calculation efficiency and the accuracy of titer level classification.
另外,为了方便人机交互,所述处理系统10包括交互界面和数据库,工作人员可以通过交互界面发出图片读取指令或拍摄指令、开始处理指令等,并且可以查看处理系统10的各种中间数据及最终的结果数据。处理系统10在处理完一幅检测样本荧光图像后,将其中间处理数据、结果数据存储到数据库中保存。另外,所述处理系统10还可以在交互界面提供配置选项,例如配置是否在处理结果中包括滴度等级及包括滴度等级的条件。例如在抗体阴阳性检测的同时进行滴度等级分类;在抗体检测为阳性时进行滴度等级分类等,工作人员可以根据需要选择相应的选项。In addition, in order to facilitate human-computer interaction, the processing system 10 includes an interactive interface and a database. The staff can issue image reading instructions or shooting instructions, start processing instructions, etc. through the interactive interface, and can view various intermediate data and final result data of the processing system 10. After the processing system 10 processes a fluorescent image of the test sample, it stores its intermediate processing data and result data in the database for preservation. In addition, the processing system 10 can also provide configuration options in the interactive interface, such as configuring whether to include the titer level and the conditions for including the titer level in the processing results. For example, titer level classification is performed while the antibody positive and negative detection is performed; titer level classification is performed when the antibody test is positive, etc., and the staff can select the corresponding options as needed.
表2为通过EB病毒荧光图像作为测试集对本发明提供的系统和方法进行测试得到的性能评估结果。Table 2 shows the performance evaluation results obtained by testing the system and method provided by the present invention using Epstein-Barr virus fluorescence images as a test set.
表2Table 2
其中,Sensitivity表示判读敏感性,Specificity表示判读的特异性,Accuracy表示准确性。通过表2中的数据可见,在对VCA-IgA荧光图像的检测中和在对EA-IgA荧光图像的检测中,分别达到了较高的98.6%和95.8%特异性性能,同时也保证了较高的敏感性和准确性,表明假阳性细胞被高效地滤除。Among them, Sensitivity indicates the sensitivity of judgment, Specificity indicates the specificity of judgment, and Accuracy indicates the accuracy. It can be seen from the data in Table 2 that in the detection of VCA-IgA fluorescence images and in the detection of EA-IgA fluorescence images, high specificity performances of 98.6% and 95.8% were achieved respectively, while high sensitivity and accuracy were also guaranteed, indicating that false positive cells were efficiently filtered out.
图23是根据本发明一个实施例的电子设备的硬件结构原理示意图,所述电子设备可以实施为服务器或其他各种终端设备,如桌上型个人电脑、平板电脑、膝上型电脑等,其中包括处理器601和存储器602,所述存储器602上存储有程序指令集,在处理器601执行存储器602上的程序指令集时实现前述的任一种间接免疫荧光图像的处理方法。本实施例中的电子设备例如为图1中的计算设备101。FIG23 is a schematic diagram of the hardware structure principle of an electronic device according to an embodiment of the present invention, the electronic device can be implemented as a server or other terminal devices, such as a desktop personal computer, a tablet computer, a laptop computer, etc., including a processor 601 and a memory 602, the memory 602 stores a program instruction set, and when the processor 601 executes the program instruction set on the memory 602, any of the aforementioned indirect immunofluorescence image processing methods is implemented. The electronic device in this embodiment is, for example, the computing device 101 in FIG1 .
具体地,上述处理器601可以包括中央处理器(CPU),或者特定集成电路(Application Specific Integrated Circuit,ASIC),或者可以被配置成实施本发明实施例的一个或多个集成电路。Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
存储器602可以包括用于数据或指令的大容量存储器。举例来说而非限制,存储器602可包括硬盘驱动器(Hard Disk Drive,HDD)、软盘驱动器、闪存、光盘、磁光盘、磁带或通用串行总线(Universal Serial Bus,USB)驱动器或者两个或多个以上这些的组合。在合适的情况下,存储器602可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器602可在综合网关容灾设备的内部或外部。在特定实施例中,存储器602是非易失性固态存储器。The memory 602 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 602 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 602 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory.
存储器可包括只读存储器(ROM),随机存取存储器(RAM),磁盘存储介质设备,光存储介质设备,闪存设备,电气、光学或其他物理/有形的存储器存储设备。因此,通常,存储器包括一个或多个编码有包括计算机可执行指令的软件的有形(非暂态)计算机可读存储介质(例如,存储器设备),并且当该软件被执行(例如,由一个或多个处理器)时,其可操作来执行本发明提供的间接免疫荧光图像的处理方法。The memory may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical/tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the indirect immunofluorescence image processing method provided by the present invention.
在一个示例中,电子设备还可包括通信接口603和总线604。处理器601、存储器602、通信接口603通过总线604连接并完成相互间的通信。In one example, the electronic device may further include a communication interface 603 and a bus 604. The processor 601, the memory 602, and the communication interface 603 are connected via the bus 604 and communicate with each other.
通信接口603主要用于实现本发明实施例中各模块、系统、单元和/或设备之间的通信。The communication interface 603 is mainly used to implement communication between various modules, systems, units and/or devices in the embodiment of the present invention.
总线604包括硬件、软件或两者,将在线数据流量计费设备的部件彼此耦接在一起。举例来说而非限制,总线可包括加速图形端口(AGP)或其他图形总线、增强工业标准架构(EISA)总线、前端总线(FSB)、超传输(HT)互连、工业标准架构(ISA)总线、无限带宽互连、低引脚数(LPC)总线、存储器总线、微信道架构(MCA)总线、外围组件互连(PCI)总线、PCI-Express(PCI-X)总线、串行高级技术附件(SATA)总线、视频电子标准协会局部(VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线604可包括一个或多个总线。尽管本发明实施例描述和示出了特定的总线,但本发明考虑任何合适的总线或互连。Bus 604 includes hardware, software or both, and the components of online data flow billing equipment are coupled to each other. For example, but not limitation, the bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. Where appropriate, bus 604 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
本发明还提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令可以被处理器执行时实现前述实施例中的任一种间接免疫荧光图像的处理方法。所述计算机可读存储介质可以是可有形的包含或存储计算机可执行指令以供指令执行系统、装置和设备使用或与其结合的任何介质。存储介质可以是暂态计算机可读存储介质或非暂态计算机可读存储介质。非暂态计算机可读存储介质可包括但不限于磁存储装置、光学存储装置和/或半导体存储装置。此类存储装置对应的实施例例如包括磁盘、基于CD、DVD或蓝光技术的光盘以及持久性固态存储器诸如闪存、固态驱动器等。The present invention also provides a computer-readable storage medium having computer program instructions stored thereon, and the computer program instructions can be executed by a processor to implement any of the indirect immunofluorescence image processing methods in the aforementioned embodiments. The computer-readable storage medium can be any medium that can tangibly contain or store computer-executable instructions for use by or in combination with an instruction execution system, device, and equipment. The storage medium can be a transient computer-readable storage medium or a non-transient computer-readable storage medium. Non-transient computer-readable storage media may include, but are not limited to, magnetic storage devices, optical storage devices, and/or semiconductor storage devices. Examples of such storage devices include, for example, magnetic disks, optical disks based on CD, DVD, or Blu-ray technology, and persistent solid-state memories such as flash memory, solid-state drives, and the like.
本发明还提供一种计算机程序产品,其包括计算机程序指令集合,所述计算机程序指令集合被处理器执行时实现前述实施例中的任一种间接免疫荧光图像的处理方法。所述计算机程序产品包括但不限于公布于网站、应用商店中的应用安装包、应用插件、可以运行于某些应用中的小程序等形式。The present invention also provides a computer program product, which includes a set of computer program instructions, and when the set of computer program instructions is executed by a processor, any one of the indirect immunofluorescence image processing methods in the aforementioned embodiments is implemented. The computer program product includes but is not limited to application installation packages published on websites and application stores, application plug-ins, and small programs that can be run in certain applications.
需要明确的是,本发明并不局限于上文所描述并在图中示出的特定配置和处理。为了简明起见,这里省略了对已知方法的详细描述。在上述实施例中,描述和示出了若干具体的步骤作为示例。但是,本发明的方法过程并不限于所描述和示出的具体步骤,本领域的技术人员可以在领会本发明的精神后,做出各种改变、修改和添加,或者改变步骤之间的顺序。It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
上述实施例仅供说明本发明之用,而并非是对本发明的限制,有关技术领域的普通技术人员,在不脱离本发明范围的情况下,还可以做出各种变化和变型,因此,所有等同的技术方案也应属于本发明公开的范畴。The above embodiments are only used to illustrate the present invention, but not to limit the present invention. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the scope of the present invention. Therefore, all equivalent technical solutions should also fall within the scope of the present invention.
Claims (19)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411132326.XA CN118658159B (en) | 2024-08-19 | 2024-08-19 | Indirect immunofluorescence image processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411132326.XA CN118658159B (en) | 2024-08-19 | 2024-08-19 | Indirect immunofluorescence image processing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118658159A true CN118658159A (en) | 2024-09-17 |
CN118658159B CN118658159B (en) | 2024-11-26 |
Family
ID=92699267
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411132326.XA Active CN118658159B (en) | 2024-08-19 | 2024-08-19 | Indirect immunofluorescence image processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118658159B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110458042A (en) * | 2019-07-19 | 2019-11-15 | 杭州智团信息技术有限公司 | A kind of number of probes detection method in fluorescence CTC |
CN110853005A (en) * | 2019-11-06 | 2020-02-28 | 杭州迪英加科技有限公司 | Immunohistochemical membrane staining section diagnosis method and device |
WO2021027135A1 (en) * | 2019-08-15 | 2021-02-18 | 平安科技(深圳)有限公司 | Cell detection model training method and apparatus, computer device and storage medium |
WO2021129325A1 (en) * | 2019-12-25 | 2021-07-01 | 飞依诺科技(苏州)有限公司 | Ultrasonic image lesion segmentation method and apparatus, and computer device |
US20220351005A1 (en) * | 2021-04-29 | 2022-11-03 | Trutag Technologies, Inc. | Typing biological cells |
CN115620063A (en) * | 2022-10-26 | 2023-01-17 | 长春理工大学 | Infrared target detection method based on entropy and distance weighted features in complex background |
CN116596899A (en) * | 2023-05-24 | 2023-08-15 | 江苏莱尔生物医药科技有限公司 | Method, device, terminal and medium for identifying circulating tumor cells based on fluorescence image |
-
2024
- 2024-08-19 CN CN202411132326.XA patent/CN118658159B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110458042A (en) * | 2019-07-19 | 2019-11-15 | 杭州智团信息技术有限公司 | A kind of number of probes detection method in fluorescence CTC |
WO2021027135A1 (en) * | 2019-08-15 | 2021-02-18 | 平安科技(深圳)有限公司 | Cell detection model training method and apparatus, computer device and storage medium |
CN110853005A (en) * | 2019-11-06 | 2020-02-28 | 杭州迪英加科技有限公司 | Immunohistochemical membrane staining section diagnosis method and device |
WO2021129325A1 (en) * | 2019-12-25 | 2021-07-01 | 飞依诺科技(苏州)有限公司 | Ultrasonic image lesion segmentation method and apparatus, and computer device |
US20220351005A1 (en) * | 2021-04-29 | 2022-11-03 | Trutag Technologies, Inc. | Typing biological cells |
CN115620063A (en) * | 2022-10-26 | 2023-01-17 | 长春理工大学 | Infrared target detection method based on entropy and distance weighted features in complex background |
CN116596899A (en) * | 2023-05-24 | 2023-08-15 | 江苏莱尔生物医药科技有限公司 | Method, device, terminal and medium for identifying circulating tumor cells based on fluorescence image |
Non-Patent Citations (1)
Title |
---|
付长斐;叶宾;李会军;: "基于HSV颜色空间的运动目标识别", 控制与信息技术, no. 02, 21 January 2020 (2020-01-21) * |
Also Published As
Publication number | Publication date |
---|---|
CN118658159B (en) | 2024-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109636824B (en) | Multi-target counting method based on image recognition technology | |
JP5315411B2 (en) | Mitotic image detection device and counting system, and method for detecting and counting mitotic images | |
US6947586B2 (en) | Multi-neural net imaging apparatus and method | |
CN108765465B (en) | An Unsupervised SAR Image Change Detection Method | |
CN109952614A (en) | The categorizing system and method for biomone | |
Zhao et al. | Automatic screening of cervical cells using block image processing | |
Qing et al. | Automated detection and identification of white-backed planthoppers in paddy fields using image processing | |
CN111986183B (en) | Chromosome scattered image automatic segmentation and identification system and device | |
CN104990892B (en) | The spectrum picture Undamaged determination method for establishing model and seeds idenmtification method of seed | |
CN111460927A (en) | Method for extracting structured information of house property certificate image | |
CN108073918A (en) | The vascular arteriovenous crossing compression feature extracting method of eye ground | |
CN112215790A (en) | KI67 index analysis method based on deep learning | |
CN109033936A (en) | A kind of cervical exfoliated cell core image-recognizing method | |
CN108109133A (en) | A kind of silkworm seed automatic counting method based on digital image processing techniques | |
CN114283407A (en) | An adaptive leukocyte automatic segmentation and subclass detection method and system | |
CN107492084A (en) | Typical packed cell core image combining method based on randomness | |
CN114359288A (en) | Medical image cerebral aneurysm detection and positioning method based on artificial intelligence | |
Xiao et al. | A scale and region-enhanced decoding network for nuclei classification in histology image | |
CN108960246A (en) | A kind of binary conversion treatment device and method for image recognition | |
CN118658159A (en) | Indirect immunofluorescence image processing method and system | |
CN116580216B (en) | Pathological image matching method, device, equipment and storage medium | |
CN112150487A (en) | Rice grain segmentation method, terminal and storage medium | |
CN111163332A (en) | Video pornography detection method, terminal and medium | |
CN114742803B (en) | Platelet aggregation detection method combining deep learning and digital image processing algorithm | |
CN115082784A (en) | Multi-temporal remote sensing image unsupervised change detection pseudo sample automatic generation method |
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 |