A method for generating a duet three-dimensional head animation based on interactive perception diffusion

By using an interactive perception diffusion generation framework and weakly supervised learning, the interactive state of duets is explicitly modeled, which solves the shortcomings of interactive behavior in the generation of duet animations in existing technologies, realizes the generation of natural and coordinated duet head animations, and improves the generation effect and flexibility.

CN123181676APending Publication Date: 2026-11-27SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611333303.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively model the interactive states of singers in duet scenarios, resulting in animations that fail to convey a realistic sense of stage chemistry, particularly in accurately representing interactions at key moments such as musical phrase boundaries, rhythmic synchronization points, and responding passages.

Method used

We employ an interaction-aware diffusion-based approach, which explicitly models the interaction state through weakly supervised learning and an interaction-aware diffusion generation framework. By combining a neck pose information occlusion strategy and a Transformer interaction encoder, we generate a temporally continuous sequence of interaction scores. We then train the interaction-aware diffusion model through a diffusion-forced strategy to achieve coordinated and controllable dual head animation generation.

Benefits of technology

It enables the generation of natural, coordinated, and expressive head animations in duet scenarios, significantly improving lip synchronization accuracy and interaction consistency, reducing data preparation costs, and supporting multiple generation modes to adapt to different input conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181676A_ABST
    Figure CN123181676A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on interactive perception diffusion duet three-dimensional head animation generation method, comprising: using weak supervision contrast learning framework, in combination with neck posture information occlusion strategy and intra-frame timing alignment contrast loss, inter-frame interaction discriminant contrast loss learn the interactive representation between performer, obtain time continuous interaction score sequence;Extract the speaker perception audio feature representation sequence of duet audio, and form double-branch interaction score sequence acquisition mechanism with interactive representation learning;Construct interactive perception diffusion model, with audio feature representation sequence and interaction score sequence as condition, generate the three-dimensional head movement parameter of two performers by cascading attention and FiLM modulation joint denoising generation.Interactive perception diffusion model supports three generation modes of duet joint generation, partner motion prediction and interaction score guided generation, realizes the generation of duet three-dimensional head animation with interaction coordination and controllability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of computer graphics and digital human animation generation, and in particular to a method for generating a duet 3D head animation based on interactive perceptual diffusion. Background Technology

[0002] In recent years, audio-driven 3D head animation generation technology has been widely used in scenarios such as virtual concerts, digital human performances, and immersive entertainment. Existing methods can be divided into two categories based on the different driving signals: speech-driven facial animation generation and singing-driven head animation generation. Speech-driven methods mainly rely on deep learning models to map speech features into facial deformation parameters to achieve synchronization between lip movements and facial expressions. Singing-driven methods further consider the unique rhythmic features of singing, such as pitch, rhythm, and emotional expression, to generate more expressive singing animations.

[0003] However, current vocal-driven animation methods are mostly designed for solo performances and cannot effectively address the coordinated motion generation needs of duets or multi-singer scenarios. In duet performances, singers need to maintain individual expressiveness while intermittently interacting at significant musical moments such as phrase boundaries, rhythmic synchronization points, and echoing passages. Existing methods lack explicit modeling of the interaction states between singers, often generating two independently moving individuals or unnaturally coupled linkages that fail to present a realistic sense of stage chemistry. Meanwhile, while interactive facial animation methods in dialogue scenarios can model listener feedback and two-person dialogue, they assume that interaction behaviors are continuous in time and that role divisions are fixed. They cannot capture the sparse occurrence and dynamic switching of interactions with rhythm in duets, resulting in poor performance when directly transferred to singing scenarios. Summary of the Invention

[0004] The purpose of this invention is to overcome the shortcomings and deficiencies of the prior art and propose a method for generating 3D head animations for duets based on interactive perceptual diffusion. By explicitly interpretable modeling and weakly supervised learning of the interactive state, combined with the interactive perceptual diffusion generation framework, a coordinated, controllable and expressive duet head animation generation method is achieved.

[0005] To achieve the above objectives, the technical solution provided by this invention is: a method for generating a 3D head animation based on interactive perceptual diffusion, comprising the following steps:

[0006] S1: Acquire video data of the duet singing performance and preprocess it to extract the three-dimensional head motion parameter sequence of the two performers;

[0007] S2: Based on the 3D head motion parameter sequence of the two performers, a weakly supervised contrastive learning framework is used for the first stage of interaction representation learning: First, frame-by-frame interaction pseudo-labels are generated based on the neck posture parameters of the two performers; then, guided by the interaction pseudo-labels, the 3D head motion parameter sequence is encoded by a Transformer interaction encoder that introduces a neck posture information occlusion strategy. The neck posture information occlusion strategy avoids the Transformer interaction encoder from directly inferring the interaction state from the neck posture parameters by randomly occluding the neck posture information in the input, thus prompting the model to discover richer spatiotemporal coordination cues between the performers; on this basis, an intra-frame temporal alignment contrastive loss is used to make the motion features of corresponding moments with similar interaction states closer in the feature space, and an inter-frame interaction discrimination contrastive loss is used to enhance the distinguishability of motion features between interactive frames and non-interactive frames. The two losses are jointly optimized to optimize the interaction representation learning process, and finally, a temporally continuous interaction score sequence is obtained to describe the degree of interaction coordination between the two performers frame by frame.

[0008] S3: Acquire the audio data of the duet singing performance and preprocess it to obtain the audio feature representation sequence perceived by the speaker;

[0009] S4: Based on the speaker-perceived audio feature representation sequence, a dual-branch interactive score sequence acquisition mechanism is formed: The speaker-perceived audio feature representation sequence is input into a Transformer decoder that converts audio to scores, and an interactive score sequence based on audio feature prediction is obtained. This interactive score sequence, together with the interactive score sequence output by the Transformer interactive encoder, forms the output of the dual-branch interactive score sequence acquisition mechanism.

[0010] S5: Using any interaction score sequence output by the dual-branch interaction score sequence acquisition mechanism as a joint condition, construct an interaction-aware diffusion model. The second stage of training is carried out using a diffusion-forced strategy: add noise to the three-dimensional head motion parameter sequences of the two performers differentially by scheduling noise independently frame by frame. Then, using the diffusion time step, the speaker's perceived audio feature representation sequence, and any interaction score sequence as conditions, use a cascaded attention mechanism to jointly denoise the three-dimensional head motion parameter sequences of the two performers after adding noise. Optimize the model parameters using the total loss function composed of the weighted sum of the motion fidelity loss term and the interaction coordination loss term to obtain the trained interaction-aware diffusion model.

