A fast network compression method for remote sensing image change detection based on model collaboration

The convolutional neural network structure is optimized through multi-objective evolutionary algorithms and Gaussian process models, which solves the problem of slow compression speed of convolutional neural networks in remote sensing image change detection, enables real-time detection on small devices, and improves compression speed and accuracy. .

CN114387525BActive Publication Date: 2024-10-01XIDIAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111389477.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-22
Publication Date
2024-10-01
Estimated Expiration
2041-11-22

AI Technical Summary

Technical Problem

In the existing technology, in the remote sensing image change detection, the compression speed of the convolutional neural network is slow and relies on artificially designed pruning rules, resulting in poor adaptability and the inability to detect in real time on satellites or small devices.

Method used

Adopt a fast compression method based on model collaboration, utilize multi-objective evolutionary algorithms and Gaussian process models, and optimize the convolutional neural network structure through pruning and building proxy models to avoid repeated training and improve compression speed and accuracy.

Benefits of technology

It realizes real-time remote sensing image change detection on satellites or small devices, improves compression speed and accuracy, avoids the limitations of artificial design rules, and ensures model performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114387525B_ABST
    Figure CN114387525B_ABST
Patent Text Reader

Abstract

The invention discloses a rapid compression method for a remote sensing image change detection network based on model collaboration, comprising: obtaining an initial remote sensing image change detection network and determining an encoding method; generating a first generation population; evaluating and establishing a first generation Gaussian process training set; obtaining a child population; obtaining a medium fidelity model and a low fidelity model of individuals in the child population, and using the two to obtain a proxy model; evaluating individuals in the child population; obtaining a Pareto front surface from a merged population and selecting a preset number of excellent individuals and selecting some excellent individuals for evaluation; judging whether a maximum number of iterations has been reached; if not, using a preset number of excellent individuals as the next generation population and obtaining the next generation Gaussian process training set to return the iteration; if so, obtaining a compressed optimal remote sensing image change detection network from individuals at inflection points on the Pareto front surface of the optimal population. The invention can avoid the limitations of artificially designed compression rules, while ensuring compression rate and accuracy, and improving compression speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of remote sensing image processing, and in particular relates to a remote sensing image change detection network fast compression method based on model collaboration. Background Art

[0002] Change detection refers to the process of identifying differences in the state of an object or phenomenon by observing it at different times. In the field of remote sensing image processing, change detection refers to identifying differences between remote sensing images acquired at different times within the same geographic area. Currently, remote sensing image change detection technology has been widely used in various fields, including disaster assessment, environmental monitoring, land management, and urban change analysis.

[0003] Since convolutional neural networks can automatically extract image features from raw data and thus adapt to various situations of remote sensing image change detection, they have been widely used in remote sensing image change detection. When using convolutional neural networks for remote sensing image change detection, change detection is usually treated as a binary classification problem, that is, whether a change has occurred. The specific change content can be regarded as a multi-class classification problem, and then the remote sensing image change detection data set can be used for training. However, the practical application of convolutional neural networks is often limited by the number of parameters and the amount of calculation. For example, the classic artificial convolutional neural network VGG16 contains about 140 million floating-point parameters. If each parameter is stored in a 32-bit floating-point format, the trained VGG16 model requires more than 500MB of storage space, and it takes about 300 million floating-point operations to calculate one image. Such a large amount of calculation is difficult to perform on satellites and various portable devices. Therefore, compressing the trained convolutional neural network model and providing it to satellites or other small devices is a key step in enabling the convolutional neural network model to perform change detection on remote sensing images in real time on satellites or other small devices.

[0004] Hao Li and Asmi Kadav proposed to completely prune the convolutional layer in the paper "Pruning filters for efficient convnets" (arXiv preprint arXiv:1608.08710, 2016.), taking the weight parameter of the convolution window after L1 regularization as the contribution of the convolution window, discarding the m convolution windows with the lowest contribution in each round of iteration to achieve the purpose of compressing the convolutional neural network, and then training the pruned network and repeating this process continuously.

[0005] Sajid Anwar, Kyuyeon Hwang, and Wonyong Sung used the same pruning method to compress convolutional neural networks in the paper "Structured Pruning of Deep Convolutional Neural Networks". The difference is that this paper uses N convolution unit filters (Particle Filters) to prune the corresponding convolution layer. Each convolution unit is assigned a score according to its impact on the accuracy of the model on the validation data set. Convolution units with low scores will be filtered out to achieve the purpose of compressing the model. The pruning of convolution units and model training are also iterative.

[0006] The above two methods of compressing convolutional neural networks are to prune the convolutional layers, discard the convolutional layers that have little impact on network performance, and then retrain the pruned network, and iterate repeatedly to achieve the purpose of compressing the convolutional neural network. However, the disadvantage of this method is that each pruning requires retraining the convolutional neural network, and remote sensing images are usually large in size. Training convolutional neural networks for remote sensing image transformation detection usually requires a large computational cost and a long time, which leads to very slow compression speed. In addition, the pruning rules need to be set manually, which depends on the designer's experience and has poor adaptability. The changes in remote sensing images have great uncertainty. Whether the model can be compressed as much as possible while ensuring the performance of the model is greatly affected by the pruning rules. Summary of the invention

[0007] In order to solve the above problems existing in the prior art, the present invention provides a remote sensing image change detection network fast compression method based on model collaboration. The technical problem to be solved by the present invention is achieved through the following technical solutions:

[0008] A remote sensing image change detection network fast compression method based on model collaboration, comprising:

[0009] The preset convolutional neural network is trained using the training set in the remote sensing image change detection dataset to obtain the initial remote sensing image change detection network, and the encoding method when encoding it into individual chromosomes is determined;

