A parallel capsule network cervical cancer cell detection method based on Inception module
By designing a parallel capsule network based on the Inception module in the detection of cervical cancer cells, combining convolutional neural network and capsule network, the reliability and efficiency problems of manual film reading and the overfitting and gradient disappearance of convolutional neural networks are solved. High-accuracy cervical cell detection is achieved, especially in the extraction of three-dimensional color image features.
Patent Information
- Application Number
- CN202011020118.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-25
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-09-25
AI Technical Summary
The prior art has problems with the reliability, accuracy and efficiency of manual reading of cervical cancer cells. Convolutional neural networks are prone to overfitting and gradient disappear when processing cervical cell images, and capsule networks are extracting three-dimensional color image feature information. Inadequate.
A parallel capsule network based on the Inception module was designed, combining convolutional neural network and capsule network, and the width and depth of the network were increased through the Inception module, a soft prediction layer was added to avoid the gradient disappearance, and a dynamic routing mechanism and C-squashing activation function were introduced. To improve feature extraction and classification accuracy.
The detection accuracy of 99.2% was achieved, which improved the recognition accuracy and feature extraction ability of cervical cell images, overcome the shortcomings of traditional methods, and enhanced the rapidity and accuracy of the model.
Smart Images

Figure CN114266717B
Abstract
Description
Technical Field
[0001] The present invention provides a parallel capsule network cervical cancer cell detection method based on an Inception module, and belongs to the field of medical image analysis and computer-aided diagnosis. Technical Background
[0002] Cervical cancer is a common malignant tumor of the cervix. It is the most common female cancer in developing countries and the second most common female cancer in the world, which seriously threatens the life and health of women. Cervical cancer is the only malignant tumor with a clear cause and can be prevented. Screening can detect, prevent and treat it early, thus effectively avoiding the occurrence of cervical cancer. Cervical cytology is the main method for detecting cervical cancer and precancerous lesions. Its main examination methods include: cervical smear examination and cervical liquid-based thin-layer cytology examination. Cervical liquid-based thin-layer cytology examination and classification diagnosis is currently the most advanced cervical cancer cell cytology examination technology in the world. Compared with the traditional cervical smear examination, it significantly improves the satisfaction of the specimen and the detection rate of abnormal cervical cells. Its detection rate of cervical cancer cells is 100%. At present, the clinical detection method of cervical cancer is that doctors visually observe the cervical liquid-based thin-layer cytology smear image based on experience, and identify cancerous cells through characteristics such as cell density and cell nuclear area. However, as the diagnostic standards for cervical cells become increasingly strict, the reliability, accuracy and efficiency of manual reading by experienced physicians cannot be guaranteed. Liquid-based thin-layer cytology examinations generally use manual reading methods. Physicians analyze parameters such as the depth of nuclear staining, nuclear shape, uniformity of nuclear distribution, and nuclear-cytoplasmic ratio (the ratio of nuclear diameter to cell diameter, which is an important parameter for determining whether cells are abnormal) to determine whether a lesion has occurred. Liquid-based cytology analysis is highly dependent on cytopathologists. At the same time, the large number of samples increases the workload of physicians, making it difficult for physicians to maintain accurate judgments on cell smears for a long time. It has great limitations: (1) The professional level of each cytopathologist is inconsistent, and the diagnostic results will vary greatly; (2) Each slide contains tens of thousands of cells, and pathologists are overloaded and easily fatigued, which may lead to misdiagnosis and missed diagnosis.
[0003] With the development of artificial intelligence technology, replacing manual reading with machines, giving machines the ability of intelligent recognition and intelligent classification, and making up for the shortcomings of current manual reading have become current research hotspots. With the continuous development of deep learning technology and the continuous improvement of computing power and graphics processing capabilities, the use of convolutional neural networks (CNN) for intelligent recognition, automatic segmentation and classification of cervical cancer cell images has continued to deepen. However, due to the scalar modules used in convolutional neural network technology, there are still defects in the field of cervical cancer cell image recognition and detection.
[0004] The safest way to improve the performance of convolutional neural networks is to increase the width and depth of the network, but this will also be accompanied by side effects. First of all, the deeper and wider the network, the more parameters it will have. When the amount of data is small, the trained network is prone to overfitting, and when the network is very deep, it is easy to cause the gradient to disappear. These two side effects restrict the development of deep and wide convolutional neural networks. The Inception module solves these two problems very well. There are two additional softmadx prediction layers in the Inception module. These two prediction layers are branches derived from the middle part of the network framework, which are used to back-propagate and update the gradient, thus avoiding the inability to update shallow network parameters due to the disappearance of the gradient.
[0005] The capsule network is a new neural network proposed by Hinton. It is a neural network that uses the length of the input and output vectors to represent the probability of the existence of an entity. It is good at processing the characteristic information of an object's posture (position, size, direction), deformation, speed, albedo, hue, texture, etc. In the past two years, the research and application of the capsule network algorithm has received great attention. Although the capsule network has achieved certain research results, most of them are used to identify and classify grayscale images, and the convolution part of the capsule network has a small number of layers, which is not enough to extract the characteristic information of cervical cell images. Since the cervical cell smear image is a three-dimensional color image and provides rich texture information related to physiology and pathology, the Inception module is added on the basis of the basic framework of the capsule network, and the improved capsule neural network model is designed and constructed. The ability to extract deep features of the image is improved through the three-dimensional channel deep convolution layer, and the dynamic routing mechanism is improved to achieve the purpose of improving the recognition accuracy of three-dimensional color images. Summary of the invention
[0006] In view of the deficiencies in the prior art, the present invention provides a parallel capsule network cervical cancer cell detection method based on the Inception module.
[0007] The technical solution of the present invention is a parallel capsule network cervical cancer cell detection method based on the Inception module, comprising the following steps:
[0008] Step 1, image input: The input image is a three-dimensional color image with a size of 112x112. The image data set is divided into four categories, namely normal cervical cell images, ASC-H atypical squamous cells, Lsil low-grade intraepithelial lesions, and Hsil high-grade intraepithelial lesions. There are 4,000 cell images of each type, a total of 16,000 images. The 10-fold cross-validation method is used, with one-tenth as the test set, one-tenth as the validation set, and eight-tenths as the training set.
[0009] Step 2, Inception module input: The Inception module is a parallel convolutional neural network with a module input size of 112x112. The first layer of blocks contains 1x1 convolution, 1x1 convolution, and 3x3 maximum pooling; the second layer of blocks contains 1x1 convolution, 3x3 convolution, and 5x5 convolution. In this way, each layer in the network can learn "sparse" (3x3, 5x5) or "non-sparse" (1x1) features, which increases the width of the network and the adaptability of the network to scale. Through deep concat, the features are synthesized after each block to obtain nonlinear properties. The two layers of blocks and the one layer of 1x1 convolution are output in parallel.
[0010] Step 3, main capsule layer input: The capsule layer input tensor is 20×20×256, and the output tensor dimension is 6×6×8×32. The capsule layer uses 32 9×9 convolution kernels for convolution with a stride of 2 to obtain a 6×6×1×32 tensor. The main capsule layer performs 8 Conv2 operations with different weights on the input tensor of dimension 20×20×256, which will produce 8 similar tensors. These 8 tensors and the 6×6×1×32 tensor are combined in the third dimension to form 6×6×8×32. The main capsule layer encapsulates 8 convolution units together into a new capsule unit, which is a vector with a depth of 32 and a length of 8.
[0011] Step 4, digital capsule layer: The digital capsule layer performs propagation and routing updates based on the main capsule layer. Based on the 1152 capsule units in the previous layer, two standard capsule units in the second layer are output, and the output vector of each capsule has 16 elements. The first fully connected layer inputs a 16×2 matrix and outputs a 512 vector; the second fully connected layer inputs a 512 vector and outputs a 1024 vector; the third fully connected layer inputs a 1024 vector and outputs a 784 vector.
[0012] Step 5: Output classification results: resize the test set images, input them into the classification model for testing, and obtain the results.
[0013] Furthermore, in step 1, the present invention adopts the ten-fold cross validation, and the data set D data Randomly partition into K uniform and disjoint subsets D1, D2, ..., D k , so that:
[0014]
[0015]
[0016]
[0017] Furthermore, the BN algorithm is added in step 2. The emergence of BN greatly solves the problem of training convergence. The Inception module uses BN to increase the activation value of the entire network. When the data propagates through the deep network, it can prevent small changes in layer parameters from being amplified (gradient vanishing), making parameter scaling more flexible. Generally, a large learning rate may increase parameter scaling, which will amplify the gradient and cause gradient explosion during BP. The core function of this algorithm is to normalize the input data of the network. Its main function is to normalize the input distribution of neurons in each layer of the neural network to a standard normal distribution with a mean of 0 and a variance of 1, thereby increasing the gradient and avoiding gradient vanishing, and ultimately improving the convergence speed of learning. Suppose there is data x = {x1, x2, x3, ..., x m}, the following formula is used for normalization:
[0018]
[0019] Among them, the denominator is the standard deviation of the i-th dimension data, and the numerator is the difference between the i-th dimension data and the mean.
[0020] Furthermore, a dynamic routing mechanism is used in step 4. The dynamic routing mechanism is essentially an iterative algorithm, and its encoding and decoding capabilities make the image feature information more directional. In order to better fit the excellence of the model of multidimensional data in a complex environment and improve the classification accuracy, the present invention designs a new dynamic routing activation function C-squashing(s):
[0021]
[0022] In the formula When j When approaching 0, z′ j Approaching 0; when s j As z′ approaches infinity, j Approaching 1. The function of the nonlinear function is to "squeeze" the modulus value into the [0, 1) interval and ensure that the length of the short vector can be shortened to zero, while the length of the long vector is compressed to close to but not exceeding 1, thereby realizing the activation function of the capsule level.
[0023] The beneficial effects of the present invention are as follows: on the one hand, the Inception module, as a parallel convolutional neural network designed by the present invention, can extract the feature information of the image at a deeper level, combine the capsule network with the CNN, deepen the number of convolutional layers in the original capsule network, make up for the deficiency of the capsule network in processing large-size images, and overcome the two major problems of the CNN network in image classification. On the other hand, a new dynamic routing activation function C-squashing(s) designed by the present invention can better realize the squeezing and classification of vectors, more quickly realize the compression and redistribution of vector length, retain the validity information, remove the invalid information, and improve the speed and accuracy of the entire model.
[0024] The algorithm test accuracy of the proposed invention reached 99.2%, and the recognition accuracy was the highest among all methods. It can be seen that the parallel capsule network cervical cancer cell detection method based on the Inception module proposed in this paper has a good recognition effect on cervical cell data images. By increasing the deep convolution layer of the Inception module and selecting a more suitable dynamic routing mechanism, the distinguishability and characteristic of the cell nucleus area of the cervical cell image are enhanced, verifying the effectiveness and feasibility of the model proposed in this paper. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 Flowchart of the parallel capsule network cervical cancer cell detection method based on the Inception module
[0026] Figure 2 This is a framework diagram of the parallel capsule network cervical cancer cell detection method based on the Inception module.
[0027] Figure 3 The result of the parallel capsule network cervical cancer cell detection method based on the Inception module is shown in the figure DETAILED DESCRIPTION
[0028] The data set used in the embodiment of the present invention consists of two parts: one is the public Herlev data set, and the other is the cervical cell image data set obtained by extracting cervical cell scanning electron microscopy, annotating different pathological areas by Chinese medicine doctors and performing image processing. The Herlev data set is a pathological cell smear data made by a professional doctor of medicine from healthy and cancerous smear images obtained from Herlev University Hospital (Denmark). There are 917 images, each of which contains a cervical cell. The Herlev data set was marked by two cell technicians and a doctor. Based on the Ali Tianchi cervical liquid-based thin-layer cell electron microscope scanning image data, the embodiment of the present invention extracts cervical pathological cell images through the annotation of professional doctors, and then produces the cervical cell data set of this article through image processing and size transformation. About 3,000 cervical cancer cell images were produced from 800 electron microscope scans based on different pathological cell annotations. The data set was expanded and enhanced through image translation, rotation, mirroring and Gaussian noise addition to obtain 16,000 cell images, including 4,000 images of each of the four categories: normal cervical cell images, ASC-H atypical squamous cells, Lsil low-grade intraepithelial lesions, and Hsil high-grade intraepithelial lesions. This not only increases the amount of model training data, improves the generalization ability and robustness of the model, but also basically overcomes the imbalance of positive and negative samples.
[0029] The experimental environment of the embodiment of the present invention uses Windows 10 64-bit operating system, 8 GB memory, CPU is Intel Core i5-9400F, GPU is NVIDIA GeForce GTX 1660, programming language is Python 3.6, tensorflow is used as deep learning framework, and the compilation environment IDE is Pycharm 2017.
[0030] Inception module training: The first layer of blocks contains 1x1 convolution, 1x1 convolution, 3x3 maximum pooling; the second layer of blocks contains 1x1 convolution, 3x3 convolution, 5x5 convolution; the deep convolution layer is 128 5×5 convolution kernels, the stride size is 1, the ReLU activation function is used, and the output is 28×28×128. The general convolution layer uses 256 9×9 convolution kernels, the stride size is 1, the ReLU activation function is used, and the output is 20×20×256. Their convolution kernels are 5×5 and 9×9 in size respectively. The larger receptive field can perceive more information with fewer CNN layers without causing a surge in calculations and reducing computing performance.
[0031] Main capsule layer training: There are 32 capsules in total. Eight convolution operations with different weights are performed on the output of the general convolution layer. Each time, 32 9×9 convolution kernels and a stride of 2 are used for convolution, generating a 6×6×1×32 tensor. So there are eight similar tensors in total. These eight tensors are merged into a 6×6×8×32 vector and input into the capsule layer.
[0032] Digital capsule layer training: There are 10 vectors in total, each with 16 elements. The digital capsule layer uses the size of the vector modulus to measure the probability of an entity appearing. The vector with the largest modulus value represents the classification with the highest probability of the image. The digital capsule layer performs propagation and routing updates based on the main capsule layer, and finally outputs 4 16-dimensional capsules.
[0033] Fully connected output: The first fully connected layer inputs a 16×2 matrix and outputs a 512-vector; the second fully connected layer inputs a 512-vector and outputs a 784-vector; the third fully connected layer inputs a 784-vector and outputs a 1024-vector.
[0034] Summary table of parameters of parallel capsule network model based on Inception module
[0035] Layer Convolution kernel size Number of convolution kernels Activation Function Output size Input - - - 112×112×3 block1 5×5×3 128 ReLu 28×28×128 block2 9×9×128 256 ReLu 20×20×256 Main Capsule Network 9×9×256 32 - 6×6×8×32 Digital Capsule Network - - C-squashing 16×2 FC1 - - ReLu 512 FC2 - - ReLu 784 FC3 - - Sigmoid 1024
[0036] The significant difference between the present invention and the existing capsule network method is that: first, the present invention designs the Inception module network structure, increases the width and depth of the network while preventing overfitting, and has two additional softmadx prediction layers in the Inception module, which avoids the inability to update shallow network parameters due to gradient disappearance. Second, the present invention designs a C-squashing activation method to "squeeze" the module value to the [0, 1) interval, and ensure that the length of the short vector can be shortened to zero, while the length of the long vector is compressed to a value close to but not exceeding 1, thereby realizing the activation function of the capsule level, which can well extract deeper features for three-dimensional channel images and retain the position, color and texture feature information of image features.
Claims
1. A parallel capsule network cervical cancer cell detection method based on Inception module, characterized by: The steps include: Step 1: Cervical cancer cell image input: Prepare a cervical cancer image dataset and label the dataset. The input image size is 112x112. The image dataset is divided into four categories, namely normal cervical cell images, ASC-H atypical squamous cells, Lsil low-grade intraepithelial lesions, and Hsil high-grade intraepithelial lesions. Step 2: Inception module extracts image features: The image is passed through the Inception module to extract the texture attribute features of the image. The Inception module is a parallel network structure of a convolutional neural network, which contains a two-layer block structure. The first layer of blocks contains 1x1 convolution, 1x1 convolution, and 3x3 maximum pooling; the second layer of blocks contains 1x1 convolution, 3x3 convolution, and 5x5 convolution. The two layers of blocks and the layer of 1x1 convolution are output in parallel. The Inception module obtains another matrix after a convolution operation of an image matrix through a convolution kernel. Each convolution kernel can extract specific features. Different convolution kernels extract different features. The feature information is obtained by adding the convolution results of multiple kernel convolution templates acting on the corresponding positions of multiple channels and then taking the activation function. Step 3: Capsule network processes image features: The basic framework of the CapsNet network consists of two parts: encoder and decoder. The convolution layer, PrimaryCaps main capsule layer and DigitCaps digital capsule layer are encoders, and the three fully connected layers are decoders. The input tensor of the main capsule layer is 20×20×256. 32 9×9×256 convolution kernels are used for convolution with a stride of 2 to obtain a 6×6×1×32 tensor. 8 convolution operations with different weights are performed to generate 8 similar tensors. The 8 tensors are merged with the 6×6×1×32 tensor to obtain a 6×6×8×32 output tensor. The digital capsule layer has a total of 10 vectors, each with 16 elements. The digital capsule layer uses the size of the vector modulus to measure the probability of an entity appearing. The modulus of these 10 vectors is calculated, and the vector with the largest modulus value represents the classification with the highest probability of the image. The first fully connected layer inputs a 16×2 matrix and outputs a 512 vector; the second fully connected layer inputs a 512 vector and outputs a 784 vector; the third fully connected layer inputs a 784 vector and outputs a 1024 vector. Step 4: Image classification output: The cell image is subjected to feature extraction by a parallel network and then vectorized by a fully connected layer. The output vector is compressed and distributed to classify the image. After the network classifies the cell image into four categories, the classification accuracy is calculated based on the label and test set.
2. According to claim 1, a parallel capsule network cervical cancer cell detection method based on Inception module is characterized in that: The image input into the data set of step 1 is a three-dimensional color image, a three-channel image, and different categories are placed in different folders.
3. According to claim 1, a parallel capsule network cervical cancer cell detection method based on Inception module is characterized in that: The Inception module in step 2 adds the BN algorithm. The BN algorithm can solve the convergence problem of training. When the learning rate is large, the scaling of parameters may increase. At this time, BP will amplify the gradient and cause gradient explosion. The Inception module prevents small changes in parameters from being amplified by BNing the activation value of the entire network, normalizes the input data of the network, and normalizes the input distribution of neurons in each layer of the neural network to a standard normal distribution with a mean of 0 and a variance of 1. This makes the gradient disappear and improves the convergence speed of learning.
4. According to claim 1, a parallel capsule network cervical cancer cell detection method based on Inception module is characterized in that: The capsule network algorithm model in step 3 improves the dynamic routing mechanism, and outputs the clustering result of the feature information through the dynamic routing mechanism. The dynamic routing mechanism is essentially an iterative algorithm, and its encoding and decoding capabilities enable the image feature information to have directionality and vector characteristics. The improved dynamic routing activation function C-squashing(s) of the present invention is: In the formula When j When approaching 0, z′ j Approaching 0; when s j As z′ approaches infinity, j Approaching 1, the function of the activation function is to "squeeze" the modulus value into the [0, 1) interval and ensure that the length of the short vector can be shortened to zero, while the length of the long vector is compressed to close to but not exceeding 1, thereby realizing the activation function of the capsule level.
5. According to claim 1, a parallel capsule network cervical cancer cell detection method based on Inception module is characterized in that: The image classification output of step 4 is a test method, and the output is a classification result and accuracy.