[0011] S6: Using the trained interactive perceptual diffusion model, generate a three-dimensional head motion parameter sequence for two performers by taking the speaker's perceived audio feature representation sequence and any interactive score sequence as joint conditions. Then, drive the FLAME three-dimensional deformable face model to perform motion reconstruction using the generated three-dimensional head motion parameter sequence to obtain the corresponding duet three-dimensional head animation.

[0012] Furthermore, the specific implementation process of step S1 is as follows:

[0013] Obtain the original video data of duet singing performances, filter out pseudo duet data samples of single-person role switching and back-to-back performances without interaction, and ensure that all training samples contain real interactions between performers.

[0014] The filtered video data was processed using the MTCNN face detector to detect faces in two-person scenes, resulting in a continuous sequence of face regions. The FLAME 3D deformable face model was then used for 3D head reconstruction to extract facial expression parameters from performers A and B. Neck posture parameters and mandibular posture parameters By stitching the above parameters frame by frame, a three-dimensional head motion parameter sequence for the two performers, A and B, is obtained. ,in The total number of frames in the sequence. It is the space of real numbers.

[0015] Furthermore, the specific implementation process of step S2 is as follows:

[0016] A weakly supervised contrastive learning framework is used for the first stage of interaction representation learning. Since there are no manually labeled frame-by-frame interaction tags in the training data, weakly supervised pseudo-labels are constructed using the 3D head motion relationship between the two performers to provide supervision signals for interaction representation learning. Specifically: first, based on... and Calculate the relative neck rotation angle for each frame. Set a preset interaction threshold. For the first Frame, if it satisfies If the condition is met, then the frame is marked as an interactive frame. If so, the frame is marked as a non-interactive frame. Indicates the frame sequence number index. Indicates the first The relative neck rotation angle of the frame;

[0017] Randomly select a portion of frames based on preset neck pose occlusion probabilities, and then... and Set to 0; input the 3D head motion parameter sequence after neck pose information occlusion processing into the Transformer interactive encoder. Encode and output the embedding vector sequence of the two performers. , Indicates the dimension of the embedding vector;

[0018] The set of embedded vector pairs corresponding to the interactive frames is denoted as the interactive sample set. The set of embedded vector pairs corresponding to non-interactive frames is denoted as the non-interactive sample set. ,in Represents the sample set, subscript Indicates interaction, subscript Indicates non-interactive. Indicates the first The embedding vectors of the two performers A and B in the frame;

[0019] Intra-frame temporal alignment contrast loss The calculation formula is:

[0020] ;

[0021] In the formula, Represents the interactive sample set The total number of samples in the sample, The summation symbol is used to represent the summation symbol. Represents the natural logarithm function. This represents an exponential function with the natural constant as its base. The frame index representing the negative sample. Indicates that performer B is in the The embedding vector of the frame. Indicates the time-series distance threshold. Indicates the first Frame and the The distance between frames needs to be greater than , Represents the temperature coefficient; in the interactive sample set In the middle, embedding vector pairs from the same frame Those that are considered positive samples, and whose intervals exceed [a certain value], are considered positive samples. Embedded vector pairs within a frame are treated as negative samples. This interval setting filters temporally adjacent embedded vector pairs, preventing highly similar samples from being misclassified as positive samples; intra-frame temporal alignment contrast loss. It encourages embedding vector pairs that are at the same time to be closer in the feature space, while pushing temporally misaligned embedding vector pairs apart in the feature space.

[0022] Inter-frame interactive discrimination contrast loss The calculation formula is:

[0023] ;

[0024] In the formula, Indicates that performer A is in the The embedding vector of the frame; from Embedded vector pairs from the same time point are considered positive samples, while those from the non-interactive set are considered positive samples. Embedded vector pairs are considered negative samples; inter-frame interactive discriminative contrast loss. It encourages the embedding vector pairs of interactive frames to be closer in the feature space, while pushing the embedding vector pairs of non-interactive frames apart in the feature space.

[0025] The total loss of weakly supervised contrastive learning is ,in This represents the total loss, which is used to jointly optimize the Transformer interactive encoder. Output a time-continuous pseudo-realistic interaction score sequence ,in Represents an interactive score sequence, with superscript... It indicates a false reality.

[0026] Furthermore, the specific implementation process of step S3 is as follows:

[0027] The pre-trained Spleeter audio source separation model is used to separate the mixed audio into human voice track and accompaniment track, and the pre-trained Whisper speech encoder is used to extract acoustic features for each track.

[0028] The acoustic features of each audio track are spliced ​​together and then processed by the audio Transformer encoder. Mapped to a unified audio latent space representation sequence ;

[0029] Using a pre-trained speaker activity detection model LR-ASD, frame-by-frame speaker activity score sequences are output for two performers A and B. ,in The total number of frames in the sequence; the speaker activity score sequence. With audio latent space representation sequence By performing weighted operations, we obtain the speaker-perceived audio feature representation sequences of the two performers. .

[0030] Furthermore, the specific implementation process of step S4 is as follows:

[0031] The sources of the interactive score sequence include two approaches: the first approach is to use the Transformer interactive encoder trained in step S2. Three-dimensional head motion parameter sequences of the two performers and The encoding yields an embedding vector sequence, and the similarity of each frame's embedding vector pair is calculated as a pseudo-true interaction score sequence. The second approach is to build a Transformer decoder that converts audio to fractions. Taking the concatenated audio feature representation sequence of the two performers as input, it is processed by a Transformer decoder that converts audio to scores. Predicting audio-driven interaction score sequences During training, each forward propagation randomly selects from... or One of them is selected as the interaction score sequence.

[0032] Furthermore, the specific implementation process of step S5 is as follows:

[0033] Based on a diffusion-forced strategy, an interactive perception diffusion model is constructed for the second stage of training: for each performer The The true 3D head motion parameter sequence of the frame Sampling diffusion time step by frame, by performer ,remember Let be the noise dissipation coefficient, then the th Frame Performer At the diffusion time step The noise-added motion parameters are as follows:

[0034] ;

[0035] In the formula, Indicates the diffusion time step The noise-added motion parameters are as follows. Indicates the diffusion time step The diffuse noise scheduling factor under the following conditions Expressing appreciation to the performers No. Frame-independently sampled Gaussian noise vectors Represents a vector with zero mean. The covariance matrix is ​​the identity matrix. The multivariate Gaussian distribution;