[0010] Randomly generate a preset number of individual chromosomes according to the encoding method to form a first-generation population; wherein each generation of the population contains the preset number of individuals, and the chromosome of each individual represents a remote sensing image change detection network;

[0011] Evaluate the first generation population and establish the first generation Gaussian process training set; wherein the input of each generation Gaussian process training set is the chromosome of the individual in the population of that generation, and the output is the evaluation result of the remote sensing image change detection network corresponding to the chromosome of the individual in the population of that generation; the evaluation result includes accuracy and compression rate;

[0012] Using the preset multi-objective evolutionary algorithm, the offspring population is obtained from the current generation population;

[0013] Using the current generation of Gaussian process training set to learn a Gaussian regression process model as a medium-fidelity model, based on the offspring inheriting the parent network weight parameters, a low-fidelity model corresponding to each individual in the offspring population is obtained, and two fidelity models are used to obtain a proxy model for each individual in the offspring population;

[0014] The individuals in the offspring population are evaluated using the medium-fidelity model and the low-fidelity model corresponding to the individuals to obtain an evaluation result corresponding to each individual; the population Pareto front surface is obtained by combining the offspring population and the current generation population, the preset number of excellent individuals are selected from the combined population according to the evaluation results corresponding to the individuals, and some of the excellent individuals are selected for evaluation using the remote sensing image change detection data set;

[0015] Determine whether the current generation reaches the preset maximum number of iterations; if not, use the preset number of excellent individuals as the next generation population, use some of the evaluated excellent individuals to obtain the Gaussian process training set of the next generation, and return to execute the step of obtaining the offspring population from the current generation population using the preset multi-objective evolutionary algorithm; if so, select the individuals at the inflection point on the Pareto front surface of the optimal population from the obtained Pareto front surfaces of all populations to obtain the compressed optimal remote sensing image change detection network.

[0016] In one embodiment of the present invention, the determining of the encoding method when encoding the chromosome as an individual includes:

[0017] The number of convolutional layers, the number of fully connected layers, and the number of neurons in each fully connected layer in the initial remote sensing image change detection network are used to determine the binary code length when the initial remote sensing image change detection network is encoded into individual chromosomes using binary characters.

[0018] In one embodiment of the present invention, the calculation formula of the binary code length includes:

[0019]

[0020] Wherein, L represents the length of the binary code; L crepresents the number of convolutional layers in the initial remote sensing image change detection network; f represents the number of fully connected layers in the initial remote sensing image change detection network; l i Represents the number of neurons in the i-th fully connected layer in the initial remote sensing image change detection network.

[0021] In one embodiment of the present invention, the step of evaluating the first generation population and establishing the first generation Gaussian process training set includes:

[0022] For the remote sensing image change detection network corresponding to each individual in the first-generation population, the training set is used for training, and the test set in the remote sensing image change detection data set is used for testing, so as to obtain an evaluation result of the remote sensing image change detection network corresponding to each individual in the first-generation population;

[0023] The chromosome of each individual in the first generation population is used as input, and the evaluation result corresponding to the individual is used as output to establish a first generation Gaussian process training set.

[0024] In one embodiment of the present invention, the preset multi-objective evolutionary algorithm includes:

[0025] NSGA-Ⅱ algorithm.

[0026] In one embodiment of the present invention, the Gaussian process training set of the current generation is used to learn a Gaussian regression process model as a medium-fidelity model, and based on the offspring inheriting the parent network weight parameters, a low-fidelity model corresponding to each individual in the offspring population is obtained, and two fidelity models are used to obtain a proxy model for each individual in the offspring population, including:

[0027] Using the remote sensing image change detection network corresponding to each individual in the current generation of Gaussian process training set and the evaluation results corresponding to each individual, a Gaussian regression process model is learned as a medium-fidelity model;

[0028] For the remote sensing image change detection network corresponding to each individual in the offspring population, a network obtained by inheriting the weight parameters of the remote sensing image change detection network corresponding to the parent individual is directly tested using the test set to obtain a low-fidelity model corresponding to each individual in the offspring population;

[0029] The medium-fidelity model and each low-fidelity model are combined using a weighted average method to obtain a proxy model for each individual in the offspring population.

[0030] In one embodiment of the present invention, the use of the medium-fidelity model and the low-fidelity model corresponding to the individual to evaluate the individuals in the offspring population to obtain the evaluation result corresponding to each individual includes:

[0031] Inputting the chromosome of each individual in the offspring population into the medium-fidelity model respectively, completing the first evaluation of each individual in the offspring population;

[0032] Testing the test set on the low-fidelity model corresponding to each individual in the offspring population, completing a second evaluation of each individual in the offspring population;

[0033] For each individual in the offspring population, the results of two evaluations of the individual are taken using a weighted average method to obtain an evaluation result corresponding to the individual.

[0034] In one embodiment of the present invention, selecting the preset number of excellent individuals from the merged population according to the evaluation results corresponding to the individuals, and selecting some of the excellent individuals for evaluation using the remote sensing image change detection dataset, comprises:

[0035] Sort the individuals in the merged population from best to worst according to the evaluation results, select the preset number of excellent individuals in front from the sorted individual sequence, and select some of the excellent individuals in front; wherein the number of the some excellent individuals is much smaller than the preset number;

[0036] Using the training set to train a remote sensing image change detection network corresponding to each individual in the part of excellent individuals, and using the test set to perform testing, to obtain an evaluation result of the remote sensing image change detection network corresponding to each individual in the part of excellent individuals;

[0037] The method of using some of the excellent individuals after the evaluation to obtain the next generation of Gaussian process training sets includes:

