A method for generating interactive animation based on a large language model and a storage medium

By integrating natural language intent with real-time pose state data, and using a large language model to generate action sequences without temporal breakpoints, the problem of high barriers to animation production and inconsistent generation in existing technologies is solved, achieving efficient and low-cost animation production and smooth interaction.

CN123181671APending Publication Date: 2026-11-27SHENZHEN SPACE DIGITAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611665298.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to automatically convert natural language intent into continuous, coherent, and interactive animated action sequences, resulting in high barriers to entry, high costs, and stiff, disjointed animation production.

Method used

By fusing natural language interaction intent with real-time pose state data, and using a large language model for causal logic decomposition and verification, a sequence of actions without temporal breakpoints is generated. Closed-loop correction is then performed using feedback data to ensure the temporal continuity and spatial accessibility of the actions.

Benefits of technology

It lowers the threshold and cost of animation production, reduces action breakpoints and posture jumps, and achieves smooth human-computer interaction and reasonable action generation in complex scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181671A_ABST
    Figure CN123181671A_ABST
Patent Text Reader

Abstract

The application discloses a kind of action sequence driving interactive animation generation method and storage medium based on large language model, the method includes: obtaining user interactive intention and host-guest real-time pose, into scene semantic context;Large language model disassembles intention into minimum action semantic unit, generates multiple-path candidate chain after reasoning screening;Reverse check time and space accessibility, eliminate invalid unit and supplement the action of link and get the chain to be driven;Adjacent action transition condition is generated and backfilling recalculation start and end time, form no-break action sequence;Action sequence is continuously driven rendering and reads feedback, and the remaining unit is incrementally modified to intention completion.The application automatically converts natural language interactive intention into continuous action sequence, improves animation generation efficiency and coherence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer graphics and artificial intelligence, and in particular to a method and storage medium for generating interactive animations driven by action sequences based on a large language model. Background Technology

[0002] With the continuous advancement of computer animation, virtual reality, and intelligent human-computer interaction technologies, using natural language descriptions to drive the generation of continuous animated action sequences for virtual characters has become a crucial requirement in application areas such as content creation, game development, virtual anchors, and intelligent companionship. Traditional animation production mainly relies on animators setting key poses frame by frame or using motion capture equipment to collect motion data from real actors. This not only demands high levels of professional skills from production personnel but also involves long production cycles, high equipment costs, and difficulty in quickly responding to diverse and personalized text descriptions. In terms of natural language-driven animation, existing technologies typically pre-establish motion fragment libraries, state machines, or script templates, mapping natural language instructions into a limited number of animation segments after simple parsing and combining them according to rules. However, natural language possesses rich ambiguity, temporality, and modifier relationships, while animated actions require precise and continuous skeletal joint trajectories and rhythmic control, resulting in a significant semantic gap between the two. While large language models possess strong semantic understanding and task planning capabilities, existing methods for generating animations using them mostly remain at the level of independent poses, short actions, or interface operation steps. They lack comprehensive modeling of the temporal connections, smooth transitions, rhythmic variations, and interactions between characters and scenes or external tools in continuous animated action sequences. This results in stiff, disjointed, or deviating-from-the-user's original intent animations. Therefore, how to lower the barrier to animation production and automatically convert natural language intent into continuous, coherent, and interactive animated action sequences using the semantic understanding capabilities of large language models is a pressing technical problem that needs to be solved in this field. Summary of the Invention

[0003] In view of this, the present invention proposes a method and storage medium for generating interactive animation driven by action sequences based on a large language model, in order to solve the problem in the prior art that it is difficult to automatically convert natural language intent into a continuous animation action sequence.

[0004] The specific technical solution of this invention is as follows: A method for generating interactive animations based on action sequences from a large language model includes the following steps: S10: Obtain the natural language interaction intent description input by the user, and simultaneously collect the real-time pose state data of the interactive subject and at least one interactive object in the current animation scene. Merge the interaction intent description with the real-time pose state data to construct a structured scene semantic context. S20, based on the scene semantic context, the large language model performs causal logic decomposition on the interaction intent, generating at least one candidate action intent chain formed by multiple smallest action semantic units arranged in causal order; S30: Based on real-time pose state data in the scene semantic context, the large language model performs reverse feasibility verification and link optimization on the candidate action intent chain, eliminates action semantic units that do not meet the constraints of temporal continuity and spatial reachability, replaces the eliminated units with equivalent action semantic units in the candidate action intent chain, or backtracks to the candidate path with the second highest confidence for re-verification, and adds connecting action semantic units at necessary positions between adjacent units to generate a chain of action semantic units to be driven. S40: For each group of adjacent action semantic units in the action semantic unit chain, the large language model generates corresponding action transition conditions; based on all action transition conditions, global temporal consistency calculation is performed to redetermine the start and end times of each action semantic unit in the chain, thereby generating a complete action sequence without temporal breakpoints. S50 sends the complete action sequence without timing breakpoints to the animation rendering engine for driving execution. During the driving execution process, based on the feedback data of the executed actions, it dynamically performs reverse feasibility verification and link optimization as well as global timing consistency calculation on the remaining action semantic unit chain that has not yet been executed, so as to achieve closed-loop correction of subsequent animations until all interactive intentions are completed.

[0005] Optionally, in S10, the structured scene semantic context consists of three types of associated semantic graph structures, namely: The intent semantic graph consists of nodes representing actions in user interaction intents, directed edges between nodes representing causal dependencies or triggering enablement relationships between actions, and nodes labeled with emotional style and intensity tendencies. The pose state diagram consists of nodes representing key skeletal nodes of the interactive subject and interactive points of each interactive object. The connecting edges between nodes represent physiological joint connections and real-time spatial distance relationships. A cross-modal spatiotemporal association graph is used to associate action nodes in the intent semantic graph one-to-one with the skeletal nodes that need to be mobilized to execute the action in the pose state graph, and to label the temporal window and spatial activity area of ​​the action execution for each association edge.

