Smart home voice assistant emotion privacy protection device based on adversarial learning

By using a voice assistant emotional privacy protection device based on adversarial learning in smart homes, combined with a generative adversarial network and a multi-layer threshold residual network, the problem of reduced voice utility and privacy leakage caused by voice emotional privacy protection in the existing technology is solved. It achieves more accurate and natural voice emotion conversion, maintains the effectiveness of voice attributes, and provides more effective privacy protection.

CN118588060APending Publication Date: 2024-09-03XIAMEN DNAKE INTELLIGENT TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410815543.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing smart home voice emotion privacy protection methods, while ensuring privacy, lead to a reduction in voice utility, and there is a risk of privacy leakage due to the high accuracy of deep neural network inference of protected voice data attributes.

Method used

A smart home voice assistant emotional privacy protection device based on adversarial learning is adopted. Through voice data reception, feature extraction and normalization, desensitized Mel spectrum feature generation and voice regeneration, it combines generative adversarial network (GAN) and multi-layer threshold residual Difference network, design multi-task loss function, dynamically adjust neural network parameters, achieve desensitization of emotional characteristics and retention of speech attributes.

Benefits of technology

It significantly improves the accuracy and naturalness of voice emotion conversion, while maintaining the effectiveness of other attributes of the original voice, reducing the risk of privacy leakage, and providing more effective voice emotion privacy protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118588060A
    Figure CN118588060A
Patent Text Reader

Abstract

The invention relates to the technical field of smart home, in particular to a smart home voice assistant emotion privacy protection device based on adversarial learning, which comprises the following modules: a voice data receiving module, a voice feature conversion module, a desensitization Mel spectrum feature generation module and a voice generation module. The analysis and conversion of the device on the emotional characteristics in the voice are greatly improved; a multi-task loss function is adopted during loss function design, different weights are adopted for loss functions such as distortion loss, antagonism loss and identity loss, and parameters of a neural network model are dynamically adjusted, so that emotional attributes are desensitized, and the effectiveness of other attributes of voice can be effectively reserved. In conclusion, by means of the method, voice emotion conversion can be more accurate and more natural, and effectiveness of other original attributes can be kept. The method can be widely applied to the voice emotion privacy protection field of smart home and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home technology, and in particular to a smart home voice assistant emotion privacy protection device based on adversarial learning. Background Art

[0002] With the rapid development of artificial intelligence and deep learning technologies, speech recognition and processing technologies are increasingly widely used in the field of smart homes, becoming one of the core technologies of modern smart life. Smart home systems control home facilities such as lighting, voice assistants, and robots through voice commands, greatly improving the convenience and comfort of home life. However, with the popularization of smart home devices, users' voice interactions not only contain content information such as operating instructions, but also contain a large amount of personal attribute information, such as emotional state, gender, identity and other sensitive data. How to effectively protect users' voice privacy, such as emotional privacy, while ensuring the functionality and convenience of smart home systems has become a major challenge facing the current smart home security field. We need to explore efficient privacy protection mechanisms to ensure the privacy of users in smart home environments, thereby promoting the healthy development and widespread application of smart home technologies.

[0003] In this context, voice conversion technology has become a possible solution. Voice conversion is a technology that can change certain characteristics of speech (such as the identity of the speaker, voice quality, pitch, volume, and emotion) while retaining other characteristics (such as the content of the speech). If we can change the emotional characteristics of speech while retaining the content of the speech, it is possible to protect the privacy of speech emotions.

[0004] However, existing speech emotion privacy protection methods have two main limitations: 1) While achieving privacy protection, the speech utility of the protected speech is significantly reduced. 2) Due to insufficient privacy protection performance, deep neural networks can perform sensitive attribute inference on protected speech data and have high accuracy in attribute prediction, which poses a risk of privacy leakage. Summary of the invention

[0005] 1. Technical issues to be resolved In view of the deficiencies in the prior art, the present invention provides an emotional privacy protection device for a smart home voice assistant based on adversarial learning.

[0006] (II) Technical solution To achieve the above object, the present invention provides the following technical solution: a smart home voice assistant emotion privacy protection device based on adversarial learning, the device comprising the following modules: A voice data receiving module is used to receive the voice data that the voice assistant will forward to the cloud storage and store the data; The speech feature conversion module is used to extract and normalize the speech data and convert it into Mel spectrum features; The desensitized Mel-spectrogram feature generation module uses the pre-trained generator unit and takes the target emotion feature and Mel-spectrogram feature as input to generate the desensitized Mel-spectrogram feature; The speech generation module is used to convert the generated Mel-spectrogram features into speech after denormalization and send them to the cloud storage.

