Video recognition physical counterattack system and method based on LED lighting modulation and sparse disturbance propagation

Through the video recognition physical adversarial attack system based on LED lighting modulation and sparse disturbance propagation, it solves the problems of high computational cost and low concealment of video recognition model adversarial attacks in the existing technology, and realizes efficient and covert adversarial attacks, and has the ability to hack. Generalizability and transferability of box attacks.

CN118366089BActive Publication Date: 2024-09-27JINAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410797280.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-27
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Existing video recognition models have high computational cost, low concealment, and low efficiency against attacks, and lack of considerations for black-box attacks.

Method used

A video recognition physical adversarial attack system based on LED lighting modulation and sparse disturbance propagation is adopted. Through the adversarial attack disturbance signal generation module, LED lighting modulation and driving module, LED lighting source and CMOS image sensor, the K-means clustering algorithm and frame output are used. The entropy measure selects key frames, generates propagable adversarial attack perturbation signals, and implants brightness perturbations in the video shooting scene through LED lighting modulation, affecting the feature extraction of the video recognition model.

Benefits of technology

It reduces the time and computational cost of adversarial attacks, improves the efficiency and concealment of attacks, realizes effective attacks on video recognition models, and has the generalization and transferability of black box attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118366089B
    Figure CN118366089B
Patent Text Reader

Abstract

The present invention discloses a video recognition physical adversarial attack system and method based on LED lighting modulation and sparse disturbance propagation. The system comprises an adversarial attack disturbance signal generation module, an LED lighting modulation and driving module, an LED lighting light source, a CMOS image sensor and a video recognition model. The present invention selects key frames of a video, and uses these key frames to generate a propagable adversarial attack disturbance signal, which is used for LED lighting modulation to perform physical adversarial attacks on different video shooting scenes. Among them, a key frame selection algorithm is designed to select important frames and fragile frames in the video through clustering and entropy value measurement; video features are destroyed by performing sparse adversarial attacks on key frames; a fusion adversarial loss based on key frame classification clues, disturbance propagation path and signal modulation factor is introduced in the training stage to enhance the propagation capability and concealment of the adversarial disturbance; the adversarial attack disturbance form of LED lighting modulation can be generalized and migrated to different video samples and video recognition models.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of video recognition and artificial intelligence security, and specifically relates to a video recognition physical counterattack system and method based on LED lighting modulation and sparse disturbance propagation. Background Art

[0002] Adversarial attacks refer to adding small and carefully designed perturbations to input samples to make the deep learning model output incorrect results. Adversarial attacks on video recognition models can be divided into two categories: digital adversarial attacks and physical adversarial attacks. Compared with digital adversarial attacks, physical adversarial attacks attack video recognition models by adding perturbations to the visual features of real objects in the real world, which can pose a real threat to video recognition models and effectively improve the feasibility of adversarial attacks.

[0003] Most existing adversarial attacks against video recognition models are intensive adversarial attacks, which mainly use high-dimensional video data to generate perturbations and implant perturbations on each frame. This requires significant time and computational costs, reduces the concealment of the perturbations, and has the disadvantage of needing to be deployed in a white-box setting. Summary of the invention

