Brain-like classification method of hyperspectral images for software-defined satellites
By designing the spiking neural network model ASNN based on the brain-like attention mechanism, the problem of high energy consumption of convolutional neural networks in software-defined satellites is solved, and low-energy consumption, high-precision hyperspectral image classification is achieved, which is suitable for software-defined satellites. real-time working environment.
Patent Information
- Application Number
- CN202210084998.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-01-25
AI Technical Summary
Existing hyperspectral image classification methods based on convolutional neural networks consume large amounts of energy and are difficult to apply to the real-time, low-energy working environment of software-defined satellites.
A spiking neural network model ASNN based on the brain-like attention mechanism is designed, including an 11-layer network architecture, using Izhikevich neurons and pooling neurons, combined with the spiking attention mechanism layer and channel attention module, and using approximate derivation Error backpropagation algorithm and ensemble learning classifier for real-time classification of hyperspectral images.
It achieves low-energy consumption, high-precision hyperspectral image classification, is suitable for the real-time working environment of software-defined satellites, improves classification accuracy and reduces energy consumption.
Smart Images

Figure CN114549973B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of remote sensing information processing, and in particular to a hyperspectral image brain-like classification method for software-defined satellites. Background Art
[0002] Hyperspectral images are images obtained through a hyperspectral remote sensor system. The image contains hundreds of continuous bands and a large amount of spectral information. The data obtained through hyperspectral equipment can be represented as a hyperspectral data cube. The hyperspectral data cube is a three-dimensional data structure that adds spectral dimension information to ordinary two-dimensional image information. Therefore, the hyperspectral data cube can not only obtain the spectral data of each point on the image, but also obtain the image information of any spectral band. At present, hyperspectral images have been applied to many fields, such as urban planning, agricultural and forestry development, national defense security, etc.
[0003] Typical hyperspectral image classification work is mostly done with support vector machines (SVM) and k-nearest neighbor algorithms (kNN). Currently, hyperspectral classification based on deep learning mostly uses convolutional neural networks (CNN). In addition, 3D-CNN can be used to extract spatial and spectral features from hyperspectral images for classification, which can achieve higher classification accuracy. However, convolutional neural networks require a lot of energy to achieve image classification, and software-defined satellites must use a real-time, low-energy working environment. This makes the current hyperspectral image classification method difficult to apply to software-defined satellites. Summary of the invention
[0004] In view of the problem that the existing hyperspectral image classification method based on convolutional neural network has high energy consumption and is not suitable for software-defined satellites, the present invention provides a hyperspectral image brain-like classification method for software-defined satellites.
[0005] The hyperspectral image brain classification method for software-defined satellites provided by the present invention comprises the following steps:
[0006] Step 1: Construct and train a spike neural network model ASNN based on a brain-like attention mechanism in the ground control center. The ASNN model is used to classify hyperspectral images.
[0007] Step 2: Upload the trained ASNN model to the software-defined satellite, and deploy the software and hardware environment supporting the operation of the ASNN model in the software-defined satellite;
[0008] Step 3: The ground control center controls the software-defined satellite to acquire a hyperspectral image;
[0009] Step 4: pre-processing the hyperspectral image in the software-defined satellite and inputting the pre-processed hyperspectral image into the ASNN model to obtain a real-time classification result of the hyperspectral image;
[0010] Step 5: The ground control center downloads the hyperspectral image and the corresponding classification result from the software-defined satellite.
[0011] Furthermore, the network architecture of the ASNN model includes 11 layers, which are: input layer, first pulse convolution layer, second pulse convolution layer, first pulse pooling layer, third pulse convolution layer, fourth pulse convolution layer, fifth pulse convolution layer, second pulse pooling layer, pulse attention mechanism layer, fully connected layer and output layer in the order of processing the hyperspectral image.
[0012] Furthermore, in step 1, the neuron types of the ASNN model include Izhikevich neurons and pooling neurons.
[0013] Furthermore, the Izhikevich neuron and the pooling neuron jointly realize the accumulation of pulse signals. When the internal pulse signals of both exceed the set threshold, the neuron generates excitation and realizes the information propagation of the pulse signal through the network connection.
[0014] Furthermore, the pulse attention mechanism layer includes a spatial attention module; the calculation method of the spatial attention module is shown in formula (3):
[0015]
[0016] Among them, τ θ represents a two-dimensional mapping function, i represents the subscript of the neuron in the network, G i represents a regular grid in the sampling matrix, A θ represents the affine transformation matrix, represents the target coordinates of the regular grid of the two-dimensional mapping function in the output hyperspectral image, The source coordinates in the input hyperspectral image that define the sample points.
[0017] Furthermore, the pulse attention mechanism layer includes a channel attention module; the channel attention module compresses the hyperspectral image feature map in the feature channel into a real number as the channel value of the feature channel through a compression operation, then generates a weight coefficient for each feature channel through an excitation operation, and finally multiplies the channel value of the feature channel by the corresponding weight coefficient as the output of the feature channel;
[0018] The calculation method of the compression operation is shown in formula (4):
[0019]
[0020] Among them, u c(i, j) represents the conversion output of each image pixel, H and W represent the length and width of the hyperspectral image in the feature channel, respectively. c Indicates the channel value of the feature channel.
[0021] Furthermore, the generating of a weight coefficient for each feature channel through the excitation operation specifically includes:
[0022] The importance of each feature channel is obtained by automatic learning, and a weight coefficient is generated for each feature channel according to the importance.
[0023] Furthermore, in step 1, when training the ASNN model, an approximate derivative error back propagation algorithm is used to realize the transmission of pulse signals, and a classifier based on ensemble learning is used for classification.
[0024] Furthermore, in step 4, the preprocessing of the hyperspectral image and inputting it into the ASNN model specifically includes:
[0025] Performing principal component analysis on the hyperspectral image to obtain effective hyperspectral data in the hyperspectral image;
[0026] The effective hyperspectral data is subjected to image segmentation to obtain a number of matrix blocks of set sizes, and each of the matrix blocks is sequentially used to generate a pulse signal through a pulse generator and input into the ASNN model.
[0027] Furthermore, the pulse signal is a pulse signal that conforms to Poisson distribution.
[0028] Beneficial effects of the present invention:
[0029] The present invention constructs a pulse neural network based on a brain-like attention mechanism. The network uses the Izhikevich neuron model to simulate the signal processing process of the human brain nervous system, making the network more biologically accurate; and a brain-like attention mechanism module is also designed in the network model to simulate the attention mechanism of human brain information processing. In addition, the pulse neural network has the characteristics of high energy efficiency and meets the low energy consumption requirements of the software-defined satellite operating environment. The present invention is deployed on a software-defined satellite to achieve real-time, efficient, low-energy and high-precision hyperspectral image classification. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of a process flow of a hyperspectral image brain-like classification method for software-defined satellites provided in an embodiment of the present invention;
[0031] Figure 2 A schematic diagram of the network structure of the ASNN model provided in an embodiment of the present invention;
[0032] Figure 3 A schematic diagram of the architecture of a channel-based brain-like attention mechanism provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] like Figure 1 As shown, an embodiment of the present invention provides a hyperspectral image brain classification method for software-defined satellites, comprising the following steps:
[0035] S101: constructing and training a pulse neural network model ASNN based on a brain-like attention mechanism in a ground control center, wherein the ASNN model is used to classify hyperspectral images;
[0036] Specifically, Figure 2 As shown in FIG. 1 , the network architecture of the ASNN model includes 11 layers, which are respectively: input layer, first pulse convolution layer, second pulse convolution layer, first pulse pooling layer, third pulse convolution layer, fourth pulse convolution layer, fifth pulse convolution layer, second pulse pooling layer, pulse attention mechanism layer, fully connected layer and output layer in the order of processing the hyperspectral image. Among them, the convolution layer is mainly used to adjust the image features, and the pooling layer is mainly used to compress the image features and optimize the weight parameters of the network.
[0037] The neuron types of the ASNN model include Izhikevich neurons and pooling neurons. The Izhikevich neurons and the pooling neurons jointly realize the accumulation of pulse signals. When the internal pulse signals of both exceed the set threshold, the neurons are excited and the information propagation of the pulse signal is realized through the network; if it does not exceed the threshold, the value is retained and the next pulse signal is awaited.
[0038] Specifically, the calculation formula of Izhikevich neuron is shown in formula (1):
[0039]
[0040] Among them, u is the membrane recovery variable, which is used to generally describe the behavior of ionic currents, and V represents the sensitivity of membrane potential. Izhikevich neurons are used to implement the weighted sum of the preneuron pulses at each time step.
[0041] Constructing a pulse convolution layer based on Izhikevich neurons In each time step, each neuron performs a convolution operation on the input pulse and the convolution kernel to calculate its input current and integrate it into the membrane potential. If the accumulated membrane potential exceeds the threshold, the neuron will generate an excitation pulse and reset the membrane potential, otherwise the membrane potential decays over time. The calculation formula for its input current can be expressed as:
[0042]
[0043] Where t represents the total time step, represents the total current flowing into the membrane potential of layer l+1 within time t, n l represents the total number of neurons before the lth layer, x i (t) represents the sum of the pulses of the ith front neuron in time t.
[0044] In the Pooling Neuron, the input pulse signal is averaged and downsampled to calculate its input current and integrate it into the membrane potential.
[0045] As an implementation method, the pulse attention mechanism layer includes a spatial attention module; the calculation method of the spatial attention module is shown in formula (3):
[0046]
[0047] Among them, τ θ represents a two-dimensional mapping function, i represents the subscript of the neuron in the network, G i represents a regular grid in the sampling matrix, A θ represents the affine transformation matrix, represents the target coordinates of the regular grid of the two-dimensional mapping function in the output hyperspectral image, The source coordinates in the input hyperspectral image that define the sample points.
[0048] The spatial attention module of the present invention can transform the spatial information of the original image into the attention space and retain the key information.
[0049] As an implementable method, the pulse attention mechanism layer also includes a channel attention module; the channel attention module compresses the hyperspectral image feature map in the feature channel into a real number as the channel value of the feature channel through a compression operation, and then generates a weight coefficient for each feature channel through an excitation operation, and finally multiplies the channel value of the feature channel by the corresponding weight coefficient as the output of the feature channel;
[0050] The calculation method of the compression operation is shown in formula (4):
[0051]
[0052] Among them, u c (i, j) represents the conversion output of each image pixel, H and W represent the length and width of the hyperspectral image in the feature channel, respectively. c Indicates the channel value of the feature channel.
[0053] Specifically, the generating a weight coefficient for each feature channel through the excitation operation specifically includes: obtaining the importance of each feature channel through automatic learning, and generating a weight coefficient for each feature channel according to the importance.
[0054] The channel attention module evaluates the importance of each feature and can allocate features based on the input for different tasks.
[0055] In addition, in an embodiment of the present invention, when training the ASNN model, the hyperspectral dataset used is the Indian Pines dataset or the Pavia University dataset.
[0056] Specifically, sample data is extracted from the Indian Pines dataset or the Pavia University dataset, wherein the number of samples of each type in the sample data is 200; for each type of sample data, the 200 images are divided into a training set and a validation set in a ratio of 3:1. After extraction, the remaining data in the Indian Pines dataset or the Pavia University dataset is used as a test set.
[0057] After dividing the training set, validation set and test set, all the original hyperspectral images in the Indian Pines dataset or Pavia University dataset are processed by principal component analysis (PCA) to obtain the spectral dimension carrying effective information. The size of the Indian Pines data after PCA processing is 145×145×16 (the size of the Pavia University data after PCA processing is 610×340×9); then, for the Indian Pines dataset or Pavia University dataset after PCA processing, each Indian Pines data or Pavia University data is segmented and cut into several 13×13 matrix blocks. After each small matrix block is generated with a pulse generator, it is input into the ASNN model for training.
[0058] When training the ASNN model, the approximate derivative error back propagation algorithm is used to realize the transmission of pulse signals, and the classifier based on ensemble learning is used for classification.
[0059] For example, the ensemble learning method can be implemented using ensemble learning algorithms such as boosting, bagging or stacking.
[0060] S102: Upload the trained ASNN model to the software-defined satellite, and deploy the software and hardware environment supporting the operation of the ASNN model in the software-defined satellite;
[0061] Specifically, the basic network architecture of the trained ASNN model and the trained optimal weight parameters are packaged, compressed, and then uploaded to the software-defined satellite.
[0062] S103: The ground control center controls the software-defined satellite to acquire a hyperspectral image;
[0063] Specifically, the software-defined satellite operates normally according to the set trajectory. When the satellite reaches the designated shooting area, the ground control center sends a control command to the software-defined satellite to control the software-defined satellite to shoot and acquire hyperspectral images in a specific airspace and time.
[0064] S104: preprocessing the hyperspectral image in the software defined satellite and inputting the preprocessed hyperspectral image into the ASNN model to obtain a real-time classification result of the hyperspectral image;
[0065] Specifically, the preprocessing of the hyperspectral image and inputting it into the ASNN model specifically includes: performing principal component analysis (PCA) processing on the hyperspectral image to obtain effective hyperspectral data in the hyperspectral image; performing image segmentation on the effective hyperspectral data to obtain a number of matrix blocks of a set size, and generating a pulse signal for each matrix block in turn through a pulse generator and inputting it into the ASNN model. The pulse signal is a pulse signal that conforms to the Poisson distribution.
[0066] S105: The ground control center downloads the hyperspectral image classification result or the original hyperspectral image from the software defined satellite.
[0067] In order to verify the effectiveness of the hyperspectral classification method provided by the present invention, the present invention uses the Indian Pines dataset to verify the effectiveness of the ASNN model on the ground control center, and uses the Pavia University dataset to verify the effectiveness of the ASNN model on the software-defined satellite. The test results are shown in Tables 1 and 2 respectively.
[0068] Table 1. Comparison of classification accuracy of Indian Pines dataset
[0069] Classification Model OA AA Kappa Convolutional Neural Networks (CNN) 95.96±0.52 98.50±0.26 95.23±0.61 Spiking Neural Network (SNN) 98.67±0.32 99.45±0.18 98.42±0.39 ASNN model of the present invention 98.82±0.33 99.56±0.13 98.60±0.39
[0070] Table 2. Comparison of classification accuracy of Pavia University dataset
[0071] Classification Model OA AA Kappa Convolutional Neural Networks (CNN) 97.66±0.83 98.04±0.52 96.87±1.10 Spiking Neural Network (SNN) 99.31±0.29 99.60±0.12 99.07±0.39 ASNN model of the present invention 99.60±0.14 99.76±0.05 99.46±0.19
[0072] From Table 1 and Table 2, the present invention improves the image classification accuracy of hyperspectral images by adding a brain-like attention mechanism module; and, compared with the large amount of energy consumption required by the convolutional neural network, the pulse neural network of the present invention can achieve low-energy, high-precision, and real-time image classification results, and has a promising application prospect. The present invention is mainly applied to software-defined satellites, and can achieve real-time, efficient, and low-energy classification of hyperspectral images taken by software-defined satellites.
[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A hyperspectral image brain-like classification method for software-defined satellites, characterized by: The following steps are involved: Step 1: Construct and train a pulse neural network model ASNN based on a brain-like attention mechanism in the ground control center, and the ASNN model is used to classify hyperspectral images; the network architecture of the ASNN model includes 11 layers, which are respectively: input layer, first pulse convolution layer, second pulse convolution layer, first pulse pooling layer, third pulse convolution layer, fourth pulse convolution layer, fifth pulse convolution layer, second pulse pooling layer, pulse attention mechanism layer, fully connected layer and output layer in the order of processing hyperspectral images; the neuron types of the ASNN model include Izhikevich neurons and pooling neurons; wherein the Izhikevich neurons and the pooling neurons jointly realize the accumulation of pulse signals, and when the internal pulse signals of the two exceed the set threshold, the neurons are excited and realize the information propagation of the pulse signals through the network; Step 2: Upload the trained ASNN model to the software-defined satellite, and deploy the software and hardware environment supporting the operation of the ASNN model in the software-defined satellite; Step 3: The ground control center controls the software-defined satellite to acquire a hyperspectral image; Step 4: preprocessing the hyperspectral image in the software-defined satellite and inputting the preprocessed hyperspectral image into the ASNN model to obtain a real-time classification result of the hyperspectral image; Step 5: The ground control center downloads the hyperspectral image and the corresponding classification result from the software-defined satellite.
2. The method for hyperspectral image brain classification for software-defined satellites according to claim 1, characterized in that: The pulse attention mechanism layer includes a spatial attention module; the calculation method of the spatial attention module is shown in formula (3): Among them, τ θ represents a two-dimensional mapping function, i represents the subscript of the neuron in the network, G i represents a regular grid in the sampling matrix, A θ represents the affine transformation matrix, represents the target coordinates of the regular grid of the two-dimensional mapping function in the output hyperspectral image, The source coordinates in the input hyperspectral image that define the sample points.
3. The method for hyperspectral image brain classification for software-defined satellites according to claim 1, characterized in that: The pulse attention mechanism layer includes a channel attention module; the channel attention module compresses the hyperspectral image feature map in the feature channel into a real number as the channel value of the feature channel through a compression operation, then generates a weight coefficient for each feature channel through an excitation operation, and finally multiplies the channel value of the feature channel by the corresponding weight coefficient as the output of the feature channel; The calculation method of the compression operation is shown in formula (4): Among them, u c (i, j) represents the conversion output of each image pixel, H and W represent the length and width of the hyperspectral image in the feature channel, respectively. c Indicates the channel value of the feature channel.
4. The method for hyperspectral image brain classification for software-defined satellites according to claim 3, characterized in that: The generating of a weight coefficient for each feature channel through the excitation operation specifically includes: The importance of each feature channel is obtained by automatic learning, and a weight coefficient is generated for each feature channel according to the importance.
5. The method for hyperspectral image brain classification for software-defined satellites according to claim 1, characterized in that: In step 1, when training the ASNN model, the approximate derivative error back propagation algorithm is used to realize the transmission of pulse signals, and the classifier based on ensemble learning is used for classification.
6. The method for hyperspectral image brain classification for software-defined satellites according to claim 1, characterized in that: In step 4, the preprocessing of the hyperspectral image and inputting it into the ASNN model specifically includes: Performing principal component analysis on the hyperspectral image to obtain effective hyperspectral data in the hyperspectral image; The effective hyperspectral data is subjected to image segmentation to obtain a number of matrix blocks of set sizes, and each of the matrix blocks is sequentially used to generate a pulse signal through a pulse generator and input into the ASNN model.
7. The method for hyperspectral image brain classification for software-defined satellites according to claim 6, characterized in that: The pulse signal is a pulse signal that conforms to Poisson distribution.