[0007] Preferably, the speech feature conversion module extracts features and normalizes the speech stored in the speech data receiving module, and the specific steps are: 1) applying a pre-emphasis filter to the original speech signal; 2) dividing the continuous speech signal into short time frames; 3) using a Hamming window to window each frame; 4) applying a fast Fourier transform to the data of each frame; 5) using a Mel filter for the transformation result; 6) taking the logarithm of the energy obtained by the Mel filter; 7) applying a discrete cosine transform (DCT) to the output of the Mel filter; 8) using normalization for the DCT transformation result.

[0008] Preferably, the speech target emotion generation module uses uniform random selection of target emotions instead of normal distribution to ensure that each emotion has an equal probability of being randomly selected, thereby avoiding deviations based on the actual distribution of emotions, thereby effectively avoiding distribution inference attacks.

[0009] Preferably, the desensitized speech feature generation module is a generator pre-trained using a generative adversarial network (GAN) based on adversarial learning theory. By optimizing the training strategy and loss function of GAN, the quality of speech and the accuracy of speaker recognition are maintained under the premise of emotional conversion. In the pre-trained generator, during the training process, the generator network adopts a U-Net structure to replace the emotional features and reconstruct the original spectrogram. Secondly, a multi-layer threshold residual network is added to the bottleneck layer of the generator to improve the quality of speech reproduction and optimize the generator's understanding of the long-term and short-term connections of speech, so that the generated speech is more natural and real. The discriminator network adopts an AlexNet structure to distinguish the generated emotional features from the real emotional features and the real spectrogram from the generated spectrogram. The total loss function is composed of a generator loss and a discriminator loss. The generator loss () is composed of a mean square error loss () between the original spectrogram and the generated spectrogram, a cross entropy loss () between the emotional label of the original spectrum and the emotional label of the generated spectrum, and a cosine similarity loss () between the speaker label of the generated spectrum and the original speaker label of the pre-trained speaker recognition classifier. The discriminator loss () is composed of the cross entropy loss () between the emotion label of the original spectrum and the original emotion label and the cross entropy loss () between the emotion label of the generated spectrum and the target label. These losses can be expressed as follows:

[0010] Where x is the original Mel spectrum feature; s is the original emotion label; s' is the target emotion label, z is a noise vector that follows a normal distribution; and s is the predicted probability of the pre-trained speaker matcher for the generated Mel spectrum feature belonging to the true label s. The pre-trained speaker matcher uses the Alex architecture to modify according to the speaker classification goal, and then trains on the dataset to obtain an accurate and efficient speaker matcher, which then participates in the training of the generator. For speaker feature retention, the hiding of emotions and the utility retention of other attributes can be greatly improved.

[0011] The present invention further provides a use process of a smart home voice assistant emotion privacy protection device based on adversarial learning, which process includes the following steps: S1, data reception: the voice assistant receives voice data and forwards it to the voice data receiving module, which receives and stores the voice data; S2, speech to Mel spectrum feature conversion: the speech feature conversion module extracts features from the speech data stored in the speech receiving module and normalizes them to generate original Mel spectrum features; S3, target emotion feature generation: using the speech target emotion generation module, randomly and uniformly generate target emotion features; S4, generating desensitized Mel spectrum features: inputting the target emotion features and the original Mel spectrum features into the desensitized speech feature generation module to generate desensitized Mel spectrum features; S5, generate desensitized speech: input the desensitized Mel spectrum features into the speech generation module, generate desensitized speech and forward it to the cloud storage.

[0012] (III) Beneficial effects Compared with the prior art, the present invention provides a smart home voice assistant emotion privacy protection device based on adversarial learning, which has the following beneficial effects: The emotional privacy protection device for smart home voice assistants based on adversarial learning utilizes a generative adversarial network combined with speech characteristics to greatly improve the device's ability to parse and convert emotional features in speech; a multi-task loss function is used in the loss function design, and different weights are used for loss functions such as distortion loss, adversarial loss, and identity loss, dynamically adjusting the parameters of the neural network model so that in addition to desensitizing emotional attributes, the utility of other attributes of speech can also be achieved. In summary, the use of the present invention can make speech emotion conversion more accurate and natural, and can maintain the utility of other original attributes. The present invention can be widely used in the field of speech emotion privacy protection such as smart homes. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is the overall framework diagram of the threat model; Figure 2 A schematic diagram of the device is provided; Figure 3 This is a flowchart of the training framework; Figure 4 A flowchart of the training process. DETAILED DESCRIPTION

