Human trajectory prediction method using graph scattering to extract privileged knowledge
By using graph scattering and graph aggregation techniques, privileged knowledge is extracted from human trajectory prediction, which solves the problem of poor prediction performance of static sequences in existing technologies and achieves higher accuracy in human trajectory prediction.
Patent Information
- Application Number
- CN202311375594.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-10-23
AI Technical Summary
Existing interpolation learning networks suffer from poor prediction performance on static sequences and deficiencies in privileged knowledge algorithms on static sequences in human trajectory prediction, resulting in low prediction accuracy.
The privileged knowledge extraction method using spectral scattering is adopted. The high-frequency and low-frequency components of the observation extension sequence are separated by the spectral scattering module, the low-frequency features are extracted by the privileged knowledge learning network, and the spectral response is fused by the spectral aggregation module to construct the residual sequence for prediction.
It improves the accuracy of human trajectory prediction models, reduces the computational load of models, mitigates interference from static sequences, and enhances prediction precision.
Smart Images

Figure CN117409477B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer vision, specifically relating to a method for predicting human trajectory by extracting privileged knowledge using graph scattering. Background Technology
[0002] With the development of autonomous driving and path planning technologies, predicting the movement trajectory of pedestrians in dynamic scenes has become an urgent problem to be solved. Due to the uncertainty of human self-awareness and the influence of the surrounding environment on human behavior, pedestrian movement paths within a specific range will change accordingly. Therefore, how to predict human walking trajectories in a reasonable way is a major challenge. The trajectory prediction problem can be viewed as a sequence generation task, aiming to predict future trajectories based on past human posture sequences. With the popularity of deep neural networks, the application of RNNs, CNNs, and GCNs has been extended to human motion trajectory prediction. These works can model the social forces between people, learn the characteristics of general human motion trajectories, and predict their future trajectories.
[0003] Existing interpolation learning networks have two main drawbacks in human trajectory prediction tasks: First, they interpolate all privileged sequences into the observation sequence as priors, but this method leads to poorer prediction results for static sequences such as waiting and smoking; Second, algorithms that extract privileged knowledge for human motion prediction have improved accuracy compared to traditional human motion prediction algorithms driven by historical motion data, but they have shortcomings in static sequences. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings of the prior art and provide a method for predicting human trajectory by extracting privileged knowledge using graph scattering, which can effectively improve the accuracy of single entity motion trajectory prediction models.
[0005] The specific technical solution adopted in this invention is as follows:
[0006] A method for predicting human trajectory using privileged knowledge extracted from graph scattering includes the following steps:
[0007] S1: The observation extension sequence is obtained by using continuous human posture video. The observation extension sequence is first processed by DCT transformation and scale descent unit to obtain the preprocessed observation extension sequence.
[0008] S2: Obtain a pre-trained privileged knowledge learning network and a final prediction network; the privileged knowledge learning network is composed of a graph scattering module, a spatiotemporal feature encoding module of the privileged knowledge learning network, a graph aggregation module, and a spatiotemporal feature decoding module cascaded in sequence; the final prediction network is composed of a graph scattering module and a privileged knowledge simulator connected in series, followed by a spatiotemporal feature encoding module, a graph aggregation module, and a spatiotemporal feature decoding module cascaded in sequence.
[0009] S3: Input the preprocessed observation extension sequence into the final prediction network, the high-frequency and low-frequency components of the observation extension sequence are output by the spectral scattering module, and the simulated low-frequency features of the privileged extension sequence are output by the privileged knowledge simulator.
[0010] S4: The low-frequency component passes through the spatiotemporal feature encoding module of the final prediction network, and outputs low-frequency features corresponding to the low-frequency component;
[0011] S5: The low-frequency features are added to the simulated low-frequency features, and then input together with the high-frequency components of the observed extended sequence into the spectrum aggregation module. A learnable spectrum importance score is constructed based on the scoring function. The spectrum importance score is used to measure the importance of each spectrum response relative to the entire spectrum. Then, the spectrum responses at each level are fused based on the spectrum importance score, spectrum aggregation is performed, and the spectrum fusion sequence is output.
[0012] S6: After the fusion sequence of the map is passed through the spatiotemporal feature decoding module, it is added to the preprocessed observation extension sequence to obtain the residual sequence of the final prediction network; the residual sequence is transformed by IDCT to obtain the output sequence of the final prediction network, thereby realizing the prediction of human trajectory.
[0013] Preferably, the methods for obtaining the observation extension sequence and the privileged extension sequence are as follows:
[0014] S11: Obtain a continuous human pose video sequence with N+T+P frames;
[0015] S12: Export the human posture video sequence into N+T+P human posture images;
[0016] S13: Sort the human pose images chronologically, with the first N frames as the observation sequence, and represent the observation sequence obs_seq using the three-dimensional coordinates of the human joints. 1:N = [x1, x2, x3, ..., x N ];in K represents the number of joints in the human body, and D is 3.
[0017] S14: Within the time range, obtain the Nth sequence value x of the observed sequence. NThe observed sequence is extended T+P times, with the sequence value being x at each extension. N The extended observation sequence is used as the observation extension sequence Obs_seq 1:N+T+P = [x1, x2, x3, ..., x N x N , ..., x N ];
[0018] S15: The N+1 to N+T frames of the video sequence are ordered chronologically to form the prediction sequence pre_seq. N+1:N+T =[x N+1 x N+2 x N+3 , ..., x N+T ];
[0019] S16: Frames N+T+1 to N+T+P of the video sequence are sorted chronologically to form a privileged sequence priv_seq N+T+1:N+T+P =[x N+T+1 x N+T+2 x N+T+3 , ..., x N+T+P ];
[0020] S17: Within the time frame, retrieve the first sequence value x of the privileged sequence. N+T+1 Extend the privileged sequence forward T+P times, with the sequence value being x at each extension. N+T+1 The extended privileged sequence is used as the privileged extended sequence Priv_seq. 1:N+T+P =[x N+T+1 x N+T+1 x N+T+1 , ..., x N+T+1 x N+T+1 x N+T+2 , ..., x N+T+P ].
[0021] Preferably, both the privileged knowledge learning network and the final prediction network are constructed based on a residual graph convolutional neural network architecture;
[0022] The spatiotemporal feature encoding module of the privileged knowledge learning network includes an encoder for encoding the high-frequency components of the observed extended sequence, an encoder for encoding the low-frequency components of the observed extended sequence, and an encoder for encoding the low-frequency components of the privileged extended sequence. The spatiotemporal feature encoding module of the final prediction network includes an encoder for encoding the high-frequency components of the observed extended sequence and an encoder for encoding the low-frequency components of the observed extended sequence. The encoders have identical structures. Each encoder consists of one convolutional layer, four residual blocks, and one convolutional layer cascaded sequentially. The spatiotemporal feature decoding module includes a decoder with identical structures. Each decoder consists of one convolutional layer, four residual blocks, and one convolutional layer cascaded sequentially. The residual blocks have identical structures, each consisting of two convolutional layers cascaded together, with activation functions between each residual block. Each convolutional layer has an activation function set to tanh(·). The convolutional layers all have the same size, 256×256.
[0023] Preferably, the privileged knowledge learning network is first trained iteratively, and after all iterations are completed, the final learning network begins training.
[0024] The training samples for the privileged knowledge learning network are in the form of (Obs_seq, Priv_seq: Ground_Truth); where Ground_Truth 1:N+T+P = [x1, x2, x3, ..., x N x N+1 x N+2 x N+3 , ..., x N+T x N+T+1 x N+T+2 x N+T+3 , ..., x N+T+P The ground value sequence is the ground value sequence, which is composed of the observation sequence, prediction sequence, and privileged sequence arranged in chronological order.
[0025] In each iteration of the privileged knowledge learning network, the observation extension sequence is transformed into a vector through DCT transformation and scale descent units. Privileged extension sequences are transformed into vectors by DCT transformation and scale descent units. Will and As input, the interpolation function is learned during training iterations.
[0026]
[0027] The spectral scattering module outputs the high-frequency and low-frequency components of the observed extended sequence, as well as the low-frequency component of the privileged extended sequence. The low-frequency component of the privileged extended sequence is then processed by the spatiotemporal feature encoding module of the privileged knowledge learning network, and the interpolation result... When approaching the true sequence Ground_Truth, the low-frequency feature E of the privileged extension sequence is output. m E m It remains unchanged in each iteration of the final prediction network;
[0028] The high-frequency and low-frequency components of the observed extended sequence are processed by the spatiotemporal feature encoding module of the privileged knowledge learning network, which outputs the high-frequency features corresponding to the high-frequency components and the low-frequency features corresponding to the low-frequency components.
[0029] The low-frequency features of the observed extended sequence are added to the low-frequency features of the privileged extended sequence, and then input together with the high-frequency components of the observed extended sequence into the graph aggregation module to output the graph fusion sequence of the privileged knowledge learning network.
[0030] The fused map sequence is passed through the spatiotemporal feature decoding module of the privileged knowledge learning network and then added to the observation extension sequence to obtain the residual sequence of the privileged knowledge learning network; the residual sequence is then subjected to IDCT transformation to obtain the output sequence ItPriv_seq of the privileged knowledge learning network.
[0031] The privileged knowledge learning network outputs a sequence ItPriv_seq containing N+T+P individual human poses. The privileged knowledge loss function L is calculated based on the average joint position error. ItPre The network parameters of the privileged knowledge learning network are updated.
[0032] The training samples for the final prediction network are in the form of (Obs_seq: Ground_Truth); in each iteration of the final learning network, the observed extended sequence is transformed by DCT and scaled down to obtain the network input. Combined with the simulated low-frequency characteristics S of privileged extension sequences m The prediction function is learned during the training iteration.
[0033]
[0034] The final prediction network output sequence Pre_seq only considers the postures of the first N+T individuals, and calculates the prediction loss function L based on the average joint position error. Pre Meanwhile, to measure the simulated low-frequency characteristics S output by the privileged knowledge simulator... m Low-frequency features E of privileged extension sequences m The difference between them is used to introduce the privileged simulation loss function L. SimulThe privileged simulation loss function is multiplied by the relative weight coefficients, and then added to the prediction loss function to obtain the final total loss function L of the prediction network. total The network parameters of the final prediction network are then updated.
[0035] Preferably, the DCT transformation is implemented as follows: the human skeletal structure composed of K human joints is regarded as a fully connected graph composed of K nodes, and an adjacency matrix is used. To describe the edges of a fully connected graph, each element of the adjacency matrix A corresponds to an edge; given an input sequence X, the sequence X′ after DCT transformation can be represented as Where C is the number of DCT coefficients; the sequence X is an observation extension sequence or a privileged extension sequence.
[0036] Preferably, the scale descent unit is implemented as follows: First, several joints are assembled, and the human skeleton is divided into five parts: left arm, right arm, neck, torso, left leg, and right leg. After passing through the scale descent unit, the output sequence X″ can be represented as follows: Where K′ represents the number of body parts on a large scale.
[0037] Preferably, the residual graph convolutional neural network architecture takes the following form:
[0038] H (l+1) =σ(A (l) H (l) W (l) )
[0039] in, It is the input to the l-th convolutional layer of the residual graph convolutional neural network; It is the weight matrix; H (l+1) It is the output of the l-th convolutional layer of the residual graph convolutional neural network; σ(·) is the activation function; A (l) It is the adjacency matrix of the l-th layer.
[0040] Preferably, the spectral scattering module is used to separate the high-frequency components and low-frequency components of the observation extension sequence, and to separate the high-frequency components and low-frequency components of the privileged extension sequence.
[0041] The implementation of the graph scattering module is as follows: First, a graph-based bandpass filter is constructed, and the response function of the bandpass filter is... in It is the number of filters; It is a parameterized matrix that is adaptively adjusted during training. The function form is: Among them ||·|| F Denotes the F-norm; It is the identity matrix;
[0042] Given a bandpass filter Spectral response set The function form is:
[0043]
[0044] in, It is the first Trainable weights of a bandpass filter, adjusted It can adaptively tune the spectral response;
[0045] In the spectral scattering module, the frequency band range of the bandpass filter is constrained by mathematical priors to obtain initial bandpass filters for different frequency bands; the bandpass filter function form after mathematical prior constraints is:
[0046]
[0047]
[0048]
[0049] in, For parameterized matrices of each order Trainable weights; for Initialize α (0,0) =1; for set up And any other for Meanwhile, assuming all edge weights are positive... Only the low-frequency components are retained to enhance smoothness; To obtain the frequency characteristics of the high-frequency components, we need to understand the differences between joints.
[0050] Preferably, in the spectrum aggregation module, given the set of spectral responses at each level... Indicates the first Filters Spectral importance score, The function form is:
[0051]
[0052] in, T denotes matrix transpose; F is the number of features; softmax(·) is the normalization exponential function; f(·) is the scoring function; and W is the learnable weight matrix in the scoring function. It is the full-spectrum response, the full-spectrum response H spThe function form is:
[0053]
[0054] Among them, W sp Let f(·) represent the trainable weights of the full spectrum response, and ReLU(·) be the activation function; the scoring function f(·) has the following functional form:
[0055]
[0056] The spectrum aggregation module is used to output the aggregated spectrum H; the functional form of the aggregated spectrum H is:
[0057]
[0058] The spectral importance score is used to measure the importance of each spectral response relative to the entire spectrum, and then the spectral responses at each level are fused based on the spectral scores. Output aggregated spectrum.
[0059] Preferably, the privileged knowledge loss function L ItPre The function form is:
[0060]
[0061] in, It represents the three-dimensional coordinates of the j-th joint of the n-th sequence value in the output sequence ItPriv_seq of the privileged knowledge learning network, where m is the coordinates of the j-th joint. j,n It is the true three-dimensional coordinate of the j-th joint of the n-th sequence value in the ground_Truth sequence;
[0062] The prediction loss function L Pre The function form is:
[0063]
[0064] in, It is the three-dimensional coordinate of the j-th joint of the n-th sequence value in the final prediction network output sequence Pre_seq, m j,n It is the true three-dimensional coordinate of the j-th joint of the n-th sequence value in the ground_Truth sequence;
[0065] The privileged simulation loss function L Simul The function form is:
[0066] L Simul =||S m -E m || F
[0067] The total loss function L of the final prediction network total The function form is:
[0068] L total =L Pre +λL Simul
[0069] Where λ is the relative weight of the prediction loss function and the privileged simulation loss function.
[0070] Compared with the prior art, the present invention has the following advantages:
[0071] This invention utilizes mathematical prior constraints to establish parallel high- and low-frequency components of sequences extracted by different filters. It extracts low-frequency information of privileged sequences through a spectral scattering module and introduces only the low-frequency components of privileged sequences as supervision, effectively reducing the interference of privileged knowledge on static sequences and improving prediction accuracy. In addition, this invention redesigns the spectral importance score in the spectral aggregation module, reducing the computational load of the model and improving the efficiency of spectral aggregation. Attached Figure Description
[0072] Figure 1 This is a diagram of the overall network structure of a human trajectory prediction method that utilizes graph scattering to extract privileged knowledge.
[0073] Figure 2 The diagram shows two skeletal scale partitioning methods based on the Human 3.6M dataset, which are used to predict human trajectory by extracting privileged knowledge using graph scattering.
[0074] Figure 3 A visualization of the spectral scattering method for predicting human trajectory by extracting privileged knowledge using spectral scattering.
[0075] Figure 4 This is a graph aggregation structure diagram for a human trajectory prediction method that utilizes graph scattering to extract privileged knowledge. Detailed Implementation
[0076] This invention proposes a human trajectory prediction method that utilizes privileged knowledge obtained from graph scattering, which can effectively improve the accuracy of single-entity motion trajectory prediction models.
[0077] A method for predicting human trajectory using privileged knowledge extracted from graph scattering includes the following steps:
[0078] S1: The observation extension sequence is obtained by using continuous human posture video. The observation extension sequence is first processed by DCT transformation and scale descent unit to obtain the preprocessed observation extension sequence.
[0079] S2: Obtain a pre-trained privileged knowledge learning network and a final prediction network; the privileged knowledge learning network is composed of a graph scattering module, a spatiotemporal feature encoding module of the privileged knowledge learning network, a graph aggregation module, and a spatiotemporal feature decoding module cascaded in sequence; the final prediction network is composed of a graph scattering module and a privileged knowledge simulator connected in series, followed by a spatiotemporal feature encoding module, a graph aggregation module, and a spatiotemporal feature decoding module cascaded in sequence.
[0080] S3: Input the preprocessed observation extension sequence into the final prediction network, the high-frequency and low-frequency components of the observation extension sequence are output by the spectral scattering module, and the simulated low-frequency features of the privileged extension sequence are output by the privileged knowledge simulator.
[0081] S4: The low-frequency component passes through the spatiotemporal feature encoding module of the final prediction network, and outputs low-frequency features corresponding to the low-frequency component;
[0082] S5: The low-frequency features are added to the simulated low-frequency features, and then input together with the high-frequency components of the observed extended sequence into the spectrum aggregation module. A learnable spectrum importance score is constructed based on the scoring function. The spectrum importance score is used to measure the importance of each spectrum response relative to the entire spectrum. Then, the spectrum responses at each level are fused based on the spectrum importance score, spectrum aggregation is performed, and the spectrum fusion sequence is output.
[0083] S6: After the fusion sequence of the map is passed through the spatiotemporal feature decoding module, it is added to the preprocessed observation extension sequence to obtain the residual sequence of the final prediction network; the residual sequence is transformed by IDCT to obtain the output sequence of the final prediction network, thereby realizing the prediction of human trajectory.
[0084] In an embodiment of the present invention, the methods for obtaining the observation extension sequence and the privileged extension sequence are as follows:
[0085] S11: Obtain a continuous human pose video sequence with N+T+P frames;
[0086] S12: Export the human posture video sequence into N+T+P human posture images;
[0087] S13: Sort the human pose images chronologically, with the first N frames as the observation sequence, and represent the observation sequence obs_seq using the three-dimensional coordinates of the human joints. 1:N = [x1, x2, x3, ..., x N ];in K represents the number of joints in the human body, and D is 3.
[0088] S14: Within the time range, obtain the Nth sequence value x of the observed sequence. NThe observed sequence is extended T+P times, with the sequence value being x at each extension. N The extended observation sequence is used as the observation extension sequence Obs_seq 1:N+T+P = [x1, x2, x3, ..., x N x N , ..., x N ];
[0089] S15: The N+1 to N+T frames of the video sequence are ordered chronologically to form the prediction sequence pre_seq. N+1:N+T =[x N+1 x N+2 x N+3 , ..., x N+T ];
[0090] S16: Frames N+T+1 to N+T+P of the video sequence are sorted chronologically to form a privileged sequence priv_seq N+T+1:N+T+P =[x N+T+1 x N+T+2 x N+T+3 , ..., x N+T+P ];
[0091] S17: Within the time frame, retrieve the first sequence value x of the privileged sequence. N+T+1 Extend the privileged sequence forward T+P times, with the sequence value being x at each extension. N+T+1 The extended privileged sequence is used as the privileged extended sequence Priv_seq. 1:N+T+P =[x N+T+1 x N+T+1 x N+T+1 , ..., x N+T+1 x N+T+1 x N+T+2 , ..., x N+T+P ].
[0092] In embodiments of the present invention, both the privileged knowledge learning network and the final prediction network are constructed based on a residual graph convolutional neural network architecture, and the overall network structure is as follows: Figure 1As shown. The privileged knowledge (Privileged) The spatiotemporal feature encoding module of the Knowledge, Privilege (PK) learning network includes an encoder for encoding the high-frequency components of the observed extended sequence, an encoder for encoding the low-frequency components of the observed extended sequence, and an encoder for encoding the low-frequency components of the privileged extended sequence. The spatiotemporal feature encoding module of the final prediction network includes an encoder for encoding the high-frequency components of the observed extended sequence and an encoder for encoding the low-frequency components of the observed extended sequence. The encoders have identical structures; each encoder consists of one convolutional layer, four residual blocks, and one convolutional layer cascaded sequentially. The spatiotemporal feature decoding module includes a decoder with identical structures; each decoder consists of one convolutional layer, four residual blocks, and one convolutional layer cascaded sequentially. The residual blocks have identical structures, each consisting of two convolutional layers cascaded together, with activation functions between each residual block. Each convolutional layer has an activation function set to tanh(·). All convolutional layers have the same size, 256×256.
[0093] In an embodiment of the present invention, the privileged knowledge learning network first undergoes iterative training, and after completing all iteration rounds, the final learning network begins training.
[0094] The training samples for the privileged knowledge learning network are in the form of (Obs_seq, Priv_seq: Ground_Truth); where Ground_Truth 1:N+T+P = [x1, x2, x3, ..., x N x N+1 x N+2 x N+3 , ..., x N+T x N+T+1 x N+T+2 x N+T+3 , ..., x N+T+P The ground value sequence is the ground value sequence, which is composed of the observation sequence, prediction sequence, and privileged sequence arranged in chronological order.
[0095] In each iteration of the privileged knowledge learning network, the observation extension sequence is transformed into a vector through DCT transformation and scale descent units. Privileged extension sequences are transformed into vectors by DCT transformation and scale descent units. Will and As input, the interpolation function is learned during training iterations.
[0096]
[0097] The spectral scattering module outputs the high-frequency and low-frequency components of the observed extended sequence, as well as the low-frequency component of the privileged extended sequence. The low-frequency component of the privileged extended sequence is then processed by the spatiotemporal feature encoding module of the privileged knowledge learning network, and the interpolation result... When approaching the true sequence Ground_Truth, the low-frequency feature E of the privileged extension sequence is output. m E m It remains unchanged in each iteration of the final prediction network;
[0098] The high-frequency and low-frequency components of the observed extended sequence are processed by the spatiotemporal feature encoding module of the privileged knowledge learning network, which outputs the high-frequency features corresponding to the high-frequency components and the low-frequency features corresponding to the low-frequency components.
[0099] The low-frequency features of the observed extended sequence are added to the low-frequency features of the privileged extended sequence, and then input together with the high-frequency components of the observed extended sequence into the graph aggregation module to output the graph fusion sequence of the privileged knowledge learning network.
[0100] The fused map sequence is passed through the spatiotemporal feature decoding module of the privileged knowledge learning network and then added to the observation extension sequence to obtain the residual sequence of the privileged knowledge learning network; the residual sequence is then subjected to IDCT transformation to obtain the output sequence ItPriv_seq of the privileged knowledge learning network.
[0101] The privileged knowledge learning network outputs a sequence ItPriv_seq containing N+T+P individual human poses. The privileged knowledge loss function L is calculated based on the average joint position error. ItPre The network parameters of the privileged knowledge learning network are updated.
[0102] The training samples for the final prediction network are in the form of (Obs_seq: Ground_Truth); in each iteration of the final learning network, the observed extended sequence is transformed by DCT and scaled down to obtain the network input. Combined with the simulated low-frequency characteristics S of privileged extension sequences m The prediction function is learned during the training iteration.
[0103]
[0104] The final prediction network output sequence Pre_seq only considers the postures of the first N+T individuals, and calculates the prediction loss function L based on the average joint position error. Pre Meanwhile, to measure the simulated low-frequency characteristics S output by the privileged knowledge simulator... m Low-frequency features E of privileged extension sequences m The difference between them is used to introduce the privileged simulation loss function L.SimUl The privileged simulation loss function is multiplied by the relative weight coefficients, and then added to the prediction loss function to obtain the final total loss function L of the prediction network. total The network parameters of the final prediction network are then updated.
[0105] In an embodiment of the present invention, the DCT transformation is specifically implemented as follows: the human skeletal structure composed of K human joints is regarded as a fully connected graph composed of K nodes, and an adjacency matrix is used. To describe the edges of a fully connected graph, each element of the adjacency matrix A corresponds to an edge; given an input sequence X, the sequence X′ after DCT transformation can be represented as Where C is the number of DCT coefficients; the sequence X is an observation extension sequence or a privileged extension sequence.
[0106] In an embodiment of the present invention, the scale descent unit is implemented as follows: First, several joints are assembled to divide the human skeleton into five parts: left arm, right arm, neck, torso, left leg, and right leg. Figure 2 This demonstrates two methods for skeletal scale segmentation on the Human3.6M dataset; after scale descent, the output sequence X″ can be represented as... Where K′ represents the number of body parts on a large scale.
[0107] In an embodiment of the present invention, the residual graph convolutional neural network architecture is specifically in the form of:
[0108] H (l+1) =σ(A (l) H (l) W (l) )
[0109] in, It is the input to the l-th convolutional layer of the residual graph convolutional neural network; It is the weight matrix; H (l+1) It is the output of the l-th convolutional layer of the residual graph convolutional neural network; σ(·) is the activation function; A (l) It is the adjacency matrix of the l-th layer.
[0110] In an embodiment of the present invention, the spectral scattering module is used to separate the high-frequency components and low-frequency components of the observation extension sequence, and to separate the high-frequency components and low-frequency components of the privileged extension sequence.
[0111] The implementation of the graph scattering module is as follows: First, a graph-based bandpass filter is constructed, and the response function of the bandpass filter is... in It is the number of filters; It is a parameterized matrix that is adaptively adjusted during training. The function form is: Among them ||·|| F Denotes the F-norm; It is the identity matrix;
[0112] Given a bandpass filter Spectral response set The function form is:
[0113]
[0114] in, It is the first Trainable weights of a bandpass filter, adjusted It can adaptively tune the spectral response;
[0115] In the spectral scattering module, the frequency band range of the bandpass filter is constrained by mathematical priors to obtain initial bandpass filters for different frequency bands; the bandpass filter function form after mathematical prior constraints is:
[0116]
[0117]
[0118]
[0119] in, For parameterized matrices of each order Trainable weights; for Initialize α (0,0) =1; for set up And any other for It is possible to obtain the filtered graph features of a series of filters, such as Figure 3 As shown. In this invention, for Meanwhile, assuming all edge weights are positive... Only the low-frequency components are retained to enhance smoothness; To obtain the frequency characteristics of the high-frequency components, we need to understand the differences between joints.
[0120] In an embodiment of the present invention, the structure of the spectrum aggregation module is as follows: Figure 4 As shown, given the set of spectral responses at each level Indicates the first Filters Spectral importance score, The function form is:
[0121]
[0122] in, T represents the matrix transpose; F is the number of features, used to represent the amount of information extracted by the network model; softmax(·) is the normalization exponential function; f(·) is the scoring function, and W is the learnable weight matrix in the scoring function; It is the full-spectrum response, the full-spectrum response H sp The function form is:
[0123]
[0124] Among them, W sp Let f(·) represent the trainable weights of the full spectrum response, and ReLU(·) be the activation function; the scoring function f(·) has the following functional form:
[0125]
[0126] The spectrum aggregation module is used to output the aggregated spectrum H; the functional form of the aggregated spectrum H is:
[0127]
[0128] The spectral importance score is used to measure the importance of each spectral response relative to the entire spectrum, and then the spectral responses at each level are fused based on the spectral scores. Output aggregated spectrum.
[0129] In an embodiment of the present invention, the privileged knowledge loss function L ItPre The function form is:
[0130]
[0131] in, It represents the three-dimensional coordinates of the j-th joint of the n-th sequence value in the output sequence ItPriv_seq of the privileged knowledge learning network, where m is the coordinates of the j-th joint. j,n It is the true three-dimensional coordinate of the j-th joint of the n-th sequence value in the ground_Truth sequence;
[0132] In an embodiment of the present invention, the prediction loss function L Pre The function form is:
[0133]
[0134] in, It is the three-dimensional coordinate of the j-th joint of the n-th sequence value in the final prediction network output sequence Pre_seq, m j,nIt is the true three-dimensional coordinate of the j-th joint of the n-th sequence value in the ground_Truth sequence;
[0135] In an embodiment of the present invention, the privileged simulation loss function L Simul The function form is:
[0136] L Simul =||S m -E m || F
[0137] In an embodiment of the present invention, the total loss function L of the final prediction network 1otal The function form is:
[0138] L tota l = L Pre +λL Simul
[0139] Wherein, λ is the relative weight of the prediction loss function and the privileged simulation loss function. In this embodiment of the invention, it is set to 0.6, but the value of λ can be freely adjusted according to different backbone networks and datasets.
[0140] The datasets for the privileged knowledge learning network and the final prediction network are Human 3.6M, Mocap CMU, and 3DPW. The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the invention. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, all technical solutions obtained through equivalent substitution or transformation fall within the protection scope of the present invention.
Claims
1. A method for predicting human trajectory using privileged knowledge extracted from graph scattering, characterized in that, Includes the following steps: S1: The observation extension sequence is obtained by using continuous human posture video. The observation extension sequence is first processed by DCT transformation and scale descent unit to obtain the preprocessed observation extension sequence. S2: Obtain a pre-trained privileged knowledge learning network and a final prediction network; the privileged knowledge learning network is composed of a graph scattering module, a spatiotemporal feature encoding module of the privileged knowledge learning network, a graph aggregation module, and a spatiotemporal feature decoding module cascaded in sequence; the final prediction network is composed of a graph scattering module and a privileged knowledge simulator connected in series, followed by a spatiotemporal feature encoding module, a graph aggregation module, and a spatiotemporal feature decoding module cascaded in sequence. S3: Input the preprocessed observation extension sequence into the final prediction network, the high-frequency and low-frequency components of the observation extension sequence are output by the spectral scattering module, and the simulated low-frequency features of the privileged extension sequence are output by the privileged knowledge simulator. S4: The low-frequency component passes through the spatiotemporal feature encoding module of the final prediction network, and outputs low-frequency features corresponding to the low-frequency component; S5: The low-frequency features are added to the simulated low-frequency features, and then input together with the high-frequency components of the observed extended sequence into the spectrum aggregation module. A learnable spectrum importance score is constructed based on the scoring function. The spectrum importance score is used to measure the importance of each spectrum response relative to the entire spectrum. Then, the spectrum responses at each level are fused based on the spectrum importance score, spectrum aggregation is performed, and the spectrum fusion sequence is output. S6: After the fusion sequence of the map is passed through the spatiotemporal feature decoding module, it is added to the preprocessed observation extension sequence to obtain the residual sequence of the final prediction network; the residual sequence is transformed by IDCT to obtain the output sequence of the final prediction network, thereby realizing the prediction of human trajectory.
2. The method for predicting human trajectory using privileged knowledge extracted by graph scattering as described in claim 1, characterized in that, The methods for obtaining the observed continuation sequence and the privileged continuation sequence are as follows: S11: Obtain a continuous human pose video sequence with N+T+P frames; S12: Export the human posture video sequence into N+T+P human posture images; S13: Sort the human pose images chronologically, with the first N frames as the observation sequence, and represent the observation sequence obs_seq using the three-dimensional coordinates of the human joints. 1:N = [x1, x2, x3, ..., x N ];in K represents the number of joints in the human body, and D is 3. S14: Within the time range, obtain the Nth sequence value x of the observed sequence. N The observed sequence is extended T+P times, with the sequence value being x at each extension. N The extended observation sequence is used as the observation extension sequence Obs_seq 1:N+T+P = [x1, x2, x3, ..., x N x N , ..., x N ]; S15: The N+1 to N+T frames of the video sequence are ordered chronologically to form the prediction sequence pre_seq. N+1:N+T =[x N+1 x N+2 x N+3 , ..., x N+T ]; S16: Frames N+T+1 to N+T+P of the video sequence are sorted chronologically to form a privileged sequence priv_seq N+T+1:N+T+P =[x N+T+1 x N+T+2 x N+T+3 , ..., x N+T+P ]; S17: Within the time frame, retrieve the first sequence value x of the privileged sequence. N+T+1 Extend the privileged sequence forward T+P times, with the sequence value being x at each extension. N+T+1 The extended privileged sequence is used as the privileged extended sequence Priv_seq. 1:N+T+P =[x N+T+1 x N+T+1 x N+T+1 , ..., x N+T+1 x N+T+1 x N+T+2 , ..., x N+T+P ].
3. The method for predicting human trajectory using privileged knowledge extracted by graph scattering as described in claim 2, characterized in that, Both the privileged knowledge learning network and the final prediction network are built on a residual graph convolutional neural network architecture. The spatiotemporal feature encoding module of the privileged knowledge learning network includes an encoder for encoding the high-frequency components of the observed extended sequence, an encoder for encoding the low-frequency components of the observed extended sequence, and an encoder for encoding the low-frequency components of the privileged extended sequence. The spatiotemporal feature encoding module of the final prediction network includes an encoder for encoding the high-frequency components of the observed extended sequence and an encoder for encoding the low-frequency components of the observed extended sequence. The encoders have identical structures. Each encoder consists of one convolutional layer, four residual blocks, and one convolutional layer cascaded sequentially. The spatiotemporal feature decoding module includes a decoder with identical structures. Each decoder consists of one convolutional layer, four residual blocks, and one convolutional layer cascaded sequentially. The residual blocks have identical structures, each consisting of two convolutional layers cascaded together, with activation functions between each residual block. Each convolutional layer has an activation function set to tanh(·). The convolutional layers all have the same size, 256×256.
4. The method for predicting human trajectory using privileged knowledge extracted by graph scattering as described in claim 3, characterized in that, The privileged knowledge learning network is first trained iteratively, and after all iterations are completed, the final learning network begins training. The training samples for the privileged knowledge learning network are in the form of (Obs_seq, Priv_seq: Ground_Truth); Ground_Truth 1:N+T+P = [x1, x2, x3, ..., x N x N+1 x N+2 x N+3 , ..., x N+T x N+T+1 x N+T+2 x N+T+3 , ..., x N+T+P The ground value sequence is the ground value sequence, which is composed of the observation sequence, prediction sequence, and privileged sequence arranged in chronological order. In each iteration of the privileged knowledge learning network, the observation extension sequence is transformed into a vector through DCT transformation and scale descent units. Privileged extension sequences are transformed into vectors by DCT transformation and scale descent units. Will and As input, the interpolation function is learned during training iterations. The high-frequency and low-frequency components of the observed extended sequence, as well as the low-frequency component of the privileged extended sequence, are output by the spectral scattering module. The low-frequency components of the privileged extended sequence are processed by the spatiotemporal feature encoding module of the privileged knowledge learning network, and the interpolation result... When approaching the true sequence Ground_Truth, the low-frequency feature E of the privileged extension sequence is output. m E m It remains unchanged in each iteration of the final prediction network; The high-frequency and low-frequency components of the observed extended sequence are processed by the spatiotemporal feature encoding module of the privileged knowledge learning network, which outputs the high-frequency features corresponding to the high-frequency components and the low-frequency features corresponding to the low-frequency components. The low-frequency features of the observed extended sequence are added to the low-frequency features of the privileged extended sequence, and then input together with the high-frequency components of the observed extended sequence into the graph aggregation module to output the graph fusion sequence of the privileged knowledge learning network. The fused map sequence is passed through the spatiotemporal feature decoding module of the privileged knowledge learning network and then added to the observation extension sequence to obtain the residual sequence of the privileged knowledge learning network; the residual sequence is then subjected to IDCT transformation to obtain the output sequence ItPriv_seq of the privileged knowledge learning network. The privileged knowledge learning network outputs a sequence ItPriv_seq containing N+T+P individual human poses. The privileged knowledge loss function L is calculated based on the average joint position error. ItPre The network parameters of the privileged knowledge learning network are updated. The training samples for the final prediction network are in the form of (Obs_seq: Ground_Truth); in each iteration of the final learning network, the observed extended sequence is transformed by DCT and scaled down to obtain the network input. Combined with the simulated low-frequency characteristics S of privileged extension sequences m The prediction function is learned during the training iteration. The final prediction network output sequence Pre_seq only considers the postures of the first N+T individuals, and calculates the prediction loss function L based on the average joint position error. Pre Meanwhile, to measure the simulated low-frequency characteristics S output by the privileged knowledge simulator... m Low-frequency features E of privileged extension sequences m The difference between them is used to introduce the privileged simulation loss function L. Simul The privileged simulation loss function is multiplied by the relative weight coefficients, and then added to the prediction loss function to obtain the final total loss function L of the prediction network. total The network parameters of the final prediction network are then updated.
5. The method for predicting human trajectory using privileged knowledge extracted by graph scattering as described in claim 4, characterized in that, The DCT transformation is implemented as follows: the human skeletal structure, composed of K human joints, is regarded as a fully connected graph consisting of K nodes, and an adjacency matrix is used. To describe the edges of a fully connected graph, each element of the adjacency matrix A corresponds to an edge; given an input sequence X, the sequence X′ after DCT transformation can be represented as Where C is the number of DCT coefficients; the sequence X is an observation extension sequence or a privileged extension sequence.
6. The method for predicting human trajectory using privileged knowledge extracted by graph scattering as described in claim 5, characterized in that, The scale descent unit is implemented as follows: First, several joints are assembled, and the human skeleton is divided into five parts: left arm, right arm, neck, torso, left leg, and right leg. After passing through the scale descent unit, the output sequence X″ can be represented as follows: Where K′ represents the number of body parts on a large scale.
7. The method for predicting human trajectory using privileged knowledge extracted by graph scattering as described in claim 6, characterized in that, The specific form of the residual graph convolutional neural network architecture is as follows: in, It is the first residual graph convolutional neural network. Each convolutional layer input; It is a weight matrix; It is the first residual graph convolutional neural network. The output of each convolutional layer; σ(·) is the activation function; It is the first The adjacency matrix of the layer.
8. The method for predicting human trajectory using privileged knowledge extracted by graph scattering as described in claim 7, characterized in that, The spectral scattering module is used to separate the high-frequency and low-frequency components of the observed extended sequence and to separate the high-frequency and low-frequency components of the privileged extended sequence. The implementation of the graph scattering module is as follows: First, a graph-based bandpass filter is constructed, and the response function of the bandpass filter is... in It is the number of filters; It is a parameterized matrix that is adaptively adjusted during training. The function form is: Among them ||·|| F Denotes the F-norm; It is the identity matrix; Given a bandpass filter Spectral response set The function form is: in, It is the first Trainable weights of a bandpass filter, adjusted This allows for adaptive tuning of the spectral response; in the spectral scattering module, the bandpass filter's bandwidth is constrained by mathematical priors to obtain initial bandpass filters for different frequency bands; the bandpass filter function after mathematical prior constraints is as follows: in, For parameterized matrices of each order Trainable weights; for Initialize α (0,0) =1; for set up And any other for Meanwhile, assuming all edge weights are positive... Only the low-frequency components are retained to enhance smoothness; To obtain the frequency characteristics of the high-frequency components, we need to understand the differences between joints.
9. The method for predicting human trajectory using privileged knowledge extracted by graph scattering as described in claim 8, characterized in that, In the spectrum aggregation module, a set of spectral responses at each level is given. Indicates the first Filters Spectral importance score, The function form is: in, T denotes matrix transpose; F is the number of features; softmax(·) is the normalization exponential function; f(·) is the scoring function; and W is the learnable weight matrix in the scoring function. It is the full-spectrum response, the full-spectrum response H sp The function form is: Among them, W sp Let f(·) represent the trainable weights of the full spectrum response, and ReLU(·) be the activation function; the scoring function f(·) has the following functional form: The spectrum aggregation module is used to output the aggregated spectrum H; the functional form of the aggregated spectrum H is: The spectral importance score is used to measure the importance of each spectral response relative to the entire spectrum, and then the spectral responses at each level are fused based on the spectral scores. Output aggregated spectrum.
10. The method for predicting human trajectory using privileged knowledge extracted by graph scattering as described in claim 9, characterized in that, The privileged knowledge loss function L ItPre The function form is: in, It represents the three-dimensional coordinates of the j-th joint of the n-th sequence value in the output sequence ItPriv_seq of the privileged knowledge learning network, where m is the coordinates of the j-th joint. j , n It is the true three-dimensional coordinate of the j-th joint of the n-th sequence value in the ground_Truth sequence; The prediction loss function L Pre The function form is: in, It is the three-dimensional coordinate of the j-th joint of the n-th sequence value in the final prediction network output sequence Pre_seq, m j,n It is the true three-dimensional coordinate of the j-th joint of the n-th sequence value in the ground_Truth sequence; The privileged simulation loss function L Simul The function form is: THE Simul =||S m -AND m || F The total loss function L of the final prediction network total The function form is: THE total =L Pre +λL Simul Where λ is the relative weight of the prediction loss function and the privileged simulation loss function.
Citation Information
Patent Citations
3D human body motion prediction method based on uncertainty loss function
CN116311508A
Action prediction method for unknown category
WO2023142552A1