[0038] The chromosomes of each individual in the part of excellent individuals and the evaluation results of the corresponding remote sensing image change detection network are added to the Gaussian process training set of the current generation to obtain the Gaussian process training set of the next generation.

[0039] In one embodiment of the present invention, the individuals at the inflection points on the optimal population Pareto front surface selected from all obtained population Pareto front surfaces, obtaining a compressed optimal remote sensing image change detection network, comprises:

[0040] The excellent individuals after each evaluation are sorted from best to worst according to the evaluation results, and the first individual is selected from the sorted individual sequence to obtain a candidate remote sensing image change detection network;

[0041] The candidate remote sensing image change detection network is trained for multiple rounds using the training set, and the test result is obtained using the test set. When the test result meets the requirements, the trained candidate remote sensing image change detection network is determined as the compressed optimal remote sensing image change detection network.

[0042] In one embodiment of the present invention, after obtaining the compressed optimal remote sensing image change detection network, the method further includes:

[0043] The compressed optimal remote sensing image change detection network is transplanted to a satellite or other small portable devices to detect the changes of remote sensing images in real time.

[0044] In the solution provided by the embodiment of the present invention, the remote sensing image change detection network is compressed by pruning the convolutional neural network so that it can run on a satellite or other portable device, thereby improving the real-time performance of remote sensing image change detection. In addition, by using a multi-objective evolutionary algorithm to search for the optimal structure of the remote sensing image change detection network, the limitations of artificially designed compression rules are avoided, and accuracy is guaranteed while compressing. In addition, by combining medium and low fidelity models, an agent model is constructed to evaluate the remote sensing image change detection network, which can avoid the problem of slow compression caused by multiple trainings and improve the compression speed of the network.

[0045] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A schematic diagram of a flow chart of a network fast compression method for remote sensing image change detection based on model collaboration provided by an embodiment of the present invention;

[0047] Figure 2 Figure (a) and (b) are a pair of simulated remote sensing images of the same geographical area but at different times;

[0048] Figure 2 (c) After using the method of the embodiment of the present invention Figure 2 (a) and Figure 2 (b) Change detection results;

[0049] Figure 3 (a) and Figure 3 (b) is a pair of measured remote sensing images of the same geographical area but at different times;

[0050] Figure 3 (c) After using the method of the embodiment of the present invention Figure 3 (a) and Figure 3 (b) Change detection results;

[0051] Figure 4 (a) and Figure 4 (b) another pair of measured remote sensing images of the same geographical area but at different times;

[0052] Figure 4 (c) After using the method of the embodiment of the present invention Figure 4 (a) and Figure 4 (b) Change detection results. DETAILED DESCRIPTION

[0053] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.

[0054] In order to solve the problems in the prior art of compressing convolutional neural networks for remote sensing image change detection, such as slow compression speed due to large size of remote sensing images and slow training, and the need to manually design compression rules, resulting in poor adaptability and failure to guarantee model performance, etc., a method for fast compression of remote sensing image change detection networks based on model collaboration is proposed in an embodiment of the present invention.

[0055] See also Figure 1 , Figure 1 A schematic diagram of a flow chart of a network fast compression method for remote sensing image change detection based on model collaboration provided by an embodiment of the present invention, the method comprising the following steps:

[0056] S1, using the training set in the remote sensing image change detection dataset to train the preset convolutional neural network, to obtain the initial remote sensing image change detection network, and to determine the encoding method when encoding it into individual chromosomes.

[0057] Specifically, any artificial convolutional neural network can be obtained as a preset convolutional neural network; a remote sensing image change detection data set is obtained, and the remote sensing image change detection data set is divided into a training set and a test set; the preset convolutional neural network is trained using the training set, and the trained network is called an initial remote sensing image change detection network.

[0058] The remote sensing image change detection dataset can be any existing dataset containing remote sensing image change detection data, or it can be generated by itself using simulated or measured remote sensing image data. There is no limit on the ratio of the training set to the test set, for example, it can be 7:3. For ease of understanding, the training set can be represented by D t Indicates that the test set can be used with D v express.

[0059] The initial remote sensing image change detection network is a trained neural network for remote sensing image change detection, and is a network that needs to be compressed in the embodiment of the present invention.

[0060] After obtaining the initial remote sensing image change detection network, it is necessary to use it to determine the encoding method used uniformly when each subsequent remote sensing image change detection network is encoded as an individual chromosome. In an optional implementation, the encoding method includes: each chromosome is encoded using binary characters to obtain binary codes of the same length; wherein each bit of the binary code represents the connection state of the neuron or convolutional layer at the corresponding position, 1 represents connection, and 0 represents disconnection.

[0061] Therefore, in the encoding method, it is mainly necessary to use the initial remote sensing image change detection network to determine the length of the binary code when encoding it into individual chromosomes. In the embodiment of the present invention, the parameters of the initial remote sensing image change detection network in terms of size, structure, etc. can be used to determine the length of the binary code. For example, the number of one or more types of layers in the initial remote sensing image change detection network can be used to determine the length of the binary code. The specific selection can be made as needed. The length of the binary code can be represented by L.

[0062] S2, randomly generating a preset number of individual chromosomes according to the encoding method to form a first-generation population.

[0063] Each generation of the population contains the preset number of individuals, which can be expressed as N. p The j-th generation population can be expressed as P j ; The first generation population is represented by P 0 ; where j is a natural number. Each individual chromosome represents a remote sensing image change detection network.

[0064] Specifically, N is randomly generated using a binary code random generation method. p L-dimensional vectors form the first generation population. Each vector represents the chromosome of an independent individual. Each element in the vector is a binary value, 1 represents connection and 0 represents disconnection. Each vector can be decoded into a remote sensing image change detection network.

