Intelligent selection method of spectral parameters for acousto-optic tunable infrared multispectral imaging system

The spectral parameter selection model is constructed through the multi-agent reinforcement learning method, which solves the real-time problem of spectral parameter selection of the acousto-optic tunable infrared multispectral imaging system in dynamic scenes, realizes the band selection of software and hardware collaboration, and improves the detection performance.

CN118641497BActive Publication Date: 2024-10-11BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411123157.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-10-11
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

Existing spectral parameter selection methods are not suitable for acousto-optic tunable infrared multispectral imaging systems. They cannot obtain multispectral image sequences in real time in dynamic scenes for spectral parameter selection, and rely on offline data processing, lacking an online detection band selection mechanism.

Method used

A multi-agent reinforcement learning method is used to construct a spectral parameter selection model through principal component analysis and Markov game process. Combined with an acousto-optic tunable infrared multispectral imaging system, a Nash equilibrium mechanism for wavelength selection and bandwidth selection is designed to achieve software and hardware collaboration. detection band selection.

Benefits of technology

It maintains good performance in dynamic scenes, realizes time-sharing spectral parameter selection, is suitable for acousto-optic tunable infrared multi-spectral imaging systems, and improves the adaptability and real-time performance of the detection band.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure QLYQS_104
    Figure QLYQS_104
  • Figure QLYQS_108
    Figure QLYQS_108
  • Figure QLYQS_111
    Figure QLYQS_111
Patent Text Reader

Abstract

A method for intelligently selecting spectral parameters of an acousto-optic tunable infrared multi-spectral imaging system comprises the following steps: (1) using the acousto-optic tunable infrared multi-spectral imaging system to collect infrared multi-spectral image data of a target scene; (2) performing principal component analysis on the data, and obtaining the number of spectral parameter combination selections according to feature values; (3) constructing an environmental model of a multi-agent reinforcement learning spectral parameter selection model based on a Markov game process, and parameterizing the environmental model of the multi-agent system; (4) designing the input and output, network structure and interaction relationship of the multi-agent, and constructing a multi-agent reinforcement learning spectral parameter selection model; (5) using a multi-agent deep deterministic policy gradient algorithm to train the model; (6) pruning and quantizing the trained model and deploying it to an information processing unit; (7) the model selects the newly collected data of the acousto-optic tunable infrared multi-spectral imaging system, and the acousto-optic tunable infrared multi-spectral imaging system collects and synthesizes the optimized multi-spectral image data according to the selection results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a spectrum parameter selection method for an acousto-optically tunable infrared multi-spectral system, belongs to the field of data processing methods and application technologies for infrared multi-spectral imaging systems, and is suitable for research on spectrum parameter selection methods and application technologies. Background Art

[0002] The acoustic-optic tunable infrared multi-spectral imaging system has the advantages of tunable detection band and staring imaging. It can obtain infrared multi-spectral images for identifying different types of targets, and plays an important role in both military and civilian fields. For the use of the acoustic-optic tunable infrared multi-spectral imaging system for target detection, the selection of spectral parameters such as wavelength and bandwidth of the detection band is crucial and affects the detection performance. Due to the working state, observation conditions, and atmospheric environment of the target, the infrared spectral characteristics of the target are complex and changeable, and the background environment characteristics also change with the background type and weather. Therefore, it is necessary to select the spectral parameter combination that is most conducive to target detection according to the actual scene, and obtain a spectral image with large target-background spectral difference and high signal-to-noise ratio.

[0003] Among the existing spectral parameter selection method studies, one is the detection band selection method research used to guide the design of detection wave system parameters, and the band selection criteria based on contrast, signal-to-noise ratio, signal-to-clutter ratio, and detection distance have been established; the other is the hyperspectral band selection method research, including search-based, sort-based, cluster-based, and deep learning-based band selection methods. At present, a solid foundation has been laid in band selection criteria and search methods, but the existing spectral parameter selection methods are not suitable for spectral parameter selection of acousto-optic tunable infrared multispectral imaging systems, and spectral parameter selection cannot be performed on multispectral image sequences acquired in time-sharing in dynamic scenes. In addition, the existing band selection relies on offline spectral data processing or target characteristic analysis, and lacks an online detection band selection mechanism combined with a hardware system.

[0004] To solve this problem, a spectral parameter selection method for an acousto-optic tunable infrared multi-spectral system was designed. This method constructs a spectral parameter selection method based on multi-agent reinforcement learning, in which reinforcement learning has a powerful complex feature space optimization ability and self-learning ability compared with other methods, and realizes the Nash equilibrium of wavelength selection and bandwidth selection through multi-agent reinforcement learning method. In addition, the detection band selection model is combined with the acousto-optic tunable infrared multi-spectral imaging system to construct a detection band selection mechanism with software and hardware collaboration. Summary of the invention

[0005] The purpose of the present invention is to provide a spectral parameter intelligent selection method for the problem that the target and interference infrared spectral characteristics are complex and changeable in the target detection application process of an acousto-optic tunable infrared multi-spectral imaging system.

[0006] The technical solution of the present invention is: using an acoustic-optically tunable infrared multi-spectral imaging system to collect infrared multi-spectral image data of a target scene, performing principal component analysis on the data, obtaining the number of spectral parameter combination selections according to feature values, constructing an environmental model of a multi-agent reinforcement learning spectral parameter selection model based on a Markov game process, parameterizing the environmental model of the multi-agent system, designing the input and output, network structure and interaction relationship of the multi-agent, constructing a multi-agent reinforcement learning spectral parameter selection model, using a multi-agent deep deterministic policy gradient algorithm to train the model, pruning and quantizing the trained model and deploying it to an information processing unit, the model selects the newly collected data of the acoustic-optically tunable infrared multi-spectral imaging system, and the acoustic-optically tunable infrared multi-spectral imaging system collects and synthesizes the optimized multi-spectral image data according to the selection results.

