A platelet aggregation detection method combining deep learning and digital image processing algorithms

By combining deep learning with digital image processing algorithms, Faster-RCNN neural network positioning and morphological operations are used to detect platelet aggregation areas, which solves the problem of frequent misjudgments in existing blood cell analyzers and achieves high-precision platelet aggregation detection. , improving clinical detection efficiency.

CN114742803BActive Publication Date: 2024-10-25DALIAN POLYTECHNIC UNIVERSITY
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210413016.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-20
Publication Date
2024-10-25
Estimated Expiration
2042-04-20

AI Technical Summary

Technical Problem

Existing blood cell analyzers make too many misjudgments in platelet aggregation detection, resulting in little clinical application value, and manual microscopy is cumbersome and inefficient, prone to errors.

Method used

A method combining deep learning and digital image processing algorithms is used to locate platelet aggregation areas through Faster-RCNN neural network, and combine platelet segmentation and counting with morphological operations to improve detection accuracy.

Benefits of technology

It effectively improves the accuracy of platelet aggregation detection, reduces the misjudgment rate, improves detection efficiency, and avoids errors caused by manual microscopy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114742803B_ABST
    Figure CN114742803B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of medical image processing, and discloses a platelet aggregation detection method combining deep learning with digital image processing algorithms. The present invention adds a platelet segmentation and counting algorithm on the basis of the Faster-RCNN network to improve the accuracy of detecting platelet aggregation areas. First, the Faster-RCNN network is used to locate the coordinates of the platelet aggregation area in the blood cell image and obtain the confidence of the recognition result. The coordinates are used to intercept the positioning area with low confidence, and the platelets in the positioning area are segmented out by the color threshold. Then, the method of calculating the connected area is used to calculate the number of platelets in the positioning area. If there are more than 4, the positioning area is determined to be a platelet aggregation area. The detection method combining deep learning with a digital image processing algorithm effectively improves the detection accuracy of platelet aggregation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of medical image processing and relates to a technology for detecting platelet aggregation in blood cell images, specifically a platelet aggregation area detection method combining deep learning with digital image processing algorithms. Background Art

[0002] Platelet aggregation is the function of activated platelets adhering to each other to form platelet clusters. The phenomenon of five or more platelets aggregating into clusters is called platelet aggregation, and the platelet clusters formed by platelet aggregation are called aggregation areas. In clinical practice, the electrical impedance method and visual microscopy method are used to achieve platelet counting. Platelet counting helps in the clinical judgment and differential diagnosis of hemostasis and thrombotic diseases. The increase or decrease in the number of platelets corresponds to different symptoms, so whether the platelet count is accurate will affect the clinical judgment of the patient's condition. The occurrence of platelet aggregation can lead to a false decrease in platelet count, resulting in clinical misdiagnosis. During the blood collection process, there are many factors that can lead to the occurrence of platelet aggregation, such as improper blood collection, multiple punctures causing tissue damage, and excessive blood drawing. Therefore, the detection of platelet aggregation is of great significance.

[0003] At present, some models of blood cell analyzers can realize platelet detection and abnormal histogram alarm functions. Cao Baohua studied the platelet aggregation alarm function of the Sysmex XN9000 blood cell analyzer in the document "Reliability Evaluation of Platelet Aggregation Alarm of Sysmex XN9000 Blood Cell Analyzer [J]. Chinese Journal of Health Inspection, 2021, 31(16)" and found that the platelet aggregation alarm function of the Sysmex XN9000 blood cell analyzer has poor reliability and too many misjudgments. It has little value in clinical application and still requires manual microscopy when necessary. However, the manual microscopy process is cumbersome and inefficient. Due to a large number of cumbersome operations, medical staff will become fatigued and may make mistakes. With the continuous development of computer and image processing technology, machine vision technology has been widely used in the medical field. In the process of clinical testing, machine vision technology can be used to reduce manual misdiagnosis, reduce the energy loss of medical workers, and help medical workers improve their work efficiency. Summary of the invention

[0004] The purpose of the present invention is to provide a platelet aggregation area detection method that combines deep learning with a digital image processing algorithm. The method adopts a target detection neural network combined with a digital image processing algorithm to achieve the purpose of detecting platelet aggregation areas.

[0005] A platelet aggregation detection method combining deep learning and digital image processing algorithms comprises the following steps:

[0006] (1) Locate the gathering area