[0014] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0015] See also Figure 1-4 : See also Figure 1 , shown is the overall framework diagram of the threat model faced by the present invention: it illustrates the attribute reasoning attack process of the malicious entity on the non-desensitized speech in the speech system. The malicious entity extracts the user's sensitive attributes through the attribute reasoning classifier, thereby exposing the user to the risk of privacy leakage.

[0016] For device configuration, see Figure 2 A device composition diagram of a smart home voice assistant emotion privacy protection device based on adversarial learning, the device includes the following modules: A voice data receiving module is used to receive the voice data that the voice assistant will forward to the cloud storage and store the data; The speech feature conversion module is used to extract and normalize the speech data and convert it into Mel spectrum features; The desensitized Mel-spectrogram feature generation module uses the pre-trained generator unit and takes the target emotion feature and Mel-spectrogram feature as input to generate the desensitized Mel-spectrogram feature; The speech generation module is used to convert the generated Mel-spectrogram features into speech after denormalization and send them to the cloud storage.

[0017] The device comprises the following steps: S1, data reception: the voice assistant receives voice data and forwards it to the voice data receiving module, which receives and stores the voice data; S2, speech to Mel spectrum feature conversion: the speech feature conversion module extracts features from the speech data stored in the speech receiving module and normalizes them to generate original Mel spectrum features; S3, target emotion feature generation: using the speech target emotion generation module, randomly and uniformly generate target emotion features; S4, generating desensitized Mel spectrum features: inputting the target emotion features and the original Mel spectrum features into the desensitized speech feature generation module to generate desensitized Mel spectrum features; S5, generate desensitized speech: input the desensitized Mel spectrum features into the speech generation module, generate desensitized speech and forward it to the cloud storage.

[0018] For training framework design, see Figure 3 The training framework flow chart. For the input original speech, the Mel spectrum features of the speech are obtained after pre-processing steps such as pre-emphasis, framing, windowing, Fourier transform, Mel filter, logarithm and DCT transform. For each set of data, the Mel spectrum features, noise that follows the normal distribution and the target emotion are input into the generator to generate new Mel spectrum features, and then the results are input into the discriminator and speaker classifier to calculate the loss. The loss of the generator consists of three parts: distortion loss, comma adversarial loss and speaker loss. The design goal is to protect the privacy of the data by minimizing the distortion loss while maximizing the adversarial loss. We use the mean square error between the original Mel spectrum features and the generated spectrum features as the distortion loss; the adversarial loss is based on the cross entropy loss between the discriminator's emotion prediction of the original Mel spectrum and the target emotion; the speaker loss is based on the cosine similarity between the speaker label of the original Mel spectrum and the classification result of the speaker classifier for the generated Mel spectrum features. The discriminator loss consists of two parts: the real loss and the false loss. The purpose of the design is to optimize the discriminator to accurately distinguish the original Mel spectrum features and the emotional labels of the generated Mel spectrum. The real loss is composed of the cross entropy loss between the discriminator's prediction of the original Mel spectrum features and the true emotional label; the false loss is composed of the cross entropy loss between the discriminator's prediction of the generated Mel spectrum features and the target emotion. The generator and the discriminator are trained adversarially in turn to achieve the goals of privacy protection and utility preservation. The loss function can be defined as follows:

[0019] For the training process, see Figure 4Flowchart of the training process. For the training process, the speech data is first preprocessed to obtain the original Mel-feature spectrum features, and the data is loaded through the data loader to obtain the data label. Before the start of each training cycle, the gradients of the generator and discriminator are cleared, and then the data is input into the generator and discriminator to obtain the data output. The generator and discriminator calculate the loss based on the output and calculate the gradient and back propagation respectively, and then update the parameters through Adam, and then continue to use the next set of data to repeat the above steps until the entire training set participates in the training. Finally, the model is evaluated by calculating the utility and privacy indicators of the model to see whether it meets the generation conditions. If yes, the model is saved and the training ends; otherwise, the next training cycle is entered until the model meets the generation conditions.

[0020] In order to explain in detail the possible application scenarios, technical principles, specific schemes that can be implemented, and the purposes and effects that can be achieved, the following is a detailed description of the specific embodiments listed in conjunction with the accompanying drawings. The embodiments described herein are only used to more clearly illustrate the technical solutions of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0021] Reference to "embodiment" herein means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The term "embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment, nor does it particularly limit its independence or association with other embodiments. In principle, in the present application, as long as there is no technical contradiction or conflict, the various technical features mentioned in the embodiments can be combined in any way to form a corresponding implementable technical solution.