[0065] S3, evaluating the first generation population and establishing a first generation Gaussian process training set.

[0066] The input of the Gaussian process training set of each generation is the chromosomes of the individuals in the population of that generation, and the output is the evaluation result of the remote sensing image change detection network corresponding to the chromosomes of the individuals in the population of that generation; the evaluation result includes accuracy and compression rate.

[0067] Therefore, for the first-generation Gaussian process training set, the input is the chromosomes of the individuals in the first-generation population, and the output is the evaluation result of the remote sensing image change detection network corresponding to the chromosomes of the individuals in the first-generation population. The evaluation result is obtained by training each remote sensing image change detection network corresponding to the first-generation population using the training set, and testing the network using the test set. Therefore, the evaluation result of the remote sensing image change detection network corresponding to the chromosomes of each individual in the first-generation population can be obtained, which is referred to as the evaluation result corresponding to each individual. The evaluation result may include multiple indicator parameters for evaluating the network compression performance, such as accuracy, compression rate, and compression time.

[0068] In an embodiment of the present invention, the problem of compressing the neural network structure is modeled as a multi-objective optimization problem and solved using a multi-objective evolutionary algorithm, that is, these indicator parameters are optimized simultaneously, aiming to seek the optimal network while ensuring good performance of each indicator parameter.

[0069] S4, using a preset multi-objective evolutionary algorithm, obtain a child population from the current generation population.

[0070] This step is to use the evaluation results corresponding to the individuals in the Gaussian process training set of the current generation, and use the preset multi-objective evolutionary algorithm to perform selection, crossover, and mutation operations on the current generation population to generate multiple offspring individuals to form the offspring population, thereby achieving excellent gene transmission and expansion of individuals with better evaluation results. Among them, for the first generation, the current generation population is the first generation population, and the Gaussian process training set of the current generation is the Gaussian process training set of the first generation.

[0071] Those skilled in the art can understand that pruning is a way of compressing a neural network. By disconnecting some connections that have little impact on the performance of the neural network or removing some convolutional layers that have little impact on the performance, the purpose of compressing the network can be achieved. In this step, through the crossover mutation operation, the 1 in the chromosome of the individual will become 0, and the corresponding network structure will have disconnected connections or the convolutional layer will be discarded, thereby achieving pruning.

[0072] In an optional implementation manner, the preset multi-objective evolutionary algorithm may include:

[0073] NSGA-Ⅱ algorithm.

[0074] Of course, the multi-objective evolutionary algorithm preset in the embodiment of the present invention is not limited to this.

[0075] Regarding multi-objective optimization, a set of non-dominated solutions that are as optimal as possible for multiple objectives will be obtained. This set can also be called the Pareto frontier.

[0076] Among them, regarding the process of using a multi-objective evolutionary algorithm to obtain a child population from the current generation population, please refer to the execution process of the specific algorithm in the prior art, and no detailed description will be given here.

[0077] S5, using the current generation of Gaussian process training set to learn a Gaussian regression process model as a medium-fidelity model, based on the way that the offspring inherit the parent network weight parameters, obtain the low-fidelity model corresponding to each individual in the offspring population, and use the two fidelity models to obtain the proxy model of each individual in the offspring population.

[0078] In an optional implementation manner, this step may include the following steps:

[0079] S51, using the remote sensing image change detection network corresponding to each individual in the current generation of Gaussian process training set and the evaluation result corresponding to each individual, learn a Gaussian regression process model as a medium-fidelity model.

[0080] For the learning method of Gaussian regression process model, please refer to the prior art understanding, which will not be elaborated here. The obtained medium-fidelity model can be used with H T express.

[0081] Fidelity refers to the accuracy of model prediction. The medium-fidelity model obtained in the embodiment of the present invention represents a regression model that predicts network evaluation results through the structure of the remote sensing image change detection network. Since it uses the remote sensing image change detection network of each individual in the current generation population and the corresponding real evaluation results, the accuracy of the model can be guaranteed.

[0082] S52, for the remote sensing image change detection network corresponding to each individual in the offspring population, a network obtained by inheriting the weight parameters of the remote sensing image change detection network corresponding to the parent individual is directly tested using the test set to obtain a low-fidelity model corresponding to each individual in the offspring population.

[0083] In the embodiment of the present invention, for each individual in the offspring population, the remote sensing image change detection network corresponding to the individual inherits the weight parameters of the remote sensing image change detection network corresponding to the parent individual of the individual, and the network obtained after the inheritance of the individual is no longer trained, but directly uses the test set D v The tested network is used as the low-fidelity model corresponding to the individual. Therefore, the training process can be omitted under the premise of ensuring a certain network performance, thereby improving the compression speed. The low-fidelity model corresponding to the individual can be used as H i Represents, where i represents the i-th individual in the offspring population.

[0084] The low-fidelity model obtained in the embodiment of the present invention is not a model established by training and testing the remote sensing image change detection network of the offspring itself to obtain real evaluation results, so its accuracy is not as good as the medium and low-fidelity models. However, by adopting the method of offspring inheriting part of the key information of the parent generation, a low-fidelity model is obtained at a lower cost, which is used to predict the performance of the network and can speed up the compression speed.

[0085] S53, combining the medium-fidelity model and each low-fidelity model using a weighted average method to obtain a proxy model for each individual in the offspring population.

[0086] For each individual in the offspring population, the low-fidelity model corresponding to the individual and the medium-fidelity model shared by all individuals are combined using the weighted average method to obtain the proxy model of the individual, which can be expressed as MPS express.