[0007] The present invention is a method for selecting spectrum parameters of an acousto-optically tunable infrared multi-spectral system, and the steps are as follows:

[0008] (1) Collect infrared multispectral image data of the target scene using an acousto-optic tunable infrared multispectral imaging system;

[0009] (2) performing principal component analysis using the infrared multispectral image data in step (1) and obtaining the number of selected spectral parameter combinations according to the characteristic values;

[0010] (3) Constructing an environmental model of a multi-agent reinforcement learning spectral parameter selection model based on the Markov game process. The multi-agent system includes a wavelength selection agent and a bandwidth selection agent. According to the requirements of the target detection task on the image signal-to-clutter ratio and the spectral difference between the target and the interference, as well as the infrared multi-spectral image data and its number of bands, image size, wavelength and bandwidth parameters of each band in step (1), the environmental model of the multi-agent system is parameterized, and the number of spectral parameter combinations to be selected is set according to the result of step (2);

[0011] (4) Based on the environmental model constructed in step (3), the input and output, network structure and interaction relationship of the actuator and evaluator of the wavelength selection agent and the bandwidth selection agent are designed to construct a multi-agent reinforcement learning spectral parameter selection model;

[0012] (5) Using the infrared multi-spectral image data in step (1) as training data, a multi-agent deep deterministic policy gradient algorithm is used to train the multi-agent reinforcement learning spectral parameter selection model constructed in step (4);

[0013] (6) Pruning and quantizing the model trained in step (5) and deploying it to the information processing unit of the acousto-optic tunable infrared multi-spectral imaging system;

[0014] (7) After the acousto-optic tunable infrared multispectral imaging system acquires new data, it first uses the principal component analysis method in step (2) to process the new data to determine the number of spectral parameter combinations to be selected. Then, the spectral parameter selection model deployed in step (6) is used to select the new data to obtain the optimal wavelength and synthetic bandwidth combination. The corresponding frequency combination is obtained according to the corresponding relationship between the wavelength and the driving signal frequency. The driving signals of the corresponding frequencies are generated in turn to obtain image data of different bands. After synthesis, the optimized multispectral image data is obtained.

[0015] In step (1), the infrared multi-spectral image data of the target scene is collected by using an acousto-optic tunable infrared multi-spectral imaging system: the acousto-optic tunable infrared multi-spectral imaging system is composed of three parts: an imaging system, an information processing unit, and a power supply and drive unit. The imaging system is based on an acousto-optic tunable filter for light splitting. By applying driving signals of different frequencies to the acousto-optic tunable filter, infrared spectral images of different wavelengths can be obtained. The information processing unit can process the acquired image. The power supply and drive unit supplies power to the imaging system and the information processing unit, and generates a driving signal of a corresponding frequency according to the instruction of the information processing unit. The acousto-optic tunable infrared multi-spectral imaging system can obtain infrared multi-spectral image data of different bands in a time-sharing manner, has the working characteristics of staring imaging and continuous tunability of the detection band, has an effective band range of 3.7 to 4.8 microns, and a spectral bandwidth of 30 to 60 nanometers. The infrared multi-spectral image sequence data of the target scene is collected within the range of 3.7 to 4.8 microns by using the acousto-optic tunable infrared multi-spectral imaging system. , Contains n bands, the image size is h×w, and the central wavelength set of n bands is , the corresponding bandwidth set is , Used to determine the number of choices for band spectral parameter combinations and train spectral parameter selection models.

[0016] In which, step (2) uses the infrared multispectral image data in step (1) to perform principal component analysis, and obtains the number of selected spectral parameter combinations according to the characteristic values: principal component analysis is performed on the multispectral image sequence H obtained in step (1) to determine the number of band selections. The process is as follows:

[0017] 1) The spectrum of all pixels in H can be expressed as , Represents the spectrum of pixel i, which is an n-dimensional vector. First, Decentralization ;

[0018] 2) Calculate the covariance matrix ;

[0019] 3) Covariance matrix Perform eigenvalue decomposition to obtain eigenvalues ​​and eigenvectors;

[0020] 4) Arrange the eigenvalues ​​from large to small as , select the threshold as , Take 0.95~0.99, if the first K eigenvalues ​​meet , then set and select K spectral parameter combinations, that is, K groups of wavelengths and synthetic bandwidths.

[0021] Among them, step (3) constructs the environment model of the multi-agent reinforcement learning spectral parameter selection model based on the Markov game process. The multi-agent system includes a wavelength selection agent and a bandwidth selection agent. According to the requirements of the target detection task on the image signal-to-noise ratio and the spectral difference between the target and the interference, as well as the infrared multi-spectral image data and its number of bands, image size, wavelength and bandwidth parameters of each band in step (1), the environment model of the agent system is parameterized, and the number of spectral parameter combinations selected is set according to the result of step (2): the spectral parameters selected by the multi-agent reinforcement learning spectral parameter selection model include wavelength and synthetic bandwidth, which are generated by the wavelength selection agent and bandwidth selection agent of the multi-agent system respectively; the environment model of the multi-agent system is designed based on the Markov game process, which can be composed of a tuple To express, represents the state of the multi-agent system, represents the actions of the wavelength selection agent and the bandwidth selection agent, represents the state transition function, represents the reward function for the wavelength selection agent and the bandwidth selection agent, represents the discount factor; in order to serve the target detection, the image signal-to-noise ratio of the selected band is required to be large, so as to facilitate the target detection in different scenes, and the spectral difference between the target and the interference in the selected band combination is large, so as to distinguish the target and the interference based on the spectral information. Therefore, the reward function of the intelligent agent is set according to the image signal-to-noise ratio and the spectral difference between the target and the interference; according to the multispectral image sequence H obtained in step 1 and its band number n, image size h×w, and wavelength of each band and bandwidth , the environment model of the multi-agent system is modeled as follows:

