Audio sparse counterattack method, device, equipment and medium based on pitch modulation

The sparse audio attack method optimized through pitch modulation and -Box ADMM technology solves the problem of widespread noise distribution in existing audio sparse adversarial attacks, improves the concealment and effectiveness of the attack, and achieves high success rate ASR system attacks .

CN118471253BActive Publication Date: 2024-10-11XIAMEN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When existing audio sparse adversarial attack methods improve the robustness and concealment of attacks, they cause noise to be widely distributed in the entire audio spectrum, which increases the detectability of adversarial samples. The effect is more obvious when the audio duration increases, and requires Concessions are made in the noisy search domain, resulting in a significant increase in the generated noise compared to the global attack strategy.

Method used

Adopt an audio sparse adversarial attack method based on pitch modulation, generate adversarial audio through pitch shifting and voice activity detection technology, and use -Box ADMM to optimize the sparse audio attack method, introducing a norm penalty term to iteratively update variables and multipliers, Optimize the sparsity of adversarial audio to ensure that noise is concentrated in segments of speech activity.

Benefits of technology

While maintaining the audibility of adversarial audio, it simplifies the attack process, improves the concealment and effectiveness of adversarial noise, achieves high-success rate ASR system attacks, and significantly improves the noise distribution problem in traditional methods, improving The average zero point rate of sparse noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118471253B_ABST
    Figure CN118471253B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and medium for audio sparse adversarial attack based on pitch modulation, including: pitch shifting, pitch shifting input audio to change the frequency of the audio and induce initial misrecognition of the ASR system; using voice activity detection to identify active voice segments in the audio, generating binary masks to identify these segments; generating sparse noise; combining the optimized perturbation vector with the mask vector to generate the final adversarial audio sample, so that it can effectively attack the ASR system and is difficult to be detected by the human ear. The present invention simplifies the attack process and improves the concealment and effectiveness of the adversarial noise while maintaining the audibility of the adversarial audio.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of audio sparse counterattack, and in particular to an audio sparse counterattack method, device, equipment and medium based on pitch modulation. Background Art

[0002] Although deep neural networks have achieved high accuracy in different fields such as image detection, object tracking, and automatic speech recognition, their performance degrades significantly when small but powerful adversarial perturbations are added to the input. The emergence of adversarial attacks as a major security threat has attracted attention from various research fields. Adversarial attacks have the potential to significantly degrade the accuracy of pre-trained deep neural networks by perturbing benign samples that are imperceptible to humans. In the field of ASR, most attackers tend to inject malicious perturbations into the audio to manipulate the ASR system, thus causing security issues.

[0003] To explore the threat posed by audio adversarial examples, a variety of different approaches have been developed. Existing attacks can be divided into targeted and untargeted attacks. In the context of untargeted attacks, early research works aimed to create adversarial examples that cause erroneous and random transcriptions. For targeted attacks, Carlini and Wagner effectively extended their iterative-based method to generate targeted adversarial audio samples so that the ASR system recognizes the attacked audio as the expected transcription result. Subsequently, researchers have been working to improve the robustness and stealth of targeted audio attacks. For example, Qin et al. used the auditory masking principle of psychoacoustics to design covert, robust and targeted adversarial audio samples. These attacks achieved a 100% success rate on the advanced Lingvo ASR system. Liu et al. applied a denoising method in the loss function to make the noise undetectable, which established a basic benchmark for sparse noise generation. In addition, Yu et al. optimized the non-noise audio properties to generate robust and imperceptible adversarial samples to the human ear, pushing the boundaries of audio adversarial research.

[0004] While the above methods effectively enhance the imperceptibility of audio attacks, they also inadvertently increase perceptibility by introducing adversarial noise into silent audio segments. In addition, due to the inherent temporal characteristics of audio recognition, performing sparse attacks in the audio domain poses a huge challenge. Currently, optimization techniques have only achieved a noise zeroing rate of about 25%. Existing audio attacks cause more significant perturbations due to their widely distributed noise throughout the audio spectrum. This approach involves injecting the generated noise across the board, increasing the perceptibility of the resulting adversarial samples - an effect that becomes more pronounced as the audio duration increases. In addition, the presence of silent segments in the target speech enhances the perceptibility of the inserted noise, just like drawing a black line on white paper. Existing research shows that using sparse attacks requires concessions in the noise search domain, resulting in a significant increase in the generated noise compared to global attack strategies.

