A method for segmenting and classifying white blood cells

Through the combination of adaptive Retinex correction and U-net convolutional neural network, the accuracy and robustness problems of white blood cell segmentation and classification in traditional methods are solved, and five types of white blood cell accurate segmentation and classification are achieved, which is suitable for white blood cell data samples. Fewer scenes.

CN114627138BActive Publication Date: 2024-10-29XIAN UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210265782.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-17
Publication Date
2024-10-29
Estimated Expiration
2042-03-17

AI Technical Summary

Technical Problem

Traditional leukocyte segmentation and classification methods have problems such as single-label classification limitations, incomplete cell segmentation, low accuracy, and sensitivity to noise. They cannot meet the needs of practical applications, especially when there are few leukocyte data samples and it is difficult to achieve accurate multi-leukocyte classification. Segmentation and classification.

Method used

Use adaptive Retinex correction to process white blood cell images, segment the brightness, hue and saturation components in HSV color space, and use U-net convolutional neural network combined with VGG16 backbone feature extraction network to classify white blood cells into five categories, and use Michelson contrast for color Correction to improve image robustness and segmentation accuracy.

Benefits of technology

It achieves accurate five-category segmentation and classification of white blood cells, improves the robustness and classification accuracy of image processing, can obtain good training results on fewer data sets, and solves the problem of few white blood cell data samples.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114627138B_ABST
    Figure CN114627138B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for segmenting and classifying white blood cells, including acquiring multiple RGB color blood cell images, converting each image into an HSV color blood cell image, segmenting the three components of brightness, hue, and saturation in each HSV color blood cell image, and dividing the grayscale image of each component into a number of square image blocks of the same size; performing adaptive Retinex correction on each square image block; and training a white blood cell classification model using a U‑net convolutional neural network according to the characteristics of each type of white blood cell in the white blood cell feature image, thereby achieving segmentation and classification of five types of white blood cells in blood cells. The present invention pre-processes blood cell images through an adaptive Retinex method that integrates histogram equalization and Retinex theory, strengthens the different characteristics between individual white blood cells, and eliminates the problem of uneven illumination during acquisition, thereby achieving accurate segmentation and classification operations of five types of white blood cells.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical image processing, and in particular to a leukocyte segmentation and classification method. Background Art

[0002] Medical image segmentation has become one of the main research directions in the field of image processing due to its great help in auxiliary medical care, clinical medicine and other fields. For specific medical images, such as white blood cell images in peripheral blood cell images, the blood cell images are usually unevenly illuminated and white blood cell features are not obvious during the staining and image acquisition stages due to the characteristics of white blood cells themselves or the influence of equipment. Although image processing algorithms are constantly being proposed, the effect brought by a single traditional algorithm is not ideal.

[0003] White blood cells are an important part of the human immune system. White blood cells are mainly composed of neutrophils, basophils, eosinophils, monocytes and lymphocytes. The number and proportion of different types of white blood cells correspond to different diseases, so the accuracy of white blood cell detection and classification is very important for auxiliary diagnosis of diseases. The traditional white blood cell detection method mainly uses manual microscopy. Manual microscopy is the "gold standard" for clinical testing. It requires two well-trained and experienced laboratory doctors to observe the morphology of white blood cells and count them under a microscope to finally determine the test results. This method is not only time-consuming and inefficient, but also highly subjective.

[0004] At present, there are methods for segmenting and identifying white blood cells using traditional image processing, such as watershed algorithm, edge detection, active contour model, adaptive threshold segmentation, etc. However, traditional methods can only solve single-label classification problems, and cannot perform multi-label classification. There are also problems such as incomplete cell segmentation and low accuracy. Edge detection can only produce edge points, not image segmentation in a complete sense, and further processing is required after obtaining edge point information. The active contour model depends on the selection of the initial contour, and good segmentation results cannot be obtained if the initial contour is inaccurate. It is crucial to select a suitable threshold in adaptive threshold segmentation, so it is sensitive to noise and has low robustness. Therefore, traditional methods cannot meet current practical applications.

[0005] With the improvement of computer performance and the increase of data volume in recent years, deep learning has also been widely used in white blood cell detection. However, through current research, it can be found that there are few white blood cell data samples in public data sets. Many studies using deep learning methods for white blood cell segmentation and classification require data expansion, and only achieve the segmentation or classification of a single white blood cell in an image. Summary of the invention

