A human motion prediction method based on low-rank compressed attention
By combining low-rank compressed attention and multi-granularity excitation modules, the problems of high computational complexity and insufficient feature enhancement in existing technologies are solved, achieving efficient human motion prediction and making it suitable for real-time safety prediction in human-machine collaborative manufacturing scenarios.
Patent Information
- Application Number
- CN202611578772.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-13
- Publication Date
- 2026-11-20
AI Technical Summary
Existing human motion prediction methods based on diffusion models and Transformers suffer from high computational complexity of self-attention, large number of model parameters, and low inference efficiency. Furthermore, single-scale feature enhancement is difficult to capture both local motion changes and global motion trends simultaneously, resulting in a tradeoff between prediction accuracy, generation diversity, and real-time performance. This makes it difficult to meet the real-time safety prediction requirements in human-machine collaborative manufacturing scenarios.
A low-rank compressed attention mechanism is used to perform low-rank projection compression on the query vector and key vector. Combined with a multi-granularity activation module, local and global temporal features are extracted. Feature recalibration and nonlinear transformation are performed through a multi-level iterative Transformer module to generate future human motion prediction results.
It significantly reduces the number of parameters and computational overhead in attention calculation, improves the contextual consistency and robustness of prediction results, adapts to the low latency and high reliability requirements of industrial human-machine collaboration scenarios, and meets the deployment needs of robot controllers and edge computing devices.
Smart Images

