A cell detection method, device and equipment for glomerular pathological section images

The neural network model is used to identify cells in glomerular pathological slice images, which solves the problem of inaccurate manual estimation, achieves accurate detection of the number of cells in glomerular pathological slice images, and improves the treatment effect.

CN110490840BActive Publication Date: 2024-09-24PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910624969.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-11
Publication Date
2024-09-24
Estimated Expiration
2039-07-11

AI Technical Summary

Technical Problem

The existing technology's manual estimation of the number of intrinsic cells in glomerular pathological slice images is not accurate enough, which affects the therapeutic effect.

Method used

A preset neural network model is used to identify and detect glomerular pathological slice images. The trained model outputs probability maps of mesangial cells, endothelial cells and podocytes, and their numbers are calculated.

Benefits of technology

It achieves accurate detection of the number of cells in glomerular pathological slice images, helps determine the cause and condition, develops more accurate treatment plans, and improves treatment effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110490840B
    Figure CN110490840B
Patent Text Reader

Abstract

The present application belongs to the field of biometrics, and discloses a cell detection method, device and equipment for glomerular pathological slice images, wherein the method comprises: obtaining a glomerular pathological slice image to be detected; inputting the glomerular pathological slice image to be detected into a preset neural network model for identification and detection, wherein the preset neural network model is obtained by training the neural network with a predetermined number of glomerular pathological slice images for identifying and marking mesangial cells, endothelial cells and podocytes; outputting the probability map of mesangial cells, endothelial cells and podocytes in the glomerular pathological slice image to be detected from the three output channels of the preset neural network model respectively; calculating the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological slice image to be detected according to the probability map of mesangial cells, endothelial cells and podocytes. Determine the cause and condition of the patient according to the number of mesangial cells, endothelial cells and podocytes, and accurately formulate a treatment plan.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of biometric identification technology, and in particular to a method, device and equipment for detecting cells in glomerular pathological slice images. Background Art

[0002] The glomerulus is a group of capillaries in the kidney unit that is used to filter blood to produce primary urine. After being filtered by three intrinsic cells, endothelial cells, mesangial cells, and podocytes, the blood will enter the inner cavity of the Bowman's capsule. Therefore, the quality of the structural function of the glomerular intrinsic cells is directly related to the filtration function of the glomerulus. Different causes can lead to damage to different intrinsic cells, which manifests clinically as different types of glomerular diseases. Among them, the typical clinical manifestation of podocyte damage is a large amount of proteinuria. Endothelial cell damage can significantly affect the progression and repair of glomerular diseases. In severe cases, sclerosis will replace the damaged area of ​​endothelial cells. Damage to mesangial cells can promote the occurrence of glomerular sclerosis. Therefore, how to quantitatively count the number of intrinsic cells inside the glomerulus has very important application significance in clinical practice.

[0003] Currently, the number of intrinsic cells inside the glomerulus in the glomerular pathological slice images is roughly estimated manually, but the obtained cell number is not accurate enough, which affects the treatment effect. Summary of the invention

[0004] In view of this, the present application provides a method, device and apparatus for detecting cells in glomerular pathological slice images. The main purpose is to solve the technical problem that the number of intrinsic cells in the glomerulus in the glomerular pathological slice images is roughly estimated manually, and the number of cells obtained is not accurate enough, which affects the treatment effect.

[0005] According to the first aspect of the present application, a method for detecting cells in a glomerular pathological section image is provided, the method comprising:

[0006] Acquire the glomerular pathological section image to be detected;

[0007] Inputting the glomerular pathological slice image to be detected into a preset neural network model for identification and detection, wherein the preset neural network model is obtained by training the neural network with a predetermined number of glomerular pathological slice images for identification and labeling of mesangial cells, endothelial cells and podocytes;

[0008] Outputting probability maps of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected respectively from three output channels of the preset neural network model;

[0009] The number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected is calculated according to the probability map of mesangial cells, endothelial cells and podocytes.

[0010] According to a second aspect of the present application, a cell detection device for glomerular pathological slice images is provided, the device comprising:

[0011] An acquisition module, used for acquiring the glomerular pathological slice image to be detected;

[0012] A detection module, used for inputting the glomerular pathological slice image to be detected into a preset neural network model for identification and detection, wherein the preset neural network model is obtained by training the neural network with a predetermined number of glomerular pathological slice images for identification and labeling of mesangial cells, endothelial cells and podocytes;

[0013] An output module, used to output probability maps of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected from the three output channels of the preset neural network model respectively;

[0014] A calculation module is used to calculate the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected according to the probability map of mesangial cells, endothelial cells and podocytes.

[0015] According to the third aspect of the present application, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the cell detection method for glomerular pathological section images described in the first aspect are implemented.

[0016] According to a fourth aspect of the present application, a computer storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the step of cell detection of the glomerular pathological section image described in the first aspect is implemented.

[0017] By means of the above technical scheme, the present application provides a method, device and equipment for cell detection of glomerular pathological slice images, which can use a preset neural network model to detect the glomerular pathological slice images to be detected, and determine the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological slice images to be detected. In this way, there is no need for manual estimation. The cause and condition of the patient's disease can be better determined based on the number of mesangial cells, endothelial cells and podocytes, and a treatment plan can be formulated more accurately, so that the patient's kidneys can recover as soon as possible, and it is simple and fast to use.

[0018] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0020] Figure 1 A flowchart of an embodiment of a method for detecting cells in a glomerular pathological section image of the present application;