[0006] Optionally, in S20, the large language model performs causal logic decomposition on the interaction intent, specifically including: S21, based on a pre-built general event graph that covers action logic in multiple scenarios, maps the interaction intent description into multiple standardized minimum action semantic units, and performs forward reasoning along the causal link of the graph to deduce the set of subsequent action units corresponding to each unit. S22, for adjacent action semantic units derived from causal logic, verify the consistency of their states before and after execution, including the consistency of object position, the continuity of character posture and the satisfaction of scene constraints, and remove the action semantic unit paths that fail the verification.

[0007] Optionally, in S20, at least one candidate action intent chain is generated, consisting of multiple minimal action semantic units arranged in a causal order, including: S23, During the forward reasoning process, generate multiple semantically equivalent but different candidate action representations for at least some action semantic units; S24. For candidate action expressions, based on the current scene semantic context, user interaction preferences and cultural background, and taking into account their physical feasibility, cultural adaptability and fluency of expression, calculate the execution confidence of each expression; remove candidate expressions with execution confidence below a preset threshold, and sort action expressions with confidence above the threshold and located in the same causal position according to their confidence and include them in at least one candidate action intent chain to form a multi-path candidate structure.

[0008] Optionally, in S30, the large language model performs reverse feasibility verification and link optimization on the candidate action intent chain, including: Starting with the last action in the candidate action intent chain, the feasibility of connecting two adjacent action semantic units is verified one by one in reverse causal order. The verification process includes: time continuity judgment, based on human kinematics knowledge and the current upper limit of joint movement speed, verifying whether the time interval between two action units is within the preset range; In addition, it assesses spatial accessibility, verifying whether the ending posture of the previous action can smoothly transition to the starting posture required by the next action through the movement of the joints within the normal range of motion, and ensuring that there is no physical collision and the movement is balanced during the process.

[0009] Optionally, in S30, a connecting action semantic unit is inserted between two adjacent action semantic units when one of the following two situations occurs: The spatial difference between the ending position of the previous movement and the starting position of the next movement exceeds the range that can be directly transitioned by the normal movement of the joint. Between the result state of the previous action and the premise state of the next action, there are necessary state transitions that are not shown in the candidate intent chain; The added semantic units of the connecting actions include defined start and end poses, transitional movement direction, rationalized human body center of gravity movement trajectory, and multi-limb coordination constraint information.

[0010] Optionally, in S40, for each group of adjacent action semantic units in the action semantic unit chain, the large language model generates corresponding action transition conditions. Specifically, transition condition elements are generated sequentially for each group of adjacent units, and the transition condition elements include: Transition triggering conditions are defined by explicitly defining the set of pose and velocity states when the previous action is completed, which serves as a hard prerequisite for the start of the next action. The transition duration parameter specifies the minimum and maximum allowable connection duration between the action units, based on the action style and scene constraints. Transition motion curve type: Select the spatial trajectory curve type with continuously changing acceleration for the transition process.

[0011] Optionally, in S40, a global temporal consistency calculation is performed based on all action transition conditions, including: resolving and adjusting the mutual conflict constraints that may exist in the transition conditions generated by each group of adjacent units; taking the first unit of the action semantic unit chain to be driven as the benchmark, and accumulating and recursively in causal order according to the resolved transition duration parameters; if the time overlap occurs during the calculation process where the start of the next action is earlier than the end of the previous action, the execution duration of the uniform speed segment of the corresponding action unit is compressed; if there is a time gap after the end of the previous action, the execution duration of the uniform speed segment of the corresponding action unit is stretched. Both compression and stretching are limited within the preset range of the movement speed of each joint, and the time continuity and spatial accessibility constraints are still satisfied after adjustment.

[0012] Optionally, in S50, based on the feedback data of the executed actions, the remaining action semantic unit chain that has not yet been executed is dynamically subjected to reverse feasibility verification, link optimization, and global timing consistency calculation to achieve closed-loop correction of subsequent animations. This includes: receiving the actual execution time, actual end pose, and actual joint velocity data of the executed actions from the animation rendering engine; comparing the residual between the actual end pose and the predicted end pose, and the deviation between the actual joint velocity direction and the predicted direction, with a set threshold. If any one of these exceeds the threshold, the subsequent action semantic unit adjacent to the executed action is marked as a unit to be corrected; based on the actual end pose, the action transition conditions between the unit to be corrected and the executed action are re-determined, and the operations of S30 to S40 are re-executed for the remaining action semantic unit chain starting from the first unit to be corrected, generating and continuing to drive the corrected remaining action sequence.

[0013] A computer storage medium storing program instructions, which execute the aforementioned method for generating interactive animations based on action sequences from a large language model during runtime.

[0014] The present invention has at least the following beneficial effects: 1. By fusing natural language interaction intent with real-time pose state data into a structured scene semantic context, and by leveraging the causal logic decomposition and multi-path candidate mechanism of a large language model, natural language intent can be transformed end-to-end into a continuous sequence of actions. This helps reduce the dependence of interactive animation production on frame-by-frame key pose creation and pre-built action libraries, thereby lowering the production threshold and cost. 2. By constructing the intent semantic graph, pose state graph, and cross-modal spatiotemporal association graph, and by calculating the attention of the large language model, semantic information and physical state information can be integrated, which helps to reduce the disconnect between intent understanding and action generation. 3. By performing a two-dimensional feasibility check and completing the semantic units of the connecting actions in reverse order from the end, the physical rationality of the action sequence can be guaranteed from the two dimensions of temporal continuity and spatial reachability, which helps to reduce the occurrence of action breakpoints and posture jumps. 4. By generating action transition conditions and calculating global temporal consistency, a complete action sequence without temporal breaks can be formed, which helps to reduce time overlap and time gaps in action connection and reduce the possibility of action stuttering. 5. Through closed-loop correction based on execution feedback, incremental correction can be made to the unexecuted parts, which helps to reduce computational load and reduce screen jumps; 6. Through the incremental interaction intent processing mechanism, new interaction intents input by users midway can be smoothly accepted, which is conducive to achieving smooth human-computer collaborative interaction; 7. By incorporating at least one interactive object into pose state acquisition and spatial accessibility verification, it is possible to address collision avoidance requirements in multi-object interaction scenarios, which helps to ensure the rationality of actions in complex scenarios. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This is a flowchart of the main process of an action sequence-driven interactive animation generation method based on a large language model according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the three types of semantic graph structures in this invention; Figure 3 This is a flowchart of the causal logic decomposition steps S21 to S24 in this invention. Detailed Implementation

