A deep learning-based lung brush cell recognition and segmentation method

The two-stage clustering and segmentation network (TSCS-Net) through deep learning combines hyperspectral images and classification networks to solve the problems of edge blur and noise labeling in lung adenocarcinoma cell segmentation, achieving more accurate cell identification and segmentation, and improving improve segmentation performance and efficiency.

CN114863428BActive Publication Date: 2024-08-27EAST CHINA NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210657903.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-10
Publication Date
2024-08-27
Estimated Expiration
2042-06-10

AI Technical Summary

Technical Problem

Existing semantic segmentation and instance segmentation algorithms are not effective in segmenting lung adenocarcinoma cells, especially when the cell edges are blurred and the overlap is high, and noise annotation and annotation are time-consuming, making it difficult to efficiently train deep learning networks.

Method used

A two-stage clustering segmentation network (TSCS-Net) based on deep learning is used to extract small hyperspectral images, combine two-dimensional and one-dimensional classification networks for cell edge recognition, and use a small sample segmentation network for cell segmentation, using noise Annotation and small sample annotation for cell identification and segmentation.

Benefits of technology

It achieves more accurate regional identification and segmentation in lung adenocarcinoma cells, improves segmentation performance, especially when cell edges are blurred and overlapping, and reduces the need for annotated samples, achieving better prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114863428B
    Figure CN114863428B
Patent Text Reader

Abstract

The present invention discloses a lung brush cell recognition and segmentation method based on deep learning, comprising: obtaining a lung adenocarcinoma hyperspectral original image, preprocessing the lung adenocarcinoma hyperspectral original image; annotating the preprocessed lung adenocarcinoma hyperspectral original image, and extracting a small block of hyperspectral images; inputting the small block of hyperspectral images into a two-dimensional classification network, and inputting the central point spectral curve of the small block of hyperspectral images into a one-dimensional classification network, calculating the supervision loss value and consistency loss value of the two-dimensional classification network and the one-dimensional classification network, and obtaining a final two-dimensional classification network; inputting the lung adenocarcinoma hyperspectral original image into a small sample segmentation network to obtain a test image; using the final two-dimensional segmentation network to classify the test image, and mapping the classification result back to the lung adenocarcinoma hyperspectral original image to obtain the segmentation result of the lung brush cell. Accurate cell edges can be obtained to prevent the extracellular matrix from affecting cell segmentation, and better performance is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of lung brush pathology diagnosis, and in particular to a lung brush cell recognition and segmentation method based on deep learning. Background Art

[0002] Due to its invasiveness and lack of effective treatment strategies, lung cancer has been the leading cause of tumor-related deaths, among which lung adenocarcinoma (PUAD) is the most common subtype of lung cancer. In addition, the invasion and metastasis of tumor cells are important criteria for pathologists to make a diagnosis of lung adenocarcinoma. Therefore, cell detection and segmentation of lung adenocarcinoma plays a pivotal role in lung cancer diagnosis. At present, with the rapid development of deep convolutional neural networks, the application of deep learning in medical image segmentation has risen significantly. The current pathological cell segmentation algorithms are mainly divided into semantic segmentation and instance segmentation. Semantic segmentation is an image classification task based on pixel level. These methods use pixel-level features, but when the segmented cells have complex textures or have similar textures to other regions, multiple labels may appear in a single cell. Another class of methods, instance segmentation, aims to detect and segment each object from the input image. These methods can provide segmentation of individual cells in microscopic images. However, they do not work well when the edges of cells are blurred and the overlap is high. Tumor cells in lung adenocarcinoma are mostly overlapping, and they do not have clear boundaries. In summary, for lung adenocarcinoma cells, neither simple semantic segmentation nor instance segmentation can obtain accurate cell segmentation, let alone regional cell segmentation.