[0087] The proxy model is equivalent to a model that predicts the evaluation results of the pruned neural network. Because training a neural network requires a large amount of computation, if each generation needs to train each individual and then test the performance, the amount of computation will be very large. However, the proxy model uses some models with small computational complexity to predict the output of models with large computational complexity, so it can achieve the purpose of rapid optimization.

[0088] By combining the two levels of fidelity models by weighted average, the proxy model can make use of the existing information to predict the network performance as much as possible, which can improve the accuracy. For the relevant concepts of the weighted average method, please refer to the prior art understanding, which will not be repeated here.

[0089] S6, using the medium-fidelity model and the low-fidelity model corresponding to the individual, evaluate the individuals in the offspring population to obtain an evaluation result corresponding to each individual; obtain the population Pareto frontier of the merged population composed of the offspring population and the current generation population, select the preset number of excellent individuals from the merged population according to the evaluation results corresponding to the individuals, and select some excellent individuals for evaluation using the remote sensing image change detection dataset.

[0090] In an embodiment of the present invention, the medium-fidelity model is first used to evaluate the individuals in the offspring population, and then the low-fidelity model corresponding to the individuals in the offspring population is used to evaluate the corresponding individuals again. Therefore, each individual in the offspring population will obtain two evaluation results, and the two evaluation results of each individual are weighted averaged to finally obtain the evaluation result corresponding to each individual.

[0091] Among them, for multiple indicator parameters in the evaluation results, the corresponding weighted average method of the same indicator parameters is adopted.

[0092] After the above evaluation is performed on the individuals in the offspring population, each individual finally has a corresponding evaluation result. At the same time, the Gaussian process training set of the current generation obtained by S4 contains the evaluation results of each individual in the current generation population. For example, for the first generation, the Gaussian process training set of the current generation of S4 is the Gaussian process training set of the first generation established by evaluating the first generation population by S3. Therefore, at this time, the evaluation results corresponding to each individual in the offspring population and the current generation population are known.

[0093] It is understandable that different evaluation results have advantages and disadvantages. For example, high accuracy and high compression rate indicate good evaluation results. In an embodiment of the present invention, the offspring population and the current generation population can first form a merged population, and obtain a population Pareto front surface containing multiple non-dominated solutions from the merged population. Afterwards, on the one hand, the preset number of excellent individuals are selected from the merged population based on the evaluation results, so as to serve as the next generation population for new iteration when iteration is required. On the other hand, a small number of partial excellent individuals are selected from the merged population based on the evaluation results, and the partial excellent individuals are evaluated using the remote sensing image change detection data set. It is understandable that the selected partial excellent individuals are included in the selected preset number of excellent individuals.

[0094] Specifically, selecting the preset number of excellent individuals from the merged population according to the evaluation results corresponding to the individuals, and selecting some excellent individuals for evaluation using the remote sensing image change detection dataset, comprises the following steps:

[0095] The individuals in the combined population are sorted from best to worst according to the evaluation results, and the preset number of excellent individuals in front are selected from the sorted individual sequence, and some of the excellent individuals in front are selected.

[0096] Among them, for the NSGA-Ⅱ algorithm, the sorting of the embodiment of the present invention is a non-dominated sorting method. The number of the excellent individuals is much smaller than the preset number. Because the training requires a large amount of calculation, the embodiment of the present invention will construct a proxy model for pre-screening.

[0097] The remote sensing image change detection network corresponding to each individual in the part of excellent individuals is trained using the training set, and the test set is used for testing to obtain an evaluation result of the remote sensing image change detection network corresponding to each individual in the part of excellent individuals.

[0098] S7, determining whether the current generation reaches a preset maximum number of iterations.

[0099] In the embodiment of the present invention, a maximum number of iterations can be set before the execution of the entire method, such as 100. It can also be set when the remaining steps before this step are executed, such as setting the maximum number of iterations when S2 creates the first generation population, which is reasonable.

[0100] S8, taking the preset number of excellent individuals as the next generation population, using some of the evaluated excellent individuals to obtain the Gaussian process training set of the next generation, and returning to execute the step of obtaining the offspring population from the current generation population using the preset multi-objective evolutionary algorithm.

[0101] If the preset maximum number of iterations is not reached, indicating that further iteration is needed, the preset number of excellent individuals selected in S6 will be used as the next generation population, and the Gaussian process training set will be updated using some of the evaluated excellent individuals to obtain the Gaussian process training set of the next generation, and the process will return to S4 to continue to execute backward. The "next generation population" obtained in S8 is the "current generation population" in S4 after returning to S4; the "next generation Gaussian process training set" obtained in S8 is the "current generation Gaussian process training set" in S4 after returning to S4.

[0102] Regarding the process of obtaining the next generation of Gaussian process training set, it can be that some of the excellent individuals after the evaluation are used to perform processing similar to step S3 to establish a small Gaussian process training set, and then the small Gaussian process training set is combined with the current generation of Gaussian process training set to obtain the next generation of Gaussian process training set. It can be understood that the next generation of Gaussian process training set has been expanded compared with the previous one.

[0103] S9, if so, the individuals at the inflection points on the optimal population Pareto front surfaces are selected from all the obtained population Pareto front surfaces to obtain the compressed optimal remote sensing image change detection network.

[0104] If the preset maximum number of iterations is reached, the iteration stops. The optimal population Pareto front surface is selected from all population Pareto front surfaces; the optimal population Pareto front surface represents the optimal solution set of the network after the initial remote sensing image change detection network is compressed. By obtaining the individuals at the inflection points on the optimal population Pareto front surface, a network representing the optimal network performance and compression effect can be obtained, that is, the optimal remote sensing image change detection network after compression.

