Prediction method for rectal cancer lymph node metastasis based on neural network in combination with traditional iconography
Through deep learning technology combined with traditional imaging, CNN and U-Net models are constructed, and XGBoost integrated learning algorithm and Pyradiomics package are used to predict lymph node metastasis of rectal cancer, solving the problem of insufficient subjectivity and accuracy of traditional imaging methods. Achieve high accuracy diagnosis.
Patent Information
- Application Number
- CN202310536861.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-13
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional imaging methods have insufficient subjectivity and accuracy in the prediction of lymph node metastasis in rectal cancer, lack quantitative data support, and the image segmentation technology is immature, making it difficult to achieve high accuracy diagnosis.
Deep learning technology combined with traditional imaging, predict rectal cancer lymph node metastasis by constructing convolutional neural network (CNN) and U-Net models, and feature extraction and radiological feature analysis were used using XGBoost integrated learning algorithm and Pyradiomics package. Data mining methods design models to replace doctors in diagnosing whether lymphatic metastasis occurs.
The high accuracy rate of prediction of lymph node metastasis in rectal cancer was achieved, reaching 91%, improving the objectivity and effectiveness of the diagnosis, and surpassing the accuracy of traditional methods.
Smart Images

Figure CN118969237A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of intelligent medical information technology, and more specifically, relates to a method for predicting rectal cancer lymph node metastasis based on a neural network combined with traditional imaging. Background Art
[0002] At present, the traditional radiomics method is often used to study rectal cancer lymph node metastasis. An evaluation model is established through image segmentation, feature extraction, feature selection and modeling analysis. The traditional radiomics method has promoted the progress of rectal cancer lymph node metastasis research to a certain extent and achieved a high accuracy rate, but it still has certain limitations. First, the characteristic indicators of traditional images are mostly subjective judgments of inspectors, lack the support of quantitative data, and cannot become a unified standard. Second, there is no mature technology for image segmentation in traditional imaging. At present, most of them rely on manual segmentation, which is subjective.
[0003] Image recognition technology is mainly used in medicine to diagnose the lesions of patients, assisting doctors to accurately diagnose the lesions of patients. With the emergence of large-scale medical imaging equipment such as CT, MRI and X-ray, image recognition technology has been successfully applied to medical diagnosis. However, due to the limitations of the medical industry, researchers cannot use many medical images as raw data. Therefore, establishing a large-scale medical image data set and optimizing the algorithm model are the main research directions of medical image recognition.
[0004] The rapid development of deep learning in recent years has created new opportunities for medical image analysis, and radiomics research based on deep learning has emerged. Compared with traditional radiomics research, the application of deep learning models in radiomics medical image analysis has the following advantages: First, by relying on big data, it can more comprehensively mine and analyze data; second, the convolutional network of the deep learning model has a strong feature expression ability, which can help to realize the classification of complex problems; third, the deep learning model has the characteristics of self-learning, which can learn features in the data and improve objectivity and effectiveness. Therefore, the application of deep learning to radiomics medical image analysis has important research value and application significance. Summary of the invention
[0005] A method for predicting rectal cancer lymph node metastasis based on a neural network combined with traditional imaging, characterized in that it comprises the following steps: A method combining deep learning with radiomics was proposed to predict whether rectal cancer has lymph node metastasis. In order to construct the feature extraction model, deep learning technology was used to build a convolutional neural network (CNN) and a U-Net framework based on a fully convolutional neural network, and the Pyradiomics package was used to extract radiological features; Finally, the extracted features were selected and a binary classification model was constructed for evaluation using F1-Score. In the prediction model of rectal cancer lymph node metastasis, it was found that the XGBoost ensemble learning algorithm was more effective than other traditional algorithms, with a prediction accuracy of up to 91%.
[0006] The trained XGBoost ensemble learning algorithm model is used to predict rectal cancer lymph node metastasis.
[0007] Preferably, by selecting different areas of the patient image for feature extraction multiple times, it is found that the feature extraction of pixels in the interval of 180-320 in the x-axis length and 230-430 in the y-axis length is most obvious. Before data transposition, the pixels in the interval [0,230:430,180:320] are selected by Python slicing. Although a little accuracy will be lost when obtaining a new object, this loss is negligible.
[0008] Preferably, the CNN model is constructed using the TensorFlow framework to identify tumors. First, three placeholders are created, the size of which matches the input data format. Two of the placeholders are used to store training data (test data during testing) and training data labels, and the other placeholder is used to store Dropout. The parameter of Dropout is set to a numerical value of 0.25. Then there are three convolutional layers Conv1, Conv2 and Conv3 and three pooling layers Pool1, Pool2 and Pool3. There are two fully connected layers. First, the three-dimensional feature vector output by the third pooling layer is flattened and expanded to a one-dimensional feature vector, and then enters the first fully connected layer, using the ReLU function for activation, and extracting a feature vector of length 400. The second fully connected layer is the output layer, and the output layer performs logits classification judgment based on the results of the previous fully connected layer.
[0009] Preferably, the U-Net model is used to segment tumor images. The network structure has three convolutional layers and three deconvolutional layers. There are two convolutional operations and one pooling operation in one convolutional layer, and one deconvolution layer has one deconvolution, one connection and two convolutional operations. In the convolutional layer, the maximum pooling operation Maxpooling is used in all three convolutional layers. The activation function is also activated by the ReLu function. Dropout is set to 0.5. During the training process, 50% of the connections of neurons are randomly selected so that they do not participate in the neural network training, thereby reducing the coupling between neurons.
[0010] Preferably, the U-Net model is used to segment tumor images. The network structure has three convolutional layers and three deconvolutional layers. There are two convolutional operations and one pooling operation in one convolutional layer, and one deconvolution layer has one deconvolution, one connection and two convolutional operations. In the convolutional layer, the maximum pooling operation Maxpooling is used in all three convolutional layers. The activation function is also activated by the ReLu function. Dropout is set to 0.5. During the training process, 50% of the connections of neurons are randomly selected so that they do not participate in the neural network training, thereby reducing the coupling between neurons.
[0011] Preferably, the Pyradiomics package in Python is used to extract radiological features from CT images. Since the RGB value of the white area of the segmented mask data is 255, the RGB value of the black area is 0, and both are in png format, it needs to be processed into 1 for white and 0 for black, and the format is dicom format.
[0012] Preferably, a recursive feature elimination method is used for tumor image feature selection.
[0013] In general, compared with the prior art, the present invention has a beneficial effect: rectal cancer lymph node metastasis is predicted by deep learning combined with traditional imaging methods using rectal cancer lymph node tumor CT data, and how deep learning can be applied to the diagnosis of rectal cancer lymph node metastasis. Based on the CT images of rectal cancer patients and the corresponding mask images given by doctors and data on whether lymph node metastasis occurs, a model is designed using data mining methods to replace doctors in diagnosing whether lymph node metastasis occurs. The model prediction accuracy reaches 91%, which is higher than the existing methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is an overall flow chart of an embodiment of the present invention; Figure 2 It is the original CT data and mask image of rectal cancer in the embodiment of the present invention; Figure 3 This is a rendering of a CT scan of rectal cancer according to an embodiment of the present invention; Figure 4 This is a rectal cancer CT data enhancement effect diagram according to an embodiment of the present invention; Figure 5 is a CNN training flow chart of an embodiment of the present invention; Figure 6 is a model accuracy and loss diagram of an embodiment of the present invention; Figure 7 It is a rectal cancer CT and mask image according to an embodiment of the present invention. Implementation
[0015] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0016] The present invention proposes a method for predicting rectal cancer lymph node metastasis based on a neural network combined with traditional imaging. The method mainly focuses on rectal cancer lymph nodes, and uses data mining methods and machine learning to process and predict rectal cancer data. Based on the CT images of rectal cancer patients and the corresponding mask images given by doctors and data on whether lymph node metastasis occurs, a model is designed using data mining methods to replace doctors in diagnosing whether lymph node metastasis occurs.
[0017] This paper uses CT data to predict rectal cancer lymph node metastasis through deep learning combined with traditional imaging methods. It is divided into three steps: 1. Determine whether the patient's CT has a tumor. 2. Segment the CT with a tumor and give a mask image. 3. Design an algorithm to extract tumor features and determine whether metastasis has occurred. The overall process is as follows: Figure 1 As shown: 1. Data preprocessing Data exploration: In the data of rectal cancer patients, there are images in the arterial phase and venous phase, which refer to CT images scanned about 25-30s or 60s after contrast injection. Each set of images contains multiple CT enhanced images in DICOM format (format is .dcm), and the tumor area mask image corresponding to each CT image (format is .png). The SimpleITK function in python is used for DICOM format CT image data processing. The SimpleITK library reads the DICOM file and needs to convert it into a two-dimensional array. Since the three-dimensional coordinate order of the data read by the GetArrayFromImage() method in SimpleITK is z, y, x, and the first dimension z axis is 1. Therefore, the Numpy library is needed to transpose the matrix to [x, y, z], and the third dimension z axis is also 1.
[0018] Data reduction: Patient CT images are often large, but mask images are small. Figure 2, the proportion is too small, and complex data analysis and data mining on large data sets are time-consuming and inefficient. Data convention generates a new data set that is smaller but retains the integrity of the original data. By selecting different areas of the patient's image for feature extraction multiple times, it is found that the feature extraction of pixels in the interval of 180-320 on the x-axis and 230-430 on the y-axis is the most obvious. Before transposing the data, Python slicing is used to select pixels in the interval [0,230:430,180:320]. The effect after interception is as follows Figure 3 . Data enhancement: Using the Keras data enhancement interface, set parameters to enhance each tumor and mask. The enhancement effect is shown in the figure below. Figure 4 shown.
[0019] 2. Rectal cancer tumor identification After data preprocessing, the data is passed into the neural network. The data size format is a three-dimensional array of 200 x 140 x 1. The model is built using the TensorFlow framework. First, three placeholders are created. The size matches the input data format. Two of the placeholders are used to store training data (test data during testing) and training data labels, and the other placeholder is used to store Dropout. The Dropout parameter is set to a value of 0.25. Then there are three convolutional layers Conv1, Conv2 and Conv3 and three pooling layers Pool1, Pool2 and Pool3. There are two fully connected layers. First, the three-dimensional feature vector output by the third pooling layer is flattened and converted into a one-dimensional feature vector, and then enters the first fully connected layer, activated by the ReLU function, and extracts a feature vector of length 400. The second fully connected layer is the output layer. The output layer performs logits classification judgment based on the results of the previous fully connected layer. Another task of the output layer is to perform back propagation, transfer gradients backward in sequence, calculate the corresponding loss function, and re-update the weight value and bias. The Adam algorithm is used here. The model flow chart is as follows: Figure 5 shown.
[0020] After training the sample 80 times, use TensorBoard to record the model loss function loss and the accuracy of the model in predicting the test set at each step, and visualize it as follows: Figure 6 , adjust the parameters, and the accuracy on the test set reaches 0.93, which has a good classification effect.
[0021] 3. Tumor Image Segmentation like Figure 7As shown in the figure, the tumor area on the left is the tumor entity, while the mask image on the right is after the tumor entity is identified. The image needs to be binarized, and all pixels in the tumor area are changed to 255, and other areas are filled with 0.
[0022] The network structure designed by the present invention has three lower convolution layers and three deconvolution layers. One lower convolution layer actually includes two lower convolutions and one pooling pooling, and one deconvolution layer actually includes one deconvolution, one connection operation and two lower convolutions. In the convolution layer, the maximum pooling operation Maxpooling is used in the three lower convolution layers, and the activation function is also activated by the ReLu function. Dropout is set to 0.5. During the training process, 50% of the connections of neurons will be randomly selected so that they do not participate in the neural network training, thereby reducing the coupling between neurons. In the deconvolution layer, the three deconvolution connection operations all use the Concatenate function provided by the Keras framework and are activated by the ReLu function. The deconvolution operation uses the UpSampling2D method provided by the Keras framework to copy the row and column data to expand the size of the feature map. The model still uses the Adam algorithm to adjust the learning rate, which is the same as the CNN network. Due to data reduction, the image size format used does not match the original image size, so when saving the tumor mask image, the image must be expanded to 512 x 512 and the expanded area must be filled with all 0s.
[0023] The CNN neural network processes the given patient's CT images, identifies the CT images with tumors, and converts the corresponding DICOM files and tumor masks into Figure 1 The block is passed into the U-Net neural network for model training, tumor location identification, and the corresponding tumor mask map is given. After data enhancement, the enhanced data set is passed into the neural network, and then the training parameters are defined. Here, the model is trained based on the Keras framework, and the model is defined to be trained 50 times. During each training, 48 pictures are passed in, and after each training, 5% of the data is randomly selected for sample testing to verify the change of the loss function and automatically adjust the learning rate. The model is verified, and the accuracy on the verification set reaches 0.84.
[0024] 4. Prediction of Lymph Node Metastasis in Rectal Cancer Combined with the mask image segmented by the model, the Pyradiomics package is used to extract radiological features. When extracting features, since the RGB value of the white area of the segmented mask data is 255, the RGB value of the black area is 0, and both are in png format, it needs to be processed into white is 1 and black is 0, and the format is dicom format.
[0025] Recursive feature elimination was used to eliminate features. First, each feature dimension of the data was standardized. RFE was imported using Python's machine learning library package. Random forest was selected as the base model. After multiple extractions, it was found that the number of selected features had a better effect when it was set to 6. Finally, the radiological features obtained by feature screening were: average gray intensity (average_gray_level), robust mean absolute deviation (rMAD), root mean square (RootMeanSquared), small area emphasis (SAE), dependent variance (DV), and age (Age).
[0026] The above data is used to train the XGBoost model. Twenty percent of the validation set is selected each time, and cross-validation is performed ten times, and the accuracy reaches 0.9.
[0027] It must be noted that in any of the above embodiments, the method is not necessarily executed in sequence according to the sequence number. As long as it cannot be inferred from the execution logic that it must be executed in a certain order, it means that it can be executed in any other possible order.
[0028] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for predicting rectal cancer lymph node metastasis based on neural network combined with traditional imaging, characterized in that: Includes steps: A method combining deep learning with radiomics was proposed to predict whether rectal cancer has lymph node metastasis. In order to construct the feature extraction model, deep learning technology was used to build a convolutional neural network (CNN) and a U-Net framework based on a fully convolutional neural network, and the Pyradiomics package was used to extract radiological features; Finally, the extracted features were selected and a binary classification model was constructed for evaluation using F1-Score. In the prediction model of rectal cancer lymph node metastasis, it was found that the XGBoost ensemble learning algorithm was more effective than other traditional algorithms, with a prediction accuracy of up to 91%.
2. Use the trained XGBoost ensemble learning algorithm model to predict rectal cancer lymph node metastasis.
3. The method for predicting rectal cancer lymph node metastasis based on a neural network combined with traditional imaging according to claim 1, characterized in that: In the data preprocessing stage, the SimpleITK function in python is used. To read the DICOM file, it needs to be converted into a two-dimensional array. Since the three-dimensional coordinates of the data read by the GetArrayFromImage() method in SimpleITK are in the order of z, y, x, and the first dimension z axis is 1, the Numpy library is needed to perform matrix transposition to [x, y, z], and the third dimension z axis is also 1.
4. The method for predicting rectal cancer lymph node metastasis based on a neural network combined with traditional imaging according to claim 1, characterized in that: By selecting different areas of the patient's image for feature extraction multiple times, it is found that the pixel feature extraction is most obvious in the interval of 180-320 on the x-axis and 230-430 on the y-axis. Before transposing the data, Python slices are used to select pixels in the interval [0,230:430,180:320]. Although a little accuracy is lost when obtaining a new object, this loss is negligible.
5. The method for predicting rectal cancer lymph node metastasis based on a neural network combined with traditional imaging according to claim 1, characterized in that: Use the keras data enhancement interface to set parameters to enhance each tumor and mask, and increase the network structure's ability to accurately identify and precisely cut the tumor location.
6. The method for predicting rectal cancer lymph node metastasis based on a neural network combined with traditional imaging according to claim 1, characterized in that: The CNN model is constructed using the TensorFlow framework to identify tumors. First, three placeholders are created, the size of which matches the input data format. Two of the placeholders are used to store training data (test data during testing) and training data labels, and the other placeholder is used to store Dropout. The Dropout parameter is set to a value of 0.
25. Then there are three convolutional layers Conv1, Conv2, and Conv3 and three pooling layers Pool1, Pool2, and Pool3. There are two fully connected layers. First, the three-dimensional feature vector output by the third pooling layer is flattened and converted into a one-dimensional feature vector. Then it enters the first fully connected layer and is activated using the ReLU function. At the same time, a feature vector of length 400 is extracted. The second fully connected layer is the output layer. The output layer performs logits classification judgment based on the results of the previous fully connected layer.
7. The method for predicting rectal cancer lymph node metastasis based on a neural network combined with traditional imaging according to claim 1, characterized in that: The U-Net model is used to segment tumor images. The network structure has three convolutional layers and three deconvolutional layers. There are two convolutional operations and one pooling operation in one convolutional layer, and one deconvolution layer has one deconvolution, one connection and two convolutional operations. In the convolutional layer, the maximum pooling operation Maxpooling is used in all three convolutional layers. The activation function is also activated by the ReLu function. Dropout is set to 0.
5. During the training process, 50% of the connections of neurons will be randomly selected so that they do not participate in the neural network training, reducing the coupling between neurons.
8. The method for predicting rectal cancer lymph node metastasis based on a neural network combined with traditional imaging according to claim 1, characterized in that: The Pyradiomics package in Python is used to extract radiological features from CT images. Since the RGB value of the white area of the segmented mask data is 255, the RGB value of the black area is 0, and both are in png format, it needs to be processed into 1 for white and 0 for black, and the format is dicom format.
9. The method for predicting rectal cancer lymph node metastasis based on a neural network combined with traditional imaging according to claim 1, characterized in that: Tumor image feature selection was performed using recursive feature elimination.
Citation Information
Cited By
Spatial-temporal-based follow-up CT lymph node tracking method, system and device and medium
CN119295459A
Follow-up CT lymph node tracking method, system, device and medium based on time and space
CN119295459B
Abdominal lymph node metastasis prediction method, system and equipment based on comparative learning
CN119295844A
Abdominal lymph node metastasis prediction method, system and device based on contrastive learning
CN119295844B
Image analysis method based on deep learning and application thereof
CN119379693A