[0021] Figure 2 This is the architecture diagram of the U-net neural network of this application;

[0022] Figure 3 A structural block diagram of an embodiment of a cell detection device for glomerular pathological slice images of the present application;

[0023] Figure 4 A schematic diagram of the structure of the computer device of the present application. DETAILED DESCRIPTION

[0024] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0025] The embodiment of the present application provides a method for cell detection of glomerular pathological slice images, which can use a preset neural network model obtained through learning and training to automatically detect glomerular pathological slice images, detect the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological slice images, and the doctor judges the patient's condition based on the detection results. The operation is simple and convenient.

[0026] like Figure 1 As shown, the embodiment of the present application provides a method for detecting cells in a glomerular pathological section image, comprising the following steps:

[0027] Step 101: Acquire a glomerular pathological slice image to be detected.

[0028] In this step, the patient's glomerular pathology slice image to be detected can be obtained by ultrasonic examination, X-ray or nuclear magnetic resonance. The glomerular pathology slice image to be detected can be a color photo or a black and white photo or an X-ray.

[0029] Step 102, inputting the glomerular pathological slice image to be detected into a preset neural network model for identification and detection, wherein the preset neural network model is a neural network trained with a predetermined number of glomerular pathological slice images for identifying and labeling mesangial cells, endothelial cells and podocytes.

[0030] In this step, the glomerular pathological slice image to be detected is first subjected to elastic deformation, and / or color transformation, and / or random flipping, and / or size transformation processing and then input into a preset neural network model for detection.

[0031] Among them, the elastic deformation is obtained by taking a certain pixel point in the glomerular pathological slice image to be detected as the center and performing displacement, rotation and other transformations on other pixel points;

[0032] Color conversion refers to converting the glomerular pathological slice image to be detected represented by the red, green and blue system into the glomerular pathological slice image to be detected represented by the transparency, color and saturation system;

[0033] Random flipping refers to flipping the glomerular pathological slice image to be detected at any angle (for example, 10°, 45°, etc.);

[0034] Size conversion refers to operations such as enlarging, reducing or cropping the glomerular pathological slice image to be detected.

[0035] Step 103: output the probability maps of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected from the three output channels of the preset neural network model respectively.

[0036] In this step, the detection results output from the three output channels of the preset neural network model are images that are consistent in size with the glomerular pathological section image to be detected, and the image includes the probability that each pixel belongs to the cell corresponding to the channel that outputs the image. For example, in the image output by the channel for outputting mesangial cell detection results, the probability that each pixel belongs to a mesangial cell is included.

[0037] Step 104 , calculating the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected according to the probability map of mesangial cells, endothelial cells and podocytes.

[0038] In this step, the number of mesangial cells can be calculated by multiplying the probability of mesangial cells represented in the mesangial cell probability map by the total number of cells in the glomerular pathological section image to be detected; the number of endothelial cells can be calculated by multiplying the probability of endothelial cells represented in the endothelial cell probability map by the total number of cells in the glomerular pathological section image to be detected; the number of podocytes can be calculated by multiplying the probability of podocytes represented in the podocyte probability map by the total number of cells in the glomerular pathological section image to be detected.

[0039] Through the above technical scheme, the preset neural network model can be used to detect the glomerular pathological section image to be detected, and the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected can be determined. This eliminates the need for manual estimation. The cause and condition of the patient's disease can be better determined based on the number of mesangial cells, endothelial cells and podocytes, and a treatment plan can be formulated more accurately, so that the patient's kidneys can recover as soon as possible. It is simple and fast to use.

[0040] In a specific embodiment, before step 102, the method further includes:

[0041] Step 1021, obtaining a predetermined number of glomerular pathological slice images as a training set.

[0042] In this step, the glomerular pathology slice images in the training set are all collected glomerular pathology slice images of various confirmed patients and healthy people, wherein the predetermined number can be 500, 100, etc., which can be selected according to the learning and training needs of the neural network. The larger the predetermined number, the higher the accuracy of the preset neural network model obtained by training.

[0043] Step 1022 , respectively label the mesangial cells, endothelial cells and podocytes in each glomerular pathological slice image in the training set.

[0044] In this step, the contours of mesangial cells, endothelial cells and podocytes in each glomerular pathological slice image are divided, the glomerular pathological slice image is divided into several regions, and the attributes of each region are labeled, which may be mesangial cells, endothelial cells or podocytes.

[0045] Step 1023, performing elastic deformation, and / or color transformation, and / or random flipping, and / or size transformation processing on the annotated glomerular pathological slice image.

[0046] Among them, the elastic deformation is obtained by taking a certain pixel point in the glomerular pathological slice image as the center and performing displacement, rotation and other transformations on other pixel points;

[0047] Color conversion refers to converting the glomerular pathology slice image represented by the red, green, and blue system into the glomerular pathology slice image represented by the transparency, color, and saturation system;

[0048] Random flipping refers to flipping the glomerular pathological slice image at any angle (e.g., 10°, 45°, etc.);

[0049] The size transformation refers to operations such as enlarging, reducing or cropping the glomerular pathological slice image.

[0050] Step 1024, input the processed glomerular pathological slice image into the U-net neural network for learning and training to obtain a preset neural network model.

[0051] In this step, the processed glomerular pathology slice image is input from the input port of the U-net neural network, and then the U-net neural network performs learning and training processing on the processed glomerular pathology slice image, forms a standardized transfer neuron in the U-net neural network, and forms three output channels to output the probability map of mesangial cells, endothelial cells and podocytes corresponding to the glomerular pathology slice image.

