High-concealment adversarial voice sample generation method based on general adversarial disturbance generation network
By constructing a general adversarial perturbation generation network and combining deep learning and optimization algorithms to generate highly concealable and high-quality general adversarial audio perturbations, it solves the problems of cumbersome deployment and insufficient quality of general adversarial attacks in the existing technology, and achieves real-time and efficient counterattack effect.
Patent Information
- Application Number
- CN202410628854.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-05-21
AI Technical Summary
It is difficult to balance high concealment and high quality when generating general adversarial attacks with existing technologies, and the deployment process is cumbersome, which affects the real-time and effectiveness of adversarial attacks.
A general adversarial perturbation generation network is designed, including a speaker recognition module, an adversarial sample detection module and a general adversarial perturbation generation module. It is pre-trained by Sinc-Net and CNN networks and combined with the Adam and RMSProp optimization algorithms to generate high concealment and High-quality universal adversarial audio perturbations using random Gaussian noise to enhance perturbation diversity.
It achieves more covert and stable universal adversarial audio sample generation, significantly shortens deployment time, improves attack efficiency and model robustness, is suitable for real-time deployment scenarios, and achieves good results in both untargeted and targeted attacks.
Smart Images

Figure CN118692471A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of universal adversarial audio sample generation, and in particular to a highly concealed adversarial speech sample generation method based on a universal adversarial perturbation generation network. Background Art
[0002] Speaker recognition model is a powerful audio analysis technology that can extract the unique characteristics of the speaker from the speech signal and then identify the speaker. This technology has broad application prospects in security monitoring, identity authentication, human-computer interaction and other fields. However, with the continuous development of speaker recognition technology, its security is also facing increasingly severe challenges.
[0003] At present, adversarial attacks on speaker recognition models have become an important aspect of security research. Adversarial attacks usually refer to adding carefully designed tiny perturbations to the original speech signal, making the changes almost imperceptible to the auditory sense, but able to mislead the speaker recognition model to produce incorrect recognition results. This type of attack is of great significance for protecting personal privacy and preventing identity forgery.
[0004] As speaker recognition models based on deep learning technology are widely used, they have shown strong capabilities in processing complex speech signals and extracting deep features. However, these deep learning models are also facing the threat of adversarial attacks. Some researchers have successfully attacked deep learning speaker recognition models through carefully designed adversarial samples, causing the model's recognition accuracy to drop significantly.
[0005] There are significant differences between traditional adversarial attacks and general adversarial attacks, not only in the attack mechanism, but also in their application scenarios and effects. Traditional adversarial attacks usually design perturbations for specific input data. When deploying the attack, it takes a lot of time and computing resources to generate perturbations, which is not feasible for scenarios with rapid deployment. However, its advantage is that the generated adversarial samples are of higher quality.
[0006] In contrast, universal adversarial attacks have stronger generalization capabilities. Universal adversarial attacks usually design a universal perturbation for all input data. It does not depend on specific data, can be quickly deployed in actual scenarios, and maintains a certain attack effect. Therefore, universal adversarial attacks are more suitable for real-time deployment scenarios. Its disadvantage is that the quality of the generated adversarial samples is not as good as that of traditional adversarial attack methods.
[0007] Therefore, studying adversarial attacks based on speaker recognition models is of great significance for improving the security and reliability of speaker recognition technology. However, most current technologies only ensure the success rate of general adversarial attacks, without considering the concealment of disturbances and achieving higher adversarial audio quality. Summary of the invention
[0008] In order to avoid the above-mentioned deficiencies of the prior art, the present invention provides a highly concealed adversarial speech sample generation method based on a universal adversarial perturbation generation network, in order to obtain high-quality and highly concealed universal adversarial audio, thereby realizing real-time deployment of adversarial attacks.
[0009] The present invention adopts the following scheme to solve the technical problem:
[0010] The invention discloses a method for generating highly concealed adversarial speech samples based on a universal adversarial perturbation generation network, which comprises the following steps:
[0011] Step 1: Sample the i-th frame audio X from an audio sequence i ={X i_1 , X i_2 , ..., X i_t , …, X i_T}; where X i_t Represents the i-th frame audio X i The audio value of the tth sampling point in X i The total number of sampling points in ;
[0012] Generate audio X via the generation method UAP-GN i The adversarial audio frequency X′ i ={X′ i_1 , X′ i_2 , ..., X′ i_t ,…,X′ i_T}; where X′ i_t Represents X i_t The adversarial audio, let X i The speaker ID is Y i , i = 1, 2, ..., N, where N is the total number of speakers; let X i The discriminant labels are 1, X′ i The discriminant label of is 0;
[0013] Step 2: Construct a universal adversarial perturbation generation network, including: speaker recognition module R, adversarial sample detection module D and universal adversarial perturbation generation module G;
[0014] Step 2.1: The speaker recognition module R uses a Sinc-Net network to identify X i Process and output the i-th frame audio X i The probability vector p of the speaker prediction label i ;
[0015] Based on p i and Y iConstruct a cross entropy loss function and use the RMSProp optimization algorithm to pre-train the speaker recognition module R to obtain the pre-trained speaker recognition module f R ;
[0016] Step 2.2: The adversarial sample detection module D uses a CNN network to detect X′ i and X i Process them separately to obtain the one-dimensional audio discriminant matrix q i and the one-dimensional adversarial audio discriminant matrix q′ i ;
[0017] X-based i The discriminant label and q i Construct binary cross entropy based on X′ i The discriminant label and q′ i Construct a binary cross entropy, and use the Adam optimization algorithm to pre-train the adversarial sample detection module D to obtain the trained adversarial sample detection module f D ;
[0018] Step 2.3: Generate general adversarial perturbation module G for X i The corresponding one-dimensional standard Gaussian noise z i After processing, we get the one-dimensional universal adversarial perturbation δ i ;
[0019] Step 3: Establish the optimization objective of the general adversarial perturbation generation network;
[0020] The non-target attack optimization objective and the target attack optimization objective of the general adversarial perturbation generation module G are established using equations (1) and (2) respectively;
[0021]
[0022] In formula (1) and formula (2), L(X i , X i +δ i ) is the loss function of the general adversarial perturbation generation module G; where U is the speaker label expected by the preset speaker recognition module R;
[0023] Step 4: Use the Adam method to train the general adversarial perturbation generation network G and calculate the loss function L(X i , X i +δ i ) to update the parameters of the network G until the maximum number of training times is reached, and then the training is stopped to obtain the optimal universal adversarial perturbation generation network for identifying the identity of the speaker.
[0024] The highly concealed adversarial speech sample generation method based on a universal adversarial perturbation generation network described in the present invention is also characterized in that the CNN network in step 2.2 includes: W layers of 1D convolution and maximum pooling layers, and F layers of fully connected layers;
[0025] X i After being processed by W layers of 1D convolution and maximum pooling layers respectively, the audio feature map F = {F1, F2, ..., F c , ..., F C}, and flattened into a one-dimensional audio vector, and then input into the F-layer fully connected layer and activation function for processing, and output a one-dimensional audio discriminant matrix q i ; Among them, F c is the cth eigenvalue of the audio feature graph, and C is the total number of features;
[0026] X′ i After being processed by W layers of 1D convolution and maximum pooling layers respectively, the adversarial audio feature map F′={F′1, F′2, ..., F′ c , ..., F′ C}, and flattened into a one-dimensional adversarial audio vector, and then input into the F-layer fully connected layer and activation function for processing, and output a one-dimensional adversarial audio discriminant matrix q′ i ; where F′ c is the cth eigenvalue of the adversarial audio feature map.
[0027] The adversarial perturbation generation module G in step 2.3 includes: a fully connected layer, an upsampling layer, and a 1D convolution;
[0028] The fully connected layer will z i After being converted into a two-dimensional tensor, the audio feature map with doubled dimension is obtained through the upsampling layer. i ={f i_1 , f i_2 , ..., f i_v, ..., f i_V}, where f i_v is the feature value of the vth dimension of the i-th channel in the audio feature graph, V is the total number of feature dimensions, i = 1, 2, ..., M, M is the total number of channels;
[0029] If V is different from the ideal output dimension T, the audio feature map f is adjusted using interpolation i The dimension of the audio feature map after the dimension adjustment is then input into the 1D convolution layer for processing, and the one-dimensional universal adversarial perturbation δ is obtained. i =G(z i );
[0030] If V is the same as the ideal output dimension T, then f i The input is processed in the 1D convolution layer and a one-dimensional universal adversarial perturbation δ is obtained. i =G(z i ).
[0031] In step 3, the loss function L(X) of the general adversarial perturbation generation module G is obtained by using formula (3). i , X i +δ i );
[0032] L(X i , X i +δ i )=λ G *L G (δ i )+λ R *L R (X i , X i +δ i )+λ D *L D (X i , X i +δ i ) (3)
[0033] In formula (3), L G (δ i ) is the restricted universal adversarial perturbation δ i The loss function of size is obtained by formula (6); L R (X i , X i +δ i ) is the loss function that causes the speaker recognition model to produce misclassification. If the attack method is specified as non-targeted attack, then L is obtained by formula (7): R (X i , X i +δ i ), if the attack mode is targeted attack, then replace Y in formula (7) i After setting it to U, we get L R (X i , X i +δ i );L D (X i , X i +δ i ) is the loss function for deceiving the adversarial sample detection module D, which is obtained by formula (8); G , R , D They are the trade-off loss function L G (δi )、L R (X i , X i +δ i )、L D (X i , X i +δ i )’s three weight coefficients;
[0034]
[0035]
[0036] In formula (4) to formula (8), Indicates that X i +δ i The probability vector output by the speaker recognition module R can be obtained by formula (4), and we assume The maximum probability value is And take the index corresponding to the maximum probability value as X i +δ i The predicted label Set the second highest probability value to make The probability value of the speaker ID dimension is Indicates that X i +δ i The probability vector output after inputting the adversarial sample detection module D is obtained by formula (5); let The probability value of index 0 is The probability value of index 1 is m is a fixed value used to adjust the size of the loss function; μ is a scaling factor; θ is a threshold that limits the size of the disturbance; Represents Iverson brackets. If Iverson meets the conditions in the brackets, then The value of is 1, otherwise, The value of is 0;
[0037] The electronic device of the present invention includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the visual speech recognition method, and the processor is configured to execute the program stored in the memory.
[0038] The present invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program executes the steps of the visual speech recognition method when executed by a processor.
[0039] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0040] 1. The network structure designed by the present invention is composed of three network modules connected to each other. By fixing two modules and training one of the modules, a more efficient training process is achieved. This training method helps to generate more hidden universal perturbations, because the network adds an adversarial sample detection module during the training process, which facilitates better disguise of perturbations and makes perturbations more difficult to detect. At the same time, by optimizing the training process, the present invention improves the quality of adversarial samples, making the generated adversarial samples more stable and reliable, and provides a new solution for improving the robustness of speaker recognition models.
[0041] 2. The present invention generates universal adversarial perturbations through a universal adversarial perturbation generation network, which significantly shortens the large amount of time required for deploying perturbations in traditional adversarial attacks. This instant generation of universal adversarial perturbations not only improves the attack efficiency, but also increases the feasibility of implementing adversarial attacks in actual application scenarios.
[0042] 3. In order to further enhance the concealment and diversity of universal adversarial perturbations, the present invention uses randomly sampled Gaussian noise as input to generate different universal perturbations. This design makes the generated universal perturbations more diverse in form and characteristics, making them difficult to be identified and defended by the target model. At the same time, the randomness of Gaussian noise also provides a guarantee for the concealment of universal perturbations, making attacks more difficult to track and defend.
[0043] 4. The present invention successfully achieved two specific tasks: untargeted attack and targeted attack, and achieved good attack effects in the experiment. Untargeted attack aims to reduce the classification accuracy of the target model, while targeted attack attempts to make the target model produce specific misclassifications. Both attack methods are of great significance in practical applications. Untargeted attack can be used to reduce the performance of the model, while targeted attack can be used to achieve specific attack goals. Through the implementation of these two attack methods, the present invention demonstrates its wide application potential and value in actual adversarial attack scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a flow chart of the present invention;
[0045] Figure 2 This is the overall framework diagram of the universal adversarial disturbance generation network of the present invention;
[0046] Figure 3 This is a diagram of the adversarial sample detection network structure of the method of the present invention. DETAILED DESCRIPTION
[0047] In this embodiment, for the security-sensitive speaker recognition system, studying adversarial attacks can help us discover potential security vulnerabilities in advance and take corresponding measures to ensure the security of the system. A highly concealed adversarial speech sample generation method based on a general adversarial perturbation generation network is proposed. The specific process is as follows: Figure 1 As shown, the following steps are included:
[0048] Step 1: Use the public dataset TIMIT and process it. Each audio is sampled at a sampling rate of 16000. In this example, T is set to 3200. The sampled audio is divided according to T to obtain audio frames. The i-th audio frame X is sampled from an audio sequence. i ={X i_1 , X i_2 , ..., X i_t , …, X i_T}; where X i_t Represents the i-th frame audio X i The audio value of the tth sampling point in X i The total number of sampling points in the dataset is calculated, and the adversarial audio is generated by the generation method UAP-GN. After the same processing steps as the TIMIT dataset, the adversarial audio frame is obtained.
[0049] Generate audio X via the generation method UAP-GN i The adversarial audio frequency X′ i ={X′ i_1 , X′ i_2 , ..., X′ i_t ,…,X′ i_T}; where X′ i_t Represents X i_t The adversarial audio, let X i The speaker ID is Y i , i = 1, 2, ..., N, where N is the total number of speakers, which is 462 in this example; let X i The discriminant labels are 1, X′ i The discriminant label is 0, the discriminant label is 1, which means the sample is a real sample, and the discriminant label is 0, which means the sample is a generated adversarial sample, which is a fake sample;
[0050] Step 2: Construct a general adversarial perturbation generation network, including: speaker recognition module R, adversarial sample detection module D and general adversarial perturbation generation module G. The overall architecture is shown in the figure Figure 2 shown.
[0051] Step 2.1: The speaker recognition module R uses the Sinc-Net network to identify X i Process and output the i-th frame audio X iThe probability vector p of the speaker prediction label i ;
[0052] Based on p i and Y i Construct a cross entropy loss function and use the RMSProp optimization algorithm to pre-train the speaker recognition module R to obtain the pre-trained speaker recognition module f R .
[0053] Step 2.2: The network structure of module D is as follows Figure 3 As shown, the adversarial sample detection module D uses a CNN network to detect X′ i and X i Process them separately to obtain the one-dimensional audio discriminant matrix q i ;
[0054] In the specific implementation, the CNN network includes: W layers of 1D convolution and maximum pooling layers, and F layers of fully connected layers;
[0055] X i After being processed by W layers of 1D convolution and maximum pooling layers respectively, the pooling layer window size is 2, and the audio feature map F = {F1, F2, ..., F c , ..., F C ), and flattened into a one-dimensional audio vector, and then input into the F-layer fully connected layer and activation function for processing. The fully connected layer finally outputs a 2-dimensional, Softmax activation function is used to facilitate the output of probability distribution, and outputs a one-dimensional audio discriminant matrix q i ,q i The value with index 0 in F represents the probability that the sample is an adversarial sample, and the value with index 1 represents the probability that the sample is a real sample; where F c is the cth eigenvalue of the audio feature graph, and C is the total number of features;
[0056] X′ i After being processed by W layers of 1D convolution and maximum pooling layers respectively, the adversarial audio feature map F′={F′1, F′2, ..., F′ c , ..., F′ C}, and flattened into a one-dimensional adversarial audio vector, and then input into the F-layer fully connected layer and activation function for processing, and output a one-dimensional adversarial audio discriminant matrix q′ i , q′ i The value with index 0 in the formula represents the probability that the sample is an adversarial sample, and the value with index 1 represents the probability that the sample is a real sample; where F′ c is the cth eigenvalue of the adversarial audio feature map;
[0057] X-based i The discriminant label and qi Construct binary cross entropy based on X′ i The discriminant label and q′ i Construct the binary cross entropy and use the Adam optimization algorithm to pre-train the adversarial sample detection module D to obtain the trained adversarial sample detection module f D .
[0058] Step 2.3: Generate general adversarial perturbation module G for X i The corresponding one-dimensional standard Gaussian noise z i Processing, z i The dimension is 100, and we get the one-dimensional universal adversarial perturbation δ i , δ i The dimension is T, and the value is 3200, which is consistent with the input of the speaker recognition module R and the adversarial sample detection module D.
[0059] In the specific implementation, the adversarial perturbation generation module G includes: a fully connected layer, an upsampling layer, and a 1D convolution, using the generation network of UAP-GN;
[0060] The fully connected layer converts z i After being converted into a two-dimensional tensor, the audio feature map with doubled dimension is obtained through the upsampling layer. i ={f i_1 , f i_2 , ..., f i_v , ..., f i_V}, where f i_v is the feature value of the vth dimension of the i-th channel in the audio feature graph, V is the total number of feature dimensions, i=1,2,...,M, M is the total number of channels, and in this example, M is set to 64.
[0061] If V is different from the ideal output dimension T, the audio feature map f is adjusted using interpolation i The dimension of the audio feature map after the dimension adjustment is then input into the 1D convolution layer for processing, and the one-dimensional universal adversarial perturbation δ is obtained. i , and δ i =G(z i );
[0062] If V is the same as the ideal output dimension T, then f i The input is processed in the 1D convolution layer and a one-dimensional universal adversarial perturbation δ is obtained. i .
[0063] Step 3: Establish the optimization objective of the general adversarial perturbation generation network;
[0064] Step 3.1: Use equations (1) and (2) to respectively establish the non-targeted attack optimization objective and the targeted attack optimization objective of the general adversarial perturbation generation module G;
[0065]
[0066] In equations (1) and (2), the universal adversarial perturbation generation network has three modules, so the loss function of the universal adversarial perturbation generation module G is the weighted sum of the losses of the three modules, L(X i , X i +δ i ) is the loss function of the universal adversarial perturbation generation module G and is obtained by formula (3); wherein U is the speaker label expected by the preset speaker recognition module R, and U can be set to 0, 100, 200, etc.
[0067] L(X i , X i +δ i )=λ G *L G (δ i )+λ R *L R (X i , X i +δ i )+λ D *L D (X i , X i +δ i ) (3)
[0068] In formula (3), L G (δ i ) is the restricted universal adversarial perturbation δ i The loss function of size is obtained by formula (6); L R (X i , X i +δ i ) is the loss function that causes the speaker recognition model to produce misclassification. If the attack method is specified as non-targeted attack, then L is obtained by formula (7): R (X i , X i +δ i ), if the attack mode is targeted attack, then replace Y in formula (7) i After setting it to U, we get L R (X i , X i +δ i );L D (X i , X i +δ i) is the loss function of deceiving adversarial sample detection module D, which is obtained by formula (8); G , R , D They are the trade-off loss function L G (δ i )、L R (X i , X i +δ i )、L D (X i , X i +δ i ) three weight coefficients, where λ G The value of is usually set to 2000 or 3000, R , D Generally, it is set to 1;
[0069]
[0070] In formula (4) to formula (8), Indicates that X i +δ i The probability vector output by the speaker recognition module R can be obtained by formula (4), and we assume The maximum probability value is And take the index corresponding to the maximum probability value as X i +δ i The predicted label Set the second highest probability value to make The probability value of the speaker ID dimension is Indicates that X i +δ i The probability vector output after inputting the adversarial sample detection module D is obtained by formula (5); let The probability value of index 0 is The probability value of index 1 is m is a fixed value used to adjust the size of the loss function; μ is a scaling factor; θ is the threshold for limiting the size of the disturbance. In this example, θ is set to 0.05. Set to 0.01, μ to 0.1; Represents Iverson brackets. If Iverson meets the conditions in the brackets, then The value of is 1, otherwise, The value of is 0.
[0071] Step 4: Use the Adam method to train the universal adversarial perturbation generation network G, and calculate the loss function L to update the parameters of the network G until the maximum number of training times is reached, then stop training to obtain the optimal universal adversarial perturbation generation network for identifying the speaker.
[0072] In this embodiment, an electronic device includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the above method, and the processor is configured to execute the program stored in the memory.
[0073] In this embodiment, a computer-readable storage medium stores a computer program on the computer-readable storage medium, and the computer program executes the steps of the above method when executed by a processor.
Claims
1. A highly concealed adversarial speech sample generation method based on a general adversarial perturbation generation network, characterized in that: The steps include: Step 1: Sample the i-th frame audio X from an audio sequence i ={X i_1 , X i_2 , ..., X i_t , …, X i_T }; where X i_t Represents the i-th frame audio X i The audio value of the tth sampling point in X i The total number of sampling points in ; Generate audio X via the generation method UAP-GN i The adversarial audio frequency X′ i ={X′ i_1 , X′ i_2 , ..., X′ i_t ,…,X′ i_T }; where X′ i_t Represents X i_t The adversarial audio, let X i The speaker ID is Y i , i = 1, 2, ..., N, where N is the total number of speakers; let X i The discriminant labels are 1, X′ i The discriminant label of is 0; Step 2: Construct a universal adversarial perturbation generation network, including: speaker recognition module R, adversarial sample detection module D and universal adversarial perturbation generation module G; Step 2.1: The speaker recognition module R uses a Sinc-Net network to identify X i Process and output the i-th frame audio X i The probability vector p of the speaker prediction label i ; Based on p i and Y i Construct a cross entropy loss function and use the RMSProp optimization algorithm to pre-train the speaker recognition module R to obtain the pre-trained speaker recognition module f R ; Step 2.2: The adversarial sample detection module D uses a CNN network to detect X′ i and X i Process them separately to obtain the one-dimensional audio discriminant matrix q i and the one-dimensional adversarial audio discriminant matrix q′ i ; X-based i The discriminant label and q i Construct binary cross entropy based on X′ i The discriminant label and q′ i Construct a binary cross entropy, and use the Adam optimization algorithm to pre-train the adversarial sample detection module D to obtain the trained adversarial sample detection module f D ; Step 2.3: Generate general adversarial perturbation module G for X i The corresponding one-dimensional standard Gaussian noise z i After processing, we get the one-dimensional universal adversarial perturbation δ i ; Step 3: Establish the optimization objective of the general adversarial perturbation generation network; The non-target attack optimization objective and the target attack optimization objective of the general adversarial perturbation generation module G are established using equations (1) and (2) respectively; In formula (1) and formula (2), L(X i , X i +δ i ) is the loss function of the general adversarial perturbation generation module G; where U is the speaker label expected by the preset speaker recognition module R; Step 4: Use the Adam method to train the general adversarial perturbation generation network G and calculate the loss function L(X i , X i +δ i ) to update the parameters of the network G until the maximum number of training times is reached, and then the training is stopped to obtain the optimal universal adversarial perturbation generation network for identifying the identity of the speaker.
2. According to claim 1, a highly concealed adversarial speech sample generation method based on a general adversarial perturbation generation network is characterized in that: The CNN network in step 2.2 includes: W layers of 1D convolution and maximum pooling layers, and F layers of fully connected layers; X i After being processed by W layers of 1D convolution and maximum pooling layers respectively, the audio feature map F = {F1, F2, ..., F c , ..., F C }}, and flattened into a one-dimensional audio vector, and then input into the F-layer fully connected layer and activation function for processing, and output the one-dimensional audio discriminant matrix q i Among them, F c is the cth eigenvalue of the audio feature graph, and C is the total number of features; X′ i After being processed by W layers of 1D convolution and maximum pooling layers respectively, the adversarial audio feature map F′={F′1, F′2, ..., F′ c , ..., F′ C }, and flattened into a one-dimensional adversarial audio vector, and then input into the F-layer fully connected layer and activation function for processing, and output a one-dimensional adversarial audio discriminant matrix q′ i ; where F′ c is the cth eigenvalue of the adversarial audio feature map.
3. According to claim 2, a highly concealed adversarial speech sample generation method based on a general adversarial perturbation generation network is characterized in that: The adversarial perturbation generation module G in step 2.3 includes: a fully connected layer, an upsampling layer, and a 1D convolution; The fully connected layer will z i After being converted into a two-dimensional tensor, the audio feature map with doubled dimension is obtained through the upsampling layer. i ={f i_1 , f i_2 , ..., f i_v , ..., f i_V }, where f i_v is the feature value of the vth dimension of the i-th channel in the audio feature graph, V is the total number of feature dimensions, i = 1, 2, ..., M, M is the total number of channels; If V is different from the ideal output dimension T, the audio feature map f is adjusted using interpolation i The dimension of the audio feature map after the dimension adjustment is then input into the 1D convolution layer for processing, and the one-dimensional universal adversarial perturbation δ is obtained. i =G(z i ); If V is the same as the ideal output dimension T, then f i The input is processed in the 1D convolution layer and a one-dimensional universal adversarial perturbation δ is obtained. i =G(z i ).
4. According to claim 3, a highly concealed adversarial speech sample generation method based on a general adversarial perturbation generation network is characterized in that: In step 3, the loss function L(X) of the general adversarial perturbation generation module G is obtained by using formula (3). i , X i +δ i ); L(X i ,X i +d i )=λ G *L G (d i )+λ R *L R (X i ,X i +d i )+λ D *L D (X i ,X i +d i ) (3) In formula (3), L G (δ i ) is the restricted universal adversarial perturbation δ i The loss function of size is obtained by formula (6); L R (X i , X i +δ i ) is the loss function that causes the speaker recognition model to produce misclassification. If the attack method is specified as non-targeted attack, then L is obtained by formula (7): R (X i , X i +δ i ), if the attack mode is targeted attack, then replace Y in formula (7) i After setting it to U, we get L R (X i , X i +δ i );L D (X i , X i +δ i ) is the loss function for deceiving the adversarial sample detection module D, which is obtained by formula (8); G , R , D They are the trade-off loss function L G (δ i )、L R (X i , X i +δ i )、L D (X i , X i +δ i )’s three weight coefficients; In formula (4) to formula (8), Indicates that X i +δ i The probability vector output by the speaker recognition module R can be obtained by formula (4), and we assume The maximum probability value is And take the index corresponding to the maximum probability value as X i +δ i The predicted label Set the second highest probability value to make The probability value of the speaker ID dimension is Indicates that X i +δ i The probability vector output after inputting the adversarial sample detection module D is obtained by formula (5); let The probability value of index 0 is The probability value of index 1 is m is a fixed value used to adjust the size of the loss function; μ is the scaling factor; θ is the threshold that limits the size of the perturbation; Represents Iverson brackets. If Iverson meets the conditions in the brackets, then The value of is 1, otherwise, The value of is 0.
5. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store a program that supports the processor to execute the visual speech recognition method described in any one of claims 1 to 4, and the processor is configured to execute the program stored in the memory.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the visual speech recognition method according to any one of claims 1 to 4 are performed.
Citation Information
Patent Citations
Adversarial sample attack method for voice keyword classification network
CN112216273A
Voiceprint recognition confrontation sample generation method based on boundary attack
CN113571067A
High-fidelity voice desensitization method and device based on adversarial sample generation
CN115083426A
Confrontation disturbance generation method and device for voiceprint recognition, equipment and medium
CN117219086A
A speaker normalization system using speaker embedding and generative adversarial neural network for speech recognition performance improvement -Journal of the Korea Convergence Society Korea Science
KR102609789B1
Cited By
Method for generating network traffic general disturbance patch based on superposition and confusion
CN119402271A