[0005] In view of this, this application is filed. Summary of the invention

[0006] The present invention provides a method, device, equipment and medium for audio sparse countermeasure attack based on pitch modulation, which can at least partially improve the above-mentioned problems.

[0007] To achieve the above object, the present invention adopts the following technical solutions:

[0008] An audio sparse adversarial attack method based on pitch modulation, comprising:

[0009] Acquire target audio, perform pitch shift processing on the target audio, and generate audio data after pitch conversion;

[0010] Using voice activity detection (VAD) technology to isolate the pitch-converted audio data, only detecting and retaining segments full of speech, and generating adversarial audio;

[0011] Optimize the attack, decompose the perturbation, replace the space of binary vectors that determine the perturbation position with the intersection of two continuous spaces, and use -Box ADMM optimized sparse audio attack method iteratively optimizes the adversarial audio to generate the final adversarial audio sample, where The norm penalty term introduces an optimization problem, iteratively updates variables and multipliers, and optimizes the sparsity of adversarial audio.

[0012] The present invention also provides an audio sparse attack countermeasure device based on pitch modulation, which comprises:

[0013] A pitch shift unit, used to obtain target audio, perform pitch shift processing on the target audio, and generate audio data after pitch conversion;

[0014] A voice activity detection unit, configured to isolate and process the pitch-converted audio data using a voice activity detection (VAD) technique, and only detect and retain segments full of voice, thereby generating adversarial audio;

[0015] The sparse noise generation unit is used to optimize the attack, decompose the disturbance, replace the space of binary vectors that determine the disturbance position with the intersection of two continuous spaces, and use -Box ADMM optimized sparse audio attack method iteratively optimizes the adversarial audio to generate the final adversarial audio sample, where The norm penalty term introduces an optimization problem, iteratively updates variables and multipliers, and optimizes the sparsity of adversarial audio.

[0016] The present invention also provides an audio sparse counterattack device based on pitch modulation, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the audio sparse counterattack method based on pitch modulation as described in any one of the above.

[0017] The present invention also provides a computer-readable storage medium storing a computer program, wherein the computer program can be executed by a processor of a device where the computer-readable storage medium is located to implement the audio sparse counterattack method based on pitch modulation as described in any one of the above.

[0018] In summary, the attack process of the pitch-modulated audio sparse adversarial attack method is as follows: first, pitch shifting is performed to shift the input audio to change the frequency of the audio and induce initial misrecognition of the ASR system. Then, voice activity detection is used to identify active speech segments in the audio, and a binary mask is generated to identify these segments. Then sparse noise generation is performed, which includes the following steps: Initialization: Initialize the perturbation vector and the mask vector. Perturbation optimization: Fix the mask vector and optimize the perturbation vector by gradient descent. Mask optimization: Fix the perturbation vector and optimize the perturbation vector by gradient descent. -Box ADMM algorithm optimizes the mask vector. Iterative update: Alternately optimize the perturbation vector and the mask vector until the generated adversarial audio can successfully deceive the ASR system. Finally, the optimized perturbation vector is combined with the mask vector to generate the final adversarial audio sample, which can effectively attack the ASR system and is difficult to be detected by the human ear. Through the above method, it is achieved that while maintaining the audibility of the adversarial audio, the attack process is simplified and the concealment and effectiveness of the adversarial noise are improved.

[0019] The proposed audio sparse adversarial attack method based on pitch modulation aims to enhance the vulnerability exploitation of automatic speech recognition (ASR) systems. By pitch-adjusting the audio signal and using voice activity detection (VAD) technology, combined with -boxADMM technology optimizes the generation process of sparse noise. This method generates sparse and imperceptible adversarial noise, thereby improving the stealth and effectiveness of the attack. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a flowchart of the audio sparse counterattack method based on pitch modulation provided by the first aspect of the present invention;

[0021] Figure 2 It is a flowchart of the audio sparse counterattack method based on pitch modulation provided by the second aspect of the present invention;