[0004] Aiming at the problems of high computational cost, low concealment, low efficiency and lack of black box attack consideration in existing video recognition adversarial attacks, the present invention proposes a video recognition physical adversarial attack system and method based on LED lighting modulation and sparse perturbation propagation. The present invention selects key frames of the video and uses these key frames to generate propagable adversarial attack perturbation signals for LED lighting modulation to perform physical adversarial attacks on different video shooting scenes. A key frame selection algorithm is designed to select important frames and fragile frames in the video through clustering and entropy value measurement. Video features are destroyed by performing sparse adversarial attacks on key frames. In the training stage, a fusion adversarial loss based on key frame classification clues, perturbation propagation path and signal modulation factor is introduced to enhance the propagation ability and concealment of adversarial perturbations. The LED lighting source is rapidly modulated to generate brightness changes that are imperceptible to the human eye, so as to implant brightness information perturbations in the acquired video frames by using the rolling shutter exposure mechanism of the CMOS image sensor of the video recognition system. The information perturbations will affect the features extracted by the video recognition model, reduce the detection and classification success rate of the target recognition model, and realize adversarial attacks on the video recognition model. The adversarial attack perturbation form of LED lighting modulation can be generalized and transferred to different video samples and video recognition models.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In the first aspect, the present invention provides a video recognition physical anti-attack system based on LED lighting modulation and sparse disturbance propagation, characterized in that it includes an anti-attack disturbance signal generation module, an LED lighting modulation and drive module, an LED lighting source, a CMOS image sensor and a video recognition model; the anti-attack disturbance signal generation module is a computer signal modulation program, which is connected to the LED lighting modulation and drive module to provide modulation signal information; the LED lighting modulation and drive module is connected to the LED lighting source, responsible for modulating the signal with frequency information and driving the LED lighting source; the LED lighting source is arranged above the behavior subject, emits visible light illumination, covers the behavior subject and the scene in which it is located, and implants brightness information disturbance; the CMOS image sensor is an image acquisition module of the video recognition system, located in front of the behavior subject, and performs imaging and video dynamic shooting; the image acquisition module is connected to the video recognition model, and the video recognition model is a public model with pre-trained weights, which is used to detect and classify the subject and its related behaviors contained in the video input by the image acquisition module;

[0007] The adversarial attack disturbance signal generation module is used to generate digital video adversarial samples and adversarial attack disturbance signals, specifically: a key frame selection algorithm based on K-means clustering and frame output entropy measurement and a key frame disturbance propagation training method based on key frame classification clues, disturbance propagation path and signal modulation factor fusion adversarial loss, respectively performing key frame selection of video training sets and generating video adversarial samples with disturbance information and propagable adversarial attack disturbance signals;

[0008] The LED lighting modulation and driving module is used to convert the generated adversarial attack disturbance signal into an LED lighting modulation signal, load the modulation signal and drive the LED to realize lighting in different switch states, wherein the LED lighting driver can realize real-time switching between normal lighting and modulated lighting to realize sparse disturbance;

[0009] The LED lighting source is used to provide environmental lighting and implement physical countermeasure attacks.

[0010] As a preferred technical solution, the adversarial attack disturbance signal generation module uses a pre-trained video recognition model as a feature extractor and classifier in the key frame selection stage, uses a K-means clustering algorithm to select important frames of video samples, and uses frame output entropy measurement to select vulnerable frames of video samples, specifically:

[0011] Use the pre-trained video recognition model to extract the feature vectors of all video frames as input, initialize k cluster centers, and repeat the following two steps until the cluster centers no longer change or change very little:

[0012] (1) Assign the feature vector of each video frame to the cluster with the closest cluster center;

[0013] (2) Update the cluster center of each cluster to make it the average value of all feature vectors in the cluster; eventually, the internal difference of each distance is the smallest, and the difference between different clusters is the largest. The video frame closest to the cluster center is regarded as an important frame, which is the important frame node with the largest difference in the video.

[0014] The frame output entropy is the entropy value of the probability distribution predicted by the pre-trained video recognition model for each frame of the video sequence, reflecting the uncertainty of the prediction results of the video recognition model for different frames. The calculation formula is:

[0015] ;

[0016] in, p c The video recognition model classifies video frames into categories. c When the prediction results of the video recognition model for a certain video frame are evenly distributed in different categories, the output entropy of the frame will be higher, which indicates that the uncertainty of the video recognition model on this frame is large, and the difference in the probability distribution of different categories is small, which is defined as a fragile frame. Selecting fragile frames to add adversarial perturbations makes it easier to generate effective video adversarial samples.

[0017] The selected key frames are used as the objects for performing sparse adversarial attacks to generate key frame adversarial samples.

