Game animation self-adaption method based on emotion perception

By collecting multi-source signals and combining them with the game context, a lightweight neural network model is used to decouple multi-dimensional real-time emotion vectors, dynamically calculate animation behavior identifiers and adjust parameters, solving the problem that existing game animation systems cannot adapt to the player's psychological state in real time. This achieves intelligent diversity and artistic consistency in animation decision-making, improving the smoothness and immersion of the game experience.

CN121767518AActive Publication Date: 2026-03-31COMMUNICATION UNIVERSITY OF CHINA
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-03-04
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing game animation systems cannot dynamically adjust to the player's psychological state in real time, resulting in a lack of emotional adaptability in the game experience. Furthermore, existing emotion recognition methods have low accuracy and are easily affected by environmental interference. The animation adjustment logic is simple and direct, which disrupts the game balance and narrative coherence.

Method used

By collecting multi-source signals from players, including physiological signals, behavioral operation signals, and facial image signals, and combining them with game context vectors, a lightweight neural network model is used to decouple multi-dimensional real-time emotion vectors, dynamically calculate animation behavior identifiers and adjust parameters, introduce animation filters for stylistic adjustments, and optimize the model through reverse fine-tuning to improve smoothness.

Benefits of technology

It achieves accurate judgment of emotional state, intelligent integration of animation adjustment and game state, generates animation decisions that match the player's personalized reaction, improves game immersion and experience smoothness, and the system can learn and adapt to the player's unique reaction pattern.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure SMS_3
    Figure SMS_3
  • Figure SMS_9
    Figure SMS_9
  • Figure QLYQS_1
    Figure QLYQS_1
Patent Text Reader

Abstract

The invention relates to the technical field of game animations, in particular to a game animation self-adaption method based on emotion perception, which comprises the following steps: collecting and preprocessing a multi-source signal of a player, simultaneously obtaining a current game context vector, inputting the processed multi-source signal and the game context vector into an emotion decoupling model, outputting a four-dimensional emotion vector E (t) with the confidence score C (t); calculating an animation behavior identifier Aid and an animation adjustment parameter set Aparams according to the emotion vector E (t); the game engine completes animation rendering according to the animation behavior identifier Aid and the animation adjustment parameter set Aparams, and outputs a result to a screen; and analyzing a newly generated player data stream after executing animation adjustment, dynamically calculating a fluency index, and reversely and finely adjusting parameters of the emotion decoupling model and the probability mapping graph according to the fluency index. By means of the scheme, the problems that animation self-adaption is high in delay, poor in robustness and lack of game context coupling are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of game animation technology, and specifically provides an adaptive method for game animation based on emotion perception. Background Technology

[0002] With the development of the gaming industry, players have placed higher demands on the immersion and personalized experience of games. Currently, most game animation systems are preset and linear, unable to dynamically adjust according to the player's real-time psychological state, resulting in a lack of emotional adaptability in the gaming experience.

[0003] In existing technologies, there are some studies that attempt to combine emotion recognition with games, for example: Single-modal emotion recognition methods, such as analyzing a player's voice tone or capturing facial expressions from a camera, roughly determine emotions. These methods often have low accuracy, are easily affected by environmental factors (such as lighting and background noise), and cannot reflect the complex and continuous emotional fluctuations of players during gameplay.

[0004] Non-real-time or superficial game adjustments: Some technologies use emotion recognition results for macro-level, non-continuous adjustments such as game level selection or background music switching, rather than delving into character animation behavior, which is the level most closely related to player interaction.

[0005] Animation adjustments are disconnected from emotional logic: A few solutions attempt to adjust animations, but the adjustment logic is simple and direct (such as "the character's movements slow down when sad"). This mechanical mapping lacks an understanding of the game context and player intentions, the adjustments are stiff, and may even disrupt game balance and narrative coherence. Summary of the Invention

[0006] To overcome the above-mentioned shortcomings, this invention is proposed to solve the technical problems of high latency, poor robustness, and lack of coupling with the game context in existing adaptive animation.

