Voiceprint identity multi-defense method and system based on anonymization

By using the Softmax function and Gaussian mixture model to calculate KL divergence in the speech system, a new voiceprint feature vector is generated, which solves the problems of difficulty in distinguishing fake speech attacks and privacy leakage in the existing technology, and significantly improves defense capabilities and Security.

CN118764206AActive Publication Date: 2024-10-11WUHAN UNIV

Patent Information

Application Number
CN202410769798.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-11
Estimated Expiration
2044-06-14

Smart Images

  • Figure CN118764206A_ABST
    Figure CN118764206A_ABST
Patent Text Reader

Abstract

The invention discloses a voiceprint identity multi-defense method and system based on anonymization, and the method comprises the steps: firstly extracting voiceprint features of original voiceprint data of each speaker, converting the extracted voiceprint feature vectors of each speaker into probability distribution through a Softmax function, and forming an initial voiceprint feature library; carrying out clustering analysis on the voiceprint feature library by using a Gaussian mixture model, and selecting a clustering center with the maximum difference with the original voiceprint data; calculating the KL divergence between the probability distribution of each clustering center and the probability distribution of the original voiceprint data; and finally, calculating the weight of each clustering center according to the KL divergence of the clustering center and the original voiceprint data, and synthesizing a new voiceprint feature vector through a weighted average method. The defense effect and practicability of the system are remarkably improved through a KL divergence-based differential defense mechanism, an advanced weight initialization method and attention to privacy protection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of voiceprint recognition and security defense, and relates to a voiceprint identity multiple defense method and system based on anonymization, and in particular to a voiceprint identity multiple defense method and system that enhances privacy protection and prevents voice forgery through advanced voiceprint feature processing and analysis technology. Background Art

[0002] With the rapid development of deep neural networks and generative artificial intelligence technologies, realistic voice conversion technology has also emerged. Although these technological advances have promoted the innovation of various applications, such as smart assistants and personalized user interfaces, they have also brought security threats that cannot be ignored. Forged voices have a serious impact on social security and personal privacy.

[0003] Fake speech generation technology, especially deep learning-based text-to-speech (TTS) and voice conversion (VC) technology, has reached a highly realistic level and can imitate the voice of a specific speaker without being detected by the human ear.

[0004] Although there are numerous detection and defense technologies, existing defense methods are powerless in the face of complex and changeable attack methods. Current defense strategies are mainly divided into two types: passive defense and active defense. Passive defense mainly focuses on feature-based detection and data-based detection methods. Feature-based detection mainly analyzes the differences in biometric information in forged speech, such as speech signals, voiceprint features, and spectral distribution, and uses these differences to distinguish authenticity. For example, a detector that combines cochlear filter inverse spectral coefficients (CFCC) and instantaneous frequency variation (IF) can be used to distinguish natural speech from deceptive speech. However, this frame-by-frame feature extraction method is difficult to grasp the temporal dimension connection between data in complex forgery situations.

[0005] In contrast to passive defense, active defense strategies aim to directly intervene in the forgery process, such as by embedding digital watermarks or applying adversarial perturbations to protect sound data from being abused. Digital watermarking techniques, such as those based on discrete cosine transform (DCT) and singular value decomposition (SVD), can generate two new features, piecewise singular value sum (SSVS) and piecewise singular value difference (SSVD), to achieve robust stereo signal watermarking. Although this approach can balance fidelity and robustness to a certain extent, it has poor adaptability to shearing and time scaling, and has difficulty coping with complex sound cloning processes.

[0006] In order to more effectively address these challenges, the "Timbre Watermarking" method was proposed. This technology embeds watermark information into the timbre of the target individual and implements it through an end-to-end anti-cloning detection framework, thereby enhancing resistance to voice conversion attacks.

[0007] Although these existing methods have shown potential in increasing the difficulty of forgery and improving system security, their efficiency and feasibility in practical applications are still challenging. In particular, most defense strategies, when focusing on speech generated through forgery, may inadvertently make the voice characteristics close to those of a real but unknown third-party speaker, thereby potentially leaking the voice information of the third-party speaker. This is not only a new challenge for audio security, but also highlights the need for more precise control of voice feature adjustments to avoid inadvertent privacy leaks and new security risks. Summary of the invention

[0008] In order to solve the above technical problems, the present invention proposes a multi-defense method and system for voiceprint identity based on anonymization, which is used to protect the voiceprint characteristics of an individual during voice interaction and prevent the voiceprint data from being maliciously imitated or tampered with.