[0036] The noisy 3D head motion parameter sequence is mapped to the shared latent space through linear projection to obtain the initial hidden state. and superscript This indicates layer 0, i.e., the initial layer; the initial hidden state is then sent in. Hierarchical connected attention block iteration, where This indicates the total number of attention blocks; each level of attention block executes three attention modules sequentially: the first module is a self-attention module, used to capture the temporal dependencies within each performer's own motion sequence; the second module is an audio cross-attention module, which represents the sequence using the speaker's perceived audio features. As a condition, audio prosody and semantic information are injected into motion features; the third module is an interactive cross-attention module, which uses the hidden state of the corresponding layer of another performer as a condition to model the motion coupling relationship between the two performers through cross-performer hidden state interaction; in the interactive cross-attention module, the FiLM feature linear modulation mechanism is used to diffuse the time step The interaction scores, after being linearly transformed, are applied to the normalized parameters of the interaction cross-attention module to achieve dual conditional injection of noise perception and interaction perception, where FiLM represents feature linear modulation; after... After connecting the attention blocks in a hierarchical manner, the final hidden state will be... and By mapping back to the motion parameter space through linear projection heads, the denoised 3D head motion parameter sequences of performers A and B are obtained. and , This represents the generated motion parameter sequence after denoising.

[0037] The training loss function is a weighted sum of a motion fidelity loss term and an interaction coordination loss term; the motion fidelity loss term includes the reconstruction loss. speed loss and acceleration loss :

[0038] ;

[0039] ;

[0040] ;

[0041] In the formula, Denotes the square of the L2 norm. and These represent the generated 3D head motion parameter sequence and the actual 3D head motion parameter sequence, respectively; and These represent the first-order time difference between the 3D head motion parameter sequence generated by performer A and the actual 3D head motion parameter sequence, respectively, corresponding to the motion velocity; and These represent the second-order time difference between the 3D head motion parameter sequence generated by performer A and the actual 3D head motion parameter sequence, respectively, corresponding to the motion acceleration; and These represent the generated 3D head motion parameter sequence and the actual 3D head motion parameter sequence, respectively; and These represent the first-order time difference between the 3D head motion parameter sequence generated by performer B and the actual 3D head motion parameter sequence, respectively, corresponding to the motion velocity; and These represent the second-order time difference between the 3D head motion parameter sequence generated by performer B and the actual 3D head motion parameter sequence, respectively, corresponding to the motion acceleration;

[0042] The interaction coordination loss term includes the interaction score alignment loss. and interaction consistency loss :

[0043] ;

[0044] In the formula, Indicates the generated sequence of motion parameters and via Transformer interactive encoder Extracted interaction score sequence;

[0045] The total loss function is:

[0046] ;

[0047] In the formula, Indicates the total loss; to These represent the reconstruction loss weight, velocity loss weight, acceleration loss weight, interaction score alignment loss weight, and interaction consistency loss weight, respectively.

[0048] Furthermore, in step S6, three head animation generation modes are supported:

[0049] Mode 1, dual-person joint generation, is used to synchronously generate 3D head animations for two performers;

[0050] Mode 2, Partner Motion Prediction, is used to generate head animations of a partner that coordinate with a given sequence of motion of a performer.

[0051] Mode 3, interactive score-guided generation, controls the level of interaction in the generated animation by adjusting the interactive score at different time periods;

[0052] The above three modes enable the generation of interactive and coordinated 3D head animations for duets.

[0053] Furthermore, the specific details of the joint generation by two individuals are as follows:

[0054] The three-dimensional head motion parameter sequences of the two performers are initialized as pure noise sequences. The speaker's perceived audio feature representation sequence and any interaction score sequence are used as joint conditions. The noise-added three-dimensional head motion parameter sequences of the two performers are jointly iterated and denoised through an interaction-perceived diffusion model. During the denoising process, the interaction relationship between the two performers is modeled to generate a synchronized and coordinated three-dimensional head motion parameter sequence of the two performers. The FLAME three-dimensional deformable face model is then driven to perform motion reconstruction, and finally the corresponding three-dimensional head animation of the duet is obtained.

[0055] Furthermore, the specific details of the partner motion prediction are as follows:

[0056] A complete 3D head motion parameter sequence of one performer is obtained as a given motion sequence, and another performer is taken as the target performer. Low-intensity noise perturbation is applied to the given motion sequence, and the motion sequence of the target performer starts from a pure noise state. Through the interactive perception diffusion model, the motion features of the given performer, the audio feature representation sequence perceived by the speaker, and any interactive score sequence are used as conditions for iterative denoising to generate a 3D head motion parameter sequence of the target performer that is coordinated with the motion state of the given performer. The FLAME 3D deformable face model is then driven to perform motion reconstruction, and finally the corresponding 3D head animation of the duet is obtained.

[0057] Furthermore, the specific details of the interactive score generation process are as follows:

[0058] A pre-generated sequence of 3D head motion parameters for a single singer is obtained as the initial 3D head motion parameter sequence. The noise injection intensity for each time frame is determined based on the interaction score corresponding to each time frame in any interaction score sequence. Specifically, for time frames with low interaction scores, the noise injection intensity is reduced to preserve the original motion features of the corresponding time frame in the initial 3D head motion parameter sequence; for time frames with high interaction scores, the noise injection intensity is increased to expand the motion adjustment space of the corresponding time frame. Subsequently, the noise-processed 3D head motion parameter sequence is input into an interactive perception diffusion model to perform interactive perception motion adjustment on the initial 3D head motion parameter sequence, generating a 3D head motion parameter sequence for a duet with interactive coordination. This sequence then drives the FLAME 3D deformable face model for motion reconstruction, ultimately yielding the corresponding 3D head animation for a duet.

[0059] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0060] 1. This invention explicitly constructs the frame-by-frame interaction score of duets and interpretably models the interaction state of duets, effectively solving the problem of "over-coupling" in existing methods.

[0061] 2. This invention employs a neck pose information occlusion strategy and a weakly supervised contrastive learning framework, and trains a Transformer interaction encoder by combining intra-frame temporal alignment contrastive loss and inter-frame interaction discrimination contrastive loss. It can output a temporally continuous interaction score sequence without manual annotation, which greatly reduces the data preparation cost.

[0062] 3. This invention designs a dual-branch interactive score sequence acquisition mechanism, which integrates the pseudo-realistic interactive score sequence output by the Transformer interactive encoder with the audio-driven interactive score sequence predicted by the Transformer decoder from audio to score as a joint condition, thereby enhancing the generalization ability under audio-driven conditions while ensuring the accuracy of the interaction.