[0017] To make the technical problems to be solved, the technical solutions, and the beneficial effects of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present invention and are not intended to limit the present invention.

[0018] This invention proposes a method for generating interactive animations based on action sequences driven by a large language model. This method transforms the user's interactive intent expressed in natural language into a continuous, uninterrupted sequence of actions, and drives the rendering and execution of the interactive animation.

[0019] like Figure 1 As shown, the action sequence-driven interactive animation generation method based on a large language model of the present invention, in a basic embodiment, includes the following steps: S10: Obtain the user's interaction intent description expressed in natural language, and simultaneously collect the real-time pose state of the interactive subject and object in the current animation scene; synthesize the interaction intent description and the real-time pose state into a scene semantic context.

[0020] In one specific embodiment, the data sources for step S10 include two parts: the first part comes from the user's interactive intent description expressed in natural language. The user can use any form of input, such as text input, voice input, or mixed text and image input, and all input forms will be uniformly converted into a semantic representation form that can be processed by a large language model; the second part comes from the real-time pose state acquisition of each object in the current animation scene. The acquisition objects include the virtual character that initiates the interaction, i.e., the interactive subject, and all interactive objects in the scene, i.e., the interactive objects. The acquisition range not only covers the key skeletal node positions and orientations of the interactive subject, but also covers the interactive areas of each interactive object, the spatial boundaries and collision ranges of obstacles in the scene. The acquisition timing is completely synchronized with the acquisition of user intent, ensuring that the intent information and pose information are strictly aligned in the time dimension.

[0021] In the above embodiments, the two types of raw information collected are further synthesized into a structured scene semantic context, which consists of three interrelated semantic graph structures, forming the basis for attention calculation in the large language model.

[0022] Combined with appendix Figure 2As shown, the first type of semantic graph structure is the intent semantic graph. This graph uses actions explicitly stated or implicitly contained in the user's interaction intent as nodes. The edges connecting the nodes represent causal dependencies or triggering relationships between the actions. For example, the action of "opening the bottle cap" triggers the action of "pouring water," and the action of "pouring water" triggers the action of "putting down the cup." This sequence and causal logic are labeled in the graph as directed edges. In addition to basic causal relationships, the intent semantic graph also adds emotional style and intensity labels to each action node. The labels are based on the modifiers in the user's natural language description and the overall judgment of the scene atmosphere by the large language model. This labeling method enables the subsequently generated action sequences to adapt to different expression scenarios, avoiding misinterpretations of the same semantic action in different cultural contexts.

[0023] The second type of semantic graph structure is the pose state graph. This graph uses key skeletal nodes of the interactive subject and interactive points of the interactive objects as nodes. The connecting edges between nodes represent two types of relationships: one is the joint connection relationship of the organism itself, used to constrain the physiological rationality of subsequent action generation; the other is the real-time spatial distance relationship between nodes, used to support the physical basis for subsequent reachability judgments. The pose state graph also records the normal range of motion and the current upper limit of movement speed for each joint; these physiological limit data are derived from prior knowledge of human kinematics.

[0024] The third type of semantic graph structure is the cross-modal spatiotemporal association graph, which effectively connects the first two types of graph structures. Specifically, this graph establishes a one-to-one correspondence between action nodes in the intent semantic graph and the skeletal nodes that need to be mobilized when performing the action in the pose state graph. Each association edge not only indicates the correspondence between the action and the skeletal node, but also marks the temporal window (start and end time range) of the action execution, as well as the spatially operable area of ​​the action. The large language model performs cross-modal attention calculations on the cross-modal spatiotemporal association graph, fully integrating the semantic intent information with the physical pose information through the attention mechanism, ultimately obtaining a unified and complete scene semantic representation.

[0025] It is important to note that the three types of semantic graph structures are not isolated data silos, but rather establish a close bidirectional linking relationship through a cross-modal spatiotemporal association graph. Each action node in the intent semantic graph can be traced back to the specific skeletal node that needs to be invoked in the pose state graph to execute that action, and conversely, each skeletal node in the pose state graph can also be used to look up all related actions that are being executed or are about to be executed in the current scene.

[0026] S20: The large language model performs causal logic decomposition on the interaction intent based on the semantic context of the scene, generating a candidate action intent chain composed of the smallest indivisible action semantic units arranged in causal order.

[0027] In specific implementation, in conjunction with the appendix Figure 3 As shown, the user's expressed interaction intent, which may be relatively macro or vague, is broken down into the smallest semantic units of action that cannot be further subdivided according to the causal logic of the event. These smallest units are then linked together in the order of the causal occurrence to form multiple candidate action intent chains that can be selected.

[0028] S21, the decomposition process relies on a pre-built general event graph as its knowledge foundation. This event graph contains the causal logic of actions in various typical scenarios, such as daily behavior scenarios, professional operation scenarios, and social interaction scenarios, and stores a large number of standardized action semantic units and their causal triggering relationships. When the large language model receives the user's interaction intent description, it calls this event graph to map each action mentioned in the user's description to a standardized action semantic unit in the event graph.