[0018] As a preferred technical solution, the loss function of the key frame perturbation propagation training method is a weighted fusion of three loss terms: key frame classification clues, perturbation propagation direction, and signal modulation factor. The formula is:

[0019] ;

[0020] in, l c Classify clues for keyframes, l p is the disturbance propagation path, l m is the signal modulation factor, λ1, λ2, and λ3 are the weights assigned to each loss, and the weights change accordingly for different pre-trained video recognition models.

[0021] As a preferred technical solution, the key frame classification clues are used to enhance the attack effect of the adversarial disturbance. Only attention is paid to whether the key frame adversarial samples with added disturbances can cause the video recognition model to be misclassified, so that more attention is paid to the key frame samples that have not been misclassified during the disturbance generation process. Specifically, the video recognition model is made to reduce the prediction probability of the true label of the original key frame. The expression is:

[0022] ;

[0023] in, i is the selected adversarial frame, p t is the predicted probability of the video recognition model for the original key frame under its true label.

[0024] As a preferred technical solution, the disturbance propagation path is used to enhance the disturbance propagation of the adversarial frame on the video sequence, specifically to increase the difference between the predicted probability distribution of the video recognition model for the adversarial frame and other normal frames without disturbance, and the expression is:

[0025] ;

[0026] in, i is the selected adversarial frame, j is a normal frame between the previous adversarial frame and the next adversarial frame, p i is the predicted probability distribution of the video recognition model for the previous adversarial frame, p j is the predicted probability distribution of the normal frame samples after the previous adversarial frame by the video recognition model. γ is the propagation attenuation factor, γ∈(0,1), which is used to adjust the attenuation degree of the disturbance in the temporal propagation process, giving a larger weight to the normal frame closer to the adversarial frame, and more accurately simulating the actual situation of disturbance propagation.

[0027] As a preferred technical solution, the signal modulation factor is used to adjust the binary representation of the counter-attack disturbance signal; an auxiliary variable is introduced a n As the binary anchor point of each unit of the disturbance signal sequence, the disturbance signal value is adaptively learned. s n and auxiliary variables a n Approximation, reducing the impact of other loss terms on the disturbance signal, providing additional degrees of freedom for the change of the disturbance signal; at the same time, the regularization term is introduced to make the auxiliary variable a n Tends to a clear binary state; the expression of the signal modulation factor is:

[0028] ;

[0029] in, a n is the auxiliary variable, i.e., the binary anchor point of the disturbance signal, s n is the disturbance signal value, β is the hyperparameter controlling the regularization term, nis the length of the disturbance signal sequence.

[0030] As a preferred technical solution, the generation of video adversarial samples with disturbance information and propagable adversarial attack disturbance signals is specifically as follows:

[0031] For a key frame sequence of a video sample i 1、 i 2、……、 i n ,use S Represents adversarial disturbance η The signal expression of the key frame perturbation propagation is defined as ,in, b The pixel width of the bright stripe disturbance implanted in the video by LED lighting during physical domain video shooting is the sequence length of the “1” signal; d The pixel width of the dark stripe disturbance implanted by LED lighting in the video when shooting physical domain video, that is, the sequence length of the "0" signal; counter-disturbance η is the two-dimensional expansion of the adversarial attack disturbance signal, the size is consistent with the key frame sample, and the adversarial sample represented by each key frame is , that is, the Hadamard product of the original key frame and the adversarial perturbation; the generated adversarial frame and normal frame are combined into a video adversarial sample, and the adversarial attack perturbation signal is used to modulate the LED lighting source.

[0032] As a preferred technical solution, the rolling shutter exposure mechanism of the CMOS image sensor is specifically as follows:

[0033] Rolling shutter exposure does not expose the entire imaging plane at the same time, but adopts a pipeline working mode to expose continuously row by row. In the exposure stage, pixels are exposed in sequence in row order, and the photosensitive units in the row begin to accumulate charge at the same time, with a fixed delay between rows. The LED is made to flash at high speed by modulating its pulse repetition period and pulse duty cycle, producing brightness changes that are imperceptible to the human eye. In the short period of time when the CMOS image sensor is exposing the image, if the LED happens to be in different flashing periods when exposing row N and row N+1, then alternating light and dark stripes will appear in the image.