[0022] state: , represents the features extracted from the multispectral image sequence H, Indicates the currently selected spectral parameters; a feature extraction network is constructed using a 2-layer convolution-long short-term memory network and a 1-layer 2D convolution layer. After feature extraction, H obtains a spectral feature of size n×10 ; is a vector of length n, representing the currently selected wavelength and synthesis bandwidth;

[0023] Action: The action of the wavelength selection agent Represented as a vector of length n, if The value corresponding to index i is the largest, indicating that The i-th wavelength is selected from the bandwidth selection agent. is a scalar, indicating the selected synthetic bandwidth. If the current wavelength selection agent selects the i-th wavelength, The bandwidth of the index [i-2, i-1, i, i+1, i+2] is , then the bandwidth selects the current action of the agent The minimum value of , the maximum value is ;

[0024] State transfer function: represents the current state of the multi-agent system The actions taken by the multi-agents Mapping to the next state The probability distribution of , the state transfer function of the multi-agent reinforcement learning spectral parameter selection model is determined and expressed as follows:

[0025]

[0026] in, is the number of selected bands, is the number of selected spectral parameter combinations obtained in step (2), Indicates the termination state;

[0027] Reward function: Reward function for the wavelength selection agent The target spectrum is represented by the spectral angle SA of the target and the interference in all the currently selected wavelength combinations. Interference Spectrum The spectral angle SA is expressed as:

[0028]

[0029] Define the reward function for the wavelength selection agent ; Reward function for bandwidth selection agent The synthetic image corresponding to the synthetic bandwidth selected at the current time step The signal-to-noise ratio SCR is expressed as:

[0030]

[0031] in, is the mean grayscale value of the target in the synthetic image, is the grayscale mean of the background around the target, is the grayscale standard deviation of the background around the target, and defines the reward function ; Synthetic image Based on the action of the agent at the current time step OK, if the currently selected wavelength is , the selected synthesis bandwidth is , then the corresponding start and end wavelengths are and , for the images in data H , linear interpolation yields and Image at and :

[0032]

[0033] The composite bandwidth is calculated by integrating Composite image within range :

[0034]

[0035] The reward of the multi-agent system is obtained by combining two agents, namely ,in is a trainable parameter;

[0036] Discount Factor: , used in reinforcement learning to regulate the impact of long-term rewards.

[0037] Among them, step (4) designs the input and output, network structure and interaction relationship of the actuator and evaluator of the wavelength selection agent and the bandwidth selection agent on the basis of the environmental model constructed in step (3), and constructs a multi-agent reinforcement learning spectral parameter selection model: the wavelength selection agent and the bandwidth selection agent each contain an actuator network and an evaluator network, wherein the actuator network generates actions according to the state of the multi-agent system, and the evaluator network can observe the global state and evaluate the actions generated by each actuator to guide the training of the actuator; for the actuator network of the wavelength selection agent, its input is the state of the multi-agent system , the output is the action of the wavelength selection agent and the coefficient of the reward function The n+1-dimensional vector is composed of two fully connected layers. For the evaluator network of the wavelength selection agent, its input is the state and action of the multi-agent system. The output is the evaluation Q1 of the action generated by the actuator network of the wavelength selection agent. The evaluator network consists of 2 fully connected layers. For the actuator network of the bandwidth selection agent, its input is the state of the multi-agent system. , the output is the action of the bandwidth selection agent and the coefficient of the reward function The length of the vector is 2, and the actuator network consists of 2 fully connected layers; for the evaluator network of the bandwidth selection agent, its input is the state and action of the multi-agent system The output is the evaluation Q2 of the action generated by the actuator network of the bandwidth selection agent. The evaluator network consists of 2 fully connected layers. The actions of the two agents will affect each other's environment. The agents achieve the Nash equilibrium of the multi-agent system through cooperation and game.

[0038] The infrared multi-spectral image data in step (1) is used as training data, and the multi-agent deep deterministic policy gradient algorithm is used to train the multi-agent reinforcement learning spectral parameter selection model constructed in step (4): In step (4), a multi-agent reinforcement learning spectral parameter selection model is constructed, and the multi-agent deep deterministic policy gradient algorithm is used to train it. The multi-agent deep deterministic policy gradient algorithm uses a centralized training distributed execution paradigm to alleviate the problem of non-stationary training environment. The infrared multi-spectral image data collected in step (1) is used as training data. The experience replay and random batch sampling mechanism are used in the training process. After the agent is initialized and updated, it can generate experience during the execution process, which can be expressed as , stored in the experience pool, randomly extracting experience in batches from the experience pool for training during training, reusing past experience and breaking the sequence correlation of experience to maintain the stable convergence of the training process; using the target network mechanism, the strategy of the current network of the agent is expressed as , the parameters of the actuator network of the current network are expressed as , the strategy of the target network is expressed as , the parameters of the actuator network of the target network are expressed as , the target network has the same parameters as the current network at the beginning; the training process of the multi-agent deep deterministic policy gradient algorithm first updates the evaluator network and randomly extracts N samples from the experience pool , where the loss function of the evaluator network is defined as:

[0039]

[0040] in, is the Q value output by the evaluator of the current network, is the Q value output by the evaluator of the target network, and the evaluator network is updated by minimizing the loss function; then the policy gradient is used Update the executor network:

[0041]

[0042] in, and are the gradients obtained by the actuator network and the evaluator network respectively; after updating the current network multiple times, the target network is updated, which can be expressed as:

[0043]

