A voiceprint recognition and facial expression synchronization method and device
By synchronously collecting voiceprint and facial expression data through a headset and camera device, and using a deep learning model to predict the expressions of virtual characters, the problem of obtaining facial expressions in outdoor scenes is solved, and a seamless experience and high accuracy in virtual character construction are achieved.
Patent Information
- Application Number
- CN202411990191.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-12-31
AI Technical Summary
In the fields of virtual reality and augmented reality, it is difficult to capture facial expressions when users are outdoors or when it is inconvenient to use camera equipment, which limits the construction of virtual avatars.
The system uses a headset and camera to simultaneously collect voiceprint and facial expression data. It then uses a deep learning model to train a facial expression prediction model, predicts user expressions using voiceprint and cheek muscle data, and optimizes the model in real time.
Virtual characters can be built without obtaining facial expression data, improving user experience, reducing limitations, and improving prediction accuracy through feedback optimization of the model.
Smart Images

Figure CN119920258B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of interactive technology, specifically to a method and apparatus for synchronizing voiceprint recognition and facial expressions. Background Technology
[0002] In the fields of virtual reality (VR) and augmented reality (AR), virtual avatars are created to enable interaction with users. The creation of virtual avatars generally involves capturing the user's voice and facial expressions to generate corresponding virtual avatar movements and expressions.
[0003] Capturing a user's voice and facial expressions typically involves using microphones, cameras, or video recording devices. However, this method is less effective in capturing facial expressions in outdoor settings or environments where it's inconvenient to use cameras or video recording devices.
[0004] Based on this, the present invention provides a method and apparatus for synchronizing voiceprint recognition and facial expression to solve the above problems. Summary of the Invention
[0005] To overcome the shortcomings of the prior art, the present invention provides a method and apparatus for synchronizing voiceprint recognition and facial expression, so as to solve the problems in the prior art.
[0006] One embodiment of the present invention provides a method for synchronizing voiceprint recognition and facial expression, including a camera device and a headset worn on the user's head, wherein the earcups on both sides of the headset are connected to a data acquisition component, and the synchronization method includes the following steps:
[0007] Acquire user voiceprint data and facial data pre-synchronized by microphone, camera equipment and acquisition components. The facial data includes facial expression data and cheek muscle data, wherein the cheek muscle data is the activity of the cheek muscles corresponding to the user when making a sound.
[0008] The user's voiceprint data and facial data are extracted and preprocessed to obtain labeled data for use in the deep learning model. The labeled data includes expression samples, cheek muscle samples, and voiceprint samples.
[0009] The deep learning model is trained using the labeled data to obtain a trained facial expression prediction model.
[0010] The user's voiceprint data and cheek muscle data, which are collected in real time by the microphone and acquisition component, are simultaneously input into the trained facial expression prediction model. The facial expression prediction model outputs the user's current expression parameters based on the voiceprint data and cheek muscle data, and maps the output expression parameters to the expression parameters of the virtual character.
[0011] It receives user feedback in real time and determines whether the accuracy of the mapped facial expressions is within a preset threshold range based on the received feedback.
[0012] If not, a feedback training set is generated based on the received feedback information, and the feedback training set is used to optimize the facial expression prediction model.
[0013] By adopting the above scheme, the facial expression prediction model outputs expression parameters and maps them to the virtual character by simultaneously acquiring the user's voiceprint data and cheek muscle data. This allows for the construction of virtual characters without acquiring facial expression data, improving the user experience and reducing limitations. Since expressing an expression and making a sound will cause the cheek muscles to move accordingly, meaning the three are synchronized, the user's expression samples, cheek muscle samples, and voiceprint samples are correlated. By using the user's expression samples, cheek muscle samples, and voiceprint samples to train the facial expression prediction model, it is possible to predict the user's current expression by acquiring the user's voiceprint data and simultaneously capturing the corresponding cheek muscle activity data. At the same time, by receiving user feedback in real time, the facial expression prediction model is continuously optimized to improve the accuracy of prediction.
[0014] In one embodiment, the step of preprocessing the user's facial data and voiceprint data to obtain labeled data for use in a deep learning model specifically includes the following steps for preprocessing facial expression data in the user's facial data:
[0015] Extract several facial expression images containing facial expression regions from the video acquired by the camera equipment, and then scale and normalize them;
[0016] A facial marker detection algorithm is used to mark key points of facial expressions in each image, and the expressions are classified into predefined categories based on the location and distribution of the markers.
[0017] The categorized facial expressions are encoded and integrated to obtain expression samples.
[0018] By employing the above scheme, the video acquired by the camera device is processed to extract several facial expression images containing the user's facial expression region. These facial expression images are used as the basis for constructing the user's facial expressions. A facial marker detection algorithm is used to mark the key points of facial expressions in each image, thereby classifying the expressions according to predefined categories, such as shock, smile, and frown. The classified facial expressions are then encoded and integrated to obtain expression samples used to train the facial expression prediction model.
[0019] In one embodiment, the facial expression sample is an audio expression, which is the sound emitted by the user while expressing the expression; in the step of extracting the user's facial data and voiceprint data and preprocessing them to obtain labeled data for use in the deep learning model, the preprocessing of the user's voiceprint data specifically includes the following steps:
[0020] Preprocess the voiceprint signal acquired by the microphone;
[0021] Extract the time point when the sound is emitted from the voiceprint signal, and obtain the time point when the sound of the expression is emitted in the voiced facial expression;
[0022] The time matching algorithm is used to calculate the same time point between two time points in order to determine the corresponding vocal expression in the voiceprint signal;
[0023] The identified voiceprint signals are then labeled onto the vocal expressions to obtain voiceprint samples.
[0024] By employing the above scheme, all expressions categorized in the facial expression samples are vocal expressions, meaning the user utters a related sound while expressing the expression. The voiceprint signal acquired by the microphone is processed to extract the time point at which the sound was emitted, and the time point of the sound emitted by the corresponding expression is also obtained. A time-matching algorithm is used to calculate the common time points between the two. This common time point is used to determine the corresponding vocal expression in the voiceprint signal, and the determined voiceprint signal is marked onto the corresponding vocal expression. This voiceprint sample is used to train the facial expression prediction model. This process provides a basis for subsequent actions, such as when acquiring real-time user voiceprint data, to determine the facial expression parameters corresponding to the current user's expression using the facial expression prediction model, providing accurate predictions.
[0025] In one embodiment, the acquisition component is an electromyography (EMG) sensor, and the cheek muscle data acquired by the acquisition component is the electrical signal of cheek muscle activity corresponding to the user's voice. The step of preprocessing the user's facial data and voiceprint data to obtain labeled data for use in the deep learning model specifically includes the following steps for preprocessing the cheek muscle data in the user's facial data:
[0026] The electrical signals of cheek muscle activity collected by the electromyography sensor are preprocessed.
[0027] Extract the time point of the electrical signal generated by the cheek muscle activity, and extract the time point when the sound is emitted from the voiceprint signal corresponding to the vocal expression.
[0028] The time matching algorithm is used to calculate the same time point between two time points in order to determine the voiceprint signal corresponding to the electrical signal of cheek muscle activity.
[0029] The electrical signals of the determined cheek muscle activity are labeled into the voiceprint signal to obtain cheek muscle samples.
[0030] By employing the above scheme, the acquisition component is an electromyography (EMG) sensor. The EMG sensor collects the electrical signals of the cheek muscles corresponding to the user's vocalizations, thus providing cheek muscle data. The electrical signals of the cheek muscles collected by the EMG sensor are processed to extract the time point of their generation. Furthermore, the time point of the voiceprint signal corresponding to the vocal expression is obtained. A time-matching algorithm is used to calculate the common time points between the two. This common time point is used to determine the corresponding voiceprint signal within the cheek muscle activity's electrical signal, and the determined electrical signal is marked onto the corresponding voiceprint signal. This provides a cheek muscle sample for training a facial expression prediction model. This process allows for subsequent actions, such as acquiring the user's real-time cheek muscle activity electrical signals, to determine the facial expression parameters corresponding to the current user's expression using the facial expression prediction model. The user's current expression parameters are determined by the cheek muscle activity electrical signals and the voiceprint signal, thus providing accurate predictions.
[0031] In one embodiment, the step of simultaneously acquiring the user's voiceprint data and cheek muscle data collected in real time by the microphone and acquisition component, inputting them into a trained facial expression prediction model, and the facial expression prediction model outputting the user's current expression parameters based on the voiceprint data and cheek muscle data, and mapping the output expression parameters to the expression parameters of the virtual character, specifically includes the following steps:
[0032] Acquire user voiceprint data collected in real time by the microphone, and simultaneously acquire cheek muscle data corresponding to the voiceprint data;
[0033] The acquired voiceprint data and cheek muscle data are preprocessed and then input into the facial expression prediction model.
[0034] Based on the preset similarity matching algorithm, the similarity between the voiceprint signal of the current voiceprint data and the voiceprint signal in the voiceprint sample, and the similarity between the electrical signal of the current cheek muscle data and the electrical signal in the cheek muscle sample are calculated respectively.
[0035] Based on the calculation results, when the similarity exceeds the preset similarity threshold, the user's current expression parameters are determined.
[0036] The facial expression prediction model outputs the user's current expression parameters and maps the output expression parameters to the expression parameters of the virtual character. The output expression parameters are the expression parameters corresponding to the predefined expressions in the classification.
[0037] By adopting the above scheme, since the voiceprint signal in the voiceprint sample corresponds to the corresponding facial expression, and the electrical signal of cheek muscle activity in the cheek muscle sample corresponds to the corresponding voiceprint signal, when determining the current voiceprint signal and the electrical signal of cheek muscle activity, the similarity between the current voiceprint signal, cheek muscle electrical signal and the voiceprint sample and cheek muscle sample used to train the facial expression prediction model can be calculated using a preset similarity matching algorithm, thereby determining the user's current facial expression. In this way, it is not necessary to obtain the user's current facial expression data. The corresponding facial expression parameters can be calculated based on the current real-time voiceprint signal and cheek muscle electrical signal. If the current facial expression parameters are calculated solely based on the voiceprint signal or cheek muscle electrical signal, the accuracy will be greatly reduced.
[0038] This application also relates to a voiceprint recognition and facial expression synchronization device for implementing the voiceprint recognition and facial expression synchronization steps described in any of the above claims, including a camera device and a headset worn on the user's head, wherein the earcups on both sides of the headset are connected to a data acquisition component, and further includes:
[0039] The data acquisition module is used to acquire the user's voiceprint data and facial data pre-synchronized by the microphone, camera equipment and acquisition components. The facial data includes facial expression data and cheek muscle data, wherein the cheek muscle data is the activity of the cheek muscles corresponding to the user when making a sound.
[0040] The data preprocessing module is used to extract the user's voiceprint data and facial data for preprocessing to obtain labeled data for use in the deep learning model. The labeled data includes expression samples, cheek muscle samples and voiceprint samples.
[0041] The learning model training module is used to train the deep learning model using the labeled data to obtain a trained facial expression prediction model.
[0042] The predictive analysis module is used to synchronously acquire the user's voiceprint data and cheek muscle data collected in real time by the microphone and acquisition components and input them into the trained facial expression prediction model. The facial expression prediction model outputs the user's current expression parameters based on the voiceprint data and cheek muscle data, and maps the output expression parameters to the expression parameters of the virtual character.
[0043] The feedback module is used to receive user feedback information in real time and determine whether the accuracy of the mapped facial expressions is within a preset threshold range based on the received feedback information.
[0044] An optimization module is used to generate a feedback training set based on the received feedback information, and to optimize the facial expression prediction model using the feedback training set.
[0045] By adopting the above scheme, the facial expression prediction model outputs expression parameters and maps them to the virtual character by simultaneously acquiring the user's voiceprint data and cheek muscle data. This allows for the construction of virtual characters without acquiring facial expression data, improving the user experience and reducing limitations. Since expressing an expression and making a sound will cause the cheek muscles to move accordingly, meaning the three are synchronized, the user's expression samples, cheek muscle samples, and voiceprint samples are correlated. By using the user's expression samples, cheek muscle samples, and voiceprint samples to train the facial expression prediction model, it is possible to predict the user's current expression by acquiring the user's voiceprint data and simultaneously capturing the corresponding cheek muscle activity data. At the same time, by receiving user feedback in real time, the facial expression prediction model is continuously optimized to improve the accuracy of prediction.
[0046] This application also relates to a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described steps of voiceprint recognition and facial expression synchronization.
[0047] This application also relates to a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described method for synchronizing voiceprint recognition and facial expression.
[0048] The voiceprint recognition and facial expression synchronization method and apparatus provided in the above embodiments have the following beneficial effects:
[0049] 1. By synchronously acquiring users' voiceprint and cheek muscle data, a facial expression prediction model is used to output expression parameters and map them onto virtual characters. This allows for the construction of virtual characters without needing to acquire facial expression data, improving the user experience and reducing limitations. Since expressing an expression and making a sound will cause the cheek muscles to move accordingly, meaning the three are synchronized, user expression samples, cheek muscle samples, and voiceprint samples are correlated. By using these samples to train the facial expression prediction model, it can predict user expressions by acquiring the user's voiceprint data and simultaneously capturing the corresponding cheek muscle activity data. Furthermore, by receiving user feedback in real time, the facial expression prediction model is continuously optimized to improve prediction accuracy.
[0050] 2. In one embodiment, the electrical signals of cheek muscle activity collected by the electromyography (EMG) sensor are processed to extract the time point of the cheek muscle activity's electrical signal generation. The time point at which the sound is emitted in the voiceprint signal corresponding to the vocal expression is also obtained. A time-matching algorithm is used to calculate the common time point between the two. This common time point is used to determine the voiceprint signal corresponding to the cheek muscle activity's electrical signal, and the determined electrical signal is marked in the corresponding voiceprint signal. This identifies the electrical signal corresponding to the voiceprint signal, thus obtaining a cheek muscle sample used to train a facial expression prediction model. This operation paves the way for subsequent actions, such as acquiring the user's real-time cheek muscle activity electrical signals, to determine the facial expression parameters corresponding to the current user's expression using the facial expression prediction model. The user's current facial expression parameters are determined by the cheek muscle activity's electrical signals and the voiceprint signal, thereby providing accurate predictions.
[0051] 3. In one embodiment, a preset similarity matching algorithm is used to calculate the similarity between the current voiceprint signal, cheek muscle electrical signal and the voiceprint sample and cheek muscle sample used to train the facial expression prediction model, thereby determining the user's current facial expression. In this way, it is not necessary to obtain the user's current facial expression data. The corresponding facial expression parameters can be calculated based on the current real-time voiceprint signal and cheek muscle electrical signal. If the current facial expression parameters are calculated solely based on the voiceprint signal or cheek muscle electrical signal, the accuracy will be greatly reduced. Attached Figure Description
[0052] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0053] Figure 1 A flowchart illustrating a method for synchronizing voiceprint recognition and facial expression according to an embodiment of the present invention;
[0054] Figure 2 This is a schematic diagram of a headset and acquisition components in a voiceprint recognition and facial expression synchronization method provided in an embodiment of the present invention;
[0055] Figure 3 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0056] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0057] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative positional relationship and movement of the components in a specific posture. If the specific posture changes, the directional indications will also change accordingly.
[0058] Furthermore, if the embodiments of this invention involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the use of "and / or" or "and / or" throughout the text includes three parallel solutions. For example, "A and / or B" includes solution A, solution B, or a solution where both A and B are satisfied simultaneously. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.
[0059] Reference Figure 1 , Figure 2 One embodiment of the present invention provides a method for synchronizing voiceprint recognition and facial expression, including a camera device and a headset worn on the user's head. The earcups on both sides of the headset are connected to a data acquisition component. The synchronization method includes the following steps:
[0060] S100. Acquire the user's voiceprint data and facial data pre-synchronized by the microphone, camera device and acquisition component. The facial data includes facial expression data and cheek muscle data, wherein the cheek muscle data is the activity of the cheek muscles corresponding to the user when making a sound.
[0061] In this embodiment, the user's voiceprint data and facial data collected in advance are data collected by the camera device, microphone, and acquisition component when the user completes a specific instruction or when the user uses the camera device or headset in daily life. Facial expression data is the expression shown by the user when completing the instruction, voiceprint data is the sound made by the user when completing the instruction, and cheek muscle data is the muscle activity of the cheek position when the user makes a sound.
[0062] S200. Extract the user's voiceprint data and facial data and preprocess them to obtain labeled data for use in the deep learning model. The labeled data includes expression samples, cheek muscle samples and voiceprint samples.
[0063] In this embodiment, voiceprint data processing includes denoising, feature extraction, and normalization; facial expression data processing includes cropping, scaling, normalization, and annotation; and cheek muscle data processing includes signal filtering, feature extraction, normalization, and annotation. By extracting and preprocessing these data sets, data quality is ensured, and the data is made suitable for the input requirements of the learning model, thereby improving the model's performance and accuracy. The preprocessed data yields corresponding expression samples, cheek muscle samples, and voiceprint samples as labeled data for training the learning model.
[0064] Specifically, preprocessing facial expression data from user facial data includes the following steps:
[0065] S210A: Extract several facial expression images containing facial expression regions from the video acquired by the camera device, and perform scaling and normalization processing.
[0066] S220A: A facial marker detection algorithm is used to mark the key points of facial expressions in each image, and the expressions are classified into predefined categories based on the position and distribution of the marker points;
[0067] S230A: Encode and integrate the classified facial expressions to obtain expression samples.
[0068] By processing video captured by camera equipment, several facial expression images containing the user's facial expression regions are extracted and used as the basis for constructing user expressions. Facial marker detection algorithms, such as Haar cascades and convolutional neural networks, are used to label key points of facial expressions in each image. Expressions are then classified according to predefined categories, such as shock, smile, and frown. These classified facial expressions are then encoded and integrated to obtain expression samples used to train a facial expression prediction model. For example, one-hot encoding, multi-label encoding, or continuous encoding can be used to represent different expression categories. Through facial marker detection and expression encoding, the user's facial expressions can be converted into a data format that the learning model can process, thereby enabling the synchronization of subsequent virtual character expressions.
[0069] Furthermore, the facial expression samples are vocal expressions, which are the sounds uttered by the user while expressing the expression; the user's voiceprint data is preprocessed, specifically including the following steps:
[0070] S210B: Preprocesses the voiceprint signal acquired by the microphone, such as noise reduction, feature extraction, and normalization.
[0071] S220B: Extract the time point when the sound is emitted from the voiceprint signal, and obtain the time point when the sound of the expression is emitted in the voiced expression.
[0072] S230B: The time matching algorithm is used to calculate the same time point between two time points to determine the corresponding vocal expression in the voiceprint signal;
[0073] S240B: Mark the determined voiceprint signal onto the vocal expression to obtain a voiceprint sample.
[0074] The facial expressions categorized in the facial expression samples are all vocal expressions, meaning the user utters a related sound while expressing the expression. By processing the voiceprint signal acquired from the microphone, the time point at which the sound was emitted is extracted from the voiceprint signal. The time point at which the sound of the corresponding expression is emitted is also obtained. Time matching algorithms, such as timestamp matching, dynamic time warping, and time series synchronization, are used to calculate the common time points between the two. This common time point determines the corresponding vocal expression in the voiceprint signal, and the determined voiceprint signal is labeled with the corresponding vocal expression. This voiceprint sample is used to train the facial expression prediction model. This process provides a basis for subsequent actions, such as when acquiring real-time user voiceprint data, to determine the facial expression parameters corresponding to the current user's expression using the facial expression prediction model, providing accurate predictions.
[0075] Furthermore, the acquisition component is an electromyography (EMG) sensor, and the cheek muscle data acquired by the acquisition component is the electrical signal of cheek muscle activity corresponding to the user's vocalizations; the preprocessing of the cheek muscle data in the user's facial data specifically includes the following steps:
[0076] S210C: Preprocesses the electrical signals of cheek muscle activity collected by the electromyography sensor;
[0077] S220C, extract the time point of the electrical signal generated by the cheek muscle activity, and extract the time point when the sound is emitted from the voiceprint signal corresponding to the vocal expression.
[0078] S230C uses a time matching algorithm to calculate the same time point between two time points in order to determine the voiceprint signal corresponding to the electrical signal of cheek muscle activity.
[0079] S240C: The electrical signals of the determined cheek muscle activity are labeled into the voiceprint signal to obtain a cheek muscle sample.
[0080] The acquisition component is an electromyography (EMG) sensor, which collects electrical signals of the cheek muscles corresponding to the user's vocalizations, i.e., cheek muscle data. By processing the electrical signals of the cheek muscles collected by the EMG sensor, the time point of the electrical signal generation is extracted, and the time point of the voiceprint signal corresponding to the vocal expression is obtained. Time matching algorithms, such as timestamp matching, dynamic time warping, and time series synchronization, are used to calculate the common time points between the two. This common time point is used to determine the corresponding voiceprint signal in the electrical signal of the cheek muscle activity, and the determined electrical signal is marked into the corresponding voiceprint signal. This provides cheek muscle samples used to train a facial expression prediction model. This process allows for subsequent actions, such as acquiring the user's real-time cheek muscle activity electrical signals, to determine the facial expression parameters corresponding to the current user's expression using the facial expression prediction model. The user's current expression parameters are determined by the electrical signals of the cheek muscle activity and the voiceprint signal, thus providing accurate predictions.
[0081] S300. The deep learning model is trained using the labeled data to obtain a trained facial expression prediction model.
[0082] In this embodiment, a facial expression prediction model is obtained by training a deep learning model with the preprocessed labeled data (expression samples, cheek muscle samples, and voiceprint samples). This allows the user's facial expressions to be predicted using the facial expression prediction model. The deep learning model is a multimodal deep learning model.
[0083] S400 synchronously acquires the user's voiceprint data and cheek muscle data collected in real time by the microphone and acquisition component, inputs them into the trained facial expression prediction model, and outputs the user's current expression parameters based on the voiceprint data and cheek muscle data, and maps the output expression parameters to the expression parameters of the virtual character.
[0084] Specifically, it includes the following steps:
[0085] S410: Acquire user voiceprint data collected in real time by the microphone, and simultaneously acquire cheek muscle data corresponding to the voiceprint data;
[0086] S420. After preprocessing the acquired voiceprint data and cheek muscle data, input them into the facial expression prediction model.
[0087] S430. Calculate the similarity between the voiceprint signal of the current voiceprint data and the voiceprint signal in the voiceprint sample, and the similarity between the electrical signal of the current cheek muscle data and the electrical signal in the cheek muscle sample, respectively, according to the preset similarity matching algorithm.
[0088] S440. Based on the calculation results, when the similarity all exceed the preset similarity threshold, determine the user's current expression parameters;
[0089] S450 The facial expression prediction model outputs the user's current expression parameters and maps the output expression parameters to the expression parameters of the virtual character. The output expression parameters are the expression parameters corresponding to the predefined expressions in the classification.
[0090] In this embodiment, since the voiceprint signal in the voiceprint sample corresponds to the corresponding facial expression, and the electrical signal of cheek muscle activity in the cheek muscle sample corresponds to the corresponding voiceprint signal, when determining the current voiceprint signal and the electrical signal of cheek muscle activity, a preset similarity matching algorithm, such as dynamic time warping, can be used to calculate the similarity between the current voiceprint signal, the cheek muscle electrical signal and the voiceprint sample and cheek muscle sample used to train the facial expression prediction model, thereby determining the user's current facial expression. In this way, it is not necessary to obtain the user's current facial expression data. The corresponding facial expression parameters can be calculated based on the current real-time voiceprint signal and cheek muscle electrical signal. If the current facial expression parameters are calculated solely based on the voiceprint signal or the cheek muscle electrical signal, the accuracy will be greatly reduced.
[0091] S500 receives user feedback in real time and determines whether the accuracy of the mapped facial expressions is within a preset threshold range based on the received feedback.
[0092] S600. If not, generate a feedback training set based on the received feedback information, and optimize the facial expression prediction model using the feedback training set.
[0093] In this embodiment, feedback information can be sent to the user's mobile device after the facial expression parameters are mapped to the facial expression parameters of the virtual character. This information can be a notification on the mobile device. The user can respond to the construction of the virtual character's facial expression parameters by clicking the notification. The accuracy rate is judged based on the content of the response. For example, if the accuracy rate is lower than 85%, the user's facial expression, voiceprint, and muscle data can be collected again, and a feedback training set can be generated based on the collected data. The feedback training set is then input into the facial expression prediction model for optimization training, thereby continuously correcting the facial expression prediction model and providing the user with accurate expression predictions.
[0094] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0095] In one embodiment, a voiceprint recognition and facial expression synchronization device is provided, which corresponds to the voiceprint recognition and facial expression synchronization method in the above embodiment. The voiceprint recognition and facial expression synchronization device includes a camera device and a headset worn on the user's head. The earcups on both sides of the headset are connected to a data acquisition component. The device also includes:
[0096] The data acquisition module is used to acquire the user's voiceprint data and facial data pre-synchronized by the microphone, camera equipment and acquisition components. The facial data includes facial expression data and cheek muscle data, wherein the cheek muscle data is the activity of the cheek muscles corresponding to the user when making a sound.
[0097] The data preprocessing module is used to extract the user's voiceprint data and facial data for preprocessing to obtain labeled data for use in the deep learning model. The labeled data includes expression samples, cheek muscle samples and voiceprint samples.
[0098] The learning model training module is used to train the deep learning model using the labeled data to obtain a trained facial expression prediction model.
[0099] The predictive analysis module is used to synchronously acquire the user's voiceprint data and cheek muscle data collected in real time by the microphone and acquisition components and input them into the trained facial expression prediction model. The facial expression prediction model outputs the user's current expression parameters based on the voiceprint data and cheek muscle data, and maps the output expression parameters to the expression parameters of the virtual character.
[0100] The feedback module is used to receive user feedback information in real time and determine whether the accuracy of the mapped facial expressions is within a preset threshold range based on the received feedback information.
[0101] An optimization module is used to generate a feedback training set based on the received feedback information, and to optimize the facial expression prediction model using the feedback training set.
[0102] For specific limitations regarding the voiceprint recognition and facial expression synchronization device, please refer to the limitations of the voiceprint recognition and facial expression synchronization method described above, which will not be repeated here. Each module in the aforementioned voiceprint recognition and facial expression synchronization device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0103] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows. Figure 3 The computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores user data, performs data processing, predictive analysis, etc. The network interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a voiceprint recognition and facial expression synchronization method.
[0104] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a method for synchronizing voiceprint recognition and facial expression.
[0105] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements a method for voiceprint recognition and facial expression synchronization.
[0106] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0107] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0108] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A voiceprint recognition and facial expression synchronization method, characterized in that, The device includes a camera and a headset worn on the user's head. The earcups on both sides of the headset are connected to a data acquisition component, which is an electromyography (EMG) sensor. The data acquired by the acquisition component represents the electrical signals of the facial muscle activity corresponding to the user's vocalization. The synchronization method includes the following steps: Acquire user voiceprint data and facial data pre-synchronized by microphone, camera equipment and acquisition components. The facial data includes facial expression data and cheek muscle data, wherein the cheek muscle data is the activity of the cheek muscles corresponding to the user when making a sound. The user's voiceprint data and facial data are extracted and preprocessed to obtain labeled data for use in the deep learning model. The labeled data includes expression samples, cheek muscle samples and voiceprint samples. The expression samples are vocal expressions, which are the sounds made by the user while expressing the expression. The preprocessing of facial expression data in user facial data specifically includes the following steps: Extract several facial expression images containing facial expression regions from the video acquired by the camera equipment, and then scale and normalize them; A facial marker detection algorithm is used to mark key points of facial expressions in each image, and the expressions are classified into predefined categories based on the location and distribution of the markers. The categorized facial expressions are encoded and integrated to obtain expression samples; The preprocessing of the user voiceprint data specifically includes the following steps: Preprocess the voiceprint signal acquired by the microphone; Extract the time point when the sound is emitted from the voiceprint signal, and obtain the time point when the sound of the expression is emitted in the voiced facial expression; The time matching algorithm is used to calculate the same time point between two time points in order to determine the corresponding vocal expression in the voiceprint signal; The identified voiceprint signals are then labeled onto vocal expressions to obtain voiceprint samples. The preprocessing of cheek muscle data from user facial data specifically includes the following steps: The electrical signals of cheek muscle activity collected by the electromyography sensor are preprocessed. Extract the time point of the electrical signal generated by the cheek muscle activity, and extract the time point when the sound is emitted from the voiceprint signal corresponding to the vocal expression. The time matching algorithm is used to calculate the same time point between two time points in order to determine the voiceprint signal corresponding to the electrical signal of cheek muscle activity. The electrical signals of the determined cheek muscle activity are labeled into the voiceprint signal to obtain cheek muscle samples; The deep learning model is trained using the labeled data to obtain a trained facial expression prediction model. The user's voiceprint data and cheek muscle data, which are collected in real time by the microphone and acquisition component, are simultaneously input into the trained facial expression prediction model. The facial expression prediction model outputs the user's current expression parameters based on the voiceprint data and cheek muscle data, and maps the output expression parameters to the expression parameters of the virtual character. It receives user feedback in real time and determines whether the accuracy of the mapped facial expressions is within a preset threshold range based on the received feedback. If not, a feedback training set is generated based on the received feedback information, and the feedback training set is used to optimize the facial expression prediction model.
2. The voiceprint recognition and facial expression synchronization method of claim 1, wherein, The step of synchronously acquiring the user's voiceprint data and cheek muscle data collected in real time by the microphone and acquisition component, inputting them into the trained facial expression prediction model, and the facial expression prediction model outputting the user's current expression parameters based on the voiceprint data and cheek muscle data, and mapping the output expression parameters to the expression parameters of the virtual character, specifically includes the following steps: Acquire user voiceprint data collected in real time by the microphone, and simultaneously acquire cheek muscle data corresponding to the voiceprint data; The acquired voiceprint data and cheek muscle data are preprocessed and then input into the facial expression prediction model. Based on the preset similarity matching algorithm, the similarity between the voiceprint signal of the current voiceprint data and the voiceprint signal in the voiceprint sample, and the similarity between the electrical signal of the current cheek muscle data and the electrical signal in the cheek muscle sample are calculated respectively. Based on the calculation results, when the similarity exceeds the preset similarity threshold, the user's current expression parameters are determined. The facial expression prediction model outputs the user's current expression parameters and maps the output expression parameters to the expression parameters of the virtual character. The output expression parameters are the expression parameters corresponding to the predefined expressions in the classification.
3. A device for voiceprint recognition and facial expression synchronization, for implementing the steps of a voiceprint recognition and facial expression synchronization method according to any one of claims 1-2, characterized in that, The device includes a camera and a headset worn on the user's head. The earcups on both sides of the headset are connected to data acquisition components. The device also includes: The data acquisition module is used to acquire the user's voiceprint data and facial data that are pre-synchronized by the microphone, camera equipment and acquisition components. The facial data includes facial expression data and cheek muscle data. The data preprocessing module is used to extract the user's voiceprint data and facial data for preprocessing to obtain labeled data for use in the deep learning model. The labeled data includes expression samples, cheek muscle samples and voiceprint samples. The learning model training module is used to train the deep learning model using the labeled data to obtain a trained facial expression prediction model. The predictive analysis module is used to synchronously acquire the user's voiceprint data and cheek muscle data collected in real time by the microphone and acquisition components and input them into the trained facial expression prediction model. The facial expression prediction model outputs the user's current expression parameters based on the voiceprint data and cheek muscle data, and maps the output expression parameters to the expression parameters of the virtual character. The feedback module receives user feedback in real time and determines whether the accuracy of the mapped facial expressions is within a preset threshold range based on the received feedback. If the decision module determines the result, it generates a feedback training set based on the received feedback information and uses the feedback training set to optimize the facial expression prediction model.
4. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the voiceprint recognition and facial expression synchronization method as described in any one of claims 1-2.
5. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the voiceprint recognition and facial expression synchronization method as described in any one of claims 1-2.
Citation Information
Patent Citations
Emotion perception monitoring method and system based on voice and voiceprint recognition
CN117953920A
Facial expression recognition device and facial expression recognition method
WO2021171538A1