[0003] In lung adenocarcinoma cells, proliferative cells have similar textures to cancer cells and extracellular matrix, increasing the difficulty of obtaining accurate annotations for them. In this case, noisy annotations are inevitable in manual annotations. Therefore, how to train models with noisy annotations is also an urgent problem to be solved. Current denoising methods can denoise labels to improve model performance. However, they mainly focus on spatial noise and ignore that spectral noise is also a factor in HSI segmentation. In addition to the problem of noisy annotations, the annotation of microscopic pathology images is also too time-consuming. Therefore, it is also important to efficiently train deep learning networks with very few labeled samples. Simply using small sample segmentation, it is likely to obtain cell segmentation results like ordinary semantic segmentation networks, but small sample segmentation can be used to more effectively extract texture information and then provide clear cell masks for subsequent segmentation. Summary of the invention

[0004] To solve the above problems, the present invention provides a lung brush cell recognition and segmentation method based on deep learning. A two-stage clustering segmentation network (TSCS-Net) of deep learning is used to obtain regional recognition and segmentation results of lung brush cells. First, small blocks of hyperspectral images of three types of cells are extracted in a balanced manner according to the annotation information, and then a high-precision two-dimensional classification network is trained to obtain accurate cell edges to prevent the extracellular matrix from affecting cell segmentation.

[0005] In order to achieve the above technical objectives, the present invention provides a lung brush cell recognition and segmentation method based on deep learning, comprising:

[0006] S1, obtaining a high-spectral original image of lung adenocarcinoma, and preprocessing the high-spectral original image of lung adenocarcinoma;

[0007] S2, using a labeling tool to label the preprocessed lung adenocarcinoma hyperspectral original image to obtain labeling information, and extracting a small block of hyperspectral image based on the labeling information;

[0008] S3, inputting the small block of hyperspectral images into a two-dimensional classification network, and at the same time inputting the central point spectral curve of the small block of hyperspectral images into a one-dimensional classification network, performing recognition and classification of the small block of hyperspectral images, calculating the supervision loss value and consistency loss value of the two-dimensional classification network and the one-dimensional classification network, and obtaining a final two-dimensional classification network;

[0009] S4, inputting the lung adenocarcinoma hyperspectral original image into a small sample segmentation network to obtain a test image;

[0010] S5, using the final two-dimensional segmentation network to classify the test image, and mapping the classification result back to the lung adenocarcinoma hyperspectral original image to obtain a segmentation result of lung brush cells.

[0011] Optionally, the preprocessing process is:

[0012] All the lung adenocarcinoma hyperspectral original images are divided by corresponding blank images to obtain the preprocessed lung adenocarcinoma hyperspectral original images.

[0013] Optionally, the process marked in S2 is:

[0014] Using ENVI software to read the pre-processed lung adenocarcinoma hyperspectral original image to obtain a single-band image;

[0015] Based on the single-band image, using a polygon tool to mark the regions of lung adenocarcinoma cells, hyperplastic cells and normal cells respectively, to obtain marking information of the lung adenocarcinoma cells, the hyperplastic cells and the normal cells;

[0016] The labeling information of the lung adenocarcinoma cells, the proliferative cells and the normal cells is saved in a png file to complete the labeling.

[0017] Optionally, the two-dimensional classification network uses a ResNet50 network as a backbone network, and uses a squeeze-and-excitation model to enhance the spectral information of the small block of hyperspectral image.

[0018] Optionally, the small sample segmentation network uses a few-shot GAN network.

[0019] Optionally, the process of extracting a small block of hyperspectral image is:

[0020] A frame is randomly spread on the spatial dimension of the preprocessed lung adenocarcinoma hyperspectral original image to intercept the small block of the hyperspectral image, and the size of the random frame is 224*224.

[0021] Optionally, the process of S4 includes:

[0022] Inputting the lung adenocarcinoma hyperspectral original image into a small sample segmentation network to obtain a cell mask;

[0023] The number of contours and contour information in the cell mask are detected, contours with contour areas greater than 100 in the contour information are selected, and the minimum circumscribed rectangle is taken for each contour to obtain a test image.

[0024] Optionally, the process of determining the number of random frames is:

[0025] The number of pixels of lung adenocarcinoma cells, hyperplastic cells and normal cells is extracted based on the annotation information, and the number of random frames is weighted according to the proportion of the lung adenocarcinoma cells, the hyperplastic cells and the normal cells to obtain the number of random frames.

[0026] The present invention has the following technical effects:

[0027] A two-stage clustering segmentation network based on noisy annotation and few-shot annotation, called TSCS-Net. More specifically, our TSCS-Net, which consists of few-shot annotation and noisy annotation, exploits the spectral information and spatial information from microscopic hyperspectral images. Given the inevitable errors in annotating different types of cells, a joint training strategy for cell type classification is introduced in TSCS-Net, which guides three classification networks, i.e., two for spatial spectral information and one for spectral information alone, to match each other by removing samples with noisy labels. In addition, we use a few-shot annotation model to help obtain accurate cell edges in case the extracellular matrix affects cell segmentation. We evaluate our TSCS-Net on a dataset of 3660 lung adenocarcinoma hyperspectral images containing 40 bands, and experiments show that TSCS-Net achieves better performance than the state-of-the-art segmentation methods. In addition, segmentation using hyperspectral images can achieve better prediction results compared to color images. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0029] Figure 1 This is a flowchart of a lung brush cell recognition and segmentation method based on deep learning according to an embodiment of the present invention;

[0030] Figure 2 Spectral curve diagram of lung adenocarcinoma hyperspectral original image before and after preprocessing in the embodiment of the present invention;

[0031] Figure 3 This is a labeled diagram of three types of cells in the embodiment of the present invention;

[0032] Figure 4 This is a flowchart of a one-dimensional spectral curve classification network based on deep learning in an embodiment of the present invention;

[0033] Figure 5 This is a diagram showing the detection, recognition and segmentation results of three types of cells in an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] like Figure 1 As shown, the present invention discloses a lung brush cell recognition and segmentation method based on deep learning, comprising:

[0036] S1, obtaining a high-spectral original image of lung adenocarcinoma and preprocessing the high-spectral original image of lung adenocarcinoma;

[0037] All lung adenocarcinoma hyperspectral original images were divided by their corresponding blank images to obtain the preprocessed lung adenocarcinoma hyperspectral original images. The spectral curves of the lung adenocarcinoma hyperspectral original images changed greatly after preprocessing. The spectral curves before and after preprocessing are shown in Figure 2. Figure 2 shown.

[0038] S2, using a labeling tool to label the preprocessed lung adenocarcinoma hyperspectral original image to obtain labeling information, and extracting a small block of hyperspectral image based on the labeling information;

[0039] The pre-processed lung adenocarcinoma hyperspectral original image was read using ENVI software to obtain a single-band image. Based on the single-band image, the polygon tool was used to mark the areas of lung adenocarcinoma cells, hyperplastic cells, and normal cells, and the labeling information of lung adenocarcinoma cells, hyperplastic cells, and normal cells was obtained. The labeling information of lung adenocarcinoma cells, hyperplastic cells, and normal cells was saved in a png file to complete the labeling. The labeling results are shown in Figure 2. Figure 3 As shown, light gray represents lung adenocarcinoma cells, white represents proliferative cells, and dark gray represents normal cells.

[0040] Random frames are scattered on the spatial dimension of the preprocessed lung adenocarcinoma hyperspectral original image, and the size of the random frame is 224*224. The number of pixels of lung adenocarcinoma cells, hyperplastic cells, and normal cells are extracted according to the annotation information, and the number of random frames is weighted based on the proportion of lung adenocarcinoma cells, hyperplastic cells, and normal cells to determine the number of random frames and intercept small blocks of hyperspectral images.

[0041] According to the annotation information of the center point of the small block of hyperspectral image, a small block of hyperspectral image is divided into three categories: lung adenocarcinoma cells, hyperplastic cells and normal cells; in order to keep the image data volume of the three types of cells relatively balanced, according to the annotation results ( Figure 3 ) determine the size of the area occupied by the image of each type of cell, and then multiply it by the weight value to keep the three types of cell images relatively balanced in data volume.