[0009] The technical solution adopted by the method of the present invention is: a multiple defense method of voiceprint identity based on anonymization, characterized in that it includes the following steps:

[0010] Step 1: First, extract the voiceprint features of the original voiceprint data of each speaker, and use the Softmax function to convert the extracted voiceprint feature vectors of each speaker into a probability distribution to form an initial voiceprint feature library;

[0011] Step 2: Use the Gaussian mixture model to perform cluster analysis on the voiceprint feature library and select the cluster center with the largest difference from the original voiceprint data;

[0012] Step 3: For each cluster center, calculate the KL divergence between its probability distribution and the probability distribution of the original voiceprint data;

[0013] Step 4: For each cluster center, calculate the weight according to its KL divergence with the original voiceprint data, and synthesize a new voiceprint feature vector by weighted average method.

[0014] As a preference, in step 1, the Softmax function is used to transform the feature vectors V of the N speakers into k Convert to probability distribution P k (x ki );

[0015]

[0016] Among them, x ki is the feature vector V of the kth speakerk The i-th element in n k is the eigenvector V k The dimension of , T is the temperature parameter.

[0017] As a preference, in step 3, the probability distribution P(x0) of the original voiceprint data x0 and the probability distribution Q(μ k ) KL (P(x0)||Q(μ k )) to measure the difference between the original voiceprint and each cluster center;

[0018]

[0019]

[0020] Among them, μ k is the mean vector of each cluster center; x 0i is the feature vector V of the protected speaker k The i-th element in μ ki is the feature vector V of the selected speaker k The i-th element in n k is the eigenvector V k The dimension of .

[0021] Preferably, in step 4, a new voiceprint feature vector is synthesized by a weighted average method, and the weight is continuously adjusted by an iterative update strategy to find the optimal weight configuration with the largest difference from the original voiceprint feature;

[0022] The specific implementation includes the following steps:

[0023] Step 4.1: Assign an initial weight to each cluster center using random initialization And regularize it so that its sum is 1;

[0024]

[0025] Among them, v k is a positive value randomly generated from a uniform or normal distribution, and K is the number of cluster centers;

[0026] Step 4.2: Calculate the weighted average voiceprint feature vector based on the weight and the KL divergence obtained in step 3

[0027]

[0028] in, is the new voiceprint feature vector in the tth iteration, μ k is the mean vector of the kth cluster center, is the weight in the tth iteration;

[0029] Step 4.3: Calculate the new voiceprint feature vector KL divergence D with the original voiceprint data x0 KL , and accordingly update the weights of each cluster center to maximize the difference between the synthesized features and the original voiceprint until the preset convergence condition is reached;

[0030]

[0031] Among them, x 0i is the feature vector V of the protected speaker k The i-th element in is the new voiceprint feature vector in the tth iteration, n k is the eigenvector V k , P(x0) is the probability distribution of the original voiceprint data x0, is the new voiceprint feature vector The probability distribution of

[0032] According to the calculation results of KL divergence, adjust the weight w k , so as to maximize the KL divergence between the original voiceprint data and the cluster center;

[0033]

[0034] in: is the weight of the kth cluster center in the tth iteration; η is the learning rate; represents the KL divergence with respect to weight w k The partial derivative of Q(μ ki ) is the probability distribution of the kth cluster center;

[0035] Step 4.4: Check the change in KL divergence Whether it is less than the set threshold ∈ is used to determine whether the algorithm has converged: if it is not less than the set threshold, return to step 4.2; if it is less than the set threshold, return the new voiceprint feature vector calculated at this time.

[0036] The technical solution adopted by the system of the present invention is: a multi-defense system based on anonymized voiceprint identity, including the following modules:

[0037] The feature extraction and probability distribution conversion module is used to first extract the voiceprint features of the original voiceprint data of each speaker, and use the Softmax function to convert the extracted voiceprint feature vectors of each speaker into probability distribution to form an initial voiceprint feature library;

[0038] The feature selection and clustering module is used to perform cluster analysis on the voiceprint feature library using a Gaussian mixture model and select the cluster center with the largest difference from the original voiceprint data;

[0039] The KL divergence calculation module is used to calculate the KL divergence between the probability distribution of each cluster center and the probability distribution of the original voiceprint data;