[0052] Through the above technical solution, the U-net neural network is used to learn and train the glomerular pathological section images in the training set, and a preset neural network model for accurately detecting the glomerular pathological section images is obtained.

[0053] In addition, a certain number b of glomerular pathological section images are collected as a detection set, and the probability maps of mesangial cells, endothelial cells and podocytes in each glomerular pathological section image in the detection set are associated.

[0054] The preset neural network model is tested to determine whether the probability map of mesangial cells, endothelial cells and podocytes output by the preset neural network model is the same as the probability map associated with the glomerular pathological section image in the test set, and the number of identical probability maps is counted as a, and the accuracy of the preset neural network model is calculated as (a / b)×100%. If the output accuracy is less than a set threshold (for example, 95%), a predetermined number of training sets are reselected to continue training the obtained preset neural network model. If the output accuracy is greater than or equal to the set threshold, the preset neural network model is used as the final preset neural network model.

[0055] In a specific embodiment, the U-net neural network includes a U-net module, a feature pyramid network, and a variational autoencoder.

[0056] Step 1023 specifically includes:

[0057] Step 10231, input the processed glomerular pathological slice image into the U-net module of the U-net neural network to extract the feature image.

[0058] Step 10232, input the feature image into the feature pyramid network of the U-net neural network for segmentation processing to output the segmentation result probability map of the glomerular edge, mesangial cells, endothelial cells, and podocytes.

[0059] Step 10233, input the feature image into the variational autoencoder for image reconstruction, and calculate the loss function based on the difference between the reconstructed image and the original glomerular pathological slice image, and adjust the U-net neural network based on the loss function to complete the learning and training of the glomerular pathological slice image.

[0060] Step 10234, repeat the learning and training process until all the glomerular pathological section images in the training set are fully learned and trained, and remove the variational autoencoder in the trained U-net neural network to obtain a preset neural network model.

[0061] In the above technical scheme, a U-net module, a feature pyramid network and a variational autoencoder are constructed in advance for the U-net neural network, and then the U-net neural network is trained using the training set through the above scheme. The preset neural network obtained in this way can better detect and identify glomerular pathological section images, and the detection accuracy is greatly improved.

[0062] In the process of using the preset neural network model for detection, the variational autoencoder branch can be removed. The variational autoencoder branch is only used in the training process and has no effect on the segmentation result of the glomerular pathological section image during the detection process.

[0063] In a specific embodiment, step 10231 specifically includes:

[0064] Step 102311, the processed glomerular pathological slice image is input into the encoder of the U-net module, and after convolution processing by the first layer of the encoder, a ResBlock and a downsampling process are performed to generate the first layer output feature map of the encoder.

[0065] Step 102312, input the first layer output feature map of the encoder into the second layer of the encoder, and generate the second layer output feature map of the encoder after two ResBlocks and one downsampling process.

[0066] Step 102313, input the encoder second layer output feature map into the encoder third layer, and generate the encoder third layer output feature map after two ResBlocks and one downsampling process.

[0067] Step 102314, input the encoder third layer output feature map into the encoder fourth layer, and generate the encoder fourth layer output feature map after being processed by four ResBlocks.

[0068] Step 102315, input the fourth layer output feature map of the encoder into the third layer of the decoder, after one upsampling process, and spliced ​​with the third layer output feature map of the encoder through a jump connection to form the third layer feature map output of the decoder.

[0069] Step 102316, the third layer feature map of the decoder is input into the second layer of the decoder, and after an upsampling process, it is concatenated with the second layer output feature map of the encoder through a jump connection to form the second layer feature map output of the decoder.

[0070] Step 102317, input the second layer feature map of the decoder into the first layer of the decoder, after one upsampling process, and spliced ​​with the first layer output feature map of the encoder through a jump connection, to form the first layer feature map output of the decoder.

[0071] Through the above scheme, the encoder of the U-net module is used to extract cell feature images from the glomerular pathology slice image, including: color, morphology, size, position, texture, etc. The encoder can extract the global information of the entire image with lower resolution through layer-by-layer convolution, downsampling and other operations, thereby providing the contextual information of the cells in the entire glomerular pathology slice image, which can be understood as the characteristics of the dependency relationship between cells and the surrounding environment. These features are helpful for cell classification. The jump connection on the same level of the encoder and decoder can fuse the fine position information of the encoder and the rich semantic information of the decoder, thereby extracting more expressive features for the segmentation task.

[0072] In a specific embodiment, step 10232 specifically includes:

[0073] Step 102321, input the fourth layer output feature map of the encoder to the fourth layer of the feature pyramid network, perform convolution on the fourth layer output feature map of the encoder to reduce the dimension, and then perform upsampling to output the fourth layer feature image of the pyramid.

[0074] Step 102322, input the decoder's third-layer output feature map to the third layer of the feature pyramid network, perform convolution on the encoder's third-layer output feature map to reduce the dimension, and then superimpose it with the pyramid's fourth-layer feature image to output the pyramid's third-layer feature image.

[0075] Step 102323, input the decoder second layer output feature map to the second layer of the feature pyramid network, perform convolution on the encoder second layer output feature map to reduce the dimension, and then superimpose it with the pyramid third layer feature image to output the pyramid second layer feature image.

[0076] Step 102324, input the decoder's first-layer output feature map to the first layer of the feature pyramid network, perform convolution on the encoder's first-layer output feature map to reduce the dimension, and then superimpose it with the pyramid's second-layer feature image to output the pyramid's first-layer feature image.