[0029] The large language model performs forward logical reasoning along the causal chain of actions. The goal of forward reasoning is to deduce the set of subsequent action semantic units that will be triggered or enabled after each action semantic unit occurs. The reasoning is based on the general causal rules stored in the event graph, and is combined with the pose state information in the current scene semantic context for scene adaptation. As an example, in a desktop picking scene, the "reaching out" action usually triggers the "grasping" action. However, if the position of the target object in the scene is beyond the reach of the current hand, an auxiliary action unit of "moving the body closer" needs to be inserted between "reaching out" and "grasping".

[0030] In S22, the large language model performs state consistency checks on adjacent action semantic units. The check includes verifying whether the resulting state of the preceding action semantic unit satisfies the prerequisite states required for the subsequent action semantic unit to execute. Specific check dimensions include consistency of object position, continuity of character posture, and satisfaction of scene constraints. During the check, paths where the resulting state of the preceding action semantic unit does not match the prerequisite state of the subsequent action semantic unit are directly eliminated and do not enter the final result of the candidate action intent chain. After passing the check, each retained action semantic unit is clearly marked with the prerequisite states it must satisfy before execution and the resulting state after execution.

[0031] S23. To improve the scene adaptability of the final action, the large language model generates multiple semantically equivalent but different candidate action representations for each action semantic unit. This multi-representation generation mechanism aims to reserve sufficient alternatives for subsequent steps, avoiding the efficiency problem of having to regenerate the complete action chain from scratch after a single path verification failure. For each candidate action representation, the large language model estimates the execution confidence of the candidate representation in the current scene's semantic context, taking into account factors such as the current scene's context, the user's past interaction preferences, and the scene's corresponding cultural background.

[0032] In an optional embodiment, the confidence level is calculated in the following manner: The first step is to determine the scores for each dimension. The confidence score is calculated by comprehensively considering multiple dimensions, including the physical feasibility of the action, the cultural compatibility of the scene, and the fluency and naturalness of the expression. Candidate action expressions with a confidence score lower than a preset confidence threshold are directly eliminated. Only candidate expressions that meet the qualified criteria are retained as actionable semantic units. In this embodiment, the scores of candidate action expressions are calculated on the three dimensions of physical feasibility, cultural compatibility, and fluency of expression. The scores for each dimension are normalized to a value range of 0 to 1. Physical feasibility score: determined by the degree to which the candidate action description satisfies the temporal continuity and spatial accessibility constraints within its time window. When the constraints are fully satisfied, the score approaches 1. The greater the pose difference or the more the time interval deviates from the preset range, the lower the score. Cultural fit score: determined based on the emotional style and intensity of the candidate action expression, and the degree of matching with the context and cultural background of the current scene; Fluency score: Determined based on the semantic coherence between the candidate action statement and the semantic units of the preceding and following actions. The large language model scores the coherence and naturalness of the statement in combination with the causal chain context.

[0033] The second step is weighted summation, calculating the execution confidence level using a weighted summation method: C i =α·P i +β·K i +γ·F i ; Among them, C i P represents the execution confidence of the i-th candidate action. i K i F iThese are the physical feasibility score, cultural compatibility score, and fluency score, respectively; α, β, and γ are the weight coefficients corresponding to the three dimensions, satisfying α + β + γ = 1; since the scores of each dimension are all in the range of 0 to 1, the execution confidence also falls in the range of 0 to 1. The weight coefficients are configured according to the scenario type. For example, the value of α is appropriately increased for scenarios that are mainly based on physical interaction, and the value of β is appropriately increased for scenarios that are mainly based on social expression.

[0034] The third step is threshold screening. Candidate action expressions with a confidence level lower than the preset confidence level threshold will be directly eliminated. Only candidate expressions that meet the qualified criteria will be retained as actionable semantic units.

[0035] S24, when multiple actionable semantic units exist at the same causal location, these action units are arranged in descending order of execution confidence and written into the final candidate action intent chain in the form of a multi-path candidate action intent chain. This multi-path design allows subsequent reverse resolution steps to prioritize based on confidence level, rather than getting bogged down in exhaustive searches of a single path. During subsequent reverse resolution, the candidate path with the highest execution confidence is processed first. If this candidate path encounters temporal continuity or spatial reachability issues, it automatically reverts to the candidate path with the second highest confidence level for further verification, and so on. This multi-path selection and failure fallback design significantly improves the robustness of action chain generation.

[0036] S30: The large language model performs reverse resolution on the candidate action intent chain based on the real-time pose state, eliminating action semantic units that cannot be closed in terms of temporal continuity and spatial reachability, and adding implicit connecting action semantic units to obtain the action semantic unit chain to be driven.

[0037] In practice, starting from the end of the candidate action intent chain, the feasibility of connecting adjacent action semantic units is checked segment by segment in reverse causal order. Invalid action units that do not meet the requirements of temporal continuity or spatial accessibility are eliminated, and connecting action semantic units are added when necessary. Finally, a temporally coherent and spatially accessible chain of action semantic units to be driven is obtained. The necessary cases mentioned above include: First type: Spatial accessibility gap, where the difference between the pose at the end of the previous action and the pose required to start the next action exceeds the ability of the interactive subject's joints to directly transition within the normal range of activity. Typical cases include: Limb end position jump: when the limb end (hand, foot, etc.) is at position A at the end of the previous action, the next action requires it to start at position B, and A and B The distance between them exceeds the range that the joint can smoothly reach with extension, and direct switching will result in a teleportation-like jump; abrupt changes in joint posture: when the previous action ends, some joints are in a certain posture (such as fingers fully extended, forearm hanging down), and the next action requires the joint to be in a significantly different posture (such as fingers flexed and gripping, forearm raised), the joint angle cannot be changed naturally within a single action; switching of support state: the support state of adjacent actions is different (such as switching from standing to squatting, from sitting to standing), the center of gravity position and support surface change, and direct switching will disrupt the balance of movement. The second type: time continuity gap, adjacent actions cannot be naturally connected in terms of time sequence or speed. Typical situations include: between the smallest semantic units of action obtained by causal logic decomposition, there is a preparatory action that is not developed for physical execution but is necessary for causal reasoning (such as the lack of the implicit action of "standing up" between "putting down the cup" and "leaving the seat", direct execution will cause a break in the time sequence); speed connection break: the previous action ends at a high speed and the next action requires starting from a near-static state, or vice versa, direct switching will violate the acceleration continuity of joint movement and human movement habits. The third category is implicit state transition gaps, where there is a necessary intermediate state transition between the result state of the previous action and the premise state of the next action that is not explicitly represented by the candidate action intention chain. Typical cases include: object holding state transition: when the previous action ends, the object is held by one side limb or is located in a certain position, and the next action requires the object to be located on the other side limb or in another position (such as "pouring water" followed by "changing hands to hold the cup"). There is no explicit object transfer action in between. Multi-object interaction switching: adjacent actions act on different interactive objects, and there is no connecting action of turning, approaching or adjusting posture to switch from object A to object B.