[0034] In a second aspect, the present invention provides a video recognition physical counterattack method based on LED lighting modulation and sparse disturbance propagation, comprising the following steps:

[0035] (1) Given a video sample X , decomposed into a sequence of video frames x 1、 x 2、……、x n ;

[0036] (2) Input the video frame sequence into the pre-trained video recognition model, extract the feature vector of the video frame and output the predicted probability distribution;

[0037] (3) Use the K-means clustering algorithm to select the important frames of the video sample, and use the frame output entropy metric to select the vulnerable frames of the video sample to obtain the key frame sequence of the video sample. i 1、 i 2、……、 i n ;

[0038] (4) Using the pre-trained video recognition model as a proxy model for perturbation generation, the Adam optimizer and the fused adversarial loss based on key frame classification cues, perturbation propagation path, and signal modulation factor are used for joint gradient optimization to generate video adversarial samples and propagable adversarial attack perturbation signals;

[0039] (5) The adversarial attack disturbance signal is converted into an LED lighting modulation signal, and a CMOS image sensor is used to perform physical adversarial attacks on real shooting scenes.

[0040] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0041] (1) The present invention proposes a new video key frame selection algorithm, which performs key frame selection based on the K-means clustering algorithm and frame output entropy measurement. It makes full use of the relationship between frames in video samples, can effectively reduce the adversarial perturbation generation of redundant and repeated frames in the video, reduce time and computational costs, and improve the efficiency and transferability of adversarial attacks.

[0042] (2) This paper proposes a new key frame perturbation propagation training method and designs a fusion adversarial loss based on key frame classification clues, perturbation propagation path and signal modulation factor. It fully considers the perturbation characteristics of LED modulated lighting imaging in the physical environment, generates propagable sparse perturbations, and improves the feasibility and concealment of adversarial attacks.

[0043] (3) The present invention proposes a physical adversarial attack method based on modulated LED lighting. This method uses a modulated LED light source without physical contact as scene lighting and utilizes the rolling shutter exposure mechanism of the CMOS sensor to cover the light and dark stripes in the imaged video, thereby causing the video recognition system to make errors. The LED modulation parameter information of the adversarial attack can be used to implement black box attacks on various video scenes after a single calculation. At the same time, the physical adversarial attack implants brightness information disturbances during the video shooting stage, and does not require the internal structure and parameter information of the video recognition model, which improves the generalization and transferability of the physical adversarial attack. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0045] Figure 1 Schematic diagram of a video recognition physical counterattack system based on LED lighting modulation and sparse disturbance propagation according to an embodiment of the present invention.

[0046] Figure 2 The figure is a flow chart of a physical countermeasure attack method for video recognition based on LED lighting modulation and sparse disturbance propagation according to an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0048] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0049] like Figure 1As shown, this embodiment provides a video recognition physical adversarial attack system based on LED lighting modulation and sparse perturbation propagation, the system includes an adversarial attack perturbation signal generation module, an LED lighting modulation and driving module, an LED lighting source, a CMOS image sensor and a video recognition model. The adversarial attack perturbation signal generation module is used to generate digital video adversarial samples and adversarial attack perturbation signals, specifically: based on the K-means clustering algorithm, the key frame selection algorithm of the frame output entropy measurement and the key frame perturbation propagation training method of the fusion adversarial loss based on the key frame classification clues, the perturbation propagation path and the signal modulation factor, the key frame selection of the video training set is performed respectively, and the video adversarial samples with perturbation information and the propagable adversarial attack perturbation signal are generated; the LED lighting modulation and driving module is used to convert the generated adversarial attack perturbation signal into an LED lighting modulation signal, load the modulation signal and drive the LED to realize the lighting of different switch states, wherein the LED lighting driver can realize the real-time switching of normal lighting and modulated lighting to realize sparse perturbation; the LED lighting source is used to provide environmental lighting and implement physical adversarial attacks.