[0007] (1.1) Producing a blood cell microscopic image dataset: Collect microscopic images showing platelet aggregation, identify areas where 5 or more platelets are aggregated as platelet aggregation areas, and manually annotate the platelet aggregation areas in the images to obtain a blood cell microscopic image dataset with platelet aggregation areas.

[0008] (1.2) The Faster-RCNN neural network is used to build a target detection model. The specific model structure is as follows: The target detection model consists of a feature extraction network ResNet, a region proposal network (RPN), RoiPooling, and a Classification module. The input of the target detection model is a blood cell microscopic image, and the output is the recognition target confidence and the platelet aggregation region detection box.

[0009] (1.3) The platelet aggregation dataset is divided into a training set and a test set, which are used to train and test the target detection neural network to obtain a target detection model for the platelet aggregation area. After the training is completed, the model with the highest test accuracy is selected as the neural network model for target detection of the platelet aggregation area. The model can be used to locate the platelet aggregation area and return the rectangular coordinates of the area and the confidence of the recognition result.

[0010] (2) Platelet segmentation and counting

[0011] (2.1) After locating the platelet aggregation area in step (1), determine the confidence of the recognition result. If the confidence is ≥ 0.6, the obtained area is considered to be the platelet aggregation area. If the confidence is less than 0.6, it is necessary to further determine whether the number of platelets in the area is ≥ 5.

[0012] (2.2) The area with the confidence less than 0.6 is intercepted. The color of platelets in the stained blood smear is different from the background and other blood cells. By setting the color threshold, the three-channel values ​​of the background pixels except platelets in the image are set to 0, thereby filtering them out and extracting an image containing only platelets.

[0013] (2.3) The above image containing only platelets is grayed out and converted from a three-channel image to a single-channel image. The above image is then binarized, with the platelet pixels set to 255 and the background pixels set to 0. The interference pixels are then filtered using the erosion and dilation operations in the morphological operation to make the boundaries between the platelets more obvious. The number of connected areas in the image, i.e., the number of platelets, is calculated. If the number of platelets is ≥5, the area is considered to be a platelet aggregation area.

[0014] In the step (1.1), each blood cell microscopic image is labeled using LabelImg software, and the labeling includes a rectangular frame surrounding the platelet aggregation area and a category, wherein the category only includes platelets.

[0015] In the step (1.2), the Faster-RCNN neural network includes feature extraction networks Resnet, RPN, RoiPooling and Classification, and each module is consistent with the prior art, wherein the feature extraction module uses a convolutional neural network to extract the convolutional features of the input image; the RPN module is used to generate a set of rectangular candidate frames, and the candidate frames are classified into two categories, one category is the candidate frame containing the feature, which is recorded as positive, and the other category is the candidate frame not containing the feature, which is recorded as negative, and the positive candidate frame is retained; the Roi Pooling module combines the positive candidate frame obtained by the candidate frame generation module with the convolutional features of the input image to obtain the convolutional features within the candidate frame range; the Classification module classifies the convolutional features within the candidate frame range obtained by the Roi Pooling module to obtain the category probability, i.e., the confidence, and performs regression calculation on the candidate frame to obtain the most accurately positioned candidate frame as the detection frame, i.e., the accurate position of the platelet aggregation area. The closer the confidence is to 1.0, the higher the credibility of the recognition result. The neural convolutional network Resnet uses Resnet50.

[0016] In the step (2.3), the connected area is an area formed by adjacent pixels with the same value. The connected area is searched by a two-pass scanning method, starting from the pixel point in the upper left corner of the image. When a foreground pixel with a pixel value of 255 is encountered and there is no foreground pixel in its left neighbor or upper neighbor, a new label is assigned, and then the label value is increased by 1; if there is a label in the left neighbor or upper neighbor of the foreground pixel, it is marked as the label with the smaller value in the neighborhood. Each time a label is marked, the connected domain to which the label belongs is recorded. In the second search, the label in the same connected domain is changed to the label with the smallest value in the connected domain. After the search is completed, the pixels with the same label form a connected area. The number of platelets can be obtained by calculating the number of connected areas.

[0017] Compared with the prior art, the present invention has the following beneficial effects:

[0018] The present invention mainly performs automatic detection of platelet aggregation areas in microscope images, and utilizes deep learning combined with digital image processing algorithms to automatically identify and count platelet aggregation areas in blood cell microscope images, thereby avoiding errors caused by traditional methods of platelet detection and abnormal histogram alarms or manual microscopic examinations. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is an overall block diagram of the platelet aggregation area detection method of the present invention.