[0105] Specifically, since some excellent individuals selected in each iteration represent excellent individuals on the corresponding Pareto front surface, an optimal one can be selected from the set of some excellent individuals evaluated in previous times to obtain a compressed optimal remote sensing image change detection network.

[0106] In an optional implementation manner, after obtaining the compressed optimal remote sensing image change detection network, the method further includes:

[0107] The compressed optimal remote sensing image change detection network is transplanted to a satellite or other small portable devices to detect the changes of remote sensing images in real time.

[0108] In the solution provided by the embodiment of the present invention, the remote sensing image change detection network is compressed by pruning the convolutional neural network so that it can run on a satellite or other portable device, thereby improving the real-time performance of remote sensing image change detection. In addition, by using a multi-objective evolutionary algorithm to search for the optimal structure of the remote sensing image change detection network, the limitations of artificially designed compression rules are avoided, and accuracy is guaranteed while compressing. In addition, by combining medium and low fidelity models, an agent model is constructed to evaluate the remote sensing image change detection network, which can avoid the problem of slow compression caused by multiple trainings and improve the compression speed of the network.

[0109] Some optional implementation schemes of the embodiments of the present invention are described below.

[0110] In an optional implementation, for the initial remote sensing image change detection network in S1, the encoding method for encoding it into individual chromosomes includes:

[0111] The number of convolutional layers, the number of fully connected layers, and the number of neurons in each fully connected layer in the initial remote sensing image change detection network are used to determine the binary code length when the initial remote sensing image change detection network is encoded into individual chromosomes using binary characters.

[0112] In an optional implementation manner, the calculation formula for the binary code length includes:

[0113]

[0114] Wherein, L represents the length of the binary code; L c represents the number of convolutional layers in the initial remote sensing image change detection network; f represents the number of fully connected layers in the initial remote sensing image change detection network; l i Represents the number of neurons in the i-th fully connected layer in the initial remote sensing image change detection network.

[0115] In an optional implementation manner, for S3, the evaluating the first generation population and establishing the first generation Gaussian process training set includes:

[0116] The remote sensing image change detection network corresponding to each individual in the first-generation population is trained using the training set, and tested using the test set in the remote sensing image change detection data set to obtain an evaluation result of the remote sensing image change detection network corresponding to each individual in the first-generation population.

[0117] The chromosome of each individual in the first generation population is used as input, and the evaluation result corresponding to the individual is used as output to establish a first generation Gaussian process training set.

[0118] For S4, the multi-objective evolutionary algorithm is NSGA-Ⅱ. Therefore, in an optional implementation, obtaining the offspring population from the current generation population may include the following steps:

[0119] A1, according to the evaluation results corresponding to the individuals in the Gaussian process training set of the current generation, the individuals in the current generation population are non-dominatedly sorted from best to worst, and a plurality of individuals in front are selected from the sorted individual queue to form a parent generation hybridization pool.

[0120] Specifically, according to the accuracy and compression rate of the remote sensing image change detection network corresponding to the individuals in the Gaussian process training set of the current generation, the individuals in the current generation population are non-dominatedly sorted from best to worst, and the first m individuals are selected from the sorted individual queue to form a parent hybrid pool.

[0121] The value of m can be set reasonably as needed, for example, N p / 4, etc.

[0122] A2, performing multiple crossover operations on the parent hybridization pool to generate multiple offspring.

[0123] Each crossover operation is to randomly select two individuals from the parent hybridization pool as parents, perform crossover with a preset crossover probability and a preset crossover length, and generate two offspring.

[0124] Specifically, for a crossover operation, two individuals P are randomly selected from the parent hybrid pool. 1 , P 2 As the parent generation, crossover is performed according to the following formula to produce two offspring c 1 、c 2 :

[0125]

[0126] Among them, P c Indicates the preset crossover probability, which can be set to 0.9, etc.; C L Indicates the preset crossover length, which can be set to 0.5, etc.; r 1 and r 2Both are random numbers uniformly distributed in the interval [0,1], and c(i) and p(i) both represent the value of the i-th position of the chromosome.

[0127] A3, performing multiple mutation operations on the parent hybridization pool to generate multiple offspring.

[0128] Each mutation operation is to randomly select an individual from the parent hybridization pool as a parent, mutate with a preset mutation probability, and generate a progeny.

[0129] Specifically, for a mutation operation, an individual p is randomly selected from the parent hybridization pool as the parent, and mutation is performed according to the following formula to generate a progeny c:

[0130]

[0131] Among them, P m To preset the mutation probability, it can be set to 0.1, etc., and r is a random number in the interval [0,1] that satisfies the uniform random distribution.

[0132] A4, all offspring obtained by the multiple crossover operations and the multiple mutation operations form an offspring population.

[0133] In an optional implementation, for S6, evaluating the individuals in the offspring population using the medium-fidelity model and the low-fidelity model corresponding to the individual to obtain the evaluation result corresponding to each individual may include the following steps:

[0134] B1, input the chromosome of each individual in the offspring population into the medium-fidelity model respectively, and complete the first evaluation of each individual in the offspring population.

[0135] B2, testing the test set on the low-fidelity model corresponding to each individual in the offspring population, completing the second evaluation of each individual in the offspring population.

[0136] B3, for each individual in the offspring population, the results of the two evaluations of the individual are obtained by using the weighted average method to obtain the evaluation result corresponding to the individual.

[0137] Specifically, each time the evaluation is performed, each individual in the offspring population can obtain the accuracy and compression rate of the remote sensing image change detection network corresponding to the individual. For each individual, the two accuracy rates obtained by the individual are weighted averaged to obtain a final accuracy rate; the two compression rates obtained by the individual are weighted averaged to obtain a final compression rate, and the final accuracy rate and compression rate are used as the evaluation results corresponding to the individual.