[0007] This invention provides an adaptive method for game animation based on emotion perception, comprising the following steps: S1: Collect and preprocess the player's multi-source signals, and obtain the current game context vector. Input the processed multi-source signals and game context vector into the emotion decoupling model, and output a four-dimensional emotion vector E(t)=[valence,arousal,frustration,focus] with confidence score C(t); S2: Calculate the animation behavior identifier A based on the emotion vector E(t). id and animation adjustment parameter set A params Among them, animation behavior identifier A id Obtained through a probability mapping graph formed by the emotion vector E(t); S3: The game engine uses animation behavior identifiers A id and animation adjustment parameter set A params Complete the animation rendering and output the results to the screen; S4: By analyzing the newly generated player data stream after the animation adjustment, dynamically calculate the smoothness index, and fine-tune the parameters of the emotion decoupling model and probability mapping based on the smoothness index.

[0008] Furthermore, the player's multi-source signals include physiological signals, behavioral operation signals, and facial image signals. Physiological signals are collected through a wristband device, behavioral operation signals are obtained by recording operation events per second and calculating trajectory jitter rate through the log system built into the game client, and facial image signals are obtained by capturing facial video of the player through a camera.

[0009] Furthermore, each set of physiological signals, behavioral operation signals, and facial image signals is assigned a uniform, high-precision millisecond-level timestamp T. stamp And perform the following preprocessing: PPI sequences are extracted from the acquired physiological signals, and time-domain and frequency-domain features are calculated to obtain the processed physiological signal e. processed =[hrv lf ,hrv hf ,gsr mean ],hrv lf Heart rate variability (HRV) represents low-frequency power. hf GSR represents high-frequency power of heart rate variability. mean This represents the mean value of the skin conductance response; From the collected behavioral operation signals o raw The number of operations per second is counted to obtain the operation frequency. freq The operation accuracy is obtained by calculating the average pixel deviation between the preset number of effective clicks and the target center. acc The mouse movement trajectory is low-pass filtered, and its root mean square error compared to the smooth trajectory is calculated to obtain the jitter index o. shake Synthetic behavior operation signal o vector =[o freq ,o acc ,o shake ]; Face detection and key point localization are performed on the acquired facial image signals, and the aspect ratio of the eyes is calculated. left Eyebrow displacement raise lip displacement corner The facial image signal f is obtained. micro =[ear left ,brow raise ,lip corner ] Furthermore, the processed physiological signals, behavioral operation signals, facial image signals, and game context vectors are normalized and then concatenated to form a fused feature vector F. fusion (t), F fusion (t) is input into the trained emotion decoupling model and outputs a four-dimensional emotion vector E(t) and a confidence score C(t). The range of each dimension of the four-dimensional emotion vector E(t) is [-1,1], and the range of the confidence score C(t) is [0,1].

[0010] Furthermore, obtain the game context vector c from the game engine. state =[scene_id,is_combat,difficulty_level,player_health], where scene_id represents the story chapter, difficulty_level represents the difficulty level of the current level, player_health represents the player character's health, and is_combat represents the hostile / friendly attribute of the interaction with non-player characters.

[0011] Furthermore, a lightweight neural network model is constructed. This model takes multi-source signals and game context vectors as input. Internally, the model learns based on different game context vectors c through an attention mechanism. state Different weights are assigned to physiological and behavioral signals from multiple sources, and an emotion decoupling model is obtained through training.

[0012] Furthermore, based on the emotion vector E(t) and the current game state, a dynamic probability P is calculated to determine the animation behavior identifier A. id This includes the following steps: S211: Define an animation strategy library for each core game character, containing all animation behaviors available in the game state and their behavior identifiers A. id Each animation action has a corresponding base probability weight W. base ; S212: Calculate the adjustment factor ΔW based on the emotion vector E(t); S213: Calculate the dynamic probability P=Softmax(W) for each animation action. base + C(t) ΔW); S214: Select the animation behavior with the highest dynamic probability and output the corresponding animation behavior identifier A. id .