[0040] The voiceprint feature vector synthesis module is used to calculate the weight of each cluster center according to its KL divergence with the original voiceprint data, and synthesize a new voiceprint feature vector through the weighted average method.

[0041] Preferably, the feature extraction and probability distribution conversion module uses a Softmax function to convert the feature vectors V of the N speakers into k Convert to probability distribution P k (x ki );

[0042]

[0043] Among them, x ki is the feature vector V of the kth speaker k The i-th element in n k is the eigenvector V k The dimension of , T is the temperature parameter.

[0044] Preferably, the KL divergence calculation module calculates the probability distribution P(x0) of the original voiceprint data x0 and the probability distribution Q(μ k ) KL (P(x0)||Q(μ k )) to measure the difference between the original voiceprint and each cluster center;

[0045]

[0046] Among them, μ k is the mean vector of each cluster center; x 0i is the feature vector V of the protected speaker k The i-th element in μ ki is the feature vector V of the selected speaker k The i-th element in n k is the eigenvector V k The dimension of .

[0047] Preferably, the voiceprint feature vector synthesis module synthesizes a new voiceprint feature vector by a weighted average method, and continuously adjusts the weights by an iterative update strategy to find the optimal weight configuration with the largest difference from the original voiceprint feature;

[0048] Specifically includes the following sub-modules:

[0049] Submodule 1 is used to assign an initialization weight to each cluster center using random initialization And regularize it so that its sum is 1;

[0050]

[0051] Among them, v k is a positive value randomly generated from a uniform or normal distribution, and K is the number of cluster centers;

[0052] Submodule 2 is used to calculate the weighted average voiceprint feature vector based on the weight and KL divergence obtained in the KL divergence calculation module

[0053]

[0054] in, is the new voiceprint feature vector in the tth iteration, μ k is the mean vector of the kth cluster center, is the weight in the tth iteration;

[0055] Submodule 3, used to calculate the new voiceprint feature vector KL divergence D with the original voiceprint data x0 KL , and accordingly update the weights of each cluster center to maximize the difference between the synthesized features and the original voiceprint until the preset convergence condition is reached;

[0056]

[0057] Among them, x 0i is the feature vector V of the protected speaker k The i-th element in is the new voiceprint feature vector in the tth iteration, n k is the eigenvector V k , P(x0) is the probability distribution of the original voiceprint data x0, is the new voiceprint feature vector The probability distribution of

[0058] According to the calculation results of KL divergence, adjust the weight w k , so as to maximize the KL divergence between the original voiceprint data and the cluster center;

[0059]

[0060] in: is the weight of the kth cluster center in the tth iteration; η is the learning rate, represents the KL divergence with respect to weight w k The partial derivative of Q(μ ki ) is the probability distribution of the kth cluster center;

[0061] Submodule 4, used to check the change of KL divergence Whether it is less than the set threshold ∈ is used to determine whether the algorithm has converged: if it is not less than the set threshold, it returns to the execution submodule 2; if it is less than the set threshold, it returns the new voiceprint feature vector calculated at this time.

[0062] Compared with the prior art, the beneficial effects of the present invention include:

[0063] 1. The present invention enhances the security of the voice system by calculating and maximizing the KL divergence between the original voiceprint and the forged voiceprint. KL divergence is an effective method for measuring the difference in probability distributions, which can quantify the information difference between two distributions. By maximizing the KL divergence, it can be ensured that there is a significant difference between the forged voiceprint and the original voiceprint, making it difficult for attackers to imitate or tamper with the voiceprint data, significantly improving the system's defense capabilities.

[0064] 2. The present invention uses random initialization and regularization technology when initializing weights to make the initial weight distribution more reasonable. The initial weights are randomly generated from uniform distribution or normal distribution and regularized to ensure that the sum of the weights is 1. This method avoids the local optimal problem caused by unreasonable weight initialization, optimizes the effect of weight adjustment during the iteration process, and improves the stability and convergence speed of the algorithm.

[0065] 3. The present invention finds the optimal weight configuration that maximizes the KL divergence by continuously iterating and optimizing the weight configuration. The gradient ascent method or other optimization algorithms are used to dynamically adjust the weights to maximize the difference between the original voiceprint and the synthesized voiceprint. This method ensures the optimization effect during the iteration process, so that the final generated adversarial audio has the greatest difference, thereby improving the defense effect.