[0077] Step 102325, after performing 3*3 convolution processing on the first layer feature image of the pyramid, 1*1 convolution and Sigmoid (S-type growth curve function) operation processing are performed to generate the segmentation result probability map of the glomerular edge, mesangial cells, endothelial cells, and podocytes.

[0078] Through the above scheme, the feature images of different levels of the decoder can be fused using the four-layer structure of the feature pyramid network, so that the feature pyramid network has good detection and segmentation capabilities for glomerular pathological section images at different scales, and then quickly and accurately obtains the segmentation result probability map of the glomerular edge, mesangial cells, endothelial cells, and podocytes.

[0079] In a specific embodiment, step 10233 specifically includes:

[0080] Step 102331, input the feature map output by the fourth layer of the encoder into the variational autoencoder, and generate N groups of means and variances after downsampling, downconvolution and full connection processing.

[0081] In step 102332, the N groups of means and variances are sampled, fully connected, reshaped, and up-convolved, and then resblocked and up-sampled to form a reconstructed image.

[0082] Step 102333 calculates the loss function according to the difference between the reconstructed image and the original glomerular pathological slice image, and adjusts the U-net neural network according to the loss function to complete the learning and training of the glomerular pathological slice image.

[0083] Through the above scheme, the image can be reconstructed according to the features extracted by the U-Net encoder, and more guidance and constraints can be added to the network training process, so that the U-Net encoder can learn more generalized and more expressive features.

[0084] In a specific embodiment, step 104 specifically includes:

[0085] Step 1041 , determining the foreground / background binary images of mesangial cells, endothelial cells and podocytes according to the probability images of mesangial cells, endothelial cells and podocytes.

[0086] In this step, the probability map includes the probability of each pixel being a mesangial cell, an endothelial cell, and a podocyte. When the probability is greater than the preset threshold, the pixel corresponding to the probability is determined to be the foreground; otherwise, the pixel is determined to be the background. In this way, a foreground / background binary map of mesangial cells, endothelial cells, and podocytes can be generated.

[0087] Step 1042, extracting the contours of mesangial cells, endothelial cells, and podocytes in the foreground / background binary image.

[0088] Step 1043 , counting the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological slice image to be detected according to the number of extracted contours of mesangial cells, endothelial cells and podocytes respectively.

[0089] Through the above scheme, the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be tested can be determined according to the obtained probability map, so that the doctor can judge the patient's condition and formulate a treatment plan based on the results.

[0090] Through the cell detection method of the glomerular pathological section image of the above embodiment, the preset neural network model can be used to detect the glomerular pathological section image to be detected, and the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected can be determined. In this way, there is no need for manual estimation. The cause and condition of the patient's disease can be better determined based on the number of mesangial cells, endothelial cells and podocytes, and a treatment plan can be formulated more accurately, so that the patient's kidneys can recover as soon as possible. It is simple and fast to use.

[0091] In another embodiment of the present application, a method for detecting cells in a glomerular pathological section image includes the following steps:

[0092] 1. Extracting a glomerular pathological section image to be detected from a kidney tissue section pathological image, wherein stained mesangial cells, endothelial cells and podocytes can be seen in the glomerular pathological section image.

[0093] The glomerular region in the kidney tissue slice pathological image can be cut out according to the contour of the glomerulus to obtain an initial glomerular pathological slice image.

[0094] 2. Build a preset neural network model

[0095] The data used to construct the preset neural network model are labeled, that is, the mesangial cells, endothelial cells and podocytes are labeled in each glomerular pathological slice image as a training set, and the glomerular pathological slice images are subjected to data enhancement methods such as elastic deformation, color transformation, random flipping and size transformation, so as to improve the generalization performance of the neural network training.

[0096] The U-net neural network was trained using the data-enhanced training set. The input of the U-net neural network was the glomerular pathological section image, and the output was the mesangial cell recognition result map, the endothelial cell recognition result map, and the podocyte recognition result map. The mesangial cell recognition result map showed the probability that each pixel point belonged to the mesangial cell, the endothelial cell recognition result map showed the probability that each pixel point belonged to the endothelial cell, and the podocyte recognition result map showed the probability that each pixel point belonged to the podocyte.

[0097] After all the Shenxiaoniu pathological section images in the training set are trained, the preset neural network model is obtained.

[0098] 3. Detect mesangial cells, endothelial cells and podocytes in glomerular pathological slice images through the preset neural network model.

[0099] The preset neural network model is an optimized U-Net neural network model, which mainly includes: U-Net module, Feature Pyramid Networks for Object Detection (FPN) and Variational AutoEncoder (VAE). The model architecture is as follows: Figure 2 shown.

[0100] Among them, the U-Net module consists of an encoder and a decoder. The input of the encoder is the glomerular pathological section image. The encoder outputs the 256*64*64 feature map output by the fourth layer to the decoder, variational autoencoder and feature pyramid, and outputs the feature maps output by the first, second and third layers to the first, second and third layers of the decoder respectively.

[0101] The encoder is used to extract cell feature information: color, morphology, size, position, texture, etc. It consists of 4 layers, each of which contains several ResBlocks and downsampling operations. The encoder input image in the neural network is a 3*512*512 RGB color image. The first layer first generates a 32*512*512 feature map through a 3x3 initialization convolution operation, and then generates a 64*256*256 feature map through 1 ResBlock and 1 downsampling. The second layer generates 1 The feature map is 28*128*128 in size. The third layer generates a feature map of 256*64*64 in size through 2 ResBlocks and 1 downsampling. The fourth layer generates the decoder's final feature map of 256*64*64 in size through 4 ResBlocks. Therefore, the encoder can extract the global information of the entire image with a lower resolution through layer-by-layer convolution, downsampling and other operations, thereby providing the contextual information of the cells in the entire image, which can be understood as the characteristics of the dependency relationship between cells and the surrounding environment. These features are helpful for cell classification.