[0013] Furthermore, based on the dimension values ​​of the emotion vector E(t), the blending weights of one or more stylized animation filters are calculated and applied to determine the animation adjustment parameter set A. params This includes the following steps: S221: Preset multiple animation filters and define the association function between each animation filter and a dimension or combination of dimensions in the emotion vector E(t); S222: For each animation filter, calculate the original weight w based on its correlation function. raw ; S223: Normalize the original weights of all animation filters to obtain the normalized weights w of each animation filter. filter_1 ,w filter_2 ..., integrating the normalized weights yields the final mixed weight vector W. filter =[w filter_1 ,w filter_2 ,...]; S224: Based on the mixed weight vector W filter Multiple animation filters are overlaid to generate a set of animation adjustment parameters A. params .

[0014] Furthermore, step S4 includes, S41: Maintain a first-in-first-out data buffer of a preset length L, continuously storing data pairs for each frame or second, including the emotion vector E(t), the current game state S(t), and the animation behavior identifier A. id Animation adjustment parameter set A params Subsequent signals; S42: Define an active event (Event) pos and negative events neg Analyze the data pairs in the buffer. If the frustration rate is greater than 0.7 and lasts for more than 10 seconds, it is recorded as a high frustration duration event. frust ; S43: Every fixed period T opt Calculate the smoothness metric of the current cache window. Where α represents the weight of positive events, β represents the weight of negative events, and γ represents the weight of the duration of frustration; S44: If F score Below the preset threshold F threshold This will trigger optimization.

[0015] Furthermore, the optimization includes: The fused feature vector F of all data pairs in the data cache fusion Using F(t) as input and E(t) as label input, the emotion decoupling model introduces F... score Loss function adjustment, For the smoothness index F score Animation behavior identifier A in reduced data pairs idReduce its base weight W in the probability map. base .

[0016] The working principle and beneficial effects of this invention: In implementing the technical solution of this invention, a precise multidimensional real-time emotion vector E(t) and confidence level C(t) are decoupled by fusing physiological signals, behavioral data, and game context. Using a dynamic probability map and stylized filters, E(t) is combined with the game state S(t) to generate animation decisions that combine intelligent diversity with artistic consistency. These decision parameters are seamlessly and smoothly applied to the game engine's animation system and rendered. The player experience smoothness index F is calculated using execution effect data within a cached window. score This serves as a standard for reverse fine-tuning, forming a continuous optimization cycle that enables the system to learn autonomously and adapt to players' personalized reaction patterns. Detailed Implementation

[0017] Some embodiments of the present invention are described below. Those skilled in the art should understand that these embodiments are merely illustrative of the technical principles of the present invention and are not intended to limit the scope of protection of the present invention.

[0018] The game animation adaptive method based on emotion perception in this embodiment mainly includes the following steps S1-S4.

[0019] Step S1: Collect and preprocess the player's multi-source signals, and obtain the current game context vector. Input the processed multi-source signals and game context vector into the emotion decoupling model, and output a multi-dimensional emotion vector E(t) with confidence score C(t).

[0020] In one implementation, the multi-source signals collected from the player include physiological signals, behavioral operation signals, and facial image signals. Specifically, physiological signals (heart rate variability HRV, skin conductance response GSR) are collected through a wristband device, and the raw HRV and GSR data are sent to the game client via Bluetooth. The game client's built-in log system records operation events per second and calculates trajectory jitter rate to obtain behavioral operation signals (operation frequency, accuracy, and degree of tremor in mouse movement trajectory). The camera captures facial video of the player to obtain facial image signals, and a lightweight face mesh model (such as MediaPipeFaceMesh) is used to extract key point motion features.

[0021] In one implementation, physiological signals e are collected. raw Behavioral operation signals o raw and facial image signal f raw Then, each data packet is tagged with a uniform, high-precision, millisecond-level timestamp T. stampThe player's multi-source signals are preprocessed as follows: From the collected physiological signals e raw The PPI sequence is extracted, and the time-domain and frequency-domain features are calculated to obtain the processed physiological signal e. processed =[hrv lf ,hrv hf ,gsr mean ]. hrv lf Heart rate variability (HRV) represents low-frequency power. hf GSR represents high-frequency power of heart rate variability. mean This represents the mean value of skin conductance response.