[0066] 4. The present invention further ensures the comprehensiveness of privacy protection and defense by adjusting the voiceprint features to avoid being close to the voice characteristics of any other actual speakers. This method maximizes the KL divergence while maintaining the uniqueness and unrecognizable nature of the voiceprint features. This method not only improves the security of the system, but also effectively protects the privacy of users and prevents personal voiceprint data from being abused or leaked. By ensuring that the adjusted voiceprint features do not overlap with the voice characteristics of other speakers, forgery attacks and identity fraud can be prevented. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] The technical solution of the present invention is further described below using embodiments and specific implementation methods. In addition, in the process of describing the technical solution, some drawings are also used. For those skilled in the art, other drawings and the intention of the present invention can also be obtained based on these drawings without paying creative work.

[0068] Figure 1 It is a flow chart of a method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0069] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0070] Please see Figure 1 The present embodiment provides a multi-defense method for voiceprint identity based on anonymization, comprising the following steps:

[0071] Step 1: First, extract the voiceprint features of the original voiceprint data of each speaker, and use the Softmax function to convert the extracted voiceprint feature vectors of each speaker into a probability distribution to form an initial voiceprint feature library;

[0072] In one embodiment, the specific implementation of step 1 includes the following sub-steps:

[0073] S101: Process the entire audio data set and divide the continuous voiceprint data of N speakers into a series of short time frames. Perform necessary preprocessing on each frame, including denoising and normalization. The original signal is s(t), and the preprocessed signal is expressed as Where t represents the time index.

[0074] Denoising: Use filters to remove noise from the signal, for example:

[0075]

[0076] in is the estimated noise signal.

[0077] Normalization: Normalize each frame so that the signal amplitude is within a certain range, such as:

[0078]

[0079] Where μ and σ are the mean and standard deviation of the signal respectively.

[0080] S102: Extract voiceprint feature vectors from each preprocessed frame and generate a representative feature vector for each speaker. This embodiment uses Mel Frequency Cepstral Coefficients (MFCC):

[0081] MFCC = DCT(log(Mel(s)));

[0082] Where DCT stands for discrete cosine transform, and Mel means converting the spectrum into Mel frequencies.

[0083] The specific steps are:

[0084] Framing: The pre-processed signal Divide into overlapping short-time frames, each frame length is N, the frame shift is M, that is:

[0085]

[0086] Windowing: Multiply each frame of signal by a window function w(n). Here, the Hamming window is selected in this embodiment to reduce spectrum leakage:

[0087]

[0088] Fourier transform: Perform a fast Fourier transform (FFT) on each windowed frame to obtain the spectrum:

[0089]

[0090] Mel filter bank: Pass the spectrum through the Mel filter bank to get the Mel spectrum:

[0091]

[0092] Among them, H k (f) is the frequency response of the kth Mel filter.

[0093] Logarithmic operation: Take the logarithm of the Mel spectrum:

[0094] log(Mel n (f)) = log(Mel n (f));

[0095] Discrete cosine transform: Perform discrete cosine transform on the logarithmic Mel spectrum to obtain the MFCC feature vector:

[0096] MFCC n =DCT(log(Mel n (f)))

[0097] S103: Use the Softmax function to transform the feature vectors V of N speakers k(where k represents the index of the speaker) is converted into a probability distribution. This facilitates comprehensive analysis and comparison using KL divergence in subsequent steps:

[0098]

[0099] where x ki is the feature vector V of speaker k k The i-th element in n k is the dimension of the vector, and T is the temperature parameter, which is set to 0.1 in this embodiment to adjust the sensitivity of the Softmax function to make it more suitable for capturing subtle differences in features.

[0100] Step 2: Use the Gaussian mixture model to perform cluster analysis on the voiceprint feature library and select the cluster center with the largest difference from the original voiceprint data;

[0101] In one embodiment, the specific sub-steps of step 2 are as follows:

[0102] S201: Define the GMM model. This embodiment uses the voiceprint feature library obtained in S103, which contains N feature vectors after Softmax conversion:

[0103] P={P(x1),P(x2),...,P(x N )};

[0104] Define the probability density function of the GMM model:

[0105]

[0106] Among them, π k is the mixing coefficient of the kth Gaussian distribution, Indicates that the mean is μ k , the covariance is Σ k Gaussian distribution.

[0107] S203: Train the GMM model and randomly initialize the mixing coefficient π k , mean vector μ k and the covariance matrix Σ k .

[0108]

