Hyperspectral target detection method based on adaptive deep multi-instance neural network
Extracting high-level features of hyperspectral images through multi-instance deep convolutional networks solves the problems of over-fitting and redundant information in noisy environments, and achieves efficient and accurate hyperspectral target detection.
Patent Information
- Application Number
- CN202210350100.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-02
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-04-02
AI Technical Summary
Existing hyperspectral target detection methods are prone to overfitting in noisy environments. Features extracted by deep networks have redundant information, and inaccurate threshold selection results in low detection accuracy.
Multi-instance learning is used to model hyperspectral data, and a one-dimensional convolutional network, batch normalization layer and maximum pooling layer are used to build a multi-instance deep convolutional network to extract high-level spectral features, filter noise and remove redundant information. Adaptively select target pixels through probability score calculation to reduce false selections and missed selections.
It improves the accuracy and efficiency of target detection, reduces the risk of over-fitting, enhances the discrimination ability of the detection network, and improves detection accuracy.
Smart Images

Figure CN114898237B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image processing technology, and further relates to a hyperspectral target detection method based on an adaptive deep multi-instance neural network in the field of hyperspectral image target detection technology. The present invention can be used to detect targets in hyperspectral images such as explosive detection, food safety detection, and precise monitoring and fine classification of crops. Background Art
[0002] Hyperspectral images contain rich geometric spatial information and spectral information, which provide rich spectral features for target detection. These spectral features have excellent analytical capabilities and are the characterization of the reflectivity characteristics of the target material, which are very valuable for target detection. However, due to the mismatch between the accuracy of the sensor and the GPS positioning accuracy, the pixels marked as targets in the hyperspectral image may not necessarily exist as targets in the ground truth. The actual target position is often located in a certain range of space including the pixel, resulting in inaccurate labeling. In addition, due to the complex and diverse background, and in most cases the number of targets is much smaller than the number of backgrounds. The inaccurate labeling problem and the sample imbalance problem increase the difficulty of hyperspectral target detection and reduce the accuracy of target detection.
[0003] Jiao et al. proposed a hyperspectral target detection method in their paper "Multiple instance hybrid estimator for hyperspectral target characterization and sub-pixel target detection" (ISPRS J. Photogramm. Remote Sens., vol. 146, pp. 235–250, Dec. 2018.). The implementation steps of this method are to use multiple instance learning to model the hyperspectral image data, mark the area containing the target pixel as a positive bag, and mark the area not containing the target pixel as a negative bag, model each pixel as a linear combination of the target and / or non-target concepts, and perform hyperspectral target detection by introducing a data mixing model and optimizing the mixed pixel detector in a multiple instance learning framework. This method improves the accuracy of hyperspectral target detection, but the method still has the following shortcomings: this method models pixels as mixed pixel concepts and optimizes the model in an iterative manner. The process is complicated during training and testing, and requires more processing time. It is easy to overfit in the problem of pixel detection with large noise, resulting in low detection accuracy.
[0004] Xidian University proposed a hyperspectral target detection method in its patent application "Hyperspectral target detection method based on multi-instance deep convolutional memory network" (patent application number: CN201910943765.1, application publication number: CN 110688968 A). The implementation steps of this method are to regard the spectral features of hyperspectral data as one-dimensional time series data, use the structure of convolutional layer and LSTM to build a deep convolutional memory network to extract spectral features, and adopt an optimal threshold selection strategy to select the pixels that are most likely to be the target to replace the pixels in the positive package, participate in the subsequent optimization of the network, and use the optimized network to perform target detection on the hyperspectral image. This method introduces deep learning to extract the features of hyperspectral images, and effectively uses deep spectral features to improve the performance of hyperspectral target detection. However, the shortcomings of this method are: the spectral features extracted by the feature extraction network built by the convolutional layer and LSTM in this method have a lot of redundant information, which affects the detection efficiency. The threshold calculated by the ROC curve will cause misselection and omission when selecting targets, which increases the misjudgment of the detection network and leads to a decrease in detection performance. Summary of the invention
[0005] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and propose a hyperspectral target detection method based on an adaptive deep multi-instance neural network to solve the technical problems in the prior art that the detection of pixels with large noise is easily affected by overfitting on hyperspectral target detection, the features extracted by the deep network model have redundant information, and the threshold used cannot completely and correctly select the target pixels, resulting in low detection accuracy.
[0006] The idea of achieving the purpose of the present invention is to use multi-instance learning to model hyperspectral data, mark the area containing target pixels as positive packets, and mark the area not containing target pixels as negative packets. The pixels in the positive packets are regarded as sequence data. In order to effectively extract the high-level spectral features of the hyperspectral image, a multi-instance deep convolutional network is built using a one-dimensional convolutional network, a batch normalization BN layer, a maximum pooling layer and an activation layer. The powerful feature extraction ability of deep learning is used to extract sequence features. The network structure used in the present invention can extract the high-level essential features of the spectrum, filter the noise spectrum and remove redundant information, thereby solving the shortcomings of the prior art. At the same time, the scoring threshold is calculated based on the probability scores of all pixels in the positive packet in the multi-instance deep convolution network. A target selection strategy is used to adaptively select one or more pixels that are most likely to be the target to update the pixel labels in the positive packet and participate in the subsequent optimization of the network. The scoring threshold can largely avoid misselection and omission, thereby obtaining better detection results.
[0007] The specific steps of the present invention include the following:
[0008] Step 1. Generate training set and validation set:
[0009] Step 1.1, select at least five hyperspectral images of size W×H×Q, and use the pixels in any one of the hyperspectral images as the validation set, and the remaining hyperspectral images as the sample set. Each hyperspectral image contains four targets of different colors; where W and H represent the number of row and column pixels in each hyperspectral image, respectively, and Q represents the number of bands in the hyperspectral image. W ≥ 300, H ≥ 300, Q ≥ 72, and W and H are not equal.
[0010] Step 1.2, select each pixel of each target of different colors in each hyperspectral image of the sample set, and form each selected pixel and all pixels in a 5×5 neighborhood centered on the pixel into a positive data packet, and form the remaining non-target pixels in each hyperspectral image into a negative data packet; mark the label of each pixel in the positive data packet as 1, and mark the label of each pixel in the negative data packet as 0; all the labeled positive data packets and negative data packets form a training set;
[0011] Step 2. Build a multi-instance deep convolutional network:
[0012] Build a 16-layer multi-instance deep convolutional network, whose structure is as follows: input layer, first module, second module, third module, fully connected layer and output layer.
[0013] The first module, the second module and the third module have the same structure, which are: a one-dimensional convolution layer, a batch normalization layer, a maximum pooling layer and an activation layer.
[0014] The output layer includes a fully connected layer and a sigmoid layer;
[0015] Set the parameters of each layer as follows:
[0016] The number of convolution kernels of the one-dimensional convolutional layers in the first to third modules is set to 20, 128, and 64 respectively, and the convolution kernel size is set to 1×3. The parameters of the batch normalization layer are set to 20, 128, and 64 respectively. The pooling kernel size of the maximum pooling layer is set to 1×2, and the pooling kernel moving step is set to 1×2. The activation layer uses the ReLU activation function.
[0017] The input dimension of the fully connected layer is set to 64×6, and the output dimension is set to 1×500;
[0018] The input dimension of the fully connected layer in the output layer is set to 500, the output dimension is 1, and the sigmoid layer is implemented using the sigmoid function to calculate the probability of the input sample being detected as each class;
[0019] Step 3. Perform inner layer iterative training on the multi-instance deep convolutional network:
[0020] Step 3.1, inputting the positive data packets and negative data packets of the training set into the input layer of the multi-instance deep convolutional network, and the first module of the network outputs the first spectral feature of each pixel in the positive and negative data packets;
[0021] Step 3.2, inputting the first spectral feature of each pixel in the positive and negative data packets into the second module of the multi-instance deep convolutional network, and outputting the second spectral feature of each pixel;
[0022] Step 3.3, inputting the second spectral feature of each pixel into the third module of the multi-instance deep convolutional network, and outputting the third spectral feature of each pixel;
[0023] Step 3.4, input the third spectral feature of each pixel into the fully connected layer of the multi-instance deep convolutional network, map the feature and expand it into a one-dimensional spectral feature, then pass it through the fully connected layer in the output layer, and then output the predicted classification label of the multi-instance deep convolutional network after the sigmoid layer;
[0024] Step 3.5, using the cross entropy loss function, calculate the loss value between the predicted classification label and the target true category label, and use the back propagation algorithm to iteratively update the network parameters until the cross entropy loss function converges, and obtain the multi-instance deep convolutional network with inner layer training;
[0025] Step 4. Perform outer layer iterative training on the multi-instance deep convolutional network trained in the inner layer:
[0026] Step 4.1, input each pixel in the positive data packet in the training set into the multi-instance deep convolutional network trained in the inner layer, obtain the probability of each pixel being detected as a target through the sigmoid layer, and calculate the probability threshold λ;
[0027] Step 4.2, using the probability threshold λ to update the labels of the pixels in the positive data packet in the training set, updating the labels of the pixels with a probability greater than λ to 1, and updating the labels of the pixels with a probability less than λ to 0, to obtain the updated training set;
[0028] Step 4.3, input all pixels in the positive and negative data packets in the updated training set into the multi-instance deep convolutional network, and use the back-propagation algorithm to iteratively update the parameters of the inner-layer trained multi-instance deep convolutional network until the cross-entropy loss function converges, thereby obtaining the outer-layer trained multi-instance deep convolutional network;
[0029] Step 5. Determine whether the performance indicator NAUC of the network after the current iteration is improved. If so, execute step 4. Otherwise, take the current iteration network as the trained multi-instance deep convolutional network and execute step 6.
[0030] Step 6. Detect hyperspectral targets:
[0031] In step 6.1, the hyperspectral image to be detected is processed using the same method as step 1.2 to obtain a data set consisting of all annotated positive data packets and negative data packets in the hyperspectral image to be detected.
[0032] In step 6.2, the pixels in each positive data packet and negative data packet in the data set are input into the trained multi-instance deep convolutional network, and the probability of the pixels in the positive data packet and negative data packet to be detected being detected as each category is output through the sigmoid layer. The highest probability is selected from each category as the category of the target detection in the hyperspectral spectrum.
[0033] Compared with the prior art, the present invention has the following advantages:
[0034] First, since the multi-instance deep convolutional network constructed by the present invention includes three modules with the same structure, each module includes a one-dimensional convolutional layer, a batch normalization layer, a maximum pooling layer and an activation layer, it focuses on the more essential spectral characteristics of pixels, filters the noise spectrum, and extracts the high-level one-dimensional vector features of each pixel in each data packet in the training sample set, thereby overcoming the influence of overfitting on hyperspectral target detection in the prior art when detecting pixels with large noise, making the present invention more discriminative between target pixels and non-target pixels, avoiding overfitting on images with large noise, and improving the accuracy of target detection.
[0035] Second, since the multi-instance deep convolutional network constructed by the present invention uses the maximum pooling network layer to reduce the dimension of features, redundant information is removed, and the detection efficiency of the network is improved. The scoring threshold is calculated by the probability score of all pixels in the positive data packet in the multi-instance deep convolutional network as the basis for screening targets in the positive packet of the training set. The threshold is calculated according to the overall information of all pixels in the positive packet, which reduces the deviation caused by the imbalance of data distribution, making the pixels selected by the present invention more reliable. At the same time, the network is guided to pay more attention to the correct target samples, thereby accurately learning the target information. Compared with the existing deep network technology, it avoids the misselection and omission of target pixels in the positive data packet, enhances the discrimination ability of the detection network, and improves the accuracy of target detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a flow chart of the present invention;
[0037] Figure 2 It is a schematic diagram of target marking on a hyperspectral image in the simulation experiment of the present invention. DETAILED DESCRIPTION
[0038] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0039] Reference Figure 1 The implementation steps of the present invention are further described in detail in the following embodiments.
[0040] Step 1. Generate training set and validation set.
[0041] Step 1.1, select at least five hyperspectral images of size W×H×Q, and use the pixels in any one of the hyperspectral images as the validation set, and the remaining hyperspectral images as the sample set. Each hyperspectral image contains targets of four different colors; where W and H represent the number of row and column pixels in each hyperspectral image, respectively, and Q represents the number of bands in the hyperspectral image. W ≥ 300, H ≥ 300, Q ≥ 72, and W and H are not equal.
[0042] Step 1.2, select each pixel of each target of different colors in each hyperspectral image of the sample set, and form each selected pixel and all pixels in the 5×5 neighborhood centered on the pixel into a positive data packet, and form the remaining non-target pixels in each hyperspectral image into a negative data packet. Label each pixel in the positive data packet as 1, and label each pixel in the negative data packet as 0. All labeled positive and negative data packets form a training set.
[0043] In the embodiment of the present invention, five hyperspectral images are selected. In each image, there are four different colors including brown, pea green, dark green and faux vineyard green (FVG) targets. Except for the FVG category, each image contains 12 positive packages, and the number of positive packages of each image of the other categories is 15 targets. Therefore, each image includes 57 positive packages and 1 negative package. The sample set contains 3 hyperspectral images, and the verification set contains 1 hyperspectral image.
[0044] Step 2. Build a multi-instance deep convolutional network.
[0045] Build a 16-layer multi-instance deep convolutional network, whose structure is as follows: input layer, first module, second module, third module, fully connected layer and output layer.
[0046] The first module, the second module and the third module have the same structure, which are: a one-dimensional convolution layer, a batch normalization layer, a maximum pooling layer and an activation layer.
[0047] The output layer includes a fully connected layer and a sigmoid layer.
[0048] Set the parameters of each layer as follows:
[0049] The number of convolution kernels of the one-dimensional convolutional layers in the first to third modules are set to 20, 128, and 64 respectively, and the convolution kernel sizes are all set to 1×3. The parameters of the batch normalization layer are set to 20, 128, and 64 respectively, the pooling kernel size of the maximum pooling layer is set to 1×2, the pooling kernel moving step is set to 1×2, and the activation layer uses the ReLU activation function.
[0050] The input dimension of the fully connected layer is set to 64×6 and the output dimension is set to 1×500.
[0051] The input dimension of the fully connected layer in the output layer is set to 500, the output dimension is 1, and the sigmoid layer is implemented using the sigmoid function to calculate the probability of the input sample being detected as each category.
[0052] Step 3. Iteratively train the inner layers of the multi-instance deep convolutional network.
[0053] Step 3.1, inputting the positive data packets and negative data packets of the training set into the input layer of the multi-instance deep convolutional network, and the first module of the network outputs the first spectral feature of each pixel in the positive and negative data packets;
[0054] Step 3.2, inputting the first spectral feature of each pixel in the positive and negative data packets into the second module of the multi-instance deep convolutional network, and outputting the second spectral feature of each pixel;
[0055] Step 3.3, inputting the second spectral feature of each pixel into the third module of the multi-instance deep convolutional network, and outputting the third spectral feature of each pixel;
[0056] Step 3.4, input the third spectral feature of each pixel into the fully connected layer of the multi-instance deep convolutional network, map the feature and expand it into a one-dimensional spectral feature, then pass it through the fully connected layer in the output layer, and then output the predicted classification label of the multi-instance deep convolutional network after the sigmoid layer;
[0057] Step 3.5, using the cross entropy loss function, calculate the loss value between the predicted classification label and the target true category label, and use the back propagation algorithm to iteratively update the network parameters until the cross entropy loss function converges, and obtain the multi-instance deep convolutional network with inner layer training;
[0058] The cross entropy loss function is as follows:
[0059]
[0060] Where L represents the cross entropy loss function, M represents the number of all pixels in the positive and negative packets of the training set, log represents the logarithmic operation with base 10, and y irepresents the predicted classification label of the i-th pixel in all pixels in the positive and negative packets of the training set by the multi-instance deep convolutional network, represents the true category label of the i-th pixel among all pixels in the positive and negative packets of the training set.
[0061] Step 4. Perform outer layer iterative training on the multi-instance deep convolutional network trained in the inner layer:
[0062] Step 4.1, input each pixel in the positive data packet in the training set into the multi-instance deep convolutional network trained in the inner layer, obtain the probability of each pixel being detected as a target through the sigmoid layer, and calculate the probability threshold λ;
[0063] The method for calculating the probability of each pixel being detected as a target is as follows:
[0064] s uj =sigmoid(x uj )
[0065] Among them, s uj represents the probability that the jth pixel in the uth positive packet in the training set is detected as a target, sigmoid(·) represents the sigmoid function, x uj represents the jth pixel in the uth positive packet in the training set.
[0066] The steps of calculating the probability threshold λ are as follows:
[0067] The first step is to select the minimum value of the probability that the pixel in each positive data packet in the training set is detected as a target;
[0068] In the second step, the maximum value among the minimum values selected from all positive data packets is used as the scoring threshold λ.
[0069] In an embodiment of the present invention, 57 minimum values of the probability that a pixel is detected as a target in 57 positive data packets in a training set are selected, and a maximum value among the 57 minimum values selected from the 57 positive data packets is used as the scoring threshold λ.
[0070] Step 4.2, using the probability threshold λ to update the labels of the pixels in the positive data packet in the training set, updating the labels of the pixels with a probability greater than λ to 1, and updating the labels of the pixels with a probability less than λ to 0, to obtain the updated training set;
[0071] Step 4.3, input all pixels in the positive and negative data packets in the updated training set into the multi-instance deep convolutional network, and use the back-propagation algorithm to iteratively update the parameters of the inner-layer trained multi-instance deep convolutional network until the cross-entropy loss function converges, thereby obtaining the outer-layer trained multi-instance deep convolutional network;
[0072] Step 5. Determine whether the performance indicator NAUC of the network after the current iteration is improved. If so, execute step 4. Otherwise, take the current iteration network as the trained multi-instance deep convolutional network and execute step 6.
[0073] Step 6. Detect the hyperspectral target.
[0074] In step 6.1, the hyperspectral image to be detected is processed using the same method as step 1.2 to obtain a data set consisting of all annotated positive data packets and negative data packets in the hyperspectral image to be detected.
[0075] In step 6.2, the pixels in each positive data packet and negative data packet in the data set are input into the trained multi-instance deep convolutional network, and the probability of the pixels in the positive data packet and negative data packet to be detected being detected as each category is output through the sigmoid layer. The highest probability is selected from each category as the category of the target detection in the hyperspectral spectrum.
[0076] The effect of the present invention can be further illustrated by the following simulation.
[0077] 1. Simulation experimental conditions.
[0078] The simulation experiment of the present invention was carried out on Windows 10 Professional Chinese version, configured with a 2.9 GHz Intel i7-10700 CPU, an NVIDIA GeForce RTX 2080 Ti GPU with 11 GB video memory, the deep learning framework used was Pytorch 1.8.1, and the programming language was Python 3.7.
[0079] The images used in the simulation are five hyperspectral images of the same scene from five flights at different times. The size of each image is 325×337×72, containing 72 bands, and the spectral range is from 367.7nm to 1043.4nm. There are four target categories in each image, namely a, b, c, and d. Figure 2 As shown, Figure 2 The target a is marked with a circle, the target b is marked with a diamond, the target c is marked with a triangle, and the target d is marked with a rectangle.
[0080] The first hyperspectral image, the second hyperspectral image, and the third hyperspectral image are used as initial training sets, the fourth hyperspectral image is used as a validation set, and the fifth hyperspectral image is used as a test set.
[0081] In the simulation experiment of the present invention, the initial training generation e0=0, the maximum training generation E=500, and the learning rate l r =0.0001.
[0082] 2. Simulation experiment content and result analysis.
[0083] The simulation experiment of the present invention adopts the method of the present invention and two existing technologies (MIHE method and MICL method) to perform target detection on hyperspectral images respectively, and compares the NAUC values of targets a, b, c and d of the test data sets obtained by the three methods. The results are shown in Table 1.
[0084] The two prior arts refer to:
[0085] The hyperspectral target detection method proposed by Jiao et al. in their paper "Multiple instance hybrid estimator for hyperspectral target characterization and sub-pixel target detection" (ISPRS J. Photogramm. Remote Sens., vol. 146, pp. 235–250, Dec. 2018.) is referred to as the MIHE method.
[0086] The hyperspectral target detection method proposed by Xidian University in its patent application "Hyperspectral target detection method based on multi-instance deep convolutional memory network" (patent application number: CN201910943765.1, application publication number: CN110688968A) is referred to as the MICL method.
[0087] The calculation formula of the evaluation index NAUC of network performance in the simulation experiment of the present invention is as follows:
[0088]
[0089] Where f(x) is the ROC curve equation of the detection results of the multi-instance deep convolutional network on the validation set. The meaning of the NAUC indicator is to intercept and enlarge the first one thousandth of the ROC curve and calculate the ratio of the area under the curve to the entire coordinate system.
[0090] Table 1 NAUC comparison of three methods in simulation experiments
[0091]
[0092] As can be seen from Table 1, the hyperspectral target detection method based on adaptive deep multi-instance neural network proposed in the present invention has significantly improved NAUC results compared with the existing traditional method MIHE and deep convolutional memory network method MICL, and has good detection effect. This shows that the present invention effectively alleviates the model overfitting phenomenon caused by classification problems with large noise, and when the data distribution is unbalanced, the method of screening the target in the positive package with the help of the scoring threshold reduces the impact of data deviation and thus improves the target detection accuracy.
Claims
1. A hyperspectral target detection method based on an adaptive deep multi-instance neural network, characterized in that: Construct a multi-instance deep convolutional network, use a probability threshold to adaptively select pixels belonging to the target in the training sample set, update the pixel labels, and iteratively train the network; the steps of this method include the following: Step 1. Generate training set and validation set: Step 1.1, select at least five hyperspectral images of size W×H×Q, and use the pixels in any one of the hyperspectral images as the validation set, and the remaining hyperspectral images as the sample set. Each hyperspectral image contains four targets of different colors; where W and H represent the number of row and column pixels in each hyperspectral image, respectively, and Q represents the number of bands in the hyperspectral image. W ≥ 300, H ≥ 300, Q ≥ 72, and W and H are not equal. Step 1.2, select each pixel of each target of different colors in each hyperspectral image of the sample set, and form each selected pixel and all pixels in a 5×5 neighborhood centered on the pixel into a positive data packet, and form the remaining non-target pixels in each hyperspectral image into a negative data packet; mark the label of each pixel in the positive data packet as 1, and mark the label of each pixel in the negative data packet as 0; all the labeled positive data packets and negative data packets form a training set; Step 2. Build a multi-instance deep convolutional network: Build a 16-layer multi-instance deep convolutional network, whose structure is: input layer, first module, second module, third module, fully connected layer and output layer; The first module, the second module and the third module have the same structure, which are: a one-dimensional convolution layer, a batch normalization layer, a maximum pooling layer and an activation layer; The output layer includes a fully connected layer and a sigmoid layer; Set the parameters of each layer as follows: The number of convolution kernels of the one-dimensional convolutional layers in the first to third modules is set to 20, 128, and 64 respectively, and the convolution kernel size is set to 1×3. The parameters of the batch normalization layer are set to 20, 128, and 64 respectively. The pooling kernel size of the maximum pooling layer is set to 1×2, and the pooling kernel moving step is set to 1×2. The activation layer uses the ReLU activation function. The input dimension of the fully connected layer is set to 64×6, and the output dimension is set to 1×500; The input dimension of the fully connected layer in the output layer is set to 500, the output dimension is 1, and the sigmoid layer is implemented using the sigmoid function to calculate the probability of the input sample being detected as each class; Step 3. Perform inner layer iterative training on the multi-instance deep convolutional network: Step 3.1, inputting the positive data packets and negative data packets of the training set into the input layer of the multi-instance deep convolutional network, and the first module of the network outputs the first spectral feature of each pixel in the positive and negative data packets; Step 3.2, inputting the first spectral feature of each pixel in the positive and negative data packets into the second module of the multi-instance deep convolutional network, and outputting the second spectral feature of each pixel; Step 3.3, inputting the second spectral feature of each pixel into the third module of the multi-instance deep convolutional network, and outputting the third spectral feature of each pixel; Step 3.4, input the third spectral feature of each pixel into the fully connected layer of the multi-instance deep convolutional network, map the feature and expand it into a one-dimensional spectral feature, then pass it through the fully connected layer in the output layer, and then output the predicted classification label of the multi-instance deep convolutional network after the sigmoid layer; Step 3.5, using the cross entropy loss function, calculate the loss value between the predicted classification label and the target true category label, and use the back propagation algorithm to iteratively update the network parameters until the cross entropy loss function converges, and obtain the multi-instance deep convolutional network with inner layer training; Step 4. Perform outer layer iterative training on the multi-instance deep convolutional network trained in the inner layer: Step 4.1, input each pixel in the positive data packet in the training set into the multi-instance deep convolutional network trained in the inner layer, obtain the probability of each pixel being detected as a target through the sigmoid layer, and calculate the probability threshold λ; Step 4.2, using the probability threshold λ to update the labels of the pixels in the positive data packet in the training set, updating the labels of the pixels with a probability greater than λ to 1, and updating the labels of the pixels with a probability less than λ to 0, to obtain the updated training set; Step 4.3, input all pixels in the positive and negative data packets in the updated training set into the multi-instance deep convolutional network, and use the back-propagation algorithm to iteratively update the parameters of the inner-layer trained multi-instance deep convolutional network until the cross-entropy loss function converges, thereby obtaining the outer-layer trained multi-instance deep convolutional network; Step 5. Determine whether the performance indicator NAUC of the network after the current iteration is improved. If so, execute step 4. Otherwise, take the current iteration network as the trained multi-instance deep convolutional network and execute step 6. Step 6. Detect the target in the hyperspectral image: Step 6.1, using the same method as step 1.2, the hyperspectral image to be detected is processed to obtain a data set consisting of all annotated positive data packets and negative data packets in the hyperspectral image to be detected; In step 6.2, the pixels in each positive data packet and negative data packet in the data set are input into the trained multi-instance deep convolutional network, and the probability of the pixels in the positive data packet and negative data packet to be detected being detected as each category is output through the sigmoid layer. The highest probability is selected from each category as the category of the target detection in the hyperspectral spectrum.
2. The hyperspectral target detection method based on adaptive deep multi-instance neural network according to claim 1 is characterized in that: The cross entropy loss function described in step 3.5 is as follows: Where L represents the cross entropy loss function, M represents the total number of all pixels in the positive and negative data packets of the training set, log represents the logarithmic operation with base 10, and y i represents the predicted classification label of the i-th pixel in all pixels of the positive and negative packets of the training set by the multi-instance deep convolutional network, Represents the true category label of the i-th pixel of all pixels in the positive and negative packets of the training set.
3. The hyperspectral target detection method based on adaptive deep multi-instance neural network according to claim 1 is characterized in that: The probability of each pixel being detected as a target in step 4.1 is obtained by the following formula: s uj =sigmoid(x uj ) Among them, s uj represents the probability that the jth pixel in the uth positive packet in the training set is detected as a target, sigmoid(·) represents the sigmoid function, x uj represents the jth pixel in the uth positive packet in the training set.
4. The hyperspectral target detection method based on adaptive deep multi-instance neural network according to claim 1 is characterized in that: The steps for calculating the probability threshold λ described in step 4.1 are: The first step is to select the minimum value of the probability that the pixel in each positive data packet in the training set is detected as a target; In the second step, the maximum value among the minimum values selected from all positive data packets is used as the scoring threshold λ.
5. The hyperspectral target detection method based on adaptive deep multi-instance neural network according to claim 1 is characterized in that: The performance indicator NAUC of the network described in step 5 is obtained by the following formula: Among them, f(x) represents the ROC curve equation of the detection results of the multi-instance deep convolutional network on the validation set. The meaning of the NAUC indicator is to intercept the first one thousandth part of the ROC curve and enlarge it, and then calculate the ratio of the area under the enlarged curve to the entire coordinate system.