[0102] The decoder consists of 3 levels, where the first, second, and third levels output feature maps to the first, second, and third levels of the feature pyramid, respectively.

[0103] The third layer first upsamples the 256*64*64 feature map of the fourth layer of the encoder to generate a 128*128*128 feature map, then concatenates it with the feature map of the same size of the third layer of the encoder through a jump connection, and finally generates a 256*128*128 feature map after 1 ResBlock. Similarly, the sizes of the corresponding feature maps of the second and first layers of the decoder are 128*256*256 and 64*512*512 respectively. The jump connection on the same level of the encoder and decoder can fuse the fine position information of the encoder with the rich semantic information of the decoder, thereby extracting more expressive features for the segmentation task.

[0104] The feature pyramid network FPN consists of 4 levels. The inputs of the first, second and third layers are the outputs of the first, second and third layers of the decoder respectively. The input of the fourth layer is the output of the fourth layer of the encoder. The fourth layer reduces the dimension of the encoder's third-level feature 256*64*64 to 64*64*64 through a 1x1 convolution operation, and then generates a 64*128*128 size feature map through an upsampling operation. The third layer first reduces the decoder's third-level feature 256*128*128 to 64*128*128, and then adds it to the feature map uploaded from the bottom to the fourth layer. Similarly, the corresponding feature map sizes of the second and first layers of FPN are 64*256*256 and 64*512*512, respectively. In this way, the features of different levels of the decoder can be fused, so that the network has good detection and segmentation capabilities for targets at different scales. Since the shape and size of glomerular cells vary greatly, FPN is particularly suitable for the task of cell segmentation in this paper.

[0105] After the 64*512*512 feature map of the first level of FPN, a 3*3 convolution operation is used to convolve the fusion result to eliminate the aliasing effect of upsampling. Then, a 1*1 convolution and Sigmoid operation are used to generate the final 4-channel segmentation result, which corresponds to the segmentation result probability maps of glomerular edge, mesangial cells, endothelial cells, and podocytes respectively.

[0106] The variational autoencoder is applied to the end of the U-Net encoder, and its input is the above encoder. Its output can be used in the loss function to reconstruct the image based on the features extracted by the U-Net encoder, adding more guidance and constraints to the network training process, so that the U-Net encoder can learn more generalized and more expressive features. This branch first generates 256 sets of means and variances through downsampling, downconvolution (convolution kernel size 16, step size 2), full connection and other operations, and then generates a 512*32*32 feature map based on these 256 sets of means and variances through sampling, full connection, Reshape, upconvolution (convolution kernel size 16, step size 2) and other operations, and then reconstructs the original image through a series of different levels of ResBlock, upsampling and other operations. This branch is only used in the process of training the neural network, and has no effect on the segmentation result in the actual detection process. Therefore, in the actual detection process, the variational autoencoder branch can be removed.

[0107] 4. The U-net neural network training process includes three loss functions. The loss function used by the decoder and FPN (feature pyramid network) branch in the U-Net module is the Dice function L DICE, which is used to measure the gap between the segmentation result and the gold standard. The loss function of the variational autoencoder part includes two parts. One is to calculate the mean square error between the reconstructed image and the input image, that is, to measure the pixel error L between the original image and the reconstructed image. MSE , and the second is the KL divergence loss function, which is used to measure the difference between the distribution of latent variables inside the variational autoencoder and the unit Gaussian distribution L KL The formula is as follows:

[0108]

[0109] p true is the correct probability of each cell in the image, p pred is the probability of each cell output by the preset neural network model, and δ is the gold standard.

[0110] L MSE =(I input -I recon ) 2

[0111] I input is the input pixel, I recon To reconstruct pixels.

[0112]

[0113] The location parameter of the image is μ and the scale parameter is σ.

[0114] 5. Detect mesangial cells, endothelial cells and podocytes in the glomerular pathological section image by using a preset neural network model, wherein the preset neural network model is trained based on the glomerular pathological section images in a training set, and the glomerular pathological section images in the training set are labeled with mesangial cells, endothelial cells and podocytes in the glomerulus.

[0115] 6. Obtain the detection results of mesangial cells, endothelial cells and podocytes output by each channel of the preset neural network model;

[0116] Among them, the preset neural network model may include three output channels, which are used to output the detection results of mesangial cells, endothelial cells and podocytes respectively. The detection result can be an image with the same size as the glomerular pathological section image to be detected, and the image includes the probability that each pixel point belongs to the cell corresponding to the channel that outputs the image. For example, in the image output by the channel used to output the mesangial cell detection result, the probability of each pixel point belonging to the mesangial cell is included.

[0117] 7. Determine the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section to be detected according to the detection results of mesangial cells, endothelial cells and podocytes output by each channel.

[0118] Based on the probability maps of mesangial cells, endothelial cells and podocytes output by each output channel of the preset neural network model, each of the probability maps includes the probability of each pixel being a mesangial cell, an endothelial cell and a podocyte, and then a foreground-background binary map of mesangial cells, endothelial cells and podocytes is generated according to a preset threshold. When the probability is greater than the preset threshold, the pixel corresponding to the probability is determined to be the foreground, otherwise, the pixel is determined to be the background.