[0109] Where α is the parameter of the Dirichlet distribution, μ0 and Σ0 are the initial values ​​of the mean and covariance matrix, respectively.

[0110] The EM algorithm is used to iteratively update the GMM parameters until the parameters converge to the optimal solution.

[0111] Step E (expectation):

[0112]

[0113] Among them, γ ik Represents the sample P(x i ) belongs to the expectation of the k-th Gaussian distribution.

[0114] M step (maximization step):

[0115]

[0116] Repeat the E and M steps until the parameter changes meet the convergence conditions:

[0117] |L (t+1) -L (t) |<∈;

[0118] Among them, L (t) is the log-likelihood of the t-th iteration, ∈ is the convergence threshold, set to 10 -4 .

[0119] Step 3: For each cluster center, calculate the KL divergence between its probability distribution and the probability distribution of the original voiceprint data; this calculation helps quantify the information differences between different voiceprints and provides a scientific basis for feature selection.

[0120] In one embodiment, the probability distribution P(x0) of the original voiceprint data x0 and the probability distribution Q(μ k ) KL (P(x0)||Q(μ k )) to measure the difference between the original voiceprint and each cluster center;

[0121]

[0122] Among them, μ k is the mean vector of each cluster center; x 0i is the feature vector V of the protected speaker k The i-th element in μ ki is the feature vector V of the selected speaker k The i-th element in n k is the eigenvector V k The dimension of .

[0123] Step 4: For each cluster center, calculate the weight based on its KL divergence with the original voiceprint data, and synthesize a new voiceprint feature vector through the weighted average method. This step is the core of the practical application of the entire defense strategy, and aims to provide a sufficiently anonymous feature learning direction for subsequent adversarial audio generation. And through the iterative update strategy, the weight is continuously adjusted to find the optimal weight configuration with the largest gap with the original voiceprint feature.

[0124] In one embodiment, a new voiceprint feature vector is synthesized by a weighted average method, and the weight is continuously adjusted through an iterative update strategy to find the optimal weight configuration with the largest difference from the original voiceprint feature;

[0125] The specific implementation includes the following steps:

[0126] Step 4.1: Assign an initial weight to each cluster center using random initialization And regularize it so that its sum is 1;

[0127]

[0128] Among them, v k is a positive value randomly generated from a uniform or normal distribution, and K is the number of cluster centers;

[0129] Step 4.2: Calculate the weighted average voiceprint feature vector based on the weight and the KL divergence obtained in step 3

[0130]

[0131] in, is the new voiceprint feature vector in the tth iteration, μ k is the mean vector of the kth cluster center, is the weight in the tth iteration;

[0132] Step 4.3: Calculate the new voiceprint feature vector KL divergence D with the original voiceprint data x0 KL , and accordingly update the weights of each cluster center to maximize the difference between the synthesized features and the original voiceprint until the preset convergence condition is reached;

[0133]

[0134] Among them, x 0i is the feature vector V of the protected speaker k The i-th element in is the new voiceprint feature vector in the tth iteration, n k is the eigenvector V k , P(x0) is the probability distribution of the original voiceprint data x0, is the new voiceprint feature vector The probability distribution of

[0135] According to the calculation results of KL divergence, adjust the weight w k , so as to maximize the KL divergence between the original voiceprint data and the cluster center;

[0136]

[0137] in: is the weight of the kth cluster center in the tth iteration; η is the learning rate, which is set to 0.01; represents the KL divergence with respect to weight w k The partial derivative of Q(μ ki ) is the probability distribution of the kth cluster center;

[0138] Step 4.4: Check the change in KL divergence Whether it is less than the set threshold ∈ is used to determine whether the algorithm has converged: if it is not less than the set threshold, return to step 4.2; if it is less than the set threshold, return the new voiceprint feature vector calculated at this time.

[0139] This embodiment also provides a multi-defense system for voiceprint identity based on anonymization, including the following modules:

[0140] The feature extraction and probability distribution conversion module is used to first extract the voiceprint features of the original voiceprint data of each speaker, and use the Softmax function to convert the extracted voiceprint feature vectors of each speaker into probability distribution to form an initial voiceprint feature library;

[0141] The feature selection and clustering module is used to perform cluster analysis on the voiceprint feature library using a Gaussian mixture model and select the cluster center with the largest difference from the original voiceprint data;

[0142] The KL divergence calculation module is used to calculate the KL divergence between the probability distribution of each cluster center and the probability distribution of the original voiceprint data;