[0038] When any of the above-mentioned gaps is determined to exist, it is considered "necessary". A connecting action semantic unit is then inserted between two adjacent action semantic units. The start and end poses of the connecting action semantic unit strictly match the requirements of the two actions before and after. The transition direction, center of gravity movement trajectory and limb coordination constraints are determined according to the laws of human kinematics. After insertion, the adjacent units before and after the insertion position are re-performed with reverse feasibility verification. If no new constraint conflicts are introduced, the unit is retained.

[0039] Specifically: S31, the reverse resolution process is as follows: Starting from the last action semantic unit in the candidate action intent chain, check each pair of adjacent action semantic units in the reverse direction of the causal order. For each pair of adjacent action semantic units, the large language model will make a feasibility judgment in two dimensions based on the result state of the previous action semantic unit and the premise state of the next action semantic unit.

[0040] The first judgment dimension is temporal continuity judgment. The goal of this judgment is to confirm whether the time interval between two adjacent actions is reasonable. It should not be too short, resulting in rushed and stiff action execution or exceeding the physiological limits of the human body; nor should it be too long, leading to sluggish and disjointed action transitions or noticeable stuttering. The specific judgment is based on statistical data on the normal execution duration range of different types of actions from prior knowledge of human kinematics, and the upper limit of the current joint movement speed recorded in the pose state diagram within the scene's semantic context. The temporal continuity judgment simultaneously checks whether both the minimum and maximum time interval constraints are met.

[0041] The second dimension of judgment is spatial accessibility judgment. The goal of this judgment is to confirm whether the end pose after the previous action is completed can be smoothly reached to the starting pose required by the next action by moving the interactive subject's joints within their normal range of motion. Spatial accessibility judgment not only considers static pose accessibility, but also comprehensively considers collision detection during movement to confirm that there will be no physical collisions with scene obstacles or other objects during the action, and at the same time, it checks whether the character's center of gravity is always within a reasonable support range during the action to avoid situations that do not conform to the laws of physics, such as loss of balance and falls.

[0042] Action semantic units that do not meet the requirements of temporal continuity or spatial reachability are marked as units to be eliminated. At the same time, the specific reasons for the constraint conflict are recorded and written into the set of constraints to be corrected. The subsequent processing of the units to be eliminated depends on their position in the candidate action chain: if the unit is the end unit of the current path, the entire path is discarded and backtracking to the previous causal bifurcation point to select a suboptimal candidate path; if the unit is located in the middle of the path, an attempt is made to find an equivalent action unit in the multi-path structure of the candidate action chain to replace it.

[0043] S32. When the following two situations occur, a connecting action needs to be added between two adjacent action semantic units: The first situation is that the pose difference between two adjacent action semantic units exceeds the preset range of direct transition, that is, there is a large jump between the end position of the limb at the end of the previous action and the starting position required by the next action, and conventional joint movements cannot directly complete the transition; The second situation is that there is a necessary state transition between the result state of the previous action semantic unit and the premise state of the next action semantic unit that is not explicitly represented by the candidate action intention chain.

[0044] The generation of connecting movements is automatically completed by a large language model. The generated semantic units of connecting movements include complete start and end pose definitions, clear transitional movement directions, rationalized center of gravity movement trajectories, and coordination constraint information between multiple limbs. The start and end poses of the connecting movement strictly match the pose requirements of the two adjacent movements before and after it, ensuring the continuity of the entire movement chain after insertion. The center of gravity movement trajectory and limb coordination constraints of the connecting movement are generated according to the laws of human kinematics, avoiding transitional postures that do not conform to physiological limits.

[0045] After the connecting action semantic unit is generated, it is inserted between two adjacent action semantic units. After insertion, the large language model re-performs reverse resolution on the adjacent action semantic units before and after the insertion position to verify whether the entire action chain after the addition of the connecting action fully meets the requirements of temporal continuity and spatial reachability. The purpose of re-verification is to ensure that the introduction of the connecting action does not introduce new constraint conflicts; only connecting actions that pass the verification will be ultimately retained.

[0046] S40: For each group of adjacent action semantic units in the action semantic unit chain, the large language model generates action transition conditions, and all action transition conditions are used as correction contexts to backfill the large language model, so as to recalculate the start time and end time of each action semantic unit and form a breakpoint-free action sequence.

[0047] S41, the generation of action transition conditions is performed independently for each group of adjacent action semantic units. The large language model first reads the termination state information of the previous action semantic unit and the start state information of the next action semantic unit, and then generates three types of transition condition elements based on these two sets of state information.

[0048] The first type of transition condition element is the transition trigger condition. This element clarifies the set of pose and velocity states that must be satisfied at the final moment of the previous action, and is a hard prerequisite for the smooth start of the subsequent action. The specific content of the transition trigger condition is derived by the large language model based on the physical connection requirements of the two actions. As an example, between the actions of "raising a glass" and "drinking," the transition trigger condition will clearly specify parameters such as the wrist position, the posture of holding the glass, and the orientation of the glass rim at the end of the raising-the-glass action, as well as the matching relationship between the wrist movement speed and the glass movement speed.