[0044] in , which is used to adjust the learning rate. In addition, in order to prevent the training process from falling into the local optimal solution and ensure the balance between intelligent agent exploration and application, Greedy strategy is used to select actions at each time step, 0< <1, The probability of taking the best action according to the strategy that the agent has learned is The probability of randomly selecting an action is .

[0045] Among them, step (6) prunes and quantizes the model trained in step (5) and deploys it to the information processing unit of the acousto-optic tunable infrared multi-spectral imaging system: after the model training is completed, only the actuator network is used to select the spectral parameters. In order to speed up the reasoning speed, the trained model is pruned and quantized; for the convolution layer, its channel importance is evaluated according to the absolute value of the scaling factor of the batch normalization layer after the convolution layer; for the fully connected layer, its channel importance is evaluated according to the product of the absolute value of the fully connected layer parameter and the gradient size, and the connection with little influence on the network model is pruned, and the pruned network model is fine-tuned to maintain the accuracy of the network model; in addition, the network parameters are quantized from float32 to int8 to reduce the model size to speed up the reasoning speed; the pth model file is converted into an om model file and deployed in the information processing unit of the acousto-optic tunable infrared multi-spectral imaging system. The information processing unit adopts Huawei Atlas 200DK intelligent acceleration kit, which can run the om model for reasoning.

[0046] Among them, in step (7), after the acousto-optic tunable infrared multi-spectral imaging system obtains new data, the principal component analysis method in step (2) is first used to process the new data to determine the number of selected spectral parameter combinations, and then the spectral parameter selection model deployed in step (6) is used to select the new data to obtain the optimal wavelength and synthetic bandwidth combination, and the corresponding frequency combination is obtained according to the corresponding relationship between the wavelength and the driving signal frequency, and the driving signals of the corresponding frequencies are generated in turn to obtain image data of different bands, and the optimized multi-spectral image data is obtained after synthesis: the acousto-optic tunable infrared multi-spectral imaging system is used to detect the target, and the imaging system obtains new data in the range of 3.7~4.8μm , There are n bands, namely , the image size is h×w; first use the method in step (2) to Conduct principal component analysis to determine the number of choices for spectral parameter combinations ; Then use the spectral parameter selection model deployed in the information processing unit in step (6) to select the new data Make a selection Group spectral parameters, synthesize according to spectral parameters The wavelength combination required for a synthetic image is , for According to the corresponding relationship between wavelength and driving signal frequency, The corresponding driving signal frequency combination F is obtained, the power supply and driving unit generates driving signals of each frequency in F in turn, and the acousto-optic tunable infrared multi-spectral imaging system obtains multi-spectral image sequences in turn. , then according to Spectral parameter pair The optimized infrared multispectral image is synthesized.

[0047] The advantages of the present invention over the prior art are that the spectral parameter selection model of the present method can maintain good performance in data of dynamic scenes, and is combined with an acousto-optic tunable infrared multi-spectral imaging system to construct a band selection method that collaborates with software and hardware. The present invention has the following advantages: (1) The band selection model based on multi-agent reinforcement learning has the ability to adapt to dynamic scenes and is suitable for spectral image sequences acquired in time-sharing; (2) The acousto-optic tunable infrared multi-spectral imaging system is combined with the spectral parameter selection model, and the measured data in the detection process is used to select spectral parameters, and the selection results are used to guide the detection band setting of the acousto-optic tunable infrared multi-spectral imaging system. DETAILED DESCRIPTION

[0048] In order to better illustrate the detection band selection method of the acoustic-optic tunable infrared multi-spectral imaging system involved in the present invention, an experiment was conducted using the acoustic-optic tunable infrared multi-spectral imaging system. In the range of 3.7~4.8μm, medium-wave infrared multi-spectral images of aircraft targets in the air were collected for spectral parameter selection. The number of bands was 21 and the image size was 256×320 pixels. The present invention is an intelligent spectral parameter selection method for an acoustic-optic tunable infrared multi-spectral imaging system. The specific implementation steps are as follows:

[0049] (1) Collect infrared multispectral image data of aerial targets using an acoustic-optic tunable infrared multispectral imaging system: Use an acoustic-optic tunable infrared multispectral imaging system to collect infrared multispectral image sequence data of aerial targets without spectral aliasing in the range of 3.7 to 4.8 microns. , There are n bands, where n=21, and the image size is 256×320 pixels. The central wavelength set of the 21 bands is , the corresponding bandwidth set is , Used to determine the number of band selections and train the band selection model.

[0050] (2) Perform principal component analysis on the infrared multispectral image data in step (1) and obtain the number of spectral parameter combination selections based on the characteristic values: Perform principal component analysis on the multispectral image sequence H obtained in step (1) and determine the number of band selections. The process is as follows:

[0051] 1) The spectrum of all pixels in H can be expressed as , Represents the spectrum of pixel i, which is an n-dimensional vector. First, Decentralization ;

[0052] 2) Calculate the covariance matrix ;

[0053] 3) Covariance matrix Perform eigenvalue decomposition to obtain eigenvalues ​​and eigenvectors;

[0054] 4) Arrange the eigenvalues ​​from large to small as , select the threshold as , Generally, it is set to 0.95~0.99. If the first K eigenvalues ​​satisfy , then set and select K spectral parameter combinations, that is, K groups of wavelengths and synthetic bandwidths.