[0143] The voiceprint feature vector synthesis module is used to calculate the weight of each cluster center according to its KL divergence with the original voiceprint data, and synthesize a new voiceprint feature vector through the weighted average method.

[0144] The present invention is further described below through experiments.

[0145] In order to prove the anti-cloning capability of the present invention (the difference between the cloned voice after defense and the original voice, in principle, the larger the better), the Defend index is used to quantify the anti-cloning capability.

[0146] (1) Defense success rate Defend;

[0147] In order to maximize the difference between the original speech and the synthesized speech obtained by inputting the defense speech into the speech cloning model, so as to make it impossible to synthesize the voice of the correct target speaker, the defense success rate Defend is defined to measure the difference between the two.

[0148] When calculating Defend, we first calculate the cosine similarity of the feature vectors between the original speech and the synthetic speech generated by the defense speech through the speech cloning model, and then take the complement of the similarity (i.e. 1 minus the similarity value). The calculation formula is as follows:

[0149]

[0150] in, and Represents the feature vectors of the original speech and the defense speech synthesized by the cloning model. This formula quantifies the similarity between two vectors by calculating the cosine angle between them. For this similarity, we hope that the lower the better, the higher the Defend will be.

[0151] Please see Table 1. After relevant research, VCTK, LibriSpeech, and TIMIT datasets were selected for testing. This experiment randomly extracts speech from the data sample library. The custom dataset includes 90 speakers, 30 speakers in each source corpus, and 5 short (3-4s) to long (6-7s) speech samples for each speaker.

[0152] VCTK: The CSTR VCTK dataset contains more than 44 hours of speech data generated by 109 English speakers with various accents. The recorded phrases come from different text materials, including newspapers, language texts, and phonetically rich sentences.

[0153] LibriSpeech: LibriSpeech is a large corpus containing approximately 1,000 hours of English speech. This experiment uses the test-clean subset, which contains spoken phrases from 40 English speakers.

[0154] TIMIT: TIMIT consists of recordings of 630 speakers from eight major dialects of American English, each reading 10 phonetically rich sentences.

[0155] Table 1: VCTK, LibriSpeech, TIMIT datasets

[0156]

[0157] As shown in Table 1 above, the selected speech samples cover a comprehensive set of speech contents, sample lengths, and speakers with a wide range of genders, age groups, regions, and accents.

[0158] In order to verify the anti-cloning ability of the present invention, this experiment uses YourTTS and StyleTTS as test models.

[0159] YourTTS (ICML 2022): YourTTS is a zero-shot multi-speaker TTS system with multi-language capabilities, launched in 2022. It consists of three main components: the H / ASP model as the speaker encoder, the custom VITS model as the decoder, and HiFi-GAN as the vocoder. It is the first time that a multi-language approach has been applied to zero-shot multi-speaker voice cloning technology.

[0160] StyleTTS2 (NIPS2023): StyleTTS2 is a text-to-speech (TTS) model that leverages diffusion and adversarial training of speech attributes (intonation, timbre, emotion) combined with a large speech language model. Unlike its predecessor, StyleTTS2 models speech attributes as latent random variables through a diffusion model to generate a style that best fits the text. StyleTTS2 outperforms human recordings on the single-speaker LJSpeech dataset and is comparable to them on the multi-speaker VCTK dataset, with recognition from native English speakers. In addition, when trained on the LibriTTS dataset, the model outperforms the previously publicly available Zero-shot speaker adaptation model.

[0161] In this experiment, the new voiceprint feature vector obtained by the above method is used as the target speech. The embedding loss is introduced in the model training process. The main purpose of this loss function is to minimize the difference between the voiceprint embedding of the generated speech and the target speech embedding. In adversarial voice generation, this loss ensures that the generated speech can effectively imitate the target speech in terms of voiceprint features, and deliberately generates speech that is different from the original speech voiceprint but similar to the target speech voiceprint.

[0162] The voiceprint embedding vectors of the generated speech and the target speech are set to e adv and e tgt Using these two vectors, this experiment defines the embedding loss L emb As the sum of squared Euclidean distances between vectors:

[0163]

[0164] Where n represents the dimension of the embedding vector, and e adv [i] and e tgt [i] is the element of the two vectors in the i-th dimension.

[0165] This ensures the anti-cloning ability of the present invention.