[0063] 4. This invention trains an interactive perception diffusion model based on a diffusion forced strategy, adds noise to the motion parameters of the two performers independently and differentially on a frame-by-frame basis, and balances individual details and interactive coordination in the denoising process through cascaded attention and FiLM conditional injection, making it more suitable for duet generation tasks.

[0064] 5. Under a unified framework, this invention supports three reasoning modes: joint generation by two people, partner motion prediction, and interactive score-guided generation. It can flexibly adapt to different input conditions, thereby improving the controllability and practicality of the method. Attached Figure Description

[0065] Figure 1 This is a framework diagram of the method of the present invention.

[0066] Figure 2 This is a schematic diagram of the interactive perception diffusion model structure.

[0067] Figure 3 This is a schematic diagram of the reasoning model. Detailed Implementation

[0068] The present invention will be further described in detail below with reference to the embodiments and accompanying drawings, but the embodiments of the present invention are not limited thereto.

[0069] like Figure 1 , Figure 2 and Figure 3As shown, this embodiment discloses a method for generating 3D head animations for duets based on interactive perceptual diffusion. The core of this method is as follows: First, the 3D head motion parameters of the two singers are extracted from the original duet video. An interactive encoder is trained using a weakly supervised contrastive learning framework to output interpretable frame-by-frame interactive scores, explicitly characterizing the coordination between the two singers. Simultaneously, the speaker's perceived audio features are extracted, and a dual-branch interactive score sequence acquisition mechanism is constructed (a pseudo-realistic interactive score sequence and an audio-driven interactive score sequence predicted by an audio-to-score Transformer decoder). Based on this, an interactive perceptual diffusion model is designed, employing a diffusion-forced strategy to add noise to the motion sequences of the two singers frame-by-frame. The speaker's perceived audio feature representation sequence and any interactive score sequence are used as joint conditions. Joint denoising is achieved through cascaded attention and the FiLM mechanism, thus ensuring interactive coordination while preserving individual motion details. After training, it supports three inference modes: joint generation by two singers, partner motion prediction, and interactive score-guided generation. It can flexibly adapt to different input conditions, generating natural, coordinated, and expressive duet head animations. The specific details are as follows:

[0070] 1) Pre-processing of the dataset: This paper conducts experiments based on the ChorusHead dataset. Since the original dataset is geared towards general choral analysis rather than fine-grained duet interaction modeling, targeted preprocessing was performed: First, pseudo-duet videos with single-person role switching and back-to-back, non-interactive performances were filtered out to ensure that all training samples contained genuine interactions between performers. Additional duet videos were then added to maintain the data size. For motion reconstruction, the MTCNN face detector was used to detect faces in the filtered video frames on two-person scenes, obtaining continuous face region sequences. The FLAME 3D deformable face model was then used for 3D head reconstruction to extract facial expression parameters of performers A and B. Neck posture parameters and mandibular posture parameters By stitching the above parameters frame by frame, a three-dimensional head motion parameter sequence for the two performers, A and B, is obtained. ,in The total number of frames in the sequence. It is the space of real numbers.

[0071] 2) A weakly supervised contrastive learning framework is used for the first stage of interactive representation learning: Since there are no manually labeled frame-by-frame interactive tags in the training data, weakly supervised pseudo-labels are constructed using the 3D head motion relationship between the two performers to provide supervision signals for interactive representation learning. Specifically, firstly based on... and Calculate the relative neck rotation angle for each frame. Set a preset interaction threshold. For the first Frame, if it satisfies If the condition is met, then the frame is marked as an interactive frame. If so, the frame is marked as a non-interactive frame. Indicates the frame sequence number index. Indicates the first The relative neck rotation angle of the frame;

[0072] Randomly select a portion of frames based on preset neck pose occlusion probabilities, and then... and Set to 0; input the 3D head motion parameter sequence after neck pose information occlusion processing into the Transformer interactive encoder. Encode and output the embedding vector sequence of the two performers. , Indicates the dimension of the embedding vector;

[0073] The set of embedded vector pairs corresponding to the interactive frames is denoted as the interactive sample set. The set of embedded vector pairs corresponding to non-interactive frames is denoted as the non-interactive sample set. ,in Represents the sample set, subscript Indicates interaction, subscript Indicates non-interactive. Indicates the first The embedding vectors of the two performers A and B in the frame.

[0074] Intra-frame temporal alignment contrast loss The calculation formula is:

[0075] ;

[0076] In the formula, Represents the interactive sample set The total number of samples in the sample, The summation symbol is used to represent the summation symbol. Represents the natural logarithm function. This represents an exponential function with the natural constant as its base. The frame index representing the negative sample. Indicates that performer B is in the The embedding vector of the frame. Indicates the time-series distance threshold. Indicates the first Frame and the The distance between frames needs to be greater than , Represents the temperature coefficient. In the interactive sample set... In the middle, embedding vector pairs from the same frame Those that are considered positive samples, and whose intervals exceed [a certain value], are considered positive samples. Embedded vector pairs within a frame are treated as negative samples. This interval setting filters temporally adjacent embedded vector pairs, preventing highly similar samples from being misclassified as positive samples. Intra-frame temporal alignment contrast loss. This encourages embedding vector pairs that are contemporaneous to be closer together in the feature space, while pushing temporally misaligned embedding vector pairs apart in the feature space.

[0077] Inter-frame interactive discrimination contrast loss The calculation formula is:

[0078] ;

[0079] In the formula, Indicates that performer A is in the The frame's embedding vector. (Source: ...) Embedded vector pairs from the same time point are considered positive samples, while those from the non-interactive set are considered positive samples. The embedded vector pairs are then considered negative samples. Inter-frame interactive discriminative contrast loss. It encourages the embedding vector pairs of interactive frames to be closer in the feature space, while pushing the embedding vector pairs of non-interactive frames apart in the feature space.

[0080] The total loss of weakly supervised contrastive learning is ,in This represents the total loss, which is used to jointly optimize the Transformer interactive encoder. Output a time-continuous pseudo-realistic interaction score sequence ,in Represents an interactive score sequence, with superscript... This represents pseudo-real data. In the first phase of training, the Transformer interactive encoder uses the AdamW optimizer with a learning rate of [value missing]. The batch size was 128, and training was performed on two NVIDIA RTX 4090 GPUs. The Transformer interactive encoder was jointly optimized using this total loss to output a temporally continuous sequence of interactive scores.