[0055] (3) Constructing an environmental model of a multi-agent reinforcement learning spectral parameter selection model based on a Markov game process. The multi-agent system includes a wavelength selection agent and a bandwidth selection agent. According to the requirements of the target detection task for the image signal-to-noise ratio, the spectral difference between the target and the interference, and the infrared multi-spectral image data and its number of bands, image size, wavelength and bandwidth parameters of each band in step (1), the environmental model of the agent system is parameterized, and the number of spectral parameter combinations selected is set according to the result of step (2): the spectral parameters selected by the multi-agent reinforcement learning spectral parameter selection model include wavelength and synthetic bandwidth, which are generated by the wavelength selection agent and bandwidth selection agent of the multi-agent system respectively; designing the environmental model of the multi-agent system based on the Markov game process can be composed of a tuple To express, represents the state of the multi-agent system, represents the actions of the wavelength selection agent and the bandwidth selection agent, represents the state transition function, represents the reward function for the wavelength selection agent and the bandwidth selection agent, represents the discount factor; in order to serve the target detection, the image signal-to-noise ratio of the selected band is required to be large, so as to facilitate the target detection in different scenes, and the spectral difference between the target and the interference in the selected band combination is large, so as to distinguish the target and the interference based on the spectral information. Therefore, the reward function of the intelligent agent is set according to the image signal-to-noise ratio and the spectral difference between the target and the interference; according to the multispectral image sequence H obtained in step 1 and its band number n, image size h×w, and wavelength of each band and bandwidth , the environment model of the multi-agent system is modeled as follows:

[0056] state: , represents the features extracted from the multispectral image sequence H, Indicates the currently selected spectral parameters; a feature extraction network is constructed using a 2-layer convolution-long short-term memory network and a 1-layer 2D convolution layer. After feature extraction, H obtains a spectral feature of size n×10 ; is a vector of length n, representing the currently selected wavelength and synthesis bandwidth;

[0057] Action: The action of the wavelength selection agent Represented as a vector of length n, if The value corresponding to index i is the largest, indicating that The i-th wavelength is selected from the bandwidth selection agent. is a scalar, indicating the selected synthetic bandwidth. If the current wavelength selection agent selects the i-th wavelength, The bandwidth of the index [i-2, i-1, i, i+1, i+2] is , then the bandwidth selects the current action of the agent The minimum value of , the maximum value is ;

[0058] State transfer function: represents the current state of the multi-agent system The actions taken by the multi-agents Mapping to the next state The probability distribution of , the state transfer function of the multi-agent reinforcement learning spectral parameter selection model is determined and expressed as follows:

[0059]

[0060] in, is the number of selected bands, is the number of selected spectral parameter combinations obtained in step (2), Indicates the termination state;

[0061] Reward function: Reward function for the wavelength selection agent The target spectrum is represented by the spectral angle SA of the target and the interference in all the currently selected wavelength combinations. Interference Spectrum The spectral angle SA is expressed as:

[0062]

[0063] Define the reward function for the wavelength selection agent ; Reward function for bandwidth selection agent The synthetic image corresponding to the synthetic bandwidth selected at the current time step The signal-to-noise ratio SCR is expressed as:

[0064]

[0065] in, is the mean grayscale value of the target in the synthetic image, is the grayscale mean of the background around the target, is the grayscale standard deviation of the background around the target, and defines the reward function ; Synthetic image Based on the action of the agent at the current time step OK, if the currently selected wavelength is , the selected synthesis bandwidth is , then the corresponding start and end wavelengths are and , for the images in data H , linear interpolation yields and Image at and :

[0066]

[0067] The composite bandwidth is calculated by integrating Composite image within range :

[0068]

[0069] The reward of the multi-agent system is obtained by combining two agents, namely ,in is a trainable parameter;

[0070] Discount Factor: , used in reinforcement learning to regulate the impact of long-term rewards.

[0071] (4) Based on the environmental model constructed in step (3), the input and output, network structure and interaction relationship of the actuator and evaluator of the wavelength selection agent and the bandwidth selection agent are designed to construct a multi-agent reinforcement learning spectral parameter selection model: the wavelength selection agent and the bandwidth selection agent each contain an actuator network and an evaluator network, where the actuator network generates actions according to the state of the multi-agent system, and the evaluator network can observe the global state and evaluate the actions generated by each actuator to guide the training of the actuator; for the actuator network of the wavelength selection agent, its input is the state of the multi-agent system , the output is the action of the wavelength selection agent and the coefficient of the reward function The n+1-dimensional vector is composed of two fully connected layers. For the evaluator network of the wavelength selection agent, its input is the state and action of the multi-agent system. The output is the evaluation Q1 of the action generated by the actuator network of the wavelength selection agent. The evaluator network consists of 2 fully connected layers. For the actuator network of the bandwidth selection agent, its input is the state of the multi-agent system. , the output is the action of the bandwidth selection agent and the coefficient of the reward function The length of the vector is 2, and the actuator network consists of 2 fully connected layers; for the evaluator network of the bandwidth selection agent, its input is the state and action of the multi-agent system The output is the evaluation Q2 of the action generated by the actuator network of the bandwidth selection agent. The evaluator network consists of 2 fully connected layers. The actions of the two agents will affect each other's environment. The agents achieve the Nash equilibrium of the multi-agent system through cooperation and game.

[0072] (5) Using the infrared multi-spectral image data in step (1) as training data, the multi-agent reinforcement learning spectral parameter selection model constructed in step (4) is trained using a multi-agent deep deterministic policy gradient algorithm: In step (4), a multi-agent reinforcement learning spectral parameter selection model is constructed, and the multi-agent deep deterministic policy gradient algorithm is used to train it. The multi-agent deep deterministic policy gradient algorithm uses a centralized training distributed execution paradigm to alleviate the problem of non-stationary training environment. The infrared multi-spectral image data collected in step (1) is used as training data. During the training process, experience replay and random batch sampling mechanisms are used. After the agent is initialized and updated, experience can be generated during the execution process, which can be expressed as , stored in the experience pool, randomly extracting experience in batches from the experience pool for training during training, reusing past experience and breaking the sequence correlation of experience to maintain the stable convergence of the training process; using the target network mechanism, the strategy of the current network of the agent is expressed as , the parameters of the actuator network of the current network are expressed as , the strategy of the target network is expressed as , the parameters of the actuator network of the target network are expressed as , the target network has the same parameters as the current network at the beginning; the training process of the multi-agent deep deterministic policy gradient algorithm first updates the evaluator network and randomly extracts N samples from the experience pool , where the loss function of the evaluator network is defined as:

[0073]

[0074] in, is the Q value output by the evaluator of the current network, is the Q value output by the evaluator of the target network, and the evaluator network is updated by minimizing the loss function; then the policy gradient is used Update the executor network:

[0075]

[0076] in, and are the gradients obtained by the actuator network and the evaluator network respectively; after updating the current network multiple times, the target network is updated, which can be expressed as:

[0077]

[0078] Where 0< <1, used to adjust the learning rate. In addition, in order to prevent the training process from falling into the local optimal solution and ensure the balance between intelligent agent exploration and application, Greedy strategy is used to select actions at each time step, 0< <1, The probability of taking the best action according to the strategy that the agent has learned is The probability of randomly selecting an action is .

[0079] (6) The trained model in step (5) is pruned and quantized, and deployed to the information processing unit of the acousto-optic tunable infrared multi-spectral imaging system: after the model training is completed, only the actuator network is used to select the spectral parameters. In order to speed up the inference speed, the trained model is pruned and quantized; for the convolution layer, its channel importance is evaluated according to the absolute value of the scaling factor of the batch normalization layer after the convolution layer; for the fully connected layer, its channel importance is evaluated according to the product of the absolute value of the fully connected layer parameter and the gradient size, and the connections with little impact on the network model are pruned. The pruned network model is fine-tuned to maintain the accuracy of the network model; in addition, the network parameters are quantized from float32 to int8 to reduce the model size to speed up the inference speed; the pth model file is converted to an om model file and deployed in the information processing unit of the acousto-optic tunable infrared multi-spectral imaging system. The information processing unit uses the Huawei Atlas 200DK intelligent acceleration kit, which can run the om model for inference.

[0080] (7) After the acousto-optic tunable infrared multi-spectral imaging system acquires new data, the principal component analysis method in step (2) is first used to process the new data to determine the number of spectral parameter combinations to be selected. Then, the spectral parameter selection model deployed in step (6) is used to select the new data to obtain the optimal wavelength and synthetic bandwidth combination. The corresponding frequency combination is obtained according to the corresponding relationship between the wavelength and the driving signal frequency. The driving signals of the corresponding frequencies are generated in turn to obtain image data of different bands. After synthesis, the optimized multi-spectral image data is obtained: the acousto-optic tunable infrared multi-spectral imaging system is used for target detection, and the imaging system acquires new data in the range of 3.7~4.8μm. , There are 21 bands, namely , the image size is h×w; first use the method in step (2) to Conduct principal component analysis to determine the number of choices for spectral parameter combinations ; Then use the spectral parameter selection model deployed in the information processing unit in step (6) to select the new data Make a selection Group spectral parameters, synthesize according to spectral parameters The wavelength combination required for a synthetic image is , for According to the corresponding relationship between wavelength and driving signal frequency, The corresponding driving signal frequency combination F is obtained, the power supply and driving unit generates driving signals of each frequency in F in turn, and the acousto-optic tunable infrared multi-spectral imaging system obtains multi-spectral image sequences in turn. , then according to Spectral parameter pair The optimized infrared multispectral image is synthesized.

Claims