[0022] Figure 3 The present invention and the other two methods provide waveforms and spectrograms of adversarial audio generated by the present invention in an embodiment of the present invention;

[0023] Figure 4 The embodiment of the present invention provides - Schematic diagram of the steps of the sparse audio attack algorithm of the Box ADMM algorithm;

[0024] Figure 5 is a comparison result diagram of adversarial samples generated by the present invention and other four methods on different indicators provided by an embodiment of the present invention; Figure 5 The meanings of the various indicators are as follows: Signal-to-Noise Ratio SNR (Signal-to-Noise Ratio): Measures the ratio of signal to noise in an audio signal. The higher the signal-to-noise ratio, the less impact the noise has on the audio and the better the signal quality; Distortion Distortion: Measures the degree of distortion between the adversarial example and the original audio. The lower the distortion, the closer the adversarial example is to the original audio; Success Rate SR (Success Rate): Indicates the proportion of successful adversarial attacks, that is, the proportion of times the attack can cause the speech recognition system to misrecognize the total number of times; Word Error Rate WER (Word Error Rate): Measures the proportion of incorrect words generated by the speech recognition system during the recognition process. The lower the WER, the higher the recognition accuracy; Noise Ratio Proportion: Indicates the proportion of sparse noise generated in the adversarial attack to the entire audio signal. The lower the ratio, the better the concealment of the attack;

[0025] Figure 6 is an example diagram of evaluating the present invention using four different phrases in the Common Voice dataset provided by an embodiment of the present invention;

[0026] Figure 7 This is an example diagram of using four different phrases in the TIMIT dataset to evaluate the present invention provided by an embodiment of the present invention;

[0027] Figure 8 It is a module diagram of an audio sparse attack countermeasure device based on pitch modulation provided in the first embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0029] refer to Figure 1 , Figure 2 As shown, the first embodiment of the present invention discloses an audio sparse counterattack method based on pitch modulation, which can be executed by an audio sparse counterattack device based on pitch modulation (hereinafter referred to as the counterattack device), and in particular, executed by one or more processors in the counterattack device to implement the following method:

[0030] S101, acquiring target audio, performing pitch shift processing on the target audio, and generating audio data after pitch conversion;

[0031] Specifically, step S101 includes: obtaining the target audio as the input audio x, performing pitch conversion on the input audio x, and obtaining the frequency of the modified audio, the formula is:

[0032]

[0033] in, is the original frequency, is the frequency after shifting, step is the step size of pitch shifting, and bin is the number of steps in each octave;

[0034] The Levenshtein distance is used as an evaluation metric to quantify the effectiveness of frequency modification and generate pitch-converted audio data, where the optimized pitch adjustment parameters are:

[0035]

[0036] in, is the Levenshtein distance between the first i positions of the audio recognition result a and the first j positions of the audio recognition result b, is the larger of i and j, is the smaller of i and j, and Represent the audio recognition results respectively At the positions before and after the pitch shift, a and b represent the recognition results before and after the pitch shift, respectively.

[0037] The Levenshtein distance is used as an evaluation metric to quantify the effect of pitch shifting. The larger the Levenshtein distance, the better the misleading effect.

[0038] In this embodiment, the pitch-modulated audio sparse adversarial attack method enhances adversarial attacks on automatic speech recognition systems through pitch shifting and sparse noise generation. The technical principles of this method include the following aspects. First, pitch shifting: The target audio is first pitch-shifted to induce initial misrecognition by the ASR system. This process exploits the natural vulnerabilities introduced by pitch modification, thereby reducing the optimization complexity required to generate effective sparse adversarial noise.

[0039] Specifically, in this embodiment, pitch shifting is first used, which not only serves as an attack vector, but also strategically induces initial misrecognition in the ASR system. This method innovatively uses pitch modulation to change the audio input, thereby subtly misleading the ASR transcription process. For a given input audio , the goal of the pitch shifting function is to modify the frequency of the audio :

[0040]

[0041] in, is the original frequency, is the frequency after shifting, step is the step length of pitch shifting, and bin is the number of steps in each octave. This adjustment increases the possibility of misrecognition by the ASR system without significantly changing the original speech content of the audio signal, and lays the foundation for subsequent sparse noise generation.

