Attack resisting method and device for infrared intelligent detector
The particle swarm optimization algorithm is used to optimize the combination of digital patches and construct real patches, which solves the problem of insufficient concealment and flexibility of infrared smart detectors against patches, and achieves efficient counterattack effects.
Patent Information
- Application Number
- CN202410769927.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-01
AI Technical Summary
Existing infrared smart detectors are insufficient in concealment and deception against patches, resulting in reduced effectiveness against attacks in complex environments. Moreover, existing methods rely on fixed textures and have poor flexibility and portability.
Use the particle swarm optimization algorithm to optimize the digital patch combination, optimize the position, gray value matrix and size of the digital patch combination to minimize the power consumption value and attack effect evaluation index, construct a real patch and adjust the heating unit through the PID control algorithm temperature, achieving high concealment and flexibility against attacks against infrared smart detectors.
It improves the concealment and deception of real patches, enhances the effectiveness against attacks, and improves the flexibility and portability of patches compared with traditional methods.
Smart Images

Figure CN118734295A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of counterattacks, and in particular relates to a counterattack method and device for infrared intelligent detectors. Background Art
[0002] With the development of artificial intelligence technology, infrared detection technology is increasingly used in military reconnaissance and security monitoring. However, the complex and changeable external environment may interfere with the infrared detection system, causing misjudgment and affecting the normal operation of the system. Therefore, in order to ensure that the infrared detection system can still function reliably under complex environmental conditions and maintain good security, it is necessary to improve the robustness and adaptability of the infrared detection system.
[0003] At present, adversarial patch attack methods are usually used to train infrared detection systems to improve the robustness and adaptability of infrared detection systems. The specific method is to add carefully designed adversarial patches to the entity to "deceptively train" the infrared detection system to induce misclassification of the infrared detection system, thereby better evaluating the security of the infrared detection system and then making corresponding improvements to the infrared detection system based on the evaluation results.
[0004] However, the commonly used adversarial patch attack methods currently have a series of defects, which limit the effectiveness and flexibility of adversarial patches in practical applications. First, the adversarial patches used by existing methods usually rely on fixed textures, which means that once the texture needs to be adjusted or changed, the adversarial patches must be remade, which is not only time-consuming and labor-intensive, but also lacks flexibility. Secondly, the adversarial patches used by existing methods also have the problems of heavy weight, large volume, and inconvenient to carry and deploy. Especially in actual operations where concealment and portability are required, these adversarial patches may appear unnatural in infrared images, reducing the concealment and deceptiveness of the adversarial patches, resulting in a weakening of the effectiveness of the adversarial attack.
[0005] Therefore, how to provide a highly concealed and flexibly adjustable anti-attack method for infrared intelligent detectors has become an urgent problem to be solved. Summary of the invention
[0006] In order to solve the above problems existing in the prior art, the present invention provides a method and device for countering attacks on infrared intelligent detectors.
[0007] The technical problem to be solved by the present invention is achieved through the following technical solutions:
[0008] In a first aspect, the present invention provides a method for countering attacks against an infrared intelligent detector, the method comprising:
[0009] Get the original infrared image;
[0010] Identifying a target range in the original infrared image;
[0011] Based on the particle swarm optimization algorithm, the combination of digital patches that can be added to the target range is optimized to obtain an optimized digital patch combination; wherein the position vector of the particle is composed of the positions, gray value matrix and size of multiple digital patches in the digital patch combination, and the optimization process takes minimizing the power consumption value and attack effect evaluation index of the digital patch combination as the optimization goal; the power consumption value is calculated based on the gray value matrix of the digital patches in the digital patch combination; the attack effect evaluation index is inversely proportional to the effect of the success of the counterattack;
[0012] Based on the size correspondence of the digital patches in the optimized digital patch combination, a real patch is constructed to obtain a plurality of real patches; the real patch is composed of a plurality of heating units;
[0013] According to the position of the digital patch in the optimized digital patch combination within the target range, a corresponding real patch is mounted on the real target;
[0014] According to the gray value matrix of the digital patch in the optimized digital patch combination, the temperature of multiple heating units of the corresponding real patch is controlled to achieve adversarial attack against the infrared intelligent detector.
[0015] Optionally, in the grayscale value matrix of each digital patch, the grayscale value of any element is grayscale value C1, grayscale value C2 or grayscale value C3.
[0016] Optionally, according to the gray value matrix of the digital patch in the optimized digital patch combination, the temperature of a plurality of heating units of the corresponding real patch is controlled, including:
[0017] For each real patch, temperature data of multiple heating units of the real patch are obtained, and a gray value matrix of the real patch is constructed according to the temperature data;
[0018] The error between the gray value matrix of each digital patch in the optimized digital patch combination and the gray value matrix of the corresponding real patch is calculated; based on the error, the temperature of multiple heating units of the corresponding real patch is controlled by using a PID control algorithm.
[0019] Optionally, the optimization goal is achieved by the following objective function:
[0020]
[0021] Where n represents the total number of digital patches in the digital patch combination; patchi represents the i-th digital patch in the digital patch combination, represents the power consumption value calculated according to the gray value matrix of the i-th digital patch; Represents the attack effect evaluation index of the digital patch combination.
[0022] Optionally, the power consumption value of the i-th digital patch in the digital patch combination is:
[0023]
[0024] in, represents the power consumption value calculated according to the gray value matrix of the i-th digital patch in the digital patch combination; λ 1 represents the first weighting factor; represents the power loss value of the i-th digital patch, which is obtained by simulating heat exchange between elements using the gray value matrix of the i-th digital patch; 2 represents the second weighting factor; It represents the total electric power loss value of the i-th digital patch; the total electric power loss value is obtained by simulating the convective heat exchange between the gray value matrix of the i-th digital patch and the external environment.
[0025] Optionally, a real patch is constructed based on the size correspondence of the digital patches in the optimized digital patch combination to obtain multiple real patches, including:
[0026] For each digital patch in the optimized digital patch combination, the sizes of multiple grayscale blocks constituting the digital patch are determined according to the size of the digital patch; multiple heating units corresponding to each other are constructed according to the sizes of the multiple grayscale blocks; and the real patch corresponding to the digital patch is constructed using the multiple heating units.
[0027] Optionally, the attack effect evaluation index is obtained in the following manner:
[0028] In each optimization process, the current optimized digital patch combination is added to the original infrared image to obtain the current optimized image;
[0029] Classify the current optimal image to obtain the probability score of the optimal image belonging to the target and non-target;
[0030] If the classification result is the target, the probability score of the current optimization image belonging to the target is used as the attack effect evaluation index of the current optimization;
[0031] If the classification result is non-target, the current optimization attack effect evaluation index is set to 0.
[0032] In a second aspect, the present invention provides an anti-attack device for an infrared intelligent detector, the anti-attack device comprising: an original infrared image acquisition module, a target range recognition module, an optimization module and a temperature control module;
[0033] The original infrared image acquisition module is used to acquire the original infrared image;
[0034] The target range recognition module is used to recognize the target range in the original infrared image;
[0035] The optimization module is used to optimize the digital patch combination that can be added to the target range based on the particle swarm optimization algorithm to obtain the optimized digital patch combination, so as to construct a real patch based on the size of the digital patch in the optimized digital patch combination to obtain multiple real patches, and according to the position of the digital patch in the optimized digital patch combination within the target range, the corresponding real patch is carried for the real target; wherein the position vector of the particle is composed of the position, gray value matrix and size of the multiple digital patches in the digital patch combination, and the optimization process takes minimizing the power consumption value and attack effect evaluation index of the digital patch combination as the optimization goal; the power consumption value is calculated based on the gray value matrix of the digital patch in the digital patch combination; the attack effect evaluation index is inversely proportional to the effect of the success of the counterattack; the real patch is composed of multiple heating units;
[0036] The temperature control module is used to control the temperature of multiple heating units of the corresponding real patch according to the gray value matrix of the digital patch in the optimized digital patch combination, so as to achieve adversarial attack against the infrared intelligent detector.
[0037] Optionally, in the grayscale value matrix of each digital patch, the grayscale value of any element is grayscale value C1, grayscale value C2 or grayscale value C3.
[0038] Optionally, the temperature control module controls the temperatures of a plurality of heating units of a corresponding real patch according to the gray value matrix of the digital patch in the optimized digital patch combination, including:
[0039] For each real patch, temperature data of multiple heating units of the real patch are obtained, and a gray value matrix of the real patch is constructed according to the temperature data;
[0040] The error between the gray value matrix of each digital patch in the optimized digital patch combination and the gray value matrix of the corresponding real patch is calculated; based on the error, the temperature of multiple heating units of the corresponding real patch is controlled by using a PID control algorithm.
[0041] Optionally, the optimization goal is achieved by the following objective function:
[0042]
[0043] Where n represents the total number of digital patches in the digital patch combination; patchi represents the i-th digital patch in the digital patch combination, represents the power consumption value calculated according to the gray value matrix of the i-th digital patch; Represents the attack effect evaluation index of the digital patch combination.
[0044] Optionally, the power consumption value of the i-th digital patch in the digital patch combination is:
[0045]
[0046] in, represents the power consumption value calculated according to the gray value matrix of the i-th digital patch in the digital patch combination; λ 1 represents the first weighting factor; represents the power loss value of the i-th digital patch, which is obtained by simulating heat exchange between elements using the gray value matrix of the i-th digital patch; 2 represents the second weighting factor; It represents the total electric power loss value of the i-th digital patch; the total electric power loss value is obtained by simulating the convective heat exchange between the gray value matrix of the i-th digital patch and the external environment.
[0047] Optionally, a real patch is constructed based on the size correspondence of the digital patches in the optimized digital patch combination to obtain multiple real patches, including:
[0048] For each digital patch in the optimized digital patch combination, the sizes of multiple grayscale blocks constituting the digital patch are determined according to the size of the digital patch; multiple heating units corresponding to each other are constructed according to the sizes of the multiple grayscale blocks; and the real patch corresponding to the digital patch is constructed using the multiple heating units.
[0049] Optionally, the attack effect evaluation index is obtained in the following manner:
[0050] In each optimization process, the current optimized digital patch combination is added to the original infrared image to obtain the current optimized image;
[0051] Classify the current optimal image to obtain the probability score of the optimal image belonging to the target and non-target;
[0052] If the classification result is the target, the probability score of the current optimization image belonging to the target is used as the attack effect evaluation index of the current optimization;
[0053] If the classification result is non-target, the current optimization attack effect evaluation index is set to 0.
[0054] The present invention provides a counterattack method for infrared intelligent detectors, which comprises the following steps: obtaining an original infrared image; identifying a target range in the original infrared image; optimizing a digital patch combination that can be added to the target range based on a particle swarm optimization algorithm to obtain an optimized digital patch combination; wherein a particle position vector is composed of positions, gray value matrices and sizes of multiple digital patches in the digital patch combination, and minimizing the power consumption value and attack effect evaluation index of the digital patch combination is used as an optimization target during the optimization process; the power consumption value is calculated based on the gray value matrix of the digital patches in the digital patch combination; the attack effect evaluation index is inversely proportional to the effect of a successful counterattack; constructing a real patch based on the size of the digital patches in the optimized digital patch combination to obtain multiple real patches; the real patch is composed of multiple heating units; according to the position of the digital patches in the optimized digital patch combination within the target range, carrying a corresponding real patch for the real target; and according to the gray value matrix of the digital patches in the optimized digital patch combination, controlling the temperatures of multiple heating units of the corresponding real patch to achieve the counterattack against the infrared intelligent detector.
[0055] By taking the position, gray value matrix and size of the digital patch as the position vector of the particle, minimizing the power consumption of the particle and minimizing the attack effect evaluation index as the optimization goal, the particle swarm optimization algorithm is used to optimize the optimized digital patch combination with the minimum power consumption and the best success effect of the counterattack. Then, the real patch is constructed based on the size, position and gray value matrix of the digital patch in the optimized digital patch combination, which improves the concealment and deception of the real patch. Based on the real patch, the counterattack against the infrared intelligent detector can be more effectively realized.
[0056] Moreover, compared with the existing patches that need to rely on fixed textures, the flexibility of the real patch is improved by controlling the temperatures of multiple heating units of the corresponding real patch according to the gray value matrix of the digital patch in the optimized digital patch combination.
[0057] The present invention will be further described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a flowchart of a method for countering attacks on an infrared intelligent detector provided by an embodiment of the present invention;
[0059] Figure 2 is a schematic diagram of the structure of a real patch provided by an embodiment of the present invention;
[0060] Figure 3 is a schematic diagram of an original infrared image and an optimal image provided by an embodiment of the present invention;
[0061] Figure 4It is a flowchart of another method for countering attacks on infrared intelligent detectors provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0062] 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.
[0063] In order to solve the problem that the counterattack patches used in the currently commonly used counterattack patch attack methods have low concealment and deception, resulting in the weakening of the effectiveness of the counterattack, the embodiments of the present invention provide a counterattack method and device for infrared intelligent detectors.
[0064] First, a method for resisting attacks on an infrared intelligent detector provided by an embodiment of the present invention is described in detail. Figure 1 , Figure 1 : is a flowchart of a method for countering attacks on an infrared intelligent detector provided by an embodiment of the present invention, and the specific steps are as follows:
[0065] Step S101, obtaining an original infrared image.
[0066] In the embodiment of the present invention, the original infrared image is an image under thermal infrared imaging, and the original infrared image can be captured by a thermal infrared camera or an infrared thermal imager, and then the original infrared image can be obtained.
[0067] Step S102, identifying the target range in the original infrared image.
[0068] In the embodiment of the present invention, image processing technology, such as edge detection technology or threshold segmentation technology, etc., can be used to identify the target contour from the original infrared image, so as to determine the target range.
[0069] In the embodiment of the present invention, the target may refer to a human body, an animal, a ship or other objects that can be detected by an infrared intelligent detector.
[0070] Step S103, based on the particle swarm optimization algorithm, the digital patch combination that can be added to the target range is optimized to obtain the optimized digital patch combination; wherein the particle position vector is composed of the positions, gray value matrix and size of multiple digital patches in the digital patch combination, and the optimization process takes minimizing the power consumption value and attack effect evaluation index of the digital patch combination as the optimization goal; the power consumption value is calculated based on the gray value matrix of the digital patches in the digital patch combination; the attack effect evaluation index is inversely proportional to the effect of the success of the counterattack.
[0071] In the embodiment of the present invention, a digital patch combination may be composed of multiple digital patches. A digital patch combination added to the target range includes multiple digital patches added at any position in the target range.
[0072] In the embodiment of the present invention, a digital patch can be obtained by using a binary array pos i =(x i ,y i ) to represent its position in the original infrared image, where x i represents the horizontal coordinate of the i-th digital patch in the original infrared image; y i represents the vertical coordinate of the ith digital patch in the original infrared image. It should be noted that (x i ,y i ) cannot exceed the target range.
[0073] In adversarial attacks, digital patches refer to a carefully designed interfering element that deceives or confuses infrared smart detectors by covering part of the original infrared image with digital patches or replacing part of the original infrared image with digital patches, thereby causing the infrared smart detector to misjudge or misidentify.
[0074] Particle swarm optimization (PSO) algorithm is an optimization algorithm based on swarm intelligence, which is inspired by the behavior of natural groups such as bird flocks or fish schools. In the PSO algorithm, the solution to the optimization problem is regarded as a particle in the search space, which is a digital patch in the embodiment of the present invention. The basic idea of PSO is to search for the optimal solution by simulating the movement of particles in multidimensional space. Each particle has its own position vector and velocity, and can adjust its direction of movement according to individual optimality and global optimality. In short, particles continuously adjust their positions according to individual experience and group collaboration until the optimal solution is found or the stop condition is reached. The core of the particle swarm optimization algorithm is the update rule of particles, which includes position vector update and velocity update. The position vector update calculates the next position vector according to the current position, velocity and acceleration, while the velocity update updates the velocity according to the current velocity and acceleration. The design of these update rules directly affects the convergence speed and performance of PSO.
[0075] In the embodiment of the present invention, in the process of optimizing the digital patch combination that can be added to the target range based on the particle swarm optimization algorithm, the power consumption value and attack effect evaluation index of the digital patch combination are minimized as the optimization goal. During the optimization process, PSO continuously iterates and searches for the optimal solution by updating the position vector, speed and fitness value of the particles until the maximum number of iterations is reached or the preset fitness threshold is reached, and the optimized digital patch combination is obtained.
[0076] In the embodiment of the present invention, one particle in the particle swarm optimization algorithm corresponds to one digital patch combination; the position vector of the particle is composed of the positions, gray value matrix and size of multiple digital patches in the digital patch combination. The position of the digital patch can be used to determine the specific position of the digital patch within the target range, the gray value matrix is used to determine the grayscale presented by the digital patch on the original infrared image; the size of the digital patch is used to determine the size of the digital patch on the original infrared image.
[0077] In the embodiment of the present invention, the optimization process of PSO takes minimizing the power consumption value and attack effect evaluation index of the digital patch combination as the optimization goal, and finally the digital patch combination with the minimum power consumption and the best attack effect can be obtained.
[0078] The power consumption value is calculated based on the gray value matrix of the digital patches in the digital patch combination, and the power consumption value can be obtained by using the electric energy loss value and the total electric power loss value of the digital patch combination.
[0079] In the embodiment of the present invention, the attack effect evaluation index is inversely proportional to the effect of the success of the counter-attack, so minimizing the attack effect evaluation index means achieving the best effect of the success of the counter-attack.
[0080] Step S104, constructing a real patch based on the size correspondence of the digital patch in the optimized digital patch combination to obtain a plurality of real patches; the real patch is composed of a plurality of heating units.
[0081] In an embodiment of the present invention, after obtaining the optimized digital patch combination, the optimized digital patch combination can be mapped to the real physical world. Specifically, according to the size of the digital patches in the optimized digital patch combination, a corresponding structure of real patches can be constructed to obtain multiple real patches.
[0082] In the embodiment of the present invention, the real patch may be composed of multiple heating units. Figure 2 , Figure 2 is a schematic diagram of the structure of a real patch provided by an embodiment of the present invention, wherein the real patch is composed of 9 heating units.
[0083] In the embodiment of the present invention, a heating unit made of flexible electric heating material can be selected to construct the real patch. Since the flexible electric heating material can better fit on irregular surfaces, the portability of the real patch can be improved while enhancing the concealment of the real patch.
[0084] Step S105 , according to the positions of the digital patches in the optimized digital patch combination within the target range, a corresponding real patch is mounted on the real target.
[0085] In the embodiment of the present invention, the position of the digital patch in the optimized digital patch combination within the target range can be used to determine the corresponding position on the real target. Further, the specific position of the digital patch in the target range can be determined by optimizing the horizontal and vertical coordinates of the digital patch in the optimized digital patch combination.
[0086] In the embodiment of the present invention, according to the positions of multiple digital patches in the optimized digital patch combination within the target range, a real patch may be mounted at the position corresponding to each digital patch for the real target.
[0087] For example, when the target is a human body, if the digital patch is at the left shoulder position and the right shoulder position within the human body range, it can be determined that the corresponding real patch needs to be mounted on the left shoulder and the right shoulder of the real human body. The specific position of the real patch mounted on the left shoulder and the right shoulder of the real human body can also be determined by the horizontal and vertical coordinates of the digital patch.
[0088] Step S106, according to the gray value matrix of the digital patch in the optimized digital patch combination, the temperature of the multiple heating units of the corresponding real patch is controlled to achieve the adversarial attack against the infrared intelligent detector.
[0089] In an embodiment of the present invention, the temperature corresponding to each element in the gray value matrix can be determined by optimizing the gray value matrix of the digital patch in the digital patch combination, and then the temperature of multiple heating units of the real patch is controlled according to the temperature, one element corresponds to one heating unit, and when the temperature of the heating unit in the real patch reaches the temperature corresponding to each element in the digital patch, the gray value matrix presented by the real patch in the infrared intelligent detector is consistent with the digital patch in the optimized digital patch combination, so the real patch can be used to implement adversarial attacks against the infrared intelligent detector.
[0090] In an embodiment of the present invention, the temperature difference corresponding to each heating unit can be determined by the temperature determined by the gray value matrix of the digital patch and the temperature of the heating unit of the real patch, and then the temperature of the multiple heating units of the real patch can be controlled by reducing the temperature difference, so that the temperature of the multiple heating units of the real patch is adjusted to the temperature determined by the gray value matrix of the digital patch in the optimized digital patch combination. The real patch can also be subjected to infrared detection to determine the gray value matrix presented by the real patch, and then the temperature of the multiple heating units of the real patch can be controlled so that the gray value matrix presented by the real patch is close to the gray value matrix of the corresponding digital patch, thereby realizing the mapping from the gray value matrix of the digital patch to the temperature of the heating unit of the real patch.
[0091] In the embodiment of the present invention, the digital patch combination is mapped to the real world by controlling the temperatures of multiple heating units of the real patch corresponding to each digital patch in the digital patch combination.
[0092] In an embodiment of the present invention, the position, gray value matrix and size of the digital patch are used as the position vector of the particle, minimizing the power consumption value of the particle and minimizing the attack effect evaluation index are used as the optimization goal, and the particle swarm optimization algorithm is used for optimization to obtain an optimized digital patch combination with the minimum power consumption value and the best successful anti-attack effect. Then, a real patch is constructed based on the size, position and gray value matrix of the digital patch in the optimized digital patch combination, thereby improving the concealment and deceptiveness of the real patch. Based on the real patch, anti-attacks against infrared intelligent detectors can be more effectively implemented.
[0093] Moreover, compared with the existing patches that need to rely on fixed textures, the flexibility of the real patch is improved by controlling the temperatures of multiple heating units of the corresponding real patch according to the gray value matrix of the digital patch in the optimized digital patch combination.
[0094] In addition, the multiple real patches constructed according to the digital patches in the optimized digital patch combination are not integrated, but multiple separate real patches, which can be separately carried in the corresponding positions in the real target, making them easier to carry and conceal.
[0095] In the embodiment of the present invention, the particle swarm optimization algorithm is selected as the deployment strategy search algorithm of the digital patch because the particle swarm optimization algorithm has the following characteristics: simple and easy to implement, the idea of the particle swarm optimization algorithm is simple and easy to implement; no gradient information is required, the particle swarm optimization algorithm does not require the gradient information of the objective function, and is therefore suitable for nonlinear, non-convex, and high-dimensional optimization problems; strong global search capability, the particle swarm optimization algorithm has a strong global search capability and can effectively explore the solution space in the search space; few parameters, the particle swarm optimization algorithm has only a few parameters that need to be adjusted, and therefore it is relatively easy to adjust the parameters to obtain better performance.
[0096] In the embodiment of the present invention, in the gray value matrix of each digital patch, the gray value of any element is gray value C1, gray value C2 or gray value C3, wherein gray value C1, gray value C2 or gray value C3 can be gray values set by technicians.
[0097] The gray value matrix of the digital patch may be an A×A matrix, where A is a positive integer. The A×A matrix includes A×A elements, each element corresponding to a gray value.
[0098] In the embodiment of the present invention, the coordinates of the element may also be determined by the coordinates (j, k), where j is the horizontal coordinate of the element and k is the vertical coordinate of the element.
[0099] For example, for a 3×3 grayscale value matrix, which contains 9 elements, each element corresponds to 1 grayscale value. For an element with a horizontal coordinate of 1 and a vertical coordinate of 3, the grayscale value of the element with coordinates (1,3) can be expressed as grayscale value C3. Or for an element with a horizontal coordinate of 2 and a vertical coordinate of 1, the grayscale value of the element with coordinates (2,1) can be expressed as grayscale value C2.
[0100] In an embodiment of the present invention, according to the gray value matrix of the digital patch in the optimized digital patch combination, the temperature of the plurality of heating units of the corresponding real patch is controlled, including:
[0101] For each real patch, the temperature data of multiple heating units of the real patch are obtained, and the gray value matrix of the real patch is constructed according to the temperature data; the error between the gray value matrix of each digital patch in the optimized digital patch combination and the gray value matrix of the corresponding real patch is calculated; based on the error, the temperature of the multiple heating units of the corresponding real patch is controlled by using a PID (Proportional-Integral-Derivative) control algorithm.
[0102] In an embodiment of the present invention, a real patch is composed of multiple heating units. The temperature data of each heating unit of the real patch is obtained in sequence, and then the obtained temperature data is converted into gray values through linear mapping or other suitable mapping methods, and then the gray value matrix of the real patch is constructed. The error between the two gray value matrices can be calculated by optimizing the gray value matrix of each digital patch in the digital patch combination and the gray value matrix of the corresponding real patch. Then, based on the error, the temperature of the multiple heating units of the corresponding real patch can be controlled by the PID control algorithm. The PID control algorithm is a commonly used feedback control idea, which is widely used in the fields of industrial control and automation. The PID controller measures the state of the heating unit in the real patch and adjusts the control amount according to the error value to make the system reach the desired state or remain near the desired state.
[0103] In an embodiment of the present invention, the PID control algorithm can be implemented using a PID controller. The PID controller includes a proportional controller, an integral controller, and a differential controller. The proportional controller generates a control output according to the current error. Its function is to make the response of the real patch to the error proportional to the error value itself, that is, the speed of the response is proportional to the size of the error. The output of the proportional controller is proportional to the size of the current error, and is used to improve the static accuracy of the real patch. The integral controller generates a control output according to the integral value of the error. Its function is to eliminate the steady-state error of the real patch and ensure that the real patch is stable near the desired state. The output of the integral controller is proportional to the integral value of the error, and is used to improve the dynamic accuracy and stability of the real patch. The differential controller generates a control output according to the rate of change of the error. Its function is to predict the future behavior of the real patch and suppress the oscillation and overshoot of the real patch. The output of the differential controller is proportional to the rate of change of the error value, and is used to improve the dynamic response speed and stability of the real patch.
[0104] In the embodiment of the present invention, an error signal can be obtained based on the error, and the error signal can be input into a PID controller, and the PID controller can output a total output using a PID control algorithm. The PID controller includes a proportional controller, an integral controller, and a differential controller, and the corresponding total output is formed by adding the output values of the proportional controller, the integral controller, and the differential controller. The expression of the total output is:
[0105]
[0106] Where u(t) represents the total output at time t; e(t) represents the error signal at time t; K p Represents the gain parameter of the proportional controller; K i Represents the gain parameter of the integral controller; K d represents the gain parameter of the differential controller; e(τ) represents the parameter used in the integral formula.
[0107] In the embodiment of the present invention, the temperature of the multiple heating units constituting the real patch can be adjusted according to the total output of the PID controller. The specific process is as follows:
[0108] Based on the control idea of PID controller, first, the temperature detection unit in the PID controller uses high-precision temperature sensors to monitor the temperature of the heating unit in real time. The output of these sensors is sent to the central control unit, which contains a microprocessor for executing the PID control algorithm. The central control unit compares the real-time temperature collected with the reference temperature required for control (the temperature obtained based on the gray value matrix of the optimized digital patch). According to the temperature control algorithm, the control amount is calculated, and a PWM (pulse width modulation) signal is output based on the control amount. Subsequently, the PWM signal is fed to the H-bridge drive circuit to control the heating or cooling of the heating unit, so that the temperature of the heating unit can be quickly and accurately stabilized at the temperature obtained based on the gray value matrix of the optimized digital patch. In addition, the central control unit can communicate with a personal computer through a serial port to set the working parameters of the physical board.
[0109] The outputs of the proportional controller, integral controller and differential controller in the PID controller are further explained below:
[0110] Proportional controller (P): Assume that the current temperature of the heating unit is T current , optimize the temperature corresponding to the gray value matrix of the digital patch, that is, the target temperature is T target , then the proportional controller output is:
[0111] P output =K p ×(T target -T current );
[0112] Among them, K p Represents the proportional gain coefficient; P output Represents the proportional controller output.
[0113] Integral controller (I): Assume that the integral value of the temperature deviation of the heating unit is ∫(T target -T current )dt, the integral controller output is:
[0114] I output =K i ∫(T target -T current )dt;
[0115] Among them, I output Indicates the integral controller output; K i Represents the integral gain coefficient.
[0116] Differential controller (D): Assume that the temperature change rate of the current heating unit is d(T target -T current )dt, the output of the differential controller is:
[0117] D output =K d ×d(T target -T current )dt;
[0118] Where Kd represents the differential gain coefficient; D output represents the output of the derivative controller.
[0119] The outputs of the proportional controller, integral controller and differential controller are superimposed to obtain the total output of the PID controller:
[0120] PID output =P output +I output +D tutput ;
[0121] Among them, PID output Represents the total output of the PID controller.
[0122] In order to further optimize the control effect and reduce the computational burden of the microprocessor, the output of the control signal adopts the method of cumulative increment. The calculation of the increment can be expressed as:
[0123] Δu(t)=K p ×Δe(t)+K i ×e(t)+K d ×(Δe(t)-Δe(t-1));
[0124] Among them, Δe(t)=e(t)-e(t-1); e(t-1) represents the error signal at time t-1; Δe(t) represents the difference between the error signal at time t and the error signal at time t-1; Δu(t) represents the total output increment of the PID controller. Based on Δu(t), the output of the PID controller is updated to u(t)=u(t-1)+Δu(t); u(t-1) represents the total output of the PID controller at time t-1.
[0125] In the embodiment of the present invention, by adopting this method, the total output of the PID controller at time t and the total output at subsequent times can be calculated by only using the error at time t and the error at the previous time t-1.
[0126] In an embodiment of the present invention, a real patch is constructed based on the size correspondence of the digital patch in the optimized digital patch combination to obtain multiple real patches, including:
[0127] For each digital patch in the optimized digital patch combination, the sizes of multiple grayscale blocks constituting the digital patch are determined according to the size of the digital patch; multiple heating units corresponding to each other are constructed according to the sizes of the multiple grayscale blocks; and the real patch corresponding to the optimized digital patch is constructed using the multiple heating units.
[0128] In an embodiment of the present invention, the size of each digital patch in the optimized digital patch combination, that is, the size of the area covered by the digital patch, is determined to determine the size of multiple grayscale blocks constituting the digital patch. The grayscale block is an element constituting the digital patch. Then, according to the size of each grayscale block in each determined digital patch, a plurality of heating units corresponding to each other are constructed. Finally, a plurality of heating units can be used to construct a real patch corresponding to the digital patch according to the layout of the digital patch corresponding to the digital patch.
[0129] In an embodiment of the present invention, by determining the sizes of multiple grayscale blocks constituting a digital patch, and then constructing multiple heating units corresponding to each other according to the sizes of the multiple grayscale blocks, and then constructing a real patch corresponding to the digital patch, it is possible to simulate each element of the digital patch more carefully, which helps to improve the anti-attack effect of the constructed real patch on infrared intelligent detectors.
[0130] In the embodiment of the present invention, the optimization target is composed of two parts: the power consumption value of the digital patch combination and the attack effect evaluation index. The optimization target can be achieved through the following objective function:
[0131]
[0132] Where n represents the total number of digital patches in the digital patch combination; patchi represents the i-th digital patch in the digital patch combination, represents the power consumption value calculated according to the gray value matrix of the i-th digital patch; Represents the attack effect evaluation index of the digital patch combination.
[0133] In an embodiment of the present invention, by minimizing the power consumption value of the digital patch combination, the energy consumption of the real patch finally obtained according to the digital patch can be minimized, and minimizing the attack effect evaluation index of the digital patch combination can optimize the attack effect, that is, the concealment of the real patch obtained according to the digital patch is better, and the adversarial attack on the infrared intelligent detector is more effective.
[0134] In the embodiment of the present invention, the power consumption value is related to the gray value matrix of the digital patch, patchi represents the i-th digital patch in the digital patch combination, and the gray value matrix of the i-th digital patch in the digital patch combination is input when the power consumption value is calculated. The power consumption value of each digital patch combination consists of two parts: the electric energy loss value and the electric power loss value.
[0135] According to the electric energy loss value and the total electric power loss value, the power consumption value of the i-th digital patch in the digital patch combination is determined as:
[0136]
[0137] in, represents the power consumption value calculated according to the gray value matrix of the i-th digital patch in the digital patch combination; λ 1 represents the first weighting factor; represents the power loss value of the i-th digital patch, which is obtained by simulating heat exchange between elements using the gray value matrix of the i-th digital patch; 2 represents the second weighting factor; It represents the total electric power loss value of the i-th digital patch; the total electric power loss value is obtained by simulating the convective heat exchange between the gray value matrix of the i-th digital patch and the external environment.
[0138] The following will take the power consumption value of a digital patch in the digital patch combination as an example to illustrate:
[0139] Unlike adversarial patches based on RGB (a color mode), there is a physical phenomenon called heat transfer between each element in the digital patch. This phenomenon blurs the boundaries between adjacent elements, making it challenging to accurately map the digital patch to the physical world. In order to reduce the gap between real patches and digital patches in the physical and digital worlds, heat transfer loss light can be used to guide the generation of digital patches. Since the heat transfer phenomenon between objects with large temperature differences is more significant, the total heat transfer can be reduced by reducing the temperature difference between adjacent units. Based on this, the power loss value of a digital patch can be expressed as:
[0140]
[0141] in, represents the power loss value of the ith digital patch in the digital patch combination, which is obtained by simulating the heat exchange between elements using the gray value matrix of the ith digital patch; j represents the abscissa of the element in the gray value matrix of the digital patch; k represents the ordinate of the element; T j,k Indicates the temperature corresponding to the gray value of the element with coordinates (j, k); T j+1,k Indicates the temperature corresponding to the gray value of the element with coordinates (j+1, k); T j,k+1 Indicates the temperature corresponding to the grayscale value of the element with coordinates (j, k+1).
[0142] In the embodiment of the present invention, the real patch needs power to maintain its stable performance. In order to save electricity costs, the power loss value is proposed
[0143] In the embodiment of the present invention, it is assumed that the ambient temperature is T temp , the expected temperature of the heating unit is T obj . The power required to convert electrical energy into thermal energy in order to keep the temperature stable should be balanced with the heat loss of the real patch. Specifically, there are usually three ways of heat loss: conduction, convection and radiation. Generally speaking, since heat loss due to radiation is only considered in high-temperature applications, the main ways of heat loss in digital patches are conduction and convection. Convection is caused by the flow of fluid (usually air or liquid), and according to Newton's law of cooling, it can be expressed as:
[0144] Q convection =h×A×|T obj -T temp |;
[0145] Among them, q convection It represents the heat loss caused by external convection heat transfer of the object; h represents the convection heat transfer coefficient; A represents the surface area in contact with the fluid.
[0146] According to Fourier's law, q conduction The heat loss caused by heat transfer inside the object can be expressed as:
[0147]
[0148] Where k and d are the thermal conductivity and thickness of the simulated digital patch, respectively. ΔT represents the temperature difference on both sides of the simulated digital patch.
[0149] Considering the case of good heat dissipation, ΔT=|T obj -T temp |. Due to Q convection and Q conduction Both with T obj and T temp The difference is first-order linearly correlated, so the total power loss value of the i-th digital patch can be expressed as:
[0150]
[0151] in, Represents the temperature corresponding to the grayscale value of the element with coordinates (j, k) in the i-th digital patch.
[0152] In the embodiment of the present invention, the attack effect evaluation index is obtained by:
[0153] In each optimization process, the current optimized digital patch combination is added to the original infrared image to obtain the current optimized image;
[0154] Classify the current optimal image to obtain the probability score of the optimal image belonging to the target and non-target;
[0155] If the classification result is the target, the probability score of the current optimization image belonging to the target is used as the attack effect evaluation index of the current optimization;
[0156] If the classification result is non-target, the current optimization attack effect evaluation index is set to 0.
[0157] In the embodiment of the present invention, the optimal image can be input into the target detector, and the target detector outputs the classification result including the bounding box f pos , object probability score f obj , class score f cls , which can be written as:
[0158] Output = {f pos ,f obj ,f cls};
[0159] Among them, Output represents the classification result.
[0160] In an embodiment of the present invention, As the attack effect evaluation index, the target is set to person. When the target detector detects that the result in the optimization image is the "person" category, select f cls , that is, the probability score of the current optimal image belonging to the target, as If the detection is another category, that is, not the person category, then The smaller the value, the better the attack effect. It can be defined as:
[0161]
[0162] Among them, else represents the non-person category.
[0163] See also Figure 3 , Figure 3 is a schematic diagram of an original infrared image and an optimal image provided by an embodiment of the present invention, Figure 3 (a) is the original infrared image, Figure 3 (b) is the optimal image. The current optimal digital patch combination including two digital patches is added to Figure 3 After the original infrared image shown in (a), we get Figure 3 (b), i.e., the optimal image. Figure 3 The box in (b) is the bounding box, the target is person, and the probability score of the current search image belonging to person is 0.57.
[0164] In the embodiment of the present invention, by adding the current optimized digital patch combination to the original infrared image in each optimization process to obtain the current optimized image, and then classifying the current optimized image to obtain the attack effect evaluation index, the attack effect can be dynamically evaluated, which is more conducive to the flexible optimization of the digital patch combination. And the attack effect evaluation index can be directly associated with the classification result, which can make the evaluation of the effect of the counterattack more accurate.
[0165] See also Figure 4 , Figure 4 FIG. 1 is a flow chart of another method for countering attacks on infrared intelligent detectors provided by an embodiment of the present invention, and the specific steps are as follows:
[0166] Step S401, obtaining an original infrared image.
[0167] Please refer to step S101 and step S102 for the specific content, which will not be repeated here.
[0168] Step S402, initializing the PSO algorithm.
[0169] Initialize the particle swarm: The particle position vector is composed of the positions, grayscale value matrices, and sizes of multiple digital patches in the digital patch combination; the digital patch can be initialized using a binary array pos i =(x i ,y i ) to indicate its position in the original infrared image; 0≤x i <limit area width and 0≤y i <Restricted area height, the restricted area is determined according to the target range. The gray value matrix of the digital patch is a size of N patch The matrix M i The position vector x of a particle is m It can be expressed as:
[0170] x m =[(x 1 ,y 1 ,M 1 ),(x 3 ,y 3 ,M 3 ),…,(x N ,y N ,M N ),N patch ];
[0171] According to the objective function of the optimization goal, the fitness function can be expressed as:
[0172]
[0173] Among them, f(x) represents the fitness value of the particle.
[0174] Step S403, performing optimization.
[0175] Update the local optimal position: For each particle m, update the local optimal position according to its own historical optimal position (expressed as p m and the current position x m ), and the historical optimal positions of other particles in the neighborhood (denoted as p j ), update the local optimal position. The update rules are as follows:
[0176] iff(x m ) <f(p m )thenp m =x m ;
[0177] Update the global optimal position: Update the global optimal position according to the fitness values of all particles. Assume that the kth particle has the global optimal position, represented by p g , then the update rules are as follows:
[0178] iff(p k ) <f(p g )thenp g =p k ;
[0179] Among them, p k Represents the current position of the kth particle.
[0180] Update particle speed and position: Update the speed and position vector of each particle according to the PSO algorithm formula. The update rules are as follows:
[0181] v m,t+1 =ω×v m,t +c 1 × 1 (p m -x i,t )+c 2 × 2 (p g -x m,t );
[0182] x m,t+1 =x m,t +v m,t+1 ;
[0183] Where ω represents the inertia weight; c 1 represents the local coefficient; c 2 Represents the global acceleration coefficient, r1 and r2 are both random numbers between 0 and 1; v m,t+1 represents the velocity of particle m at time t+1; xm,t+1 represents the position vector of particle m at time t+1; x m,t represents the position vector of particle m at time t; v m,t represents the velocity of particle m at time t.
[0184] Step S404, obtaining an optimized digital patch combination.
[0185] In the embodiment of the present invention, when the iteration reaches a preset number of iterations or the fitness value converges, the PSO algorithm is terminated to obtain an optimized digital patch combination.
[0186] Step S405, executing the test.
[0187] A real patch is constructed based on the optimized digital patch combination to perform adversarial attacks against infrared smart detectors.
[0188] Step S406, output the test result.
[0189] The test results are obtained based on the effect of adversarial attacks on infrared smart detectors using real patches.
[0190] Step S407: output the image with the digital patch.
[0191] In the embodiment of the present invention, the optimized digital patch combination can be added to the original infrared image to obtain the current optimal image, and then the attack effect evaluation index is calculated based on the optimal image. The specific calculation process is as described above and will not be repeated here.
[0192] In an embodiment of the present invention, the position, gray value matrix and size of the digital patch are used as the position vector of the particle, minimizing the power consumption value of the particle and minimizing the attack effect evaluation index are used as the optimization goal, and the particle swarm optimization algorithm is used for optimization to obtain an optimized digital patch combination with the minimum power consumption value and the best successful anti-attack effect. Then, a real patch is constructed based on the size, position and gray value matrix of the digital patch in the optimized digital patch combination, thereby improving the concealment and deceptiveness of the real patch. Based on the real patch, anti-attacks against infrared intelligent detectors can be more effectively implemented.
[0193] The particle swarm optimization algorithm is simple and easy to implement. In addition, by optimizing the combination of digital patches through the particle swarm optimization algorithm, the particle swarm optimization algorithm can be used to obtain the optimized combination of digital patches in a short time due to its fast convergence speed.
[0194] Next, the simulation experiment of the embodiment of the present invention is described. The simulation experiment of the embodiment of the present invention is based on Core(TM) i7-12700H CPU, NVIDA GeForce RTX
[0195] 2050, a computer with Windows 11 operating system and a coding environment of PyCharm Community Edition 2023. The embodiment of the present invention uses the FLIR_ADAS_v2 dataset for experiments.
[0196] This paper uses particle swarm optimization to verify the performance of the algorithm in solving problems. PSO algorithm is an optimization algorithm based on swarm intelligence, which is inspired by the behavior of biological groups such as bird flocks or fish schools. The algorithm simulates the behavior of individuals in the group, that is, particles, and uses information sharing and group collaboration to search for the optimal solution to the problem. Figure 3 (a) Conduct a search experiment and record the number of iterations (n_gen), number of evaluations (n_eval), minimum objective function value (f_min), average objective function value (f_avg), standard deviation (sigma), minimum standard deviation (min_std), standard deviation (max_std), and axis ratio (axis) of each iteration in the simulation experiment result table as an indicator for evaluating the algorithm search performance. For details, see Table 1. Table 1 shows the experimental results of a single patch deployment strategy algorithm.
[0197] Table 1 Experimental results of single patch deployment strategy algorithm
[0198]
[0199]
[0200] The following results can be obtained from the data in Table 1:
[0201] Judging from the minimum objective function value and the minimum standard deviation, as the number of iterations increases, the value is gradually decreasing, indicating that the fluctuation of the fitness value of the population is gradually decreasing, the stability of the population is gradually increasing, and the algorithm is gradually converging in the process of finding the optimal solution.
[0202] From the results, we can see that as the number of iterations increases, the standard deviation and the minimum standard deviation gradually decrease, indicating that the population is gradually becoming stable.
[0203] From the trend of the minimum fitness value (f_min) and the average fitness value (f_avg), the fitness value decreases rapidly in the early iterations, but as the number of iterations increases, the rate of decrease gradually slows down, and the convergence speed slows down. The value of the axis ratio (axis) is close to 1, indicating that the algorithm converges quickly.
[0204] The simulation experiment results show that the algorithm used in the embodiment of the present invention exhibits the characteristics of gradual convergence, increased stability and gradually slowing convergence speed during the iteration process, and can effectively solve the problem of optimal deployment strategy of digital patches.
[0205] Based on the same inventive concept, an embodiment of the present invention also provides an anti-attack device for an infrared intelligent detector, the anti-attack device comprising: an original infrared image acquisition module, a target range recognition module, an optimization module and a temperature control module;
[0206] The original infrared image acquisition module is used to acquire the original infrared image;
[0207] A target range recognition module, used to recognize the target range in the original infrared image;
[0208] An optimization module is used to optimize the digital patch combination that can be added to the target range based on the particle swarm optimization algorithm to obtain an optimized digital patch combination, so as to construct a real patch based on the size of the digital patch in the optimized digital patch combination to obtain multiple real patches, and carry the corresponding real patch for the real target according to the position of the digital patch in the optimized digital patch combination within the target range; wherein the position vector of the particle is composed of the position, gray value matrix and size of the multiple digital patches in the digital patch combination, and the optimization process takes minimizing the power consumption value and attack effect evaluation index of the digital patch combination as the optimization goal; the power consumption value is calculated based on the gray value matrix of the digital patch in the digital patch combination; the attack effect evaluation index is inversely proportional to the effect of the success of the counterattack; the real patch is composed of multiple heating units;
[0209] The temperature control module is used to control the temperature of multiple heating units of the corresponding real patch according to the gray value matrix of the digital patch in the optimized digital patch combination, so as to achieve adversarial attack against the infrared intelligent detector.
[0210] In an embodiment of the present invention, the position, gray value matrix and size of the digital patch are used as the position vector of the particle, minimizing the power consumption value of the particle and minimizing the attack effect evaluation index are used as the optimization goal, and the particle swarm optimization algorithm is used for optimization to obtain an optimized digital patch combination with the minimum power consumption value and the best successful anti-attack effect. Then, a real patch is constructed based on the size, position and gray value matrix of the digital patch in the optimized digital patch combination, thereby improving the concealment and deceptiveness of the real patch. Based on the real patch, anti-attacks against infrared intelligent detectors can be more effectively implemented.
[0211] Moreover, compared with the existing patches that need to rely on fixed textures, the flexibility of the real patch is improved by controlling the temperatures of multiple heating units of the corresponding real patch according to the gray value matrix of the digital patch in the optimized digital patch combination.
[0212] Optionally, in the grayscale value matrix of each digital patch, the grayscale value of any element is grayscale value C1, grayscale value C2 or grayscale value C3.
[0213] Optionally, in the temperature control module, according to the gray value matrix of the digital patch in the optimized digital patch combination, the temperature of multiple heating units of the corresponding real patch is controlled, including:
[0214] For each real patch, temperature data of multiple heating units of the real patch are obtained, and a gray value matrix of the real patch is constructed according to the temperature data;
[0215] The error between the gray value matrix of each digital patch in the optimized digital patch combination and the gray value matrix of the corresponding real patch is calculated; based on the error, the temperature of multiple heating units of the corresponding real patch is controlled by using a PID control algorithm.
[0216] Optionally, the optimization goal is achieved by the following objective function:
[0217]
[0218] Where n represents the total number of digital patches in the digital patch combination; patchi represents the i-th digital patch in the digital patch combination, represents the power consumption value calculated according to the gray value matrix of the i-th digital patch; Represents the attack effect evaluation index of the digital patch combination.
[0219] Optionally, the power consumption value of the i-th digital patch in the digital patch combination is:
[0220]
[0221] in, represents the power consumption value calculated according to the gray value matrix of the i-th digital patch in the digital patch combination; λ 1 represents the first weighting factor; represents the power loss value of the i-th digital patch, which is obtained by simulating heat exchange between elements using the gray value matrix of the i-th digital patch; 2 represents the second weighting factor; It represents the total electric power loss value of the i-th digital patch; the total electric power loss value is obtained by simulating the convective heat exchange between the gray value matrix of the i-th digital patch and the external environment.
[0222] Optionally, a real patch is constructed based on the size correspondence of the digital patches in the optimized digital patch combination to obtain multiple real patches, including:
[0223] For each digital patch in the optimized digital patch combination, the sizes of multiple grayscale blocks constituting the digital patch are determined according to the size of the digital patch; multiple heating units corresponding to each other are constructed according to the sizes of the multiple grayscale blocks; and the real patch corresponding to the digital patch is constructed using the multiple heating units.
[0224] Optionally, the attack effect evaluation index is obtained in the following manner:
[0225] In each optimization process, the current optimized digital patch combination is added to the original infrared image to obtain the current optimized image;
[0226] Classify the current optimal image to obtain the probability score of the optimal image belonging to the target and non-target;
[0227] If the classification result is the target, the probability score of the current optimization image belonging to the target is used as the attack effect evaluation index of the current optimization;
[0228] If the classification result is non-target, the current optimization attack effect evaluation index is set to 0.
[0229] It should be noted that, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0230] It should be noted that the terms "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention.
[0231] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification.
[0232] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art can understand and implement other changes to the disclosed embodiments by viewing the drawings and the disclosed content. In the description of the present invention, the term "comprising" does not exclude other components or steps, "one" or "an" does not exclude multiple situations, and "multiple" means two or more, unless otherwise clearly and specifically limited. In addition, certain measures are recorded in different embodiments, but this does not mean that these measures cannot be combined to produce good results.
[0233] 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 method for countering attacks against infrared intelligent detectors, characterized in that: The anti-attack method comprises: Get the original infrared image; Identifying a target range in the original infrared image; Based on the particle swarm optimization algorithm, the combination of digital patches that can be added to the target range is optimized to obtain an optimized digital patch combination; wherein the position vector of the particle is composed of the positions, gray value matrix and size of multiple digital patches in the digital patch combination, and the optimization process takes minimizing the power consumption value and attack effect evaluation index of the digital patch combination as the optimization goal; the power consumption value is calculated based on the gray value matrix of the digital patches in the digital patch combination; the attack effect evaluation index is inversely proportional to the effect of the success of the counterattack; Based on the size correspondence of the digital patches in the optimized digital patch combination, a real patch is constructed to obtain a plurality of real patches; the real patch is composed of a plurality of heating units; According to the position of the digital patch in the optimized digital patch combination within the target range, a corresponding real patch is mounted on the real target; According to the gray value matrix of the digital patch in the optimized digital patch combination, the temperature of multiple heating units of the corresponding real patch is controlled to achieve adversarial attack against the infrared intelligent detector.
2. The anti-attack method according to claim 1, characterized in that: In the grayscale value matrix of each digital patch, the grayscale value of any element is grayscale value C1, grayscale value C2 or grayscale value C3.
3. The anti-attack method according to claim 2, characterized in that: According to the gray value matrix of the digital patch in the optimized digital patch combination, the temperature of multiple heating units of the corresponding real patch is controlled, including: For each real patch, temperature data of multiple heating units of the real patch are obtained, and a gray value matrix of the real patch is constructed according to the temperature data; The error between the gray value matrix of each digital patch in the optimized digital patch combination and the gray value matrix of the corresponding real patch is calculated; based on the error, the temperature of multiple heating units of the corresponding real patch is controlled by using a PID control algorithm.
4. The anti-attack method according to claim 1, characterized in that: The optimization goal is achieved through the following objective function: Where n represents the total number of digital patches in the digital patch combination; patchi represents the i-th digital patch in the digital patch combination, represents the power consumption value calculated according to the gray value matrix of the i-th digital patch; Represents the attack effect evaluation index of the digital patch combination.
5. The anti-attack method according to claim 4, characterized in that: The power consumption value of the i-th digital patch in the digital patch combination is: in, represents the power consumption value calculated according to the gray value matrix of the i-th digital patch in the digital patch combination; λ1 represents the first weighting factor; represents the power loss value of the i-th digital patch, and the power loss value is obtained by simulating heat exchange between elements using the gray value matrix of the i-th digital patch; λ2 represents the second weighting factor; It represents the total electric power loss value of the i-th digital patch; the total electric power loss value is obtained by simulating the convective heat exchange between the gray value matrix of the i-th digital patch and the external environment.
6. The anti-attack method according to claim 1, characterized in that: Based on the size correspondence of the digital patches in the optimized digital patch combination, a real patch is constructed to obtain multiple real patches, including: For each digital patch in the optimized digital patch combination, the sizes of multiple grayscale blocks constituting the digital patch are determined according to the size of the digital patch; multiple heating units corresponding to each other are constructed according to the sizes of the multiple grayscale blocks; and the real patch corresponding to the digital patch is constructed using the multiple heating units.
7. The anti-attack method according to claim 1, characterized in that: The attack effect evaluation index is obtained in the following way: In each optimization process, the current optimized digital patch combination is added to the original infrared image to obtain the current optimized image; Classify the current optimal image to obtain the probability score of the optimal image belonging to the target and non-target; If the classification result is the target, the probability score of the current optimization image belonging to the target is used as the attack effect evaluation index of the current optimization; If the classification result is non-target, the current optimization attack effect evaluation index is set to 0.
8. A device for countering attacks against infrared intelligent detectors, characterized in that: The anti-attack device comprises: an original infrared image acquisition module, a target range recognition module, an optimization module and a temperature control module; The original infrared image acquisition module is used to acquire the original infrared image; The target range recognition module is used to recognize the target range in the original infrared image; The optimization module is used to optimize the digital patch combination that can be added to the target range based on the particle swarm optimization algorithm to obtain the optimized digital patch combination, so as to construct a real patch based on the size of the digital patch in the optimized digital patch combination to obtain multiple real patches, and according to the position of the digital patch in the optimized digital patch combination within the target range, the corresponding real patch is carried for the real target; wherein the position vector of the particle is composed of the position, gray value matrix and size of the multiple digital patches in the digital patch combination, and the optimization process takes minimizing the power consumption value and attack effect evaluation index of the digital patch combination as the optimization goal; the power consumption value is calculated based on the gray value matrix of the digital patch in the digital patch combination; the attack effect evaluation index is inversely proportional to the effect of the success of the counterattack; the real patch is composed of multiple heating units; The temperature control module is used to control the temperature of multiple heating units of the corresponding real patch according to the gray value matrix of the digital patch in the optimized digital patch combination, so as to achieve adversarial attack against the infrared intelligent detector.
Citation Information
Cited By
Anti-attack patch generation method based on particle swarm optimization
CN121457501A