[0006] The object of the present invention is to provide a method for segmenting and classifying leukocytes, which can accurately perform segmentation and classification of leukocytes into five categories.

[0007] The present invention provides a method for segmenting and classifying leukocytes, comprising the following steps:

[0008] Acquire multiple RGB color blood cell images, and convert each of the RGB color blood cell images into an HSV color blood cell image, segment the three components of brightness V, hue H, and saturation S in each of the HSV color blood cell images, and divide the grayscale image of each component into a number of square image blocks of the same size;

[0009] Performing adaptive Retinex correction on each of the square image blocks, including performing adaptive equalization processing on the square image blocks of the brightness V component, and performing color correction processing on the square image blocks of the hue H component and the square image blocks of the saturation S component;

[0010] All square image blocks in the three components after adaptive Retinex correction are fused and converted into an RGB color space image, which is a white blood cell feature image;

[0011] According to the characteristics of various types of white blood cells in the white blood cell feature image, the U-net convolutional neural network is used to train the white blood cell classification model to achieve the segmentation and classification of five types of white blood cells in blood cells.

[0012] Preferably, the plurality of RGB color blood cell images are microscope images of blood cell smears after Wright staining;

[0013] The multiple RGB color blood cell images are all RGB color images in JPG format with a uniform standardized size. Half of the images in the multiple RGB color blood cell images are training sets, and the other half of the images are test sets.

[0014] Preferably, the adaptive equalization processing for the square image blocks of the luminance V component specifically includes performing histogram calculation on each square image block in the luminance V component to redistribute the brightness values ​​of the square image blocks of the luminance V component.

[0015] Preferably, the color correction process is color correction implemented by a block-based color restoration function introduced based on the MSRCR model combined with Michelson contrast;

[0016] The MSRCR model is as follows:

[0017] F MSRCR (x,y)=c i (x,y)F MSR(x,y) (1)

[0018] Among them, (x, y) is the spatial coordinate of the pixel point in the image with the lower left corner of the image as the origin;

[0019] F MSRCR (x,y) represents the MSRCR model function;

[0020] F MSR (x,y) represents the MSR model function;

[0021] c i (x,y) represents the color restoration function;

[0022] c i The (x,y) formula is as follows:

[0023]

[0024] Among them, S i (x,y) represents the original image, i∈{R,G,B};

[0025] α represents the gain factor offset that affects image color restoration, and the value of α is 46;

[0026] β represents the gain factor offset that affects image color restoration, and the expression is as follows:

[0027]

[0028] Among them, γ is a constant;

[0029] C M represents the Michelson contrast, which is expressed as:

[0030]

[0031] Among them, I max Indicates the brightest brightness; I min Indicates the darkest brightness;

[0032] Then c i The (x,y) color restoration function is:

[0033]

[0034] Preferably, the value of the gain factor offset β affecting the image color restoration is adaptively selected according to the change of the Michelson contrast of the pixel values ​​in the square image block of the hue H component and the square image block of the saturation S component;

[0035] In the square image block of the hue H component, I maxRepresents all cells and impurities in the blood cell image, I min Represents the background in the blood cell image;

[0036] When the Michelson contrast C M As the value of the gain factor offset β affecting image color restoration increases gradually, the value of the gain factor offset β increases with the Michelson contrast C M increases with the increase of

[0037] When the Michelson contrast C M When gradually decreasing, the value of the gain factor offset β affecting image color restoration remains unchanged;

[0038] In the saturation S component, I max Represents white blood cells in a blood cell image, I min Represents the background in the blood cell image;

[0039] When the Michelson contrast C M As the value of the gain factor offset β affecting image color restoration increases gradually, the value of the gain factor offset β increases with the Michelson contrast C M increases with the increase of

[0040] When the Michelson contrast C M When gradually decreasing, the value of the gain factor offset β affecting image color restoration remains unchanged;

[0041] The value of the gain factor offset β affecting image color restoration is adaptively selected according to the change of the Michelson contrast of the pixel values ​​in the square image block of the hue H component and the square image block of the saturation S component.