[0081] 3) Audio Processing: A pre-trained Spleeter audio source separation model is used to separate the mixed audio into vocal and accompaniment tracks. A pre-trained Whisper speech encoder is used to extract acoustic features from each track. The acoustic features of each track are then concatenated and processed by an audio Transformer. Mapped to a unified audio latent space representation sequence Meanwhile, a pre-trained active speaker detection model, LR-ASD, is used to output frame-by-frame speaker activity scores for the two performers, A and B. ,in The total number of frames in the sequence. This indicates that the value ranges from 0 to 1. 3D vector. Speaker activity score. With audio latent space representation sequence The fusion yields a sequence of speaker-perceived audio feature representations from both performers. .

[0082] 4) Two-branch interactive score sequence acquisition mechanism: The interactive score sequence can be obtained from two sources. The first source is the Transformer interactive encoder trained in step 2). Three-dimensional head motion parameter sequences of the two performers and The encoding yields an embedding vector sequence, and the similarity of each frame's embedding vector pair is calculated as a pseudo-true interaction score sequence. The second approach is to build a Transformer decoder that converts audio to fractions. The program takes the concatenated audio feature representation sequence of the two performers as input and passes it through a shallow Transformer network. Predicted audio-driven interaction score During training, each forward propagation randomly selects from... or One of them is selected as the interaction score.

[0083] 5) Construct an interactive perception diffusion model using a diffusion-forced strategy, and perform actions such as... Figure 2 The second phase of training is shown. For each performer... The The true 3D head motion parameter sequence of the frame Sampling diffusion time step by frame, by performer .remember Let be the noise dissipation coefficient, then the th Frame Performer At the diffusion time step The noise-added motion parameters are as follows:

[0084] ;

[0085] In the formula, Indicates the diffusion time step The noise-added motion parameters are as follows. Indicates the diffusion time step The diffuse noise scheduling factor under the following conditions Expressing appreciation to the performers No. Frame-independently sampled Gaussian noise vectors Represents a vector with zero mean. The covariance matrix is ​​the identity matrix. The multivariate Gaussian distribution;

[0086] The noisy 3D head motion parameter sequence is mapped to the shared latent space through linear projection to obtain the initial hidden state. and superscript This indicates layer 0, i.e., the initial layer; the initial hidden state is then sent in. Hierarchical connected attention block iteration, where This indicates the total number of attention blocks; each level of attention block executes three attention modules sequentially: the first module is a self-attention module, used to capture the temporal dependencies within each performer's own motion sequence; the second module is an audio cross-attention module, which represents the sequence using the speaker's perceived audio features. As a condition, audio prosody and semantic information are injected into motion features; the third module is an interactive cross-attention module, which uses the hidden state of the corresponding layer of another performer as a condition to model the motion coupling relationship between the two performers through cross-performer hidden state interaction; in the interactive cross-attention module, the FiLM feature linear modulation mechanism is used to diffuse the time step The interaction scores, after being linearly transformed, are applied to the normalized parameters of the interaction cross-attention module to achieve dual conditional injection of noise perception and interaction perception, where FiLM represents feature linear modulation; after... After connecting the attention blocks in a hierarchical manner, the final hidden state will be... and By mapping back to the motion parameter space through linear projection heads, the denoised 3D head motion parameter sequences of performers A and B are obtained. and , This represents the generated motion parameter sequence after denoising.

[0087] The training loss function is a weighted sum of a motion fidelity loss term and an interaction coordination loss term. The motion fidelity loss term includes the reconstruction loss. speed loss and acceleration loss :

[0088] ;

[0089] ;

[0090] ;

[0091] In the formula, Denotes the square of the L2 norm. and These represent the generated 3D head motion parameter sequence and the actual 3D head motion parameter sequence for performer A, respectively. and These represent the first-order time difference between the generated 3D head motion parameter sequence and the actual 3D head motion parameter sequence for performer A, respectively, corresponding to the motion velocity; and These represent the second-order time difference between the generated 3D head motion parameter sequence and the actual 3D head motion parameter sequence for performer A, respectively, and the corresponding motion acceleration. and These represent the generated 3D head motion parameter sequence and the actual 3D head motion parameter sequence, respectively; and These represent the first-order time difference between the 3D head motion parameter sequence generated by performer B and the actual 3D head motion parameter sequence, respectively, corresponding to the motion velocity; and These represent the second-order time difference between the 3D head motion parameter sequence generated by performer B and the actual 3D head motion parameter sequence, respectively, corresponding to the motion acceleration;

[0092] The interaction coordination loss term includes the interaction score alignment loss. and interaction consistency loss :

[0093] ;

[0094] In the formula, Indicates the generated sequence of motion parameters and via interactive encoder Extracted interaction score.

[0095] The total loss function is:

[0096] ;

[0097] In the formula, Indicates the total loss; to These represent the reconstruction loss weight, velocity loss weight, acceleration loss weight, interaction score alignment loss weight, and interaction consistency loss weight, respectively.

[0098] In the second phase of training, the interactive perceptual diffusion model (i.e., the generative model) uses the AdamW optimizer with a learning rate of 100%. The batch size was 128, and training was performed on two NVIDIA RTX 4090 GPUs. The loss weights were set to... , , , , By optimizing the model parameters using the total loss described above, the trained interactive perceptual diffusion model is obtained.

[0099] 6) Application of reasoning patterns: such as Figure 3 As shown, the model can support three inference modes under a unified model framework: joint generation by two people (i.e., joint generation of duets), partner motion prediction, and interactive score-guided generation.

[0100] Mode 1, Dual-person joint generation: The three-dimensional head motion parameter sequences of the two performers are initialized as pure noise sequences respectively. The audio feature representation sequence perceived by the speaker and any interaction score sequence are used as joint conditions. The three-dimensional head motion parameter sequences of the two performers after adding noise are jointly iterated and denoised through an interaction perception diffusion model. During the denoising process, the interaction relationship between the two performers is modeled to generate a three-dimensional head motion parameter sequence of the two performers in sync and coordination. The FLAME three-dimensional deformable face model is then driven to perform motion reconstruction, and finally the corresponding duet three-dimensional head animation is obtained.

[0101] Mode 2, Partner Motion Prediction: Obtain the complete 3D head motion parameter sequence of one performer as the given motion sequence, and take the other performer as the target performer; apply low-intensity noise perturbation to the given motion sequence, and start the target performer's motion sequence from a pure noise state. Through the interactive perception diffusion model, iteratively denoise the motion features of the given performer, the audio feature representation sequence perceived by the speaker, and any interactive score sequence as conditions to generate a 3D head motion parameter sequence of the target performer that is coordinated with the motion state of the given performer, and drive the FLAME 3D deformable face model to perform motion reconstruction, and finally obtain the corresponding duet 3D head animation.

