A microscopic hyperspectral leukocyte detection method based on improved Faster RCNN
By using Resnet18 and spectral feature extraction network in the Faster RCNN network, and combining spatial and spectral features for detection, the problem of traditional methods being susceptible to environmental influences and data redundancy is solved, and high-accuracy and robust leukocyte detection is achieved.
Patent Information
- Application Number
- CN202111282117.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-01
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-11-01
AI Technical Summary
Traditional leukocyte detection methods are susceptible to environmental factors, and the data dimensions in hyperspectral imaging are redundant, requiring manual extraction of spectral values in the region of interest, resulting in cumbersome detection and the lack of automatic, fast, and effective detection methods.
In the Faster RCNN network, VGG16 is replaced by the Resnet18 feature extraction network, and a spectral feature extraction network and a feature fusion network are constructed to achieve joint detection of spatial and spectral features, independent of the original FasterRCNN framework, to improve classification accuracy.
It achieves joint detection based on spatial and spectral features, significantly improves the accuracy and generalization performance of white blood cell classification, can effectively classify blood cells under different environmental conditions, and improves the robustness of the model.
Smart Images

Figure CN114037671B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of medical technology, and particularly relates to a microscopic hyperspectral leukocyte detection method based on improved Faster RCNN. Background Art
[0002] White blood cells are an important component of blood, produced by bone marrow and lymphatic tissue, and have the function of resisting viral and bacterial infections. They can be divided into neutrophils, lymphocytes, monocytes, eosinophils, and basophils. Traditional manual microscope detection methods are too complicated, especially when testing a large number of samples, manual classification and counting of white blood cells is more prone to errors. In recent years, corresponding computer vision algorithms and systems have been widely used in the field of automatic classification and detection of blood cells.
[0003] Computer vision detection can currently be divided into two categories. The first category is to simply stack traditional algorithm modules in the order of preprocessing, feature extraction, and classification. Rawat et al. proposed a new technology to distinguish acute lymphoblastic leukemia from healthy lymphocytes, using SVM classifiers to classify fusion features including texture and shape with an accuracy of 89.8%. Mohapatra et al. used a two-stage color segmentation strategy based on fuzzy clustering to segment white blood cells in images, and proposed two new shape features "Hausdorff dimension" and "contour features", using SVM to classify lymphocyte nuclei with an accuracy of 95%. Alferez et al. used color component clustering and watershed transform to segment peripheral blood cell images, and extracted a total of 113 features for different types of lymphocyte identification. The accuracy of the training set was 98.07%, and the accuracy of the validation set was 85.33%.
[0004] However, most traditional pattern recognition algorithms complete the representation and classification modules sequentially, and their hyperparameters are mostly given manually based on experience before training. When the sample space is small or the gap between classes is not obvious, the generalization ability and stability of the model cannot be guaranteed.
[0005] The second category is to analyze pathological images based on deep learning algorithms. Computers can extract multidimensional features more comprehensively without the need to manually specify the extraction of a certain feature. After a lot of training, they can more accurately, efficiently and stably identify and classify targets in images, and they have shown strong power in many fields, especially in the medical field with a large amount of image analysis and processing, which has advantages that traditional machine learning algorithms cannot match. In the study of detecting acute leukemia, Boldu et al. used a dual-module deep learning architecture (AL Net) to identify and classify abnormal promyelocytes and blasts, respectively, and the recognition accuracy of myeloid leukemia and lymphoid leukemia reached 93.7% and 100%, respectively. Shakarami et al. used the fast and efficient YOLOv3 (FED) detector based on the EfficientNet convolutional neural network to realize blood cell recognition based on the BCCD data set. Finally, the classification accuracy of platelets, red blood cells and white blood cells was 90.25%, 80.41% and 98.92%, respectively.
[0006] The published patents involving the use of Faster RCNN network for cell detection are as follows:
[0007] Patent CN109598224A proposes a method for detecting white blood cells in bone marrow slices based on regional recommendation convolution. This method uses Resnet50 and FPN as the feature extraction network of Faster RCNN, and takes bone marrow slice images as input, with an accuracy rate of more than 90%. Patent CN110059672A proposes a method for incremental learning of microscope cell image detection models, calculating the distance between the intermediate feature layer obtained by predicting new category cells by the Faster RCNN model trained with old category cell images and the intermediate feature layer of the incremental model, and obtaining a new incremental prediction model. Patent CN110580699A proposes a method for detecting cell nuclei in pathological images based on the improved Faster RCNN algorithm, using ZF as the feature extraction network of Faster RCNN, using data enhancement transformation, difficult sample mining, and optimizing small target detection to process sample images, achieving a monitoring speed of 1s / picture, and having good robustness. Patent CN111598849A proposes a pathological image cell counting method, device and medium based on target detection. It uses two Faster RCNN models trained with different bockbones to perform cell counting detection on pathological images, and fuses the detection results to achieve accurate, fast and efficient pathological cell counting.
[0008] However, these methods are only based on grayscale or RGB images with cell spatial characteristics and are easily affected by various environmental factors, such as the optical conditions of the microscope, the thickness of the slide, etc. Hyperspectral imaging technology is a combination of traditional imaging technology and spectral technology, which can not only extract the spatial characteristics of the monitoring target, but also its spectral characteristics. In the medical field, it has been used for the identification and diagnosis of acute lymphoblastic leukemia, foodborne pathogens and cancer. Although hyperspectral imaging provides rich spectral information based on spatial characteristics, hundreds of narrow continuous bands make the data dimension redundant and require manual extraction of spectral values of the region of interest (ROI), which is extremely cumbersome in actual monitoring. Therefore, there is an urgent need for an automatic, fast and effective leukocyte detection method based on hyperspectral imaging.
[0009] The present invention replaces the original VGG16 feature extraction network of Faster RCNN with Resnet18. In addition to the simple stacking on the convolution layer, the cross arrangement of the two basic blocks of Conv Block and Identity Block inside the network enables it to avoid the loss of important features due to the mismatch between the number of convolution layers and the data, and its generalization is far better than VGG16. In addition to the replacement of the feature extraction network, the biggest innovation of the present invention that distinguishes it from the above-mentioned patents and studies is that it is independent of the original FasterRCNN network framework, and constructs a complete set of spectral feature extraction networks and feature fusion networks, and embeds them into FasterRCNN, realizing a new type of automatic white blood cell recognition and classification technology based on the joint detection of spatial and spectral features. Summary of the invention
[0010] In order to solve the above technical problems, the present invention provides a microscopic hyperspectral leukocyte detection method based on the improved Faster RCNN algorithm, which adds a detection network branch of spectral data to the traditional Faster RCNN network architecture to realize the joint detection of spatial features and spectral features of blood images, effectively improving the classification accuracy.
[0011] The technical solution of the present invention:
[0012] A microscopic hyperspectral leukocyte detection method based on improved Faster RCNN, the steps are as follows:
[0013] 1. Establish a white blood cell dataset: Use a microscopic hyperspectral system to collect pseudo-color images of blood smears (images synthesized by three bands of 667.4, 557.2 and 440.5) and spectral images, perform color correction on the pseudo-color images, select and label the five types of white blood cells, and perform black and white correction on the spectral images to create training and validation datasets;
[0014] 2. Construction of pseudo-color image feature extraction network: Resnet18, which can extract more effective features, is used as the feature extraction network of Faster RCNN;
[0015] 3. Build the RPN proposal network, which is responsible for automatically generating the initial target priori box, performing preliminary classification of the priori box, and then finally filtering the proposed box based on the priori box, and intercepting the corresponding features in the common feature layer;
[0016] 4. Construction of the proposed box coordinate return branch. A fully connected layer (Dense) is used to build the proposed box coordinate return network branch and decode it to obtain the coordinate value of the target feature block on the original image.
[0017] 5. Construction of spectral data extraction module: Use the four coordinate values obtained by the coordinate branch of the positioning frame at the end of the Faster RCNN detection network as the input of the spectral extraction module, intercept the full-band data of the corresponding area in the spectral image according to the coordinates, and then calculate the average spectral value to obtain the average spectral curve as the input of the spectral feature extraction network;
[0018] 6. Construction of spectral feature extraction network, additionally constructing a one-dimensional spectral data feature extraction network, and outputting a one-dimensional spectral feature;
[0019] 7. Construction of feature fusion network: The features extracted at the end of the spectral feature extraction network are fused with the feature layer based on cell pseudo-color image classification at the end of Faster RCNN;
[0020] 8. Construction of the cell classification layer: Use the fully connected layer and the softmax classification layer to operate on the one-dimensional fusion features obtained to obtain the final cell classification results;
[0021] Furthermore, in step (1), the hyperspectral camera cannot obtain a conventional RGB image due to the limitation of the band range, so it will extract the three bands of 667.4, 557.2 and 440.5 to represent the three channels of R, G and B to synthesize the RGB image, that is, the pseudo-color image. Gamma correction is used for color correction of pseudo-color images to reduce the influence of various environmental factors, such as the optical conditions of the microscope and the thickness of the glass slide, on the brightness of different batches of images. The black and white correction of the spectral image specifically refers to: collecting a pair of spectral images of an empty glass slide as a white reference image for correction, that is, setting the spectral reflectivity of the blank glass slide to the highest value; covering the lens cover of the spectral camera, turning off the light source, and collecting a spectral image in a pure black environment as a corrected black reference image, that is, setting the spectral reflectivity in the lightless environment to the minimum value. Afterwards, all the spectral image data are normalized based on the black and white correction data to obtain the corrected spectral image. Each white blood cell in the image field of view will be selected and classified based on the corresponding label. For each image, the final data set includes: a pseudo-color image; a spectral image; and an attribute file (containing the positioning frame coordinates and classification labels of the white blood cells contained in the image).
[0022] Furthermore, in step (2), the feature extraction network Resnet 18 of the pseudo-color image is specifically constructed with a small 3*3 convolution kernel. The two basic blocks of Conv Block and Identity Block in the network are arranged crosswise. The Conv Block is used to compress the image, and the Identity Block does not change the image size. The key point is that these two feature extraction modules will combine the extracted features with the original features, which not only ensures the extraction of important features, but also ensures that the original features will not be missed due to the deepening of the number of layers. The feature extraction network of the spectrum is constructed in the form of Conv1D+MaxPooling1D layer based on 1*3 convolution kernel.
[0023] Furthermore, in step (3), the common features obtained from the pseudo-color image after passing through the feature extraction network will have two application paths, one of which is to scan it through a 3*3 size convolution to obtain a deeper level of features, and then continue to be divided into two network branches, one of which is used to generate 9 prior frames for each point. The second is to generate the deviation value between each prior frame and the true annotation frame. After that, these two sets of features will be successively passed into the propasal and ROI Pooling layers for preliminary classification of the prior frames and screening of the final proposed frames. The second purpose of the common feature layer is to input it into the ROI Pooling layer, intercept the corresponding feature blocks according to the screened proposed frames, and unify the feature block size to obtain the final target features.
[0024] Furthermore, in step (4) and step (5), after the pseudo-color image is input into the Faster RCNN network and features are extracted by Resnet18, it will pass through the RPN network, which will determine which areas in the image are the main body of the cell and obtain feature blocks of varying sizes. After passing through the ROI Pooling layer, these feature blocks proposed by the network are converted to a uniform size. The subsequent Faster RCNN is divided into two branches, one is the return network for predicting the coordinates of the positioning frame, which is used to learn and return the four coordinates of the predicted cell positioning frame and the deviation value from the coordinates of the positioning frame marked in the attribute file, and the other is the classification network for the five categories of cells. The spectral data is stored in a raw image file. This file type arranges the reflectance values corresponding to all pixels in the spectral image in each band into a one-dimensional list. It is necessary to first rearrange it into a three-dimensional data block in the format of image length × height × number of bands. Then, the four coordinate values of the cell prediction coordinate frame obtained based on the pseudo-color image are used to extract the corresponding pixel points and their reflectance values in all bands. The average reflectance of all pixels in each band is calculated to obtain an average spectral curve as the input of the spectral feature network.
[0025] Furthermore, in step (6), the average spectral curve of each cell obtained by the spectral data extraction module is one-dimensional data, so the spectral feature extraction network is built using Conv1D. The network is built with the structure of Conv1D+MaxPooling, and the 350-dimensional spectral data is compressed. After obtaining the feature layer, a Flatten operation is performed to obtain a one-dimensional full feature layer, and then a fully connected Dense layer is connected, and then the layer is connected to the pseudo-color image feature layer in the cell classification branch at the end of Faster RCNN.
[0026] Furthermore, in step (7), before using the softmax layer for classification in the classification branch of Faster RCNN, the many feature blocks obtained by the RPN layer are flattened into a one-dimensional feature layer. The last layer of the spectral feature extraction network is also a one-dimensional feature layer. The two feature layers are concatenated with a weight of 1:1 to obtain a fusion feature layer containing spatial and spectral features.
[0027] Furthermore, in step (8), after obtaining the one-dimensional fusion feature layer, the features are passed to the fully connected layer and the softmax classification layer to achieve classification based on the fusion features.
[0028] Compared with the prior art, the present invention provides a microscopic hyperspectral leukocyte detection method based on improved Faster RCNN, especially innovating in feature fusion detection of multi-sensor data, and proposes a multi-category data feature fusion detection method - multi-feature fusion network Fusion-Net, which classifies cells based on spatial and spectral features at the same time, with a high accuracy rate. Due to the addition of spectral data, the generalization performance of the model is significantly improved, and blood cell data obtained from different batches and under different environmental conditions can be effectively classified. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 This is a principle block diagram of the present invention;
[0030] Figure 2 A is the image of type 1 (neutrophils) and type 5 (monocytes) cells collected by micro-hyperspectral imaging;
[0031] Figure 2 B is the image of type 1 (neutrophils) and type 3 (basophils) cells collected by micro-hyperspectral imaging;
[0032] Figure 2 C is the image of type 1 (neutrophil), type 3 (basophil), and type 4 (lymphocyte) cells collected by micro-hyperspectral imaging;
[0033] Figure 2 D is the image of type 1 (neutrophils) and type 2 (eosinophils) cells collected by micro-hyperspectral imaging;
[0034] Figure 3 Schematic diagram of the Resnet18 feature extraction network structure; (a) is Conv Block; (b) is IdentityBlock; (c) is Resnet 18;
[0035] Figure 4 Spectral feature extraction network;
[0036] Figure 5 This is a schematic diagram of the improved Faster RCNN network structure;
[0037] Figure 6 A is the detection and classification result of the traditional Faster RCNN for type 1 (neutrophils) and type 5 (monocytes);
[0038] Figure 6 B is the detection and classification results of the traditional Faster RCNN for type 1 (neutrophils) and type 3 (basophils);
[0039] Figure 6C is the detection and classification results of the traditional Faster RCNN for type 1 (neutrophils), type 3 (basophils), and type 4 (lymphocytes);
[0040] Figure 6 D is the detection and classification result of the traditional Faster RCNN for type 1 (neutrophils) and type 2 (eosinophils);
[0041] Figure 7 A is a diagram showing the detection and classification results of the improved Faster RCNN of the present invention for type 1 (neutrophils) and type 5 (monocytes);
[0042] Figure 7 B is a diagram showing the detection and classification results of the improved Faster RCNN of the present invention for type 1 (neutrophils) and type 3 (basophils);
[0043] Figure 7 C is a diagram showing the detection and classification results of the improved Faster RCNN of the present invention for type 1 (neutrophils), type 3 (basophils) and type 4 (lymphocytes);
[0044] Figure 7 D is a diagram showing the detection and classification results of the improved Faster RCNN for type 1 (neutrophils) and type 2 (eosinophils) cells. DETAILED DESCRIPTION
[0045] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings and technical solutions.
[0046] like Figure 1 As shown, a microscopic hyperspectral leukocyte detection method based on improved Faster RCNN has the following specific implementation steps:
[0047] S1. Establishing the white blood cell dataset:
[0048] The hyperspectral camera is mounted on a trinocular biological microscope. The wavelength band used by the hyperspectral camera in the present invention is the near-infrared short-wave light region between 382nm and 1020nm. First, the field of view containing white blood cells is found through the eyepiece, and the detection target in the field of view is made clearly visible through operations such as focusing, and then the hyperspectral camera is used to collect images and spectral information in the field of view.
[0049] Perform color correction on the pseudo-color images obtained after acquisition. Gamma correction is used to reduce the impact of various environmental factors, such as the optical conditions of the microscope and the thickness of the glass slide, on the brightness of different batches of images. The so-called gamma correction is to edit the gamma curve of the image, and use the method of nonlinear tone editing to detect the dark and light parts in the image signal, and increase the ratio of the two, thereby improving the image contrast effect.
[0050] The five types of white blood cells were framed and labeled. Each cell on each image was framed and labeled with a corresponding classification label using the labeling software, generating an attribute file containing the four coordinates of the positioning frame and the corresponding label. The principle of frame selection is to minimize the number of non-white blood cell background elements in the frame, and when two white blood cells overlap, minimize the content of non-cell elements in the frame.
[0051] Perform black and white correction on the spectral image. In order to reduce the influence of sample position difference and light source on the image, the original hyperspectral image is corrected to reflectance mode. Collect a pair of spectral images of an empty glass slide as the white reference image for correction, that is, the spectral reflectance of the blank slide is specified to be the highest value (reflectance is close to 100%); cover the lens cover of the spectral camera, turn off the light source, and collect a spectral image in a pure black environment as the corrected black reference image, that is, the spectral reflectance in the lightless environment is specified to be the minimum value (reflectance is close to 0%). After that, all the data of the spectral images are normalized based on the black and white correction data to obtain the corrected spectral image. The correction process is shown in the formula:
[0052] R=(IB) / (WB)×100%
[0053] Among them, I represents the original image; W represents the all-white calibration image; B represents the all-black calibration image; and R represents the corrected relative image.
[0054] For each image, the final data set includes: a pseudo-color image; a spectral image; and an attribute file (containing the positioning frame coordinates and classification labels of the white blood cells contained in the image). The images of the five types of white blood cells collected are as follows: Figure 2 shown.
[0055] S2. Pseudo-color image feature extraction network:
[0056] Resnet18 is used as the feature extraction network of Faster RCNN. Figure 3As shown in the figure, Resnet18 has two basic blocks, ConvBlock and Identity Block. The input and output dimensions of Conv Block are different, so they cannot be connected in series. Its function is to change the dimension of the network. The input and output dimensions of Identity Block are the same, so they can be connected in series to deepen the network. The pseudo-color image feature extraction network of the improved FasterRCNN only contains four image size compressions, and the content after the fifth compression is used after the ROI Pooling layer. The specific structure is as follows Figure 3 As shown in the Resnet18 block diagram, after the input image of 600*600*3 is sent to Resnet18, a feature block of size 38*38*256 is obtained.
[0057] S3.RPN Proposal Network:
[0058] like Figure 5 As shown in the improved Faster RCNN network structure diagram, the common features obtained by the pseudo-color image after passing through the feature extraction network will have two application paths. One is to scan it through a 3*3 size convolution to obtain a deeper feature, and then continue to be divided into two network branches. One is to use a 9-channel size 1*1 convolution for scanning, that is, the number of prior frames generated for each pixel in Faster RCNN is 9. The second is to use a 36-channel size 1*1 convolution for scanning, that is, each prior frame contains 4 coordinate changes, so each pixel will generate 9*4=36 channels. Both sets of features will be input into the proposal module of Faster RCNN, and the objects in each prior frame will be initially classified into two categories, that is, whether the object is contained, and then the target to be detected will be found in the prior frame determined to have an object. At this time, the feature sizes of each target extracted are different, and then the sizes of each prior frame will be unified in the ROIPooling layer to obtain the final proposal frame. At the same time, the common features extracted by the feature network are also input into the ROI Pooling layer, and 14*14 features are cropped from the common features according to the coordinates of the suggestion boxes after the unified size, and then the features of each suggestion box are compressed for the fifth time by the original Resnet 18 to obtain 7*7 features. At this point, the entire RPN network ends, and several feature blocks determined by the RPN network as detection targets are obtained.
[0059] S4~S5. Suggested frame coordinate return branch and spectral data extraction module:
[0060] After the RPN network obtains several 7*7 feature blocks, they will be flattened into one-dimensional data. Then there are two branches, one of which is the return branch of the proposed box coordinates, such as Figure 5 As shown in , this branch is constructed by a fully connected layer and is used to adjust the corresponding suggestion box. It contains 20 (number of categories × 4) neurons, that is, each cell contains 4 coordinate parameters regardless of which category it is classified into. Finally, after decoding the data of this layer on the original image, the coordinate values of the four vertices can be obtained. One of its uses is to draw the recognition box on the original image, and the other is to use the four coordinate values obtained by the suggestion box coordinate branch as the input of the spectrum extraction module. The spectral data extraction module is written in OpenCV and mainly includes three parts: reading and arranging the spectral data in the raw file; intercepting the corresponding data block according to the coordinate value of the suggestion box; averaging the intercepted spectral data in each band to obtain the average spectral data of the target in each suggestion box as the input of the spectral feature extraction network.
[0061] S6. Spectral feature extraction network:
[0062] The average spectral curve of each cell obtained by the spectral data extraction module is one-dimensional data, so Conv1D is used to build the spectral feature extraction network. The specific network structure is as follows Figure 4 The network is built with the structure of Conv1D+MaxPooling, which compresses the 350-dimensional spectral data. After obtaining the 1*173*64 feature layer, a Flatten operation is performed to obtain a 1*5568 full feature layer, and then a fully connected Dense layer is connected, which is then connected to the pseudo-color image feature layer in the cell classification branch at the end of FasterRCNN.
[0063] S7. Feature fusion network:
[0064] like Figure 5 As shown in the figure, in the classification branch of Faster RCNN, before using softmax for classification, the many features obtained by the RPN layer are flattened into a one-dimensional feature layer. The last layer of the spectral feature extraction network is also a one-dimensional feature layer. The two feature layers are spliced with a 1:1 weight to obtain a fusion feature layer including spatial and spectral features.
[0065] S8. Cell classification network:
[0066] After obtaining the one-dimensional fusion feature layer, the features are passed to the fully connected layer and the softmax classification layer to achieve classification based on the fusion features.
[0067] The above are all the steps of the present invention. During training, the data set will be randomly divided into a training set and a test set in a ratio of 7:3. At the same time, the traditional Faster RCNN network that extracts features with VGG16 and is trained only on pseudo-color images is used as the control group. The detection results are as follows Figure 6 As shown in the figure, for two white blood cells that are close to each other, confusion will occur in detection, and the two cells will be framed as one cell. In addition, due to the interference of a large number of red blood cells in the blood image, some white blood cells cannot be identified. In addition to the accuracy of recognition, the traditional Faster RCNN network classifies all the identified white blood cells into one category. This reflects that when the data set is small, the traditional Faster RCNN network performs poorly in recognition and classification accuracy. Figure 7 This is the detection result of the improved Faster RCNN network based on the joint detection of spatial and spectral features in the present invention. For the same test image, each white blood cell is accurately identified and located, which shows the advantage of Resnet18 in feature extraction, and each white blood cell is accurately divided into 5 categories. The reason is that the inter-class difference of white blood cells in the image is small, and when the data set is not large enough, the spectral feature has an obvious advantage in the inter-class distinction of white blood cells.
Claims
1. A microscopic hyperspectral leukocyte detection method based on improved Faster RCNN, characterized in that: Here are the steps: (1) Establishing a white blood cell dataset: Use a microscopic hyperspectral system to collect pseudo-color images and spectral images of blood smears, perform color correction on the pseudo-color images, select and label the five types of white blood cells, and perform black and white correction on the spectral images to create training datasets and validation datasets; The pseudo-color image is synthesized by images corresponding to three bands: 667.4, 557.2 and 440.5, the three bands correspond to the R, G and B channels of the image respectively, and the pseudo-color image is color corrected using Gamma; The black and white correction of the spectral image specifically refers to: collecting a pair of spectral images of a blank glass slide as a white reference image for correction, that is, setting the spectral reflectance of the blank glass slide to be the highest value; covering the lens cover of the spectral camera, turning off the light source, and collecting a spectral image in a pure black environment as a black reference image for correction, that is, setting the spectral reflectance in the dark environment to be the minimum value; After that, all the spectral image data are normalized based on the white reference image and the black reference image to obtain the corrected spectral image; each white blood cell in the image field will be selected and labeled based on the corresponding classification; For each image, the final dataset includes a pseudo-color image, a spectral image, and an attribute file containing the localization box coordinates and classification labels of the white blood cells contained in the image; (2) Construct a pseudo-color image feature extraction network: Resnet18 is used as the feature extraction network of Faster RCNN; Resnet 18 is built with a small 3*3 convolution kernel. The feature extraction modules inside the network are Conv Block and Identity Block, which are arranged crosswise. Conv Block is used to compress the image, and Identity Block does not change the image size. The two feature extraction modules combine the extracted features with the original features to obtain a common feature layer. The feature extraction network of spectral images is built in the form of Conv1D + MaxPooling1D layers based on 1*3 convolution kernels; (3) Construct an RPN proposal network, which is responsible for automatically generating the initial target priori box, performing preliminary classification of the target priori box, and subsequently screening the proposed box based on the target priori box, and extracting the corresponding features in the common feature layer; The common feature layer obtained after the pseudo-color image passes through the image feature extraction network has two applications. The first use of the common feature layer is to pass it through a 3*3 size convolution, and then continue to be divided into two network branches, one is used to generate 9 prior boxes for each point; the second is to generate the deviation value between each prior box and the real annotation box; then these two sets of features are successively passed to the propasal and ROI Pooling layers for preliminary classification of the prior boxes and screening of the final proposal boxes; the second use of the common feature layer is to input it into the ROI Pooling layer, intercept the corresponding feature blocks according to the screened proposal boxes, and unify the feature block size to obtain the final target features; (4) Constructing the proposed box coordinate return network branch: Use a fully connected layer to build the proposed box coordinate return network branch and decode it to obtain the coordinate value of the target feature block on the original image; (5) Construct a spectral data extraction module: intercept the corresponding spectral data according to the coordinate values obtained by returning the coordinates of the proposed box to the network branch; perform average calculation on the intercepted spectral data in each band to obtain the average spectral data of the target in each proposed box as the input of the spectral feature extraction network; After the pseudo-color image is input into the Faster RCNN network and features are extracted by Resnet 18, it passes through the RPN network. The RPN network determines which areas in the image are the main body of the cell and obtains feature blocks of varying sizes. After the ROI Pooling layer, the feature blocks proposed by the network are converted to a uniform size. The subsequent Faster RCNN is divided into two branches. One is the return network for predicting the coordinates of the positioning frame, which is used to learn and return the four coordinates of the predicted cell positioning frame and the deviation value of the coordinates of the positioning frame marked in the attribute file. The other is the classification network for the five classifications of cells. The spectral data is stored in a raw type image file. This file type arranges the reflectance values corresponding to all pixels in the spectral image in each band into a one-dimensional list. It is necessary to first rearrange it into a three-dimensional data block in the format of length × height × number of bands of the image. Then, the four coordinate values of the cell prediction coordinate frame obtained based on the pseudo-color image are used to intercept the corresponding pixel points and their reflectance values in all bands. The average reflectance of all pixels is calculated in each band to obtain an average spectral curve as the input of the spectral feature network. (6) Constructing a spectral feature extraction network: additionally constructing a one-dimensional spectral data feature extraction network, and outputting a one-dimensional spectral feature; The average spectral curve of each cell obtained by the spectral data extraction module is one-dimensional data, so Conv1D is used to build the spectral feature extraction network; the network is built with the structure of Conv1D + Max Pooling, which compresses the 350-dimensional spectral data. After obtaining the feature layer, a Flatten operation is performed to obtain a one-dimensional full feature layer, which is then connected to a fully connected Dense layer, and then connected to the pseudo-color image feature layer in the cell classification branch at the end of Faster RCNN; (7) Construction of feature fusion network: The features extracted at the end of the spectral feature extraction network are fused with the feature layer based on cell pseudo-color image classification at the end of Faster RCNN, and then connected to the overall classification network to achieve the purpose of classification based on the fusion features of cell image space and spectrum; In the classification branch of Faster RCNN, before using the softmax layer for classification, the feature blocks obtained by the RPN layer are flattened into a one-dimensional feature layer. The last layer of the spectral feature extraction network is also a one-dimensional feature layer. The two feature layers are concatenated with a 1:1 weight to obtain a fused feature layer containing spatial and spectral features, which is then connected to the softmax classification layer to achieve classification based on fused features.
Citation Information
Patent Citations
A method for detecting leukocytes in bone marrow slices based on a regional recommendation convolutional neural network
CN109598224A
Method for performing class addition learning on microscope cell image detection model by using incremental learning
CN110059672A
Pathological image cell nucleus detection method based on improved Faster RCNN algorithm
CN110580699A
Pathological image cell counting method and device based on target detection and medium
CN111598849A
Hyperspectral spatial-spectral joint feature extraction method based on transfer learning
CN112580670A