[0042] Preferably, the U-net convolutional neural network model includes a VGG16 backbone feature extraction network, an enhanced feature extraction network, and a prediction network.

[0043] Preferably, when the image size of the input RGB color blood cell image is k×k×3, the processing process of the VGG16 backbone feature extraction network is as follows:

[0044] The RGB color blood cell image is subjected to two 3×3 64-channel convolutions to obtain a k×k×64 preliminary effective feature layer, and then a 2×2 maximum pooling is performed to obtain a The feature layer;

[0045] Perform two 3×3 128-channel convolutions to obtain a The initial effective feature layer is then subjected to 2×2 maximum pooling to obtain a The feature layer;

[0046] Perform three 3×3 256-channel convolutions to obtain a The initial effective feature layer is then subjected to 2×2 maximum pooling to obtain a The feature layer;

[0047] Perform three 3×3 512-channel convolutions to obtain a The initial effective feature layer is then subjected to 2×2 maximum pooling to obtain a The feature layer;

[0048] Perform three 3×3 512-channel convolutions to obtain a The initial effective feature layer.

[0049] Preferably, the enhanced feature extraction network and the VGG16 trunk feature extraction network are in a U shape, for obtaining a final effective feature layer having the same height and width as the input RGB color blood cell image;

[0050] The method of obtaining the final effective feature layer having the same height and width as the input RGB color blood cell image specifically includes fusing the five preliminary effective feature layers obtained by the backbone feature extraction network, wherein the feature fusion is to upsample and stack each of the effective feature layers by two times.

[0051] Preferably, the prediction network is used to obtain a white blood cell classification prediction result based on five preliminary effective feature layers obtained by the backbone feature extraction network;

[0052] The processing process of the prediction network is as follows:

[0053] Using a 1×1 convolution to adjust the channels of the final effective feature layer, so that the number of channels of the final effective feature layer is adjusted to 6;

[0054] Each feature point in the final effective feature layer is classified, and the classification output result of the feature points in the final effective feature layer is the segmentation and classification result of the white blood cells.

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

[0056] The present invention firstly processes the blood cell images collected under a microscope using an adaptive Retinex method that integrates histogram equalization and Retinex theory based on the OpenCV platform. On the one hand, it strengthens the different feature details between individual white blood cells, and on the other hand, it eliminates the problem of uneven illumination during collection, thereby improving the robustness during training. Then, the processed data set is trained and predicted by the U-net convolutional neural network. U-net can use fewer data sets to obtain good training results, thus solving the problem of fewer white blood cell data samples. Combining the two aspects, a more accurate segmentation and classification operation of the five categories of white blood cells is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0058] Figure 1 It is a principle flow chart of a leukocyte segmentation and classification method proposed by the present invention;

[0059] Figure 2 This is a principle block diagram of a white blood cell segmentation and classification method proposed by the present invention.

[0060] Figure 3 The image of the stained blood cell image in Example 1 of the present invention after being processed by step 1;

[0061] Figure 4 The figure is a result diagram before and after the adaptive Retinex correction is performed on the blood cell image in step 2 in Example 1 of the present invention;

[0062] Figure 5 This is a graph showing the result of training and predicting the blood cell image using the U-net convolutional neural network in step 3 in Example 1 of the present invention. DETAILED DESCRIPTION

[0063] The technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention, but it should be understood that the protection scope of the present invention is not limited by the specific implementation methods.

[0064] Example

[0065] like Figure 1-5 As shown, a method for white blood cell segmentation and classification comprises the following steps:

[0066] Step 1: Acquire multiple RGB color blood cell images, all of which are microscope images of blood cell smears after Wright staining, and all of which are RGB color images in JPG format of uniformly standardized size. Half of the multiple RGB color blood cell images are training sets, and the other half are test sets.

[0067] In this embodiment, 80 RGB color blood cell images are used as samples. In order to make the sample images meet the basic requirements of the U-net convolutional neural network model training, the number of cells in each sample image is sufficient and the distribution of cell images is relatively complex. Among them, the 80 sample image data sets are divided into 40 training sets and 40 test sets, and all blood cell images are standardized into RGB color images in JPG format of 512×512.