[0020] Figure 2 Diagram for locating platelet aggregation areas.

[0021] Figure 3 Schematic diagram of platelet segmentation and counting; a is the image before processing, and b is the image after processing. DETAILED DESCRIPTION

[0022] The technical solutions in the embodiments of the present invention will be further described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0023] like Figure 1 As shown, the platelet aggregation area detection method of the present invention comprises the following steps:

[0024] (1) Locate the gathering area

[0025] (1.1) The phenomenon of five or more platelets aggregating into a cluster is called platelet aggregation. The platelet cluster formed by platelet aggregation is called the aggregation area. A microscopic image of blood cells showing platelet aggregation is collected through a high-magnification microscope; the collected microscopic image is annotated using LabelImg annotation software, and the annotation includes category annotation and rectangular frame annotation surrounding the platelet aggregation area. The category annotation only includes platelets; the rectangular frame refers to a rectangular sealed frame that can just surround the entire platelet aggregation area, and the sealed frame contains only one platelet aggregation area. The annotation result obtains the original microscopic image and an XML file containing annotation information. The original image and the XML file are placed in two folders as data sets.

[0026] (1.2) The target detection model is constructed using the Faster-RCNN neural network. The Faster-RCNN neural network includes modules such as the convolutional network Resnet, RPN, Roi Pooling, and Classification. Each module is consistent with the prior art. The convolutional network Resnet in the present invention uses Resnet50. After the input image is subjected to feature extraction by the Resnet50 network to obtain the original feature map, the feature map is then sent to the RPN network to obtain the target candidate box. The target candidate box and the original feature map are Figure 1 And input it into the Roi Pooling layer, and finally the feature vector output by the Roi Pooling layer is passed through the Fully Connected Layers (FC) to output the target detection box and confidence result in the input image.

[0027] (1.3) Before training the target detection model, the data set is divided into a training set, a test set and a validation set. The training set is used to train the platelet aggregation region detection model. The training set is input into the target detection model for training. The model training is completed when the test results on the test set meet the requirements. During the training process, the parameter optimizer adopts the stochastic gradient descent algorithm.

[0028] (1.4) After the model training is completed, a random image from the test set is taken as the input of the trained object detection model, and the image is tested. The output result is as follows Figure 2 As shown in the figure, the result includes the platelet aggregation region detection box, category and confidence in the input image. The lower left corner coordinates (x1, y1) and upper right corner coordinates (x2, y2) of the platelet aggregation region can be obtained through the rectangular detection box. The coordinates of these two points can be used to intercept the region and process it separately. If the confidence in the output result is greater than 0.6, the obtained region is considered to be the platelet aggregation region. Figure 2 The confidence level of the output result is lower than 0.6, and further determination of the number of platelets is required.

[0029] (2) Platelet segmentation and counting

[0030] Using coordinates (x1, y1) and (x2, y2) Figure 3 The area enclosed by the rectangular frame is intercepted, and the operations on the intercepted part of the image are as follows Figure 3 As shown, a is the image before processing; b is the image after processing. The specific operations include:

[0031] (2.1) Set the color threshold interval and perform threshold segmentation on the image. All pixels in the image that are not within the threshold interval are set to 255, and the pixels within the interval remain unchanged.

[0032] (2.2) Grayscale the image after color segmentation. After grayscale conversion, the image is transformed from a three-channel color image to a single-channel grayscale image. Figure 2 The pixels less than 255 are set to 0 to obtain a binary image. The interference pixels are filtered out using morphological operations of erosion and dilation. Then, the number of connected areas, i.e., the number of platelets, is calculated for the binary image. If the number of platelets is ≥5, the area is considered to be a platelet aggregation area.

[0033] In order to illustrate the beneficial effects of the detection method combining deep learning with digital image processing algorithm in the present invention, a control experiment is set up in this example. The difference between the control group and the above method in this example is that the platelet segmentation and counting is not performed on the recognition results of the target detection model, and the blood smear is only detected by the Faster-RCNN neural network model to compare the recognition accuracy of the method in this example with that of the control group. The recognition accuracy of the control group is 89.3%, and the method in this example improves the accuracy to 98.1%.

[0034] The above results show that the method of automatically identifying and counting platelet aggregation areas in blood cell microscopic images by combining deep learning with digital image processing algorithms can effectively improve the detection accuracy of platelet aggregation.

Claims