1. An intelligent selection method for spectral parameters of an acousto-optic tunable infrared multi-spectral imaging system. Features: It contains the following steps: (1) Collect infrared multispectral image data of the target scene using an acousto-optic tunable infrared multispectral imaging system; (2) performing principal component analysis using the infrared multispectral image data in step (1) and obtaining the number of selected spectral parameter combinations according to the characteristic values; (3) Constructing an environmental model of a multi-agent reinforcement learning spectral parameter selection model based on a Markov game process. The multi-agent system includes a wavelength selection agent and a bandwidth selection agent. According to the requirements of the target detection task for the image signal-to-noise ratio, the spectral difference between the target and the interference, and the infrared multi-spectral image data and its number of bands, image size, wavelength and bandwidth parameters of each band in step (1), the environmental model of the multi-agent system is parameterized, and the number of spectral parameter combinations selected is set according to the result of step (2): the spectral parameters selected by the multi-agent reinforcement learning spectral parameter selection model include wavelength and synthetic bandwidth, which are generated by the wavelength selection agent and bandwidth selection agent of the multi-agent system respectively; designing the environmental model of the multi-agent system based on the Markov game process can be composed of a tuple To express, represents the state of the multi-agent system, represents the actions of the wavelength selection agent and the bandwidth selection agent, represents the state transition function, represents the reward function for the wavelength selection agent and the bandwidth selection agent, represents the discount factor; in order to serve the target detection, the image signal-to-noise ratio of the selected band is required to be large, so as to facilitate the target detection in different scenes, and the spectral difference between the target and the interference in the selected band combination is large, so as to distinguish the target and the interference based on the spectral information. Therefore, the reward function of the intelligent agent is set according to the image signal-to-noise ratio and the spectral difference between the target and the interference; according to the multispectral image sequence obtained in step 1 Its band number n, image size h×w, wavelength of each band and bandwidth , the environment model of the multi-agent system is modeled as follows: state: , Represents the use of multispectral image sequence The extracted features, Indicates the currently selected spectral parameters; a feature extraction network is constructed using a 2-layer convolution-long short-term memory network and a 1-layer 2D convolution layer. After feature extraction, we get the spectral features of size n×10 ; is a vector of length n, representing the currently selected wavelength and synthesis bandwidth; Action: The action of the wavelength selection agent Represented as a vector of length n, if The value corresponding to index i is the largest, indicating that The i-th wavelength is selected from the bandwidth selection agent. is a scalar, indicating the selected synthetic bandwidth. If the current wavelength selection agent selects the i-th wavelength, The bandwidth of the index [i-2, i-1, i, i+1, i+2] is [ , , , , ], then the bandwidth selects the current action of the agent The minimum value of , the maximum value is ; State transfer function: represents the current state of the multi-agent system The actions taken by the multi-agents Mapping to the next state The probability distribution of , the state transfer function of the multi-agent reinforcement learning spectral parameter selection model is determined and expressed as follows: ; in, is the number of selected bands, is the number of selected spectral parameter combinations obtained in step (2), Indicates the termination state; Reward function: Reward function for the wavelength selection agent Spectral angles of target and interference using all currently selected wavelength combinations Indicates that the target spectrum Interference Spectrum Spectral angle It is expressed as: ; Define the reward function for the wavelength selection agent ; Reward function for bandwidth selection agent The synthetic image corresponding to the synthetic bandwidth selected at the current time step The signal-to-noise ratio SCR is expressed as: ; in, is the mean grayscale value of the target in the synthetic image, is the grayscale mean of the background around the target, is the grayscale standard deviation of the background around the target, and defines the reward function ; Synthetic image Based on the action of the agent at the current time step OK, if the currently selected wavelength is , the selected synthesis bandwidth is , then the corresponding start and end wavelengths are and , for the images in data H , , , linear interpolation yields and Image at and : ; The composite bandwidth is calculated by integrating Composite image within range : ; The reward of the multi-agent system is obtained by combining two agents, namely ,in , is a trainable parameter; Discount Factor: , used in reinforcement learning to regulate the impact of long-term rewards; (4) Based on the environmental model constructed in step (3), the input and output, network structure and interaction relationship of the actuator and evaluator of the wavelength selection agent and the bandwidth selection agent are designed to construct a multi-agent reinforcement learning spectral parameter selection model; (5) Using the infrared multi-spectral image data in step (1) as training data, a multi-agent deep deterministic policy gradient algorithm is used to train the multi-agent reinforcement learning spectral parameter selection model constructed in step (4); (6) Pruning and quantizing the model trained in step (5) and deploying it to the information processing unit of the acousto-optic tunable infrared multi-spectral imaging system; (7) After the acousto-optic tunable infrared multispectral imaging system acquires new data, the principal component analysis method in step (2) is first used to process the new data to determine the number of spectral parameter combinations to be selected. The spectral parameter selection model deployed in step (6) is then used to select the new data to obtain the optimal wavelength and synthetic bandwidth combination. The corresponding frequency combination is obtained according to the corresponding relationship between the wavelength and the driving signal frequency. The driving signals of the corresponding frequencies are generated in turn to obtain image data of different bands. After synthesis, the optimized multispectral image data is obtained.

2. The method for intelligently selecting spectral parameters of an acousto-optic tunable infrared multi-spectral imaging system according to claim 1, wherein step (1) uses the acousto-optic tunable infrared multi-spectral imaging system to collect infrared multi-spectral image data of a target scene: the acousto-optic tunable infrared multi-spectral imaging system is composed of three parts: an imaging system, an information processing unit, and a power supply and drive unit; wherein the imaging system is based on an acousto-optic tunable filter for light splitting; by applying driving signals of different frequencies to the acousto-optic tunable filter, infrared spectral images of different wavelengths can be obtained; and the information processing unit can process the obtained infrared spectral images. The image taken is processed, the power supply and driving unit supplies power to the imaging system and the information processing unit, and generates a driving signal of the corresponding frequency according to the instruction of the information processing unit; the acoustic-optic tunable infrared multi-spectral imaging system can acquire infrared multi-spectral image data of different bands in time-sharing, and has the working characteristics of staring imaging and continuous tunability of the detection band. The effective band range is 3.7~4.8 microns, and the spectral bandwidth is 30~60 nanometers; the acoustic-optic tunable infrared multi-spectral imaging system is used to collect infrared multi-spectral image sequence data of the target scene within the range of 3.7~4.8 microns , Contains n bands, the image size is h×w, and the central wavelength set of n bands is , the corresponding bandwidth set is , Used to determine the number of choices for band spectral parameter combinations and train spectral parameter selection models.

3. The method for intelligently selecting spectral parameters of an acousto-optically tunable infrared multi-spectral imaging system according to claim 1, wherein step (2) performs principal component analysis on the infrared multi-spectral image data in step (1), and obtains the number of selected spectral parameter combinations according to the characteristic values: Conduct principal component analysis and determine the number of band selections. The process is as follows: 1) The spectrum of all pixels in can be expressed as , Represents the spectrum of pixel i, which is an n-dimensional vector. First, Decentralization ; 2) Calculate the covariance matrix ; 3) Covariance matrix Perform eigenvalue decomposition to obtain eigenvalues ​​and eigenvectors; 4) Arrange the eigenvalues ​​from large to small as , select the threshold as , Take 0.95~0.99, if the first K eigenvalues ​​meet , then set and select K spectral parameter combinations, that is, K groups of wavelengths and synthetic bandwidths.