[0050] Furthermore, in the key frame selection stage, the adversarial attack disturbance signal generation module uses the pre-trained video recognition model as a feature extractor and classifier, uses the K-means clustering algorithm to select important frames of the video sample, and uses the frame output entropy metric to select the vulnerable frames of the video sample, specifically:

[0051] The pre-trained video recognition model is used to extract the feature vectors of all video frames as input, and k cluster centers are initialized. The following two steps are repeated until the cluster centers no longer change or change very little: (1) The feature vector of each video frame is assigned to the cluster with the cluster center closest to it; (2) The cluster center of each cluster is updated to become the average value of all feature vectors in the cluster; finally, the internal difference of each distance is the smallest, and the difference between different clusters is the largest. The video frame closest to the cluster center is regarded as an important frame, which is the important frame node with the largest difference in the video.

[0052] The frame output entropy is the entropy value of the probability distribution predicted by the pre-trained video recognition model for each frame of the video sequence, reflecting the uncertainty of the prediction results of the video recognition model for different frames. The calculation formula is:

[0053] ;

[0054] in, p c The video recognition model classifies video frames into categories. cWhen the probability distribution of different categories of the prediction results of the video recognition model for a certain video frame is uniform, the output entropy of the frame will be higher, which indicates that the uncertainty of the video recognition model on this frame is large, and the difference in the probability distribution of different categories is small, which is defined as a fragile frame. Selecting fragile frames to add adversarial perturbations makes it easier to generate effective video adversarial samples.

[0055] The loss function of the key frame perturbation propagation training method is a weighted fusion of three loss terms: key frame classification clues, perturbation propagation direction, and signal modulation factor. The formula is:

[0056] ;

[0057] in, l c Classify clues for keyframes, l p is the disturbance propagation path, l m is the signal modulation factor, λ1, λ2, and λ3 are the weights assigned to each loss, and the weights change accordingly for different pre-trained video recognition models.

[0058] Furthermore, the key frame classification clues are used to enhance the attack effect of the adversarial perturbation. Only the key frame adversarial samples with added perturbations are concerned whether they can cause the video recognition model to be misclassified, so that the perturbation generation process pays more attention to the key frame samples that have not been misclassified. Specifically, the video recognition model is made to reduce the prediction probability of the true label of the original key frame. The expression is:

[0059] ;

[0060] in, i is the selected adversarial frame, p t is the predicted probability of the video recognition model for the original key frame under its true label.

[0061] The perturbation propagation path is used to enhance the perturbation propagation of the adversarial frame on the video sequence, specifically to increase the difference between the predicted probability distribution of the video recognition model for the adversarial frame and other normal frames that are not perturbed, and the expression is:

[0062] ;

[0063] in, i is the selected adversarial frame, j is a normal frame between the previous adversarial frame and the next adversarial frame, p i is the predicted probability distribution of the video recognition model for the previous adversarial frame, p jis the predicted probability distribution of the normal frame samples after the previous adversarial frame by the video recognition model. γ is the propagation attenuation factor, γ∈(0,1), which is used to adjust the attenuation degree of the disturbance in the temporal propagation process, giving a larger weight to the normal frame closer to the adversarial frame, and more accurately simulating the actual situation of disturbance propagation.

[0064] The signal modulation factor is used to adjust the binary representation of the adversarial attack disturbance signal. a n As the binary anchor point of each unit of the disturbance signal sequence, the disturbance signal value is adaptively learned. s n and auxiliary variables a n Approximation reduces the impact of other loss terms on the disturbance signal and provides additional degrees of freedom for the change of the disturbance signal. At the same time, the regularization term is introduced to make the auxiliary variable a n Tends to a clear binary state; the expression of the signal modulation factor is:

[0065] ;

[0066] in, a n is the auxiliary variable, i.e., the binary anchor point of the disturbance signal, s n is the disturbance signal value, β is the hyperparameter controlling the regularization term, n is the length of the disturbance signal sequence.

[0067] Furthermore, the generation of the video adversarial sample with disturbance information and the propagable adversarial attack disturbance signal is specifically as follows:

[0068] For a key frame sequence of a video sample i 1、 i 2、……、 i n ,use S Represents adversarial disturbance η The signal expression of the key frame perturbation propagation is defined as ,in, b The pixel width of the bright stripe disturbance implanted in the video by LED lighting during physical domain video shooting is the sequence length of the “1” signal; d The pixel width of the dark stripe disturbance implanted by LED lighting in the video when shooting physical domain video, that is, the sequence length of the "0" signal; counter-disturbance η is the two-dimensional expansion of the adversarial attack disturbance signal, the size is consistent with the key frame sample, and the adversarial sample represented by each key frame is , that is, the Hadamard product of the original key frame and the adversarial perturbation; the generated adversarial frame and normal frame are combined into a video adversarial sample, and the adversarial attack perturbation signal is used to modulate the LED lighting source.

[0069] Furthermore, the LED lighting modulation and driving module is used to convert the generated adversarial attack disturbance signal into an LED lighting modulation signal, load the modulation signal and drive the LED to achieve lighting in different switching states, wherein the LED lighting driver can realize real-time switching between normal lighting and modulated lighting to achieve sparse disturbance.

[0070] Furthermore, the LED lighting source is used to provide ambient lighting and implement physical adversarial attacks. By rapidly modulating the intensity of the LED lighting source to produce brightness changes that are imperceptible to the human eye, the rolling shutter exposure mechanism of the CMOS image sensor of the video recognition system is used to implant brightness information disturbances in the acquired video frames. This information disturbance affects the features extracted by the video recognition model, reduces the detection and classification success rate of the target recognition model, and implements adversarial attacks on the video recognition model.

[0071] Furthermore, the CMOS image sensor is used for imaging and video dynamic shooting. The video recognition model is public and has pre-trained weights, and is used to detect and classify the subject and its related behaviors contained in the video input by the image acquisition module.

[0072] like Figure 2 As shown, this embodiment also provides a video recognition physical counterattack method based on LED lighting modulation and sparse disturbance propagation, the method comprising the following steps:

[0073] (1) Given a video sample X , decomposed into a sequence of video frames x 1、 x 2、……、 x n ;

[0074] (2) Input the video frame sequence into the pre-trained video recognition model, extract the feature vector of the video frame and output the predicted probability distribution;

[0075] (3) Use the K-means clustering algorithm to select the important frames of the video sample, and use the frame output entropy metric to select the vulnerable frames of the video sample to obtain the key frame sequence of the video sample. i 1、 i 2、……、 i n ;

[0076] (4) Using the pre-trained video recognition model as a proxy model for perturbation generation, the Adam optimizer and the fused adversarial loss based on key frame classification cues, perturbation propagation path, and signal modulation factor are used for joint gradient optimization to generate video adversarial samples and propagable adversarial attack perturbation signals;

[0077] (5) The adversarial attack disturbance signal is converted into an LED lighting modulation signal, and a CMOS image sensor is used to perform physical adversarial attacks on real shooting scenes.

