Rapid diagnostic system for identifying the morphology of acute promyelocytic leukemia
By using multi-scale image recognition and weakly supervised learning in the acute promyelocytic leukemia diagnostic system, combined with the attention mechanism, the problem of long manual microscopy examination and poor result comparability is solved, and rapid and accurate APL case judgment is achieved, which is applicable To improve detection efficiency and reduce missed diagnoses.
Patent Information
- Application Number
- CN202410127016.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-01-30
AI Technical Summary
In the current technology, the diagnosis of acute promyelocytic leukemia relies on manual microscopic examination, which is time-consuming and has poor comparability of results, resulting in low efficiency of early diagnosis and batch screening.
A rapid diagnosis system is designed, including an image recognition module, a training module and a diagnosis module. Through multi-scale feature recognition of low-magnification and high-magnification images, combined with weakly supervised learning and attention mechanisms, accurate judgment of APL cases is achieved. Reduce manual operations and improve detection efficiency.
It achieves rapid and accurate judgment of APL cases, reduces the missed diagnosis rate, is suitable for rapid screening of blood diseases in areas with weak medical care, and improves detection efficiency and comparability.
Smart Images

Figure BDA0004688621410000041 
Figure BDA0004688621410000042 
Figure BDA0004688621410000061
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence medical testing technology, and in particular relates to a rapid diagnosis system for identifying the morphology of acute promyelocytic leukemia. Background Art
[0002] Acute promyelocytic leukemia (APL) is one of the most curable hematological malignancies, but its early mortality remains a challenge. The diagnosis of APL usually relies on cell morphology, pathological specific t(15;17) and specific fusion gene PML-RARa. The evaluation of cell morphology by experienced hematopathologists is essential for the diagnosis of APL. However, manual microscopic examination is time-consuming and there are great differences between different hematopathologists. Therefore, how to improve the comparability of bone marrow morphology results between personnel and the accuracy of APL morphological diagnosis is of great value for the rapid screening of APL patients in daily batch specimens.
[0003] With the development of artificial intelligence, an automated, efficient, highly accurate, and universal APL intelligent diagnostic system is needed to replace manual procedures, which will help eliminate intra- and inter-observer differences and promote the early diagnosis and treatment of APL. Summary of the invention
[0004] The present invention provides a rapid diagnostic system for identifying the morphology of acute promyelocytic leukemia, which solves the above problems.
[0005] The technical solution of the present invention is achieved in this way:
[0006] A rapid diagnostic system for identifying the morphology of acute promyelocytic leukemia, consisting of the following:
[0007] An image recognition module is used to obtain low-power and high-power images of the blood smear input by the user, and to segment the images to obtain the probability value of each image slice belonging to an APL case;
[0008] A training module, used for training the image recognition module through the scanned image of the blood smear, so that the image recognition module has the ability to obtain the probability value of the APL case;
[0009] The diagnosis module is used to calculate the average value of the multiple probability values obtained in the image recognition module, and judge whether the blood smear is an APL case by comparing the average value with the judgment threshold.
[0010] Through the above technical solution, the image recognition module can perform image recognition for feature expressions of different scales in 10x and 100x images at the same time, and has good multi-scale adaptability; in addition, features at different scales can complement each other, which is helpful for integrating global information in the diagnosis module and outputting diagnostic opinions.
[0011] The training module uses weakly supervised learning to reduce the time spent on labeling during the data set establishment process. The pre-training white blood cell segmentation process can better guide the neural network to learn the characteristics of white blood cells in a targeted manner. The neural network model designed in the training module uses hierarchical attention to extract feature maps containing different patterns of blood smear images, and realizes the correct learning of target cell features under weakly supervised learning conditions through channel attention and spatial attention mechanisms.
[0012] The probability of selecting four image slices in the diagnosis module and taking the average value can improve the accuracy of the neural network model in the entire blood smear; the OR operation of the judgment results obtained under low-power and high-power microscopes can improve the recall rate of the model and prevent missed diagnosis.
[0013] Optionally, the training process of the training module is as follows:
[0014] Step S1.1, obtaining full-slide scan images of multiple blood smears under low-power and high-power microscopes, including APL cases and non-APL cases;
[0015] Step S1.2, selecting a single cell layer portion in the full-slice scan image in step S1.1 and segmenting it according to size, and dividing the segmented image into an APL case image and a non-APL case image according to whether the image is from an APL case;
[0016] Step S1.3, slicing each segmented image to determine the position of the white blood cells in the image according to the HSV value, so as to remove the portion other than the white blood cells in the segmented image;
[0017] Step S1.4, the image processed by steps S1.2-S1.3 is made into data sets under low-power microscope and high-power microscope respectively according to the image magnification, and image recognition learning is performed through the designed neural network model to obtain the trained image recognition module under the corresponding magnification.
[0018] Through the above technical scheme, in the previous training process, APL recognition is usually achieved through strong supervised learning under 100× peripheral blood or bone marrow blood images, which means that each nucleated cell in the image needs to be segmented and annotated separately. The present invention introduces a weakly supervised learning method, in which imprecise supervision is used for training. Since the present invention includes APL recognition under 10x and 100x magnifications, it is difficult to apply strong supervised learning to neural network learning, especially in the case of 10x magnification, because white blood cells are small in size and large in number, it is unreasonable and time-consuming to annotate each nucleated cell in the image. Imprecise supervision only requires coarse-grained labels (such as the type of blood disease shown in the image slice), which is suitable for situations where image-level labels are easier to obtain than object-level labels.
[0019] APL mainly relies on the morphological characteristics of white blood cells in the discrimination process. By segmenting and removing the parts other than white blood cells in the image before training, the network can be better guided to learn the morphological characteristics of white blood cells during the training process.
[0020] The neural network model designed in the training module uses hierarchical attention to extract feature maps containing different patterns of blood smear images. Different patterns in different layers correspond to different subtle features in the image, allowing the network to focus on more effective features in the attention mechanism. The channel attention and spatial attention mechanisms in the network enable the network to weight different features in channels and spaces under weakly supervised learning conditions, and can pay more attention to features that are more important for classification judgment.
[0021] Optionally, in step S1.3, the image slice is converted from the RGB color space to the HSV color space, and the Otsu algorithm is applied in the saturation channel to separate the foreground and the background to obtain the saturation template of the white blood cells, and the specific formula is as follows;
[0022]
[0023]
[0024] in: is the inter-class variance of foreground and background, k * is the optimal segmentation threshold, k is the grayscale segmentation threshold of the Otsu method, L is the grayscale level of the image, and m G is the average gray value of the entire image, m1(k) and P1(k) are the average gray value of pixels classified as foreground and the probability of pixels being classified as foreground, respectively. is the segmentation threshold k * The between-class variance at is the inter-class variance when the segmentation threshold is k, max 0≤k≤L―1 : L is the gray level of the image.
[0025] Through the above technical solution, the saturation of white blood cells in the stained blood smear image is significantly different from that of the image background, red blood cells and platelets. The above saturation difference can be used to make a saturation template of white blood cells to determine the approximate position of white blood cells in the image, which is used as one of the parameters for segmenting white blood cells. The purpose of separating the foreground and background is to separate the white blood cells (foreground) from the other parts of the image (background), so as to obtain the specific position of the white blood cells determined under the saturation parameter, so as to make a saturation template.
[0026] The above formula illustrates the specific principle of the Otsu method. The Otsu method maximizes the inter-class variance of pixel values between the foreground and background by determining the optimal segmentation threshold k. The segmentation threshold with the largest inter-class variance means the minimum probability of misclassification.
[0027] Optionally, in step S1.3, pixels with values in the range of 115-180 are converted to white in the hue channel, and other pixels are converted to black to obtain a hue template for white blood cells, and the intersection of the saturation template and the hue template is taken as a template for determining the position of white blood cells to remove parts other than white blood cells in the image.
[0028] Through the above technical solution, the template method for determining the position of white blood cells has a faster processing speed. Otsu can adaptively determine the segmentation threshold of the saturation template and can adapt to the staining differences that may exist in different blood smears.
[0029] Optionally, in step S1.4, the neural network model includes three parts: a backbone network module, a channel attention module and a spatial attention module;
[0030] The backbone network module includes a ResNet50 network and three consecutive convolutional blocks, which are used to extract image features at different levels for use by subsequent channel attention modules and spatial attention modules;
[0031] The channel attention module redistributes channel weights by combining linear layers with different reduction rates and several convolution kernels to achieve the effect of paying attention to specific channel features;
[0032] The spatial attention module uses maximum pooling and average pooling operations along the channel axis to generate a 2D spatial attention map, which is then convolved through a convolutional layer and calculated through a sigmoid function to form the final 1D spatial attention map.
[0033] Through the above technical solution, the present invention adopts a hierarchical attention organization method to combine the three modules of the backbone network module, the channel attention module and the spatial attention module into a whole to solve the problem of APL classification judgment. Backbone network module: ResNet as a backbone network module can greatly improve the depth of the neural network, so that more and deeper image information can be extracted; at the same time, the residual connection structure introduced by ResNet can also avoid the problem of gradient disappearance to a certain extent.
[0034] Channel attention module: Channel attention can learn multiple channel weighting methods through linear layers with different reduction rates, so that the model pays more attention to important channels that contribute to the task, reduces dependence on irrelevant channels, and improves model performance; at the same time, these weighting methods are integrated through feature fusion, which can better select features and improve the performance and generalization capabilities of the model.
[0035] Spatial attention module: The spatial attention module can help the model select spatial regions of interest, increase attention to key information, and reduce processing of irrelevant regions; at the same time, spatial attention can weight features at different spatial positions, so that the model can better capture contextual information and improve the perception and understanding of local and global features.
[0036] Optionally, in the channel attention module,
[0037]
[0038] m i =σ(W2δ(W1z))
[0039] Note: x l represents the lth channel of the feature map x of the input channel attention module, z l represents the lth element of the vector z after average pooling calculation, H and W represent the length and width of the feature map, m i represents the channel weight vector obtained after passing through the linear layer with different reduction rates, σ and δ represent the Sigmoid function and ReLu function respectively, r represents the reduction rate, represents the weight matrix in the linear layer, Represents the size of the matrix.
[0040] Through the above technical solution, the above formula concretely introduces the calculation process of the channel attention module, which is clear, intuitive and efficient. The above formula concretely introduces the calculation process of the global average pooling and the channel attention weight vector under different reduction rates in the channel attention module, accurately describes the generation method of channel attention, and makes the structure of channel attention more intuitive.
[0041] Optionally, in the spatial attention module,
[0042] SA(F)=σ(f 3×3 (Concat(AvgPool(F),MaxPool(F))))
[0043] Note: F represents the feature map of the input spatial attention module, σ represents the Sigmoid function, and f 3×3 It represents a convolution operation with a convolution kernel size of 3×3, AvgPool(F) represents the average pooling of the feature map, MaxPool(F) represents the maximum pooling of the feature map, Concat represents the matrix concatenation of the calculation results, and SA(F) represents the calculation of spatial attention on the feature map.
[0044] Through the above technical solution, the above formula specifically introduces the calculation process of the spatial attention module. The above formula concretely introduces the calculation process of the spatial attention module. The formula obtains the final output spatial attention feature map by integrating the spatial attention information obtained in average pooling and maximum pooling, making the structure of the module generating spatial attention more intuitive.
[0045] Optionally, the processing of the image recognition module is as follows:
[0046] Step S2, obtaining low-power and high-power images of the blood smear input by the user;
[0047] Step S3, randomly dividing 4 image slices in the single cell layer area of the low-power microscope and high-power microscope input images according to the same size as in step S1.2;
[0048] Step S4, preprocessing the image slice obtained in step S3 according to the method in step S1.3 to remove the part outside the white blood cells of the image;
[0049] Step S5: Perform image recognition on the low-power and high-power blood smear image slices according to the image recognition module trained in step S1.4 to obtain the probability value of each image slice belonging to an APL case.
[0050] Through the above technical solution, the purpose of simultaneously inputting low-power and high-power images into the image recognition module is to provide the probability value of the blood smear image slice belonging to APL for the next comprehensive diagnosis. This method can effectively integrate and express the characteristics of blood smear images at all scales. Low-power and high-power blood smear images have complementary effects in feature expression. Low-power images reflect more the number and distribution characteristics of white blood cells, while high-power images can reflect more morphological details of white blood cells.
[0051] Optionally, the diagnostic module processes as follows:
[0052] Step S6, respectively obtaining the average of the probability values of the four image slices in the blood smear under low-power microscope and high-power microscope calculated in step S5;
[0053] Step S7, setting the judgment thresholds of the image slices of the blood smear under low-power microscope and high-power microscope to 0.3, if the average value obtained in step S6 is greater than the judgment threshold, it is considered that the designed neural network model judges the blood smear under this magnification as an APL case;
[0054] Step S8: Perform an OR operation on the judgment results obtained under the low-power microscope and the high-power microscope to obtain the final result of the APL judgment of the entire blood smear.
[0055] Through the above technical solution, the purpose of selecting the probability of 4 image slices and taking the average value in the step is to use the results of several image slices to represent the detection results of the whole slice. This approach can avoid diagnostic errors caused by unclear APL features in a single image slice or network judgment errors, and improve the accuracy of model judgment. The purpose of ORing the judgment results obtained under low-power and high-power microscopes is to output the final diagnosis results by combining features at different scales. This approach can maximize the identification of all APL cases, prevent missed diagnosis, and improve the recall rate of the model.
[0056] After adopting the above technical solution, the beneficial effects of the present invention are:
[0057] The system involved in the present invention can accurately judge APL cases and promote the rapid detection of blood diseases to towns and villages with relatively weak medical conditions; it minimizes the participation of manual operations in the detection process, reduces the amount of operations in the long-term and large-scale rapid screening process, and improves the detection efficiency; the system can minimize the occurrence of missed diagnoses and issue early warnings for suspected cases, and has good clinical application capabilities. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] The present application embodiment discloses a rapid diagnostic system for identifying the morphology of acute promyelocytic leukemia.
[0060] Example
[0061] A rapid diagnostic system for identifying the morphology of acute promyelocytic leukemia includes a training module, an image recognition module and a diagnostic module. The details are as follows:
[0062] (1) a training module, used to train the image recognition module through the scanned images of the blood smear, so that the image recognition module has the ability to obtain the probability value of the APL case;
[0063] The training process of the training module is as follows:
[0064] Step S1: Pre-training the image recognition module through steps S1.1 to S1.4, so that the trained image recognition module has the ability to determine whether the patient corresponding to the scanned image of the blood smear suffers from APL;
[0065] Step S1.1, obtaining a plurality of blood smears scanned at low and high magnification, including APL cases and non-APL cases; for example, the blood smear is placed in a designated area of a microscope stage, the camera is started, and the microscope automatically scans the blood smear at low and high magnification, and all the blood smear images collected by the microscope are saved for later use. Repeat the above steps to collect a large number of blood smear image samples.
[0066] Step S1.2, select the single cell layer part in the full-slice scan image in step S1.1 and segment it according to the size (800 pixels × 800 pixels), and divide the segmented image into APL case image and non-APL case image according to whether the image is from an APL case; 800 pixels is a moderate size. Too small pixels can easily lead to a lack of sufficient white blood cells in the image slice, resulting in inaccurate judgment. Too large pixels will cause excessive video memory usage during training and inference operations, resulting in a decrease in computing speed or higher requirements for device performance.
[0067] Step S1.3, determine the position of white blood cells in each segmented image slice according to the HSV value, so as to remove the part other than white blood cells in the segmented image, retain the part of white blood cells in the image, and set the pixel values corresponding to other parts to 0 to achieve the removal effect.
[0068] The HSV color gamut is a color representation method that is different from the RGB color gamut. H stands for hue, S stands for saturation, and V stands for value. Compared with RGB, HSV can intuitively express the differences in brightness, hue, and vividness between colors, making it easier to compare colors.
[0069] The process of determining the location of white blood cells is as follows:
[0070] The image slices are transformed from RGB color space to HSV color space, and the Otsu algorithm is applied in the saturation channel (S channel) to separate the foreground and background to obtain the saturation template of white blood cells. The specific formula is as follows;
[0071]
[0072]
[0073] in: is the inter-class variance of the foreground and background, k is the grayscale segmentation threshold of the Otsu method, L is the grayscale level of the image, and m G is the average gray value of the entire image, m1(k) and P1(k) are the average gray value of pixels classified as foreground and the probability of pixels being classified as foreground, respectively. * is the optimal segmentation threshold, is the segmentation threshold k * The between-class variance at is the inter-class variance when the segmentation threshold is k, max 0≤k≤L―1 : L is the grayscale of the image. In the present invention, L is equal to 255, which means that when k is between 0 and 255, maximum.
[0074] In the hue channel (H channel), pixels with values in the range of 115-180 are converted to white, and other pixels are converted to black to obtain the hue template of white blood cells. The intersection of the saturation template and the hue template is used as the template for determining the position of white blood cells to remove the parts other than white blood cells in the image. The reason for selecting 115-180 is that the saturation of stained white blood cells is usually between 115-180. The intersection of the saturation template and the hue template is used as the template for determining the position of white blood cells to minimize the retention of the image that does not belong to the white blood cells during segmentation.
[0075] Step S1.4, the image processed by steps S1.2-S1.3 is made into data sets under low-power microscope (10×) and high-power microscope (100×) according to the image magnification, and image recognition learning is performed through the designed neural network model to obtain the trained image recognition module under the corresponding magnification.
[0076] The neural network model consists of three parts: a backbone network module, a channel attention module, and a spatial attention module; the backbone network module includes a ResNet50 network and three consecutive convolution blocks, which are used to extract image features at different levels for use by subsequent channel attention modules and spatial attention modules; the channel attention module completes feature fusion by combining linear layers with different reduction rates and several convolution kernels to redistribute channel weights and achieve the effect of paying attention to specific channel features; the spatial attention module uses maximum pooling and average pooling operations along the channel axis to generate a 2D spatial attention map, and then convolves the 2D spatial attention map through a convolution layer and calculates it through a Sigmoid function to form the final 1D spatial attention map.
[0077] The structures of the backbone network module, channel attention module and spatial attention module are all part of the prior art. The present invention adopts a hierarchical attention organization method to combine the three modules of the backbone network module, channel attention module and spatial attention module into a whole to solve the problem of APL classification judgment. Among them, the backbone network module: ResNet as a backbone network module can greatly improve the depth of the neural network, so that more and deeper image information can be extracted; at the same time, the structure of residual connection introduced by ResNet can also avoid the problem of gradient disappearance to a certain extent. Channel attention module: Channel attention can learn a variety of channel weight weighting methods through linear layers with different reduction rates, so that the model pays more attention to important channels that contribute to the task, reduces dependence on irrelevant channels, and improves model performance; at the same time, these weighting methods are integrated through feature fusion, which can better perform feature selection and improve the performance and generalization ability of the model. Spatial attention module: The spatial attention module can help the model select the spatial area of interest, increase the attention to key information, and reduce the processing of irrelevant areas; at the same time, spatial attention can perform weighted processing on features at different spatial positions, so that the model can better capture contextual information and improve the perception and understanding of local and global features.
[0078] In the channel attention module,
[0079]
[0080] m i =σ(W2δ(W1z))
[0081] Note: x l represents the lth channel of the feature map x of the input channel attention module, z l represents the lth element of the vector z after average pooling calculation, H and W represent the length and width of the feature map, m i represents the channel weight vector obtained after passing through the linear layer with different reduction rates, σ and δ represent the Sigmoid function and ReLu function respectively, and r represents the reduction rate. represents the weight matrix in the linear layer, Represents the size of the matrix.
[0082] In the spatial attention module,
[0083] SA(F)=σ(f 3×3 (Concat(AvgPool(F),MaxPool(F))))
[0084] Where: F represents the feature map of the input spatial attention module, σ represents the Sigmoid function, and f 3×3 It represents a convolution operation with a convolution kernel size of 3×3. AvgPool(F) represents average pooling of feature maps, MaxPool(F) represents maximum pooling of feature maps, Concat represents matrix concatenation of calculation results, and SA(F) represents spatial attention calculation of feature maps.
[0085] (2) an image recognition module, which is used to obtain low-power and high-power images of the blood smear input by the user, and to segment the images to obtain the probability value of each image slice belonging to an APL case;
[0086] The processing of the image recognition module is as follows:
[0087] Step S2, obtaining low-power and high-power images of the blood smear input by the user;
[0088] Step S3, randomly dividing 4 image slices in the single cell layer area of the low-power and high-power input images according to the same size (800 pixels × 800 pixels) as in step S1.2;
[0089] Step S4, preprocessing the image slice obtained in step S3 according to the method in step S1.3 to remove the part outside the white blood cells of the image;
[0090] Step S5: Perform image recognition on the low-power and high-power blood smear image slices according to the image recognition module trained in step S1.4 to obtain the probability value of each image slice belonging to an APL case.
[0091] (3) A diagnosis module, which is used to calculate the average value of the multiple probability values obtained in the image recognition module, and to determine whether the blood smear is an APL case by comparing the average value with a judgment threshold.
[0092] The processing of the diagnostic module is as follows:
[0093] Step S6, respectively obtaining the average of the probability values of the four image slices in the blood smear under low-power microscope and high-power microscope calculated in step S5;
[0094] Step S7, setting the judgment thresholds of the image slices of the blood smear under low-power microscope and high-power microscope to 0.3, if the average value obtained in step S6 is greater than the judgment threshold, it is considered that the designed neural network model judges the blood smear under this magnification as an APL case;
[0095] Among them, the judgment threshold of 0.3 is determined during training. During the training process, the neural network selects different judgment thresholds from 0 to 1 in the validation set to calculate the true positive rate and false positive rate, and selects the threshold when the true positive rate - false positive rate is the largest as the judgment threshold.
[0096] True positive rate = TP / (TP+FN);
[0097] False positive rate = FP / (TN+FP);
[0098] TP means that the actual sample is positive and the prediction is also positive.
[0099] FP refers to the situation where the sample is actually a negative sample but is predicted to be a positive sample;
[0100] TN represents the situation where the actual sample is a negative sample and the prediction is also a negative sample;
[0101] FN represents the situation where the actual sample is a positive sample but the predicted sample is a negative sample.
[0102] Step S8: Perform an OR operation on the judgment results obtained under the low-power microscope and the high-power microscope to obtain the final result of the APL judgment of the entire blood smear. OR operation is a logical operation, also known as logical OR. It means that if at least one input is true (True), the output is true; only when all inputs are false (False), the output is false. So what this means is that as long as one of the low-power microscope and the high-power microscope is judged as APL, the final result output is APL.
[0103] An image recognition module: comprising a microscope, a camera and a graphics card, wherein the microscope and the camera are used to image and take an image of the blood smear (step S2); a graphics card is used to perform image recognition to obtain the probability that the image slice belongs to an APL case (step S5);
[0104] Training module: includes a graphics card, a graphics card is used to perform image recognition training on the designed neural network model (step S1.4).
[0105] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A rapid diagnostic system for identifying the morphology of acute promyelocytic leukemia, characterized in that Includes the following sections: An image recognition module is used to obtain low-power and high-power images of the blood smear input by the user, and to segment the images to obtain the probability value of each image slice belonging to an APL case; A training module, used for training the image recognition module through the scanned image of the blood smear, so that the image recognition module has the ability to obtain the probability value of the APL case; a diagnosis module, used to calculate the average value of the multiple probability values obtained in the image recognition module, and to judge whether the blood smear is an APL case by comparing the average value with a judgment threshold; The training process of the training module is as follows: Step S1.1, obtaining full-slide scan images of multiple blood smears under low-power and high-power microscopes, including APL cases and non-APL cases; Step S1.2, selecting a single cell layer portion in the full-slice scan image in step S1.1 and segmenting it according to size, and dividing the segmented image into an APL case image and a non-APL case image according to whether the image is from an APL case; Step S1.3, slicing each segmented image to determine the position of the white blood cells in the image according to the HSV value, so as to remove the portion other than the white blood cells in the segmented image; Step S1.4, the image processed by steps S1.2-S1.3 is respectively prepared into low-power and high-power data sets according to the image magnification, and image recognition learning is performed through the designed neural network model to obtain a trained image recognition module under the corresponding magnification; In step S1.4, the neural network model includes three parts: backbone network module, channel attention module and spatial attention module; The backbone network module includes a ResNet50 network and three consecutive convolutional blocks, which are used to extract image features at different levels for use by subsequent channel attention modules and spatial attention modules; The channel attention module redistributes channel weights by combining linear layers with different reduction rates and several convolution kernels to achieve the effect of paying attention to specific channel features; The spatial attention module uses the maximum pooling and average pooling operations along the channel axis to generate a 2D spatial attention map, which is then convolved through a convolutional layer and calculated through a sigmoid function to form the final 1D spatial attention map. In the channel attention module, m i =σ(W2δ(W1z)) Where: x l represents the lth channel of the feature map x of the input channel attention module, z l represents the lth element of the vector z after average pooling calculation, H and W represent the length and width of the feature map, m i represents the channel weight vector obtained after passing through the linear layer with different reduction rates, σ and δ represent the Sigmoid function and ReLu function respectively, r represents the reduction rate, represents the weight matrix in the linear layer, Represents the size of the matrix; In the spatial attention module, SA(F)=σ(f 3×3 (Concat(AvgPool(F),MaxPool(F)))) Note: F represents the feature map of the input spatial attention module, σ represents the Sigmoid function, and f 3×3 It represents a convolution operation with a convolution kernel size of 3×3, AvgPool(F) represents the average pooling of the feature map, MaxPool(F) represents the maximum pooling of the feature map, Concat represents the matrix concatenation of the calculation results, and SA(F) represents the calculation of spatial attention on the feature map.
2. The rapid diagnostic system for identifying the morphology of acute promyelocytic leukemia according to claim 1, characterized in that: In step S1.3, the image slice is converted from the RGB color space to the HSV color space, and the Otsu algorithm is applied in the saturation channel to separate the foreground and the background to obtain the saturation template of the white blood cells, and the specific formula is as follows; in: is the inter-class variance of foreground and background, k * is the optimal segmentation threshold, k is the grayscale segmentation threshold of the Otsu method, L is the grayscale level of the image, and m G is the average gray value of the entire image, m1(k) and P1(k) are the average gray value of pixels classified as foreground and the probability of pixels being classified as foreground, respectively. is the segmentation threshold k * The between-class variance at is the inter-class variance when the segmentation threshold is k, max 0≤k≤L-1 : L is the gray level of the image.
3. The rapid diagnostic system for identifying the morphology of acute promyelocytic leukemia according to claim 2, characterized in that: In step S1.3, pixels with values in the range of 115-180 are converted to white in the hue channel, and other pixels are converted to black to obtain a hue template for white blood cells. The intersection of the saturation template and the hue template is taken as a template for determining the position of white blood cells to remove parts other than white blood cells in the image.
4. The rapid diagnostic system for identifying the morphology of acute promyelocytic leukemia according to claim 1, characterized in that: The processing of the image recognition module is as follows: Step S2, obtaining low-power and high-power images of the blood smear input by the user; Step S3, randomly dividing 4 image slices in the single cell layer area of the low-power microscope and high-power microscope input images according to the same size as in step S1.2; Step S4, preprocessing the image slice obtained in step S3 according to the method in step S1.3 to remove the part outside the white blood cells of the image; Step S5: Perform image recognition on the low-power and high-power blood smear image slices according to the image recognition module trained in step S1.4 to obtain the probability value of each image slice belonging to an APL case.
5. The rapid diagnostic system for identifying the morphology of acute promyelocytic leukemia according to claim 4, characterized in that: The processing of the diagnostic module is as follows: Step S6, respectively obtaining the average of the probability values of the four image slices in the blood smear under low-power microscope and high-power microscope calculated in step S5; Step S7, setting the judgment thresholds of the image slices of the blood smear under low-power microscope and high-power microscope to 0.3, if the average value obtained in step S6 is greater than the judgment threshold, it is considered that the designed neural network model judges the blood smear under this magnification as an APL case; Step S8: Perform an OR operation on the judgment results obtained under the low-power microscope and the high-power microscope to obtain the final result of the APL judgment of the entire blood smear.
Citation Information
Cited By
Method and device for recognizing promyelocytic leukemia based on morphological image analysis and storage medium
CN123015374A