[0042] S3, input the small block of hyperspectral image into the two-dimensional classification network, and input the central point spectral curve of the small block of hyperspectral image into the one-dimensional classification network, perform recognition and classification of the small block of hyperspectral image, calculate the supervision loss value and consistency loss value of the two-dimensional classification network and the one-dimensional classification network, and obtain the final two-dimensional classification network;

[0043] The small block of hyperspectral image is input into the two-dimensional classification network. The two-dimensional classification network uses the ResNet50 network as the backbone network, and uses the SE model to enhance the spectral dimension information of the small block of hyperspectral image. The enhanced image is input into the two-dimensional classification network for feature extraction to obtain two classification results, and the loss function is calculated for them. The loss function uses additive angular margin loss.

[0044] The one-dimensional classification network is the most basic one-dimensional network. The network framework is as follows Figure 4 As shown, the spectral curve of the center point of a small block of hyperspectral image is input into a one-dimensional classification network to extract spectral features to classify the three types of cells, and the loss function is calculated for them. The loss function is entropy loss.

[0045] The small block of hyperspectral images intercepted in S2 is classified according to its label value at the center point to obtain three types of cell image sets. The spectral curves of the center points of the three types of cell image sets are averaged to obtain the original average spectral curves and enhanced average spectral curves of the three types of cells. The average value of the absolute value of the distance between the enhanced spectral curve and the original average spectral curve of the three types of cells is calculated to obtain the weights of the loss functions of the two two-dimensional classification networks respectively. The calculation formula is as follows:

[0046]

[0047] λ=mini(λ T ,λ H ,λ N )

[0048] Among them, λ T ,λ H ,λ N They represent the average distances between the samples in the current group and the average spectral curves of the three types of cells in all bands, n represents the number of samples processed in batches, i represents the sample number, b represents the number of bands, S j Represents the spectral value of the single-band image of the j-th band of the hyperspectral image, S T , S H , S NRepresent the average spectral curves of all lung adenocarcinoma cells, proliferative cells and normal cells, respectively. λ is a spectral weight value to control the weights of the segmentation loss function and the consistency loss function. S Tj , S Hj , S Nj Represents the spectral value of the center point of the single-band image of the j-th spectral band of the three types of cells.

[0049] For the one-dimensional classification network, the absolute value of the distance between each spectral curve and the average spectral curve of the three cells is calculated to obtain the weight of the loss function of the one-dimensional classification network. The calculation formula of the weight is shown above (the calculation formula of the loss function weight of two two-dimensional classification networks).

[0050] Calculate the total loss function, add the weights of the supervision loss values ​​of the three networks and the consistency loss values ​​between the two networks, and get the final two-dimensional classification network. The calculation formula is as follows:

[0051]

[0052] Among them, x i Represents the category label value of the input small block of hyperspectral image, y i represents the network prediction result, l sup represents the supervision loss function, λ1, λ2, λ3 represent the weights of the consistency loss function of the three networks respectively, and l con represents the consistency loss function, y i1 ,y i2 ,y i3 They represent the prediction results of the three networks respectively. The supervised loss function of the one-dimensional classification network is the cross entropy loss function, and the supervised loss function of the two-dimensional classification network is the additive angle margin loss.

[0053] S4, inputting the original hyperspectral image of lung adenocarcinoma into the small sample segmentation network to obtain a test image;

[0054] The original hyperspectral images of lung adenocarcinoma to be tested are input into the small sample segmentation network, which uses the few-shot GAN network. Three images are selected as training images, and the png files containing annotation information obtained in S2 are used for annotation. Based on the supervised loss function of the few-shotGAN network, the cell segmentation images of all the original hyperspectral images of lung adenocarcinoma to be tested are obtained to obtain the cell masks;

[0055] The number of contours and contour information in the cell mask are detected, contours with contour areas greater than 100 in the contour information are selected, and the minimum circumscribed rectangle is taken for each contour to obtain a test image.