[0078] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0079] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0080] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A video recognition physical adversarial attack system based on LED lighting modulation and sparse disturbance propagation, characterized by: It includes an anti-attack disturbance signal generation module, an LED lighting modulation and driving module, an LED lighting source, a CMOS image sensor and a video recognition model; the LED lighting modulation and driving module is connected to the LED lighting source, responsible for modulating the signal with frequency information and driving the LED lighting source; the LED lighting source is arranged above the behavior subject, emits visible light illumination, covers the behavior subject and the scene in which it is located, and implants brightness information disturbance; the CMOS image sensor is an image acquisition module of the video recognition physical anti-attack system, located in front of the behavior subject, and performs imaging and video dynamic shooting; the image acquisition module is connected to the video recognition model, and the video recognition model is a model with pre-trained weights, which is used to detect and classify the subject and its related behaviors contained in the video input by the image acquisition module; The adversarial attack disturbance signal generation module is used to generate digital video adversarial samples and adversarial attack disturbance signals, specifically: a key frame selection algorithm based on K-means clustering and frame output entropy measurement and a key frame disturbance propagation training method based on key frame classification clues, disturbance propagation path and signal modulation factor fusion adversarial loss, respectively performing key frame selection of video training sets and generating video adversarial samples with disturbance information and propagable adversarial attack disturbance signals; The loss function of the key frame perturbation propagation training method is a weighted fusion of three loss terms: key frame classification clues, perturbation propagation path, and signal modulation factor. The formula is: ; in, l c Classify clues for keyframes, l p is the disturbance propagation path, l m is the signal modulation factor, λ1, λ2, λ3 are the weights assigned to each loss, corresponding to different pre-trained video recognition models, the weights change accordingly; The key frame classification clues are used to enhance the attack effect of the adversarial perturbation. We only focus on whether the key frame adversarial samples with added perturbations can cause the video recognition model to be misclassified, so that the perturbation generation process pays more attention to the key frame samples that have not been misclassified. Specifically, the video recognition model is made to reduce the prediction probability of the true label of the original key frame. The expression is: ; in, i is the selected adversarial frame, p t The predicted probability of the original key frame under its true label by the video recognition model; The perturbation propagation path is used to enhance the perturbation propagation of the adversarial frame on the video sequence, specifically to increase the difference between the predicted probability distribution of the video recognition model for the adversarial frame and other normal frames that are not perturbed, and the expression is: ; in, i is the selected adversarial frame, j is a normal frame between the previous adversarial frame and the next adversarial frame, p i is the predicted probability distribution of the video recognition model for the previous adversarial frame, p j is the predicted probability distribution of the normal frame samples after the previous adversarial frame by the video recognition model. γ is the propagation attenuation factor, γ∈(0,1), which is used to adjust the attenuation degree of the disturbance in the temporal propagation process, giving a larger weight to the normal frame closer to the adversarial frame, and more accurately simulating the actual situation of disturbance propagation. The signal modulation factor is used to adjust the binary representation of the adversarial attack disturbance signal; an auxiliary variable is introduced a n As the binary anchor point of each unit of the disturbance signal sequence, the disturbance signal value is adaptively learned. s n and auxiliary variables a n Approximation, reducing the impact of other loss terms on the disturbance signal, providing additional degrees of freedom for the change of the disturbance signal; at the same time, the regularization term is introduced to make the auxiliary variable a n Tends to a clear binary state; the expression of the signal modulation factor is: ; in, a n is the auxiliary variable, i.e., the binary anchor point of the disturbance signal, s n is the disturbance signal value, β is the hyperparameter controlling the regularization term, n is the length of the disturbance signal sequence; The LED lighting modulation and driving module is used to convert the generated adversarial attack disturbance signal into an LED lighting modulation signal, load the modulation signal and drive the LED to realize lighting in different switch states, wherein the LED lighting driver can realize real-time switching between normal lighting and modulated lighting to realize sparse disturbance; The LED lighting source is used to provide environmental lighting and implement physical countermeasure attacks.