[0138] In an optional implementation manner, for S8, the step of obtaining the next generation of Gaussian process training sets using the evaluated part of the excellent individuals may include:

[0139] The chromosomes of each individual in the part of excellent individuals and the evaluation results of the corresponding remote sensing image change detection network are added to the Gaussian process training set of the current generation to obtain the Gaussian process training set of the next generation.

[0140] In an optional implementation manner, for S9, the individuals at the inflection points on the optimal population Pareto front surfaces selected from all obtained population Pareto front surfaces to obtain a compressed optimal remote sensing image change detection network may include the following steps:

[0141] C1, sort the excellent individuals after each evaluation from best to worst according to the evaluation results, select the first individual from the sorted individual sequence, and obtain an alternative remote sensing image change detection network.

[0142] C2, using the training set to perform multiple rounds of training on the candidate remote sensing image change detection network, and using the test set to obtain test results, and when the test results meet the requirements, determining the trained candidate remote sensing image change detection network as the compressed optimal remote sensing image change detection network.

[0143] In this implementation, after multiple rounds of training, the candidate remote sensing image change detection network is tested using the test set. If the test result meets the requirements, it indicates that the candidate remote sensing image change detection network that has been trained is available. The trained candidate remote sensing image change detection network is determined as the optimal remote sensing image change detection network after compression. If the test result does not meet the requirements, the first generation population is recreated to start a new iteration.

[0144] The training result meeting the requirements may be that the network size, accuracy and other indicators reach preset values.

[0145] In order to verify the effect of the method of the embodiment of the present invention, the following is a description combined with experiments.

[0146] For the simulation results, see Figure 2 . Figure 2 Figure (a) and (b) are a pair of simulated remote sensing images of the same geographical area but at different times; Figure 2 (c) After using the method of the embodiment of the present invention Figure 2 (a) and Figure 2 (b) Change detection results.

[0147] For the results of the actual experiment, please see Figure 3 . Figure 3 (a) and Figure 3 (b) is a pair of measured remote sensing images of the same geographical area but at different times; Figure 3 (c) After using the method of the embodiment of the present invention Figure 3 (a) and Figure 3 (b) The change detection results. For the second set of experiments, see Figure 4 . Figure 4 (a) and Figure 4 (b) another pair of measured remote sensing images of the same geographical area but at different times; Figure 4 (c) After using the method of the embodiment of the present invention Figure 4 (a) and Figure 4 (b) The change detection results. Figure 2 to Figure 4 It can be seen that a better remote sensing image change detection result is obtained by using the method of the embodiment of the present invention.

[0148] The following uses two network structures to be compressed as examples to illustrate the comparison effect between their original performance and the performance after being compressed using the method of the embodiment of the present invention. See Table 1.

[0149] Table 1 Comparison before and after network compression

[0150]

[0151] As can be seen from Table 1, after compressing the network structure using the method of the embodiment of the present invention, the accuracy remains basically unchanged, the compression rate exceeds 60%, and the amount of calculation is reduced by more than 50%.

[0152] It can be seen that the solution provided by the embodiment of the present invention is suitable for trained artificial convolutional neural networks for remote sensing image change detection, which have many parameters and large computational complexity and cannot be written into satellites or other portable small and low-power devices. When the neural network needs to be compressed, the existing methods have slow compression speeds. Specifically, the embodiment of the present invention uses a multi-objective evolutionary algorithm to prune the remote sensing image change detection network to compress the neural network so that it can run on a satellite or other portable device. And by constructing an agent model, the compression process can be accelerated, solving the problems faced by existing methods of requiring artificially formulated compression rules and slow compression speeds. The embodiment of the present invention directly optimizes both accuracy and compression rate, can quickly compress the neural network, and ensures that its performance loss is small, so that the compressed network can be used for real-time detection of changes in remote sensing images on satellites, various embedded and portable devices.

[0153] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0154] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A fast compression method for remote sensing image change detection network based on model collaboration, It is characterized in that include: The preset convolutional neural network is trained using the training set in the remote sensing image change detection dataset to obtain the initial remote sensing image change detection network, and the encoding method when encoding it into individual chromosomes is determined; Randomly generate a preset number of individual chromosomes according to the encoding method to form a first-generation population; wherein each generation of the population contains the preset number of individuals, and the chromosome of each individual represents a remote sensing image change detection network; Evaluate the first generation population and establish the first generation Gaussian process training set; wherein the input of each generation Gaussian process training set is the chromosome of the individual in the population of that generation, and the output is the evaluation result of the remote sensing image change detection network corresponding to the chromosome of the individual in the population of that generation; the evaluation result includes accuracy and compression rate; Using the preset multi-objective evolutionary algorithm, the offspring population is obtained from the current generation population; Using the current generation of Gaussian process training set to learn a Gaussian regression process model as a medium-fidelity model, based on the offspring inheriting the parent network weight parameters, a low-fidelity model corresponding to each individual in the offspring population is obtained, and two fidelity models are used to obtain a proxy model for each individual in the offspring population; The individuals in the offspring population are evaluated using the medium-fidelity model and the low-fidelity model corresponding to the individuals to obtain an evaluation result corresponding to each individual; the population Pareto front surface is obtained by combining the offspring population and the current generation population, the preset number of excellent individuals are selected from the combined population according to the evaluation results corresponding to the individuals, and some of the excellent individuals are selected for evaluation using the remote sensing image change detection data set; Determine whether the current generation reaches the preset maximum number of iterations; if not, use the preset number of excellent individuals as the next generation population, use some of the evaluated excellent individuals to obtain the Gaussian process training set of the next generation, and return to execute the step of obtaining the offspring population from the current generation population using the preset multi-objective evolutionary algorithm; if so, select the individuals at the inflection point on the Pareto front surface of the optimal population from the obtained Pareto front surfaces of all populations to obtain the compressed optimal remote sensing image change detection network.