4. According to claim 1, a method for intelligently selecting spectral parameters of an acousto-optic tunable infrared multi-spectral imaging system, wherein step (4) designs the input and output, network structure and interaction relationship of the actuator and evaluator of the wavelength selection agent and the bandwidth selection agent on the basis of the environmental model constructed in step (3), and constructs a multi-agent reinforcement learning spectral parameter selection model: the wavelength selection agent and the bandwidth selection agent each include an actuator network and an evaluator network, wherein the actuator network generates actions according to the state of the multi-agent system, and the evaluator network can observe the global state and evaluate the actions generated by each actuator to guide the training of the actuator; for the actuator network of the wavelength selection agent, its input is the state of the multi-agent system. , the output is the action of the wavelength selection agent and the coefficient of the reward function The n+1-dimensional vector is composed of two fully connected layers. For the evaluator network of the wavelength selection agent, its input is the state and action of the multi-agent system. , the output is an evaluation Q of the action produced by the actuator network of the wavelength selection agent 1 , the evaluator network consists of 2 fully connected layers; for the actuator network of the bandwidth selection agent, its input is the state of the multi-agent system , the output is the action of the bandwidth selection agent and the coefficient of the reward function The length of the vector is 2, and the actuator network consists of 2 fully connected layers; for the evaluator network of the bandwidth selection agent, its input is the state and action of the multi-agent system , the output is an evaluation Q of the action produced by the actuator network of the bandwidth selection agent 2 , the evaluator network consists of two fully connected layers; the actions of the two agents will affect each other's environment, and the agents achieve the Nash equilibrium of the multi-agent system through cooperation and game.

5. According to claim 1, a method for intelligently selecting spectral parameters of an acousto-optic tunable infrared multi-spectral imaging system, wherein step (5) uses the infrared multi-spectral image data in step (1) as training data, and adopts a multi-agent deep deterministic policy gradient algorithm to train the multi-agent reinforcement learning spectral parameter selection model constructed in step (4): In step (4), a multi-agent reinforcement learning spectral parameter selection model is constructed, and a multi-agent deep deterministic policy gradient algorithm is used to train it. The multi-agent deep deterministic policy gradient algorithm uses a paradigm of centralized training and distributed execution to alleviate the problem of non-stationary training environment. The infrared multi-spectral image data collected in step (1) is used as training data. During the training process, experience replay and random batch sampling mechanisms are used. After the agent is initialized and updated, experience can be generated during the execution process, which can be expressed as , stored in the experience pool, randomly extracting experience in batches from the experience pool for training during training, reusing past experience and breaking the sequence correlation of experience to maintain the stable convergence of the training process; using the target network mechanism, the strategy of the current network of the agent is expressed as , the parameters of the actuator network of the current network are expressed as , the strategy of the target network is expressed as , the parameters of the actuator network of the target network are expressed as , the initial target network has the same parameters as the current network; the training process of the multi-agent deep deterministic policy gradient algorithm first updates the evaluator network and randomly extracts N samples in batches from the experience pool , where the loss function of the evaluator network is defined as: ; in, is the Q value output by the evaluator of the current network, is the Q value output by the evaluator of the target network, and the evaluator network is updated by minimizing the loss function; then the policy gradient is used Update the executor network: ; in, and are the gradients obtained by the actuator network and the evaluator network respectively; after updating the current network multiple times, the target network is updated, which can be expressed as: ; Where 0< <1, used to adjust the learning rate. In addition, in order to prevent the training process from falling into the local optimal solution and ensure the balance between intelligent agent exploration and application, Greedy strategy is used to select actions at each time step, 0< <1, The probability of taking the best action according to the strategy that the agent has learned is The probability of randomly selecting an action is .

6. According to claim 1, a method for intelligently selecting spectral parameters of an acousto-optic tunable infrared multi-spectral imaging system, wherein step (6) prunes and quantizes the model trained in step (5) and deploys it to the information processing unit of the acousto-optic tunable infrared multi-spectral imaging system: after the model training is completed, only the actuator network is used to select spectral parameters. In order to speed up the reasoning speed, the trained model is pruned and quantized; for the convolution layer, its channel importance is evaluated according to the absolute value of the scaling factor of the batch normalization layer after the convolution layer; for the fully connected layer, its channel importance is evaluated according to the product of the absolute value of the fully connected layer parameter and the gradient size, the connection with little influence on the network model is pruned, and the pruned network model is fine-tuned to maintain the accuracy of the network model; in addition, the network parameters are quantized from float32 to int8 to reduce the model size to speed up the reasoning speed; the pth model file is converted into an om model file and deployed in the information processing unit of the acousto-optic tunable infrared multi-spectral imaging system, and the information processing unit adopts Huawei Atlas 200DK intelligent acceleration kit, which can run the om model for reasoning.

7. According to claim 1, a method for intelligently selecting spectral parameters of an acousto-optic tunable infrared multi-spectral imaging system, wherein in step (7), after the acousto-optic tunable infrared multi-spectral imaging system acquires new data, the principal component analysis method in step (2) is first used to process the new data to determine the number of selected spectral parameter combinations, and then the spectral parameter selection model deployed in step (6) is used to select the new data to obtain the optimal wavelength and synthesis bandwidth combination, and the corresponding frequency combination is obtained according to the corresponding relationship between the wavelength and the driving signal frequency, and the driving signals of the corresponding frequencies are sequentially generated to obtain image data of different bands, and the optimized multi-spectral image data is obtained after synthesis: the acousto-optic tunable infrared multi-spectral imaging system is used to detect the target, and the imaging system acquires new data in the range of 3.7~4.8μm , There are n bands, namely , the image size is h×w; first use the method in step (2) to Conduct principal component analysis to determine the number of choices for spectral parameter combinations ; Then use the spectral parameter selection model deployed in the information processing unit in step (6) to select the new data Make a selection Group spectral parameters, synthesize according to spectral parameters The wavelength combination required for a synthetic image is , for According to the corresponding relationship between wavelength and driving signal frequency, The corresponding driving signal frequency combination F is obtained, the power supply and driving unit generates driving signals of each frequency in F in turn, and the acousto-optic tunable infrared multi-spectral imaging system obtains multi-spectral image sequences in turn. , then according to Spectral parameter pair The optimized infrared multispectral image is synthesized.