[0119] Based on the foreground and background binary images of mesangial cells, endothelial cells and podocytes, the contours of mesangial cells, endothelial cells and podocytes were extracted through image post-processing; the number of mesangial cells, endothelial cells and podocytes in glomerular pathological sections was counted according to the number of extracted contours of mesangial cells, endothelial cells and podocytes.

[0120] It can accurately locate and count the three intrinsic cells inside the glomerulus, namely podocytes, mesangial cells and endothelial cells, providing a reliable auxiliary diagnostic tool for pathology clinicians; the test speed is fast and the detection accuracy is high. It only takes 0.2s to process a 800*800 glomerulus, and the cell counting error is maintained at around ±8.

[0121] Further, as Figure 1 The specific implementation of the method, the embodiment of the present application provides a cell detection device for glomerular pathological slice images, such as Figure 3 As shown, the device includes: an acquisition module 31, a detection module 32, an output module 33 and a calculation module 34 which are connected in sequence.

[0122] An acquisition module 31 is used to acquire a glomerular pathological slice image to be detected;

[0123] The detection module 32 is used to input the glomerular pathological slice image to be detected into a preset neural network model for identification and detection, wherein the preset neural network model is obtained by training the neural network with a predetermined number of glomerular pathological slice images for identification and labeling of mesangial cells, endothelial cells and podocytes;

[0124] An output module 33, used to output probability maps of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected from three output channels of the preset neural network model;

[0125] The calculation module 34 is used to calculate the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected according to the probability map of mesangial cells, endothelial cells and podocytes.

[0126] In a specific embodiment, the acquisition module 31 is further used to acquire a predetermined number of glomerular pathological slice images as a training set;

[0127] The device also includes: a labeling module for labeling mesangial cells, endothelial cells and podocytes in each glomerular pathological section image in the training set;

[0128] A processing module, used for performing elastic deformation, and / or color transformation, and / or random flipping, and / or size transformation processing on the annotated glomerular pathological slice image;

[0129] The training module is used to input the processed glomerular pathological slice images into the U-net neural network for learning and training to obtain a preset neural network model.

[0130] In a specific embodiment, the U-net neural network includes a U-net module, a feature pyramid network, and a variational autoencoder;

[0131] The training modules include:

[0132] An extraction unit, used for inputting the processed glomerular pathological slice image into a U-net module of a U-net neural network to extract a feature image;

[0133] A segmentation unit is used to input the feature image into the feature pyramid network of the U-net neural network for segmentation processing and output the segmentation result probability map of the glomerular edge, mesangial cells, endothelial cells, and podocytes;

[0134] A reconstruction unit is used to input the feature image into the variational autoencoder for image reconstruction, calculate the loss function according to the difference between the reconstructed image and the original glomerular pathological slice image, and adjust the U-net neural network according to the loss function to complete the learning and training of the glomerular pathological slice image;

[0135] The repeating unit is used to repeat the learning and training process until all the glomerular pathological section images in the training set are fully learned and trained, and the variational autoencoder in the trained U-net neural network is removed to obtain a preset neural network model.

[0136] In a specific embodiment, the extraction unit is specifically used for:

[0137] The processed glomerular pathological slice image is input into the encoder of the U-net module, and after convolution processing in the first layer of the encoder, a ResBlock and a downsampling process are performed to generate the first layer output feature map of the encoder;

[0138] The output feature map of the first layer of the encoder is input into the second layer of the encoder, and after two ResBlocks and one downsampling process, the output feature map of the second layer of the encoder is generated;

[0139] The output feature map of the second layer of the encoder is input into the third layer of the encoder, and after two ResBlocks and one downsampling process, the output feature map of the third layer of the encoder is generated;

[0140] The output feature map of the third layer of the encoder is input into the fourth layer of the encoder, and after being processed by four ResBlocks, the output feature map of the fourth layer of the encoder is generated;

[0141] The fourth-layer output feature map of the encoder is input into the third layer of the decoder, and after one upsampling process, it is concatenated with the third-layer output feature map of the encoder through a skip connection to form the third-layer feature map output of the decoder;

[0142] The third-layer feature map of the decoder is input into the second layer of the decoder, and after an upsampling process, it is concatenated with the second-layer output feature map of the encoder through a skip connection to form the second-layer feature map output of the decoder;

[0143] The second-layer feature map of the decoder is input into the first layer of the decoder, and after an upsampling process, it is concatenated with the first-layer output feature map of the encoder through a jump connection to form the first-layer feature map output of the decoder.

[0144] In a specific embodiment, the segmentation unit is specifically used for:

[0145] Input the feature map output by the fourth layer of the encoder into the fourth layer of the feature pyramid network, perform convolution on the feature map output by the fourth layer of the encoder to reduce the dimension, and then perform upsampling to output the feature image of the fourth layer of the pyramid;

[0146] The output feature map of the third layer of the decoder is input to the third layer of the feature pyramid network, and after convolution, the output feature map of the third layer of the encoder is reduced in dimension, and then superimposed with the feature image of the fourth layer of the pyramid to output the feature image of the third layer of the pyramid;

[0147] The decoder's second-layer output feature map is input into the second layer of the feature pyramid network, and after convolution is performed to reduce the dimension of the encoder's second-layer output feature map, it is superimposed with the third-layer feature image of the pyramid to output the second-layer feature image of the pyramid;