[0042] The effectiveness of these modifications is quantified using Levenshtein distance as the evaluation metric, which helps to statistically optimize the pitch adjustment parameters:

[0043]

[0044] in, is the Levenshtein distance between the first i positions of the audio recognition result a and the first j positions of the audio recognition result b, is the larger of i and j, is the smaller of i and j, and Represent the audio recognition results respectively In the positions before and after the pitch shift, a and b represent the recognition results before and after the pitch shift, respectively. The Levenshtein distance is used as an evaluation indicator to quantify the effect of the pitch shift. The larger the Levenshtein distance, the better the misleading effect.

[0045] S102, using voice activity detection (VAD) technology to isolate the pitch-converted audio data, only detecting and retaining segments full of voice, and generating adversarial audio;

[0046] Specifically, step S102 includes: using voice activity detection (VAD) technology to isolate the audio data after the pitch conversion;

[0047] Make two assumptions:

[0048]

[0049] in, and Indicates whether the detected signal is silence or sound, and Represent noise and speech signals respectively;

[0050] When identified When a method involving multiple masks is introduced adversarial patch method to limit perturbations , generating adversarial audio ,in, Represents element-wise multiplication.

[0051] The adversarial audio is processed using the adversarial attack objective function, wherein the adversarial attack objective function is:

[0052]

[0053] in, represents the CTC loss function, is a trade-off parameter used to constrain the disturbance, is the norm that limits the disturbance amplitude, The speech recognition model to attack. The target sentence to guide the model output;

[0054] Optimize the attack and disturb This breaks down into: G

[0055] in, A vector representing the magnitude of the disturbance, G is a binary vector determining the location of the disturbance, satisfying , is the symbol of the real number set, is the dimension size;

[0056] With two consecutive spaces The intersection of space:

[0057] in, is a continuous box constraint, is a Ball constraint.

[0058] In this embodiment, secondly, voice activity detection (VAD): voice activity detection is used to identify active speech segments in the audio and ensure that the generated adversarial noise is limited to these active areas. This not only reduces the overall noise level, but also improves the concealment of adversarial attacks.

[0059] Voice Activity Detection (VAD) is applied after pitch conversion to isolate speech segments in audio recordings. In speech recognition, VAD is used to detect and retain only segments filled with speech, eliminating silence. This process involves generating a binary mask based on the VAD results to protect the speech segments, thereby optimizing the system to focus on relevant audio data to improve speech recognition performance. This strategy greatly improves the present method and focuses on speech-specific elements to improve the efficiency and reliability of speech recognition tasks. Specifically, the VAD module needs to make two assumptions:

[0060]

[0061] in, and Indicates whether the detected signal is silence or sound, and represent noise and speech signals respectively. Therefore, once VAD is used to identify , a method involving multiple masks is introduced The adversarial patch method is used to limit the perturbation The adversarial audio generated by this method is ,in represents element-wise multiplication. In addition, the design of the adversarial patch also ensures that the perturbation is highly imperceptible.

[0062] S103, optimize the attack, decompose the disturbance, replace the space of binary vectors that determine the disturbance position with the intersection of two continuous spaces, and use -Box ADMM optimized sparse audio attack method iteratively optimizes the adversarial audio to generate the final adversarial audio sample, where The norm penalty term introduces an optimization problem, iteratively updates variables and multipliers, and optimizes the sparsity of adversarial audio.

[0063] Specifically, step S103 includes: performing perturbation optimization, in the case of a given binary vector G space, optimizing the perturbation vector by gradient descent method , the calculation formula is:

[0064]

[0065] in, and They represent the bias-corrected estimates of the first and second moments of the gradient, yes The learning rate, is a small constant added for numerical stability;

[0066] Perform mask optimization, given the perturbation vector In the case of -Box ADMM method optimizes the binary vector G, and the calculation formula is:

[0067]

[0068]

[0069] in, represents the zero rate of the mask, represents the number of non-zero points in the mask, are two additional variables, representing the box constraints and Ball Constraint , represents the trade-off parameter;

[0070] By simultaneously and Assigned to , the binary vector G is optimized at the intersection of two continuous spaces;