[0068] Each RGB color blood cell image is converted into an HSV color blood cell image, and the three components of brightness V, hue H, and saturation S in each HSV color blood cell image are segmented, and the grayscale image of each component is divided into several square image blocks of the same size.

[0069] In this embodiment, based on the OpenCV platform, 80 sample images of microscope imaging of blood cell smears after Wright staining are converted from RGB color space to HSV color space, ensuring that the size of each HSV image after conversion is 512×512. Figure 3 a is the converted HSV color space image. And the grayscale image of the three components of brightness V, hue H and saturation S is segmented. Figure 3 b is the separated brightness V component, Figure 3 c is the separated hue H component, Figure 3 d is the saturation S component. Each grayscale image is then divided into 16384 4×4 blocks.

[0070] Step 2: Perform adaptive Retinex correction on each square image block, including the following steps:

[0071] Step 2.1: Adaptively equalize the square image blocks of the brightness V component, specifically including performing histogram calculation on each square image block in the brightness V component to redistribute the brightness values ​​of the square image blocks of the brightness V component, such as Figure 4 a is the result image of adaptive histogram equalization processing on the brightness V component.

[0072] Step 2.2: Perform color correction processing on the square image block of the hue H component and the square image block of the saturation S component; the color correction processing is implemented by a block-based color restoration function introduced based on the MSRCR model and Michelson contrast;

[0073] Among them, MSRCR is a kind of Retinex theory, which uses color restoration function to improve MSR, and MSR is improved on the basis of SSR.

[0074] The basic assumption of Retinex theory is that the original image S(x, y) is the product of the illumination image L(x, y) and the reflectance image R(x, y), which can be expressed as follows:

[0075] S(x,y)=R(x,y)·L(x,y)

[0076] In processing, it is usually converted to the logarithmic domain, that is, s = logS, l = logL, r = logR, so as to convert the product relationship into a sum relationship:

[0077] log(S)=log(R·L)

[0078] logS=log R+logL

[0079] s=r+l

[0080] The core of Retinex theory is to estimate the illumination L from the original image S, thereby decomposing the reflection component R and eliminating the influence of uneven illumination to improve the visual effect of the image, just like the human visual system. That is:

[0081] l=f(s)

[0082] r = sf(s)

[0083] Then, the implementation steps of SSR are as follows:

[0084] Step 1: Decompose the image into three channels: R, G, and B, and perform logarithmic transformation according to equations (2) and (3) respectively;

[0085] Step 2: Construct a Gaussian surround function and convolve the grayscale image of each channel with the Gaussian surround function to obtain the illumination estimation components of the three channels;

[0086] Step 3: In the logarithmic domain, perform a difference operation between the original image and the image after Gaussian blur to obtain the reflection component;

[0087] Step 4: Linearly stretch or exponentially transform the reflection component to convert it into the data type of image output;

[0088] Step 5: Merge the three-channel reflection component images into one image to obtain the SSR enhanced image.

[0089] MSR selects three scale parameters in step 2 of SSR to form three Gaussian surround functions, and then performs convolution on them and weighted average them to obtain the illumination estimation component of each channel to effectively preserve details and color information.

[0090] MSRCR (Multi-Scale Retinex with Color Restoration) is a multi-scale retinal enhancement algorithm with color restoration. Based on MSR, the color restoration function is multiplied by the MSR enhancement function of each channel in step 4 to obtain the three-channel image enhancement reflection component to reduce color deviation.

[0091] The MSRCR model is as follows:

[0092] F MSRCR (x,y)=c i (x,y)F MSR (x,y) (1)

[0093] Among them, (x, y) is the spatial coordinate of the pixel point in the image with the lower left corner of the image as the origin;

[0094] F MSRCR (x,y) represents the MSRCR model function;

[0095] F MSR (x,y) represents the MSR model function;

[0096] c i (x,y) represents the color restoration function;

[0097] c i The (x,y) formula is as follows:

[0098]

[0099] Among them, S i (x), y) represents the original image, i∈{R,G,B};

[0100] α represents the gain factor offset that affects image color restoration, and α is generally set to 46;

[0101] β represents the gain factor offset that affects image color restoration, and the expression is as follows:

[0102]

[0103] Among them, γ is a constant;

[0104] C M represents the Michelson contrast, which is expressed as:

[0105]