[0022] From the collected behavioral operation signals o raw The number of operations per second is counted to obtain the operation frequency. freq The average pixel deviation between the most recent 10 valid clicks and the target center is calculated to obtain the operation accuracy. acc The mouse movement trajectory is low-pass filtered, and its root mean square error compared to the smooth trajectory is calculated to obtain the jitter index o. shake Synthetic behavioral feature vector o vector =[o freq ,o acc ,o shake [This serves as the processed action signal o] vector .

[0023] For the acquired facial image signal f raw Perform face detection and 68-point landmark localization. Calculate the eye aspect ratio. left Eyebrow displacement raise lip displacement corner Features such as facial micro-expression feature vector f are obtained. micro =[ear left ,brow raise ,lip corner ] as the processed facial image signal f micro .

[0024] In one implementation, the game context vector c is obtained from the game engine API. state =[scene_id,is_combat,difficulty_level,player_health], specifically, a context vector containing the following fields is exported through the game engine (such as Unity): scene_id (identifies the story chapter), difficulty_level (the difficulty level of the current level), player_health (the player character's health), and is_combat (the hostile / friendly attribute for interactions with non-player characters).

[0025] Furthermore, the processed physiological signal e processed Behavioral operation signal o vector Facial image signal f micro and game context vector c state After normalization, the vectors are concatenated to form a fused feature vector F. fusion (t). F fusion (t) is input into the trained emotion decoupling model and outputs a four-dimensional emotion vector E(t) = [valence (pleasure), arousal (activation), frustration (frustration), focus (focus)] with a value range of [-1,1], and a confidence score C(t) with a value range of [0,1].

[0026] In this embodiment, a lightweight neural network model is constructed, which takes multi-source signals and game context vectors as input. Internally, the model learns based on different game context vectors c through an attention mechanism. state Different weights are assigned to physiological and behavioral signals. For example, when the hostile / friendly attribute is_combat=1 in interactions with non-player characters, the hriv... hf (Reflecting mental stress) and o shake The weight of facial image signals (reflecting tension) will increase; while in dialogue scenes, the weight of facial image signals will increase. micro The weights will be higher. Through training, an emotion decoupling model is obtained, which can distinguish between emotional responses triggered by game content and external environmental interference, such as HRV. hf The increase in emotion is decoupled into "excitement caused by tense plot" or "annoyance caused by game lag". The final output is a multi-dimensional, quantitative real-time emotion vector E(t)=[valence,arousal,frustration,focus], with dimensions including pleasure, activation, frustration, and focus, and a value range of [-1,1], as well as a confidence score C(t), with a value range of [0,1].

[0027] In this embodiment, unlike simply fusing multi-sensor data, the game context state is introduced as a key dimension to "decouple" the original physiological / behavioral signals from their intent, distinguishing between emotional responses originating from the game content and external interference.

[0028] Step S2: Calculate the animation behavior identifier A based on the emotion vector E(t). id and animation adjustment parameter set A params .

[0029] In one implementation, the dynamic probability P is calculated based on the emotion vector E(t) and the current game state to determine the animation behavior identifier A. idSpecifically, this includes the following steps S211-S214.

[0030] S211: Define an animation strategy library for each core game character, containing all animation behaviors available in game states (such as combat, exploration, and dialogue) and their behavior identifiers A. id Each animation action has a corresponding base probability weight W. base .

[0031] In one implementation, when the core game character is "Knight" and the game state is "Battle," examples of all animation behaviors are shown in the table below:

[0032] Basic probability weights W base = Damage value of the standard action / Time taken for the standard action Design preference coefficient. For example, Quick Attack has moderate damage, short duration, and low risk, and is a "standard action" that designers hope players will use frequently, so it is given a high base probability weight.

[0033] S212: Calculate the adjustment factor ΔW based on the emotion vector E(t).

[0034] In one implementation, a high frustration value results in a positive ΔW for "defensive" animations and a negative ΔW for "reckless" animations. For each animation behavior, the adjustment factor ΔW = Σ(influence coefficients k of each dimension of the emotion vector). j Behavior type label corresponding coefficient c ij ), where k j This represents the overall influence of dimension j in the emotion vector on decision-making, and is dynamically set based on the values ​​of each dimension in the emotion vector. ij The response coefficient of the behavior type label of animation behavior i to the emotion dimension j is pre-set.

[0035] For example, setting k frustration =1.2, k valence =0.8. When the behavior type label is Aggressive / Reckless, the response coefficient to "frustration" is -0.5, and the response coefficient to "arousal" is +0.3. Therefore, the adjustment factor ΔW for the animated behavior Heavy_Attack is (1.2). (-0.5))+(0.8 0.3) = -0.36.