[0049] The second type of transition condition element is the transition duration parameter. This element specifies the minimum and maximum allowable duration of the connection process between adjacent action semantic units. The duration parameter is set based on action style judgment and scene constraints. For example, the transition duration of fast-response actions is usually shorter to reflect agility, while the transition duration of gentle interactive actions is usually longer to reflect composure.

[0050] The third type of transitional condition element is the transitional motion curve type. This element specifies the type of curve used for the limb movement trajectory during the transition. In principle, it is a spatial trajectory curve with continuously changing acceleration to avoid abrupt stops during movement transitions. The specific type of motion curve chosen will match the emotional style corresponding to the movement. For example, a brisk rhythmic movement uses a fast-paced curve type, while a soothing movement uses a smooth and gentle curve type.

[0051] S42 addresses transition conditions generated by multiple adjacent units within an action semantic unit chain, which may involve conflicting state constraints. For example, two consecutive transition segments might have completely opposite velocity requirements for the same joint, or contradictory requirements for the trajectory of the limb's extremities. The large language model resolves these conflicts consistently by fine-tuning the constraints while maintaining naturalness and reasonableness, ensuring consistency among all transition conditions. The resolved constraint set is then integrated into a unified corrected context and backfilled into the large language model for subsequent computation.

[0052] S43, the large language model begins to recalculate the start and end times of each action semantic unit. The calculation process starts from the first action semantic unit in the action semantic unit chain and proceeds sequentially according to causal order. Specifically, it reads the result state of the current action semantic unit and the premise state of the next action semantic unit in turn; based on the transition triggering conditions and transition duration parameters in the backfilled correction context, it determines the transition start and end times between adjacent action semantic units; for each action semantic unit, it accumulates and recursively calculates the start and end times of each action semantic unit based on its internal action duration and the previous transition duration.

[0053] In a further embodiment, during the cumulative iteration process, if time overlap occurs (i.e., the start time of the later action is earlier than the end time of the previous action), or if time gaps occur (i.e., the start time of the later action is later than the sum of the end time and transition duration of the previous action), the large language model will adjust the duration based on the joint movement speed constraints involved in the semantic unit of the action. Specifically: for time overlap, the execution duration of the uniform speed segment will be compressed; for time gaps, the execution duration of the uniform speed segment will be stretched. Both compression and stretching operations must be performed within the preset range of joint movement speed to ensure that the adjusted action still conforms to the laws of human movement and does not exhibit any abnormal speed or incongruity.

[0054] S44, through the above-mentioned cumulative recursion and duration adjustment, a complete action sequence that is completely continuous in time and has no breaks is finally formed. Each action semantic unit in this sequence has a clear start time and end time, and adjacent units are naturally connected by smooth transition actions.

[0055] S50 sends the unbroken action sequence to the animation rendering engine, continuously drives the interactive animation with the action semantic unit as the smallest driving unit, and reads the animation execution feedback. In the remaining action semantic units that have not yet been executed, it re-executes the reverse resolution and transition condition backfilling until the interactive intent is completed.

[0056] The S51 animation rendering engine uses individual motion semantic units (MSUs) as the smallest driving unit to continuously drive the rendering and playback of interactive animations. After each MSU is executed, the animation rendering engine returns the actual execution information of that unit to the large language model. The feedback information includes three core data points: actual execution time, which is the actual length of time the MSU takes from start to finish; actual end-effector pose, which is the actual position and posture of the limb end when the action ends; and actual joint velocity, which is the actual movement velocity exhibited by each joint during the action. This feedback data comes from the animation rendering engine's real-time monitoring of the virtual character's skeletal animation.

[0057] In step S52, after receiving feedback data, the large language model compares the actual end-effector pose with the previously predicted end-effector pose to calculate the pose residual; simultaneously, it compares the actual joint velocity direction with the previously predicted velocity direction to calculate the velocity direction deviation. The pose residual and velocity direction deviation together constitute the evaluation criteria for the accuracy of the current action execution. When the pose residual exceeds a preset pose deviation threshold, or the velocity direction deviation exceeds a preset angle deviation threshold, the large language model marks the subsequent action semantic unit adjacent to this action semantic unit that has not yet been executed as a unit to be corrected. The deviation threshold is set based on a preset range perceptible to the human eye, ensuring that only deviations exceeding the audience's acceptable level will trigger the correction process, avoiding overreaction to minor deviations.

[0058] S53, after labeling, the large language model only re-executes the reverse resolution and transition condition backfilling on the semantic units to be corrected and their subsequent unexecuted action semantic units to generate the corrected remaining action sequence. The parts that have already been executed remain completely unchanged, avoiding any jumps or rewinds in the screen. This incremental correction strategy can significantly reduce the computational load in real-time interaction, shorten response latency, and ensure the continuity and smoothness of animation playback.

[0059] During continuous animation playback, the system continuously monitors whether the user inputs new interactive intents in natural language. When a new interactive intent is detected, the system does not forcibly interrupt the currently executing action. Instead, it waits for the current action to reach a natural pause point before merging the new interactive intent description with the semantic units of the actions that have not yet been completed into an incremental interactive intent. The incremental interactive intent enters a new scene semantic context, where the large language model re-executes causal logic decomposition and reverse resolution in the new context, only eliminating or replacing action semantic units that have not yet been executed and have causal conflicts with the new interactive intent. At the same time, the large language model automatically generates transitional action semantic units that connect the starting action of the new interactive intent with the already executed end state, ensuring a smooth transition from the current state to the new intent action. Only after the incremental interactive intent is completed will the system determine that the entire round of interactive animation has been completed.