[0102] Mode 3, Interactive Score-Guided Generation: A pre-generated sequence of 3D head motion parameters for a single singer is acquired as the initial 3D head motion parameter sequence. The noise injection intensity for each time frame is determined based on the interaction score corresponding to each time frame in any interactive score sequence. Specifically, for time frames with lower interaction scores, the noise injection intensity is reduced to preserve the original motion features of the corresponding time frame in the initial 3D head motion parameter sequence. For time frames with higher interaction scores, the noise injection intensity is increased to expand the motion adjustment space for the corresponding time frame. Subsequently, the noise-processed 3D head motion parameter sequence is input into an interactive perception diffusion model to perform interactive perception motion adjustments on the initial 3D head motion parameter sequence, generating a 3D head motion parameter sequence for a duet with interactive coordination. This sequence then drives the FLAME 3D deformable face model for motion reconstruction, ultimately yielding the corresponding 3D head animation for a duet.

[0103] Experimental metrics and results: The generated results were evaluated from five aspects: Facial accuracy was assessed using Lip Vertex Error (LVE), Facial Dynamic Distance (FDD), Facial Vertex Error (FVE), and Freeze Rate to evaluate lip synchronization, upper face dynamics, and overall facial geometry; Rhythmic alignment was assessed using Beat Alignment (BA) to evaluate the consistency between singing-driven head movements and musical beats; Temporal coherence and motion quality were quantified using Fréchet Inception Distance (FID) calculated on FLAME parameters; Interaction consistency was assessed using Paired Fréchet Inception Distance (P-FID) to compare the distribution of generated motion with that of the actual duet to evaluate whether interpersonal coordination was maintained.

[0104] Table 1 shows a quantitative comparison with state-of-the-art methods. The comparison methods include PaChorus, UniLS, DIM, DualTalk, and the generation results of the method described in this invention under two inference modes: joint generation by two individuals and partner motion prediction. Lower values ​​for LVE, FVE, Freeze Rate, FID, and P-FID are preferred, while FDD and BA are preferred when they are closer to the true values. Bold numbers indicate the optimal results.

[0105] Table 1. Analysis of Experimental Results

[0106]

[0107] In the dual-person joint generation task, the method of this invention outperforms the baseline method across all metrics: LVE is reduced by 16.1% compared to the strongest baseline UniLS (8.3317 vs. 9.9350), and FID and P-FID are reduced by 29.2% and 25.9% respectively. In the partner motion prediction task, the FDD of the method of this invention is reduced from 0.8370 in DualTalk to 0.0149, indicating that the generated motion has higher consistency with the real motion on relevant evaluation metrics.

[0108] To further evaluate the visual performance of the method of this invention, a user study was included in the experiment. Twenty-eight participants were invited to subjectively evaluate 40 randomly ordered samples (20 samples each for the two-person joint generation and partner motion prediction tasks). Participants rated the generated results based on a 1-5 Likert scale, evaluating lip-sync accuracy, facial expression richness, and naturalness of interaction. Comparison methods included PaChorus, UniLS, DIM, DualTalk, and the generation results of the method of this invention in both the two-person joint generation and partner motion prediction inference modes. Statistical results for each method in terms of average user preference are shown in Table 2. Bold numbers indicate the best results.

[0109] Table 2 Analysis of User Research Results

[0110]

[0111] The data in the table clearly shows that the method of this invention achieved high average subjective scores across all three evaluation dimensions. This result fully demonstrates that the duet head animation generated by the method of this invention has gained high user approval in terms of lip synchronization accuracy, facial expression vividness, and natural coordination of two-person interaction, verifying the superiority of the explicit interaction modeling and interaction perception diffusion generation framework in terms of visual effects.

[0112] Experimental Conclusions: Addressing the challenge of existing methods in modeling the sparse, rhythm-driven interactive dynamics of duets, this invention proposes a method for generating 3D head animations for duets based on interaction-aware diffusion. By learning interpretable interaction score sequences through weakly supervised contrastive learning, and combining a two-branch interaction score sequence acquisition mechanism with an interaction-aware diffusion model, coordinated and controllable head animation generation for duets is achieved. Experiments on the optimized ChorusHead dataset demonstrate that this method significantly outperforms existing methods in multiple objective metrics and user subjective evaluations, and supports three modes: joint generation by two performers, partner motion prediction, and score-guided generation. Future research will explore real-time inference optimization to serve practical applications such as virtual concerts.

[0113] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.

Claims

1. A method for generating 3D head animation for duets based on interactive perceptual diffusion, characterized in that, Includes the following steps: S1: Acquire video data of the duet singing performance and preprocess it to extract the three-dimensional head motion parameter sequence of the two performers; S2: Based on the 3D head motion parameter sequence of the two performers, a weakly supervised contrastive learning framework is used for the first stage of interaction representation learning: First, frame-by-frame interaction pseudo-labels are generated based on the neck posture parameters of the two performers; then, guided by the interaction pseudo-labels, the 3D head motion parameter sequence is encoded by a Transformer interaction encoder that introduces a neck posture information occlusion strategy. The neck posture information occlusion strategy avoids the Transformer interaction encoder from directly inferring the interaction state from the neck posture parameters by randomly occluding the neck posture information in the input, thus prompting the model to discover richer spatiotemporal coordination cues between the performers; on this basis, an intra-frame temporal alignment contrastive loss is used to make the motion features of corresponding moments with similar interaction states closer in the feature space, and an inter-frame interaction discrimination contrastive loss is used to enhance the distinguishability of motion features between interactive frames and non-interactive frames. The two losses are jointly optimized to optimize the interaction representation learning process, and finally, a temporally continuous interaction score sequence is obtained to describe the degree of interaction coordination between the two performers frame by frame. S3: Acquire the audio data of the duet singing performance and preprocess it to obtain the audio feature representation sequence perceived by the speaker; S4: Based on the speaker-perceived audio feature representation sequence, a dual-branch interactive score sequence acquisition mechanism is formed: The speaker-perceived audio feature representation sequence is input into a Transformer decoder that converts audio to scores, and an interactive score sequence based on audio feature prediction is obtained. This interactive score sequence, together with the interactive score sequence output by the Transformer interactive encoder, forms the output of the dual-branch interactive score sequence acquisition mechanism. S5: Using any interaction score sequence output by the dual-branch interaction score sequence acquisition mechanism as a joint condition, construct an interaction-aware diffusion model. The second stage of training is carried out using a diffusion-forced strategy: add noise to the three-dimensional head motion parameter sequences of the two performers differentially by scheduling noise independently frame by frame. Then, using the diffusion time step, the speaker's perceived audio feature representation sequence, and any interaction score sequence as conditions, use a cascaded attention mechanism to jointly denoise the three-dimensional head motion parameter sequences of the two performers after adding noise. Optimize the model parameters using the total loss function composed of the weighted sum of the motion fidelity loss term and the interaction coordination loss term to obtain the trained interaction-aware diffusion model. S6: Using the trained interactive perceptual diffusion model, generate a three-dimensional head motion parameter sequence for two performers by taking the speaker's perceived audio feature representation sequence and any interactive score sequence as joint conditions. Then, drive the FLAME three-dimensional deformable face model to perform motion reconstruction using the generated three-dimensional head motion parameter sequence to obtain the corresponding duet three-dimensional head animation.