[0166] This experiment uses emb attack and AntiFake active defense methods as baselines.

[0167] In order to remove the impact caused by the defects of the synthesis model itself, this experiment compares the original speech through the YourTTS and StyleTTS models to generate cloned speech (which should be similar to the original speech at this time) and the speech generated by the cloned model after adding defense in this experiment to obtain the corresponding Defend indicator value, see Table 2.

[0168] Table 2: Defend indicators

[0169] Method YourTTS StyleTTS none 6.78% 5.42% emb attack 65.18% 56.28% AntiFake 79.24% 73.72% ours 87.75% 85.83%

[0170] The present invention effectively enhances the security and defense capability of the voice system by changing the probability distribution of voiceprint features and using KL divergence to measure and increase the difference between the original voiceprint and the forged voiceprint. In addition, the present invention also takes into account the fact that the adjusted voiceprint is not close to the voice characteristics of any other actual speaker, further ensuring the comprehensiveness of privacy protection and defense.

[0171] It should be understood that the embodiments described above are part of the embodiments of the present invention, rather than all of the embodiments. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be combined with each other arbitrarily to form a feasible technical solution. Such combination is not restricted by the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the protection scope required by the present invention.

[0172] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.

Claims

1. A multi-defense method for voiceprint identity based on anonymization, characterized in that: The following steps are involved: Step 1: First, extract the voiceprint features of the original voiceprint data of each speaker, and use the Softmax function to convert the extracted voiceprint feature vectors of each speaker into a probability distribution to form an initial voiceprint feature library; Step 2: Use the Gaussian mixture model to perform cluster analysis on the voiceprint feature library and select the cluster center with the largest difference from the original voiceprint data; Step 3: For each cluster center, calculate the KL divergence between its probability distribution and the probability distribution of the original voiceprint data; Step 4: For each cluster center, calculate the weight according to its KL divergence with the original voiceprint data, and synthesize a new voiceprint feature vector by weighted average method.

2. The multi-defense method for voiceprint identity based on anonymization according to claim 1 is characterized by: In step 1, the Softmax function is used to transform the feature vectors V of N speakers k Convert to probability distribution P k (x ki ); Among them, x ki is the feature vector V of the kth speaker k The i-th element in n k is the eigenvector V k The dimension of , T is the temperature parameter.

3. The multiple defense method for voiceprint identity based on anonymization according to claim 1 is characterized by: In step 3, the probability distribution P(x0) of the original voiceprint data x0 and the probability distribution Qμ of each cluster center are calculated k ) KL (P(x0)∥Q(μ k )) to measure the difference between the original voiceprint and each cluster center; Among them, μ k is the mean vector of each cluster center; 0i is the feature vector V of the protected speaker k The i-th element in μ ki is the feature vector V of the selected speaker k The i-th element in n k is the eigenvector V k The dimension of .

4. The multi-defense method for voiceprint identity based on anonymization according to any one of claims 1 to 3, characterized in that: In step 4, a new voiceprint feature vector is synthesized by weighted average method, and the weight is continuously adjusted through iterative update strategy to find the optimal weight configuration with the largest difference from the original voiceprint feature; The specific implementation includes the following steps: Step 4.1: Assign an initial weight to each cluster center using random initialization And regularize it so that its sum is 1; Among them, v k is a positive value randomly generated from a uniform or normal distribution, and K is the number of cluster centers; Step 4.2: Calculate the weighted average voiceprint feature vector based on the weight and the KL divergence obtained in step 3 in, is the new voiceprint feature vector in the tth iteration, μ k is the mean vector of the kth cluster center, is the weight in the tth iteration; Step 4.3: Calculate the new voiceprint feature vector KL divergence D with the original voiceprint data x0 KL , and accordingly update the weights of each cluster center to maximize the difference between the synthesized features and the original voiceprint until the preset convergence condition is reached; Among them, x 0i is the feature vector V of the protected speaker k The i-th element in is the new voiceprint feature vector in the tth iteration, n k is the eigenvector V k , P(x0) is the probability distribution of the original voiceprint data x0, is the new voiceprint feature vector The probability distribution of According to the calculation results of KL divergence, adjust the weight w k , so as to maximize the KL divergence between the original voiceprint data and the cluster center; in: is the weight of the kth cluster center in the tth iteration; η is the learning rate, represents the KL divergence with respect to weight w k The partial derivative of ki ) is the probability distribution of the kth cluster center; Step 4.4: Check the change in KL divergence Whether it is less than the set threshold ∈ is used to determine whether the algorithm has converged: if it is not less than the set threshold, return to step 4.2; if it is less than the set threshold, return the new voiceprint feature vector calculated at this time.