[0060] The following is a specific embodiment of the action sequence-driven interactive animation generation method based on a large language model according to the present invention.

[0061] In an indoor desktop scenario, the interactive subject is a virtual character, and the interactive object is a water glass on the table. The user's interaction intent, input in natural language, is described as "Please have the character pick up the water glass, take a sip of water, and then put it back on the table." The large language model performs causal logic decomposition based on the scene's semantic context, mapping this intent into indivisible minimum action semantic units such as "reaching towards the water glass," "grasping the water glass," "lifting the water glass," "tilting the water glass to drink," and "putting the water glass back," forming a candidate action intent chain in causal order. Reverse resolution, starting from the last action semantic unit and examining adjacent action semantic units pair by pair, reveals that the resulting state of the "grasping the water glass" action semantic unit is fingers closed on the handle and palm against the glass, while the prerequisite state of the "lifting the water glass" action semantic unit requires the forearm to be raised, the wrist stable, and the glass nearly vertical. The difference in posture between the two exceeds the range of direct transition, and spatial accessibility is not satisfied. To address this, the large language model inserts an implicit connecting action semantic unit, "adjust the grip posture and raise the forearm," between "grasping the water cup" and "raising the water cup." This connecting action semantic unit includes complete start and end pose definitions, a clear transitional movement direction, a rationalized center of gravity movement trajectory, and coordination constraint information between multiple limbs, ensuring that the result state of the previous action smoothly satisfies the prerequisite state of the subsequent action. After this insertion, this action chain becomes a chain of action semantic units to be driven, where action semantic units such as "grasping the water cup," "adjusting the grip posture and raising the forearm," and "raising the water cup" are sequentially adjacent.

[0062] For adjacent action semantic units that meet the requirements of temporal continuity and spatial accessibility after reverse resolution and do not require additional connecting actions, such as "lifting the water glass" and "tilting the water glass to drink," the system will independently generate action transition conditions for this group of adjacent action semantic units. The large language model reads the termination state information of the "lifting the water glass" action semantic unit and the starting state information of the "tilting the water glass to drink" action semantic unit, and generates three types of transition condition elements: the transition trigger condition specifies the wrist position, cup grip posture, cup opening orientation, and the matching relationship between the wrist movement speed and the cup movement speed that must be met at the last moment of the "lifting the water glass" action; the transition duration parameter specifies the minimum and maximum allowed duration of the connecting process to reflect the ease of the smooth interactive action; the transition motion curve type selects a smooth and gentle spatial trajectory curve to avoid abrupt changes during action switching. All these action transition conditions are used as correction contexts to fill back into the large language model. The large language model starts from the first action semantic unit in the action semantic unit chain and accumulates and recursively calculates the start and end times of each action semantic unit. When time overlap occurs, the execution time of the uniform speed segment is compressed. When time gap occurs, the execution time of the uniform speed segment is stretched, ultimately forming a completely continuous action sequence in time without any breakpoints.

[0063] From an overall logical perspective, each pair of consecutive smallest action semantic units in the chain of action semantic units to be driven constitutes a group of adjacent action semantic units, such as "reaching out to the water cup" and "grasping the water cup", "grasping the water cup" and "adjusting the grip on the cup and raising the forearm", "adjusting the grip on the cup and raising the forearm" and "raising the water cup", "raising the water cup" and "tilting the water cup to drink", etc. The system performs temporal continuity and spatial reachability checks on each group of adjacent action semantic units. When the result state of the previous action semantic unit cannot satisfy the prerequisite state of the next action semantic unit, an implicit connecting action semantic unit is added. For adjacent groups that can be directly transitioned or whose state gaps have been compensated by connecting action semantic units, action transition conditions, including transition trigger conditions, transition duration parameters, and transition motion curve types, are generated. By connecting action semantic units to compensate for pose and state gaps, constraining the connection process between each group of adjacent action semantic units through action transition conditions, and eliminating time overlap and time gaps through backfilling and recalculation, the animation rendering engine can continuously drive interactive animation with action semantic units as the smallest driving unit, achieving a complete action sequence without breaks or stutters.

[0064] This invention also protects a computer storage medium storing program instructions that, when executed, perform the action sequence-driven interactive animation generation method based on any of the above-mentioned technical solutions.

[0065] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for generating interactive animations driven by action sequences based on a large language model, characterized in that, Includes the following steps: S10, obtain the natural language interaction intent description input by the user, and simultaneously collect the real-time pose state data of the interactive subject and at least one interactive object in the current animation scene, and fuse the interaction intent description with the real-time pose state data to construct a structured scene semantic context. S20, based on the scene semantic context, the interaction intent is decomposed by the large language model to generate at least one candidate action intent chain formed by multiple smallest action semantic units arranged in causal order; S30, based on the real-time pose state data in the scene semantic context, the large language model performs reverse feasibility verification and link optimization on the candidate action intention chain, eliminates action semantic units that do not meet the constraints of temporal continuity and spatial reachability, replaces the eliminated units with equivalent action semantic units in the candidate action intention chain, or backtracks to the candidate path with the second highest confidence for re-verification, and adds connecting action semantic units at necessary positions between adjacent units to generate a chain of action semantic units to be driven. S40, for each group of adjacent action semantic units in the action semantic unit chain, the large language model generates corresponding action transition conditions; based on all the action transition conditions, a global temporal consistency calculation is performed to redetermine the start time and end time of each action semantic unit in the chain, thereby generating a complete action sequence without temporal breakpoints. S50, the complete action sequence without timing breakpoints is sent to the animation rendering engine for execution; During the execution process, based on the feedback data of the executed actions, the reverse feasibility verification and link optimization, as well as the global temporal consistency calculation, are dynamically performed on the remaining semantic unit chains of actions that have not yet been executed, so as to achieve closed-loop correction of subsequent animations until all interactive intentions are completed.