[0148] The first-layer output feature map of the decoder is input into the first layer of the feature pyramid network, and after convolution, the first-layer output feature map of the encoder is reduced in dimension, and then superimposed with the second-layer feature image of the pyramid to output the first-layer feature image of the pyramid;

[0149] After the first-layer feature image of the pyramid is convolved with a 3*3 convolution operation, a 1*1 convolution and a Sigmoid operation are performed to generate a probability map of the segmentation results of the glomerular edge, mesangial cells, endothelial cells, and podocytes.

[0150] In a specific embodiment, the reconstruction unit is specifically used for:

[0151] The output feature map of the fourth layer of the encoder is input into the variational autoencoder, and after downsampling, downconvolution and full connection processing, N groups of means and variances are generated;

[0152] The N groups of means and variances are processed by sampling, full connection, reshaping and up-convolution, and then resBlock and up-sampled to form a reconstructed image;

[0153] The loss function is calculated based on the difference between the reconstructed image and the original glomerular pathological slice image, and the U-net neural network is adjusted according to the loss function to complete the learning and training of the glomerular pathological slice image.

[0154] In a specific embodiment, the calculation module 34 specifically includes:

[0155] A determination unit, used for determining a foreground / background binary map of mesangial cells, endothelial cells and podocytes according to the probability maps of mesangial cells, endothelial cells and podocytes;

[0156] A contour extraction unit, used to extract the contours of mesangial cells, endothelial cells and podocytes in the foreground / background binary image;

[0157] The statistical unit is used to count the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected according to the number of extracted contours of mesangial cells, endothelial cells and podocytes.

[0158] Based on the above Figure 1 The method shown and Figure 3 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides a computer device, such as Figure 4 As shown, the system includes a memory 42 and a processor 41, wherein the memory 42 and the processor 41 are both arranged on a bus 43. The memory 42 stores a computer program, and the processor 41 executes the computer program to realize Figure 1 The cell detection method is shown in the glomerular pathological section image.

[0159] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile memory (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0160] Optionally, the device may also be connected to a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.

[0161] Those skilled in the art will appreciate that the structure of a computer device provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

[0162] Based on the above Figure 1 The method shown and Figure 3 The embodiment of the device shown in the figure, accordingly, the embodiment of the present application also provides a storage medium on which a computer program is stored, and when the program is executed by the processor, the above-mentioned Figure 1 The cell detection method is shown in the glomerular pathological section image.

[0163] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the computer device and supports the operation of information processing programs and other software and / or programs. The network communication module is used to realize communication between the components inside the storage medium and communication with other hardware and software in the computer device.

[0164] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by hardware.

[0165] By applying the technical solution of the present application, the preset neural network model can be used to detect the glomerular pathological section image to be detected, and the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected can be determined. This eliminates the need for manual estimation, and the cause and condition of the patient's disease can be better determined based on the number of mesangial cells, endothelial cells and podocytes, so that a more accurate treatment plan can be formulated, so that the patient's kidneys can recover as soon as possible. It is simple and fast to use.

[0166] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.

[0167] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.

Claims

1. A cell detection method for glomerular pathological slice images, characterized in that: The method comprises: Acquire the glomerular pathological section image to be detected; Inputting the glomerular pathological slice image to be detected into a preset neural network model for identification and detection, wherein the preset neural network model is a U-net neural network trained with a predetermined number of glomerular pathological slice images for identification and labeling of mesangial cells, endothelial cells and podocytes; Outputting probability maps of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected respectively from three output channels of the preset neural network model; Calculating the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected according to the probability map of mesangial cells, endothelial cells and podocytes; The U-net neural network includes a U-net module, a feature pyramid network and a variational autoencoder; Before inputting the to-be-detected glomerular pathological slice image into a preset neural network model for identification and detection, the method comprises: The processed glomerular pathological slice images are input into the U-net module of the U-net neural network to extract feature images; Input the feature image into the feature pyramid network of the U-net neural network for segmentation processing to output a segmentation result probability map of the glomerular edge, mesangial cells, endothelial cells, and podocytes; Inputting the feature image into a variational autoencoder of a U-net neural network for image reconstruction, calculating a loss function according to a difference between the reconstructed image and the original glomerular pathological slice image, and adjusting the U-net neural network according to the loss function to complete the learning and training of the glomerular pathological slice image; The learning and training process is repeated until all the glomerular pathological section images in the training set are fully learned and trained, and the variational autoencoder in the trained U-net neural network is removed to obtain the preset neural network model.

2. The method according to claim 1, characterized in that Before inputting the to-be-detected glomerular pathological slice image into a preset neural network model for identification and detection, the method further includes: A predetermined number of glomerular pathological section images are obtained as a training set; The mesangial cells, endothelial cells and podocytes in each glomerular pathological section image in the training set were labeled separately; Performing elastic deformation, and / or color transformation, and / or random flipping, and / or size transformation processing on the annotated glomerular pathological slice image; The processed glomerular pathological slice images are input into the U-net neural network for learning and training to obtain the preset neural network model.

