Random human motion prediction method, terminal device and storage medium
By constructing an orthogonal basis in the latent space and combining the motion query vectors for linear combination, the problem of insufficiently accurate and semantically controllable human motion prediction in the existing technology is solved, and accurate and semantically controllable human motion prediction is achieved.
Patent Information
- Application Number
- CN202410939179.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-15
AI Technical Summary
In the existing technology, in random human motion prediction, the potential distribution is not properly guided, resulting in model collapse and inaccurate prediction, and it is impossible to decouple meaningful semantic information for semantically controllable prediction.
By coupling the conditional features of the past human skeleton sequence with the motion query vector, perform topological space compression, construct an orthogonal basis and conduct linear combination, decode to obtain multiple future human skeleton sequences, and adjust the coefficients of the orthogonal basis to achieve semantic controllable prediction. .
It achieves accurate and semantically controllable human motion prediction in the latent space, makes up for the shortcomings of orthogonal basis missing sampling capabilities, and generates diverse and accurate future skeleton sequences.
Smart Images

Figure CN118485692B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of human motion analysis, and in particular to a random human motion prediction method, terminal equipment and storage medium. Background Art
[0002] The problem of random human motion prediction involves predicting the random behavior of the human body during motion, which requires accurate and diverse predictions of human motion. Random human motion prediction has a wide range of applications in autonomous driving, human-computer interaction, character animation, and motion tracking.
[0003] Existing technologies map future motion to corresponding latent distributions (represented in the form of distribution in latent space) through encoding, such as constraining the latent distribution to make it close to the standard Gaussian distribution through KL divergence (Kullback-Leibler divergence). The latent distribution is the distribution corresponding to the future motion in the high-dimensional feature space, and future motion can be generated by sampling in the latent distribution. When predicting, past human motion is used as a condition to sample in the latent distribution to generate future motion.
[0004] However, the existing technology does not properly guide the latent distribution, so the latent distribution will be affected by the probability density of the data set, which is prone to pattern collapse, resulting in inaccurate prediction of future motion. At the same time, it is difficult for the existing technology to learn meaningful motion representations to accurately predict future motion. For example, it is impossible to guide the past human motion characteristics through the obtained semantic information to generate a variety of future skeleton sequences. Therefore, the existing technology cannot decouple meaningful semantic information from the latent distribution to achieve semantically controllable prediction, and the predicted future motion is not accurate enough, which is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The purpose of the present invention is to provide a random human motion prediction method, a terminal device and a storage medium to solve the above technical problems. The preferred technical solutions among the many technical solutions provided by the present invention can produce many technical effects as described below.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] The present invention provides a method for predicting random human motion, comprising the following steps:
[0008] The conditional features corresponding to the acquired past human skeleton sequence are coupled with the motion query vector obtained according to the query condition to obtain a coupled feature;
[0009] Compressing the coupling features in topological space to abstract global features;
[0010] Predicting coefficients of an orthogonal basis constructed in a latent space through the global features;
[0011] The predicted coefficients are linearly combined with the orthogonal basis, the linear combination result is coupled with the conditional feature, and the coupling result is decoded to obtain multiple predicted future human skeleton sequences.
[0012] In some embodiments, obtaining conditional features corresponding to past human skeleton sequences includes the following steps:
[0013] The acquired past human image frames are used to perform human posture estimation, and the three-dimensional past human skeleton sequence obtained by the human posture estimation is transformed from the time domain to the frequency domain; the past human skeleton sequence represented in the frequency domain is subjected to feature extraction, and the conditional features obtained by the feature extraction are converted from the three-dimensional space to the high-dimensional space.
[0014] In some embodiments, decoding the coupling result comprises the following steps:
[0015] The coupling result is transformed from a high-dimensional space into a three-dimensional space, and the coupling result transformed into the three-dimensional space is transformed from a frequency domain into a time domain.
[0016] In some embodiments, the dimension of the high-dimensional space is the dimension of feature extraction of the past human skeleton sequence.
[0017] In some embodiments, the random human motion prediction method further includes constructing an orthogonal basis in a latent space, the steps of which include:
[0018] The learnable matrix is subjected to QR decomposition, and the decomposed Q matrix is used as an orthogonal basis constructed in the latent space.
[0019] In some embodiments, the random human motion prediction method further includes constructing an orthogonal basis in a latent space, the steps of which include:
[0020] In the latent space, a latent vector is predicted according to a training set, the predicted latent vector is subjected to PCA decomposition, a low-rank orthogonal basis is obtained from the decomposition result, and the low-rank orthogonal basis is used as an orthogonal basis constructed in the latent space.
[0021] In some embodiments, a random human motion prediction method also includes adjusting the coefficients of the predicted orthogonal basis, linearly combining the adjusted coefficients with the orthogonal basis, coupling the linear combination result with the conditional feature, decoding the coupling result, and obtaining multiple predicted future human skeleton sequences.
[0022] In some embodiments, the query condition includes the number and dimension of motion query vectors.
[0023] Based on the same inventive concept, in a second aspect, the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of a random human motion prediction method when executing the program.
[0024] Based on the same inventive concept, in a third aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of a random human motion prediction method are implemented.
[0025] Implementing one of the above technical solutions of the present invention has the following advantages or beneficial effects:
[0026] The present invention makes up for the defect of the lack of sampling ability of the orthogonal basis by constructing an orthogonal basis in the latent space and combining the past skeleton sequence with the motion query vector as a condition to predict the linear coefficient of the orthogonal basis. The multiple potential representations obtained by linearly combining the orthogonal basis and the predicted coefficients are respectively decoded into multiple future skeleton sequences, so that the motion is represented by the linear combination of the orthogonal basis. In addition, in order to solve the problem of semantically controllable prediction, semantically controllable human motion prediction is achieved by adjusting the coefficients of the orthogonal basis in the inference stage. Furthermore, the present invention provides an accurate and semantically controllable human motion prediction method based on the orthogonal basis latent space, which effectively solves the problem that the prior art prediction is not accurate enough and cannot be semantically controlled. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. It is obvious that the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0028] Figure 1 is a flow chart of a random human motion prediction method according to an embodiment of the present invention;
[0029] Figure 2 is a semantically controllable prediction visualization schematic diagram of an embodiment of the present invention;
[0030] Figure 3 is a schematic diagram of a prediction result corresponding to a diverse motion query according to an embodiment of the present invention;
[0031] Figure 4 It is a structural schematic diagram of a terminal device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solutions and advantages of the present invention clearer, the various exemplary embodiments to be described below will refer to the corresponding drawings, which constitute a part of the exemplary embodiments, wherein various exemplary embodiments that may be used to implement the present invention are described. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present disclosure. It should be understood that they are only examples of processes, methods, devices, etc. that are consistent with some aspects of the present disclosure as detailed in the attached claims, and other embodiments may also be used, or the embodiments listed herein may be modified in structure and function without departing from the scope and essence of the present invention.
[0033] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", etc. indicate the orientation or positional relationship based on the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the elements referred to must have a specific orientation, be constructed and operated in a specific orientation. The terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. The term "multiple" means two or more. The terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, an integral connection, a mechanical connection, an electrical connection, a communication connection, a direct connection, an indirect connection through an intermediate medium, and can be the internal connection of two elements or the interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.
[0034] In order to illustrate the technical solution of the present invention, a specific embodiment is used below for description, and only the parts related to the embodiment of the present invention are shown.
[0035] Embodiment 1: Figure 1 As shown, a random human motion prediction method provided by the present invention comprises the following steps:
[0036] S100, coupling the conditional features corresponding to the acquired past human skeleton sequence with the motion query vector obtained according to the query condition to obtain a coupling feature;
[0037] S200, compress the coupling features in topological space and abstract the global features;
[0038] S300, predicting coefficients of an orthogonal basis constructed in a latent space through global features;
[0039] S400, linearly combining the predicted coefficients with the orthogonal basis, coupling the linear combination result with the conditional feature, decoding the coupling result, and obtaining a plurality of predicted future human skeleton sequences.
[0040] On the one hand, this method projects motion queries and past human motion features onto the coefficients of an orthogonal basis in the latent space, and then obtains semantic information about future motion through a linear combination of the coefficients and the orthogonal basis. The generation of accurate and diverse future human skeleton sequences is achieved through diverse motion queries to make up for the lack of sampling capacity of the orthogonal basis; the orthogonal basis is used as an information bottleneck to represent the latent space and learn meaningful semantic representations, which is conducive to more accurate motion prediction. On the other hand, the obtained semantic information is coupled with past human motion features (such as splicing) and passed through a decoder to generate diverse future skeleton sequences.
[0041] Therefore, this method constructs an orthogonal basis in the latent space, and uses the past skeleton sequence combined with the motion query vector as a condition to predict the linear coefficients of the orthogonal basis, and decodes the multiple potential representations obtained by linearly combining the orthogonal basis and the predicted coefficients into multiple future skeleton sequences, thereby realizing the representation of motion by the linear combination of the orthogonal basis. In addition, in order to solve the problem of semantically controllable prediction, semantically controllable human motion prediction is achieved by adjusting the coefficients of the orthogonal basis in the inference stage. Therefore, this embodiment provides an accurate and semantically controllable human motion prediction method based on the orthogonal basis latent space, which effectively solves the problem that the existing technology is not accurate enough and cannot be semantically controlled.
[0042] In some embodiments, semantically controllable human motion prediction can also be achieved by adjusting the coefficients of the orthogonal basis, that is, adjusting the predicted coefficients to achieve semantically controllable human motion prediction. Specifically, the coefficients of the predicted orthogonal basis are adjusted, the adjusted coefficients are linearly combined with the orthogonal basis, the linear combination result is coupled with the conditional feature, and the coupling result is decoded to obtain multiple predicted future human skeleton sequences.
[0043] It should be noted that, in order to achieve semantically controllable prediction, the coefficients of the orthogonal basis (predicted coefficients) can be manually adjusted to obtain the desired semantic information. Furthermore, the coupling described above includes but is not limited to concatenation, addition, and the like.
[0044] Furthermore, the random human motion prediction of this embodiment generates multiple possible future human skeleton sequences (future motions) based on past human skeleton sequences; latent space is a more macroscopic concept of latent distribution, and latent space is an abstraction of data in a higher-dimensional space, but because of the limited nature of data, it is generally distributed only in a region of the latent space, which is also called latent distribution.
[0045] The semantically controllable prediction described above in this embodiment means that in the process of human motion prediction, the future human skeleton sequence is realized by some means to meet a certain semantic condition. For example, under the premise of predicting a turn, a semantic condition such as squatting or raising the arm is added.
[0046] In some embodiments, obtaining conditional features corresponding to past human skeleton sequences includes the following steps:
[0047] The acquired past human image frames are used to perform human posture estimation, and the three-dimensional past human skeleton sequence obtained by human posture estimation is transformed from the time domain to the frequency domain; the past human skeleton sequence represented in the frequency domain is subjected to feature extraction, and the conditional features obtained by feature extraction are converted from the three-dimensional space to the high-dimensional space.
[0048] It is understandable that, in this embodiment, past human images can be collected by a camera device. The human posture estimation can be performed on the acquired past human image frames by the OpenPose posture estimation algorithm, which has the characteristics of simplicity, high efficiency and good stability. The process of obtaining the conditional features corresponding to the past human skeleton sequence can be understood as the process of encoding the past human skeleton sequence.
[0049] In some embodiments, decoding the coupling result comprises the following steps:
[0050] The coupling result is transformed from a high-dimensional space into a three-dimensional space, and the coupling result transformed into the three-dimensional space is transformed from a frequency domain into a time domain.
[0051] In some embodiments, the dimension of the high-dimensional space is the dimension of features extracted from human skeleton sequences in the past.
[0052] It should be noted that the encoding and decoding model of this embodiment is composed of DCT / IDCT transformation, ST-GCN Encoder and ST-GCN Decoder. DCT transforms the three-dimensional human skeleton sequence from the time domain to the frequency domain. ST-GCNEncoder extracts features from the frequency domain representation of the human skeleton sequence and converts the three-dimensional spatial features into high-dimensional features. ST-GCN Decoder is responsible for decoding the frequency domain high-dimensional features of the human skeleton sequence and future semantic information into the future three-dimensional spatial features of the frequency domain. IDCT transforms the future three-dimensional spatial features of the frequency domain from the frequency domain to the skeleton sequence of the time domain.
[0053] It can be understood that the core of this method is to construct a set of low-rank orthogonal bases in the latent space as motion representation, and there is no unique way to obtain low-rank orthogonal bases. QR decomposition or PCA decomposition can be used to obtain low-rank orthogonal bases. Specifically:
[0054] As an optional implementation, the random human motion prediction method of this embodiment further includes constructing an orthogonal basis in the latent space, the steps of which include:
[0055] The learnable matrix is subjected to QR decomposition, and the decomposed Q matrix is used as the orthogonal basis constructed in the latent space.
[0056] It should be noted that the above QR decomposition is an orthogonal triangular decomposition method, which decomposes a matrix into a normal orthogonal matrix Q and an upper triangular matrix R. The orthogonal vectors of the orthogonal matrix Q constitute an orthogonal basis (a set of orthogonal bases) of this embodiment.
[0057] It should be further explained that the learnable matrix is used to construct the orthogonal basis in the latent space. The learnable matrix can be obtained by calling the built-in function in the pytorch machine learning library, which will not be described here.
[0058] As an optional implementation, the present embodiment provides a random human motion prediction method, further comprising constructing an orthogonal basis in a latent space, the steps of which include:
[0059] In the latent space, a latent vector is predicted according to the training set, the predicted latent vector is decomposed by PCA, a low-rank orthogonal basis is obtained from the decomposition result, and the low-rank orthogonal basis is used as the orthogonal basis constructed in the latent space.
[0060] It should be noted that when the predicted latent vector is subjected to PCA decomposition (Principal Component Analysis, PCA decomposition), the covariance matrix of the latent vector is obtained. The eigenvalues and corresponding eigenvectors of the covariance matrix are obtained through linear transformation, and the eigenvectors are arranged into a matrix by row from top to bottom according to the corresponding eigenvalues, and the first k rows are used as low-rank orthogonal bases. A fully connected neural network is cascaded at the predicted latent vector to predict the weight of the orthogonal basis. The model for predicting the latent vector predicts features, which have a relatively high dimension. It is necessary to cascade a fully connected neural network to compress the dimension into the dimension of the weight. k is consistent with the number of bases of the orthogonal basis of the QR decomposition.
[0061] Furthermore, the model for predicting the latent vector can be a model for predicting the coefficients of the orthogonal basis, and the prediction weights need to be directly modified to prediction features in the coefficient prediction model. Furthermore, the training set mentioned above refers to the training set used to train the network (the model for predicting the latent vector). In this example, the data set publicly available in the academic community can be used. The public data set is a human skeleton sequence collected by a motion capture device / a human skeleton sequence collected by a human posture estimation algorithm. A feasible implementation method is to split the 100-frame skeleton sequence, the first 25 frames represent the past human skeleton sequence, and the last 75 frames represent the future human skeleton sequence to be predicted. In general, after the model is trained through the training set, the training set is no longer needed, but the PCA decomposition is to decompose the features obtained from the samples of the training set. Specifically, all the past human skeleton sequences in the training set are input into the model, and the features (latent vectors) corresponding to the latent space are saved, and then PCA decomposition is performed.
[0062] In step S100 and step S200, the motion query vector and the frequency domain high-dimensional features of the past human skeleton sequence are first coupled, and then the topological space of the human body is gradually compressed to extract the abstract global features, which are then projected into the coefficients of the orthogonal basis. Specifically, the global feature f global The expression is as follows:
[0063] (1);
[0064] (2);
[0065] in, represents the motion query vector, Nq is the number of query vectors, and Dq is the dimension of the query. fcondition is the feature corresponding to the past human skeleton sequence. , S is the number of joints in a single human skeleton; T is the length of the human skeleton sequence; Dcondition is the dimension of the features corresponding to the past human skeleton sequence, Dglobal is the dimension of global features. . , Nbasis is the number of orthogonal bases. MLP is the function (or network) corresponding to the multilayer perceptron; concat is the concatenation function (or network). Nq and Dq can be set in advance.
[0066] It should be noted that STGCN, the full name of Spatial-Temporal Graph Convolutional Network, is a deep learning network specifically used to process spatiotemporal data. Its basic structure includes three main parts: Graph Convolutional Layer, Spatial-Temporal Convolutional Layer and Fully Connected Layer. Among them, the graph convolutional layer is responsible for processing graph-structured data and extracting features by applying convolution operations on the nodes of the graph. This layer usually includes some basic functions of graph convolution operations, such as convolution, activation function, batch normalization, etc. On the basis of the graph convolution layer, the spatiotemporal convolutional layer introduces the time dimension and performs convolution operations on spatiotemporal data. This layer mainly considers the temporal dynamics and spatial correlation of the data. The fully connected layer is responsible for integrating the features extracted by the first two layers and outputting the final prediction results. As a deep learning network specifically used to process spatiotemporal data, STGCN has the advantages of high efficiency, interpretability and wide applicability. By combining graph convolutional networks and causal convolutional networks, STGCN can effectively extract features from both time and space dimensions and consider the causal relationship between time series. When implementing STGCN, it is necessary to pay attention to aspects such as data preprocessing, network structure design, loss function and optimizer selection, and training strategy. In this example, in order to improve the performance and prediction accuracy of STGCN, optimization strategies such as model integration, knowledge distillation, transfer learning, and mixed precision training can be adopted.
[0067] Further, in step S300, the prediction of the coefficients can be performed by a learnable convolutional neural network, and the learnable convolutional neural network is learned by a gradient back propagation function. It can be understood that the prediction of the coefficients is not limited to the learnable convolutional neural network, and can be a fitting function obtained by fitting theoretical or experimental data. Of course, other existing models that can achieve prediction can be used as the prediction model of the coefficients of this embodiment.
[0068] In some embodiments, the query condition includes the number and dimension of the motion query vectors.
[0069] Specifically, diverse motion prediction is achieved through diverse motion queries. Diverse motion queries specifically refer to multiple vectors that can be learned through gradient backpropagation. The motion query vector can be obtained through the built-in function in the pytorch machine learning library, and its input is the number of motion query vectors and the query dimension. For example, when the motion query size is 50×128, 50 represents the number of motion query vectors, and 128 represents the dimension of the vector. Then each query vector (1×128) will be combined with the conditional features (such as concatenation and addition) to project the coefficients corresponding to the orthogonal basis in the latent space, and linearly combined to obtain different semantic information (different latent vectors, 50 vectors), thereby enabling the generation of diverse future human skeleton sequences. That is, 50 future human skeleton sequences, one for each query, different queries are different, so 50 queries correspond to 50 different (diverse) future human skeleton sequences.
[0070] Specifically, the semantics can be controlled as Figure 2 As shown, d3 and d8 represent the 3rd and 8th orthogonal bases. The corresponding properties can be modified by adjusting the size of a base. Figure 2 The prediction of the turning movement is within a certain period of time (such as 2 seconds). D3 represents downward movement, and D8 represents the arm lifting backward.
[0071] like Figure 3 As shown, different motion queries can generate different future motions, and similar future motions can often be obtained based on the same query vector. In the figure, x1 and x2 specifically refer to two different past human skeleton sequences and the prediction results of the model. They are two samples selected from the test set. The red and black colors represent the past human skeleton sequences, and the green and purple colors represent the results of predicting future human skeleton sequences. Among them, the 27th motion query vector, the 45th motion query vector, and the 46th motion query vector refer to three specific different motion query vectors. Therefore Figure 3 Visualization of different past human skeleton sequences and their prediction results under different motion query vectors.
[0072] Embodiment 2: Based on the same inventive concept, the third embodiment of the present invention further provides a terminal device, such as Figure 4 As shown, it includes a memory 501, a processor 502, and a computer program stored in the memory 501 and executable on the processor 502. When the processor 502 executes the program, the above-mentioned random human motion prediction method steps are implemented.
[0073] in, Figure 4In the embodiment, the bus architecture (represented by bus 506) may include any number of interconnected buses and bridges, and bus 506 links various circuits including one or more processors represented by processor 502 and memory represented by memory 501. Bus 506 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 503 provides an interface between bus 506 and receiver 504 and transmitter 505. Receiver 504 and transmitter 505 may be the same element, i.e., a transceiver, providing a unit for communicating with various other devices on a transmission medium. Processor 502 is responsible for managing bus 506 and general processing, while memory 501 may be used to store data used by processor 502 when performing operations.
[0074] Embodiment 3: Based on the same inventive concept, the third embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the random human motion prediction method described above are implemented.
[0075] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0076] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing
[0077] Now the process Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0078] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0080] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flow involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0081] The above description is only the preferred embodiment of the present invention. It is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application belong to the protection scope of the present invention.
Claims
1. A random human motion prediction method, characterized in that: The steps include: The conditional features corresponding to the acquired past human skeleton sequence are coupled with the motion query vector obtained according to the query condition to obtain a coupled feature; Compressing the coupling features in topological space to abstract global features; Predicting coefficients of an orthogonal basis constructed in a latent space through the global features; The predicted coefficients are linearly combined with the orthogonal basis, the linear combination result is coupled with the conditional feature, and the coupling result is decoded to obtain multiple predicted future human skeleton sequences.
2. A random human motion prediction method according to claim 1, characterized in that: Obtaining the conditional features corresponding to the past human skeleton sequence includes the following steps: The acquired past human image frames are used to perform human posture estimation, and the three-dimensional past human skeleton sequence obtained by the human posture estimation is transformed from the time domain to the frequency domain; the past human skeleton sequence represented in the frequency domain is subjected to feature extraction, and the conditional features obtained by the feature extraction are converted from the three-dimensional space to the high-dimensional space.
3. A random human motion prediction method according to claim 1, characterized in that: The decoding of the coupling result comprises the following steps: The coupling result is transformed from a high-dimensional space into a three-dimensional space, and the coupling result transformed into the three-dimensional space is transformed from a frequency domain into a time domain.
4. A random human motion prediction method according to claim 2 or 3, characterized in that: The dimension of the high-dimensional space is the dimension of feature extraction of the past human skeleton sequence.
5. A random human motion prediction method according to claim 1, characterized in that: It also includes constructing an orthogonal basis in the latent space, the steps of which include: Performing QR decomposition on the learnable matrix, and using the decomposed Q matrix as an orthogonal basis constructed in the latent space; The learnable matrix is a matrix that can be obtained through a function in a machine learning library and is used to construct the orthogonal basis.
6. A random human motion prediction method according to claim 1, characterized in that: It also includes constructing an orthogonal basis in the latent space, the steps of which include: In the latent space, a latent vector is predicted according to a training set, the predicted latent vector is subjected to PCA decomposition, a low-rank orthogonal basis is obtained from the decomposition result, and the low-rank orthogonal basis is used as an orthogonal basis constructed in the latent space.
7. A random human motion prediction method according to claim 1, characterized in that: It also includes adjusting the coefficients of the predicted orthogonal basis, linearly combining the adjusted coefficients with the orthogonal basis, coupling the linear combination result with the conditional feature, decoding the coupling result, and obtaining multiple predicted future human skeleton sequences.
8. A random human motion prediction method according to claim 1, characterized in that: The query conditions include the number and dimension of motion query vectors.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the random human motion prediction method as described in any one of claims 1-8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the random human motion prediction method as described in any one of claims 1 to 8 are implemented.