[0022] Unless otherwise defined, the technical terms used in this document have the same meanings as those generally understood by those skilled in the art to which this application belongs; the use of relevant terms in this document is only for describing specific embodiments and is not intended to limit this application.

[0023] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A smart home voice assistant emotion privacy protection device based on adversarial learning, characterized in that: It includes a voice data receiving module for receiving voice data to be forwarded to the cloud storage by the voice assistant and storing the data, a voice feature conversion module for extracting and normalizing the voice data and converting it into Mel spectrum features, a desensitized Mel spectrum feature generation module that uses a pre-trained adversarial generative network generator to take the target emotion features and Mel spectrum features as input to generate desensitized Mel spectrum features, and a voice generation module for inversely normalizing the generated Mel spectrum features and converting them into voice and sending them to the cloud storage. The voice data receiving module, the voice feature conversion module, the desensitized Mel spectrum feature generation module and the voice generation module are connected in sequence.

2. The smart home voice assistant emotion privacy protection device based on adversarial learning according to claim 1, characterized in that: The desensitized Mel spectrum feature generation module includes a speech target emotion generation unit for selecting a target emotion from an emotion classification based on uniform randomness and generating a corresponding vector, and a pre-trained generator unit for generating a desensitized Mel spectrum feature by combining an input original Mel spectrum feature with a target emotion feature. The speech target emotion generation module is connected to the pre-trained generator module.

3. The smart home voice assistant emotion privacy protection device based on adversarial learning according to claim 2, characterized in that: The speech feature conversion module extracts and normalizes the speech stored in the speech data receiving module, and specifically comprises the following steps: Step 1, applying a pre-emphasis filter to the original speech signal; Step 2: Segment the continuous speech signal into short time frames; Step 3: Use the Hamming window to window each frame; Step 4: Apply fast Fourier transform to each frame of data; Step 5: Apply a Mel filter to the transformation result; Step 6: Take the logarithm of the energy obtained by the Mel filter; Step 7: Apply discrete cosine transform (DCT) to the output of the Mel filter; Step 8: Normalize the DCT transformation result.

4. The smart home voice assistant emotional privacy protection device based on adversarial learning according to claim 3, characterized in that: The speech target emotion generation module uses uniform random selection of target emotions to ensure that each emotion has an equal probability of being randomly selected, thereby avoiding inference attacks based on the actual distribution of emotions.

5. The smart home voice assistant emotion privacy protection device based on adversarial learning according to claim 4, characterized in that: The desensitized speech feature generation module is a generator pre-trained using the generative adversarial network (GAN) based on adversarial learning theory. By optimizing the training strategy and loss function of GAN, it is possible to maintain the speech quality and speaker recognition accuracy under the premise of emotional conversion.

6. The smart home voice assistant emotion privacy protection device based on adversarial learning according to claim 5, characterized in that: The generator network adopts a U-Net structure to achieve the replacement of emotional features and reconstruction of the original spectrogram. Secondly, a multi-layer threshold residual network is added to the bottleneck layer of the generator to improve the quality of speech reproduction and optimize the generator's understanding of the long-term and short-term connections in speech, making the generated speech more natural and realistic. The discriminator network adopts an AlexNet structure to distinguish between generated emotional features and real emotional features, as well as real spectrograms and generated spectrograms.

7. The smart home voice assistant emotion privacy protection device based on adversarial learning according to claim 6, characterized in that: The loss function of the network structure is a multi-task loss function, which is composed of generator loss and discriminator loss and is controlled by different weights.

8. The smart home voice assistant emotion privacy protection device based on adversarial learning according to claim 7, characterized in that: The Alex architecture is modified according to the speaker classification goal and then trained on the dataset to obtain an accurate and efficient speaker matcher.

9. The smart home voice assistant emotion privacy protection device based on adversarial learning according to claim 8, characterized in that: The usage steps include the following: S1, data reception: the voice assistant receives voice data and forwards it to the voice data receiving module, which receives and stores the voice data; S2, speech to Mel spectrum feature conversion: the speech feature conversion module extracts features from the speech data stored in the speech receiving module and normalizes them to generate original Mel spectrum features; S3, target emotion feature generation: using the speech target emotion generation unit, randomly and uniformly generate the target emotion feature; S4, generating desensitized Mel spectrum features: inputting the target emotion features and the original Mel spectrum features into the pre-trained generator unit to generate desensitized Mel spectrum features; S5, generate desensitized speech: input the desensitized Mel spectrum features into the speech generation module, generate desensitized speech and forward it to the cloud storage.