CN114332058A - Serum quality identification method, device, equipment and medium based on neural network - Google Patents
Serum quality identification method, device, equipment and medium based on neural network Download PDFInfo
- Publication number
- CN114332058A CN114332058A CN202111680320.2A CN202111680320A CN114332058A CN 114332058 A CN114332058 A CN 114332058A CN 202111680320 A CN202111680320 A CN 202111680320A CN 114332058 A CN114332058 A CN 114332058A
- Authority
- CN
- China
- Prior art keywords
- test tube
- serum
- neural network
- image
- area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 210000002966 serum Anatomy 0.000 title claims abstract description 331
- 238000000034 method Methods 0.000 title claims abstract description 115
- 238000013528 artificial neural network Methods 0.000 title claims abstract description 88
- 238000012360 testing method Methods 0.000 claims abstract description 435
- 238000003062 neural network model Methods 0.000 claims abstract description 57
- 238000013527 convolutional neural network Methods 0.000 claims abstract description 46
- 238000012549 training Methods 0.000 claims abstract description 30
- 239000011159 matrix material Substances 0.000 claims description 60
- 239000007788 liquid Substances 0.000 claims description 34
- 238000011176 pooling Methods 0.000 claims description 24
- 238000010586 diagram Methods 0.000 claims description 22
- 206010023126 Jaundice Diseases 0.000 claims description 16
- 206010018910 Haemolysis Diseases 0.000 claims description 15
- 230000008588 hemolysis Effects 0.000 claims description 15
- 238000004458 analytical method Methods 0.000 claims description 14
- 238000007477 logistic regression Methods 0.000 claims description 10
- 239000000523 sample Substances 0.000 description 82
- 238000001514 detection method Methods 0.000 description 33
- 238000012545 processing Methods 0.000 description 12
- 208000007536 Thrombosis Diseases 0.000 description 11
- 238000004364 calculation method Methods 0.000 description 8
- 230000002159 abnormal effect Effects 0.000 description 6
- 210000004369 blood Anatomy 0.000 description 6
- 239000008280 blood Substances 0.000 description 6
- 238000004891 communication Methods 0.000 description 6
- 238000002372 labelling Methods 0.000 description 6
- 238000013461 design Methods 0.000 description 4
- 239000000284 extract Substances 0.000 description 4
- 230000002949 hemolytic effect Effects 0.000 description 4
- 238000012284 sample analysis method Methods 0.000 description 4
- 238000003708 edge detection Methods 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 150000002632 lipids Chemical class 0.000 description 3
- 230000000877 morphologic effect Effects 0.000 description 3
- 238000012935 Averaging Methods 0.000 description 2
- 210000001268 chyle Anatomy 0.000 description 2
- 230000001900 immune effect Effects 0.000 description 2
- 238000000338 in vitro Methods 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 241001662043 Icterus Species 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 238000005119 centrifugation Methods 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000013434 data augmentation Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000001000 lipidemic effect Effects 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Landscapes
- Investigating Or Analysing Biological Materials (AREA)
Abstract
本发明公开了一种基于神经网络的血清质量识别方法、装置、终端设备及计算机可读存储介质,通过对盛装血清样本的试管进行图像采集得到试管图像;将所述试管图像输入预设的神经网络模型中,以供所述神经网络模型输出针对所述血清样本的血清质量识别结果,其中,所述神经网络模型通过试管图像进行卷积神经网络模型训练得到。本发明能够提高进行血清质量识别的效率,和有效地减小试管上标签的影响,从而确保模型识别血清质量的准确率。
The invention discloses a serum quality identification method, device, terminal device and computer-readable storage medium based on a neural network. A test tube image is obtained by image acquisition of a test tube containing serum samples; the test tube image is input into a preset neural network. In the network model, for the neural network model to output the serum quality identification result for the serum sample, wherein the neural network model is obtained by performing convolutional neural network model training on test tube images. The present invention can improve the efficiency of serum quality identification, and effectively reduce the influence of labels on test tubes, thereby ensuring the accuracy of model identification of serum quality.
Description
技术领域technical field
本发明涉及血清质量分析技术领域,尤其涉及一种基于神经网络的血清质量识别方法、装置、终端设备及计算机可读存储介质。The present invention relates to the technical field of serum quality analysis, and in particular, to a method, device, terminal device and computer-readable storage medium for identifying serum quality based on a neural network.
背景技术Background technique
随着社会的进步,体外诊断设备检验水平及自动化程度逐渐提高。诸如生化分析仪、免疫分析仪等体外诊断设备在针对血清进行生化或者免疫检测前,都必须对血清进行样本质量的检测,只有检测结果合格才能进一步使用样本进行相关检测。由于通常情况下通过试管采集到的血清除正常样本外,还可能会包括呈现溶血状态、乳糜状态或者黄疸状态等异常的样本,这些异常样本将是先前检测样本质量过程中需要首先筛除掉的。With the progress of society, the inspection level and automation of in vitro diagnostic equipment have gradually improved. In vitro diagnostic equipment such as biochemical analyzers and immunological analyzers must test the quality of the serum samples before performing biochemical or immunological tests on the serum. Only when the test results are qualified can the samples be used for further related tests. Because the blood collected through the test tube usually removes normal samples, it may also include abnormal samples such as hemolytic state, chylous state or jaundice state. These abnormal samples will be screened out in the previous process of testing the quality of the samples. .
以往针对血清样本的质量检测和识别从而筛选出异常样本的方式均是通过经验丰富的技术人员凭借肉眼进行观察判断,因而,不仅不同技术人员各自判断标准不一,而且整体筛选异常样本的效率也比较低下。此外,在现有技术中,还可通过预先对正常、溶血、乳糜、黄疸等状态的血清样本,在划分出各自的颜色范围之后,通过提取待检测血清的液面颜色值来对血清质量进行判断。但是,该方式极易受到盛装血清的试管所粘贴标签的影响,导致颜色判断产生误差。In the past, the quality detection and identification of serum samples to screen out abnormal samples were all observed and judged by experienced technicians with the naked eye. Therefore, not only did different technicians have different judgment standards, but also the overall efficiency of screening abnormal samples was also improved. relatively low. In addition, in the prior art, serum quality can also be determined by extracting the color value of the liquid surface of the serum to be detected after dividing the respective color ranges for serum samples in normal, hemolytic, chyle, icteric and other states in advance. judge. However, this method is easily affected by the label affixed to the test tube containing serum, resulting in errors in color judgment.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist the understanding of the technical solutions of the present invention, and does not mean that the above content is the prior art.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的在于提供一种基于深度神经网络的血清质量识别方法、装置、终端设备及计算机可读存储介质,旨在解决现有针对试管中盛装的血清样本进行质量识别判断的方式,效率低下或者容易受试管上标签的影响而出现误差的技术问题。The main purpose of the present invention is to provide a serum quality identification method, device, terminal device and computer readable storage medium based on a deep neural network, aiming to solve the existing method for quality identification and judgment of serum samples contained in test tubes, and the efficiency Technical issues that are low or prone to errors due to labels on tubes.
本发明实施例提出一种基于神经网络的血清质量识别方法,该基于神经网络的血清质量识别方法包括:The embodiment of the present invention proposes a method for identifying serum quality based on a neural network, and the method for identifying serum quality based on a neural network includes:
对盛装血清样本的试管进行图像采集得到试管图像;Image acquisition is performed on the test tube containing the serum sample to obtain the test tube image;
将所述试管图像输入预设的神经网络模型中,以供所述神经网络模型输出针对所述血清样本的血清质量识别结果,其中,所述神经网络模型通过试管图像进行卷积神经网络模型训练得到。Inputting the test tube image into a preset neural network model for the neural network model to output the serum quality identification result for the serum sample, wherein the neural network model performs convolutional neural network model training through the test tube image get.
可选地,所述方法通过多曝光的试管图像进行卷积神经网络模型训练;Optionally, the method performs convolutional neural network model training through multiple exposure test tube images;
所述基于神经网络的血清质量识别方法还包括:The described neural network-based serum quality identification method also includes:
获取多曝光的试管图像,从所述多曝光的试管图像中提取属于所述试管非标签区域的矩阵区域;acquiring a multi-exposure test tube image, and extracting a matrix area belonging to the non-label area of the test tube from the multi-exposure test tube image;
将所述矩阵区域输入预设的第一卷积模块进行第一卷积神经网络模型训练,并获取所述第一卷积模块针对所述矩阵区域进行第一卷积神经网络模型训练后输出的特征图;Input the matrix region into the preset first convolution module to train the first convolutional neural network model, and obtain the output of the first convolutional neural network model after the first convolution module performs the first convolutional neural network model training for the matrix region. feature map;
将所述特征图进行堆叠后输入预设的第二卷积模块进行第二卷积神经网络模型训练,以得到用于针对血清样本进行血清质量识别的神经网络模型。The feature maps are stacked and then input into a preset second convolution module to train a second convolutional neural network model to obtain a neural network model for serum quality identification for serum samples.
可选地,所述第一卷积模块和所述第二卷积模块包括:卷积层和池化层,所述第一卷积模块和所述第二卷积模块除末尾的两个卷积层之外,每两个卷积层之后连接一个池化层;Optionally, the first convolution module and the second convolution module include: a convolution layer and a pooling layer, the first convolution module and the second convolution module except the last two volumes In addition to the accumulation layer, a pooling layer is connected after every two convolutional layers;
所述第一卷积模块中的卷积层包括多个步长为1的第一卷积层和多个步长为2的第二卷积层,每两个第一卷积层中,输出端未连接所述池化层的第一卷积层与一个所述第二卷积层相连接;The convolutional layers in the first convolutional module include multiple first convolutional layers with
所述第一卷积模块末尾的两个第一卷积层的卷积核数量小于其它第一卷积层和所述第二卷积层的卷积核数量。The number of convolution kernels of the two first convolution layers at the end of the first convolution module is smaller than the number of convolution kernels of the other first convolution layers and the second convolution layer.
可选地,所述第二卷积模块的末尾连接全连接层和逻辑回归层,所述将所述特征图进行堆叠后输入预设的第二卷积模块进行第二卷积神经网络模型训练的步骤,包括:Optionally, the end of the second convolution module is connected to a fully connected layer and a logistic regression layer, and the feature maps are stacked and then input to a preset second convolution module to train a second convolutional neural network model. steps, including:
将所述特征图进行堆叠后输入预设的第二卷积模块,并获取所述第二卷积模块基于多个所述卷积层和所述池化层对所述特征图进行处理后输出的新的特征图;The feature maps are stacked and input into a preset second convolution module, and the second convolution module processes the feature maps based on a plurality of the convolution layers and the pooling layer and outputs the output. The new feature map of ;
将所述新的特征图输入所述全连接层进行特征分类得到血清的质量类别,其中,所述质量类别包括:正常、溶血、脂血和黄疸;Inputting the new feature map into the fully connected layer for feature classification to obtain a quality category of serum, wherein the quality category includes: normal, hemolysis, lipemia and jaundice;
将所述新的特征图输入所述逻辑回归层计算各所述质量类别的概率值,以用于确定所述质量类别为所述溶血、所述脂血和所述黄疸时对应的质量等级。The new feature map is input into the logistic regression layer to calculate the probability value of each of the quality classes, so as to determine the quality class corresponding to the hemolysis, the lipemia and the jaundice when the quality class is.
可选地,所述基于神经网络的血清质量识别方法还包括:Optionally, the described neural network-based serum quality identification method also includes:
为所述特征图分配权重,并将所述特征图与分配得到的权重相乘之后,执行所述将所述特征图进行堆叠后输入预设的第二卷积模块的步骤。After assigning weights to the feature maps, and multiplying the feature maps by the assigned weights, the step of stacking the feature maps and inputting them into a preset second convolution module is performed.
可选地,所述从所述多曝光的试管图像中提取属于所述试管非标签区域的矩阵区域的步骤,包括:Optionally, the step of extracting the matrix region belonging to the unlabeled region of the test tube from the multi-exposure test tube image includes:
对所述多曝光的试管图像进行血清样本分析,以计算所述多曝光的试管图像中,所述试管盛装的血清样本的血清液面最高位位置和血清液面最低位位置;Performing serum sample analysis on the multi-exposure test tube image, to calculate the highest position of serum liquid level and the lowest position of serum liquid level of the serum sample contained in the test tube in the multi-exposure test tube image;
根据所述血清液面最高位位置和所述血清液面最低位位置,从所述试管非标签区域提取预设尺寸的矩阵区域。According to the position of the highest level of the serum liquid level and the position of the lowest level of the serum liquid level, a matrix area of a preset size is extracted from the non-labeled area of the test tube.
可选地,所述方法通过预设的工业相机针对所述试管进行图像采集;Optionally, the method performs image acquisition on the test tube by using a preset industrial camera;
所述根据所述血清液面最高位位置和所述血清液面最低位位置,从所述试管非标签区域提取预设尺寸的矩阵区域的步骤,包括:The step of extracting a matrix area with a preset size from the non-labeled area of the test tube according to the highest position of the serum level and the lowest position of the serum level includes:
根据所述血清液面最高位位置和所述血清液面最低位位置,从所述试管非标签区域中确定血清图像区域;Determine the serum image area from the non-label area of the test tube according to the highest position of the serum level and the lowest position of the serum level;
按照所述预设尺寸从所述血清图像区域中截取所述矩阵区域,其中,所述预设尺寸小于所述血清图像区域的尺寸。The matrix area is cut out from the serum image area according to the preset size, wherein the preset size is smaller than the size of the serum image area.
此外,为实现上述目的,本发明还提供一种基于神经网络的血清质量识别装置,所述基于神经网络的血清质量识别装置包括:In addition, in order to achieve the above object, the present invention also provides a neural network-based serum quality identification device, the neural network-based serum quality identification device includes:
试管图像采集模块,用于对盛装血清样本的试管进行图像采集得到试管图像;The test tube image acquisition module is used for image acquisition of the test tube containing the serum sample to obtain the test tube image;
血清质量识别模块,用于将所述试管图像输入预设的神经网络模型中,以供所述神经网络模型输出针对所述血清样本的血清质量识别结果,其中,所述神经网络模型通过试管图像进行卷积神经网络模型训练得到。A serum quality identification module, configured to input the test tube image into a preset neural network model, so that the neural network model outputs a serum quality identification result for the serum sample, wherein the neural network model passes the test tube image It is obtained by training the convolutional neural network model.
其中,本发明基于神经网络的血清质量识别装置在运行上述的各个功能模块时,实现如上所述的本发明基于神经网络的血清质量识别方法的步骤。Wherein, the neural network-based serum quality identification device of the present invention implements the steps of the neural network-based serum quality identification method of the present invention as described above when each of the above-mentioned functional modules is run.
此外,为实现上述目的,本发明还提供一种终端设备,所述终端设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于神经网络的血清质量识别程序,所述基于神经网络的血清质量识别程序被所述处理器执行时实现如上所述的本发明基于神经网络的血清质量识别方法的步骤。In addition, in order to achieve the above object, the present invention also provides a terminal device, the terminal device includes: a memory, a processor, and a neural network-based serum quality recognition system stored on the memory and running on the processor. A program, when the neural network-based serum quality identification program is executed by the processor, implements the steps of the neural network-based serum quality identification method of the present invention as described above.
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有基于神经网络的血清质量识别程序,所述基于神经网络的血清质量识别程序被处理器执行时实现如上所述的本发明基于神经网络的血清质量识别方法的步骤。In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium on which a neural network-based serum quality identification program is stored, and the neural network-based serum quality identification program is processed When the device is executed, the steps of the above-mentioned neural network-based serum quality identification method of the present invention are realized.
本发明实施例提出的一种基于神经网络的血清质量识别方法、装置、终端设备及计算机可读存储介质,通过对盛装血清样本的试管进行图像采集得到试管图像;将所述试管图像输入预设的神经网络模型中,以供所述神经网络模型输出针对所述血清样本的血清质量识别结果,其中,所述神经网络模型通过试管图像进行卷积神经网络模型训练得到。A method, device, terminal device, and computer-readable storage medium for serum quality identification based on a neural network proposed in the embodiment of the present invention, the test tube image is obtained by image acquisition of a test tube containing serum samples; the test tube image is input into a preset In the neural network model, the neural network model outputs the serum quality identification result for the serum sample, wherein the neural network model is obtained by performing convolutional neural network model training on test tube images.
相比于现有针对试管中血清的质量进行识别判断的方式,本发明预先通过采集盛装血清的试管的试管图像,以利用该试管图像进行卷积神经网络模型的训练得到神经网络模型,从而在实际的血清质量检测过程当中,只需针对盛装血清样本的试管进行图像采集得到试管图像,然后将该试管图像输入到该神经网络模型当中,即可基于该神经网络模型输出基于该试管图像进行训练计算后得到的该血清样本的血清质量识别结果。如此,本发明基于采集合适的试管图像即可识别判断出血清样本的质量,相比于人工肉眼判断血清质量的方式来说,在极大程度上提高了进行血清质量识别的效率,而进一步地使用合适的多曝光的试管图像来训练神经网络模型,有效地减小了试管上标签的影响,从而确保了模型识别血清质量的准确率。Compared with the existing method of identifying and judging the quality of the serum in the test tube, the present invention preliminarily collects the test tube image of the test tube containing the serum, and uses the test tube image to train the convolutional neural network model to obtain the neural network model. In the actual serum quality detection process, it is only necessary to collect the image of the test tube containing the serum sample to obtain the test tube image, and then input the test tube image into the neural network model, and then the neural network model can be output based on the test tube image. Serum quality identification result of the serum sample obtained after calculation. In this way, the present invention can identify and judge the quality of the serum sample based on the collection of suitable test tube images. Compared with the way of manually judging the quality of serum with the naked eye, the efficiency of serum quality identification is greatly improved, and further. Using appropriate multi-exposure test tube images to train the neural network model effectively reduces the influence of the label on the test tube, thereby ensuring the accuracy of the model to identify serum quality.
附图说明Description of drawings
图1是本发明实施例方案涉及终端设备的硬件运行环境的结构示意图;1 is a schematic structural diagram of a hardware operating environment of a terminal device involved in an embodiment of the present invention;
图2为本发明基于神经网络的血清质量识别方法一实施例涉及进行试管图像采集的流程示意图;FIG. 2 is a schematic flowchart of a method for identifying serum quality based on a neural network according to an embodiment of the present invention, which involves the acquisition of test tube images;
图3为本发明基于神经网络的血清质量识别方法一实施例涉及的系统架构示意图;3 is a schematic diagram of the system architecture involved in an embodiment of the neural network-based serum quality identification method of the present invention;
图4为本发明基于神经网络的血清质量识别方法一实施例涉及的一应用场景示意图;4 is a schematic diagram of an application scenario involved in an embodiment of the neural network-based serum quality identification method of the present invention;
图5为本发明基于神经网络的血清质量识别方法一实施例涉及的另一应用场景示意图;5 is a schematic diagram of another application scenario involved in an embodiment of the neural network-based serum quality identification method of the present invention;
图6为本发明基于神经网络的血清质量识别方法一实施例涉及的又一应用场景示意图;6 is a schematic diagram of another application scenario involved in an embodiment of the neural network-based serum quality identification method of the present invention;
图7为本发明基于神经网络的血清质量识别方法一实施例涉及的应用流程示意图;7 is a schematic diagram of an application process involved in an embodiment of the neural network-based serum quality identification method of the present invention;
图8为本发明基于神经网络的血清质量识别方法一实施例涉及计算试管在实时图像中高度的一场景示意图;8 is a schematic diagram of a scene in which an embodiment of the neural network-based serum quality identification method of the present invention involves calculating the height of a test tube in a real-time image;
图9为本发明基于神经网络的血清质量识别方法一实施例涉及计算试管在实时图像中高度的另一场景示意图;9 is a schematic diagram of another scenario in which an embodiment of the neural network-based serum quality identification method of the present invention involves calculating the height of a test tube in a real-time image;
图10为本发明基于神经网络的血清质量识别方法一实施例涉及计算试管在实时图像中高度的又一场景示意图;10 is a schematic diagram of another scene in which an embodiment of the neural network-based serum quality identification method of the present invention involves calculating the height of a test tube in a real-time image;
图11为本发明基于神经网络的血清质量识别方法一实施例涉及的二值化图像;11 is a binarized image involved in an embodiment of the neural network-based serum quality identification method of the present invention;
图12为本发明基于神经网络的血清质量识别方法一实施例涉及非标签区域面积计算公式;12 is an embodiment of the neural network-based serum quality identification method of the present invention involving a formula for calculating the area of a non-labeled area;
图13为本发明基于神经网络的血清质量识别方法一实施例涉及针对试管旋转预设角度的应用场景示意图;13 is a schematic diagram of an application scenario of a method for recognizing serum quality based on a neural network according to an embodiment of the present invention involving a preset angle of rotation of a test tube;
图14为本发明基于神经网络的血清质量识别方法一实施例涉及试管标检粘贴要求示意图;FIG. 14 is a schematic diagram of the requirements for labeling and pasting test tubes involved in an embodiment of the neural network-based serum quality identification method of the present invention;
图15为本发明基于神经网络的血清质量识别方法一实施例涉及计算试管旋转的预设角度的场景示意图;15 is a schematic diagram of a scene involving calculating a preset angle of test tube rotation according to an embodiment of the neural network-based serum quality identification method of the present invention;
图16为本发明基于神经网络的血清质量识别方法一实施例涉及进行血清样本分析的流程示意图;16 is a schematic flow chart of serum sample analysis according to an embodiment of the neural network-based serum quality identification method of the present invention;
图17为本发明基于神经网络的血清质量识别方法一实施例涉及截取图像ROI区域的应用场景示意图;FIG. 17 is a schematic diagram of an application scenario of an embodiment of the neural network-based serum quality identification method of the present invention involving the interception of an image ROI region;
图18为本发明基于神经网络的血清质量识别方法一实施例涉及确定血清样本液面的应用场景示意图;18 is a schematic diagram of an application scenario involving determining the liquid level of a serum sample according to an embodiment of the neural network-based serum quality identification method of the present invention;
图19为本发明基于神经网络的血清质量识别方法一实施例涉及有无凝胶的试管示意图;19 is a schematic diagram of a test tube with or without gel according to an embodiment of the neural network-based serum quality identification method of the present invention;
图20为本发明基于神经网络的血清质量识别方法一实施例涉及的HSV三通道的均值;Figure 20 is the mean value of the HSV three channels involved in an embodiment of the neural network-based serum quality identification method of the present invention;
图21为本发明基于神经网络的血清质量识别方法一实施例涉及的通过单像素线段确定血清液面的应用场景示意图;21 is a schematic diagram of an application scenario of determining the serum level through a single-pixel line segment involved in an embodiment of the neural network-based serum quality identification method of the present invention;
图22为本发明基于神经网络的血清质量识别方法一实施例的流程示意图;22 is a schematic flowchart of an embodiment of the neural network-based serum quality identification method of the present invention;
图23为本发明基于神经网络的血清质量识别方法一实施例涉及的卷积神经网络模型的结构示意图;23 is a schematic structural diagram of a convolutional neural network model involved in an embodiment of the neural network-based serum quality identification method of the present invention;
图24为本发明基于神经网络的血清质量识别方法一实施例涉及的卷积神经网络模型中第一卷积模块的结构示意图;24 is a schematic structural diagram of a first convolution module in a convolutional neural network model involved in an embodiment of the neural network-based serum quality identification method of the present invention;
图25为本发明基于神经网络的血清质量识别方法一实施例涉及的卷积神经网络模型中第二卷积模块的结构示意图;25 is a schematic structural diagram of a second convolution module in a convolutional neural network model involved in an embodiment of the neural network-based serum quality identification method of the present invention;
图26为本发明基于神经网络的血清质量识别装置的模块示意图。Fig. 26 is a schematic diagram of the modules of the neural network-based serum quality identification device of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
本发明实施例的主要解决方案是:对盛装血清样本的试管进行图像采集得到试管图像;将所述试管图像输入预设的神经网络模型中,以供所述神经网络模型输出针对所述血清样本的血清质量识别结果,其中,所述神经网络模型通过试管图像进行卷积神经网络模型训练得到。The main solution of the embodiment of the present invention is: image acquisition of a test tube containing serum samples to obtain a test tube image; inputting the test tube image into a preset neural network model, so that the neural network model can output the test tube image for the serum sample The serum quality identification result of , wherein, the neural network model is obtained by performing convolutional neural network model training on test tube images.
由于以往针对血清样本的质量检测和识别从而筛选出异常样本的方式均是通过经验丰富的技术人员凭借肉眼进行观察判断,因而,不仅不同技术人员各自判断标准不一,而且整体筛选异常样本的效率也比较低下。此外,在现有技术中,还可通过预先对正常、溶血、乳糜、黄疸等状态的血清样本,在划分出各自的颜色范围之后,通过提取待检测血清的液面颜色值来对血清质量进行判断。但是,该方式极易受到盛装血清的试管所粘贴标签的影响,导致颜色判断产生误差。Since the previous quality detection and identification of serum samples to screen out abnormal samples were all conducted by experienced technicians through observation and judgment with the naked eye, not only did different technicians have different judgment standards, but also the overall efficiency of screening abnormal samples Also lower. In addition, in the prior art, serum quality can also be determined by extracting the color value of the liquid surface of the serum to be detected after dividing the respective color ranges for serum samples in normal, hemolytic, chyle, icteric and other states in advance. judge. However, this method is easily affected by the label affixed to the test tube containing serum, resulting in errors in color judgment.
本发明提供一种解决方案,预先通过采集盛装血清的试管的试管图像,以利用该试管图像进行卷积神经网络模型的训练得到神经网络模型,从而在实际的血清质量检测过程当中,只需针对盛装血清样本的试管进行图像采集得到试管图像,然后将该试管图像输入到该神经网络模型当中,即可基于该神经网络模型输出基于该试管图像进行训练计算后得到的该血清样本的血清质量识别结果。如此,本发明基于采集合适的试管图像即可识别判断出血清样本的质量,相比于人工肉眼判断血清质量的方式来说,在极大程度上提高了进行血清质量识别的效率,而进一步地使用合适的多曝光的试管图像来训练神经网络模型,以图像在不同曝光下的颜色信息进行模型训练,有效地减少试管上标签背景的影响,从而确保了模型识别血清质量的准确率。The present invention provides a solution, in which the test tube image of the test tube containing serum is collected in advance, and the neural network model is obtained by using the test tube image to train the convolutional neural network model, so that in the actual serum quality detection process, only the The test tube containing the serum sample is imaged to obtain the test tube image, and then the test tube image is input into the neural network model, and the serum quality identification of the serum sample obtained after training and calculation based on the test tube image can be output based on the neural network model. result. In this way, the present invention can identify and judge the quality of the serum sample based on the collection of suitable test tube images. Compared with the way of manually judging the quality of serum with the naked eye, the efficiency of serum quality identification is greatly improved, and further. Appropriate multi-exposure test tube images are used to train the neural network model, and the color information of the images under different exposures is used to train the model, which effectively reduces the influence of the label background on the test tube, thus ensuring the accuracy of the model to identify serum quality.
如图1所示,图1是本发明实施例方案涉及的硬件运行环境的终端结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in an embodiment of the present invention.
本发明实施例终端设备可以是被配置用于进行试管图像采集的各种终端设备,例如终端服务器,PC,甚至也可以是智能手机、平板电脑等可移动式终端设备、或不可移动的终端设备。The terminal device in the embodiment of the present invention may be various terminal devices configured to perform test tube image acquisition, such as a terminal server, a PC, or even a mobile terminal device such as a smartphone and a tablet computer, or an immovable terminal device .
如图1所示,该终端设备可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the terminal device may include: a
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the terminal structure shown in FIG. 1 does not constitute a limitation on the terminal device, and may include more or less components than the one shown, or combine some components, or arrange different components.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及基于神经网络的血清质量识别程序。As shown in FIG. 1 , the
在图1所示的终端设备中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的基于神经网络的血清质量识别程序,并执行以下操作:In the terminal device shown in FIG. 1 , the
对盛装血清样本的试管进行图像采集得到试管图像;Image acquisition is performed on the test tube containing the serum sample to obtain the test tube image;
将所述试管图像输入预设的神经网络模型中,以供所述神经网络模型输出针对所述血清样本的血清质量识别结果,其中,所述神经网络模型通过试管图像进行卷积神经网络模型训练得到。Inputting the test tube image into a preset neural network model for the neural network model to output the serum quality identification result for the serum sample, wherein the neural network model performs convolutional neural network model training through the test tube image get.
进一步地,处理器1001可以用于调用存储器1005中存储的基于神经网络的血清质量识别程序,并执行以下操作:Further, the
获取多曝光的试管图像,从所述多曝光的试管图像中提取属于所述试管非标签区域的矩阵区域;acquiring a multi-exposure test tube image, and extracting a matrix area belonging to the non-label area of the test tube from the multi-exposure test tube image;
将所述矩阵区域输入预设的第一卷积模块进行第一卷积神经网络模型训练,并获取所述第一卷积模块针对所述矩阵区域进行第一卷积神经网络模型训练后输出的特征图;Input the matrix region into the preset first convolution module to train the first convolutional neural network model, and obtain the output of the first convolutional neural network model after the first convolution module performs the first convolutional neural network model training for the matrix region. feature map;
将所述特征图进行堆叠后输入预设的第二卷积模块进行第二卷积神经网络模型训练,以得到用于针对血清样本进行血清质量识别的神经网络模型。The feature maps are stacked and then input into a preset second convolution module to train a second convolutional neural network model to obtain a neural network model for serum quality identification for serum samples.
进一步地,所述第一卷积模块和所述第二卷积模块包括:卷积层和池化层,所述第一卷积模块和所述第二卷积模块除末尾的两个卷积层之外,每两个卷积层之后连接一个池化层;Further, the first convolution module and the second convolution module include: a convolution layer and a pooling layer, the first convolution module and the second convolution module except the last two convolution modules In addition to the layers, a pooling layer is connected after every two convolutional layers;
所述第一卷积模块中的卷积层包括多个步长为1的第一卷积层和多个步长为2的第二卷积层,每两个第一卷积层中,输出端未连接所述池化层的第一卷积层与一个所述第二卷积层相连接;The convolutional layers in the first convolutional module include multiple first convolutional layers with
所述第一卷积模块末尾的两个第一卷积层的卷积核数量小于其它第一卷积层和所述第二卷积层的卷积核数量。The number of convolution kernels of the two first convolution layers at the end of the first convolution module is smaller than the number of convolution kernels of the other first convolution layers and the second convolution layer.
进一步地,所述第二卷积模块的末尾连接全连接层和逻辑回归层,处理器1001可以用于调用存储器1005中存储的基于神经网络的血清质量识别程序,并执行以下操作:Further, the end of the second convolution module is connected to the fully connected layer and the logistic regression layer, and the
将所述特征图进行堆叠后输入预设的第二卷积模块,并获取所述第二卷积模块基于多个所述卷积层和所述池化层对所述特征图进行处理后输出的新的特征图;The feature maps are stacked and input into a preset second convolution module, and the second convolution module processes the feature maps based on a plurality of the convolution layers and the pooling layer and outputs the output. The new feature map of ;
将所述新的特征图输入所述全连接层进行特征分类得到血清的质量类别,其中,所述质量类别包括:正常、溶血、脂血和黄疸;Inputting the new feature map into the fully connected layer for feature classification to obtain a quality category of serum, wherein the quality category includes: normal, hemolysis, lipemia and jaundice;
将所述新的特征图输入所述逻辑回归层计算各所述质量类别的概率值,以用于确定所述质量类别为所述溶血、所述脂血和所述黄疸时对应的质量等级。The new feature map is input into the logistic regression layer to calculate the probability value of each of the quality classes, so as to determine the quality class corresponding to the hemolysis, the lipemia and the jaundice when the quality class is.
进一步地,处理器1001可以用于调用存储器1005中存储的基于神经网络的血清质量识别程序,并执行以下操作:Further, the
为所述特征图分配权重,并将所述特征图与分配得到的权重相乘之后,执行所述将所述特征图进行堆叠后输入预设的第二卷积模块的步骤。After assigning weights to the feature maps, and multiplying the feature maps by the assigned weights, the step of stacking the feature maps and inputting them into a preset second convolution module is performed.
进一步地,处理器1001可以用于调用存储器1005中存储的基于神经网络的血清质量识别程序,并执行以下操作:Further, the
对所述多曝光的试管图像进行血清样本分析,以计算所述多曝光的试管图像中,所述试管盛装的血清样本的血清液面最高位位置和血清液面最低位位置;Performing serum sample analysis on the multi-exposure test tube image, to calculate the highest position of serum liquid level and the lowest position of serum liquid level of the serum sample contained in the test tube in the multi-exposure test tube image;
根据所述血清液面最高位位置和所述血清液面最低位位置,从所述试管非标签区域提取预设尺寸的矩阵区域。According to the position of the highest level of the serum liquid level and the position of the lowest level of the serum liquid level, a matrix area of a preset size is extracted from the non-labeled area of the test tube.
进一步地,处理器1001可以用于调用存储器1005中存储的基于神经网络的血清质量识别程序,并执行以下操作:Further, the
根据所述血清液面最高位位置和所述血清液面最低位位置,从所述试管非标签区域中确定血清图像区域;Determine the serum image area from the non-label area of the test tube according to the highest position of the serum level and the lowest position of the serum level;
按照所述预设尺寸从所述血清图像区域中截取所述矩阵区域,其中,所述预设尺寸小于所述血清图像区域的尺寸。The matrix area is cut out from the serum image area according to the preset size, wherein the preset size is smaller than the size of the serum image area.
基于上述硬件结构,提出本发明基于神经网络的血清质量识别方法的各实施例。Based on the above hardware structure, various embodiments of the neural network-based serum quality identification method of the present invention are proposed.
需要说明的是,本发明基于神经网络的血清质量识别方法可应用于如图3所示的针对试管进行图像采集的系统架构中,该系统架构中包括了背景板、旋转装置、拍摄系统以及控制单元和数据处理单元,其中,旋转部件可用于将试管进行0°-360°的旋转操作,而拍摄系统用于对试管进行图像采集,控制单元用于对旋转装置和拍照系统进行实时控制,数据处理单元则用于对拍摄到的试管图像进行处理并存储。具体地,控制单元在具体应用本发明自动旋转试管的图像采集方法控制旋转部件针对试管执行第一旋转操作或者第二旋转操作时,当检测到当前管架上存在试管时,由旋转部件中的抓握部件抓取试管的管帽端,然后,由拍摄系统拍摄图像并传至给数据处理单元进行图像的一系列处理,如:试管定位、非标签区域面积计算、阈值判断、旋转角度计算等,之后,控制单元进一步根据数据处理单元的输出结果执行相应操作,如:控制旋转部件将试管旋转至预定角度以最终采集到该试管上标签间隙处最大的图像,或者,对不符合要求的试管图像或试管发出警报和提醒。It should be noted that the neural network-based serum quality identification method of the present invention can be applied to the system architecture of image acquisition for test tubes as shown in FIG. A unit and a data processing unit, wherein the rotating part can be used to rotate the test tube from 0° to 360°, the photographing system is used for image acquisition of the test tube, and the control unit is used to control the rotating device and the photographing system in real time, and the data The processing unit is used for processing and storing the captured test tube images. Specifically, when the control unit specifically applies the image acquisition method for automatically rotating test tubes of the present invention to control the rotating component to perform the first rotation operation or the second rotating operation for the test tube, when it is detected that there is a test tube on the current tube rack, the control unit in the rotating component The gripping part grabs the cap end of the test tube, and then the image is captured by the shooting system and sent to the data processing unit for a series of image processing, such as: test tube positioning, non-label area calculation, threshold judgment, rotation angle calculation, etc. , after that, the control unit further performs corresponding operations according to the output results of the data processing unit, such as: controlling the rotating part to rotate the test tube to a predetermined angle to finally capture the largest image at the label gap on the test tube, or, for the test tube that does not meet the requirements. Images or test tubes for alerts and reminders.
请参照图22,以终端设备代替上述如图3所示的针对试管进行图像采集的系统架构展开阐述本发明基于神经网络的血清质量识别方法的具体实施例。在本发明基于神经网络的血清质量识别方法一实施例中,本发明基于神经网络的血清质量识别方法包括:Referring to FIG. 22 , a specific embodiment of the neural network-based serum quality identification method of the present invention is described with a terminal device instead of the system architecture shown in FIG. 3 for image acquisition for a test tube. In one embodiment of the neural network-based serum quality identification method of the present invention, the neural network-based serum quality identification method of the present invention includes:
步骤S10,对盛装血清样本的试管进行图像采集得到试管图像;Step S10, performing image acquisition on the test tube containing the serum sample to obtain a test tube image;
在本实施例中,终端设备在实际针对盛装在试管当中待识别血清质量的血清样本,进行实时的血清质量识别时,首先针对该试管进行图像采集以得到合适的试管图像。In this embodiment, when the terminal device actually performs real-time serum quality identification for the serum sample contained in the test tube whose serum quality is to be identified, the terminal device first performs image acquisition on the test tube to obtain an appropriate test tube image.
需要说明的是,在本实施例中,由于终端设备在采用工业相机采集试管图像时,工业相机的不同曝光时间对血清颜色的影响很大,因此,终端设备可具体通过调整曝光时间采集到多曝光时间的试管图像。It should be noted that, in this embodiment, when the terminal device uses the industrial camera to collect the test tube image, the different exposure times of the industrial camera have a great influence on the color of the serum. Tube images of exposure time.
具体地,例如,终端设备在通过针对盛装在试管当中待识别血清质量的血清样本的试管进行旋转,从而令该试管的非标签区域的中点正对工业相机之后,设置曝光时间T1(该曝光时间下工业相机拍摄的血清/血浆颜色与实际值相等)采集得到该非标签区域面积最大的试管图像P1。Specifically, for example, after the terminal device rotates the test tube containing the serum sample of the serum quality to be identified in the test tube, so that the midpoint of the non-label area of the test tube is facing the industrial camera, the exposure time T1 (the exposure time T1) is set. The color of serum/plasma photographed by an industrial camera is equal to the actual value under time), and the test tube image P1 with the largest area of the non-labeled area is obtained.
此外,终端设备在进行卷积神经网络模型训练的过程中,还可以根据预设的曝光时间规则,针对盛装血清样本的试管进行图像采集得到多张试管图像。In addition, in the process of training the convolutional neural network model, the terminal device can also collect images of the test tube containing the serum sample according to the preset exposure time rule to obtain multiple test tube images.
具体地,终端设备在旋转试管满足非标签区域的中点正对工业相机的情形之后,除了采集上述曝光时间T1的试管图像P1,还进一步设置短于T1的曝光时间T2,采集到图像P2;和设置长于T1的曝光时间T3,采集到图像P3。Specifically, after rotating the test tube to satisfy the situation that the midpoint of the non-label area is facing the industrial camera, in addition to collecting the test tube image P1 with the exposure time T1, the terminal device further sets the exposure time T2 shorter than T1, and collects the image P2; And set the exposure time T3 longer than T1, and acquire the image P3.
步骤S20,将所述试管图像输入预设的神经网络模型中,以供所述神经网络模型输出针对所述血清样本的血清质量识别结果,其中,所述神经网络模型通过试管图像进行卷积神经网络模型训练得到。Step S20, inputting the test tube image into a preset neural network model, so that the neural network model outputs the serum quality identification result for the serum sample, wherein the neural network model performs convolutional neural network by using the test tube image. The network model is trained.
在本实施例中,终端设备在采集得到合适的试管图像之后,立即将该试管图像输入到预先已经使用多曝光的试管图像进行卷积神经网络模型训练得到的神经网络模型当中,从而由该神经网络模型基于该合适的试管图像进行训练计算后,输出针对该试管图像对应试管当中盛装的血清样本的血清质量识别结果。In this embodiment, after acquiring an appropriate test tube image, the terminal device immediately inputs the test tube image into a neural network model that has been trained in advance by using the multi-exposure test tube images to train the convolutional neural network model, so that the neural network model is trained by the neural network. After the network model performs training calculation based on the appropriate test tube image, it outputs the serum quality identification result for the serum sample contained in the test tube corresponding to the test tube image.
进一步地,在一种可行的实施例中,本发明基于神经网络的血清质量识别方法通过多曝光的试管图像进行卷积神经网络模型训练,即,获取多曝光的试管图像,并根据所述多曝光的试管图像进行卷积神经网络模型训练,以得到用于针对血清样本进行血清质量识别的神经网络模型。Further, in a feasible embodiment, the neural network-based serum quality identification method of the present invention conducts convolutional neural network model training by using multiple exposure test tube images, that is, acquiring multiple exposure test tube images, and according to the multiple exposure test tube images. The exposed test tube images were subjected to convolutional neural network model training to obtain a neural network model for serum quality identification for serum samples.
在本实施例中,终端设备在实际针对盛装在试管当中待识别血清质量的血清样本,进行实时的血清质量识别之前,还通过获取多曝光的试管图像,从而使用该多曝光的试管图像进行卷积神经网络模型训练,以得到上述用于实时针对试管中血清样本进行血清质量识别的神经网络模型。In this embodiment, before the terminal device actually performs real-time serum quality identification for the serum samples contained in the test tubes to be identified, the terminal device also obtains the multi-exposure test-tube images, so as to use the multi-exposure test-tube images for scrolling The neural network model is trained to obtain the above-mentioned neural network model for real-time serum quality identification of serum samples in test tubes.
本发明基于神经网络的血清质量识别方法,还可以包括:The present invention's method for identifying serum quality based on neural network can also include:
步骤30,获取多曝光的试管图像,从所述多曝光的试管图像中提取属于所述试管非标签区域的矩阵区域;
在本实施例中,终端设备在使用采集到的多曝光的试管图像进行卷积神经网络模型训练从而得到上述神经网络模型的过程中,先通过对该多曝光的试管图像进行血清样本分析确定对应的血清指标之后,基于该血清指标从该试管图像当中提取出属于非标签区域的矩阵区域。In this embodiment, in the process of using the collected multi-exposure test tube images to train the convolutional neural network model to obtain the above-mentioned neural network model, the terminal device first performs serum sample analysis on the multi-exposure test tube images to determine the corresponding After the serum index of , the matrix area belonging to the non-label area is extracted from the test tube image based on the serum index.
即,终端设备预先针对多曝光的试管图像进行血清样本分析,以计算试管盛装的血清样本的血清液面最高位位置和血清液面最低位位置;之后,根据该血清液面最高位位置和该血清液面最低位位置,在多曝光的试管图像中,从试管非标签区域提取预设尺寸的矩阵区域。That is, the terminal device performs serum sample analysis on the multi-exposure test tube images in advance to calculate the highest position of the serum level and the lowest position of the serum level of the serum sample contained in the test tube; The lowest position of the serum level, in the multi-exposure test tube image, a matrix area of preset size is extracted from the unlabeled area of the test tube.
进一步地,在本实施例中,具体地,血清指标包括:血清样本的血清液面最高位位置和血清液面最低位位置。上述从试管非标签区域提取预设尺寸的矩阵区域的步骤,可以包括:Further, in this embodiment, specifically, the serum index includes: the highest position of the serum liquid level and the lowest position of the serum liquid level of the serum sample. The above-mentioned steps of extracting a matrix area of a preset size from the unlabeled area of the test tube may include:
根据所述血清液面最高位位置和所述血清液面最低位位置,从所述试管非标签区域中确定血清图像区域;Determine the serum image area from the non-label area of the test tube according to the highest position of the serum level and the lowest position of the serum level;
按照所述预设尺寸从所述血清图像区域中截取所述矩阵区域,其中,所述预设尺寸小于所述血清图像区域的尺寸。The matrix area is cut out from the serum image area according to the preset size, wherein the preset size is smaller than the size of the serum image area.
需要说明的是,在本实施例中,预设尺寸为小于所述血清图像区域的尺寸,如,以图像的像素单元为基本单位,该预设尺寸的具体大小可以为32*32。应当理解的是,基于实际应用的不同设计需要,在不同可行的实施例中,预设尺寸的具体大小当然可以设置为不同本实施例中所列举的具体尺寸,本发明基于神经网络的血清质量识别方法并不针对该预设尺寸的具体大小进行限定,只要该预设尺寸小于试管图像中血清图像区域的尺寸即可。It should be noted that, in this embodiment, the preset size is smaller than the size of the serum image area, for example, taking the pixel unit of the image as the basic unit, the specific size of the preset size may be 32*32. It should be understood that, based on different design requirements of practical applications, in different feasible embodiments, the specific size of the preset size can of course be set to be different from the specific size listed in this embodiment. The present invention is based on the serum quality of the neural network. The identification method is not limited to the specific size of the preset size, as long as the preset size is smaller than the size of the serum image area in the test tube image.
即,终端设备具体基于进行血清样本分析得到的盛装在试管中血清样本的血清液面最高位位置和血清液面最低位位置,在上述采集到的多曝光的试管图像P1、P2、和P3中,分别在试管的非标签区域内提取任何位置预设尺寸为32*32的矩阵区域F1、F2和F3。That is, the terminal device is specifically based on the highest position of the serum liquid level and the lowest position of the serum liquid level of the serum sample contained in the test tube obtained by analyzing the serum sample, in the multi-exposure test tube images P1, P2, and P3 collected above. , extract the matrix areas F1, F2 and F3 with a preset size of 32*32 at any position in the non-labeled area of the test tube, respectively.
步骤S40,将所述矩阵区域输入预设的第一卷积模块进行第一卷积神经网络模型训练,并获取所述第一卷积模块针对所述矩阵区域进行第一卷积神经网络模型训练后输出的特征图;Step S40, inputting the matrix region into a preset first convolution module to train the first convolutional neural network model, and obtaining the first convolutional module to train the first convolutional neural network model for the matrix region The feature map of the post output;
步骤S50,将所述特征图进行堆叠后输入预设的第二卷积模块进行第二卷积神经网络模型训练,以得到用于针对血清样本进行血清质量识别的神经网络模型。Step S50, the feature maps are stacked and then input into a preset second convolution module to train a second convolutional neural network model, so as to obtain a neural network model for serum quality identification for serum samples.
需要说明的是,在本实施例中,所述第一卷积模块和所述第二卷积模块包括:卷积层和池化层,所述第一卷积模块和所述第二卷积模块除末尾的两个卷积层之外,每两个卷积层之后连接一个池化层;It should be noted that, in this embodiment, the first convolution module and the second convolution module include: a convolution layer and a pooling layer, the first convolution module and the second convolution module In addition to the two convolutional layers at the end of the module, a pooling layer is connected after every two convolutional layers;
所述第一卷积模块中的卷积层包括多个步长为1的第一卷积层和多个步长为2的第二卷积层,每两个第一卷积层中,输出端未连接所述池化层的第一卷积层与一个所述第二卷积层相连接;The convolutional layers in the first convolutional module include multiple first convolutional layers with
所述第一卷积模块末尾的两个第一卷积层的卷积核数量小于其它第一卷积层和所述第二卷积层的卷积核数量。The number of convolution kernels of the two first convolution layers at the end of the first convolution module is smaller than the number of convolution kernels of the other first convolution layers and the second convolution layer.
具体地,请参照如图23所示的卷积神经网络模型、如图24所示该模型中的第一卷积模块和如图25所示的该模型的第二卷积模块。终端设备首先将提取出的三张矩阵区域F1、F2和F3图像分别输入至第一卷积模块,该第一卷积模块具体包括8个卷积层和2个池化层。卷积层conv1~conv6的步长为1,其所输出的特征图与输入的特征图大小相同,而卷积层conv7~conv8的步长为2,其所输出的特征图是输入特征图的一半。第一卷积模块中,卷积层conv5和conv6的卷积核为20,其余各卷积层的卷积核个数为30(应当理解的是,卷积核大小可选用5×5或者3×3,卷积核的具体个数可根据网络的实际情况进行调整)。第一卷积模块中,每两个卷积层后接一个2×2的最大池化层,特征图经过池化层后,其特征图是输入的特征图的一半。此外,卷积层Conv1和conV3还分别接入了卷积层Conv7和Conv8,其所得特征图与池化操作后的特征图结合输入至下一卷积层操作中。此外,第二卷积模块由4个卷积层和1个最大池化层构成,其各个卷积层的卷积核大小均为60。经过该第二卷积模块输出的特征图大小为4×4×60。第二卷积模块中,在每个卷积层后紧接着一个BN层和relu层,relu层用于增加网络的非线性表达能力。Specifically, please refer to the convolutional neural network model shown in FIG. 23 , the first convolution module in the model shown in FIG. 24 , and the second convolution module in the model shown in FIG. 25 . The terminal device first inputs the extracted images of the three matrix regions F1, F2 and F3 into the first convolution module, which specifically includes 8 convolution layers and 2 pooling layers. The stride of the convolutional layers conv1 to conv6 is 1, and the output feature map is the same size as the input feature map, while the stride of the convolutional layers conv7 to conv8 is 2, and the output feature map is the input feature map. half. In the first convolution module, the convolution kernels of the convolutional layers conv5 and conv6 are 20, and the number of convolution kernels of the other convolutional layers is 30 (it should be understood that the size of the convolution kernel can be 5×5 or 3 ×3, the specific number of convolution kernels can be adjusted according to the actual situation of the network). In the first convolution module, every two convolutional layers is followed by a 2×2 maximum pooling layer. After the feature map passes through the pooling layer, its feature map is half of the input feature map. In addition, the convolutional layers Conv1 and conV3 are also connected to the convolutional layers Conv7 and Conv8, respectively, and the resulting feature map and the feature map after the pooling operation are combined and input to the next convolutional layer operation. In addition, the second convolution module consists of 4 convolutional layers and 1 max-pooling layer, and the convolution kernel size of each convolutional layer is 60. The size of the feature map output by the second convolution module is 4×4×60. In the second convolution module, each convolutional layer is followed by a BN layer and a relu layer, and the relu layer is used to increase the nonlinear expression ability of the network.
进一步地,上述步骤S50中,“将所述特征图进行堆叠后输入预设的第二卷积模块进行第二卷积神经网络模型训练”可以包括:Further, in the above step S50, "after stacking the feature maps and inputting the preset second convolution module to train the second convolutional neural network model" may include:
将所述特征图进行堆叠后输入预设的第二卷积模块,并获取所述第二卷积模块基于多个所述卷积层和所述池化层对所述特征图进行处理后输出的新的特征图;The feature maps are stacked and input into a preset second convolution module, and the second convolution module processes the feature maps based on a plurality of the convolution layers and the pooling layer and outputs the output. The new feature map of ;
将所述新的特征图输入所述全连接层进行特征分类得到血清的质量类别,其中,所述质量类别包括:正常、溶血、脂血和黄疸;Inputting the new feature map into the fully connected layer for feature classification to obtain a quality category of serum, wherein the quality category includes: normal, hemolysis, lipemia and jaundice;
将所述新的特征图输入所述逻辑回归层计算各所述质量类别的概率值,以用于确定所述质量类别为所述溶血、所述脂血和所述黄疸时对应的质量等级。The new feature map is input into the logistic regression layer to calculate the probability value of each of the quality classes, so as to determine the quality class corresponding to the hemolysis, the lipemia and the jaundice when the quality class is.
具体地,请参照如图23所示的卷积神经网络模型。上述的三张矩阵区域F1、F2和F3图像经过第一卷积模块后输出大小为8×8×60的特征图,而该特征图将进一步沿着通道方向进行堆叠,然后,将堆叠后得到大小为8×8×60的特征图进一步输入至第二卷积模块中进行第二卷积神经网络模型训练得到新的特征图。Specifically, please refer to the convolutional neural network model shown in Figure 23. The above-mentioned three matrix regions F1, F2 and F3 images pass through the first convolution module to output a feature map with a size of 8×8×60, and the feature map will be further stacked along the channel direction, and then stacked to get The feature map with a size of 8×8×60 is further input into the second convolution module to train the second convolutional neural network model to obtain a new feature map.
此外,在本实施例中,上述的卷积神经网络模型的最后部分是全连接层和逻辑回归层:softmax层,上述经过第二卷积模块后输出的新的特征图将分别经过全连接层进行分类得到血清样本的多种质量类别,如:正常,溶血,脂血,黄疸,和经过该softmax层计算该各个质量类别各自的概率值以确定质量类别为溶血、脂血和黄疸时各自类别对应的质量等级。In addition, in this embodiment, the last part of the above-mentioned convolutional neural network model is the fully connected layer and the logistic regression layer: the softmax layer, and the new feature map output after the second convolution module will pass through the fully connected layer respectively. Perform classification to obtain multiple quality categories of serum samples, such as: normal, hemolytic, lipemic, icteric, and calculate the respective probability values of the respective quality categories through the softmax layer to determine the respective categories when the quality categories are hemolysis, lipemia and icterus the corresponding quality level.
需要说明的是,在本实施例中,全连接层用于对特征进行分类,为防止图像的过拟合现象,在此引入了dropout操作来随机删除卷积神经网络中的部分神经元,除此之外,还可以进行局部归一化以及数据增强来增加鲁棒性。softmax层是整个网络模型的最终处理步骤,适用于解决多分类问题,其输出为每个分类类别的概率值。在本网络中,即可将血清分为正常,溶血,脂血,黄疸四个类别,又可以再进行细分,如溶血1级,溶血2级,溶血N级;黄疸1级,黄疸2级,黄疸N级;脂血1级,脂血2级,脂血3级等。It should be noted that, in this embodiment, the fully connected layer is used to classify the features. In order to prevent the over-fitting of the image, a dropout operation is introduced here to randomly delete some neurons in the convolutional neural network. In addition, local normalization and data augmentation can be performed to increase robustness. The softmax layer is the final processing step of the entire network model, suitable for solving multi-classification problems, and its output is the probability value of each classification category. In this network, serum can be divided into four categories: normal, hemolysis, lipidemia, and jaundice, and can be further subdivided, such as
终端设备利用几千或上万个上述多曝光的试管图像来对该卷积神经网络模型进行训练,即可得到训练好用于上述实时对血清样本进行血清质量识别的神经网络模型。The terminal device uses thousands or tens of thousands of the above-mentioned multi-exposure test tube images to train the convolutional neural network model, so as to obtain the above-mentioned neural network model trained for real-time serum quality identification of serum samples.
进一步地,在一种可行的实施例中,本发明基于神经网络的血清质量识别方法,还可以包括:Further, in a feasible embodiment, the neural network-based serum quality identification method of the present invention may also include:
为所述特征图分配权重,并将所述特征图与分配得到的权重相乘之后,执行所述将所述特征图进行堆叠后输入预设的第二卷积模块的步骤。After assigning weights to the feature maps, and multiplying the feature maps by the assigned weights, the step of stacking the feature maps and inputting them into a preset second convolution module is performed.
需要说明的是,在本实施例中,由于其图像P1相对于P2,P3更接近真实肉眼所看到的颜色,因此在堆叠前可进一步先进行权重的分配,如,P1的权重为2,P2和P3的权重均为1,从而,在上述将特征图堆叠前先将特征图与权重进行乘操作,之后再记性堆叠后输入到第二卷积模块中进行上述第二卷积神经网络模型训练的过程。It should be noted that, in this embodiment, since its image P1 is closer to the color seen by the real naked eye than P2 and P3, the weight can be further allocated before stacking. For example, the weight of P1 is 2, The weights of P2 and P3 are both 1. Therefore, before stacking the feature maps above, the feature map and the weight are multiplied, and then the memory stack is input into the second convolution module for the second convolutional neural network model. training process.
在本实施例中,相比于现有针对试管中血清的质量进行识别判断的方式,本发明预先通过采集盛装血清的试管的多曝光试管图像,以利用该试管图像进行卷积神经网络模型的训练得到神经网络模型,从而在实际的血清质量检测过程当中,只需针对盛装血清样本的试管进行图像采集得到试管图像,然后将该试管图像输入到该神经网络模型当中,即可基于该神经网络模型输出基于该试管图像进行训练计算后得到的该血清样本的血清质量识别结果。如此,本发明基于采集合适的试管图像即可识别判断出血清样本的质量,相比于人工肉眼判断血清质量的方式来说,在极大程度上提高了进行血清质量识别的效率,而进一步地使用合适的多曝光的试管图像来训练神经网络模型,有效地规避了试管上标签的影响,从而确保了模型识别血清质量的准确率。In this embodiment, compared with the existing method of identifying and judging the quality of the serum in the test tube, the present invention collects the multi-exposure test tube image of the test tube containing serum in advance, so as to use the test tube image to carry out the convolutional neural network model. The neural network model is obtained by training, so that in the actual serum quality detection process, only the image of the test tube containing the serum sample is collected to obtain the test tube image, and then the test tube image is input into the neural network model. The model outputs the serum quality identification result of the serum sample obtained after training and calculation based on the test tube image. In this way, the present invention can identify and judge the quality of the serum sample based on the collection of suitable test tube images. Compared with the way of manually judging the quality of serum with the naked eye, the efficiency of serum quality identification is greatly improved, and further. Using appropriate multi-exposure test tube images to train the neural network model can effectively avoid the influence of labels on the test tube, thus ensuring the accuracy of the model to identify serum quality.
进一步地,请参照图16,在本发明基于试管图像的血清样本分析方法一实施例中,终端设备针对盛装在试管中的血清样本进行血清样本分析,即上述的“对所述多曝光的试管图像进行血清样本分析”的步骤,可以包括:Further, please refer to FIG. 16 , in an embodiment of the test tube image-based serum sample analysis method of the present invention, the terminal device performs serum sample analysis on the serum sample contained in the test tube, that is, the above-mentioned "multi-exposure test tube". Image for serum sample analysis" steps, which can include:
步骤a,将所述多曝光的试管图像在RGB颜色空间中进行分离,并从分离后的各通道图像和所述多曝光的试管图像中,分别确定感兴趣区域ROI;In step a, the multi-exposure test tube images are separated in the RGB color space, and from the separated channel images and the multi-exposure test tube images, a region of interest ROI is determined respectively;
在本实施例中,终端设备在针对盛装血清样本的试管进行图像采集得到上述符合要求的试管图像之后,进一步将该试管图像在RGB颜色空间中分离为对应的三通道图像,并进一步从该三通道图像和原本的试管图像当中,分别确定出各自对应的感兴趣区域ROI。In this embodiment, the terminal device further separates the test tube image into corresponding three-channel images in the RGB color space after collecting the image of the test tube containing the serum sample to obtain the above-mentioned test tube image that meets the requirements, and further extracts the three-channel image from the three-channel image. In the channel image and the original test tube image, the corresponding region of interest ROI is determined respectively.
进一步地,在一种可行的实施例中,分离后的各所述各通道图像包括:B通道图像和R通道图像,上述步骤a,可以包括:Further, in a feasible embodiment, the separated images of each channel include: a B channel image and an R channel image, and the above step a may include:
步骤a1,按照预设图像区域的各坐标从所述B通道图像中截取各所述坐标之内的第一矩阵区域,并将所述第一矩阵区域确定为感兴趣区域ROI-B,其中,所述预设图像区域属于所述试管图像中的非标签区域;Step a1, according to each coordinate of the preset image area, intercept a first matrix area within each of the coordinates from the B channel image, and determine the first matrix area as a region of interest ROI-B, wherein, The preset image area belongs to the non-label area in the test tube image;
步骤a2,按照各所述坐标从所述R通道图像中截取各所述坐标之内的第二矩阵区域,并将所述第二矩阵区域确定为感兴趣区域ROI-R;Step a2, intercepting the second matrix region within each of the coordinates from the R channel image according to each of the coordinates, and determining the second matrix region as a region of interest ROI-R;
步骤a3,按照各所述坐标从所述试管图像中截取各所述坐标之内的第三矩阵区域,并将所述第三矩阵区域确定为感兴趣区域ROI-P。Step a3, intercepting a third matrix region within each of the coordinates from the test tube image according to each of the coordinates, and determining the third matrix region as a region of interest ROI-P.
具体地,例如,请参照如图17所示的应用场景,终端设备将采集到的试管图像在RGB颜色空间中分离为P1_R,P1_G,P1_B三通道图像,并分别截取每一个图像的部分区域,即,截取坐标为(0,H-10)、(0,H+10)(M-10,H-10)、(M-10,H+10)四个点之内的矩阵区域,并将截取的矩阵区域设定为对应的感兴趣区域ROI。如:分别在B通道图像,R通道图像,和原本的试管图像P1中截取该上述四个坐标点之内的部分区域,分别取名为ROI_B、ROI_R和ROI_P1作为对应的感兴趣区域ROI。Specifically, for example, referring to the application scenario shown in Figure 17, the terminal device separates the collected test tube images into P1_R, P1_G, and P1_B three-channel images in the RGB color space, and intercepts part of each image respectively, That is, intercept the matrix area within four points of coordinates (0, H-10), (0, H+10) (M-10, H-10), (M-10, H+10), and set the The intercepted matrix region is set as the corresponding region of interest ROI. For example, the part of the region within the above four coordinate points is intercepted from the B channel image, the R channel image, and the original test tube image P1, respectively, and named ROI_B, ROI_R and ROI_P1 as the corresponding regions of interest ROI.
步骤b,根据各所述感兴趣区域ROI针对所述血清样本对应的样本指标进行分析其中,所述血清样本对应的样本指标包括:所述血清液面最高位位置和所述血清液面最低位位置。Step b, analyzing the sample index corresponding to the serum sample according to each ROI of the region of interest, wherein the sample index corresponding to the serum sample includes: the highest position of the serum liquid level and the lowest position of the serum liquid level. Location.
在本实施例中,终端设备在分别从三通道图像和原本的试管图像当中,确定出各自对应的感兴趣区域ROI之后,进一步分别使用该感兴趣区域ROI对应的样本指标进行分析,以计算出试管中所盛装血清样本的血清液面位置,以及进一步基于该血清液面位置计算血清量等。In this embodiment, after the terminal device determines the ROI corresponding to the region of interest from the three-channel image and the original test tube image, respectively, it further uses the sample index corresponding to the ROI of the region of interest for analysis to calculate The serum level position of the serum sample contained in the test tube, and the serum amount is further calculated based on the serum level position.
需要说明的是,在本实施例中,终端设备在分析计算出试管中血清液面的最高位位置和最低位位置之后,即可直接基于普通的体积计算方式,结合已知的试管的周长来计算得到血清量。It should be noted that, in this embodiment, after the terminal device analyzes and calculates the highest position and lowest position of the serum level in the test tube, it can directly calculate it based on the ordinary volume calculation method combined with the known circumference of the test tube. Get the serum volume.
进一步地,在一种可行的实施例中,血清样本对应的样本指标包括:血清液面最高位位置、血块液面最高位位置和血清液面最低位位置;上述的步骤b,还可以包括:Further, in a feasible embodiment, the sample index corresponding to the serum sample includes: the highest position of the serum liquid level, the highest position of the blood clot liquid level, and the lowest position of the serum liquid level; the above step b, may also include:
步骤b1,根据所述感兴趣区域ROI-B计算所述血清液面最高位位置;Step b1, calculate the highest position of the serum liquid level according to the region of interest ROI-B;
步骤b2,根据所述感兴趣区域ROI-R计算所述血块液面最高位位置;Step b2, calculating the highest position of the blood clot liquid level according to the region of interest ROI-R;
在本实施例中,终端设备通过利用上述过程中确定的B通道图像对应的感兴趣区域ROI_B来分析计算出试管中血清样本的血清液面最高位位置,以及,通过利用上述过程中确定的R通道图像对应的感兴趣区域ROI_R来分析计算出试管中血清样本的血块液面最高位位置。In this embodiment, the terminal device analyzes and calculates the position of the highest level of the serum level of the serum sample in the test tube by using the region of interest ROI_B corresponding to the B channel image determined in the above process, and by using the R determined in the above process The region of interest ROI_R corresponding to the channel image is used to analyze and calculate the position of the highest level of the blood clot in the serum sample in the test tube.
具体地,例如,请参照如图18所示的应用场景,终端设备对ROI_B在行方向进行求均值或中值等运算以将该ROI_B矩阵块变为单像素线,从而找到线段转折点即为血清液面最高位位置。同样的,终端设备对ROI_R在行方向进行求均值或中值等运算以将该ROI_R矩阵块变为单像素线,从而找到线段转折点即为血块液面最高位位置。Specifically, for example, referring to the application scenario shown in Figure 18, the terminal device performs operations such as averaging or median on ROI_B in the row direction to turn the ROI_B matrix block into a single-pixel line, so as to find the turning point of the line segment, which is the serum The position of the highest liquid level. Similarly, the terminal device performs operations such as averaging or median on the ROI_R in the row direction to convert the ROI_R matrix block into a single-pixel line, so as to find the turning point of the line segment, which is the highest position of the blood clot level.
步骤b3,根据所述感兴趣区域ROI-P检测所述试管中是否存在凝胶得到检测结果,并根据所述检测结果确定所述血清液面最低位位置。Step b3: Detecting whether there is gel in the test tube according to the region of interest ROI-P to obtain a detection result, and determining the position of the lowest level of the serum liquid level according to the detection result.
在本实施例中,终端设备通过上述过程中确定的原本的试管图像对应的感兴趣区域ROI-P来判断盛装血清样本的试管中是否存在凝胶,以分别基于存在凝胶或者不存在凝胶的检测结果来确定该血清样本在该试管中的血清液面最低位位置。In this embodiment, the terminal device determines whether there is gel in the test tube containing the serum sample through the region of interest ROI-P corresponding to the original test tube image determined in the above process, so as to determine whether there is gel or not based on the presence of gel or the absence of gel. The detection result is used to determine the lowest position of the serum level of the serum sample in the test tube.
进一步地,在一种可行的实施例中,上述步骤b3,进一步可以包括:Further, in a feasible embodiment, the above step b3 may further include:
将所述感兴趣区域ROI-P由所述RGB颜色空间变换至预设颜色空间后,对所述感兴趣区域ROI-P沿水平方向取均值,以通过所述均值确定所述试管中是否存在凝胶得到对应的检测结果。After transforming the region of interest ROI-P from the RGB color space to a preset color space, take the average value of the region of interest ROI-P along the horizontal direction, so as to determine whether there is a presence in the test tube through the average value The gel obtained the corresponding detection result.
在本实施例中,终端设备在已确定试管中盛装的血清样本的血清液面最高位位置和血块液面最高位位置之后,进一步通过判断试管中有无凝胶的存在来确定该血清样本的血清液面最低位位置。In this embodiment, after the terminal device has determined the highest position of the serum liquid level and the highest position of the blood clot liquid level of the serum sample contained in the test tube, the terminal device further determines whether there is gel in the test tube to determine the serum level of the serum sample. The lowest position of the serum level.
具体地,请参照图19左侧图像所示的存在凝胶的试管和右侧图像所示的不存在凝胶的试管。终端设备将原本的试管图像P1对应的感兴趣区域ROI_P图像由RGB颜色空间变换到HSV颜色空间(基于实际应用的不同设计需要当然也可以转化为其他颜色空间,如RGB,YUV,HIS等),然后对该感兴趣区域ROI_P的矩阵沿水平方向取均值或中值得到如图20所示的该矩阵HSV三通道的均值,其中,从第二通道可明显观察出血液样本中是否存在凝胶。Specifically, please refer to the test tube with gel shown in the left image of FIG. 19 and the test tube without gel shown in the right image. The terminal device transforms the ROI_P image of the region of interest corresponding to the original test tube image P1 from the RGB color space to the HSV color space (of course, it can also be converted to other color spaces based on different design needs of practical applications, such as RGB, YUV, HIS, etc.), Then the average or median value of the matrix of the region of interest ROI_P is taken along the horizontal direction to obtain the average value of the three HSV channels of the matrix as shown in FIG. 20 , wherein whether there is gel in the blood sample can be clearly observed from the second channel.
即,在如图21所示的应用场景中,L1为通过ROI_B单像素线段确定的液面最高位位置,L2为通过ROI_R单像素线段确定的血块液面最高位位置,而该L1和L2之间的中间线段,若原本的试管图像P1为如图21左侧所示的不含凝胶的试管,则对应该中间线段应当无明显的分层,反之,若该试管图像P1为如图19右侧所示的含有凝胶的试管,则对应可明显看到该中间线段会出现明显的两段,其中,右边较低像素部分为分离剂区域,而左边较高像素为血清区域。That is, in the application scenario shown in Figure 21, L1 is the highest position of the liquid level determined by the single-pixel line segment of ROI_B, L2 is the highest position of the blood clot liquid level determined by the single-pixel line segment of ROI_R, and the difference between L1 and L2 If the original test tube image P1 is a test tube without gel as shown on the left side of Figure 21, there should be no obvious layering corresponding to the middle line segment. On the contrary, if the test tube image P1 is as shown in Figure 19 For the test tube containing the gel shown on the right, it can be clearly seen that there will be two distinct segments in the middle line segment, wherein the lower pixel part on the right is the separating agent area, and the higher pixel on the left is the serum area.
最后,终端设备通过遍历上述L1和L2之间中间线段的点,来寻找该中间线段的转折点,其中,该转折点是使得中间线段中左右两端总像素差值最大的点,并判断该两端像素差值是否大于阈值X来确定血清液面最低位位置。即,若该差值大于阈值X,则该试管中含有凝胶,血清液面最低位位置(假如为L3)就为该转折点,反之,若该差值小于阈值X,则该试管中不含有凝胶,从而该血清液面最低位位置L3就为血块液面最高位位置L2。Finally, the terminal device searches for the turning point of the middle line segment by traversing the points of the middle line segment between L1 and L2, wherein the turning point is the point that maximizes the total pixel difference between the left and right ends of the middle line segment, and judges the two ends Whether the pixel difference is greater than the threshold X determines the position of the lowest level of the serum level. That is, if the difference is greater than the threshold X, the test tube contains gel, and the lowest position of the serum level (if it is L3) is the turning point; on the contrary, if the difference is less than the threshold X, the test tube does not contain gel Therefore, the lowest level position L3 of the serum level is the highest level position L2 of the blood clot level.
需要说明的是,在本实施例中,上述阈值X选取过程为:取多个血清样本,采集得到各个样本血清区域像素平均值A1和样本凝胶区域像素平均值A2,则该阈值X=|A1-A2|。It should be noted that, in this embodiment, the above-mentioned threshold X selection process is: taking multiple serum samples, collecting and obtaining the pixel average value A1 in the serum area of each sample and the pixel average value A2 in the sample gel area, then the threshold value X=| A1-A2|.
在本实施例中,终端设备在针对盛装在试管中需要计算血清液面高度和血清量的血清样本进行分析时,首先通过预设的工业相机或者其它图像拍摄装置针对盛装该血清样本的试管进行图像采集操作来得到最优的符合要求的试管图像;之后,进一步将该试管图像在RGB颜色空间中分离为对应的三通道图像,并进一步从该三通道图像和原本的试管图像当中,分别确定出各自对应的感兴趣区域ROI;最后,分别使用该感兴趣区域ROI对应的样本指标进行分析,以计算出试管中所盛装血清样本的血清液面位置,以及进一步基于该血清液面位置计算血清量等。In this embodiment, when the terminal device analyzes the serum sample contained in the test tube and needs to calculate the serum level and the serum volume, it first analyzes the test tube containing the serum sample through a preset industrial camera or other image capturing device. image acquisition operation to obtain the optimal test tube image that meets the requirements; after that, the test tube image is further separated into corresponding three-channel images in the RGB color space, and further determined from the three-channel image and the original test tube image. Finally, use the sample index corresponding to the region of interest ROI for analysis to calculate the serum level position of the serum sample contained in the test tube, and further calculate the serum level based on the serum level position. amount, etc.
相比于现有针对试管中盛装的血清样本进行分析的方式,本发明通过针对采集的试管图像先进行分离后再提取对应感兴趣区域ROI来进行相应的血清样本分析,能够避免试管标签对图像颜色的影响,从而确保分析计算血样样本液面高度和血清量的准确性,还能够进一步避免基于人工肉眼观察造成的人力资源浪费情况,有效地提升了基于采集试管图像针对血清样本进行分析的效率。Compared with the existing method of analyzing the serum samples contained in the test tubes, the present invention performs the corresponding serum sample analysis by first separating the collected test tube images and then extracting the ROI corresponding to the region of interest, which can avoid the test tube labels to the images. Influence of color, thus ensuring the accuracy of analyzing and calculating the blood sample level and serum volume, further avoiding the waste of human resources caused by manual visual observation, and effectively improving the efficiency of serum sample analysis based on the collection of test tube images. .
进一步地,请参照图2,在本发明基于神经网络的血清质量识别方法的一实施例中,针对盛装血清样本的试管进行图像采集得到试管图像,可以包括:Further, please refer to FIG. 2 , in an embodiment of the neural network-based serum quality identification method of the present invention, the test tube image obtained by performing image collection on the test tube containing the serum sample may include:
步骤i,针对待采集图像的试管,统计所述试管的非标签区域在实时试管图像中的像素值个数以确定非标签区域面积;Step i, for the test tube of the image to be collected, count the number of pixel values of the non-label area of the test tube in the real-time test tube image to determine the area of the non-label area;
在本实施例中,终端设备在针对试管进行图像采集的过程当中,针对需要进行图像采集的试管,首先统计该试管上未被标签或者条形码覆盖的非标签区域,在由工业相机针对该试管采集的实时试管图像当中的像素值个数,从而确定得出该非标签区域在该实时试管图像中的非标签区域面积。In this embodiment, in the process of collecting images for the test tubes, the terminal device firstly counts the non-labeled areas on the test tubes that are not covered by labels or barcodes for the test tubes that need to be image collected, and then collects the test tubes by the industrial camera. The number of pixel values in the real-time test tube image, so as to determine the non-label area area of the non-label area in the real-time test tube image.
具体地,例如,请参照如图7所示应用流程,终端设备在针对任意一个试管进行图像采集时,首先利用预设的工业相机拍摄该试管得到试管在初始状态下的实时试管图像,之后,再通过系统架构中的数据处理单元对摄取到的该实时试管图像进行数据分析。即,如图8所示的场景,终端设备以该实时试管图像的左上角为坐标原点,以图像中试管所垂直的方向为x轴,并以图像中试管的高度方向为y轴,在该图像当中建立坐标系,然后对该图像进行处理,获取得到试管高度。最后,使用如图12所示的计算过程将图像由RGB空间转换到HSV等颜色空间,从而基于确定的试管高度截取S通道试管中间区域50个像素值为判断矩阵,即取H/2-25至H/2+25之间50个像素值的矩阵块,H即表示试管高度,在矩阵内对图像的每个像素值进行划分,并统计该矩阵块中非标签区域的像素值个数来作为试管上的非标签区域在当前该实时试管图像当中的非标签区域面积。Specifically, for example, referring to the application process shown in Figure 7, when the terminal device performs image acquisition for any test tube, it first uses a preset industrial camera to photograph the test tube to obtain a real-time test tube image of the test tube in its initial state, and then, Then, data analysis is performed on the captured real-time test tube image through the data processing unit in the system architecture. That is, as shown in FIG. 8, the terminal device takes the upper left corner of the real-time test tube image as the coordinate origin, the vertical direction of the test tube in the image as the x-axis, and the height direction of the test tube in the image as the y-axis. A coordinate system is established in the image, and then the image is processed to obtain the height of the test tube. Finally, use the calculation process shown in Figure 12 to convert the image from RGB space to HSV and other color spaces, so as to intercept 50 pixels in the middle area of the S channel test tube based on the determined test tube height as the judgment matrix, that is, take H/2-25 A matrix block with 50 pixel values between H/2+25, H means the height of the test tube, divide each pixel value of the image in the matrix, and count the number of pixel values in the non-label area in the matrix block to get The area of the non-labeled area in the current real-time tube image as the non-labeled area on the test tube.
需要说明的是,在本实施例中,应当理解的是,终端设备截取50个像素值为判断矩阵并不是唯一值,基于实际应用的不同设计需要,在不同可行的实时方式中,终端设备当然可根据实际拍摄的实时试管图像的大小对截取的像素值个数进行调整。It should be noted that, in this embodiment, it should be understood that the value of 50 pixels intercepted by the terminal device is not a unique value for the judgment matrix. Based on different design requirements of practical applications, in different feasible real-time methods, the terminal device is of course The number of intercepted pixel values can be adjusted according to the size of the real-time test tube image actually captured.
此外,请参照图4,由于实时试管图像当中,背景和标签区域相对较暗,而非标签区域(或者也可称做标签间隙区域)相对较亮,因此,终端设备具体可通过设定像素阈值A,将大于图像中像素大于该阈值A的区域判断为非标签区域,而将小于该阈值A的区域则判断为背景和标签区域。In addition, please refer to FIG. 4, since in the real-time test tube image, the background and the label area are relatively dark, while the non-label area (or also called the label gap area) is relatively bright. Therefore, the terminal device can specifically set the pixel threshold by setting the pixel threshold. A, the area with pixels larger than the threshold A in the image is judged as a non-label area, and the area smaller than the threshold A is judged as the background and label area.
需要说明的是,在本实施例中,由于终端设备在实时试管图像中建立坐标系之后,该试管的最上端位置旋即固定,因此只需通过定位出图像中该试管的最低位则可求出试管高度。应当理解的是,基于实际应用的不同设计需要,在不同可行的实施方式当中,终端设备具体可通过多种方法来定位找到该试管的底座标,如:首先,直接将B通道图像二值化或者通过检测图像的边缘(具体如通过Sobel,Roberts,Prewitt,Canny等边缘检测算子检测出试管的边缘),之后再进行形态学等处理,分离出试管区域和背景区域,最后,通过沿试管高度方向统计图像的像素值找到试管底端坐标(H,M)。It should be noted that, in this embodiment, after the terminal device establishes the coordinate system in the real-time test tube image, the position of the uppermost end of the test tube is fixed immediately, so it is only necessary to locate the lowest position of the test tube in the image to obtain Test tube height. It should be understood that, based on different design requirements of practical applications, in different feasible implementation manners, the terminal device can locate and find the base mark of the test tube through various methods, such as: first, directly binarize the B channel image Or by detecting the edge of the image (specifically, detecting the edge of the test tube through edge detection operators such as Sobel, Roberts, Prewitt, Canny, etc.), and then performing morphological processing to separate the test tube area and the background area, and finally, by moving along the test tube Find the coordinates (H, M) of the bottom end of the test tube from the pixel value of the statistical image in the height direction.
具体地,终端设备具体可利用B通道图像来定位试管底坐标。即,终端设备将实时试管图像分离为R,G,B三通道,对B通道图像进行二值化、形态学处理,此时,图像中试管未被标签遮挡的非标签区域为黑色,而标签或背景区域则为白色。之后,如图9所示的场景,终端设备再将处理后的图像沿行方向进行叠加或者取平均值,以使图像由矩阵变为单像素线,通过从图像底端开始向上查找,以将找到第一个不为0的位置则为试管的高度H。此外,如图10所示的场景,终端设备具体还可以通过截取该图像在H点以上的一小部分区域(如,选取30个像素值),以对列方向进行求平均或者叠加,再从左往右取第一个不为0的点为x1,从右往左取第一个不为0的点为x2,求其均值则为此时图像中试管的中心区域M。Specifically, the terminal device can use the B channel image to locate the coordinates of the bottom of the test tube. That is, the terminal device separates the real-time test tube image into three channels, R, G, and B, and performs binarization and morphological processing on the B channel image. Or the background area is white. Afterwards, as shown in Figure 9, the terminal device superimposes or averages the processed images along the line direction, so that the image changes from a matrix to a single-pixel line, and searches upwards from the bottom of the image to The first position that is not 0 is found to be the height H of the test tube. In addition, in the scenario shown in Figure 10, the terminal device can also intercept a small part of the image above the H point (for example, select 30 pixel values) to average or superimpose the column direction, and then extract from The first point that is not 0 from left to right is taken as x1, and the first point that is not 0 from right to left is taken as x2, and the mean value is the central area M of the test tube in the image at this time.
进一步地,在另一中可行的实施例中,终端设备具体还可以利用边缘检测算法来定位图像中试管的底座标。Further, in another feasible embodiment, the terminal device may specifically use an edge detection algorithm to locate the base marker of the test tube in the image.
具体地,终端设备预先根据实时试管图像的大小选择合适尺寸的滤波器,然后用Canny算子对该图像进行边缘检测得到图像中试管的轮廓图像;再然后,使用形态学处理(如闭操作),两遍扫描法对边缘图像进行处理并二值化图像得到如图11所示的边缘部分为白色而其余部分为黑色的二值图像,最后,再通过上述沿试管高度方向统计图像的像素值的方式找到试管的底端坐标(H,M)。Specifically, the terminal device selects a filter of an appropriate size according to the size of the real-time test tube image in advance, and then uses the Canny operator to perform edge detection on the image to obtain the contour image of the test tube in the image; then, use morphological processing (such as closing operation) , the two-pass scanning method is used to process the edge image and binarize the image to obtain a binary image in which the edge part is white and the rest part is black as shown in Figure 11. Finally, the pixel value of the image is counted along the height direction of the test tube through the above way to find the coordinates (H, M) of the bottom end of the test tube.
步骤ii,检测所述非标签区域面积是否满足预设旋转条件,并在检测到是时,针对所述试管执行第一旋转操作后采集图像;Step ii, detecting whether the area of the non-label area satisfies the preset rotation condition, and when it is detected, collecting an image after performing the first rotation operation for the test tube;
需要说明的是,在本实施例中,预设旋转条件为试管的非标签区域面积在此时为0,该第一旋转操作为针对试管旋转180°。It should be noted that, in this embodiment, the preset rotation condition is that the area of the non-label area of the test tube is 0 at this time, and the first rotation operation is to rotate the test tube by 180°.
在本实施例中,终端设备在统计得到当前实时试管图像当中试管的非标签区域面积之后,检测该面积是否为0,并在检测到该面积为0时,立即针对该试管旋转达180°之后,再针对该试管进行图像采集。In this embodiment, the terminal device detects whether the area is 0 after the non-label area of the test tube in the current real-time test tube image is obtained by statistics, and when it detects that the area is 0, immediately rotates the test tube by 180° , and then perform image acquisition for the test tube.
具体地,例如,请参照如图7所示应用流程,终端设备在统计得到在当前实时试管图像当中试管的非标签区域面积为0时,先针对该试管执行旋转操作令试管旋转180°,之后再重复执行上述步骤S10的过程统计到新的非标签区域面积大于或者等于预先设定的面积阈值时,针对该试管进行图像采集以得到符合进行样本检测的要求的试管图像。Specifically, for example, referring to the application process shown in FIG. 7 , when the terminal device statistically obtains that the area of the non-labeled area of the test tube in the current real-time test tube image is 0, it first performs a rotation operation on the test tube to rotate the test tube by 180°, and then When the process of the above step S10 is repeatedly performed and it is calculated that the area of the new non-label area is greater than or equal to the preset area threshold, image acquisition is performed for the test tube to obtain a test tube image that meets the requirements for sample detection.
进一步地,在一种可行的实施例中,本发明基于试管图像的血清样本分析方法,还可以包括:Further, in a feasible embodiment, the test tube image-based serum sample analysis method of the present invention may further include:
步骤A,针对所述试管执行第一旋转操作后针对所述试管输出预设第一告警提示;Step A, outputting a preset first alarm prompt for the test tube after performing the first rotation operation on the test tube;
需要说明的是,在本实施例中,预设第一告警提示为提示用户试管各个角度均被标签覆盖的提示。It should be noted that, in this embodiment, the preset first alarm prompt is a prompt prompting the user that all angles of the test tube are covered by labels.
在本实施例中,终端设备在针对执行第一旋转操作以令该试管旋转达180°之后,若终端设备进一步统计得到的试管在新的实时试管图像中的新的非标签区域面积仍然为0,则终端设备针对该试管输出预设第一告警提示以提示用户试管各个角度均被标签覆盖。In this embodiment, after the terminal device performs the first rotation operation to rotate the test tube by 180°, if the terminal device further collects statistics on the new non-label area of the test tube in the new real-time test tube image, the area is still 0 , the terminal device outputs a preset first alarm prompt for the test tube to prompt the user that all angles of the test tube are covered by labels.
进一步地,在一种可行的实施例中,上述步骤A,可以包括:Further, in a feasible embodiment, the above step A may include:
步骤A1,针对所述试管执行第一旋转操作后确定所述试管新的非标签区域面积;Step A1, after performing the first rotation operation on the test tube, determine the new non-label area area of the test tube;
步骤A2,检测所述新的非标签区域面积是否满足所述预设旋转条件,并在检测到是时针对所述试管输出预设第一告警提示。Step A2, detecting whether the area of the new non-label area satisfies the preset rotation condition, and outputting a preset first alarm prompt for the test tube when it is detected.
请参照如图7所示应用流程,在本实施例中,终端设备在针对试管执行旋转操作令试管旋转180°之后,再重复执行上述步骤S10的过程统计到新的非标签区域面积,然后,若终端设备进一步检测到该新的非标签区域面积仍然为0,则终端设备立即针对该试管向用户输出预设第一告警提示以提示用户试管各个角度均被标签覆盖。Referring to the application process shown in FIG. 7 , in this embodiment, after the terminal device performs the rotation operation on the test tube to rotate the test tube by 180°, the terminal device repeats the process of the above step S10 to count the new non-label area area, and then, If the terminal device further detects that the area of the new non-label area is still 0, the terminal device immediately outputs a preset first alarm prompt for the test tube to the user to remind the user that all angles of the test tube are covered by labels.
步骤iii,在检测到否时,检测所述非标签区域面积与预设的面积阈值之间的大小关系得到检测结果;Step iii, when detecting No, detect the size relationship between the area of the non-labeled area and the preset area threshold to obtain a detection result;
在本实施例中,终端设备在检测当前实时试管图像中试管的非标签区域面积是否为0,从而检测到该面积不为0时,进一步检测该非标签区域面积与预先设定的面积阈值之间的大小关系,从而得到该非标签区域面积大于该面积阈值的检测结果,或者,得到该非标签区域面积小于该面积阈值的检测结果。In this embodiment, when the terminal device detects whether the area of the non-label area of the test tube in the current real-time test tube image is 0, and thus detects that the area is not 0, the terminal device further detects the difference between the area of the non-label area and the preset area threshold. The size relationship between the two, so as to obtain the detection result that the area of the non-label area is greater than the area threshold, or obtain the detection result that the area of the non-label area is smaller than the area threshold.
具体地,例如,请参照如图7所示应用流程,终端设备在统计得到在当前实时试管图像当中试管的非标签区域面积不为0时,进一步将该非标签区域面积与预设的面积阈值进行比较以确定该非标签区域面积是大于该面积阈值还小于该面积阈值。Specifically, for example, referring to the application process shown in FIG. 7 , when the terminal device statistically obtains that the area of the non-label area of the test tube in the current real-time test tube image is not 0, the terminal device further compares the area of the non-label area with the preset area threshold. A comparison is made to determine whether the non-label area area is greater than the area threshold or less than the area threshold.
需要说明的是,在本实例中,终端设备预先基于试管非标签区域正对工业相机进行图像采集的过程来设定好该面积阈值。进一步地,在一种可行的实施例中,本发明基于试管图像的血清样本分析方法还可以包括:It should be noted that, in this example, the terminal device pre-sets the area threshold based on the process in which the unlabeled area of the test tube is capturing images of the industrial camera. Further, in a feasible embodiment, the test tube image-based serum sample analysis method of the present invention may further include:
步骤1,通过预设的工业相机采集试管的非标签区域正对所述工业相机的试管图像;
步骤2,将所述试管图像由RGB空间转换到HSV颜色空间并提取S通道中间区域的矩阵块;
步骤3,统计所述矩阵块中所述非标签区域的像素值个数以确定所述试管的非标签区域面积的面积阈值。Step 3: Count the number of pixel values of the non-label area in the matrix block to determine the area threshold of the area of the non-label area of the test tube.
在本实施例中,终端设备预先基于工业相机摄取得到试管的非标签区域正对该工业相机的试管图像,然后,将该试管图像同样由RGB空间转换到HSV颜色空间,从而提取出S通道中间区域部分像素值的矩阵块,最后,终端设备在该矩阵块当中统计非标签区域在该图像中的像素值的个数以确定出针对该试管进行样本检测时,该试管的非标签区域面积最小的面积阈值。In this embodiment, the terminal device preliminarily obtains the test tube image of the non-labeled area of the test tube facing the industrial camera based on the industrial camera, and then converts the test tube image from the RGB space to the HSV color space, so as to extract the middle of the S channel A matrix block of pixel values in the region. Finally, the terminal device counts the number of pixel values of the non-label area in the image in the matrix block to determine when the test tube is subjected to sample detection, the non-label area of the test tube is the smallest. area threshold.
需要说明的是,在本实施例中,由于在判断所采集到的试管图像中,非标签区域是否满足样板检测要求前,需首针对该试管先给出非标签区域面积的最小的面积阈值。从而,若终端设备在实时试管图像当中统计的试管的非标签区域面积大于或者等于该面积阈值是,则可判断当前针对试管进行图像采集得到的试管图像是非标签区域满足设备进行样本检测的要求。It should be noted that, in this embodiment, before judging whether the non-label area meets the sample detection requirements in the collected test tube image, the minimum area threshold of the area of the non-label area needs to be given first for the test tube. Therefore, if the area of the unlabeled area of the test tube counted by the terminal device in the real-time test tube image is greater than or equal to the area threshold, it can be determined that the test tube image obtained by the current image acquisition for the test tube is the unlabeled area that meets the requirements of the device for sample detection.
请参照如图4所示的应用场景,终端设备在将通过工业相机摄取到的实时试管图形RGB空间转换到HSV颜色空间中之后,在S通道可明显观察出图像中试管的非标签区域与标签区域的区别,即,图像中背景和白色标签区域在S通道中为暗黑色,而非标签区域的颜色却较为明亮。因此,终端设备即根据图像中像素值的灰度级别判断试管哪些位置贴有标签。Please refer to the application scenario shown in Figure 4. After the terminal device converts the RGB space of the real-time test tube image captured by the industrial camera into the HSV color space, the non-labeled area and label of the test tube in the image can be clearly observed in the S channel. The difference between the regions, that is, the background and white label regions in the image are dark black in the S channel, while the color of the non-label regions is brighter. Therefore, the terminal device determines which positions of the test tubes are labeled according to the gray level of the pixel values in the image.
此外,请参照如图5所示的应用场景,当试管中盛装的血清样本中含有血块时(如离心后的血清),此时血块在上述S通道中其像素值颜色较暗,从而终端设备可能在计算试管非标签区域面积时,会把此该血块所在图像区域划为试管的标签区域从而导致识别错误。然而,通常在含有凝胶的血清样本中,血块不高于整体液面水平的1/2,基于此,终端设备为得到准确非标签区域面积的最小的面积阈值,终端设备即通过检测试管高度,进而截取该试管的中间固定区域来进行试管非标签区域面积的检测。In addition, please refer to the application scenario shown in Figure 5. When the serum sample contained in the test tube contains blood clots (such as serum after centrifugation), the pixel value of the blood clot in the above S channel is darker, so the terminal equipment It is possible that when calculating the area of the non-labeled area of the test tube, the image area where the blood clot is located will be divided into the labeling area of the test tube, resulting in an error in identification. However, usually in serum samples containing gel, the blood clot is not higher than 1/2 of the overall liquid level. Based on this, in order to obtain the minimum area threshold for the accurate non-label area, the terminal device detects the height of the test tube by detecting the height of the test tube. , and then intercept the middle fixed area of the test tube to detect the area of the non-labeled area of the test tube.
具体地,请参照如图6所示的应用场景,终端设备通过工业相机拍摄一张试管的非标签区域处正对于相机的试管图像(具体可以通过用户手动调整试管角度采集得到),取S通道中间区域高度H/2-25至H/2+25之间的矩阵块,之后,统计此矩阵块区域中试管非标签区域的像素值个数C,并将此像素值个数作为面积阈值V=C-α,α为允许的偏差个数。Specifically, please refer to the application scenario shown in Figure 6. The terminal device uses an industrial camera to take an image of the test tube facing the camera at the non-labeled area of the test tube (specifically, it can be obtained by manually adjusting the angle of the test tube by the user), and take the S channel. A matrix block with a height between H/2-25 and H/2+25 in the middle area, after that, count the number of pixel values C in the non-label area of the test tube in this matrix block area, and use this number of pixel values as the area threshold V =C-α, α is the allowable number of deviations.
步骤iiii,根据所述检测结果,直接针对所述试管采集图像或者在针对所述试管执行第二旋转操作后采集图像。In step iiii, according to the detection result, an image is directly collected for the test tube or an image is collected after a second rotation operation is performed for the test tube.
在本实施例中,终端设备在检测非标签区域面积与预先设定的面积阈值之间的大小关系,从而得到该非标签区域面积大于该面积阈值的检测结果,或者,得到该非标签区域面积小于该面积阈值的检测结果之后,终端设备即进一步基于该不同的检测结果,对应的直接针对试管进行图像采集或者先针对该试管进行第二旋转操作令试管旋转预设角度之后,在针对该试管进行图像采集。In this embodiment, the terminal device detects the size relationship between the area of the non-label area and a preset area threshold, thereby obtaining a detection result that the area of the non-label area is greater than the area threshold, or obtains the area of the non-label area After the detection result is smaller than the area threshold, the terminal device further based on the different detection results, the corresponding direct image acquisition for the test tube or the second rotation operation for the test tube is performed first to rotate the test tube by a preset angle, and then the test tube is rotated by a preset angle. Perform image acquisition.
进一步地,在一种可行的实施例中,上述步骤iiii,可以包括:Further, in a feasible embodiment, the above-mentioned step iiii may include:
步骤i1,在所述检测结果为所述非标签区域面积大于或者等于所述面积阈值时,直接通过所述工业相机针对所述试管采集图像;Step i1, when the detection result is that the area of the non-label area is greater than or equal to the area threshold, directly collect an image of the test tube through the industrial camera;
在本实施例中,请参照如图7所示的应用流程,假定终端设备当前采集到的实时试管图像具体如图13中最右侧的图像,则终端设备在检测当前实时试管图像中试管的非标签区域面积是否为0,从而检测到该面积不为0时,进一步检测该非标签区域面积与预先设定的面积阈值之间的大小关系,并得到该非标签区域面积大于该面积阈值的检测结果时,终端设备即确定目前采集到的图像已经满足设备进行样本检测的要求,从而无需针对该试管进行旋转即可直接进行图像采集(具体可以为直接将当前的实时试管图像作为最佳的试管图像进行存储以供设备后续进行样本检测)。In this embodiment, please refer to the application process shown in FIG. 7 , assuming that the real-time test tube image currently collected by the terminal device is specifically the rightmost image in FIG. 13 , the terminal device is detecting the current real-time test tube image in the test tube image. Whether the area of the non-label area is 0, so that when it is detected that the area is not 0, the size relationship between the area of the non-label area and the preset area threshold is further detected, and the area of the non-label area greater than the area threshold is obtained. When the test result is detected, the terminal device determines that the currently collected image has met the requirements of the device for sample detection, so that image acquisition can be performed directly without rotating the test tube (specifically, the current real-time test tube image can be directly used as the best test tube image). Tube images are stored for subsequent sample testing by the device).
步骤i2,在所述检测结果为所述非标签区域面积小于所述面积阈值时,针对所述试管执行所述第二旋转操作以将所述非标签区域的中点旋转至所述工业相机的正对面之后,通过所述工业相机针对所述试管采集图像。Step i2, when the detection result is that the area of the non-label area is smaller than the area threshold, the second rotation operation is performed on the test tube to rotate the midpoint of the non-label area to the area of the industrial camera. After being directly opposite, an image of the test tube is captured by the industrial camera.
在本实施例中,请参照如图7所示的应用流程,终端设备在检测当前实时试管图像中试管的非标签区域面积是否为0,从而检测到该面积不为0时,进一步检测该非标签区域面积与预先设定的面积阈值之间的大小关系,并得到该非标签区域面积小于该面积阈值的检测结果时,终端设备即进一步针对试管执行第二旋转操作以令该试管旋转预设角度,从而令试管新的非标签区域面积满足设备进行样本检测的要求之后,再针对该试管进行图像采集得到最佳的试管图像以供设备后续进行样本检测。In this embodiment, please refer to the application process shown in FIG. 7 , when the terminal device detects whether the area of the non-labeled area of the test tube in the current real-time test tube image is 0, and thus detects that the area is not 0, it further detects the non-labeled area of the test tube. When the size relationship between the area of the label area and the preset area threshold is obtained, and the detection result that the area of the non-label area is smaller than the area threshold is obtained, the terminal device further performs a second rotation operation on the test tube to rotate the test tube by the preset value. angle, so that the area of the new non-labeled area of the test tube meets the requirements of the device for sample detection, and then image acquisition is performed on the test tube to obtain the best test tube image for the device to perform subsequent sample detection.
进一步地,在一种可行的实施例中,上述步骤i2中,“针对所述试管执行所述第二旋转操作以将所述非标签区域的中点旋转至所述工业相机的正对面”的步骤,可以包括:Further, in a feasible embodiment, in the above step i2, "the second rotation operation is performed on the test tube to rotate the midpoint of the non-label area to the direct opposite of the industrial camera". steps, which can include:
步骤i21,将当前所述工业相机采集到的所述非标签区域中的第一区域对半划分为左侧区域和右侧区域;Step i21, dividing the first area in the non-label area currently collected by the industrial camera into a left area and a right area in half;
步骤i2,分别统计所述左侧区域和所述右侧区域的像素值个数以对应确定左侧区域面积和右侧区域面积,并检测所述左侧区域面积和所述右侧区域面积之间的大小关系;Step i2, count the number of pixel values of the left area and the right area respectively to determine the area of the left area and the area of the right area, and detect the difference between the area of the left area and the area of the right area. the size relationship between
步骤i3,若检测到所述左侧区域面积大于所述右侧区域面积,则将所述试管向右旋转预设角度以将所述非标签区域的中点旋转至所述工业相机的正对面;或者,Step i3, if it is detected that the area of the left area is larger than the area of the right area, rotate the test tube to the right by a preset angle to rotate the midpoint of the non-label area to the front of the industrial camera ;or,
步骤i4,若检测到所述右侧区域面积大于所述左侧区域面积,则将所述试管向左旋转预设角度以将所述中点旋转至所述工业相机的正对面。Step i4, if it is detected that the area of the right side area is larger than the area of the left side area, rotate the test tube to the left by a preset angle to rotate the midpoint to the opposite side of the industrial camera.
在本实施例中,请参照如图7所示的应用场景,若终端设备检测到试管不为0的非标签区域面积小于预先设定的面积阈值使,终端设备确定当前已找到试管上的非标签区域,从而,通过针对该试管旋转预设角度将该非标签区域的中点旋转至工业相机的正对面,即,终端设备在当前实时试管图像中统计试管非标签面积的矩阵块的中心区域M处,对该矩阵块进行左右划分得到左侧区域和右侧区域,之后,终端设备统计该左侧区域试管非标签区域的像素值的个数得到左侧区域面积,和,统计该右侧区域试管非标签区域的像素值的个数得到右侧区域面积。In this embodiment, please refer to the application scenario shown in Figure 7, if the terminal device detects that the area of the non-labeled area of the test tube is not 0 is smaller than the preset area threshold, the terminal device determines that it has found the non-labeled area on the test tube. The labeling area, so that the midpoint of the non-labeling area is rotated to the direct opposite of the industrial camera by rotating a preset angle for the test tube, that is, the terminal device counts the central area of the matrix block of the non-labeling area of the test tube in the current real-time test tube image At M, the matrix block is divided to the left and right to obtain the left area and the right area. After that, the terminal device counts the number of pixel values in the unlabeled area of the test tube in the left area to obtain the area of the left area, and counts the right area. The number of pixel values in the unlabeled area of the area test tube gives the area on the right side.
然后,终端设备检测该左侧区域面积与该右侧区域面积之间的大小关系,若该左侧区域面积大于右侧区域面积(若终端设备在当前采集的实时试管图像如图13中间的图像,则该左侧区域面积大于右侧区域面积),则终端设备确定此时试管上非标签区域的中点处于试管左边,从而针对该试管进行第二旋转操作以将试管向右旋转预设角度N,以令该中点正对工业相机。Then, the terminal device detects the size relationship between the area on the left side and the area on the right side. If the area on the left side is larger than the area on the right side (if the real-time test tube image currently collected by the terminal device is as shown in the image in the middle of Figure 13 ) , then the area of the left area is larger than the area of the right area), then the terminal device determines that the midpoint of the non-labeled area on the test tube is on the left side of the test tube, so that the second rotation operation is performed on the test tube to rotate the test tube to the right by a preset angle N, so that the midpoint is facing the industrial camera.
或者,若终端设备检测到该左侧区域面积小于右侧区域面积(若终端设备在当前采集的实时试管图像如图13最右侧的图像,则该左侧区域面积小于右侧区域面积),则终端设备确定此时试管上非标签区域的中点处于试管右边,从而针对该试管进行第二旋转操作以将试管向左旋转预设角度N,以令该中点正对工业相机。Or, if the terminal device detects that the area of the left area is smaller than the area of the right area (if the real-time test tube image currently collected by the terminal device is as shown in the rightmost image in Figure 13, the area of the left area is smaller than the area of the right area), The terminal device determines that the midpoint of the non-labeled area on the test tube is on the right side of the test tube, and performs a second rotation operation for the test tube to rotate the test tube to the left by a preset angle N, so that the midpoint faces the industrial camera.
需要说明的是,在本实施例中,所述预设角度,基于所述试管的直径和所述工业相机当前采集到的实时试管图像中所述试管的标签间隙处角度计算得到,其中,所述标签间隙处角度,基于所述试管上标签的标签面积和所述试管的周长计算得到。It should be noted that, in this embodiment, the preset angle is calculated based on the diameter of the test tube and the angle at the label gap of the test tube in the real-time test tube image currently collected by the industrial camera, wherein the The angle at the label gap is calculated based on the label area of the label on the test tube and the perimeter of the test tube.
具体地,请参照如图15所示的应用场景,终端设备在控制试管向左或者向右旋转预设角度N时,基于预先采集的试管的直径d和周长C,以及试管上所粘贴标签或者条形码的面积大小M,实时按照如下公式1计算得到该预设角度N:Specifically, please refer to the application scenario shown in FIG. 15 , when the terminal device controls the test tube to rotate to the left or right by a preset angle N, based on the pre-collected diameter d and perimeter C of the test tube, and the label affixed on the test tube Or the area size M of the barcode can be calculated in real time according to the following
公式1: Formula 1:
其中,为试管在实时试管图像中非标签区域的角度,该角度通过如下公式2计算得到:in, is the angle of the non-labeled area of the tube in the live tube image, the angle It is calculated by the following formula 2:
公式2: Formula 2:
进一步地,在一种可行的实施例中,本发明基于试管图像的血清样本分析方法还可以包括:Further, in a feasible embodiment, the test tube image-based serum sample analysis method of the present invention may further include:
步骤B,在针对所述试管执行第二旋转操作后针对所述试管输出预设第二告警提示;Step B, outputting a preset second alarm prompt for the test tube after the second rotation operation is performed on the test tube;
需要说明的是,在本实施例中,预设第二告警提示为提示用户试管上标签或者条形码的粘贴不符合样本检测要求的提示。It should be noted that, in this embodiment, the preset second alarm prompt is a prompt prompting the user that the label or barcode on the test tube does not meet the sample detection requirements.
在本实施例中,终端设备在针对执行第二旋转操作以令该试管旋转达预设角度之后,若终端设备进一步统计得到的试管在新的实时试管图像中的新的非标签区域面积虽不为0但仍然小于面积阈值,则终端设备针对该试管输出预设第二告警提示以提示用户该试管上标签或者条形码的粘贴不符合样本检测要求。In this embodiment, after the terminal device performs the second rotation operation to rotate the test tube to a preset angle, if the terminal device further counts the new non-label area of the test tube in the new real-time test tube image, although the area is not If it is 0 but still smaller than the area threshold, the terminal device outputs a preset second alarm prompt for the test tube to remind the user that the label or barcode on the test tube does not meet the sample detection requirements.
进一步地,在一种可行的实施例中,上述步骤B,可以包括:Further, in a feasible embodiment, the above step B may include:
步骤B1,针对所述试管执行第二旋转操作后确定所述试管新的非标签区域面积;Step B1, after performing the second rotation operation on the test tube, determine the new non-label area area of the test tube;
步骤B2,检测所述新的非标签区域面积与所述面积阈值之间的大小关系,并在检测到所述新的非标签区域面积小于所述面积阈值时,针对所述试管输出预设第二告警提示。Step B2: Detect the size relationship between the area of the new non-label area and the area threshold, and when it is detected that the area of the new non-label area is smaller than the area threshold, output a preset number for the test tube. 2. Warning prompt.
请参照如图7所示应用流程,在本实施例中,终端设备在针对试管执行旋转操作令试管旋转预设角度N之后,再重复执行上述步骤S10的过程统计到新的非标签区域面积,然后,若终端设备进一步检测到该新的非标签区域面积与面积阈值之间的大小关系,从而,若终端设备仍然检测到该非标签区域面积小于该面积阈值之间的,则终端设备确定当前试管为非标签区域不符合要求的试管(如图14所示左侧为标签或者条形码的粘贴符合要求的试管,右侧则为标签或者条形码的粘贴不符合要求的试管),从而,终端设备立即针对该试管向用户输出预设第二告警提示以提示用户该试管上标签或者条形码的粘贴不符合样本检测要求。Please refer to the application process shown in FIG. 7 , in this embodiment, after the terminal device performs a rotation operation on the test tube to rotate the test tube by a preset angle N, it repeats the process of the above step S10 to count the new non-label area area, Then, if the terminal device further detects the size relationship between the area of the new non-labeled area and the area threshold, if the terminal device still detects that the area of the non-labeled area is smaller than the area threshold, the terminal device determines that the current The test tube is a test tube that does not meet the requirements in the non-label area (as shown in Figure 14, the left side is a test tube with a label or barcode that meets the requirements, and the right side is a test tube with a label or barcode that does not meet the requirements). Therefore, the terminal device immediately A preset second warning prompt is output to the user for the test tube to remind the user that the label or barcode on the test tube does not meet the sample detection requirements.
在本实施例中,在本实施例中,终端设备在针对试管进行图像采集的过程当中,针对需要进行图像采集的试管,首先统计该试管上未被标签或者条形码覆盖的非标签区域,在由工业相机针对该试管采集的实时试管图像当中的像素值个数,从而确定得出该非标签区域在该实时试管图像中的非标签区域面积;终端设备在统计得到当前实时试管图像当中试管的非标签区域面积之后,检测该面积是否为0,并在检测到该面积为0时,立即针对该试管旋转达180°之后,再针对该试管进行图像采集;或者,终端设备在检测当前实时试管图像中试管的非标签区域面积不为0时,进一步检测该非标签区域面积与预先设定的面积阈值之间的大小关系,从而得到该非标签区域面积大于该面积阈值的检测结果,或者,得到该非标签区域面积小于该面积阈值的检测结果;终端设备即进一步基于该不同的检测结果,对应的直接针对试管进行图像采集或者先针对该试管进行第二旋转操作令试管旋转预设角度之后,在针对该试管进行图像采集。In this embodiment, in this embodiment, in the process of image acquisition for the test tube, the terminal device firstly counts the non-labeled areas on the test tube that are not covered by labels or barcodes for the test tubes that need to be imaged, and then The number of pixel values in the real-time test tube image collected by the industrial camera for the test tube, so as to determine the non-label area area of the non-label area in the real-time test tube image; After labeling the area of the area, check whether the area is 0, and when it is detected that the area is 0, immediately rotate the test tube by 180°, and then perform image acquisition on the test tube; or, the terminal device is detecting the current real-time test tube image. When the area of the non-label area of the test tube is not 0, further detect the size relationship between the area of the non-label area and the preset area threshold, so as to obtain the detection result that the area of the non-label area is greater than the area threshold, or, obtain The detection result that the area of the non-labeled area is smaller than the area threshold value; the terminal device is further based on the different detection results, and the corresponding direct image acquisition of the test tube or the second rotation operation for the test tube is performed to rotate the test tube by a preset angle. Image acquisition was performed for this tube.
相比于现有针对试管进行图像采集的方式,本发明通过先确定试管在实时图像中的非标签区域面积,然后根据该非标签区域面积针对该试管执行第一旋转操作之后采集图像,或者根据该该非标签区域面积与预设的面积阈值之间的大小关系来针对该试管执行第二旋转操作之后采集图像。如此,本发明能够仅基于拍摄1-3次即可采集得到符合设备进行样本检测的要求的试管图像,极大程度上缩短了采集图像的时间和避免了因拍摄大量图像数据对存储资源的占用,并且还能够基于旋转操作准确的采集到试管非标签区域正对相机的最佳图像,有效地提升了试管图像的整体采集效率。Compared with the existing method of image acquisition for the test tube, the present invention firstly determines the non-label area area of the test tube in the real-time image, and then performs the first rotation operation for the test tube according to the non-label area area. The size relationship between the area of the non-labeled area and a preset area threshold is used to collect an image after performing the second rotation operation on the test tube. In this way, the present invention can collect test tube images that meet the requirements of equipment for sample detection only based on shooting 1-3 times, which greatly shortens the time for collecting images and avoids the occupation of storage resources due to shooting a large amount of image data. , and can also accurately collect the best image of the non-label area of the test tube facing the camera based on the rotation operation, which effectively improves the overall collection efficiency of the test tube image.
此外,请参照图26,本发明实施例还提出一种基于神经网络的血清质量识别装置,本发明基于神经网络的血清质量识别装置包括:In addition, please refer to FIG. 26 , the embodiment of the present invention also proposes a neural network-based serum quality identification device, and the neural network-based serum quality identification device of the present invention includes:
试管图像采集模块10,用于对盛装血清样本的试管进行图像采集得到试管图像;The test tube image acquisition module 10 is used for image acquisition of the test tube containing the serum sample to obtain the test tube image;
血清质量识别模块20,用于将所述试管图像输入预设的神经网络模型中,以供所述神经网络模型输出针对所述血清样本的血清质量识别结果,其中,所述神经网络模型通过试管图像进行卷积神经网络模型训练得到。The serum
优选地,本发明基于神经网络的血清质量识别装置,还包括:Preferably, the neural network-based serum quality identification device of the present invention further includes:
模型训练模块,用于通过多曝光的试管图像进行卷积神经网络模型训练;The model training module is used to train the convolutional neural network model through multi-exposure test tube images;
模型训练模块,包括:Model training modules, including:
提取单元,用于从所述多曝光的试管图像中提取属于所述试管非标签区域的矩阵区域;an extraction unit, configured to extract a matrix area belonging to the unlabeled area of the test tube from the multi-exposure test tube image;
第一卷积单元,用于将所述矩阵区域输入预设的第一卷积模块进行第一卷积神经网络模型训练,并获取所述第一卷积模块针对所述矩阵区域进行第一卷积神经网络模型训练后输出的特征图;A first convolution unit, configured to input the matrix region into a preset first convolution module for training a first convolutional neural network model, and obtain the first convolution module for the matrix region to perform the first volume The feature map output by the product neural network model after training;
第二卷积单元,用于将所述特征图进行堆叠后输入预设的第二卷积模块进行第二卷积神经网络模型训练以得到用于针对血清样本进行血清质量识别的神经网络模型。The second convolution unit is configured to stack the feature maps and then input them into a preset second convolution module to train a second convolutional neural network model to obtain a neural network model for serum quality identification for serum samples.
优选地,所述第一卷积模块和所述第二卷积模块包括:卷积层和池化层,所述第一卷积模块和所述第二卷积模块除末尾的两个卷积层之外,每两个卷积层之后连接一个池化层;Preferably, the first convolution module and the second convolution module include: a convolution layer and a pooling layer, the first convolution module and the second convolution module except the last two convolution modules In addition to the layers, a pooling layer is connected after every two convolutional layers;
所述第一卷积模块中的卷积层包括多个步长为1的第一卷积层和多个步长为2的第二卷积层,每两个第一卷积层中,输出端未连接所述池化层的第一卷积层与一个所述第二卷积层相连接;The convolutional layers in the first convolutional module include multiple first convolutional layers with
所述第一卷积模块末尾的两个第一卷积层的卷积核数量小于其它第一卷积层和所述第二卷积层的卷积核数量。The number of convolution kernels of the two first convolution layers at the end of the first convolution module is smaller than the number of convolution kernels of the other first convolution layers and the second convolution layer.
优选地,所述第二卷积模块的末尾连接全连接层和逻辑回归层,第二卷积单元,还用于:Preferably, the end of the second convolution module is connected to the fully connected layer and the logistic regression layer, and the second convolution unit is also used for:
将所述特征图进行堆叠后输入预设的第二卷积模块,并获取所述第二卷积模块基于多个所述卷积层和所述池化层对所述特征图进行处理后输出的新的特征图;The feature maps are stacked and input into a preset second convolution module, and the second convolution module processes the feature maps based on a plurality of the convolution layers and the pooling layer and outputs the output. The new feature map of ;
将所述新的特征图输入所述全连接层进行特征分类得到血清的质量类别,其中,所述质量类别包括:正常、溶血、脂血和黄疸;Inputting the new feature map into the fully connected layer for feature classification to obtain a quality category of serum, wherein the quality category includes: normal, hemolysis, lipemia and jaundice;
将所述新的特征图输入所述逻辑回归层计算各所述质量类别的概率值,以用于确定所述质量类别为所述溶血、所述脂血和所述黄疸时对应的质量等级。The new feature map is input into the logistic regression layer to calculate the probability value of each of the quality classes, so as to determine the quality class corresponding to the hemolysis, the lipemia and the jaundice when the quality class is.
优选地,本发明基于神经网络的血清质量识别装置的模型训练模块,还用于为所述特征图分配权重,并将所述特征图与分配得到的权重相乘之后,执行所述将所述特征图进行堆叠后输入预设的第二卷积模块的步骤。Preferably, the model training module of the neural network-based serum quality identification device of the present invention is further configured to assign weights to the feature maps, and after multiplying the feature maps by the assigned weights, execute the The step of stacking the feature maps and inputting the preset second convolution module.
优选地,提取单元,还用于对所述多曝光的试管图像进行血清样本分析,以计算所述试管盛装的血清样本的血清液面最高位位置和血清液面最低位位置;以及,根据所述血清液面最高位位置和所述血清液面最低位位置,在所述多曝光的试管图像中,从所述试管非标签区域提取预设尺寸的矩阵区域。Preferably, the extraction unit is further configured to perform serum sample analysis on the multi-exposure test tube images, so as to calculate the position of the highest level of serum liquid level and the position of the lowest level of serum liquid level of the serum sample contained in the test tube; The highest position of the serum level and the lowest position of the serum level, in the multi-exposure test tube image, a matrix area of a preset size is extracted from the non-label area of the test tube.
优选地,所述根据所述血清液面最高位位置和所述血清液面最低位位置,提取单元,还用于根据所述血清液面最高位位置和所述血清液面最低位位置,从所述试管非标签区域中确定血清图像区域;Preferably, according to the position of the highest level of the serum level and the position of the lowest level of the serum, the extraction unit is further configured to, according to the position of the highest level of the serum level and the lowest position of the serum level, extract from Determine the serum image area in the unlabeled area of the test tube;
按照所述预设尺寸从所述血清图像区域中截取所述矩阵区域,其中,所述预设尺寸小于所述血清图像区域的尺寸。The matrix area is cut out from the serum image area according to the preset size, wherein the preset size is smaller than the size of the serum image area.
本实施例提出的基于神经网络的血清质量识别装置的各个功能模块在运行时,实现如上所述的基于神经网络的血清质量识别方法的步骤,在此不再赘述。When each functional module of the neural network-based serum quality identification device proposed in this embodiment is running, the steps of implementing the above-mentioned neural network-based serum quality identification method will not be repeated here.
此外,本发明实施例还提出一种计算机可读存储介质,计算机可读存储介质上存储有基于神经网络的血清质量识别程序,基于神经网络的血清质量识别程序被处理器执行时实现如上所述的基于神经网络的血清质量识别方法的步骤。In addition, an embodiment of the present invention also proposes a computer-readable storage medium on which a neural network-based serum quality identification program is stored, and when the neural network-based serum quality identification program is executed by a processor, the above-mentioned The steps of a neural network-based serum mass identification method.
本发明计算机可读存储介质具体实施方式可以参照上述基于神经网络的血清质量识别方法各实施例,在此不再赘述。For the specific implementation manner of the computer-readable storage medium of the present invention, reference may be made to the above embodiments of the method for identifying serum quality based on a neural network, which will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or system. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disc), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111680320.2A CN114332058A (en) | 2021-12-30 | 2021-12-30 | Serum quality identification method, device, equipment and medium based on neural network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111680320.2A CN114332058A (en) | 2021-12-30 | 2021-12-30 | Serum quality identification method, device, equipment and medium based on neural network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114332058A true CN114332058A (en) | 2022-04-12 |
Family
ID=81023316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111680320.2A Pending CN114332058A (en) | 2021-12-30 | 2021-12-30 | Serum quality identification method, device, equipment and medium based on neural network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114332058A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114878844A (en) * | 2022-05-20 | 2022-08-09 | 上海捷程医学科技有限公司 | Method, system and equipment for automatically detecting quality of centrifuged blood sample |
CN116402671A (en) * | 2023-06-08 | 2023-07-07 | 北京万象创造科技有限公司 | Sample coding image processing method for automatic coding system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110414451A (en) * | 2019-07-31 | 2019-11-05 | 深圳市捷顺科技实业股份有限公司 | It is a kind of based on end-to-end licence plate recognition method, device, equipment and storage medium |
CN112639482A (en) * | 2018-06-15 | 2021-04-09 | 美国西门子医学诊断股份有限公司 | Sample container characterization using single depth neural networks in an end-to-end training manner |
-
2021
- 2021-12-30 CN CN202111680320.2A patent/CN114332058A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112639482A (en) * | 2018-06-15 | 2021-04-09 | 美国西门子医学诊断股份有限公司 | Sample container characterization using single depth neural networks in an end-to-end training manner |
CN110414451A (en) * | 2019-07-31 | 2019-11-05 | 深圳市捷顺科技实业股份有限公司 | It is a kind of based on end-to-end licence plate recognition method, device, equipment and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114878844A (en) * | 2022-05-20 | 2022-08-09 | 上海捷程医学科技有限公司 | Method, system and equipment for automatically detecting quality of centrifuged blood sample |
CN116402671A (en) * | 2023-06-08 | 2023-07-07 | 北京万象创造科技有限公司 | Sample coding image processing method for automatic coding system |
CN116402671B (en) * | 2023-06-08 | 2023-08-15 | 北京万象创造科技有限公司 | Sample coding image processing method for automatic coding system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11774735B2 (en) | System and method for performing automated analysis of air samples | |
CN109816644B (en) | An automatic detection system for bearing defects based on multi-angle light source images | |
WO2017190574A1 (en) | Fast pedestrian detection method based on aggregation channel features | |
CN107609485B (en) | Traffic sign identification method, storage medium, and processing device | |
US11657599B2 (en) | Method for detecting appearance of six sides of chip multi-layer ceramic capacitor based on artificial intelligence | |
US8509526B2 (en) | Detection of objects in digital images | |
JP6791864B2 (en) | Barcode tag detection in side view sample tube images for laboratory automation | |
CN111310826B (en) | Method and device for detecting labeling abnormality of sample set and electronic equipment | |
CN109413411B (en) | Black screen identification method and device of monitoring line and server | |
CN111242899B (en) | Image-based flaw detection method and computer-readable storage medium | |
US20220012884A1 (en) | Image analysis system and analysis method | |
CN106203237A (en) | The recognition methods of container-trailer numbering and device | |
CN109462999B (en) | Visual inspection method based on learning through data balance and visual inspection device using same | |
JP2018512567A5 (en) | ||
CN112330641B (en) | Grain imperfect grain identification method and system based on deep learning | |
CN112070711A (en) | A method for analyzing microdroplets in a microdroplet image detection method | |
CN116012291A (en) | Industrial part image defect detection method and system, electronic equipment and storage medium | |
CN114332058A (en) | Serum quality identification method, device, equipment and medium based on neural network | |
CN110688883A (en) | Vehicle and pedestrian detection method and device | |
CN113095445B (en) | Target identification method and device | |
CN111695373A (en) | Zebra crossing positioning method, system, medium and device | |
CN116071315A (en) | Product visual defect detection method and system based on machine vision | |
CN115512134A (en) | Express item stacking abnormity early warning method, device, equipment and storage medium | |
CN112883959A (en) | Method, device, equipment and storage medium for detecting integrity of identity card license | |
KR20190114241A (en) | Apparatus for algae classification and cell countion based on deep learning and method for thereof |
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 |