[0036] S213: Calculate the dynamic probability P=Softmax(W) for each animation action. base + C(t) ΔW).

[0037] S214: Select the animation behavior with the highest dynamic probability and output the corresponding animation behavior identifier A. id .

[0038] In this embodiment, the probability P of each animation behavior selected in the animation strategy library is calculated and determined by the real-time emotion vector E(t), forming a probability mapping diagram. For example, in combat, when the "frustration" dimension increases, the probability weight of the "defensive stance" animation will increase, while the probability weight of "aggressive slash" will decrease, but it will never drop to zero, preserving the uncertainty and diversity of behavior.

[0039] In one implementation, based on the dimension value of the emotion vector E(t), the blending weights of one or more stylized animation filters are calculated and applied to determine the animation adjustment parameter set A. params Specifically, it includes the following steps S221-S224.

[0040] S221: Preset multiple animation filters and define the association function between each animation filter and a dimension or combination of dimensions in the emotion vector E(t).

[0041] Each filter does not simply correspond to a single emotion, but rather to a complex emotional state, driven by a non-linear combination of multiple dimensions in E(t). The values ​​of each dimension of the animation filter and the emotion vector E(t) are shown in the table below:

[0042] S222: For each animation filter, calculate an initial weight w based on its correlation function. raw .