Figure CN123126785A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of human motion prediction and human-machine collaborative intelligent manufacturing technology, and in particular to a human motion prediction method based on low-rank compressed attention. Background Technology
[0002] Human motion prediction is a core supporting technology for realizing human-machine collaborative manufacturing and intelligent safety monitoring. It outputs the joint motion state at future moments by performing feature modeling and trajectory extrapolation on historical human posture sequences, providing crucial information for collaborative robot trajectory planning, collision risk prediction, and proactive auxiliary decision-making. With the promotion of human-centered manufacturing models and the continuous expansion of industrial human-machine collaborative scenarios, production systems are placing higher demands on the accuracy, generation diversity, and real-time inference of human motion prediction. Currently, the technology in this field has gradually evolved from early deterministic single-path prediction to multimodal generative prediction. Among these, diffusion models, with their stable training process and high-quality generated sequences, are gradually becoming the mainstream technical framework for stochastic human motion prediction. The Transformer architecture, relying on its powerful long-term dependency modeling capabilities, is widely used for motion sequence feature extraction and temporal relationship modeling. The combination of these two technologies can generate diverse prediction results that conform to the laws of human motion, possessing high industrial application value.
[0003] In real-world production scenarios of human-robot collaborative manufacturing, existing technologies still face significant implementation bottlenecks, making it difficult to simultaneously meet the comprehensive requirements of high precision, multimodality, and low latency. On one hand, diffusion-based prediction models based on the Transformer architecture generally employ standard multi-head self-attention mechanisms, whose computational complexity increases quadratically with sequence length. When the input observation sequence is long or the prediction step size is large, attention calculations result in extremely high storage and computational overhead, leading to a large number of overall model parameters and excessively high inference latency. This makes it difficult to deploy on robot controllers and edge computing devices with limited computing power, and it cannot meet the low-latency requirements for real-time safety prediction in industrial scenarios. On the other hand, human motion sequences simultaneously contain local joint movement changes at a short timescale and overall motion trends at a long timescale. Existing model feature enhancement modules mostly rely on single-scale global pooling or fixed-form feature compression, which cannot simultaneously capture fine-grained local action details and global motion evolution patterns. This results in insufficient contextual consistency of prediction results and significantly increased prediction errors in complex action switching and boundary scenarios. In addition, the conditional injection mechanism of some diffusion prediction methods is accompanied by additional encoding and feature modulation modules, further exacerbating model complexity. Ultimately, this creates a contradiction between prediction accuracy, generation diversity, and real-time deployment, which restricts the large-scale application of related technologies in industrial human-machine collaboration scenarios.
[0004] A search revealed a patent with publication number CN117475518A entitled "A Synchronous Human Motion Recognition and Prediction Method and System." This scheme employs a combination of graph convolutional networks and graph attention networks for spatial modeling, and combines temporal convolution and self-attention for temporal modeling. It also constructs a bidirectional information transmission mechanism for motion recognition and prediction, and achieves collaborative optimization of the two tasks through a multi-objective loss function. This scheme can improve feature utilization efficiency by leveraging the correlation between tasks, and the graph structure modeling conforms to the topological relationship of human joints, giving it certain advantages in joint recognition and prediction scenarios. However, its core backbone relies on a graph convolutional architecture, which is weaker than the Transformer structure in modeling long-distance temporal dependencies. Furthermore, the self-attention module is not lightweight and compressed, resulting in high computational overhead in long-sequence prediction scenarios. It also lacks a multi-timescale feature adaptive recalibration mechanism for motion prediction tasks, making it unable to simultaneously address the perception needs of local action changes and global motion trends. Moreover, it does not introduce a diffusion generation framework, resulting in insufficient diversity of prediction results and making it difficult to adapt to random motion prediction scenarios. The patent with publication number CN120705805A, entitled "A Method and System for Predicting Human Motion Based on Spatiotemporal Modeling of Diffusion Model," employs a spatiotemporal cross-fusion graph convolutional network and a stacked motion residual learning network to construct a noise prediction network. It simultaneously models the spatial topological relationships of joints and the evolutionary laws of the temporal dimension through a double transposed graph convolutional structure, and achieves diffusion-style prediction with conditional injection by combining a masking mechanism. This scheme can effectively integrate spatiotemporal constraint information and gradually optimize the prediction results through residual learning, thereby reducing computational complexity to a certain extent. However, it still relies on graph convolution as its core backbone, which limits its ability to model long-sequence temporal sequences. Furthermore, it does not perform low-rank compression optimization for the attention calculation stage, resulting in limited efficiency improvement in long-sequence prediction scenarios. It also lacks an adaptive recalibration mechanism for multi-granular temporal features, making it difficult to fully explore the dynamic information of human motion at different time scales. In summary, existing technologies cannot achieve an effective balance between long-term accurate modeling, low computational overhead, and multi-scale feature perception. Therefore, there is an urgent need to propose a human motion prediction method that combines efficient temporal modeling and multi-granularity feature enhancement capabilities to resolve the technical contradiction of difficulty in balancing prediction accuracy, generation diversity, and inference real-time performance, and to meet the comprehensive needs of motion prediction technology in human-machine collaborative manufacturing scenarios. Summary of the Invention
[0005] This invention provides a human motion prediction method based on low-rank compressed attention, which solves the problems of existing human motion prediction methods based on diffusion models and Transformers, such as high computational complexity of self-attention, large number of model parameters, low inference efficiency, and difficulty in capturing local action changes and global motion trends simultaneously with single-scale feature enhancement. This results in a failure to balance prediction accuracy, generation diversity and real-time performance, making it difficult to meet the real-time safety prediction requirements in human-machine collaborative manufacturing scenarios.
[0006] To solve the above problems, the technical solution adopted by the present invention is as follows: A human motion prediction method based on low-rank compressed attention includes the following steps: Step 1: Obtain the human historical motion sequence, which includes at least one of the following: three-dimensional coordinates of human joints, joint angles, or skeletal posture parameters; preprocess the human historical motion sequence to obtain historical observation features; input the historical observation features, the motion input features to be predicted, and the predicted state features into the embedding layer and map them to obtain a unified temporal motion token feature. Step 2: Input the temporal motion token features into the low-rank compressed attention module. After normalizing the input features, query vector, key vector and value vector are generated respectively. The query vector and key vector are mapped to the low-dimensional feature space through a learnable low-rank projection matrix. The attention weights are calculated in the low-dimensional feature space, and the value vectors are weighted and aggregated according to the attention weights to obtain the low-rank compressed attention features. Step 3: Input the low-rank compressed attention features into the multi-granularity activation module, and extract local and global temporal features through pooling operations at multiple different time scales; after fusing the feature descriptors at different time scales, input them into the activation network to generate adaptive activation weights; use the adaptive activation weights to recalibrate the low-rank compressed attention features to obtain multi-granularity enhanced motion features. Step 4: Input the multi-granularity enhanced motion features into the feedforward network and the linear mapping layer in sequence, and output the prediction results of the future human motion. The prediction results of the future human motion are used to characterize at least one of the three-dimensional coordinates of human joints, joint angles or skeletal posture parameters at future moments.
[0007] The principle and advantages of this scheme are as follows: First, the historical motion sequences of the human body are acquired and standardized preprocessed to obtain historical observation features that can be used as model input. Then, the historical observation features, the motion input features to be predicted, and the predicted state features are jointly input into the embedding layer and mapped to a time-series motion token feature with unified dimensions. This unifies the feature space of historical conditions, the motion to be generated, and the predicted state, providing standardized input for subsequent time-series dependency modeling. Subsequently, time-series relationship modeling is performed through a low-rank compressed attention module. After normalizing the input features, query vectors, key vectors, and value vectors are generated. Using a learnable low-rank projection matrix, the query vectors and key vectors are mapped to a lower-dimensional feature space. Attention weights are calculated in the low-dimensional feature space, and then weighted clustering is performed on the original-dimensional value vectors based on the obtained attention weights. The algorithm effectively compresses the number of parameters and computational overhead of attention calculation while preserving the integrity of motion feature information. Next, the features output by the low-rank compressed attention are input into a multi-granularity activation module. Local and global temporal features are extracted through pooling operations at multiple time scales. The feature descriptors at different scales are then fused and input into the activation network to generate adaptive activation weights. These weights are then used to recalibrate the input features element-wise, adaptively strengthening effective motion features, suppressing redundant information, and enhancing the model's ability to perceive motion patterns at different time scales. Finally, the enhanced multi-granularity motion features are sequentially input into a feedforward network and a linear mapping layer to complete the mapping from the feature space to the motion data space, outputting motion prediction results representing the future state of human joints.
[0008] Compared with existing technologies, this invention possesses outstanding substantive features and significant progress, effectively solving the technical problem that existing diffusion-based and Transformer-based human motion prediction methods struggle to simultaneously achieve prediction accuracy, generation diversity, and real-time inference. Addressing the shortcomings of standard self-attention methods, such as the quadratic increase in computational complexity with sequence length and the massive number of model parameters, this invention employs a low-rank compressed attention mechanism. Through differentiated dimensional design, it performs low-rank projection compression only on the query vector and key vector, while preserving the original feature dimensions of the value vector. This significantly reduces the floating-point computation load of the attention calculation stage without sacrificing the core capabilities of long-term time-dependent modeling. Experimental verification shows that, at the same network depth, this method reduces the number of model parameters by approximately 19.4% compared to similar Transformer baseline methods, and significantly reduces inference latency, overcoming the drawbacks of existing Transformer-type prediction models in long-sequence scenarios, such as high computational overhead and difficulty in deploying on edge devices. To address the limitation of single-scale feature enhancement in simultaneously covering both local motion details and global motion trends, this invention's multi-granularity excitation mechanism, through multi-timescale feature extraction and adaptive recalibration, can simultaneously capture local joint motion changes within a short time window and the overall motion evolution over a long period, effectively improving the contextual consistency and motion realism of the prediction results. Under the worst-case evaluation strategy on a public dataset, the method achieves a worst-case average displacement error (ADE-w) of 1.024, further reducing it compared to mainstream similar methods, enhancing the robustness of prediction results in complex and uncertain scenarios, and making it more suitable for safety-sensitive industrial human-machine collaboration scenarios. The organic combination of low-rank compressed attention and multi-granularity excitation achieves a dual gain in performance and efficiency. Without introducing additional complex conditional coding or feature modulation modules, it simultaneously achieves the dual goals of model lightweighting and improved prediction accuracy. It retains the advantages of the diffusion generation framework in terms of diverse output results and conformity to human motion laws, while also meeting the low-latency and high-reliability requirements of real-time safety prediction in human-machine collaborative manufacturing scenarios, achieving unexpected comprehensive technical effects and being more suitable for deployment environments with limited computing power, such as robot controllers and industrial edge computing units.
[0009] Further, step 1 specifically includes: acquiring the human historical motion sequence in continuous time frames, constructing a historical observation sequence according to time order; performing time alignment, missing frame completion, coordinate normalization, and sequence length unification on the historical observation sequence to obtain a standardized human historical motion sequence; padding the standardized human historical motion sequence to match it with the motion sequence to be predicted in the time dimension, and then performing feature encoding to obtain historical observation features; inputting the historical observation features, the motion input features to be predicted, and the predicted state features into the embedding layer respectively, which are mapped to observation token features, motion token features, and state token features respectively; concatenating and fusing the observation token features, motion token features, and state token features, and superimposing position encoding to obtain a unified temporal motion token feature; eliminating data deviations caused by acquisition devices, human body shape, and action duration through time alignment, missing frame completion, coordinate normalization, and sequence length unification, and avoiding the original sequence The model addresses the interference of noise and inconsistent dimensions on subsequent modeling. It then uses time dimension padding to match the lengths of historical observation sequences and the motion sequence to be predicted, ensuring temporal alignment during reverse denoising in the diffusion model and preventing feature misalignment. Subsequently, it embeds three independent tokens—observation, motion, and state—through separate channels, isolating historical human pose, the motion to be generated, and the diffusion step size to prevent interference between different feature types. Finally, it concatenates, fuses, and superimposes positional encoding, fully preserving the three types of effective information: historical action, prediction task, and diffusion state, while explicitly injecting temporal positional information. This allows subsequent low-rank compressed attention to accurately identify the sequential dependencies between different time frames, improving the effectiveness and stability of temporal modeling from the data source. It provides a regular, unbiased, and complete temporal information-carrying unified input for low-rank attention and multi-granularity activation modules, reducing model learning difficulty during preprocessing and indirectly improving the final accuracy and temporal continuity of human motion prediction.
[0010] Furthermore, in step 2, the value vector retains the original feature dimension to ensure the integrity of motion feature information. The low-dimensional feature space dimension after mapping the query vector and key vector through the low-rank projection matrix is smaller than the original feature dimension. The attention weight calculation is completed entirely in the low-dimensional feature space to reduce the number of parameters and computational complexity of attention calculation. The differentiated dimension design scheme achieves the optimal balance between compressing computational overhead and preserving motion feature information. Only the query vector and key vector used to calculate temporal similarity are mapped to a lower-dimensional space to complete the attention weight solution, which significantly reduces the floating-point operation volume and the number of trainable parameters in the matrix multiplication process, effectively solving the defect that the complexity of standard self-attention increases twice with the sequence length. At the same time, the original dimension of the value vector carrying the original motion details of the human body is completely preserved. It will not lose key motion information such as joint coordinates and subtle movement changes due to dimension compression, and avoids the problems of posture distortion and action logic breakage after dimension compression. It takes into account the dual requirements of lightweight inference and high-precision modeling, so that the model can significantly shorten the inference time and reduce hardware storage occupation in long human motion sequences and multi-step prediction scenarios, without weakening the modeling ability of complex temporal dependencies of the human body.
[0011] Furthermore, the low-rank compressed attention is implemented using a multi-head attention approach. The mapped low-dimensional feature space is divided into multiple independent subspaces, with each attention head corresponding to one subspace and independently learning different temporal dependencies of motion. Finally, the output features of all attention heads are concatenated and fused to obtain enhanced temporal motion features. Using a multi-head structure to split the low-dimensional feature space allows each attention head to mine human motion temporal relationships of varying lengths and types in independent subspaces without interference. A single attention head only needs to focus on local and single motion dependency patterns, reducing the learning pressure of a single head and avoiding the problem of temporal feature coupling and mixing under a single mapping space. After each head has learned independently, the output is concatenated and fused, which can comprehensively integrate multi-level temporal relationship information such as local joint micro-movements, large-range limb movements, and long-period movement trends, fully mining the multi-dimensional temporal patterns of human motion. At the same time, the entire multi-head operation is still based on the compressed low-dimensional space, without adding extra overall computational and parameter burden. While maintaining the advantages of low-rank lightweight, it further improves the model's ability to represent complex human motion temporal relationships, balancing computational efficiency and temporal modeling richness.
[0012] Furthermore, in step 3, a three-level pooling operation is performed on the input feature tensor along the time dimension to obtain fine-grained temporal feature descriptors, medium-grained temporal feature descriptors, and global temporal feature descriptors, respectively. The fine-grained temporal feature descriptors correspond to local action change information within a short time window, the medium-grained temporal feature descriptors correspond to action transition information at a medium time scale, and the global temporal feature descriptors correspond to the overall motion trend information of the entire sequence. By setting a three-level differential pooling window along the time dimension to extract three types of temporal descriptors, it can completely cover the full-scale information of human movement from micro-movements to overall trends. Fine-grained short-window pooling accurately captures instantaneous local features such as joint fine-tuning and small limb swings. For detailed motion analysis, medium-granular pooling captures the transitional evolution patterns between continuous movements such as raising an arm and turning around, while global pooling extracts the overall long-term motion trajectory of movements such as walking and turning, overcoming the limitation of single-scale pooling which can only capture single-level motion information. The three types of descriptors complement each other and do not overlap, fully restoring the multi-level temporal dynamics of the motion sequence. This provides a multi-dimensional reference for the subsequent activation network, allowing the activation weights to specifically distinguish the importance of local details and global trends. This prevents the model from ignoring subtle movements or losing long-term motion logic, and provides a comprehensive and hierarchical temporal context for subsequent adaptive feature recalibration, fundamentally improving the model's perception of the completeness of complex human motion patterns.
[0013] Furthermore, fine-grained, medium-grained, and global temporal descriptors are concatenated along the feature dimensions to obtain multi-granularity context features. These multi-granularity context features are then input into an activation network containing at least two fully connected layers. A non-linear activation function is applied between adjacent fully connected layers, and the final output is an adaptive activation weight with values ranging from 0 to 1, processed by a sigmoid activation function. The adaptive activation weights are then multiplied element-wise with the input feature tensor after dimensionality matching to complete feature recalibration. Concatenating the three-level temporal descriptors along the feature dimensions enables the simultaneous fusion of three complete temporal context information types: local actions, action transitions, and global trends. This constructs a unified feature carrier containing multi-scale motion patterns, avoiding the problems caused by independent processing at different scales. Information fragmentation; the activation network, through multi-layer fully connected layers and non-linear activation functions, can fully explore the correlation mapping relationship between features of different granularities, fit the contribution of each motion scale to the prediction result, and constrain the weights in the terminal sigmoid activation to ensure that the activation coefficients have scalable and suppressable adaptive adjustment properties; multiplying the activation weights of the matching dimension with the original features element by element can automatically amplify the motion features that are key to the prediction and weaken meaningless redundant temporal information, achieving fine dynamic recalibration without the need to manually set fixed feature weights, adapting to various human motion scenarios, fully amplifying the value of multi-granular information extracted by the previous three-level pooling, and significantly improving the model's ability to identify and represent differentiated motion patterns.
[0014] Furthermore, the human motion prediction process is executed based on a diffusion model framework. The predicted state features correspond to diffusion step size information, and the input features of the motion to be predicted are noisy motion features. Multiple cascaded hierarchical fusion Transformer modules iteratively process the temporal motion token features. Within each hierarchical fusion Transformer module, a low-rank compressed attention module completes temporal dependency modeling, a multi-granularity activation module completes feature recalibration, and a feedforward network completes nonlinear transformation. Through a multi-level iterative reverse denoising process, a future human motion prediction result conforming to the laws of human motion is gradually generated. Anchoring the human motion prediction process within the diffusion model framework, and clearly defining the predicted state features as corresponding to diffusion step size information and the input features of the motion to be predicted as noisy motion features, allows the low-rank compressed attention and multi-granularity activation modules to be deeply embedded in the complete diffusion generation process. This achieves the organic integration of historical observation conditions, temporal motion features, and the reverse denoising process, avoiding feature transfer loss and architecture adaptation deviation caused by modular splicing. Multiple cascaded hierarchical fusion Transformer modules are used. The ansformer module iteratively processes temporal motion token features, and within each block, it sequentially completes temporal dependency modeling, multi-granularity feature recalibration, and nonlinear feature transformation. This allows each layer of the network to simultaneously complete long-term temporal dependency mining, multi-scale motion information enhancement, and feature dimension mapping. Through multi-level progressive optimization, it gradually refines the motion feature expression, precisely matching the generation pattern from coarse-grained to fine-grained in the reverse denoising process. At the same time, thanks to the built-in low-rank compressed attention mechanism in each layer, the entire deep interconnected architecture retains the strong modeling capabilities of Transformer and the advantages of diffusion model generation diversity and motion realism, while constraining the computational complexity of attention and the scale of model parameters throughout the process. This effectively overcomes the technical bottlenecks of high inference latency and difficult edge deployment in deep diffusion Transformer. It can gradually generate logically coherent, pose-accurate, and multimodal human motion prediction results in the multi-level iterative reverse denoising process, better meeting the comprehensive requirements of human-machine collaborative manufacturing scenarios for prediction reliability, result diversity, and real-time operation.
[0015] Furthermore, each hierarchical fusion Transformer module sequentially includes a first normalization layer, a low-rank compressed attention module, a first residual connection, a second normalization layer, a multi-granularity activation module, a second residual connection, a third normalization layer, a feedforward network, and a third residual connection. The residual connection ensures the stability of feature propagation in deep networks. Within the hierarchical fusion Transformer module, a fixed hierarchical structure is arranged: normalization, core functional modules, and residual connections. The first normalization layer unifies the input feature distribution, which is then fed into the low-rank compressed attention module to mine temporal dependencies. The first residual connection fuses the original input features with the attention output, mitigating the gradient vanishing problem in deep networks. After feature regularization by the second normalization layer, the features are fed into the multi-granularity activation module for adaptive recalibration at multiple scales. The second residual connection preserves features that have not been activated. The original feature information is preserved to avoid the loss of effective motion features caused by multi-granularity weight scaling. After standardization by the third normalization layer, the input to the feedforward network achieves nonlinear mapping. Finally, the feature is passed through the third residual connection. The three normalization layers are adapted to the input distribution requirements of the attention, multi-granularity excitation, and feedforward network modules respectively. The three residual connections inherit the features before and after each layer, ensuring stable gradient backpropagation throughout the multi-level diffusion iteration process. Even if a large number of Transformer blocks are stacked to perform reverse denoising operations, there will be no gradient explosion or gradient vanishing. It fully preserves various effective temporal features such as the subtle joint movements extracted from the shallow layer and the long-term motion trends mined from the deep layer, and stably maintains the motion representation ability of the deep network. At the same time, the lightweight arrangement of segmented normalization and segmented residuals does not significantly increase the computational overhead, balancing deep modeling ability and inference efficiency.
[0016] Furthermore, in the reverse denoising process, historical observation features are used as conditional information throughout feature modeling. This ensures that the generated future motion sequences are temporally continuous and logically consistent with historically observed actions, preventing abnormal postures that do not conform to human movement patterns. Throughout the entire iterative process of reverse denoising, historical observation features are continuously embedded as conditions in the feature modeling stage. This allows for continuous calibration of the motion features output by each Transformer block, using real historical human actions as the constraint benchmark. It also continuously anchors the temporal sequence of human joint movements to physiological movement constraints, preventing the model from deviating from real observed motion during denoising iterations. It generates disordered poses freely; unlike the method of injecting historical conditions only once in the initial stage of the model, the condition constraints involved throughout the process can correct prediction biases in each round of feature update, effectively cutting off abnormal motion trajectories that violate human physiological structure, such as joint twisting, limb misalignment, and action jumps. It ensures that the generated future motion sequence is smoothly connected with the previous historical observation actions and that the motion evolution logic is unified. It retains the advantages of multimodal generation of diffusion models and eliminates the pose distortion defects caused by unconstrained random generation, which greatly improves the authenticity and contextual coherence of prediction results and adapts to the stringent requirements of motion rationality for safety prediction in human-machine collaborative manufacturing scenarios.
[0017] Furthermore, in step 4, the linear mapping layer maps multi-granularity enhanced motion features to the human motion data space, reconstructing a sequence of future human motion in continuous time frames. This future human motion sequence includes at least one of the following: three-dimensional coordinates of human joints, joint angles, or skeleton posture parameters. The output is used for motion prediction in human-robot collaborative manufacturing, real-time obstacle avoidance by robots, or production safety early warning scenarios. The linear mapping layer can accurately map high-dimensional abstract temporal features, after low-rank attention modeling and multi-granularity excitation enhancement, to the original human motion data space, completing the dimensional transformation from abstract features to concrete human posture information, fully restoring the complete human motion temporal sequence in continuous time frames, and simultaneously outputting a sequence of mainstream industrial motion data compatible with three-dimensional coordinates of human joints, joint angles, and skeleton posture parameters. According to the format, it can be connected to the motion calculation modules of collaborative robots and safety monitoring equipment without additional data format conversion; the entire output link fully inherits the processing results of the preprocessing, feature modeling and adaptive enhancement process mentioned above, ensuring the continuity of the predicted motion with the historical observation sequence in the time dimension and the unity of motion logic, and directly outputting quantitative motion prediction data that can be used in practice. It is compatible with the hardware input standards of three core industrial scenarios: human-machine collaborative manufacturing, robot real-time obstacle avoidance and production safety early warning, saving additional post-processing development costs, taking into account data universality and scenario practicality, and fully connecting the entire technical link from raw human motion collection to industrial safety prediction. It fully leverages the comprehensive technical advantages of this method, which is lightweight and high-precision, to meet the real-time prediction needs of low latency and multi-device compatibility in industrial sites. Attached Figure Description
[0018] Figure 1 This is an architectural diagram of the method proposed in this invention; Figure 2 This is a complexity analysis diagram of the method of the present invention and the comparative model; Figure 3 This is a flowchart of the steps of the method of the present invention. Detailed Implementation
[0019] Example 1 like Figure 1-3 As shown, this embodiment uses real-time prediction of human motion in a human-machine collaborative intelligent manufacturing workstation as a specific application scenario to fully explain the human motion prediction method based on low-rank compressed attention described in this invention. In this embodiment, the human motion data uses a three-dimensional coordinate sequence of 21 key joint points, acquired through an industrial depth vision acquisition device; the length of the historical observation sequence is set to 10 frames, the length of the future prediction sequence is set to 25 frames, and the total diffusion steps of the diffusion model are 1000 steps; the model is implemented based on a general deep learning framework and can be deployed in industrial edge computing units and embedded controllers of collaborative robots.
[0020] This embodiment is fully implemented through the following steps: First, a depth camera deployed at the collaborative workstation is used to acquire a continuous time frame sequence of human historical motion. Each frame contains the three-dimensional spatial coordinates of 21 joints of the human body. The dimension of a single frame of data is Dimension. The collected key point data are sorted according to chronological order to construct a historical observation sequence.
[0021] The following standardized preprocessing operations were performed on the original historical observation sequence to eliminate interference from acquisition noise and individual differences: the original acquisition sequence was resampled at a fixed sampling frequency of 30fps to unify the time interval between frames and eliminate time axis offset caused by fluctuations in the acquisition frame rate. For missing frames caused by occlusion or recognition failure, linear interpolation was used to complete them: the number of consecutive missing frames... When the number of consecutive missing frames is greater than 3, the segment is marked as an invalid sequence and removed. The remaining sequence is then trimmed or padded to a fixed length according to a uniform rule.
[0022] The coordinates of all relevant nodes are centered using the pelvic joints as the origin, and then normalized to the scale using the length of the human torso as the reference, eliminating the influence of different body shapes and acquisition distances on the coordinate values. Let the original coordinates of the i-th joint in the n-th frame be... The coordinates of the pelvic joints are The length of the torso is If the unit is cm, then the normalized coordinates are:
[0023] All historical observation sequences were uniformly trimmed or padded to a fixed length. For frames, sequences shorter than the required length are padded with zeros at the end; sequences longer than the required length are truncated to the 10 most recent frames. After standardization, the historical observation sequences are encoded using Discrete Cosine Transform (DCT) in the frequency domain to convert the time-domain motion sequence into frequency-domain features, compressing redundant information. The final result is a sequence with dimensions of [dimension value missing]. The historical observation feature tensor.
[0024] The three types of inputs—historical observation features, noisy motion input features to be predicted, and predicted state features—are fed into independent linear embedding layers and mapped to token features of a unified feature dimension. Dimension is Historical observation features are mapped to the first linear embedding layer. The feature space of dimension is obtained as follows: The observation token features carry the conditional constraints information of the entire historical human body movements.
[0025] Dimension is The noisy motion input features to be predicted are mapped to the same 512-dimensional feature space through a second linear embedding layer, resulting in a feature space with dimension . The motion token feature carries the motion information to be generated in the reverse denoising process.
[0026] The current diffusion step size t (range 0-999) is encoded into a 512-dimensional state vector using sinusoidal position encoding, and then mapped to a dimension of t by a fully connected layer. The state token feature (C=512 in this embodiment) is used to characterize the noise level of the diffusion process.
[0027] By concatenating the three types of token features along the time dimension, the total length is obtained. The fused token sequence is then superimposed with a learnable one-dimensional positional encoding, explicitly injecting the temporal position information of each token, ultimately yielding a unified temporal motion token feature with a dimension of [missing information]. This serves as the input for subsequent layered integration of the Transformer module.
[0028] The temporal motion token features are input into a low-rank compressed attention module to model temporal dependencies in a low-dimensional feature space, thereby reducing computational overhead while preserving the integrity of motion information. The specific process is as follows: First, LayerNorm is used to normalize the distribution of the input temporal motion token features, stabilizing the training and inference process. The normalized features are then passed through three independent linear projection layers to generate a query vector Q, a key vector K, and a value vector V. The value vector V retains the original 512-dimensional feature dimension. This ensures that motion information such as joint coordinates and movement details are complete and not lost. The query vector Q and key vector K have the original 512 dimensions, and then a learnable low-rank projection matrix is used. and Mapped to a low-dimensional feature space; this embodiment sets a low-rank dimension. The low-dimensional query vector after projection is much smaller than the original feature dimension. Low-dimensional key vectors All dimensions .
[0029] A multi-head attention mechanism is used to subdivide the low-dimensional feature space. In this embodiment, the number of attention heads is set to h=8, and the subspace dimension corresponding to each head is 128 / 8=16 dimensions. Each attention head performs the following operations in its independent subspace: Calculate the attention score matrix in the low-dimensional space: ,in , These are the transposes of the low-dimensional query vector and the low-dimensional key vector corresponding to the h-th head, respectively.
[0030] Perform Softmax activation on each row of the score matrix to obtain the attention weight matrix. The weights range from 0 to 1, and the sum of the elements in each row is 1.
[0031] The attention weight matrix and the original dimension value vector are split into subvectors according to the attention head. Weighted aggregation yields the output features of the h-th head: The output features of the eight attention heads are concatenated along the feature dimension to obtain a result with dimension [missing information]. The multi-head fusion feature is a low-rank compressed attention feature. The entire attention weight calculation is completed in a 128-dimensional low-dimensional space, which reduces the floating-point operation cost of the attention calculation process by about 75% compared to the standard 512-dimensional self-attention.
[0032] The low-rank compressed attention output features are added element-wise to the module input features to complete the first residual connection, which alleviates the gradient vanishing problem in deep networks and preserves the effective motion information of the original input.
[0033] The features after the first residual connection are first normalized by the second normalization layer, and then input into the multi-granularity excitation module. Feature recalibration is achieved through multi-scale pooling and adaptive weights to enhance multi-scale motion perception capabilities. The specific steps are as follows: A three-stage average pooling operation is performed on the input feature tensor along the time dimension to extract temporal feature descriptors at different time scales: the pooling window size is set to 3 and the stride to 1, and the features within the local time window are averaged and aggregated, then compressed into a dimension of [dimension value missing]. Fine-grained temporal feature descriptors correspond to joint micro-movements and detailed changes in motion within a short time window. A pooling window size of 7 and a stride of 1 are set, and a moving average aggregation is performed on features at medium time scales. The aggregation result is compressed to a dimension of [dimensionality missing]. The medium-granularity temporal feature descriptor corresponds to the transitional evolution of continuous actions. Global average pooling is performed on the entire 36-frame time series to obtain a dimension of... The global temporal feature descriptor corresponds to the overall trend and macroscopic motion pattern of the entire motion sequence.
[0034] By concatenating the fine-grained, medium-grained, and global temporal feature descriptors along the feature dimensions, we obtain a dimension of... The multi-granularity contextual features are then input into the activation network, which consists of two fully connected layers cascaded together. The first fully connected layer reduces the 1536-dimensional features to 256-dimensional features and connects the ReLU non-linear activation function to explore the non-linear correlation between features of different granularities. The second fully connected layer upscales the 256-dimensional features back to 512 dimensions, then applies a sigmoid activation function, outputting an adaptive activation weight vector with values ranging from 0 to 1, and a dimension of [missing value]. .
[0035] Broadcast the adaptive activation weight vector along the time dimension to the same area as the input features. The dimension is then multiplied element-wise with the input feature tensor to complete feature recalibration: higher weights are assigned to motion feature channels that contribute significantly to the prediction task, while lower weights are assigned to redundant noise channels for suppression. The recalibrated features are the multi-granularity enhanced motion features.
[0036] After completing the multi-granularity excitation operation, the output features are added to the module input features element by element to complete the second residual connection, thus avoiding the loss of effective motion features due to weight scaling.
[0037] The features, after being processed by the second residual connection, are then processed by the third normalization layer before being input into the feedforward network (FFN) for nonlinear feature transformation. The feedforward network employs a two-layer fully connected structure: the first layer upscales the 512-dimensional features to 2048 dimensions and connects them to the GELU activation function; the second layer downscales the 2048-dimensional features back to 512 dimensions. The output of the feedforward network is then connected to the input features via a third residual connection, thus completing all the computations of a single-layer fusion Transformer module.
[0038] In this embodiment, a total of N=6 of the above-mentioned hierarchical fusion Transformer modules are stacked. Each block strictly follows the arrangement order of normalization-low-rank compressed attention-residual-normalization-multi-granularity excitation-residual-normalization-feedforward network-residual, and the motion feature representation is gradually refined through multi-level iterative processing.
[0039] The entire human motion prediction is performed based on a diffusion model framework, which consists of forward diffusion during the training phase and reverse denoising during the inference phase. Gaussian noise is progressively added to a real human motion sequence. After 1000 diffusion steps, the original motion sequence becomes noise with an approximately standard Gaussian distribution. Each diffusion step corresponds to a diffusion step size t. The noisy motion sequence, historical observation features, and the corresponding diffusion step size are input into the model to train the model to predict the noise added in that step. The training loss is the mean squared error (MSE) between the predicted noise and the actual noise. The optimizer is AdamW, and the initial learning rate is set to... A total of 300 epochs were trained.
[0040] Starting with random Gaussian noise, the noise is gradually reversed starting from t=999 steps. At each step, the current noisy motion features, historical observation features, and the current diffusion step size are input into a stacked 6-level fusion Transformer module. The model predicts the noise of the current step, and then subtracts the predicted noise from the noisy features to obtain the denoised motion features. After repeating the iteration for 1000 steps, the denoised future motion features of the human body are finally obtained.
[0041] Throughout the entire reverse denoising process, historical observation features are always used as observation tokens to participate in the computation of each Transformer block. This ensures that the generated future motion is continuous in time and consistent in motion logic with the historical observation actions, thus avoiding abnormal postures that do not conform to human physiological laws, such as joint twisting and motion jumps.
[0042] After multi-level Transformer iterative denoising, the portion of the features corresponding to the prediction time period is extracted and input into the final linear mapping layer. This maps the 512-dimensional feature space back to the 63-dimensional human motion data space, reconstructing a 25-frame continuous time sequence of future human motion. Each frame of the output sequence contains the 3D coordinates of 21 joints, which can be directly converted into formats such as joint angles and skeleton posture parameters. This allows for integration with downstream devices such as collaborative robot controllers and safety warning systems, enabling real-time motion prediction, robot obstacle avoidance trajectory planning, and production safety risk warning in human-robot collaborative manufacturing.
[0043] Example 2 A human motion prediction method based on low-rank compressed attention includes: Step 1, Human motion sequence acquisition and feature representation: Acquire the human historical motion sequence, which includes at least one of the following: three-dimensional coordinates of human joints, joint angles, or skeletal posture parameters; preprocess the human historical motion sequence to obtain historical observation features; input the historical observation features, the motion input features to be predicted, and the predicted state features into the embedding layer to map and obtain a unified temporal motion token feature. Step 2, Low-rank compressed attention modeling: The temporal motion token features are input into the low-rank compressed attention module. After normalization of the input features, query vector, key vector, and value vector are generated respectively. The query vector and key vector are mapped to a low-dimensional feature space through a learnable low-rank projection matrix. Attention weights are calculated in the low-dimensional feature space, and the value vectors are weighted and aggregated according to the attention weights to obtain low-rank compressed attention features, thereby reducing the computational complexity of attention in the human motion sequence modeling process. Step 3, Multi-granularity excitation feature recalibration: The low-rank compressed attention features are input into the multi-granularity excitation module, and local and global temporal features of the human motion sequence are extracted through pooling operations at multiple different time scales; the feature descriptors at different time scales are fused and input into the excitation network to generate adaptive excitation weights; the low-rank compressed attention features are recalibrated using the adaptive excitation weights to obtain multi-granularity enhanced motion features; Step 4, Human motion prediction result output: The multi-granularity enhanced motion features are input into the feedforward network and the linear mapping layer to obtain the human future motion prediction result. The human future motion prediction result is used to characterize at least one of the following: the three-dimensional coordinates of human joints, joint angles, or skeletal posture parameters at future moments.
[0044] Step 1: Detailed steps: First, the human historical motion sequence in continuous time frames is obtained. The human historical motion sequence includes at least one of the three-dimensional coordinates of human joints, joint angles or skeleton posture parameters, and a historical observation sequence is constructed in chronological order. Secondly, the historical observation sequence is processed by time alignment, missing frame completion, coordinate normalization and sequence length unification to eliminate the influence of different acquisition devices, different human body scales and different action durations on motion prediction, and obtain a standardized human historical motion sequence. Next, the standardized human historical motion sequence is filled to ensure that it is consistent with the motion sequence to be predicted in the time dimension, and the filled historical observation sequence is feature-encoded to obtain historical observation features used to constrain future motion prediction. Then, the historical observation features, the motion input features to be predicted, and the predicted state features are input into the embedding layer and mapped to observation token features, motion token features, and state token features, respectively. Finally, the observation token features, motion token features, and state token features are concatenated or fused, and positional encoding is superimposed to obtain unified temporal motion token features, which are used as input for subsequent low-rank compressed attention modeling.
[0045] Step 2: Detailed steps First, the input temporal motion token features are obtained, and the temporal motion token features are subjected to layer normalization to obtain normalized temporal motion features. The normalized temporal motion features are then input into a learnable linear mapping matrix to generate query vectors, key vectors, and value vectors. The query vectors and key vectors are mapped to a low-dimensional feature space through a low-rank projection matrix. The dimension of the low-dimensional feature space is smaller than that of the original feature space. The value vectors retain the original feature dimension to maintain the integrity of the human motion features. Then, in the low-dimensional feature space, an attention score is calculated based on the similarity between the query vector and the key vector, and the attention score is normalized to obtain a low-rank compressed attention weight; wherein, the attention weight is used to characterize the temporal dependency between different time frames in the human motion sequence, and the number of parameters and computational cost in the attention calculation process is reduced by the low-rank dimension constraint. Finally, the value vector is weighted and aggregated according to the low-rank compressed attention weights to obtain the low-rank compressed attention output features. The low-rank compressed attention module is implemented using a multi-head attention approach, which divides the low-rank feature dimension into multiple subspaces, allowing different attention heads to learn different temporal relationships of motion. Finally, the outputs of multiple attention heads are fused to obtain enhanced temporal motion features for subsequent multi-granularity excitation or human motion prediction output.
[0046] Step 3: Detailed steps: First, the input temporal motion token feature tensor is obtained, which includes a batch dimension, a time dimension, and a feature dimension. Multiple pooling operations of different granularities are performed on the temporal motion feature tensor along the time dimension to obtain fine-grained temporal feature descriptors, medium-grained temporal feature descriptors, and global temporal feature descriptors, respectively, in order to extract local motion change information and overall motion trend information in human motion sequences. Then, the fine-grained temporal feature descriptor, the medium-grained temporal feature descriptor, and the global temporal feature descriptor are concatenated to obtain multi-grained context features; the multi-grained context features are input into the activation network, which includes at least two fully connected layers and a nonlinear activation function set between the fully connected layers, and adaptive activation weights are generated through the Sigmoid activation function; Finally, the adaptive incentive weights are dimensionally matched with the temporal motion token feature tensor, and the temporal motion token feature tensor is recalibrated by element-wise multiplication to obtain multi-granularity enhanced motion features, thereby enhancing the human motion prediction model's ability to represent motion patterns at different time scales.
[0047] Step 4: Detailed steps First, the multi-granularity enhanced motion features, processed by the low-rank compressed attention module and the multi-granularity excitation module, are input into the feedforward network for nonlinear feature transformation. Then, the multi-granularity enhanced motion features are mapped to the human motion prediction space through a linear mapping layer to obtain future motion representation features. Then, based on the future motion representation features, the human posture state of future time frames is reconstructed to obtain the human future motion sequence in continuous time frames; wherein, the human future motion sequence includes at least one of the three-dimensional coordinates of human joints, joint angles or skeletal posture parameters. Finally, the results of the future human motion sequence are sorted and the dimensions are restored, and the human motion prediction results that are continuous with the historical motion sequence are output. The human motion prediction results are used to characterize the motion trend and posture changes of the target human body in the future, so as to support real-time motion prediction in human-machine collaborative manufacturing, robot obstacle avoidance or safety early warning scenarios.
[0048] The proposed human motion prediction method is evaluated using the Human3.6M public benchmark dataset. Human3.6M is a widely used large-scale 3D human pose dataset in the field of human motion prediction, containing approximately 3.6 million frames of 3D human motion capture data with a sampling frequency of 50Hz. This dataset covers 15 categories of daily actions performed by 11 subjects, including typical human motion behaviors such as walking, smoking, and discussing. Following the general experimental setup for human motion prediction tasks, human pose is represented by 17 human joints. The model is trained using data from 5 subjects (S1, S5, S6, S7, and S8) and tested using data from subjects S9 and S11. In the experiment, the input observation sequence is 25 frames long, corresponding to 0.5 seconds of historical human motion information; the model needs to predict the human motion sequence in the next 100 frames, i.e., the next 2 seconds. This dataset allows for a comprehensive evaluation of the prediction accuracy, diversity, and stability of the proposed method under different human motion types.
[0049] A method for predicting human motion by integrating low-rank compressed attention and multi-granularity excitation is constructed. First, historical observation sequences, the input motion to be predicted, and the features of the predicted state are uniformly mapped to temporal motion token features, and positional encoding is introduced to preserve the temporal order information in the human motion sequence. Second, a hierarchical Transformer prediction network integrating low-rank compressed attention and multi-granularity excitation is constructed. Finally, the enhanced motion features are input into a linear mapping layer, outputting the future human motion prediction result. The proposed framework is described in [link to framework]. Figure 1 Its overall structure includes an embedding layer, a multi-level fusion Transformer module, a low-rank compressed attention module, a multi-granularity activation module, and a final linear mapping layer.
[0050] Comparative Experiments. The results of the comparative experiments are shown in Table 1: The Worst-of-Many (Worst-of-Many) strategy was used for evaluation on the Human3.6M dataset. This strategy is mainly used to measure the stability and reliability of the model under the worst-case prediction samples. The experimental results show that the proposed method achieves the best results in all four metrics: ADE-w (mean displacement error of the worst sample), FDE-w (final displacement error of the worst sample), MMADE-w (mean displacement error of the worst sample multimodal), and MMFDE-w (final displacement error of the worst sample multimodal), reaching 1.024, 1.707, 1.139, and 1.740, respectively, which is better than the comparative methods such as DLow, DivSamp, GSPS, STARS, BeLFusion, HumanMAC, and TransFusion. Compared to the currently performing TransFusion method, the proposed method further reduces ADE-w, FDE-w, MMADE-w, and MMFDE-w, demonstrating that the present invention can still generate more accurate, stable, and human motion-compliant future action sequences even under the most challenging prediction conditions. Therefore, the proposed low-rank compressed attention mechanism and multi-granularity excitation module can effectively improve the robustness and reliability of the human motion prediction model, making it more suitable for applications requiring high prediction stability, such as human-robot collaborative manufacturing, robot obstacle avoidance, and safety early warning.
[0051] Table 1 shows the comparative experimental results of using the Worst-of-Many strategy on the Human 3.6M dataset.
[0052] The Worst-of-Many strategy, or multi-sample worst-case evaluation strategy, involves selecting the prediction sample with the largest error from multiple future human motion predictions generated by the model for evaluation. This strategy measures the model's stability and reliability under the most unfavorable prediction conditions. Here, ADE-w represents the average displacement error of the worst sample, FDE-w represents the final displacement error of the worst sample, MMADE-w represents the average displacement error of the worst sample across multiple modes, and MMFDE-w represents the final displacement error of the worst sample across multiple modes. Lower values for these metrics indicate that the future motion sequence generated by the model is closer to real human motion and exhibits better robustness in complex or uncertain scenarios.
[0053] The complexity of the proposed method is analyzed from the perspective of the number of model parameters. Experimental results show that, as Figure 2As shown, the proposed LoM-Diffusion model maintains high accuracy in human motion prediction while exhibiting better parameter efficiency. Existing models like HumanMAC-8 contain approximately 28.4M parameters, while TransFusion-7 and TransFusion-9 have 15.52M and 19.73M parameters, respectively. In contrast, the proposed LoM-Diffusion-9 contains only 15.9M parameters, a reduction of approximately 3.83M compared to TransFusion-9 and approximately 12.5M compared to HumanMAC-8. Furthermore, LoM-Diffusion-7 further reduces the number of parameters to 12.54M, making it the model with the smallest parameter size among the comparison models. This reduction in parameters is mainly attributed to the proposed low-rank compressed attention mechanism and simplified network structure design. Low-rank compressed attention reduces the computational overhead of attention by lowering the feature dimensions of the query vector and key vector, while avoiding the introduction of complex additional conditional modules. Therefore, this approach can improve inference efficiency while reducing model storage and computational burden, making it more suitable for deployment in applications with high real-time requirements, such as human-robot collaborative manufacturing, real-time robot obstacle avoidance, and safety warnings.
Claims
1. A method for predicting human motion based on low-rank compressed attention, characterized in that, Includes the following steps: Step 1: Obtain the human historical motion sequence, which includes at least one of the following: three-dimensional coordinates of human joints, joint angles, or skeletal posture parameters; preprocess the human historical motion sequence to obtain historical observation features; input the historical observation features, the motion input features to be predicted, and the predicted state features into the embedding layer and map them to obtain a unified temporal motion token feature. Step 2: Input the temporal motion token features into the low-rank compressed attention module. After normalizing the input features, query vector, key vector and value vector are generated respectively. The query vector and key vector are mapped to the low-dimensional feature space through a learnable low-rank projection matrix. The attention weights are calculated in the low-dimensional feature space, and the value vectors are weighted and aggregated according to the attention weights to obtain the low-rank compressed attention features. Step 3: Input the low-rank compressed attention features into the multi-granularity activation module, and extract local and global temporal features through pooling operations at multiple different time scales; Feature descriptors from different time scales are fused and input into the activation network to generate adaptive activation weights. The low-rank compressed attention features are then recalibrated using the adaptive activation weights to obtain multi-granularity enhanced motion features. Step 4: Input the multi-granularity enhanced motion features into the feedforward network and the linear mapping layer in sequence, and output the prediction results of the future human motion. The prediction results of the future human motion are used to characterize at least one of the three-dimensional coordinates of human joints, joint angles or skeletal posture parameters at future moments.
2. The human motion prediction method based on low-rank compressed attention according to claim 1, characterized in that, Step 1 specifically includes: acquiring the human historical motion sequence in continuous time frames, constructing a historical observation sequence in chronological order; performing time alignment, missing frame completion, coordinate normalization, and sequence length unification on the historical observation sequence to obtain a standardized human historical motion sequence; padding the standardized human historical motion sequence to match it with the motion sequence to be predicted in the time dimension, and then performing feature encoding to obtain historical observation features; inputting the historical observation features, the motion input features to be predicted, and the predicted state features into the embedding layer respectively, which are mapped to observation token features, motion token features, and state token features respectively; concatenating and fusing the observation token features, motion token features, and state token features, and superimposing position encoding to obtain a unified temporal motion token feature.
3. The human motion prediction method based on low-rank compressed attention according to claim 1, characterized in that, In step 2, the value vector retains the original feature dimension to ensure the integrity of motion feature information. The low-dimensional feature space dimension after the query vector and key vector are mapped by the low-rank projection matrix is smaller than the original feature dimension. The attention weight calculation is completed entirely in the low-dimensional feature space to reduce the number of parameters and computational complexity of attention calculation.
4. The human motion prediction method based on low-rank compressed attention according to claim 3, characterized in that, The low-rank compressed attention module is implemented using a multi-head attention approach, which divides the mapped low-dimensional feature space into multiple independent subspaces. Each attention head corresponds to a subspace and independently learns different temporal dependencies of motion. Finally, the output features of all attention heads are concatenated and fused to obtain enhanced temporal motion features.
5. The human motion prediction method based on low-rank compressed attention according to claim 1, characterized in that, In step 3, a three-level pooling operation is performed on the input feature tensor along the time dimension to obtain fine-grained temporal feature descriptors, medium-grained temporal feature descriptors, and global temporal feature descriptors, respectively. The fine-grained temporal feature descriptors correspond to the local action change information of a short time window, the medium-grained temporal feature descriptors correspond to the action transition information of a medium time scale, and the global temporal feature descriptors correspond to the overall motion trend information of the entire sequence.
6. The human motion prediction method based on low-rank compressed attention according to claim 5, characterized in that, Fine-grained, medium-grained, and global temporal feature descriptors are concatenated along the feature dimension to obtain multi-grained context features. These multi-grained context features are then input into an activation network containing at least two fully connected layers. A non-linear activation function is set between adjacent fully connected layers, and the final output is an adaptive activation weight with a value range of 0 to 1 after passing through a Sigmoid activation function. The adaptive activation weights are then multiplied element-wise with the input feature tensor after dimension matching to complete feature recalibration.
7. The human motion prediction method based on low-rank compressed attention according to claim 1, characterized in that, The human motion prediction process is based on a diffusion model framework. The predicted state features correspond to diffusion step size information, and the input features of the motion to be predicted are noisy motion features. The temporal motion token features are iteratively processed through multiple cascaded hierarchical fusion Transformer modules. Within each hierarchical fusion Transformer module, the temporal dependency modeling is completed through a low-rank compressed attention module, the feature recalibration is completed through a multi-granularity excitation module, and the nonlinear transformation is completed through a feedforward network. Through a multi-level iterative reverse denoising process, the future human motion prediction results that conform to the laws of human motion are gradually generated.
8. The human motion prediction method based on low-rank compressed attention according to claim 7, characterized in that, Each layer of the Transformer module consists of a first normalization layer, a low-rank compressed attention module, a first residual connection, a second normalization layer, a multi-granularity activation module, a second residual connection, a third normalization layer, a feedforward network, and a third residual connection. The residual connection ensures the stability of feature transfer in the deep network.
9. A human motion prediction method based on low-rank compressed attention according to claim 7, characterized in that, In the reverse denoising process, historical observation features are used as conditional information to participate in feature modeling throughout the process, constraining the generated future motion sequence to be continuous in time and consistent in motion logic with the historical observation actions, thus avoiding abnormal postures that do not conform to the laws of human movement.
10. The human motion prediction method based on low-rank compressed attention according to claim 1, characterized in that, In step 4, the linear mapping layer maps the multi-granularity enhanced motion features to the human motion data space, and reconstructs the future motion sequence of the human body in continuous time frames. The future motion sequence of the human body includes at least one of the three-dimensional coordinates of human joints, joint angles or skeleton posture parameters. The output results are used for motion prediction in human-machine collaborative manufacturing, robot real-time obstacle avoidance or production safety early warning scenarios.
Citation Information
Patent Citations
Synchronous human motion identification and prediction method and system
CN117475518A
Human motion prediction method and system based on space-time modeling of diffusion model
CN120705805A