5. A multi-defense system for voiceprint identity based on anonymization, characterized in that: Includes the following modules: The feature extraction and probability distribution conversion module is used to first extract the voiceprint features of the original voiceprint data of each speaker, and use the Softmax function to convert the extracted voiceprint feature vectors of each speaker into probability distribution to form an initial voiceprint feature library; The feature selection and clustering module is used to perform cluster analysis on the voiceprint feature library using a Gaussian mixture model and select the cluster center with the largest difference from the original voiceprint data; The KL divergence calculation module is used to calculate the KL divergence between the probability distribution of each cluster center and the probability distribution of the original voiceprint data; The voiceprint feature vector synthesis module is used to calculate the weight of each cluster center according to its KL divergence with the original voiceprint data, and synthesize a new voiceprint feature vector through the weighted average method.

6. The anonymized voiceprint identity multi-defense system according to claim 5 is characterized by: The feature extraction and probability distribution conversion module uses the Softmax function to convert the feature vectors V of N speakers k Convert to probability distribution P k (x ki ); Among them, x ki is the feature vector V of the kth speaker k The i-th element in n k is the eigenvector V k The dimension of , T is the temperature parameter.

7. The multi-defense system for voiceprint identity based on anonymization according to claim 5, characterized in that: The KL divergence calculation module calculates the probability distribution P(x0) of the original voiceprint data x0 and the probability distribution Qμ of each cluster center k ) KL (P(x0)∥Q(μ k )) to measure the difference between the original voiceprint and each cluster center; Among them, μ k is the mean vector of each cluster center; 0i is the feature vector V of the protected speaker k The i-th element in μ ki is the feature vector V of the selected speaker k The i-th element in n k is the eigenvector V k The dimension of .

8. The anonymized voiceprint identity multi-defense system according to any one of claims 5 to 7, characterized in that: The voiceprint feature vector synthesis module synthesizes a new voiceprint feature vector by a weighted average method, and continuously adjusts the weights through an iterative update strategy to find the optimal weight configuration with the largest difference from the original voiceprint feature; specific Includes the following submodules: Submodule 1 is used to assign an initialization weight to each cluster center using random initialization And regularize it so that its sum is 1; Among them, v k is a positive value randomly generated from a uniform or normal distribution, and K is the number of cluster centers; Submodule 2 is used to calculate the weighted average voiceprint feature vector based on the weight and KL divergence obtained in the KL divergence calculation module in, is the new voiceprint feature vector in the tth iteration, μ k is the mean vector of the kth cluster center, is the weight in the tth iteration; Submodule 3, used to calculate the new voiceprint feature vector KL divergence D with the original voiceprint data x0 KL , and accordingly update the weights of each cluster center to maximize the difference between the synthesized features and the original voiceprint until the preset convergence condition is reached; Among them, x 0i is the feature vector V of the protected speaker k The i-th element in is the new voiceprint feature vector in the tth iteration, n k is the eigenvector V k , P(x0) is the probability distribution of the original voiceprint data x0, is the new voiceprint feature vector The probability distribution of According to the calculation results of KL divergence, adjust the weight w k , so as to maximize the KL divergence between the original voiceprint data and the cluster center; in: is the weight of the kth cluster center in the tth iteration; η is the learning rate, represents the KL divergence with respect to weight w k The partial derivative of ki ) is the probability distribution of the kth cluster center; Submodule 4, used to check the change of KL divergence Whether it is less than the set threshold ∈ is used to determine whether the algorithm has converged: if it is not less than the set threshold, it returns to the execution submodule 2; if it is less than the set threshold, it returns the new voiceprint feature vector calculated at this time.

Citation Information

Patent Citations

  • Voiceprint identification method based on Gauss mixing model and system thereof

    CN102324232A

  • Clustering method, incremental clustering method and related device

    CN103902689A

  • Speaker reidentification method and system

    CN107358947A

  • Voiceprint recognition attack defense method based on cuckoo search algorithm

    CN110610708A

  • Method and system for generating cryptographic keys associated with biological extraction data

    US20240073012A1

Cited By

  • Speech synthesis method and device based on reference speech, and electronic equipment

    CN119694290A