2. According to claim 1, the network fast compression method for remote sensing image change detection based on model collaboration, It is characterized in that The method of determining the encoding method for encoding the chromosome of an individual includes: The number of convolutional layers, the number of fully connected layers, and the number of neurons in each fully connected layer in the initial remote sensing image change detection network are used to determine the binary code length when the initial remote sensing image change detection network is encoded into individual chromosomes using binary characters.

3. According to claim 2, the network fast compression method for remote sensing image change detection based on model collaboration, It is characterized in that The calculation formula of the binary code length includes: Wherein, L represents the length of the binary code; L c represents the number of convolutional layers in the initial remote sensing image change detection network; f represents the number of fully connected layers in the initial remote sensing image change detection network; l i Represents the number of neurons in the i-th fully connected layer in the initial remote sensing image change detection network.

4. According to claim 3, the network fast compression method for remote sensing image change detection based on model collaboration, It is characterized in that The step of evaluating the first generation population and establishing the first generation Gaussian process training set includes: For the remote sensing image change detection network corresponding to each individual in the first-generation population, the training set is used for training, and the test set in the remote sensing image change detection data set is used for testing, so as to obtain an evaluation result of the remote sensing image change detection network corresponding to each individual in the first-generation population; The chromosome of each individual in the first generation population is used as input, and the evaluation result corresponding to the individual is used as output to establish a first generation Gaussian process training set.

5. The network fast compression method for remote sensing image change detection based on model collaboration according to claim 1 or 4, It is characterized in that The preset multi-objective evolutionary algorithm includes: NSGA-Ⅱ algorithm.

6. According to claim 4, the network fast compression method for remote sensing image change detection based on model collaboration, It is characterized in that The method uses the current generation of Gaussian process training set to learn a Gaussian regression process model as a medium-fidelity model, obtains a low-fidelity model corresponding to each individual in the offspring population based on the offspring inheriting the parent network weight parameters, and uses two fidelity models to obtain a proxy model for each individual in the offspring population, including: Using the remote sensing image change detection network corresponding to each individual in the current generation of Gaussian process training set and the evaluation results corresponding to each individual, a Gaussian regression process model is learned as a medium-fidelity model; For the remote sensing image change detection network corresponding to each individual in the offspring population, a network obtained by inheriting the weight parameters of the remote sensing image change detection network corresponding to the parent individual is directly tested using the test set to obtain a low-fidelity model corresponding to each individual in the offspring population; The medium-fidelity model and each low-fidelity model are combined using a weighted average method to obtain a proxy model for each individual in the offspring population.

7. The network fast compression method for remote sensing image change detection based on model collaboration according to claim 6, It is characterized in that The use of the medium-fidelity model and the low-fidelity model corresponding to the individual to evaluate the individuals in the offspring population to obtain an evaluation result corresponding to each individual includes: Inputting the chromosome of each individual in the offspring population into the medium-fidelity model respectively, completing the first evaluation of each individual in the offspring population; Testing the test set on the low-fidelity model corresponding to each individual in the offspring population, completing a second evaluation of each individual in the offspring population; For each individual in the offspring population, the results of two evaluations of the individual are taken using a weighted average method to obtain an evaluation result corresponding to the individual.

8. According to claim 4, the network fast compression method for remote sensing image change detection based on model collaboration, It is characterized in that The step of selecting the preset number of excellent individuals from the merged population according to the evaluation results corresponding to the individuals, and selecting some of the excellent individuals for evaluation using the remote sensing image change detection dataset, comprises: Sort the individuals in the merged population from best to worst according to the evaluation results, select the preset number of excellent individuals in front from the sorted individual sequence, and select some of the excellent individuals in front; wherein the number of the some excellent individuals is much smaller than the preset number; Using the training set to train a remote sensing image change detection network corresponding to each individual in the part of excellent individuals, and using the test set to perform testing, to obtain an evaluation result of the remote sensing image change detection network corresponding to each individual in the part of excellent individuals; The method of using some of the excellent individuals after the evaluation to obtain the next generation of Gaussian process training sets includes: The chromosomes of each individual in the part of excellent individuals and the evaluation results of the corresponding remote sensing image change detection network are added to the Gaussian process training set of the current generation to obtain the Gaussian process training set of the next generation.

9. The network fast compression method for remote sensing image change detection based on model collaboration according to claim 4, It is characterized in that The individuals at the inflection points on the optimal population Pareto front surface selected from all the obtained population Pareto front surfaces, and the compressed optimal remote sensing image change detection network are obtained, including: The excellent individuals after each evaluation are sorted from best to worst according to the evaluation results, and the first individual is selected from the sorted individual sequence to obtain a candidate remote sensing image change detection network; The candidate remote sensing image change detection network is trained for multiple rounds using the training set, and the test result is obtained using the test set. When the test result meets the requirements, the trained candidate remote sensing image change detection network is determined as the compressed optimal remote sensing image change detection network.

10. The network fast compression method for remote sensing image change detection based on model collaboration according to claim 1 or 9, It is characterized in that After obtaining the compressed optimal remote sensing image change detection network, the method further includes: The compressed optimal remote sensing image change detection network is transplanted to a satellite or other small portable devices to detect the changes of remote sensing images in real time.