3. The method according to claim 1, characterized in that The step of inputting the processed glomerular pathological slice image into the U-net module of the U-net neural network to extract the feature image specifically includes: The processed glomerular pathological slice image is input into the encoder of the U-net module, and after convolution processing by the first layer of the encoder, a ResBlock and a downsampling process are performed to generate the first layer output feature map of the encoder; The first layer output feature map of the encoder is input into the second layer of the encoder, and after two ResBlocks and one downsampling process, the second layer output feature map of the encoder is generated; The second layer output feature map of the encoder is input into the third layer of the encoder, and after two ResBlocks and one downsampling process, the third layer output feature map of the encoder is generated; Input the third layer output feature map of the encoder into the fourth layer of the encoder, and generate the fourth layer output feature map of the encoder after being processed by four ResBlocks; Input the fourth-layer output feature map of the encoder into the third layer of the decoder, and after an upsampling process, splice it with the third-layer output feature map of the encoder through a skip connection to form the third-layer feature map output of the decoder; Inputting the third layer feature map of the decoder into the second layer of the decoder, undergoing an upsampling process, and concatenating it with the second layer output feature map of the encoder through a skip connection to form a second layer feature map output of the decoder; The second layer feature map of the decoder is input into the first layer of the decoder, and after an upsampling process, it is concatenated with the first layer output feature map of the encoder through a jump connection to form the first layer feature map output of the decoder.

4. The method according to claim 3, characterized in that The feature image is input into the feature pyramid network of the U-net neural network for segmentation processing, and the segmentation result probability map of the glomerular edge, mesangial cells, endothelial cells, and podocytes is output, specifically including: Inputting the fourth-layer output feature map of the encoder into the fourth layer of the feature pyramid network, performing convolution on the fourth-layer output feature map of the encoder to reduce the dimension, and then performing upsampling to output the fourth-layer feature image of the pyramid; Inputting the third-layer output feature map of the decoder into the third layer of the feature pyramid network, performing convolution on the third-layer output feature map of the encoder to reduce the dimension, and then superimposing it with the fourth-layer feature image of the pyramid to output the third-layer feature image of the pyramid; Inputting the second layer output feature map of the decoder into the second layer of the feature pyramid network, performing convolution on the second layer output feature map of the encoder to reduce the dimension, and then superimposing it with the third layer feature image of the pyramid to output the second layer feature image of the pyramid; Inputting the first-layer output feature map of the decoder into the first layer of the feature pyramid network, performing convolution on the first-layer output feature map of the encoder to reduce the dimension, and then superimposing it with the second-layer feature image of the pyramid to output the first-layer feature image of the pyramid; After performing 3*3 convolution processing on the first layer feature image of the pyramid, 1*1 convolution and Sigmoid operation processing are performed to generate segmentation result probability maps of glomerular edges, mesangial cells, endothelial cells, and podocytes.

5. The method according to claim 3, characterized in that: The characteristic image is input into the variational autoencoder of the U-net neural network for image reconstruction, and a loss function is calculated according to the difference between the reconstructed image and the original glomerular pathological slice image, and the U-net neural network is adjusted according to the loss function to complete the learning and training of the glomerular pathological slice image, specifically including: Inputting the fourth-layer output feature map of the encoder into the variational autoencoder, and generating N groups of means and variances after downsampling, downconvolution and full connection processing; The N groups of means and variances are processed by sampling, full connection, reshaping and up-convolution, and then resBlock and up-sampled to form a reconstructed image; The loss function is calculated according to the difference between the reconstructed image and the original glomerular pathological slice image, and the U-net neural network is adjusted according to the loss function to complete the learning and training of the glomerular pathological slice image.

6. The method according to any one of claims 1 to 5, characterized in that: Calculating the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected according to the probability map of mesangial cells, endothelial cells and podocytes specifically includes: Determine the foreground / background binary images of the mesangial cells, endothelial cells and podocytes according to the probability images of the mesangial cells, endothelial cells and podocytes; Extracting the outlines of mesangial cells, endothelial cells and podocytes in the foreground / background binary image; The numbers of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected are counted according to the numbers of the extracted contours of mesangial cells, endothelial cells and podocytes respectively.

7. A cell detection device for glomerular pathological slice images, characterized in that: The device comprises: An acquisition module, used for acquiring the glomerular pathological slice image to be detected; A detection module, used for inputting the glomerular pathological slice image to be detected into a preset neural network model for identification and detection, wherein the preset neural network model is a U-net neural network trained by a predetermined number of glomerular pathological slice images for identifying and labeling mesangial cells, endothelial cells and podocytes; An output module, used to output probability maps of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected from the three output channels of the preset neural network model respectively; A calculation module, used for calculating the number of mesangial cells, endothelial cells and podocytes in the glomerular pathological section image to be detected according to the probability map of mesangial cells, endothelial cells and podocytes; Wherein, the U-net neural network includes a U-net module, a feature pyramid network and a variational autoencoder; The device also includes a training module, which specifically includes: An extraction unit, used for inputting the processed glomerular pathological slice image into a U-net module of a U-net neural network to extract a feature image; A segmentation unit is used to input the feature image into the feature pyramid network of the U-net neural network for segmentation processing and output the segmentation result probability map of the glomerular edge, mesangial cells, endothelial cells, and podocytes; A reconstruction unit is used to input the feature image into the variational autoencoder of the U-net neural network for image reconstruction, and calculate the loss function according to the difference between the reconstructed image and the original glomerular pathological slice image, and adjust the U-net neural network according to the loss function to complete the learning and training of the glomerular pathological slice image; The repeating unit is used to repeat the learning and training process until all the glomerular pathological section images in the training set are fully learned and trained, and the variational autoencoder in the trained U-net neural network is removed to obtain a preset neural network model.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method for detecting cells in a glomerular pathological section image according to any one of claims 1 to 6 are implemented.

9. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for detecting cells in a glomerular pathological section image according to any one of claims 1 to 6 are implemented.