An early tumor recognition system based on deep learning and hyperspectral images
An early tumor identification system that combines deep learning with hyperspectral images uses image dimensionality reduction, feature band selection, and integrated learning modules to solve the problems of comprehensive early tumor screening and marker contamination, and achieve rapid and accurate tumor identification. , overcoming the high cost and long time problems of existing technologies.
Patent Information
- Application Number
- CN202410916942.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-10
AI Technical Summary
The existing technology lacks comprehensiveness and standardization in early tumor screening, and early tumor identification methods mostly use high-cost and time-consuming marker methods, which are prone to contamination of cells. There is an urgent need for a rapid, label-free early tumor identification. system.
An early tumor identification system based on deep learning and hyperspectral images is adopted, through image dimensionality reduction, feature band selection, deep learning model and integrated learning module, combined with one-dimensional convolutional neural network, two-dimensional convolutional neural network and self-attention residual network to achieve early and accurate identification of tumors.
It achieves accurate early identification of tumors, overcomes the problems of high cost, long time and pollution in the existing technology, improves identification accuracy and robustness, and reduces over-fitting phenomena.
Smart Images

Figure CN118470440B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of early tumor identification, and in particular to an early tumor identification system based on deep learning and hyperspectral images. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] Cancer is one of the most common diseases in the world. In recent years, its morbidity and mortality rates have continued to rise, seriously endangering people's health. Cancer has become the "number one killer" of human health. At this stage, with the advancement of early cancer screening year by year, many problems have arisen in actual work. First, the early screening of tumors lacks comprehensiveness and standardization, that is, some screenings are only for specific types of cancer, and the screening cannot be comprehensive and thorough, which can easily miss the possibility of early detection of other cancers. In addition, accurate screening measures for common malignant tumors and a full-process health management system for early diagnosis and treatment have not yet been established. Secondly, the current means of early tumor identification mostly use tumor markers, which have the disadvantages of high cost and long waiting time, and this method requires labeling, which is easy to contaminate cells. Therefore, there is an urgent need for a comprehensive, rapid and label-free tumor early identification system to be applied in the field of early tumor identification. Summary of the invention
[0004] In view of the shortcomings of the prior art, the purpose of the present invention is to provide an early tumor identification system based on deep learning and hyperspectral images, which combines the advantages of the spectral information of hyperspectral images themselves and the integration of prediction results of multiple deep learning models to achieve accurate early tumor identification.
[0005] In order to achieve the above object, the present invention is implemented through the following technical solutions:
[0006] The first aspect of the present invention provides a system for early tumor recognition based on deep learning and hyperspectral images, comprising:
[0007] Image dimension reduction module, used to obtain hyperspectral images, extract spectral information in hyperspectral images, and convert three-dimensional hyperspectral images into one-dimensional data;
[0008] The characteristic band selection module is used to perform difference analysis on the extracted spectral information and determine the characteristic band according to the analysis results;
[0009] A deep learning model module is used to build a tumor recognition model and use the tumor recognition model to perform preliminary tumor recognition on the spectral information under the selected characteristic bands;
[0010] The integrated learning module is used to perform integrated learning on the preliminary tumor recognition results, optimize the tumor recognition model according to the integrated learning results, and use the optimized tumor recognition model to recognize the hyperspectral image to be tested to obtain the final tumor recognition result.
[0011] Furthermore, in the image dimension reduction module, the specific steps of extracting spectral information from the hyperspectral image are as follows:
[0012] Select some pixels for pixel sampling by adopting equal interval sampling method;
[0013] Extract the spectral information of the selected pixel.
[0014] Furthermore, the reduction factor is selected based on the proportion of the original image occupied by different tumor regions, thereby determining the sampling interval.
[0015] Furthermore, the length and width of the tumor region need to be considered in the process of shrinkage factor selection to determine the sampling intervals in the horizontal and vertical directions.
[0016] Furthermore, in the feature band selection module, the specific steps of performing difference analysis on the extracted spectral information are as follows:
[0017] The spectral information is extracted separately through a variety of feature selection methods;
[0018] The band with the largest spectral information difference in each feature selection method is selected as the candidate feature band;
[0019] The intersection of all selected candidate feature bands is selected as the appropriate feature band.
[0020] Furthermore, the multiple feature selection methods include two linear feature selection methods and two nonlinear feature selection methods.
[0021] Furthermore, in the deep learning model module, the tumor recognition model consists of two layers. The first layer model includes a one-dimensional convolutional neural network and a two-dimensional convolutional neural network, and the second layer model includes a self-attention residual network. The spectral information under the selected feature band passes through the one-dimensional convolutional neural network, the two-dimensional convolutional neural network and the self-attention residual network in sequence.
[0022] Furthermore, the specific steps of using the tumor recognition model to perform preliminary tumor recognition on the spectral information under the selected characteristic band are as follows:
[0023] A one-dimensional convolutional neural network is used to select a corresponding number of pixel point spectral information according to the characteristic band range to form a two-dimensional image;
[0024] Use a two-dimensional convolutional neural network to capture contextual information in a two-dimensional image and obtain a two-dimensional image with enhanced features;
[0025] The self-attention mechanism in the self-attention residual network is used to perform self-attention calculation on the two-dimensional image, and the preliminary tumor recognition result is obtained based on the calculation result.
[0026] Furthermore, the specific steps of the self-attention calculation are:
[0027] Map the two-dimensional image into three different spaces and perform self-attention calculations;
[0028] Assign different weights to different parts of the 2D image based on the attention score;
[0029] Different regions of the two-dimensional image are weighted according to the assigned weights.
[0030] Furthermore, in the integrated learning module, the specific steps of integrated learning of the preliminary tumor recognition results are as follows:
[0031] The preliminary tumor recognition results were used to train the one-dimensional convolutional neural network and the two-dimensional convolutional neural network respectively;
[0032] The two trained models are combined to form the first integrated model, and the prediction results of the two models are summarized as the first-level prediction results using the weighted voting method;
[0033] The self-attention residual network was trained using the same training set as the two-dimensional convolutional neural network. The prediction results of the trained self-attention residual network model were summarized using the weighted voting method. The two output results of the self-attention residual network model and the first integrated model were integrated to obtain the optimized tumor recognition model.
[0034] One or more of the above technical solutions have the following beneficial effects:
[0035] The present invention discloses an early tumor recognition system based on deep learning and hyperspectral images, which realizes accurate early tumor recognition by accurately extracting spectral information from hyperspectral images and constructing a double-layer deep learning network. The present invention further optimizes the tumor recognition model composed of the double-layer deep learning network by means of integrated learning, thereby improving the accuracy of tumor recognition and overcoming the problems of high cost, long time and easy contamination caused by tumor marking in the prior art.
[0036] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0038] Figure 1 This is a framework diagram of the recognition process of the early tumor recognition system based on deep learning and hyperspectral images in the present invention. DETAILED DESCRIPTION
[0039] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0040] It should be noted that in the embodiments of the present invention, data related to hyperspectral images are involved. When the above embodiments of the present invention are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0041] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "include" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or their combinations;
[0042] Embodiment 1:
[0043] Embodiment 1 of the present invention provides an early tumor recognition system based on deep learning and hyperspectral images, including an image dimension reduction module, a feature band selection module, a deep learning model module and an integrated learning module.
[0044] like Figure 1 As shown, the image dimension reduction module is used to obtain a hyperspectral image, extract spectral information in the hyperspectral image, and convert the three-dimensional hyperspectral image into one-dimensional data.
[0045] The characteristic band selection module is used to perform difference analysis on the extracted spectral information and determine the characteristic band according to the analysis results.
[0046] The deep learning model module is used to build a tumor recognition model and use the tumor recognition model to perform preliminary tumor recognition on the spectral information under the selected characteristic bands.
[0047] The integrated learning module is used to perform integrated learning on the preliminary tumor recognition results, optimize the tumor recognition model according to the integrated learning results, and use the optimized tumor recognition model to recognize the hyperspectral image to be tested to obtain the final tumor recognition result.
[0048] In a specific implementation, in the image dimension reduction module, the specific steps of extracting spectral information from the hyperspectral image are:
[0049] The pixel points are selected by equal-interval sampling, where the reduction factor is selected based on the proportion of the original image occupied by different tumor areas to determine the sampling interval. The length and width of the tumor area should be considered in the selection of the reduction factor to determine the sampling interval in the horizontal and vertical directions.
[0050] Specifically, let the size of the original image be W*H, and the number of pixels occupied by the tumor area be N. Select appropriate width and length reduction factors based on different tumors to ensure that the total number of pixels selected in the tumor area under the reduction factor is not less than 3N / 4, set as k1 and k2 respectively, then the sampling interval is: W / k1, W / k2. That is, take a pixel every W / k1 in the horizontal direction of the original image and every W / k2 in the vertical direction to ensure that the taken pixel represents the characteristics of the original image. Extract the spectral information of the selected pixel and select the characteristic band.
[0051] In a specific implementation, in the characteristic band selection module, the specific steps of performing difference analysis on the extracted spectral information are as follows:
[0052] The features of the spectral information are extracted respectively by using a variety of feature selection methods, wherein the multiple feature selection methods include two linear feature selection methods and two nonlinear feature selection methods.
[0053] The band with the largest spectral information difference in each feature selection method is selected as the candidate feature band;
[0054] The intersection of all selected candidate feature bands is selected as the appropriate feature band.
[0055] This embodiment selects two traditional linear feature selection methods: principal component analysis method and t-test analysis method, and selects two new nonlinear feature selection methods: kernel principal component analysis method and genetic algorithm to select feature bands. In each selection method, the band with the largest difference in spectral information is selected as the feature band. For example, under the t-test, the band with a p value of <0.05 is selected as the most suitable feature band under this test method. The intersection of the four feature band results of the two linear methods and the two nonlinear methods is selected as the most suitable feature band, and the spectral information under the feature band is sent as input to the subsequent deep learning model to improve the accuracy of the deep learning model.
[0056] In a specific embodiment, in the deep learning model module, the tumor recognition model is composed of two layers, the first layer model includes a one-dimensional convolutional neural network and a two-dimensional convolutional neural network, the second layer model includes a self-attention residual network, and the one-dimensional spectral information under the selected feature band passes through the one-dimensional convolutional neural network; the one-dimensional spectral information is processed into a two-dimensional image and then sent to the two-dimensional convolutional neural network and the self-attention residual network, and then integrated learning is performed subsequently to improve robustness and reduce the occurrence of overfitting.
[0057] The specific steps of using the tumor recognition model to perform preliminary tumor recognition on the spectral information under the selected characteristic band are as follows:
[0058] A one-dimensional convolutional neural network is used to select the corresponding number of pixel spectral information according to the characteristic band range to form a two-dimensional image. Specifically, the spectral information of the pixel points extracted from the image dimension reduction module within the selected characteristic band range is expanded to the image grayscale range, that is, the maximum value in the spectral information is taken as I max , then for any spectral value I , its expanded value P = I *255 / I max , the extracted pixels are arranged to form a two-dimensional image. For example, if a total of 1024 pixels are extracted and the characteristic band range of the screening is 400-700nm, the size of the arranged two-dimensional image is 1024×300.
[0059] A two-dimensional convolutional neural network is used to capture the contextual information in a two-dimensional image and obtain a two-dimensional image with enhanced features. Specifically, the contextual information in a convolutional neural network can be understood as the feature information extracted after the convolution kernel slides on the image to perform a convolution operation. A normal convolution kernel is a connected n×n kernel, while a dilated convolution adds gaps (holes) between the elements of the convolution kernel. The specific number of gaps is controlled by the parameter expansion rate. The two-dimensional convolutional neural network introduces dilated convolution in the convolution layer of the network structure, so that the receptive field has a variable scale, and a larger receptive field is obtained without increasing the parameters and computational complexity of the neural network, thereby better capturing the contextual information in the spectral image.
[0060] The self-attention mechanism in the self-attention residual network is used to perform self-attention calculation on the two-dimensional image, and the preliminary tumor recognition result is obtained based on the calculation result.
[0061] Among them, the specific steps of self-attention calculation are:
[0062] The two-dimensional image is mapped to three different spaces, and self-attention calculation is performed; the three spaces are Q, K, and V spaces when the self-attention mechanism is calculated.
[0063] Different weights are assigned to different parts of the 2D image according to the attention scores.
[0064] Different regions of the two-dimensional image are weighted according to the assigned weights to improve the accuracy of model classification.
[0065] Specifically, by applying the self-attention mechanism, the self-attention scores of different positions on the two-dimensional image are obtained, and the median of the scores obtained at all positions is selected as the threshold T. When the model is classified, the features in the area with a score less than T / 2 are discarded, and the feature weights of the areas with scores between T / 2 and 3T / 2 are set to 1, and the feature weights of the areas with scores greater than 3T / 2 are set to 2, so that the features used by the model are more representative.
[0066] In a specific embodiment, in the integrated learning module, a hierarchical integrated learning method strategy is adopted to hierarchically combine the prediction results of the basic model through a series of integrated modules. Each integrated module can be integrated according to different rules or weights, and the final prediction result is obtained by weighted average of multiple levels. Specifically, the specific steps of integrated learning of the preliminary tumor identification results are:
[0067] The preliminary tumor identification results were used to divide the training set and the validation set in a ratio of 7:3. The design level was 2 layers. The first layer was to train the one-dimensional convolutional neural network and the two-dimensional convolutional neural network respectively. The two trained models were combined to form the first integrated model. The weighted voting method was used to summarize the prediction results of the two models as the first-layer prediction results.
[0068] The specific steps of using the weighted voting method to summarize the prediction results of the two models as the first-layer prediction results are as follows: the first integrated model includes 6 one-dimensional convolutional neural networks and 4 two-dimensional convolutional neural networks as base learners, and the result of each base learner is used as one vote. The weight of the one-dimensional convolutional neural network is 1, and the weight of the two-dimensional convolutional neural network is set to 2; the classification votes must be multiplied by their own weights, and finally the weighted votes of each category are summed up, and the two results corresponding to the maximum vote value and the second largest vote value are output as the output A and output B of the first integrated model respectively. The initial weight of output A is set to 2, and the initial weight of output B is set to 1, and integrated learning is performed again with the self-attention residual network.
[0069] The second level is to train the self-attention residual network using the same training set as the two-dimensional convolutional neural network, and use the weighted voting method to summarize the prediction results of the trained self-attention residual network model. The two output results of the self-attention residual network model and the first integrated model are integrated to obtain the second integrated model as the optimized tumor recognition model.
[0070] The specific steps of summarizing the prediction results of the trained self-attention residual network model using the weighted voting method are as follows: the second integrated model includes the two output results A and B of the first integrated model, and three self-attention residual network models as base learners. The weight of the self-attention residual network is set to 1. If its output is the same as the output A and B of the first integrated model, the votes are attributed to A or B, and finally the result with the highest number of votes is selected as the final result of the overall model.
[0071] The validation set data was then used to evaluate the performance of the two-layer integrated model. After completing the training and evaluation of the model, the final tumor recognition model was applied to unknown data for prediction.
[0072] Although the specific implementation modes of the present invention are described above in conjunction with the accompanying drawings, this does not limit the protection scope of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the protection scope of the present invention.
Claims
1. An early tumor recognition system based on deep learning and hyperspectral images, characterized in that: include: Image dimension reduction module, used to obtain hyperspectral images, extract spectral information in hyperspectral images, and convert three-dimensional hyperspectral images into one-dimensional data; The characteristic band selection module is used to perform difference analysis on the extracted spectral information and determine the characteristic band according to the analysis results; A deep learning model module is used to build a tumor recognition model and use the tumor recognition model to perform preliminary tumor recognition on the spectral information under the selected characteristic bands; An integrated learning module is used to perform integrated learning on the preliminary tumor recognition results, optimize the tumor recognition model according to the integrated learning results, and use the optimized tumor recognition model to recognize the hyperspectral image to be tested to obtain the final tumor recognition result; In the deep learning model module, the tumor recognition model consists of two layers. The first layer model includes a one-dimensional convolutional neural network and a two-dimensional convolutional neural network, and the second layer model includes a self-attention residual network. The spectral information under the selected feature band passes through the one-dimensional convolutional neural network, the two-dimensional convolutional neural network and the self-attention residual network in sequence. The specific steps of using the tumor recognition model to perform preliminary tumor recognition on the spectral information under the selected characteristic band are: using a one-dimensional convolutional neural network to select a corresponding number of pixel point spectral information according to the characteristic band range to arrange and form a two-dimensional image; using a two-dimensional convolutional neural network to capture contextual information in the two-dimensional image to obtain a two-dimensional image after feature enhancement; using the self-attention mechanism in the self-attention residual network to perform self-attention calculation on the two-dimensional image, and obtaining a preliminary tumor recognition result according to the calculation result; the specific steps of the self-attention calculation are: mapping the two-dimensional image to three different spaces and performing self-attention calculation; assigning different weights to different parts of the two-dimensional image according to the attention score; and performing weighted processing on different areas of the two-dimensional image according to the assigned weights; In the integrated learning module, the specific steps for integrated learning of the preliminary tumor recognition results are as follows: use the preliminary tumor recognition results to train the one-dimensional convolutional neural network and the two-dimensional convolutional neural network respectively; combine the two trained models to form a first integrated model, and use the weighted voting method to summarize the prediction results of the two models as the first-layer prediction results; use the same training set as the two-dimensional convolutional neural network to train the self-attention residual network, use the weighted voting method to summarize the prediction results of the trained self-attention residual network model, and integrate the two output results of the self-attention residual network model and the first integrated model to obtain an optimized tumor recognition model.
2. The early tumor recognition system based on deep learning and hyperspectral images according to claim 1, characterized in that: In the image dimensionality reduction module, the specific steps for extracting spectral information from hyperspectral images are: Select some pixels for pixel sampling by adopting equal interval sampling method; Extract the spectral information of the selected pixel.
3. The early tumor recognition system based on deep learning and hyperspectral images as claimed in claim 2, characterized in that: The reduction factor is selected based on the proportion of the original image occupied by different tumor areas, thereby determining the sampling interval.
4. The early tumor recognition system based on deep learning and hyperspectral images as claimed in claim 3, characterized in that: The length and width of the tumor region need to be considered in the process of selecting the reduction factor, thereby determining the sampling interval in the horizontal and vertical directions.
5. The early tumor recognition system based on deep learning and hyperspectral images according to claim 1, characterized in that: In the feature band selection module, the specific steps for performing difference analysis on the extracted spectral information are as follows: The spectral information is extracted separately through a variety of feature selection methods; The band with the largest spectral information difference in each feature selection method is selected as the candidate feature band; The intersection of all selected candidate feature bands is selected as the appropriate feature band.
6. The early tumor recognition system based on deep learning and hyperspectral images according to claim 5, characterized in that: The multiple feature selection methods include two linear feature selection methods and two nonlinear feature selection methods.