2. The action sequence-driven interactive animation generation method as described in claim 1, characterized in that, In step S10, the structured scene semantic context consists of three types of associated semantic graph structures, namely: The intent semantic graph consists of nodes representing actions in user interaction intents, directed edges between nodes representing causal dependencies or triggering enablement relationships between actions, and nodes labeled with emotional style and intensity tendencies. The pose state diagram consists of nodes representing key skeletal nodes of the interactive subject and interactive points of each interactive object. The connecting edges between nodes represent physiological joint connections and real-time spatial distance relationships. A cross-modal spatiotemporal association graph is used to associate one-to-one action nodes in the intent semantic graph with the skeletal nodes that need to be mobilized to perform the action in the pose state graph, and to label the temporal window and spatial activity area of ​​the action execution for each association edge.

3. The action sequence-driven interactive animation generation method as described in claim 1, characterized in that, In step S20, the causal logic decomposition of the interaction intent by the large language model specifically includes: S21, based on a pre-built general event graph that covers action logic in multiple scenarios, maps the interaction intent description into multiple standardized minimum action semantic units, and performs forward reasoning along the causal link of the graph to deduce the set of subsequent action units corresponding to each unit. S22, for adjacent action semantic units derived from causal logic, verify the consistency of their states before and after execution, including the consistency of object position, the continuity of character posture and the satisfaction of scene constraints, and remove the action semantic unit paths that fail the verification.

4. The action sequence-driven interactive animation generation method as described in claim 3, characterized in that, In step S20, at least one candidate action intent chain is generated, which is formed by arranging multiple minimal action semantic units in causal order, including: S23, During the forward reasoning process, generate multiple semantically equivalent but different candidate action representations for at least some action semantic units; S24. For the candidate action expressions, based on the current scene semantic context, user interaction preferences and cultural background, and taking into account their physical feasibility, cultural adaptability and fluency of expression, calculate the execution confidence of each expression; remove candidate expressions with execution confidence below a preset threshold, and sort the action expressions with confidence above the threshold and located in the same causal position according to their confidence and include them in the at least one candidate action intent chain to form a multi-path candidate structure.

5. The action sequence-driven interactive animation generation method as described in claim 1, characterized in that, In step S30, the large language model performs reverse feasibility verification and link optimization on the candidate action intent chain, including: Starting from the last action of the candidate action intent chain, the feasibility of connecting two adjacent action semantic units is verified one by one in reverse causal order. The verification process includes: time continuity judgment, based on human kinematics knowledge and the current upper limit of joint movement speed, verifying whether the time interval between two action units is within the preset range; In addition, it assesses spatial accessibility, verifying whether the ending posture of the previous action can smoothly transition to the starting posture required by the next action through the movement of the joints within the normal range of motion, and ensuring that there is no physical collision and the movement is balanced during the process.

6. The action sequence-driven interactive animation generation method as described in claim 5, characterized in that, In step S30, a connecting action semantic unit is inserted between the two adjacent action semantic units when one of the following two situations occurs: The spatial difference between the ending position of the previous movement and the starting position of the next movement exceeds the range that can be directly transitioned by the normal movement of the joint. Between the result state of the previous action and the premise state of the next action, there are necessary state transitions that are not shown in the candidate intent chain; The added semantic units of the connecting actions include defined start and end poses, transitional movement directions, rationalized human body center of gravity movement trajectories, and multi-limb coordination constraint information.

7. The method for generating interactive animation driven by action sequences as described in claim 1, characterized in that, In step S40, for each group of adjacent action semantic units in the action semantic unit chain, the large language model generates corresponding action transition conditions. Specifically, transition condition elements are generated sequentially for each group of adjacent units, and the transition condition elements include: Transition triggering conditions are defined by explicitly defining the set of pose and velocity states when the previous action is completed, which serves as a hard prerequisite for the start of the next action. The transition duration parameter specifies the minimum and maximum allowable connection duration between the action units, based on the action style and scene constraints. Transition motion curve type: Select the spatial trajectory curve type with continuously changing acceleration for the transition process.

8. The action sequence-driven interactive animation generation method as described in claim 7, characterized in that, In step S40, a global timing consistency calculation is performed based on all the aforementioned action transition conditions, including: Consistent resolution and adjustment are performed on the possible conflicting constraints of the transition conditions generated by adjacent units in each group; Based on the first unit of the action semantic unit chain to be driven, and according to the resolved transition duration parameter, the cumulative recursion is performed along the causal order. If, during the calculation process, the start time of the next action overlaps with the end time of the previous action, the execution time of the uniform speed segment of the corresponding action unit will be compressed. If there is a time gap after the previous action ends, the execution time of the uniform speed segment of the corresponding action unit is stretched. Both compression and stretching are limited to the preset range of the movement speed of each joint, and the time continuity and spatial accessibility constraints are still satisfied after adjustment.

9. The method for generating interactive animation driven by action sequences as described in claim 1, characterized in that, In step S50, based on feedback data from executed actions, the reverse feasibility check and link optimization, as well as the global temporal consistency calculation, are dynamically performed on the remaining semantic unit chains of actions that have not yet been executed, to achieve closed-loop correction for subsequent animations, including: Receive data from the animation rendering engine on the actual execution time, actual end pose, and actual joint velocity of the executed actions; The residual between the actual end pose and the predicted end pose, and the deviation between the actual joint velocity direction and the predicted direction are compared with a set threshold. If any one of them exceeds the threshold, the semantic unit of the subsequent action adjacent to the executed action is marked as a unit to be corrected. Based on the actual end pose, the action transition conditions between the unit to be corrected and the already executed action are re-determined, and the operations of S30 to S40 are re-executed for the remaining action semantic unit chain starting from the first unit to be corrected, generating and continuing to drive the corrected remaining action sequence.

10. A computer storage medium storing program instructions thereon, the program instructions executing the action sequence-driven interactive animation generation method based on a large language model as described in any one of claims 1 to 9 during runtime.