[0071] Introducing the augmented Lagrangian function ALF, the calculation formula is:

[0072]

[0073] in, is the augmented Lagrangian function ALF, and is the dual variable for the Lagrange multiplier, is the dual variable used to handle constraints , is the transpose symbol, , and are penalty parameters used for the quadratic penalty term in the augmented Lagrangian function. To ensure The indicator function that satisfies the box constraint, To ensure The indicator function that satisfies the ball constraint is 0 if the constraint is satisfied, otherwise ;

[0074] Until the iteration is completed, the final adversarial audio sample is generated.

[0075] See also Figure 3 In this embodiment, the third sparse noise generation is: -Box ADMM technology generates sparse noise. This technology enhances the sparsity and concealment of adversarial noise by concentrating noise in the speech activity area, while ensuring the effectiveness of the attack.

[0076] Specifically, using -Box ADMM-optimized sparse audio attack method, which aims to improve the stealth of the attack by enhancing the sparsity of adversarial noise. -Box ADMM is an optimization algorithm based on the ADMM framework that can effectively solve norm-constrained optimization problem. The norm penalty term introduces an optimization problem, which gradually optimizes the sparsity of the adversarial audio by gradually iteratively updating variables and multipliers.

[0077] The objective function of the adversarial attack can be expressed as follows:

[0078]

[0079] in, represents the CTC loss function, is a trade-off parameter used to constrain the disturbance, is the norm that limits the disturbance amplitude, The speech recognition model to attack. is the target sentence that guides the model output.

[0080] To optimize the attack, the perturbation This breaks down into: G

[0081] in, A vector representing the magnitude of the disturbance, G is a binary vector determining the location of the disturbance, satisfying , is the symbol of the real number set, is the dimension size.

[0082] by -Box ADMM method is inspired by the above formula as a mixed integer programming problem, using two continuous spaces The intersection of space:

[0083]

[0084] here is a continuous box constraint, is a Ball constraint.

[0085] After that, you need to -Box ADMM optimization, the iterative process includes the following two parts:

[0086] Part 1, perturbation optimization: Given G, optimize the perturbation vector by gradient descent :

[0087]

[0088] in, and They represent the bias-corrected estimates of the first and second moments of the gradient, yes The learning rate, is a small constant added for numerical stability.

[0089] Part II, Mask Optimization: Given In the case of -Box ADMM method optimizes the mask vector G:

[0090]

[0091]

[0092] in, represents the zero rate of the mask, represents the number of non-zero points in the mask, are two additional variables, representing the box constraints and Ball Constraint , represents the trade-off parameter. and Assigned to , a binary vector G is optimized at the intersection of two continuous spaces.

[0093] The above equation can be expressed by -Box ADMM method is used for optimization, and the augmented Lagrangian function (ALF) is introduced as follows:

[0094]

[0095] After iterating the above optimization process, we can finally obtain a speech adversarial sample that causes the ASR model to make mistakes in recognition.

[0096] See also Figures 4 to 7 In this embodiment, the present invention proposes an innovative attack strategy that uses pitch shifting as a prelude to applying sparse noise. This strategy is groundbreaking in audio adversarial research, and it reduces the optimization complexity required to generate effective sparse adversarial noise by taking advantage of the natural vulnerabilities introduced by pitch modification. This method not only simplifies the attack process, but also maintains the audibility of adversarial samples, achieving an unprecedented balance between effectiveness and stealth. A new type of adversarial audio sample designed specifically for creating adversarial audio samples is proposed. -Box ADMM noise generation technology. This technology aims to enhance the sparsity of adversarial noise, thereby improving the stealth of the attack by concentrating the noise in segments of speech activity. This method reduces the overall noise level without affecting the effectiveness of the attack, significantly improving the traditional method of evenly distributing noise throughout the audio sample. This method not only achieves a high success rate in attacking ASR systems, but also performs well in objective auditory evaluation indicators and subjective human auditory perception. The sparse attack method shows an unprecedented average zero-point rate of more than 40%, demonstrating its superiority in robustness and stealth compared to existing state-of-the-art sparse attack methods.

[0097] In summary, compared with the prior art, the present invention has the following advantages:

[0098] (1) By -box ADMM technology, this method can effectively generate sparse noise in segments containing voice activity rather than evenly distributed throughout the audio. This not only reduces the overall level of noise, but also improves the concealment of the noise, making the adversarial noise auditorily imperceptible. This method also uses pitch adjustment as a leading step in the attack, reducing the optimization difficulty of generating sparse noise while maintaining the auditory acceptability of adversarial examples.

[0099] (2) Experimental results show that this method achieves high success rates on both the Mozilla Common Voice and TIMIT benchmark datasets, proving its effectiveness in practical applications. This method exhibits high robustness in different speech recognition tasks and can effectively attack a variety of ASR systems.

[0100] (3) This method improves optimization efficiency: by inducing initial misrecognition through pitch adjustment, this method reduces the need for sparse noise optimization, reduces the optimization load, and thus speeds up the generation of adversarial examples. -boxADMM algorithm, this method can more effectively balance sparsity and attack effect when generating adversarial noise, avoiding the problem of excessive optimization burden caused by the wide distribution of noise in traditional methods.

[0101] See also Figure 8 The second embodiment of the present invention further provides an audio sparse attack countermeasure device based on pitch modulation, which includes:

[0102] A pitch shifting unit 201 is used to obtain target audio, perform pitch shifting processing on the target audio, and generate audio data after pitch conversion;

[0103] A voice activity detection unit 202, configured to isolate and process the pitch-converted audio data using a voice activity detection (VAD) technique, and only detect and retain segments full of speech to generate adversarial audio;

[0104] The sparse noise generating unit 203 is used to optimize the attack, decompose the disturbance, replace the space of the binary vector that determines the disturbance position with the intersection of two continuous spaces, and use -Box ADMM optimized sparse audio attack method iteratively optimizes the adversarial audio to generate the final adversarial audio sample, where The norm penalty term introduces an optimization problem, iteratively updates variables and multipliers, and optimizes the sparsity of adversarial audio.

[0105] The third embodiment of the present invention also provides an audio sparse counter-attack device based on pitch modulation, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the audio sparse counter-attack method based on pitch modulation as described in any one of the above.

[0106] The fourth embodiment of the present invention also provides a computer-readable storage medium storing a computer program, wherein the computer program can be executed by a processor of a device where the computer-readable storage medium is located to implement the audio sparse counterattack method based on pitch modulation as described in any one of the above.

[0107] Exemplarily, the above-mentioned devices and process steps can be implemented by a computer program. The computer program can be divided into one or more units. The one or more units are stored in the memory and executed by the processor to complete the present invention.

[0108] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0109] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the present invention by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0110] Wherein, if the electronic device or printer integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0111] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0112] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for audio sparse adversarial attack based on pitch modulation, characterized in that: include: Acquire target audio, perform pitch shift processing on the target audio, and generate audio data after pitch conversion; Using voice activity detection (VAD) technology to isolate the pitch-converted audio data, only detecting and retaining segments full of speech, and generating adversarial audio; Optimize the attack, decompose the perturbation, replace the space of binary vectors that determine the perturbation position with the intersection of two continuous spaces, and use -Box ADMM optimized sparse audio attack method iteratively optimizes the adversarial audio to generate the final adversarial audio sample, where The norm penalty term introduces an optimization problem, iteratively updates variables and multipliers, and optimizes the sparsity of adversarial audio; Obtain target audio, perform pitch shift processing on the target audio, and generate audio data after pitch conversion, specifically: The target audio is obtained as the input audio x, and the input audio x is pitch-converted to obtain the frequency of the modified audio. The formula is: in, is the original frequency, is the frequency after shifting, step is the step size of pitch shifting, and bin is the number of steps in each octave; The Levenshtein distance is used as an evaluation metric to quantify the effectiveness of frequency modification and generate pitch-converted audio data, where the optimized pitch adjustment parameters are: in, is the Levenshtein distance between the first i positions of the audio recognition result a and the first j positions of the audio recognition result b, is the larger of i and j, is the smaller of i and j, and Represent the audio recognition results respectively At the positions before and after the pitch shift, a and b represent the recognition results before and after the pitch shift, respectively.