2. According to claim 1, the video recognition physical counterattack system based on LED lighting modulation and sparse disturbance propagation is characterized in that: In the key frame selection stage, the adversarial attack disturbance signal generation module uses the pre-trained video recognition model as a feature extractor and classifier, uses the K-means clustering algorithm to select important frames of the video sample, and uses the frame output entropy metric to select the vulnerable frames of the video sample, specifically: Use the pre-trained video recognition model to extract the feature vectors of all video frames as input, initialize k cluster centers, and repeat the following two steps until the cluster centers no longer change: (1) Assign the feature vector of each video frame to the cluster with the closest cluster center; (2) Update the cluster center of each cluster to make it the average value of all feature vectors in the cluster; eventually, the internal difference of each distance is the smallest, and the difference between different clusters is the largest. The video frame closest to the cluster center is regarded as an important frame, which is the important frame node with the largest difference in the video. The frame output entropy is the entropy value of the probability distribution predicted by the pre-trained video recognition model for each frame of the video sequence, reflecting the uncertainty of the prediction results of the video recognition model for different frames. The calculation formula is: ; in, p c For video recognition models, classify video frames in categories c When the prediction results of the video recognition model for a certain video frame are evenly distributed in different categories, this indicates that the video recognition model has uncertainty on this frame. This frame is defined as a fragile frame. It is easier to generate effective video adversarial samples by adding adversarial perturbations to the fragile frame. The selected key frames are used as the objects for performing sparse adversarial attacks to generate key frame adversarial samples.

3. According to claim 1, the video recognition physical counterattack system based on LED lighting modulation and sparse disturbance propagation is characterized in that: The generation of the video adversarial sample with disturbance information and the propagable adversarial attack disturbance signal is specifically as follows: For a key frame sequence of a video sample i 1、 i 2、……、 i n ,use S Represents adversarial disturbance η The signal expression of the key frame perturbation propagation is defined as ,in, b The pixel width of the bright stripe disturbance implanted in the video by LED lighting during physical domain video shooting is the sequence length of the "1" signal; d The pixel width of the dark stripe disturbance implanted by LED lighting in the video when shooting physical domain video, that is, the sequence length of the "0" signal; counter-disturbance η is the two-dimensional expansion of the adversarial attack disturbance signal, the size is consistent with the key frame sample, and the adversarial sample represented by each key frame is , that is, the Hadamard product of the original key frame and the adversarial perturbation; the generated adversarial frame and normal frame are combined into a video adversarial sample, and the adversarial attack perturbation signal is used to modulate the LED lighting source.

4. According to claim 1, the video recognition physical counterattack system based on LED lighting modulation and sparse disturbance propagation is characterized in that: The rolling shutter exposure mechanism of the CMOS image sensor is specifically as follows: Rolling shutter exposure does not expose the entire imaging plane at the same time, but adopts a pipeline working mode to expose continuously row by row. During the exposure stage, the pixels are exposed in order of rows, and the photosensitive units in the row begin to accumulate charge at the same time, with a fixed delay between rows. By modulating the pulse repetition period and pulse duty cycle of the LED, the LED is made to flash at high speed, resulting in brightness changes that are imperceptible to the human eye. In the short period of time when the CMOS image sensor is exposing the image, if the LED happens to be in different flashing periods when exposing N lines and N+1 lines, then alternating light and dark stripes will appear in the image.

5. The method for countering attack of a video recognition physical counter-attack system based on LED lighting modulation and sparse disturbance propagation according to any one of claims 1 to 4, characterized in that: The steps include: (1) Given a video sample X , decomposed into a sequence of video frames x 1、 x 2、……、 x n ; (2) Input the video frame sequence into the pre-trained video recognition model, extract the feature vector of the video frame and output the predicted probability distribution; (3) Use the K-means clustering algorithm to select the important frames of the video sample, and use the frame output entropy metric to select the vulnerable frames of the video sample to obtain the key frame sequence of the video sample. i 1、 i 2、……、 i n ; (4) Using the pre-trained video recognition model as a proxy model for perturbation generation, the Adam optimizer and the fused adversarial loss based on key frame classification cues, perturbation propagation path, and signal modulation factor are used for joint gradient optimization to generate video adversarial samples and propagable adversarial attack perturbation signals; (5) The adversarial attack disturbance signal is converted into an LED lighting modulation signal, and a CMOS image sensor is used to perform physical adversarial attacks on real shooting scenes.