2. The method for generating a 3D head animation based on interactive perceptual diffusion for a duet, as described in claim 1, is characterized in that... The specific implementation process of step S1 is as follows: Obtain the original video data of duet singing performances, filter out pseudo duet data samples of single-person role switching and back-to-back performances without interaction, and ensure that all training samples contain real interactions between performers. The filtered video data was processed using the MTCNN face detector to detect faces in two-person scenes, resulting in a continuous sequence of face regions. The FLAME 3D deformable face model was then used for 3D head reconstruction to extract facial expression parameters from performers A and B. Neck posture parameters and mandibular posture parameters By stitching the above parameters frame by frame, a three-dimensional head motion parameter sequence for the two performers, A and B, is obtained. ,in The total number of frames in the sequence. It is the space of real numbers.

3. The method for generating a 3D head animation based on interactive perceptual diffusion for a duet, as described in claim 2, is characterized in that... The specific implementation process of step S2 is as follows: A weakly supervised contrastive learning framework is used for the first stage of interaction representation learning. Since there are no manually labeled frame-by-frame interaction tags in the training data, weakly supervised pseudo-labels are constructed using the 3D head motion relationship between the two performers to provide supervision signals for interaction representation learning. Specifically: first, based on... and Calculate the relative neck rotation angle for each frame. Set a preset interaction threshold. For the first Frame, if it satisfies If the condition is met, then the frame is marked as an interactive frame. If so, the frame is marked as a non-interactive frame. Indicates the frame sequence number index. Indicates the first The relative neck rotation angle of the frame; Randomly select a portion of frames based on preset neck pose occlusion probabilities, and then... and Set to 0; input the 3D head motion parameter sequence after neck pose information occlusion processing into the Transformer interactive encoder. Encode and output the embedding vector sequence of the two performers. , Indicates the dimension of the embedding vector; The set of embedded vector pairs corresponding to the interactive frames is denoted as the interactive sample set. The set of embedded vector pairs corresponding to non-interactive frames is denoted as the non-interactive sample set. ,in Represents the sample set, subscript Indicates interaction, subscript Indicates non-interactive. Indicates the first The embedding vectors of the two performers A and B in the frame; Intra-frame temporal alignment contrast loss The calculation formula is: ; In the formula, Represents the interactive sample set The total number of samples in the sample, The summation symbol is used to represent the summation symbol. Represents the natural logarithm function. This represents an exponential function with the natural constant as its base. The frame index representing the negative sample. Indicates that performer B is in the The embedding vector of the frame. Indicates the time-series distance threshold. Indicates the first Frame and the The distance between frames needs to be greater than , Represents the temperature coefficient; in the interactive sample set In the middle, embedding vector pairs from the same frame Those that are considered positive samples, and whose intervals exceed [a certain value], are considered positive samples. The embedded vector pairs of frames are treated as negative samples. This interval setting filters out temporally adjacent embedded vector pairs, avoiding misclassification of highly similar samples as positive samples. Intra-frame temporal alignment contrast loss It encourages embedding vector pairs that are at the same time to be closer in the feature space, while pushing temporally misaligned embedding vector pairs apart in the feature space. Inter-frame interactive discrimination contrast loss The calculation formula is: ; In the formula, Indicates that performer A is in the The embedding vector of the frame; from Embedded vector pairs from the same time point are considered positive samples, while those from the non-interactive set are considered positive samples. Embedded vector pairs are considered negative samples; inter-frame interactive discriminative contrast loss. It encourages the embedding vector pairs of interactive frames to be closer in the feature space, while pushing the embedding vector pairs of non-interactive frames apart in the feature space. The total loss of weakly supervised contrastive learning is ,in This represents the total loss, which is used to jointly optimize the Transformer interactive encoder. Output a time-continuous pseudo-realistic interaction score sequence ,in Represents an interactive score sequence, with superscript... It indicates a false reality.

4. The method for generating a 3D head animation based on interactive perceptual diffusion for a duet, as described in claim 3, is characterized in that... The specific implementation process of step S3 is as follows: The pre-trained Spleeter audio source separation model is used to separate the mixed audio into human voice track and accompaniment track, and the pre-trained Whisper speech encoder is used to extract acoustic features for each track. The acoustic features of each audio track are spliced ​​together and then processed by the audio Transformer encoder. Mapped to a unified audio latent space representation sequence ; Using a pre-trained speaker activity detection model LR-ASD, frame-by-frame speaker activity score sequences are output for two performers A and B. ,in The total number of frames in the sequence; the speaker activity score sequence. With audio latent space representation sequence By performing weighted operations, we obtain the speaker-perceived audio feature representation sequences of the two performers. .

5. The method for generating a 3D head animation based on interactive perceptual diffusion for a duet, as described in claim 4, is characterized in that... The specific implementation process of step S4 is as follows: The sources of the interactive score sequence include two approaches: the first approach is to use the Transformer interactive encoder trained in step S2. Three-dimensional head motion parameter sequences of the two performers and The encoding yields an embedding vector sequence, and the similarity of each frame's embedding vector pair is calculated as a pseudo-true interaction score sequence. The second approach is to build a Transformer decoder that converts audio to fractions. Taking the concatenated audio feature representation sequence of the two performers as input, it is processed by a Transformer decoder that converts audio to fractions. Predicting audio-driven interaction score sequences ; During training, each forward propagation randomly selects from... or One of them is selected as the interaction score sequence.