2. The method for audio sparse countermeasure attack based on pitch modulation according to claim 1, characterized in that: The Levenshtein distance is used as an evaluation metric to quantify the effect of pitch shifting. The larger the Levenshtein distance, the better the misleading effect.

3. The method for audio sparse countermeasure attack based on pitch modulation according to claim 1, characterized in that: The voice activity detection (VAD) technology is used to isolate the pitch-converted audio data, and only detect and retain segments full of voice to generate adversarial audio, specifically: Using voice activity detection (VAD) technology to isolate and process the audio data after the pitch conversion; Make two assumptions: in, and Indicates whether the detected signal is silence or sound, and Represent noise and speech signals respectively; When identified When a method involving multiple masks is introduced adversarial patch method to limit perturbations , generating adversarial audio ,in, Represents element-wise multiplication.

4. The method for audio sparse countermeasure attack based on pitch modulation according to claim 3, characterized in that: To optimize the attack, the perturbation is decomposed and the space of the binary vector that determines the perturbation position is replaced by the intersection of two continuous spaces, specifically: The adversarial audio is processed using the adversarial attack objective function, wherein the adversarial attack objective function is: in, represents the CTC loss function, is a trade-off parameter used to constrain the disturbance, is the norm that limits the disturbance amplitude, The speech recognition model to attack. The target sentence to guide the model output; Optimize the attack and disturb This breaks down into: G in, A vector representing the magnitude of the disturbance, G is a binary vector determining the location of the disturbance, satisfying , is the symbol of the real number set, is the dimension size; With two consecutive spaces The intersection of space: in, is a continuous box constraint, is a Ball constraint.

5. The method for audio sparse countermeasure attack based on pitch modulation according to claim 4, characterized in that: use -Box ADMM optimized sparse audio attack method iteratively optimizes the adversarial audio, specifically: Perform perturbation optimization. Given the space of binary vector G, optimize the perturbation vector by gradient descent. , the calculation formula is: in, and They represent the bias-corrected estimates of the first and second moments of the gradient, yes The learning rate, is a small constant added for numerical stability; Perform mask optimization, given the perturbation vector In the case of -Box ADMM method optimizes the binary vector G, and the calculation formula is: in, represents the zero rate of the mask, represents the number of non-zero points in the mask, are two additional variables, representing the box constraints and Ball Constraint , represents the trade-off parameter; By simultaneously and Assigned to , the binary vector G is optimized at the intersection of two continuous spaces; Introducing the augmented Lagrangian function ALF, the calculation formula is: in, is the augmented Lagrangian function ALF, and is the dual variable for the Lagrange multiplier, is the dual variable used to handle constraints , is the transpose symbol, , and are penalty parameters used for the quadratic penalty term in the augmented Lagrangian function. To ensure The indicator function that satisfies the box constraint, To ensure The indicator function that satisfies the ball constraint is 0 if the constraint is satisfied, otherwise ; Until the iteration is completed, the final adversarial audio sample is generated.

6. A pitch-modulated audio sparse counterattack device, used to implement the pitch-modulated audio sparse counterattack method according to claim 1, characterized in that: include: A pitch shift unit, used to obtain target audio, perform pitch shift processing on the target audio, and generate audio data after pitch conversion; A voice activity detection unit, configured to isolate and process the pitch-converted audio data using a voice activity detection (VAD) technique, and only detect and retain segments full of voice, thereby generating adversarial audio; The sparse noise generation unit is used to optimize the attack, decompose the disturbance, replace the space of binary vectors that determine the disturbance position with the intersection of two continuous spaces, and use -Box ADMM optimized sparse audio attack method iteratively optimizes the adversarial audio to generate the final adversarial audio sample, where The norm penalty term introduces an optimization problem, iteratively updates variables and multipliers, and optimizes the sparsity of adversarial audio.

7. An audio sparse countermeasure attack device based on pitch modulation, characterized in that: It includes a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the audio sparse counterattack method based on pitch modulation as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: A computer program is stored, and the computer program can be executed by a processor of the device where the computer-readable storage medium is located to implement the audio sparse counterattack method based on pitch modulation as described in any one of claims 1 to 5.