Pedestrian trajectory prediction method and system based on human group behavior characteristics
By obtaining pedestrian position and speed information, combined with a sparse graph convolution network, it solves the problem of difficulty in capturing group characteristics and speed constraints in the existing technology, achieves accurate pedestrian trajectory prediction in crowded environments, and improves the safety of autonomous driving. .
Patent Information
- Application Number
- CN202410781255.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-18
AI Technical Summary
Existing pedestrian trajectory prediction methods are difficult to effectively capture group characteristics and integrity, especially in crowded environments, and do not take into account the constraints of pedestrian speed, resulting in low prediction accuracy of the model in complex social interaction scenarios.
By obtaining the position and speed information of pedestrians, the fusion module is designed to capture the movement patterns of pedestrian groups from multi-level group features, and uses sparse graph convolutional networks to learn complex interactions between groups and pedestrians to generate accurate predicted trajectories.
It effectively captures group movement patterns, reduces redundant interactions, and generates accurate pedestrian trajectory predictions. It performs particularly well in large-scale public scenes, assists autonomous driving in planning driving routes, and reduces traffic accidents.
Smart Images

Figure CN118366009B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of autonomous driving, and in particular relates to a pedestrian trajectory prediction method and system based on guidance of human group behavior characteristics. Background Art
[0002] Pedestrian trajectory prediction is of great significance in fields such as autonomous driving and intelligent robots. The pedestrian trajectory prediction task aims to predict future trajectories that meet physical and social constraints based on pedestrians' historical motion patterns. Pedestrians' motion patterns usually depend on the surrounding environment and social interactions with neighboring pedestrians. Social interactions between pedestrians include: coordinated movement, following group leaders, or avoiding collisions. Cooperative movement is one of the most common movement patterns, where several pedestrians form a pedestrian group and move together.
[0003] In recent years, convolutional neural networks (CNNs) and graph neural networks (GNNs) have made great progress in modeling social interactions, such as moving together and avoiding collisions. Group-LSTM uses the hidden state of LSTM and the state of the agent to encode the consistent characteristics of the group. Although the motion characteristics of the group can be obtained conceptually, because they focus more on individuals, the interaction edges of pedestrians become more and the model is difficult to represent the relevant features. GPGraph makes improvements by modeling pedestrian groups as graph nodes and considering the interactions within and between groups to reduce the complexity of trajectory prediction, but they simply use the pedestrian positions to obtain the average characteristics of the group. However, when pedestrians move in groups, they have group attributes. The positions and speeds of different pedestrians will have different effects on the movement patterns of the group, so simply considering the pedestrian positions cannot effectively learn the group movement patterns. Multiple pedestrians in a group will have the same movement trend, but the movement trajectories of different pedestrians are different. Existing methods lack the ability to capture the effectiveness and integrity of group characteristics, and do not consider the constraints of pedestrian speed, which will limit the performance of the model in highly crowded environments. Summary of the invention
[0004] The present invention aims to solve the shortcomings of the existing technology and proposes a pedestrian trajectory prediction method and system based on the guidance of human group behavior characteristics. By acquiring the position and speed information of pedestrians, multi-level group characteristics are learned; and a fusion module is designed to capture the movement pattern of pedestrian groups from multi-level group characteristics. At the same time, a sparse graph convolutional network is used to learn the complex interactions between groups and pedestrians.
[0005] To achieve the above object, the present invention provides the following solution: a pedestrian trajectory prediction method based on human group behavior characteristics, comprising the following steps:
[0006] S1. Calculate the pairwise distances based on the historical trajectory information of the pedestrians, and record the pairwise distances; assign row and column indexes to the pedestrians based on the recorded results and learnable threshold parameters; and group the pedestrians based on the row and column indexes;
[0007] S2, obtaining speed information based on the historical trajectory information of the pedestrians in the group, and obtaining the influence degree of the pedestrians in the group on the group characteristics based on the speed information; obtaining the group characteristics of the group speed level based on the influence degree; and obtaining the group characteristics of the group position level based on the position information of the pedestrians in the group and the group index;
[0008] S3, fusing the group features of the group speed level and the group features of the group position level to obtain a group fusion feature;
[0009] S4. Extract individual characteristics of pedestrians based on their historical trajectory information, and perform trajectory prediction based on the individual characteristics of pedestrians and the group fusion characteristics to obtain trajectory prediction characteristics at the group level and trajectory prediction characteristics at the individual level, and perform trajectory prediction and generate a predicted trajectory based on the interactive relationship between the predicted trajectory characteristics at the group level and the predicted trajectory characteristics at the individual level.
[0010] Further preferably, the S1 comprises:
[0011] S11, based on pedestrian i With pedestrians j Calculate the pairwise distances based on the historical trajectory information, and record the pairwise distances in a symmetric distance matrix;
[0012] S12, based on the symmetric distance matrix and the learnable threshold parameter, obtaining the similarity between pedestrian trajectories, and assigning the row and column index to each pedestrian based on the similarity;
[0013] S13. Group pedestrians based on the values of the row and column indexes.
[0014] Further preferably, the S3 includes:
[0015] S31, aggregating group features of the same observation surface of different groups in the scene to obtain a first speed level group feature and a first position level group feature;
[0016] S32, removing the sequence index information of the first speed level group feature and the first position level group feature at different levels to obtain a second speed level group feature and a second position level group feature; connecting the second speed level group feature and the second position level group feature at different levels to obtain a connection feature;
[0017] S33, performing dimension increase and dimension reduction operations on the connection feature to obtain a first feature vector; adding the row and column indexes to the first feature vector to obtain the group fusion feature.
[0018] Further preferably, the S4 includes:
[0019] S41, extracting individual characteristics of pedestrians based on pedestrian historical trajectory information;
[0020] S42, constructing a time graph and a space graph based on the group fusion feature; the time graph is used to describe the motion trajectory of the entire m group; the space graph is used to describe the position of each group in the scene at time t;
[0021] S43, taking the time graph and the space graph as input, using a sparse spatiotemporal graph convolutional network to extract the interaction features and motion trend features of the fusion features;
[0022] S44, inputting the interaction feature and the motion trend feature into two graph convolutional networks respectively to obtain trajectory representation;
[0023] S45, inputting the trajectory representation and the pedestrian individual features into two temporal convolutional networks respectively, to obtain the predicted trajectory features at the group level and the predicted trajectory features at the individual level;
[0024] S46: Based on the interactive relationship between the predicted trajectory features at the group level and the predicted trajectory features at the individual level, perform trajectory prediction and generate a predicted trajectory.
[0025] The present invention also provides a pedestrian trajectory prediction system guided by human group behavior characteristics, the system is used to implement the above prediction method, including: a pedestrian grouping module, a feature extraction module, a group fusion module and a trajectory prediction module;
[0026] The pedestrian grouping module is used to calculate the pairwise distances based on the historical trajectory information of the pedestrians and record the pairwise distances; assign row and column indexes to the pedestrians based on the recorded results and the learnable threshold parameters; and group the pedestrians based on the row and column indexes;
[0027] The feature extraction module is used to obtain speed information based on the historical trajectory information of the pedestrians in the group, and obtain the influence degree of the pedestrians in the group on the group characteristics based on the speed information; obtain the group characteristics of the group speed level based on the influence degree; and obtain the group characteristics of the group position level based on the position information of the pedestrians in the group and the group index;
[0028] The group fusion module is used to fuse the group features of the group speed level and the group features of the group position level to obtain group fusion features;
[0029] The trajectory prediction module is used to extract individual features of pedestrians based on pedestrian historical trajectory information, and perform trajectory prediction based on the individual features of pedestrians and the group fusion features to obtain trajectory prediction features at the group level and trajectory prediction features at the individual level, and perform trajectory prediction and generate a predicted trajectory based on the interactive relationship between the predicted trajectory features at the group level and the predicted trajectory features at the individual level.
[0030] Further preferably, the pedestrian grouping module comprises: a first calculation unit, an allocation unit and a grouping unit;
[0031] The first computing unit is used for i With pedestrians j Calculate the pairwise distances based on the historical trajectory information, and record the pairwise distances in a symmetric distance matrix;
[0032] The allocation unit is used to obtain the similarity between pedestrian trajectories based on the symmetric distance matrix and the learnable threshold parameter, and allocate the row and column index to each pedestrian based on the similarity;
[0033] The grouping unit is used to group pedestrians based on the values of the row and column indexes.
[0034] Further preferably, the group fusion module comprises: an aggregation unit, a connection unit and a fusion unit;
[0035] The aggregation unit is used to aggregate group features of the same observation surface of different groups in the scene to obtain a first speed level group feature and a first position level group feature;
[0036] The connection unit is used to remove the sequence index information of the first speed level group feature and the first position level group feature at different levels to obtain the second speed level group feature and the second position level group feature; connect the second speed level group feature and the second position level group feature at different levels to obtain a connection feature;
[0037] The fusion unit is used to perform dimensionality increase and dimensionality reduction operations on the connection features to obtain a first feature vector; and add the row and column indexes to the first feature vector to obtain the fusion feature.
[0038] Further preferably, the trajectory prediction module comprises: a first extraction unit, a construction unit, a second extraction unit, a trajectory representation unit, a trajectory prediction unit and a generation unit;
[0039] The first extraction unit is used to extract individual features of pedestrians based on pedestrian historical trajectory information;
[0040] The construction unit is used to construct a time graph and a space graph based on the group fusion feature; the time graph is used to describe the motion trajectory of the entire m group; the space graph is used to describe the position of each group in the scene at time t;
[0041] The second extraction unit takes the time graph and the space graph as input and uses a sparse spatiotemporal graph convolutional network to extract the interaction features and motion trend features of the fused features;
[0042] The trajectory representation unit is used to input the interaction feature and the motion trend feature into two graph convolution networks respectively to obtain a trajectory representation;
[0043] The trajectory prediction unit is used to input the trajectory representation and the pedestrian individual features into two temporal convolutional networks respectively to obtain the predicted trajectory features at the group level and the predicted trajectory features at the individual level;
[0044] The generating unit is used for performing trajectory prediction and generating a predicted trajectory based on the interactive relationship between the predicted trajectory features at the group level and the predicted trajectory features at the pedestrian level.
[0045] Compared with the prior art, the present invention has the following beneficial effects:
[0046] The present invention uses learnable threshold parameters to group pedestrians. Then, the group characteristics at the position level are obtained based on the pedestrians' historical trajectories. Finally, the group characteristics at the speed level are learned in combination with the pedestrians' speed information. The learned multi-level group characteristics are used to constrain the position and speed of group members, thereby effectively capturing the movement pattern of the group. The sparse graph convolutional network is used to capture effective social interactions between groups and individual pedestrians, remove invalid redundant interactions, and learn hidden movement trends, thereby generating accurate predicted trajectories.
[0047] The present invention can be trained on a large-scale public pedestrian trajectory prediction data set and the trained weights can be saved. The trained model and weights are then transplanted to a deep learning development board. When the car is equipped with the development board, it can automatically determine the future trajectory of surrounding pedestrians in combination with environmental perception, thereby better assisting in planning driving routes and reducing the occurrence of traffic accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0049] Figure 1Schematic diagram of the implementation flow of the pedestrian trajectory prediction method based on the guidance of human group behavior characteristics according to an embodiment of the present invention;
[0050] Figure 2 The figure is a schematic diagram of pedestrian grouping according to an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0053] Embodiment 1:
[0054] This embodiment provides a pedestrian trajectory prediction method based on human group behavior characteristics, comprising the following steps:
[0055] S1. Calculate the pairwise distances based on the pedestrians’ historical trajectory information and record the pairwise distances; assign row and column indexes to pedestrians based on the recorded results and learnable threshold parameters; and group pedestrians based on the row and column indexes.
[0056] Specifically, S1 includes:
[0057] S11, based on pedestrian i With pedestrians j The historical trajectory information is used to calculate the pairwise distance , record the pairwise distances in a symmetric distance matrix middle.
[0058] S12. Based on the symmetric distance matrix and the learnable threshold parameter, the similarity between pedestrian trajectories is obtained, and row and column indexes are assigned to each pedestrian based on the similarity.
[0059] S13. Group pedestrians based on the values of the row and column indexes.
[0060] The grouping results are as follows Figure 2 As shown in Figure 2, the group index information Q of each pedestrian can be extracted from the grouping result P, which can provide important prior information for the subsequent extraction of group features. , distance matrix And the pedestrian group p is defined as follows:
[0061] ,
[0062] ,
[0063] ,
[0064] Where, X i , X j Pedestrians i and pedestrians j The trajectory coordinates; N represents the number of pedestrians; represents the kth group, which contains different numbers of pedestrians; ε represents a learnable threshold parameter.
[0065] S2. Obtain speed information based on historical trajectory information of pedestrians in the group, and obtain the degree of influence of pedestrians in the group on group characteristics based on the speed information; obtain group characteristics of the group speed level based on the degree of influence; and obtain group characteristics of the group position level based on the position information of pedestrians in the group and the group index.
[0066] Pedestrians in the same group have similar reactions to changes in the motion environment. Based on this, after pedestrian grouping, the motion characteristics of the group members can be aggregated into group features. Therefore, this embodiment uses two branches to extract the features of the grouped pedestrian groups in the scene, including: a speed branch and a position branch.
[0067] Specifically, in the speed branch, the pedestrian's speed information is first obtained through the pedestrian's historical trajectory information; then the influence of pedestrians in the group on the group characteristics is obtained based on the pedestrian's speed information. Using this information as a constraint, the weighted sum of the pedestrian characteristics in the same group is used to obtain the group characteristics of the group speed level. At the same time, in the location branch, according to the historical trajectory positions of pedestrians in the same group and the group index information Q, the group characteristics at the group location level are obtained by average pooling .
[0068] in,
[0069] ,
[0070] ,
[0071] In the formula, represents the pedestrian weight obtained based on speed information; Represents the set of historical trajectory information of pedestrians in the kth group in the scene; Represents an average pooling operation.
[0072] S3. Fuse the group features at the group speed level and the group features at the group position level to obtain group fusion features.
[0073] In order to more effectively integrate and extract the movement patterns of the group, specifically, S3 includes:
[0074] S31, aggregating group features of the same observation surface in different groups in the scene to obtain the first speed level group features and first position level group characteristics .
[0075] in,
[0076] ,
[0077] ,
[0078] In the formula, stack represents the stacking operation.
[0079] S32. In order to learn the motion characteristics of the group more efficiently, temporarily remove the sequence index information of the first speed level group characteristics and the first position level group characteristics at different levels, retain more valuable physical constraint information and the number of pedestrians in different groups, and obtain the second speed level group characteristics and the second position level group characteristics; connect the second speed level group characteristics and the second position level group characteristics at different levels to obtain the connection characteristics .
[0080] S33, using MLP to learn the movement pattern of the group from the group features at different levels, first use the linear layer to increase the dimension of the connection features to increase the group feature information; then through the dimensionality reduction operation, the first feature vector is obtained, which is a feature vector with a fixed dimension. ;in, D =2 represents the characteristic dimension, that is, the two-dimensional coordinate in space; T obs represents the time step of observation; N g Indicates the number of groups in the current scene; the subsequent prediction trajectory generation stage requires index information as the prior information of the group, so finally add the row and column indexes to the first feature vector to obtain the fusion feature .
[0081] S4, extracting pedestrian individual features based on pedestrian historical trajectory information, and performing trajectory prediction based on pedestrian individual features and group fusion features, obtaining trajectory prediction features at the group level and trajectory prediction features at the individual level, and performing trajectory prediction and generating a predicted trajectory based on the interactive relationship between the predicted trajectory features at the group level and the predicted trajectory features at the individual level. Specifically, S4 includes:
[0082] S41. Extracting individual features of pedestrians based on their historical trajectory information.
[0083] S42. Based on the fusion features, construct the time map and space map; time map Used to describe the motion trajectory of the entire m group, where m∈[1,..., N g ]; the spatial graph is used to describe the position of each group in the scene at time t; the time graph and spatial graph contain the interaction information and trajectory movement trend information between groups.
[0084] S43. Taking the time graph and space graph as input, a sparse spatiotemporal graph convolutional network is used to extract the interaction features and motion trend features of the fused features.
[0085] S44. Input the interaction features and motion trend features into two graph convolutional networks respectively to obtain trajectory representation.
[0086] S45. The trajectory representation and the pedestrian individual characteristics are respectively input into two temporal convolutional networks to obtain the predicted trajectory features at the group level and the predicted trajectory features at the individual level.
[0087] In this embodiment, the predicted trajectory characteristics at the group level are obtained by predicting the parameters of the binary Gaussian distribution.
[0088] Suppose the trajectory coordinates of group m at the future time t are Obeys bivariate Gaussian distribution ,in, , , Represent the mean, variance, and correlation coefficient respectively. Similarly, the corresponding individual-level prediction trajectory characteristics are obtained.
[0089] S45. Based on the interaction between the predicted trajectory features at the group level and the predicted trajectory features at the individual level, trajectory prediction is performed and a predicted trajectory is generated.
[0090] In order to better represent the group attributes of pedestrians when predicting trajectories, the predicted trajectory features at the group level are assigned to the pedestrians in the corresponding group according to the group index Q, so that they have the same group motion pattern. At the same time, the predicted trajectory features at the pedestrian level are aggregated by agent, and feature fusion is performed to predict the probability map of future trajectories. In order to output the multimodal trajectory of pedestrians, a latent vector is introduced, and the latent vector is shared among groups, that is, the same latent variables are assigned to pedestrians in the same group; pedestrians in different groups are assigned different latent vectors.
[0091] Embodiment 2:
[0092] In order to verify the effectiveness of the prediction method proposed in the present invention, an experimental verification is carried out.
[0093] Verified on public datasets: ETH, UCY, SDD. The ETH dataset includes two real scenes, ETH and Hotel, and the UCY dataset includes three real scenes, Zara1, Zara2, and Univ. There are 1,536 pedestrians in total, and thousands of pedestrian trajectories are sampled at 2.5Hz. The dataset is divided according to the "leave one out" method, that is, four of the five subsets are used for training, and the remaining one is used for testing. In the experiment, 3.2s (8 frames) of historical trajectories are observed and the future 4.8s (12 frames) of trajectories are predicted; the SDD dataset is an aerial image dataset collected by drones over the Stanford campus. It is ideal for target detection and trajectory prediction. It contains about 60 aerial videos. SDD consists of trajectories and category labels of different object categories, including 6 types of classes, namely bicycles, pedestrians, cars, carts, buses, and roller skaters. 8 frames are selected as historical trajectories and the trajectories of the next 12 frames are predicted.
[0094] The method proposed in this paper is compared with the classic intelligent agent trajectory prediction model. The results are shown in Table 1. To ensure the reproducibility of the experimental results, we added a certain random number seed to the experiment. The results marked with an asterisk in the table indicate the results reproduced using the official code. To ensure fairness, the same hyperparameters as the official ones are set in the experiment. The units of ADE and FDE are meters. The smaller the better for both indicators. Bold: best, underline: suboptimal.
[0095] Table 1
[0096]
[0097] According to Table 1, the proposed method benefits from the effective integration of pedestrian speed information and multi-level group characteristics, and achieves the best performance in the five scenarios, with an average ADE / FDE of 0.24 / 0.41. Compared with other methods, the ADE / FDE of Hotel, Univ and Zara2 scenarios is the best. The FDE value of Zara1 scenario is better than other methods, and ADE is second only to GPGraph. The ADE / FDE in the ETH scenario is second only to STAR.
[0098] Table 2
[0099]
[0100] Table 2 shows the results on the SDD dataset, where our method achieves the best performance in terms of average ADE / FDE of 0.31 / 0.51. It clearly outperforms all other models, including the state-of-the-art socialVAE, with 3% lower ADE and 3.8% lower FDE, which shows the importance of considering pedestrian speed constraints and group motion characteristics in complex trajectory prediction tasks.
[0101] Embodiment three:
[0102] In order to verify the effectiveness of feature fusion, as shown in Table 3, three variants of the model were estimated, where: (1) PSGroup w / avgpool means using the average pooling layer to fuse group features at different levels; (2) PSGroup w / rnn means using RNN to fuse group features; (3) PSGroup w / cnn means using CNN to fuse group features. It can be seen from the results that the present invention is superior to other variants in terms of average ADE / FDE, and has the smallest error in the ETH, Hotel, Univ, and Zara2 scenarios. Among them, other networks are used for replacement while ensuring that other parameters remain unchanged. Bold: Best.
[0103] Table 3
[0104]
[0105] Embodiment 4:
[0106] In order to verify the performance of the method proposed in the present invention for observing the characteristics of pedestrian groups from the position and speed levels, a comparative experiment was conducted with observations only at the position or speed level, and the results are shown in Table 4. In contrast, the introduction of pedestrian speed level observations can effectively learn the movement pattern of the group and improve the prediction performance, especially in the ETH scenario, where pedestrians mostly walk together and move fast. Among them, a linear layer is used for feature fusion. P represents observations only at the position level; S represents observations only at the speed level. Bold: Best.
[0107] Table 4
[0108]
[0109] Embodiment five:
[0110] This embodiment provides a pedestrian trajectory prediction system guided by human group behavior characteristics, including: a pedestrian grouping module, a feature extraction module, a group fusion module and a trajectory prediction module.
[0111] The pedestrian grouping module is used to calculate the pairwise distances based on the historical trajectory information of pedestrians and record the pairwise distances; assign row and column indexes to pedestrians based on the recorded results and learnable threshold parameters; and group pedestrians based on the row and column indexes.
[0112] Specifically, the pedestrian grouping module includes: a first calculation unit, an allocation unit and a grouping unit.
[0113] The first computing unit is used for i With pedestrians jThe historical trajectory information is used to calculate the pairwise distance , record the pairwise distances in a symmetric distance matrix middle.
[0114] The allocation unit is used to obtain the similarity between pedestrian trajectories based on the symmetric distance matrix and the learnable threshold parameters, and to allocate row and column indexes to each pedestrian based on the similarity.
[0115] The grouping unit is used to group pedestrians based on the values of row and column indexes.
[0116] The group index information Q of each pedestrian can be extracted from the grouping result P, which can provide important prior information for the subsequent extraction of group features. , distance matrix And the pedestrian group p is defined as follows:
[0117] ,
[0118] ,
[0119] ,
[0120] Where, X i , X j Pedestrians i and pedestrians j The trajectory coordinates; N represents the number of pedestrians; represents the kth group, which contains different numbers of pedestrians; ε represents a learnable threshold parameter.
[0121] The feature extraction module is used to obtain speed information based on the historical trajectory information of pedestrians in the group, and to obtain the degree of influence of pedestrians in the group on group characteristics based on the speed information; to obtain group characteristics of the group speed level based on the degree of influence; and to obtain group characteristics of the group position level based on the position information of pedestrians in the group and the group index.
[0122] Pedestrians in the same group have similar reactions to changes in the motion environment. Based on this, after pedestrian grouping, the motion characteristics of the group members can be aggregated into group features. Therefore, this embodiment uses two branches to extract the features of the grouped pedestrian groups in the scene, including: a speed branch and a position branch.
[0123] Specifically, in the speed branch, the pedestrian's speed information is first obtained through the pedestrian's historical trajectory information; then the influence of pedestrians in the group on the group characteristics is obtained based on the pedestrian's speed information. Using this information as a constraint, the weighted sum of the pedestrian characteristics in the same group is used to obtain the group characteristics of the group speed level. At the same time, in the location branch, according to the historical trajectory positions of pedestrians in the same group and the group index information Q, the group characteristics at the group location level are obtained by average pooling .
[0124] in,
[0125] ,
[0126] ,
[0127] In the formula, represents the pedestrian weight obtained based on speed information; Represents the set of historical trajectory information of pedestrians in the kth group in the scene; Represents an average pooling operation.
[0128] The group fusion module is used to fuse the group features at the group speed level and the group features at the group position level to obtain group fusion features.
[0129] Specifically, the group fusion module includes: an aggregation unit, a connection unit and a fusion unit.
[0130] The aggregation unit is used to aggregate the group features of the same observation surface in different groups in the scene to obtain the first speed level group features and first position level group characteristics .
[0131] in,
[0132] ,
[0133] ,
[0134] In the formula, stack represents the stacking operation.
[0135] In order to learn the motion characteristics of the group more efficiently, the connection unit temporarily removes the sequence index information of the first speed level group characteristics and the first position level group characteristics at different levels, retains more valuable physical constraint information and the number of pedestrians in different groups, and obtains the second speed level group characteristics and the second position level group characteristics; connects the second speed level group characteristics and the second position level group characteristics at different levels to obtain the connection characteristics .
[0136] The fusion unit is used to learn the movement pattern of the group from the group features at different levels using MLP. First, the linear layer is used to increase the dimension of the connection features to increase the group feature information; then the first eigenvector is obtained through dimensionality reduction. The first eigenvector is a eigenvector with a fixed dimension. ;in,D =2 represents the characteristic dimension, that is, the two-dimensional coordinate in space; T obs represents the time step of observation; N g Indicates the number of groups in the current scene; the subsequent prediction trajectory generation stage requires index information as the prior information of the group, so finally add the row and column indexes to the first feature vector to obtain the fusion feature .
[0137] The trajectory prediction module is used to extract individual characteristics of pedestrians based on their historical trajectory information, and to perform trajectory prediction based on individual characteristics of pedestrians and group fusion characteristics, to obtain trajectory prediction characteristics at the group level and trajectory prediction characteristics at the individual level, and to perform trajectory prediction and generate a predicted trajectory based on the interactive relationship between the predicted trajectory characteristics at the group level and the predicted trajectory characteristics at the individual level.
[0138] Specifically, the trajectory prediction module includes: a first extraction unit, a construction unit, a second extraction unit, a trajectory representation unit, a trajectory prediction unit, and a generation unit.
[0139] The first extraction unit is used to extract individual features of pedestrians based on pedestrian historical trajectory information.
[0140] The construction unit is used to construct the time map and space map based on the fusion features; the time map Used to describe the motion trajectory of the entire m group, where m∈[1,..., N g ]; the spatial graph is used to describe the position of each group in the scene at time t; the time graph and spatial graph contain the interaction information and trajectory movement trend information between groups.
[0141] The extraction unit takes the time graph and the space graph as input, and uses a sparse spatiotemporal graph convolutional network to extract the interaction features and motion trend features of the fused features.
[0142] The trajectory representation unit is used to input the interaction features and motion trend features into two graph convolutional networks respectively to obtain trajectory representation.
[0143] The trajectory prediction unit is used to input the trajectory representation and pedestrian individual characteristics into two temporal convolutional networks respectively to obtain the predicted trajectory features at the group level and the predicted trajectory features at the individual level.
[0144] In this embodiment, the predicted trajectory characteristics at the group level are obtained by predicting the parameters of the binary Gaussian distribution.
[0145] Suppose the trajectory coordinates of group m at the future time t are Obeys bivariate Gaussian distribution ,in, , , Represent the mean, variance, and correlation coefficient respectively. Similarly, the corresponding individual-level prediction trajectory characteristics are obtained.
[0146] The generation unit is used to perform trajectory prediction and generate a predicted trajectory based on the interaction between the predicted trajectory features at the group level and the predicted trajectory features at the individual level.
[0147] In order to better represent the group attributes of pedestrians when predicting trajectories, the predicted trajectory features at the group level are assigned to the pedestrians in the corresponding group according to the group index Q, so that they have the same group motion pattern. At the same time, the predicted trajectory features at the pedestrian level are aggregated by agent, and feature fusion is performed to predict the probability map of future trajectories. In order to output the multimodal trajectory of pedestrians, a latent vector is introduced, and the latent vector is shared among groups, that is, the same latent variables are assigned to pedestrians in the same group; pedestrians in different groups are assigned different latent vectors.
[0148] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. A pedestrian trajectory prediction method based on human group behavior characteristics, characterized in that: The following steps are involved: S1. Calculate the pairwise distance based on the historical trajectory information of the pedestrian, and record the pairwise distance; assign row and column indexes to the pedestrian based on the recorded results and learnable threshold parameters; Based on the row and column indexes, pedestrians are grouped; S2. acquiring speed information based on the historical trajectory information of the pedestrians in the group, and acquiring the degree of influence of the pedestrians in the group on the group characteristics based on the speed information; Based on the degree of influence, a group characteristic of a group speed level is obtained; and obtaining group characteristics at the group location level based on the location information of the pedestrians in the group and the group index; S3, fusing the group features of the group speed level and the group features of the group position level to obtain a group fusion feature; S4, extracting individual features of pedestrians based on historical trajectory information of pedestrians, and performing trajectory prediction based on the individual features of pedestrians and the group fusion features to obtain trajectory prediction features at the group level and trajectory prediction features at the individual level, and performing trajectory prediction and generating a predicted trajectory based on the interactive relationship between the predicted trajectory features at the group level and the predicted trajectory features at the individual level; The S4 includes: S41, extracting individual characteristics of pedestrians based on pedestrian historical trajectory information; S42, constructing a time graph and a space graph based on the group fusion feature; the time graph is used to describe the motion trajectory of the entire m group; the space graph is used to describe the position of each group in the scene at time t; S43, taking the time graph and the space graph as input, using a sparse spatiotemporal graph convolutional network to extract the interaction features and motion trend features of the fusion features; S44, inputting the interaction feature and the motion trend feature into two graph convolutional networks respectively to obtain trajectory representation; S45, inputting the trajectory representation and the pedestrian individual features into two temporal convolutional networks respectively, to obtain the predicted trajectory features at the group level and the predicted trajectory features at the individual level; S46: Based on the interactive relationship between the predicted trajectory features at the group level and the predicted trajectory features at the individual level, perform trajectory prediction and generate a predicted trajectory.
2. The pedestrian trajectory prediction method based on human group behavior characteristics according to claim 1 is characterized in that: The S1 includes: S11, based on pedestrian i With pedestrians j Calculate the pairwise distances based on the historical trajectory information, and record the pairwise distances in a symmetric distance matrix; S12, based on the symmetric distance matrix and the learnable threshold parameter, obtaining the similarity between pedestrian trajectories, and assigning the row and column index to each pedestrian based on the similarity; S13. Group pedestrians based on the values of the row and column indexes.
3. The pedestrian trajectory prediction method based on human group behavior characteristics according to claim 1 is characterized in that: The S3 includes: S31, aggregating group features of the same observation surface of different groups in the scene to obtain a first speed level group feature and a first position level group feature; S32, removing the sequence index information of the first speed level group feature and the first position level group feature at different levels to obtain a second speed level group feature and a second position level group feature; connecting the second speed level group feature and the second position level group feature at different levels to obtain a connection feature; S33, performing dimension increase and dimension reduction operations on the connection feature to obtain a first feature vector; adding the row and column indexes to the first feature vector to obtain the group fusion feature.
4. A pedestrian trajectory prediction system based on human group behavior characteristics, the system is used to implement the prediction method according to any one of claims 1 to 3, characterized in that: include: Pedestrian grouping module, feature extraction module, group fusion module and trajectory prediction module; The pedestrian grouping module is used to calculate the pairwise distances based on the historical trajectory information of the pedestrians and record the pairwise distances; based on the recorded results and the learnable threshold parameters, the pedestrians are assigned row and column indexes; Based on the row and column indexes, pedestrians are grouped; The feature extraction module is used to obtain speed information based on the historical trajectory information of pedestrians in the group, and to obtain the degree of influence of pedestrians in the group on group features based on the speed information; Based on the degree of influence, a group characteristic of a group speed level is obtained; and obtaining group characteristics at the group location level based on the location information of the pedestrians in the group and the group index; The group fusion module is used to fuse the group features of the group speed level and the group features of the group position level to obtain group fusion features; The trajectory prediction module is used to extract individual features of pedestrians based on pedestrian historical trajectory information, and perform trajectory prediction based on the individual features of pedestrians and the group fusion features to obtain trajectory prediction features at the group level and trajectory prediction features at the individual level, and perform trajectory prediction and generate a predicted trajectory based on the interactive relationship between the predicted trajectory features at the group level and the predicted trajectory features at the individual level; The trajectory prediction module includes: a first extraction unit, a construction unit, a second extraction unit, a trajectory representation unit, a trajectory prediction unit and a generation unit; The first extraction unit is used to extract individual features of pedestrians based on pedestrian historical trajectory information; The construction unit is used to construct a time graph and a space graph based on the group fusion feature; the time graph is used to describe the motion trajectory of the entire m group; the space graph is used to describe the position of each group in the scene at time t; The second extraction unit takes the time graph and the space graph as input and uses a sparse spatiotemporal graph convolutional network to extract the interaction features and motion trend features of the fused features; The trajectory representation unit is used to input the interaction feature and the motion trend feature into two graph convolution networks respectively to obtain a trajectory representation; The trajectory prediction unit is used to input the trajectory representation and the pedestrian individual features into two temporal convolutional networks respectively to obtain the predicted trajectory features at the group level and the predicted trajectory features at the individual level; The generating unit is used for performing trajectory prediction and generating a predicted trajectory based on the interaction relationship between the predicted trajectory features at the group level and the predicted trajectory features at the individual level.
5. The pedestrian trajectory prediction system based on human group behavior characteristics according to claim 4 is characterized in that: The pedestrian grouping module includes: a first calculation unit, an allocation unit and a grouping unit; The first computing unit is used for i With pedestrians j Calculate the pairwise distances based on the historical trajectory information, and record the pairwise distances in a symmetric distance matrix; The allocation unit is used to obtain the similarity between pedestrian trajectories based on the symmetric distance matrix and the learnable threshold parameter, and allocate the row and column index to each pedestrian based on the similarity; The grouping unit is used to group pedestrians based on the values of the row and column indexes.
6. The pedestrian trajectory prediction system based on human group behavior characteristics according to claim 4 is characterized in that: The group fusion module includes: an aggregation unit, a connection unit and a fusion unit; The aggregation unit is used to aggregate group features of the same observation surface of different groups in the scene to obtain a first speed level group feature and a first position level group feature; The connection unit is used to remove the sequence index information of the first speed level group feature and the first position level group feature at different levels to obtain the second speed level group feature and the second position level group feature; connect the second speed level group feature and the second position level group feature at different levels to obtain a connection feature; The fusion unit is used to perform dimensionality increase and dimensionality reduction operations on the connection features to obtain a first feature vector; and add the row and column indexes to the first feature vector to obtain the fusion feature.