[0056] S5, using the final two-dimensional segmentation network obtained in S3 to classify the test image obtained in S4, and mapping the classification result back to the lung adenocarcinoma hyperspectral original image to obtain the segmentation result of lung brush cells, such as Figure 5 shown.

[0057] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A lung brush cell recognition and segmentation method based on deep learning, characterized in that: The following steps are involved: S1, obtaining a high-spectral original image of lung adenocarcinoma, and preprocessing the high-spectral original image of lung adenocarcinoma; The pre-processing process is as follows: Dividing all the lung adenocarcinoma hyperspectral original images by corresponding blank images to obtain the preprocessed lung adenocarcinoma hyperspectral original images; S2, using a labeling tool to label the preprocessed lung adenocarcinoma hyperspectral original image to obtain labeling information, and extracting a small block of hyperspectral image based on the labeling information; The process marked in S2 is: Using ENVI software to read the pre-processed lung adenocarcinoma hyperspectral original image to obtain a single-band image; Based on the single-band image, using a polygon tool to mark the regions of lung adenocarcinoma cells, hyperplastic cells and normal cells respectively, to obtain marking information of the lung adenocarcinoma cells, the hyperplastic cells and the normal cells; The labeling information of the lung adenocarcinoma cells, the proliferative cells and the normal cells is saved in a png file to complete the labeling; The process of extracting a small piece of hyperspectral image is as follows: Randomly spread a frame on the spatial dimension of the preprocessed lung adenocarcinoma hyperspectral original image to intercept the small block of the hyperspectral image, and the size of the random frame is 224*224; The process of determining the number of random frames is as follows: Extracting the number of pixels of lung adenocarcinoma cells, hyperplastic cells, and normal cells based on the annotation information, and weighting the number of random frames according to the proportion of the lung adenocarcinoma cells, the hyperplastic cells, and the normal cells to obtain the number of random frames; S3, input the small block of hyperspectral image into a two-dimensional classification network, the two-dimensional classification network uses the ResNet50 network as the backbone network, and uses the squeeze-and-excitation model to enhance the spectral information of the small block of hyperspectral image; the enhanced image is input into the two-dimensional classification network for feature extraction to obtain two classification results; at the same time, the central point spectral curve of the small block of hyperspectral image is input into the one-dimensional classification network to extract spectral features, and the small block of hyperspectral image is identified and classified according to the label value of the central point of the obtained small block of spectral image, and the spectral curves of the central points of the three types of cell image sets are averaged to obtain the original average spectral curves of the three types of cells and the enhanced average spectral curves; the average value of the absolute value of the distance between the enhanced spectral curve and the original average spectral curves of the three types of cells is calculated, and the weights of the loss functions of the two two-dimensional classification networks are obtained respectively. For the one-dimensional classification network, the absolute value of the distance between each spectral curve and the average spectral curves of the three types of cells is calculated to obtain the weight of the loss function of the one-dimensional classification network; Calculating the supervision loss values ​​of the two two-dimensional classification networks and the one-dimensional classification network and the consistency loss values ​​between the two networks, and performing weighted addition to obtain a final two-dimensional classification network; S4, inputting the lung adenocarcinoma hyperspectral original image into a small sample segmentation network to obtain a test image; The S4 process includes: The lung adenocarcinoma hyperspectral original image is input into a small sample segmentation network, wherein the small sample segmentation network uses a few-shot GAN network, and the png file containing the annotation information obtained in S2 is used for annotation, and the cell segmentation images of all the lung adenocarcinoma hyperspectral original images to be tested are obtained based on the supervised loss function of the few-shot GAN network to obtain cell masks; Detecting the number and information of contours in the cell mask, selecting contours with contour areas greater than 100 in the contour information, taking a minimum circumscribed rectangle for each contour, and intercepting to obtain a test image; S5, using the final two-dimensional classification network to classify the test image, and mapping the classification result back to the lung adenocarcinoma hyperspectral original image to obtain a segmentation result of lung brush cells.