1. A platelet aggregation detection method combining deep learning and digital image processing algorithm, characterized in that: The steps include: (1) Locate the gathering area (1.1) Producing a blood cell microscopic image dataset: Collecting microscopic images showing platelet aggregation, identifying areas where five or more platelets are aggregated as platelet aggregation areas, and manually annotating the platelet aggregation areas in the images to obtain a blood cell microscopic image dataset with platelet aggregation areas; (1.2) The Faster-RCNN neural network is used to build a target detection model. The specific model structure is as follows: the target detection model consists of a feature extraction network ResNet, a region proposal network RPN, a RoiPooling module, and a Classification module; the input of the target detection model is a blood cell microscopic image, and the output is the recognition target confidence and the platelet aggregation area detection box; (1.3) Dividing the blood cell microscopic image dataset into a training set and a test set for training and testing the target detection model, and obtaining a target detection model for the platelet aggregation area; After the training is completed, the model with the highest test accuracy is selected as the neural network model for platelet aggregation area target detection, the neural network model is applied to locate the platelet aggregation area, and the rectangular coordinates of the platelet aggregation area and the confidence of the recognition result are returned; (2) Platelet segmentation and counting (2.1) After locating the platelet aggregation area in step (1), determine the confidence of the recognition result. If the confidence is ≥ 0.6, the obtained area is considered to be the platelet aggregation area. If the confidence is less than 0.6, it is necessary to further determine whether the number of platelets in the area is ≥ 5; (2.2) The area with the confidence less than 0.6 is intercepted. The color of platelets in the stained blood smear is different from the background and other blood cells. By setting the color threshold, the three-channel values ​​of the background pixels except the platelets in the image are all set to 0, thereby extracting the image containing only platelets; (2.3) The above-mentioned image containing only platelets is grayed out from a three-channel image to a single-channel image, and the single-channel image is binarized, with the platelet pixels set to 255 and the background pixels set to 0. Then, the corrosion and dilation operations in the morphological operation are used to filter out the interfering pixels to make the boundaries between the platelets more obvious. The number of connected areas in the image, that is, the number of platelets, is calculated. If the number of platelets is ≥5, the area is considered to be a platelet aggregation area.

2. The platelet aggregation detection method according to claim 1, characterized in that: In step (1.1), each blood cell microscopic image is labeled using LabelImg software, and the labeling includes a rectangular frame surrounding the platelet aggregation area and a category, where the category only includes platelets.

3. The platelet aggregation detection method according to claim 1, characterized in that: In step (1.2), in the Faster-RCNN neural network, the feature extraction network Resnet uses a convolutional neural network to extract the convolution features of the input image; the region proposal network RPN is used to generate a set of rectangular candidate boxes, and the candidate boxes are classified into two categories, one is the candidate box containing the feature, which is recorded as positive, and the other is the candidate box not containing the feature, which is recorded as negative, and the positive candidate box is retained; the RoiPooling module combines the positive candidate box with the convolution features of the input image to obtain the convolution features within the candidate box range; the Classification module classifies the convolution features within the candidate box range obtained by the Roi Pooling module, obtains the category probability, that is, the confidence, and performs regression calculation on the candidate box to obtain the most accurately positioned candidate box as the detection box, that is, the accurate position of the platelet aggregation area; The feature extraction network Resnet uses Resnet50.

4. The platelet aggregation detection method according to claim 1, characterized in that: In step (2.3), the connected area is the area formed by adjacent pixels with the same value. The two-pass scanning method is used to search for the connected area, starting from the upper left pixel of the image. When a foreground pixel with a pixel value of 255 is encountered and there is no foreground pixel in its left and upper neighbors, a new label is assigned, and then the label value is increased by 1; If there is a label in the left or upper neighborhood of a foreground pixel with a pixel value of 255, it will be marked as the label with the smaller value in the neighborhood; each time a label is marked, the connected domain to which the label belongs is recorded; during the second search, the label in the same connected domain is changed to the label with the smallest value in the connected domain. After the search is completed, pixels with the same label form a connected area, and the number of platelets is obtained by counting the number of connected areas.

Citation Information

Patent Citations

  • Method, system and terminal for classifying visible components in to-be-detected sample

    CN112036334A

  • Blood cell image detection and counting method based on convolutional neural network

    CN112750117A

  • Faster Rcnn-based small target detection and recognition method

    CN113159215A

  • Method for selecting and classifying blood cell types by means of deep convolutional neural networks

    WO2020242341A1

  • Image recognition based cell recognition and counting method and apparatus, and computer device

    WO2021139258A1