[0106] Among them, I max Indicates the brightest brightness; I min Indicates the darkest brightness;

[0107] Then c i The (x,y) color restoration function is:

[0108]

[0109] Adaptively select the value of the gain factor offset β that affects image color restoration according to the change of the Michelson contrast of the pixel values ​​in the square image block of the hue H component and the square image block of the saturation S component;

[0110] First, the pixel distribution of the H component and S component of the above segmented blood cell image is statistically calculated, as follows: Figure 4 b and Figure 4 As shown in c, Figure 4 b is the pixel distribution statistics of the H component. Figure 4 c is the pixel distribution statistics of the S component.

[0111] The H component distinguishes the background from the cells, so the background is processed in the H component to solve the problem of the background being too bright or too dark.

[0112] The S component distinguishes the background, other cells and impurities, and white blood cells, so they are processed separately in the S component to increase the detail features of white blood cells, and at the same time, the three parts are normalized separately.

[0113] In the square image block of the hue H component, I max Represents all cells and impurities in the blood cell image, I min represents the background in the blood cell image. When the Michelson contrast C M When it increases gradually, it means that the contrast between the cells in the image and the background is large, and the value of the gain factor offset β that affects the image color restoration increases with the Michelson contrast C M The increase of can suppress the influence of uneven brightness caused by non-uniform illumination;

[0114] When the Michelson contrast C MWhen it decreases gradually, it means that all cells and impurities may be under the same black background or gray background in the image, and the value of the gain factor offset β that affects the image color restoration tends to remain unchanged, ensuring that white blood cells and other impurities are not too similar.

[0115] In the saturation S component, I max Represents white blood cells in a blood cell image, I min Represents the background in the blood cell image;

[0116] When the Michelson contrast C M As the value of the gain factor offset β that affects image color restoration increases gradually, the value of the gain factor offset β increases with the Michelson contrast C M increases with the increase of ; when the Michelson contrast C M When it is gradually reduced, the value of the gain factor offset β that affects the image color restoration remains unchanged. The white blood cell features are refined, and the contrast between white blood cells and other cells and impurities is increased.

[0117] Step 2.3: All square image blocks in the three components after adaptive Retinex correction are fused and converted into RGB color space images. The RGB color space image is a white blood cell feature image, such as Figure 4 As shown in d;

[0118] Step 3: According to the characteristics of each type of white blood cells in the white blood cell feature image, the U-net convolutional neural network is used to train the white blood cell classification model to achieve the classification of the five types of white blood cells in blood cells.

[0119] The U-net convolutional neural network model includes the VGG16 backbone feature extraction network, enhanced feature extraction network, and prediction network.

[0120] V-When the image size of the input RGB color blood cell image is k×k×3, the processing process of the VGG16 backbone feature extraction network is as follows:

[0121] Perform two 3×3 64-channel convolutions on the RGB color blood cell image to obtain a k×k×64 preliminary effective feature layer, and then perform 2×2 maximum pooling to obtain a The feature layer;

[0122] Perform two 3×3 128-channel convolutions to obtain a The initial effective feature layer is then subjected to 2×2 maximum pooling to obtain a The feature layer;

[0123] Perform three 3×3 256-channel convolutions to obtain a The initial effective feature layer is then subjected to 2×2 maximum pooling to obtain a The feature layer;

[0124] Perform three 3×3 512-channel convolutions to obtain a The initial effective feature layer is then subjected to 2×2 maximum pooling to obtain a feature layer.

[0125] Perform three 3×3 512-channel convolutions to obtain a The initial effective feature layer.

[0126] The enhanced feature extraction network and the VGG16 backbone feature extraction network are in a U shape, which is used to obtain the final effective feature layer with the same height and width as the input RGB color blood cell image picture;

[0127] Obtaining the final effective feature layer with the same height and width as the input RGB color blood cell image specifically includes fusing the five preliminary effective feature layers obtained by the backbone feature extraction network. The feature fusion is to upsample and stack each effective feature layer by two times.

[0128] The prediction network is used to obtain the prediction results of white blood cell classification based on the five preliminary effective feature layers obtained by the backbone feature extraction network;

[0129] The processing of the prediction network is as follows:

[0130] Use a 1×1 convolution to adjust the channels of the final effective feature layer and adjust the number of channels of the final effective feature layer to 6;

[0131] Classify each feature point in the final effective feature layer, and the classification output result of the feature points in the final effective feature layer is the segmentation and classification result of white blood cells

[0132] In this embodiment, first, the processed white blood cell feature image is manually labeled, and the white blood cells in the image are divided into five types: lymphocytes, basophils, neutrophils, eosinophils and monocytes, which are represented by green, purple, yellow, blue and red, respectively. Figure 5 a is the processed original image of blood cells. Figure 5 b is the 8-bit color label image of manual labeling.

[0133] Then, the five preliminary effective feature layers are obtained using the backbone feature extraction network. The input image size is 512×512×3, and the VGG16 backbone feature extraction network process is as follows:

[0134] conv1: Perform two 3×3 64-channel convolutions to obtain a preliminary effective feature layer of 512×512×64, and then perform 2×2 maximum pooling to obtain a feature layer of 256×256×64.

[0135] conv2: Perform two 3×3 128-channel convolutions to obtain a preliminary effective feature layer of 256×256×128, and then perform 2×2 maximum pooling to obtain a feature layer of 128×128×128.

[0136] conv3: Perform three 3×3 convolutions with 256 channels to obtain a preliminary effective feature layer of 128×128×256, and then perform 2×2 maximum pooling to obtain a 64×64×256 feature layer.

[0137] conv4: Perform three 3×3 convolutions with 512 channels to obtain a preliminary effective feature layer of 64×64×512, and then perform 2×2 maximum pooling to obtain a feature layer of 32×32×512.

[0138] conv5: Perform three 3×3 convolutions with 512 channels to obtain a preliminary effective feature layer of 32×32×512.

[0139] Next, in the enhanced feature extraction network, the five preliminary effective feature layers obtained by the backbone feature extraction network are used for feature fusion. The feature fusion method is to upsample the feature layer twice and stack it, and finally obtain the final effective feature layer with the same height and width as the input image.

[0140] Finally, the prediction results are obtained using the final effective feature layer. A 1×1 convolution is used to adjust the channels, and the number of channels in the final effective feature layer is adjusted to 6, of which 5 channels are the five categories of white blood cells and 1 channel is the image background; then each feature point of the final effective feature layer is classified, and the output result is the final white blood cell segmentation classification result, as shown in Figure 5 c is the final result of white blood cell segmentation and classification.

[0141] Finally, it should be noted that what is disclosed above is only a specific embodiment of the present invention, but the embodiment of the present invention is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of the present invention.

Claims

1. A method for segmenting and classifying white blood cells, It is characterized in that The following steps are involved: Acquire multiple RGB color blood cell images, and convert each of the RGB color blood cell images into an HSV color blood cell image, segment the three components of brightness V, hue H, and saturation S in each of the HSV color blood cell images, and divide the grayscale image of each component into a number of square image blocks of the same size; Performing adaptive Retinex correction on each of the square image blocks, including performing adaptive equalization processing on the square image blocks of the brightness V component, and performing color correction processing on the square image blocks of the hue H component and the square image blocks of the saturation S component; All square image blocks in the three components after adaptive Retinex correction are fused and converted into RGB color space images, which are white blood cell feature images; According to the characteristics of various types of white blood cells in the white blood cell feature image, the U-net convolutional neural network is used to train the white blood cell classification model to achieve the segmentation and classification of five types of white blood cells in blood cells; The color correction process is implemented by a block-based color restoration function based on the MSRCR model combined with Michelson contrast. The MSRCR model is as follows: F MSRCR (x,y)=c i (x,y)F MSR (x,y) (1) Among them, (x, y) is the spatial coordinate of the pixel point in the image with the lower left corner of the image as the origin; F MSRCR (x,y) represents the MSRCR model function; F MSR (x,y) represents the MSR model function; c i (x,y) represents the color restoration function; c i The (x,y) formula is as follows: Among them, S i (x,y) represents the original image, i∈{R,G,B}; α represents the gain factor offset that affects image color restoration, and the value of α is 46; β represents the gain factor offset that affects image color restoration, and the expression is as follows: Among them, γ is a constant; C M represents the Michelson contrast, which is expressed as: Among them, I max Indicates the brightest brightness; I min Indicates the darkest brightness; Then c i The (x,y) color restoration function is: Adaptively select the value of the gain factor offset β that affects image color restoration according to the change of the Michelson contrast of the pixel values ​​in the square image block of the hue H component and the square image block of the saturation S component; In the square image block of the hue H component, I max Represents all cells and impurities in the blood cell image, I min Represents the background in the blood cell image; When the Michelson contrast C M As the value of the gain factor offset β affecting image color restoration increases gradually, the value of the gain factor offset β increases with the Michelson contrast C M increases with the increase of When the Michelson contrast C M When gradually decreasing, the value of the gain factor offset β affecting image color restoration remains unchanged; In the saturation S component, I max Represents white blood cells in a blood cell image, I min Represents the background in the blood cell image; When the Michelson contrast C M As the value of the gain factor offset β affecting image color restoration increases gradually, the value of the gain factor offset β increases with the Michelson contrast C M increases with the increase of When the Michelson contrast C M When gradually decreasing, the value of the gain factor offset β affecting image color restoration remains unchanged; The value of the gain factor offset β affecting image color restoration is adaptively selected according to the change of the Michelson contrast of the pixel values ​​in the square image block of the hue H component and the square image block of the saturation S component.