6. The method for generating a 3D head animation based on interactive perceptual diffusion for a duet, as described in claim 5, is characterized in that... The specific implementation process of step S5 is as follows: Based on a diffusion-forced strategy, an interactive perception diffusion model is constructed for the second stage of training: for each performer The The true 3D head motion parameter sequence of the frame Sampling diffusion time step by frame, by performer ,remember Let be the noise dissipation coefficient, then the th Frame Performer At the diffusion time step The noise-added motion parameters are as follows: ; In the formula, Indicates the diffusion time step The noise-added motion parameters are as follows. Indicates the diffusion time step The diffuse noise scheduling factor under the condition, Expressing appreciation to the performers No. Frame-independently sampled Gaussian noise vectors Represents a vector with zero mean. The covariance matrix is ​​the identity matrix. The multivariate Gaussian distribution; The noisy 3D head motion parameter sequence is mapped to the shared latent space through linear projection to obtain the initial hidden state. and superscript This indicates layer 0, i.e., the initial layer; the initial hidden state is then sent in. Hierarchical connected attention block iteration, where This indicates the total number of attention blocks; each level of attention block executes three attention modules sequentially: the first module is a self-attention module, used to capture the temporal dependencies within each performer's own motion sequence; the second module is an audio cross-attention module, which represents the sequence using the speaker's perceived audio features. As a condition, audio prosody and semantic information are injected into motion features; The third module is the interactive cross-attention module. It uses the hidden state of the corresponding layer of the other performer as a condition, and models the motion coupling relationship between the two performers through cross-performer hidden state interaction. In the interactive cross-attention module, a FiLM feature linear modulation mechanism is used to adjust the diffusion time step. The interaction scores are applied to the normalized parameters of the interaction cross-attention module after linear transformation, respectively, to achieve dual conditional injection of noise perception and interaction perception, where FiLM represents feature linear modulation. go through After connecting the attention blocks in a hierarchical manner, the final hidden state will be... and By mapping back to the motion parameter space through linear projection heads, the denoised 3D head motion parameter sequences of performers A and B are obtained. and , This represents the generated motion parameter sequence after denoising. The training loss function is a weighted sum of a motion fidelity loss term and an interaction coordination loss term; the motion fidelity loss term includes the reconstruction loss. speed loss and acceleration loss : ; ; ; In the formula, Denotes the square of the L2 norm. and These represent the generated 3D head motion parameter sequence and the actual 3D head motion parameter sequence, respectively; and These represent the first-order time difference between the 3D head motion parameter sequence generated by performer A and the actual 3D head motion parameter sequence, respectively, corresponding to the motion velocity; and These represent the second-order time difference between the 3D head motion parameter sequence generated by performer A and the actual 3D head motion parameter sequence, respectively, corresponding to the motion acceleration; and These represent the generated 3D head motion parameter sequence and the actual 3D head motion parameter sequence, respectively; and These represent the first-order time difference between the 3D head motion parameter sequence generated by performer B and the actual 3D head motion parameter sequence, respectively, corresponding to the motion velocity; and These represent the second-order time difference between the 3D head motion parameter sequence generated by performer B and the actual 3D head motion parameter sequence, respectively, corresponding to the motion acceleration; The interaction coordination loss term includes the interaction score alignment loss. and interaction consistency loss : ; In the formula, Indicates the generated sequence of motion parameters and via Transformer interactive encoder Extracted interaction score sequence; The total loss function is: ; In the formula, Indicates the total loss; to These represent the reconstruction loss weight, velocity loss weight, acceleration loss weight, interaction score alignment loss weight, and interaction consistency loss weight, respectively.

7. The method for generating a 3D head animation based on interactive perceptual diffusion for a duet, as described in claim 6, is characterized in that... In step S6, three head animation generation modes are supported: Mode 1, dual-person joint generation, is used to synchronously generate 3D head animations for two performers; Mode 2, Partner Motion Prediction, is used to generate head animations of a partner that coordinate with a given sequence of motion of a performer. Mode 3, interactive score-guided generation, controls the level of interaction in the generated animation by adjusting the interactive score at different time periods; The above three modes enable the generation of interactive and coordinated 3D head animations for duets.

8. The method for generating a 3D head animation based on interactive perceptual diffusion for a duet, as described in claim 7, is characterized in that... The specific details of the joint generation by two people are as follows: The three-dimensional head motion parameter sequences of the two performers are initialized as pure noise sequences. The speaker's perceived audio feature representation sequence and any interaction score sequence are used as joint conditions. The noise-added three-dimensional head motion parameter sequences of the two performers are jointly iterated and denoised through an interaction-perceived diffusion model. During the denoising process, the interaction relationship between the two performers is modeled to generate a synchronized and coordinated three-dimensional head motion parameter sequence of the two performers. The FLAME three-dimensional deformable face model is then driven to perform motion reconstruction, and finally the corresponding three-dimensional head animation of the duet is obtained.

9. The method for generating a 3D head animation based on interactive perceptual diffusion for a duet, as described in claim 7, is characterized in that... The specific details of the partner motion prediction are as follows: A complete 3D head motion parameter sequence of one performer is obtained as a given motion sequence, and another performer is taken as the target performer. Low-intensity noise perturbation is applied to the given motion sequence, and the motion sequence of the target performer starts from a pure noise state. Through the interactive perception diffusion model, the motion features of the given performer, the audio feature representation sequence perceived by the speaker, and any interactive score sequence are used as conditions for iterative denoising to generate a 3D head motion parameter sequence of the target performer that is coordinated with the motion state of the given performer. The FLAME 3D deformable face model is then driven to perform motion reconstruction, and finally the corresponding 3D head animation of the duet is obtained.

10. The method for generating a 3D head animation based on interactive perceptual diffusion according to claim 7, characterized in that, The specific details of the interactive score generation process are as follows: A pre-generated sequence of 3D head motion parameters for a single singer is obtained as the initial 3D head motion parameter sequence. The noise injection intensity for each time frame is determined based on the interaction score corresponding to each time frame in any interaction score sequence. Specifically, for time frames with low interaction scores, the noise injection intensity is reduced to preserve the original motion features of the corresponding time frame in the initial 3D head motion parameter sequence; for time frames with high interaction scores, the noise injection intensity is increased to expand the motion adjustment space of the corresponding time frame. Subsequently, the noise-processed 3D head motion parameter sequence is input into an interactive perception diffusion model to perform interactive perception motion adjustment on the initial 3D head motion parameter sequence, generating a 3D head motion parameter sequence for a duet with interactive coordination. This sequence then drives the FLAME 3D deformable face model for motion reconstruction, ultimately yielding the corresponding 3D head animation for a duet.