[0043] Specifically: Heavy filter: w raw(heavy) =max(0,E frustration -0.4) (1-E arousal The greater the sense of frustration (0.4) and the lower the activation level, the stronger the sense of heaviness.

[0044] Lightweight filter: w raw(light) =max(0,E valence ) clamp(E arousal (0.3, 1.0). A feeling of lightness is only produced when the level of pleasure is positive and the activation level is within the effective range.

[0045] Vibration filter: w raw(jittery) =sqrt(E arousal E focusActivation and focus work together to produce neurotic tremors, and their coupling effect is simulated using geometric mean.

[0046] Hesitation filter: w raw(hesitant) =(1-E valence ) E focus (1-abs(E arousal -0.5). The less unpleasant, highly focused, and the smaller the activation level deviates from the neutral value (0.5), the stronger the hesitation.

[0047] In one implementation, it is assumed that the emotion vector calculated for the current frame is E(t) = [valence = 0.3, arousal = 0.8, frustration = 0.6, focus = 0.9]. This describes a state of "frustration but high focus and tension".

[0048] Heavy filter calculation: max(0, 0.6-0.4) (1-0.8)=0.2 0.2 = 0.04; Lightweight filter calculation: max(0,0.3) clamp(0.8, 0.3, 1.0) = 0.3 0.8 = 0.24; Vibration filter calculation: sqrt(0.8) 0.9) = sqrt(0.72) ≈ 0.85; Hesitation filter calculation: (1-0.3) 0.9 (1-abs(0.8-0.5))=0.7 0.9 (1-0.3)=0.63 0.7 = 0.44.

[0049] S223: Normalize the original weights of all animation filters to obtain the normalized weights w of each animation filter. filter_1 ,w filter_2 ..., integrating the normalized weights yields the final mixed weight vector W. filter =[w filter_1 ,w filter_2 ,...].

[0050] S224: Based on the mixed weight vector W filter Multiple animation filters are overlaid to generate a set of animation adjustment parameters A. params .

[0051] In this embodiment, unlike the lookup-based mapping of "emotional state - fixed animation parameters", a dynamic probabilistic animation decision network is constructed, and an overlayable "stylized animation filter" is introduced to ensure that the adjustment not only conforms to the player's emotions but also maintains the consistency between the character's personality and the game style.

[0052] In one implementation, the player character is assumed to be in a "stealth" state. The animation strategy library contains animation clips such as "slow movement," "crouching and standing still," "peeking," and "preparing to backstab." A dynamic probability map recalculates probabilities based on the current emotion vector (e.g., frustration = 0.8, indicating high frustration) and historical data (recently, many game failures due to recklessness). This might cause the probability of "slow movement" to decrease from 60% to 40%, and the probability of "crouching and standing still" to increase from 30% to 55%. Simultaneously, high frustration and low pleasure trigger the superposition of a "heavy filter" (mixed weight 0.7) and a "hesitant filter" (mixed weight 0.3). The effect of the "heavy filter" might manifest as reducing the root skeleton movement speed of stealth movement by 15% and increasing the swaying damping of the upper body skeleton. The game engine's animation controller selects an animation (e.g., "crouching and standing still") based on the final probability and applies the mixed filter parameters for rendering.

[0053] Step S3: The game engine uses animation behavior identifier A id and animation adjustment parameter set A params Complete the animation rendering and output the results to the screen.

[0054] According to animation behavior identifier A id Load the corresponding animation behavior from the resource library or activate the corresponding animation state node. Adjust the animation parameter set A. params The parameters in the code are applied to the character's skeleton controller, skinned mesh, or particle system via the game engine's animation blueprints or scripts.

[0055] In one implementation, if the animation transition is not instantaneous, a short cross-fade time is set between the current animation and the new animation A_id. The duration of this cross-fade time can be dynamically fine-tuned according to the arousal dimension of C(t) or E(t) (the transition is faster when the arousal is high).

[0056] Step S4: By analyzing the newly generated player data stream after the animation adjustment, dynamically calculate the smoothness index, and fine-tune the parameters of the emotion decoupling model and probability mapping based on the smoothness index.

[0057] S41: Maintain a first-in-first-out data buffer of a preset length L (e.g., 300 seconds), continuously storing data pairs for each frame or second, including the emotion vector E(t), the current game state S(t) (obtained from the game engine), and the animation behavior identifier A. idAnimation adjustment parameter set A params Subsequent signals.

[0058] S42: Define an active event (Event) pos For example, defining negative events such as task completion and precise operation. neg If a character dies or remains inactive for an extended period, analyze the data pairs in the cache. If the frustration rate is greater than 0.7 for more than 10 seconds, it is recorded as a high frustration duration event. frust .

[0059] S43: Calculate the smoothness metric for the current cache window every fixed period Topt (e.g., 60 seconds). Here, α, β, and γ are fluency metrics. α represents the weight of positive events, a positive coefficient used to measure the positive contribution of positive events to the overall fluency experience; β represents the weight of negative events, a positive coefficient used to measure the degree to which negative events impair the fluency experience; and γ is a positive coefficient used to measure the negative impact of persistently high-frustration events on the experience. Initially, α can be set to 1.5, β to 2.5, and γ to 0.12.

[0060] S44: If the smoothness index F score Below the preset threshold F threshold Then, steps S45-S46 will be executed to trigger optimization.

[0061] S45: Combine the fused feature vector F of all data pairs in the data buffer. fusion The emotion decoupling model uses E(t) as input and E(t) as label input, and introduces a fluency index F. score Adjustment of the loss function.

[0062] In this embodiment, the system uses data from the past 300 seconds as a mini-training set to slightly adjust the neuron connection weights related to "frustration" judgment in the emotion decoupling model, in order to more accurately distinguish between "excitement-induced frustration" and "negative frustration caused by boredom." Simultaneously, in the dynamic probability mapping graph, for the "stealth" state, the baseline probability weight of the "crouching still" animation associated with the "frustration" dimension is slightly lowered. Through several such fine-tuning cycles, the system gradually adapts to the player's unique style.

[0063] S46: Regarding the smoothness index F score Animation behavior identifier A in reduced data pairs id Reduce its base weight W in the probability map. base .

[0064] Based on step S1 above, by fusing physiological signals, behavioral data, and game context, a precise multidimensional real-time emotion vector E(t) and confidence level C(t) are decoupled, providing the system with reliable emotion perception input. Step S2 utilizes a dynamic probability map and stylized filters to combine E(t) with the game state S(t), generating animated decisions that combine intelligent diversity with artistic consistency, and outputting animated behavior A. id Adjusting parameter A with animation params Step S3 seamlessly and smoothly applies these decision parameters to the game engine's animation system and renders them. Step S4 calculates the player experience smoothness index F using the execution effect data within the cache window. score Based on this standard, the weights of the emotion decoupling model in step S1 and the probability mapping in step S2 are fine-tuned in reverse, forming a continuous optimization loop that enables the system to learn autonomously and adapt to the player's personalized reaction patterns.

[0065] At the perception level, the fusion and decoupling of multimodal signals with game context significantly improves the accuracy, robustness, and anti-interference ability of emotional state judgment, solving the pain point of single sensor failure. At the decision-making and execution level, the combination of probabilistic mapping and filter adjustment makes animation adaptation no longer a rigid, linear mechanical reaction, but a more natural, intelligent, and organic expression that conforms to character settings and game narrative logic, greatly enhancing immersion. The introduction of a closed-loop optimization mechanism transforms the system from static, universal rules into a dynamic, personalized experience engine, capable of continuously optimizing and adjusting strategies based on each player's unique reactions, truly achieving the long-term goal of "a thousand experiences for a thousand people," demonstrating outstanding technical practicality and commercial value.

[0066] It should be noted that although the steps in the above embodiments are described in a specific order, those skilled in the art will understand that in order to achieve the effects of the present invention, different steps do not necessarily have to be executed in such an order. They can be executed simultaneously (in parallel) or in other orders, and these variations are all within the scope of protection of the present invention.

[0067] The technical solution of the present invention has been described above through preferred embodiments. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the scope of protection of the present invention.

Claims

1. A method for emotion-aware game animation adaptation, characterized in that, The method comprises the following steps: S1: Collecting multi-source signals of the player and pre-processing, and obtaining a current game context vector, inputting the processed multi-source signals and the game context vector into an emotion decoupling model, and outputting a four-dimensional emotion vector E(t)=[valence, arousal, frustration, focus] with a confidence score C(t); S2: Calculate the animation behavior identifier A from the emotion vector E(t) id and the animation adjustment parameter set A params wherein the animation behavior identifier A id is obtained by a probability mapping formed by the emotion vector E(t) S3: The game engine renders the animation according to the animation behavior identifier A id and the animation adjustment parameter set A params The animation rendering is completed, and the result is output to the screen. S4: Dynamically calculating the fluency index by analyzing the newly generated player data stream after the animation adjustment is performed, and reversely fine-tuning the parameters of the emotion decoupling model and the probability mapping diagram according to the fluency index.

2. The emotion-aware based game animation adaptation method of claim 1, wherein, The multi-source signals of the player include physiological signals, behavior operation signals and facial image signals, the physiological signals of the player are collected through a wristband device, the behavior operation signals are obtained by recording operation events per second and calculating trajectory jitter rate through a log system built in a game client, and the facial image signals are obtained by capturing facial videos of the player through a camera.

3. The emotion-aware based game animation adaption method of claim 2, wherein, A uniform high-precision millisecond-level timestamp T is stamped for each set of physiological signals, behavioral operation signals, and facial image signals stamp and the following preprocessing is performed: The PPI sequence is extracted from the collected physiological signal, time domain features and frequency domain features are calculated, and the processed physiological signal e is obtained processed =[hrv lf ,hrv hf ,gsr mean ] is obtained, wherein hrv lf represents heart rate variability low frequency power, hrv hf represents heart rate variability high frequency power, and gsr mean represents the mean skin electric response; From the collected behavioral operation signals o raw , the number of operations per second is counted to obtain the operation frequency o freq , the average pixel deviation of the preset number of valid clicks and the target center is calculated to obtain the operation accuracy o acc , the mouse movement trajectory is low-pass filtered, and the root mean square error of the smoothed trajectory is calculated to obtain the jitter index o shake , the behavioral operation signal o vector =[o freq ,o acc ,o shake ]; Face detection and key point positioning are performed on the collected face image signal to calculate eye aspect ratio ear left , eyebrow displacement brow raise , and mouth corner displacement lip corner , to obtain a face image signal f micro =[ear left ,brow raise ,lip corner ].

4. The emotion-aware based game animation adaption method of claim 3, wherein, The processed physiological signals, behavior operation signals, facial image signals and game context vectors are normalized and spliced to form a fusion feature vector F fusion (t), and F fusion (t) is input into the trained emotion decoupling model to output a four-dimensional emotion vector E(t) and a confidence score C(t). The value range of each dimension of the four-dimensional emotion vector E(t) is [-1, 1], and the value range of the confidence score C(t) is [0, 1].

5. The emotion-aware based game animation adaption method of claim 1, wherein, obtaining a game context vector c from a game engine state = [scene_id, is_combat, difficulty_level, player_health], where scene_id indicates an identity of a scenario chapter, difficulty_level indicates a current level difficulty coefficient, player_health indicates a player character health value, and is_combat indicates an enemy / friend attribute of interaction with a non-player character.

6. The emotion-aware based game animation adaption method of claim 5, wherein, A lightweight neural network model is constructed, which takes multi-source signals and game context vectors as input, and learns different game context vectors c based on attention mechanism inside the model state Different weights are assigned to physiological signals and behavioral signals in multi-source signals, and an emotion decoupling model is obtained through training.

7. The emotion-aware based game animation adaption method of claim 1, wherein, According to the emotion vector E(t), the current game state, a dynamic probability P is calculated, which determines an animation behavior identification A id , comprising the following steps, S211: define an animation strategy library for each core game character, which contains all animation behaviors available in the game state and their behavior identifiers A id Each animation behavior has a corresponding basic probability weight W base ; S212: Calculating an adjustment factor ΔW according to the emotion vector E(t); S213: Calculate the dynamic probability P of each animation behavior P = Softmax(W base + C(t) ΔW); S214: select the animation behavior with the highest dynamic probability, and output the corresponding animation behavior identifier A id .

8. The emotion-aware based game animation adaption method of claim 1, wherein, According to the dimension values of the emotion vector E(t), a mixing weight of one or more stylized animation filters is calculated and applied, determining a set of animation adjustment parameters A params , comprising the steps of, S221: Predefining a plurality of animation filters, and defining an association function of each animation filter and a dimension or a combination of dimensions in the emotion vector E(t); S222: For each animation filter, compute the original weight w according to its associated function raw ; S223: normalize the original weights of all animation filters to obtain normalized weights w of each animation filter filter_1 ,w filter_2 ,..., integrate the normalized weights to obtain a final mixing weight vector W filter =[w filter_1 ,w filter_2 ,...] S224: According to the mixing weight vector W filter The superposition of the animation filters is performed on the plurality of animation filters to generate the animation adjustment parameter set A params .

9. The emotion-aware based game animation adaption method of claim 1, wherein, The step S4 comprises, S41: maintain a first-in first-out data buffer area with a preset length L, continuously store the data pairs of each frame or each second, including the emotion vector E(t), the current game state S(t), the animation behavior identifier A id , the animation adjustment parameter set A params , the subsequent signal; S42: Define positive event Event pos and negative event Event neg , analyze data pairs in the buffer, if frustration > 0.7 for more than 10 seconds, record as a high frustration duration event Duration frust ; S43: every fixed period T opt , calculate the fluency index of the current cache window , wherein α represents the positive event weight, β represents the negative event weight, and γ represents the frustration duration weight. S44: If F score is below a preset threshold F threshold , then optimization is triggered.

10. The emotion-aware based game animation adaption method of claim 9, wherein, The optimization comprises: Fusing feature vectors F of all data pairs in the data buffer fusion (t) as input, E(t) as label input into the emotion decoupling model, introducing loss function adjustment based on F score ​ to the flow indicator F score reduced animation behavior identifier A id , reducing its base weight W base in the probability map.

Citation Information

Patent Citations

  • AI visual special effect dynamic generation system fused with multi-modal perception

    CN120318379A

  • Qt interactive game role action response control method and system fused with AI emotion recognition

    CN120578291A

  • Qt-based somatosensory interaction and AI real-time plot fused game system and control method

    CN120586402A

  • Dynamic game difficulty self-adaptive adjustment method and system based on user behavior feedback

    CN120789656A

  • User sentiment detection to identify user impairment during game play providing for automatic generation or modification of in-game effects

    US20240033640A1