2. A method for segmenting and classifying white blood cells according to claim 1, Features: The plurality of RGB color blood cell images are microscope images of blood cell smears after Wright staining; The multiple RGB color blood cell images are all RGB color images in JPG format with a uniform standardized size. Half of the images in the multiple RGB color blood cell images are training sets, and the other half of the images are test sets.

3. A method for segmenting and classifying white blood cells according to claim 1, Features: The adaptive equalization processing for the square image blocks of the luminance V component specifically includes performing histogram calculation on each square image block in the luminance V component to redistribute the brightness values ​​of the square image blocks of the luminance V component.

4. A method for segmenting and classifying white blood cells according to claim 1, Features: The U-net convolutional neural network model includes a VGG16 backbone feature extraction network, an enhanced feature extraction network, and a prediction network.

5. A method for segmenting and classifying white blood cells according to claim 4, Features: When the image size of the input RGB color blood cell image is k×k×3, the processing process of the VGG16 backbone feature extraction network is as follows: The RGB color blood cell image is subjected to two 3×3 64-channel convolutions to obtain a k×k×64 preliminary effective feature layer, and then a 2×2 maximum pooling is performed to obtain a The feature layer; Perform two 3×3 128-channel convolutions to obtain a The initial effective feature layer is then subjected to 2×2 maximum pooling to obtain a The feature layer; Perform three 3×3 256-channel convolutions to obtain a The initial effective feature layer is then subjected to 2×2 maximum pooling to obtain a The feature layer; Perform three 3×3 512-channel convolutions to obtain a The initial effective feature layer is then subjected to 2×2 maximum pooling to obtain a The feature layer; Perform three 3×3 512-channel convolutions to obtain a The initial effective feature layer.

6. A method for segmenting and classifying white blood cells according to claim 5, Features: The enhanced feature extraction network and the VGG16 trunk feature extraction network are in a U shape, and are used to obtain a final effective feature layer with the same height and width as the input RGB color blood cell image; The method of obtaining the final effective feature layer having the same height and width as the input RGB color blood cell image specifically includes fusing the five preliminary effective feature layers obtained by the backbone feature extraction network, wherein the feature fusion is to upsample and stack each of the effective feature layers by two times.

7. A method for segmenting and classifying white blood cells according to claim 6, Features: The prediction network is used to obtain a white blood cell classification prediction result based on five preliminary effective feature layers obtained by the backbone feature extraction network; The processing process of the prediction network is as follows: Using a 1×1 convolution to adjust the channels of the final effective feature layer, so that the number of channels of the final effective feature layer is adjusted to 6; Each feature point in the final effective feature layer is classified, and the classification output result of the feature points in the final effective feature layer is the segmentation and classification result of the white blood cells.

Citation Information

Patent Citations

  • Blood leukocyte image segmentation method based on UNet++ and ResNet

    CN112070772A

  • Automatic leukocyte classification method based on color space adaptive threshold segmentation

    CN112183237A