A multimodal trajectory prediction method based on semantic environment modeling
Through a multi-modal trajectory prediction method based on semantic environment modeling, using semantic maps and conditional variation generation models, combined with discriminators and diversified loss functions, the existing technology solves the problem of insufficient utilization of semantic environment information and multi-modal trajectory prediction. The modal collapse problem achieves accurate and diverse prediction of pedestrian trajectories, improving the prediction capabilities of intelligent transportation and driverless driving.
Patent Information
- Application Number
- CN202210227310.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-08
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-03-08
AI Technical Summary
It is difficult for existing technologies to effectively utilize semantic environment information in pedestrian trajectory prediction, resulting in inaccurate trajectory prediction results in complex scenarios. Moreover, multi-modal trajectory prediction methods have problems with mode collapse and single fitting, making it difficult to correctly fit complex scenarios. Future trajectory distribution.
A multi-modal trajectory prediction method based on semantic environment modeling is used to generate spatial features and physical environment information through semantic maps. The conditional variation generation model Context-CVGN is designed, combined with the discriminator and diversified loss function, to achieve multi-modal trajectory prediction. accurate prediction.
It achieves more accurate prediction of pedestrians' future trajectories in semantic maps, solves the problems of modal collapse and single fitting, improves the accuracy and diversity of trajectory prediction, and is suitable for fields such as driverless driving and intelligent transportation.
Smart Images

Figure CN114626598B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of autonomous driving and artificial intelligence, and in particular relates to a multimodal trajectory prediction method based on semantic environment modeling. Background Art
[0002] Trajectory prediction has a significant impact in practical fields such as intelligent transportation logistics and automatic unmanned driving. In recent years, due to the application of intelligent algorithms in key frontier fields, the research on artificial intelligence algorithms in pedestrian trajectory prediction has attracted widespread attention from all parties.
[0003] Early work was mainly based on prediction methods based on physical models or simply considering individual information, and trajectory prediction methods that used CNN convolutional neural networks to extract spatial features. These methods can solve the problem of pedestrian trajectory prediction to a certain extent, but their main drawback is that they cannot properly represent interactive information. At the same time, pedestrians' specific semantic environment information will not change for a long time in the same scene, and previous work such as individual information prediction methods and CNN convolutional neural networks did not make good use of this information. Therefore, although the output trajectory prediction can achieve good results in some scenes, it does not show reasonable trajectory prediction results in specific scenes or specific groups of people. Overall, there is still a lot of room for improvement.
[0004] Another point worth noting is that due to the uncertainty of pedestrian trajectories, that is, the destination of pedestrians is not known in advance during the prediction of pedestrian trajectories, so the results of pedestrian trajectory prediction are usually output in the form of probability distribution. In order to simplify the model, in the current research process, as pointed out in the literature (Social Lstm: Human trajectory prediction incrowded spaces.CVPR, 2016), it is often assumed that the future trajectory points of pedestrians obey Gaussian distribution (usually two-dimensional, that is, the horizontal and vertical coordinates of the pedestrian trajectory in the scene) and the pattern characteristics of trajectory prediction are considered from this point of view. This approach has also achieved relatively good results in some scenarios. Based on the above foundation, due to the outstanding performance of Gaussian distribution in predicting a single trajectory, most of the current multimodal prediction algorithms are improvements on single trajectory prediction, that is, by training the trajectory prediction model, a single trajectory is output according to the probability density to fit the true value trajectory training network, and when testing, multiple hypothetical trajectories are generated based on the single predicted output trajectory by fusing multiple noise samples to achieve multimodal prediction. This approach is to find the expected trajectory or the trajectory with the highest probability of future trajectory distribution during training, and generate multimodal trajectories based on this trajectory for multiple sampling during testing. It does not change the essence of fitting a single predicted trajectory. The adverse effect is that as the complexity of the environment in which the trajectory prediction target is located increases, the interaction with surrounding traffic participants increases, and the prediction time increases, the distribution of future trajectories will become a high-dimensional complex probability distribution, and the spatial presentation will become very complex. For example, when pedestrians are facing other pedestrians or vehicles coming towards them, they may have two completely different intentions, left and right. The trajectories corresponding to these two intentions are very different, but they are reasonable outputs under conditional scenarios or semantics. The trajectory clusters generated by multiple sampling of single trajectory prediction are often sampling results that are gradually changing in time sequence and approximately continuous in space. The output results are likely to be the spatial average / weighted of the two situations, making it difficult to correctly and effectively fit the actual trajectory and judge the future trajectory. Because single trajectory prediction is difficult to fully represent this complex future trajectory distribution, the effectiveness and necessity of multimodal trajectory prediction in certain scenarios have gradually attracted attention and triggered some in-depth research.
[0005] At present, there are some studies on solving the problem of multimodal modeling. The paper (A Sampling and Fitting Framework for Multimodal Future Prediction [C] / / 2019 IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 2020.) proposes a mixture density network (MDNs), which solves the multimodal trajectory prediction problem by learning the parameters of the Gaussian mixture model based on the traditional neural network, and has a certain degree of performance improvement. However, due to the numerical instability of MDNs when operating in high-dimensional space, it is often difficult to train in practice; the paper (TPNet: Trajectory Proposal Network for Motion Prediction) proposes a multimodal trajectory prediction method based on the TPNet framework. The method is designed to be divided into two stages, which respectively regress the endpoint for different intentions and generate corresponding trajectory clusters based on the endpoint, which better realizes multimodal trajectory prediction; However, its modal capture method based on intent and endpoint determines that its prediction results are largely dependent on the correctness of the regression endpoint, which in turn has a greater impact on the final prediction quality, making the trajectory prediction output result unstable. Summary of the invention
[0006] Purpose of the invention: The purpose of the present invention is to provide a multimodal trajectory prediction method based on semantic environment modeling, which can predict the reasonable future trajectory of pedestrians in the semantic map of the scene, thereby achieving a more accurate prediction of the distribution of pedestrians' future trajectories, which has positive and profound significance for timely and rapid prediction of reasonable trajectories of pedestrians.
[0007] Technical solution: A multimodal trajectory prediction method based on semantic environment modeling of the present invention comprises the following steps:
[0008] (1) Using semantic modeling to encode environmental information, a semantic map of spatial features and physical environmental information relevant to prediction is generated, while removing fine-grained texture pixel features irrelevant to prediction;
[0009] (2) Establish a multimodal trajectory prediction model architecture. Aiming at the key and difficult points of the multimodal trajectory prediction task under conditional scenarios, the conditional variational generation model Context-CVGN is designed to directly generate and predict M possible future trajectory sequences and the probability of each future trajectory sequence, and provide them as input to the subsequent partial modal matching.
[0010] (3) Use the discriminator to measure the trajectory prediction results. Use the discriminator D to input the predicted trajectory features and use various indicators to determine the error between the predicted trajectory and the true value.
[0011] (4) Construct and calculate the loss function of multimodal prediction, design and calculate the loss function of each corresponding part in the framework separately, and finally obtain the output sum of the multi-part loss function for training.
[0012] Furthermore, in step (1), the semantic map of spatial features and physical environment information related to the prediction includes all pedestrian positions, obstacles and negative spaces.
[0013] Furthermore, step (1) is specifically as follows: introducing scene space modeling to preprocess the input data, using semantic maps to perform environmental structured modeling of the scene where the current pedestrian is located, highlighting spatial feature elements such as scene obstacles and other pedestrian interactions, discarding fine-grained texture features that are useless for trajectory reasoning, and completing efficient rasterized semantic modeling.
[0014] Furthermore, in step (2), a multimodal trajectory prediction model architecture is established using a conditional scene variational generative adversarial network architecture to transform pedestrian historical trajectory sequence information into a multimodal pedestrian trajectory prediction output while considering the environmental modeling information of the rasterized semantic map input.
[0015] Furthermore, in step (3), the predicted trajectory features are input into the discriminator D, decoded through the LSTM layer to obtain a visualized predicted trajectory, and the error between the predicted trajectory and the true value is judged by various indicators to optimize the best performance.
[0016] Furthermore, step (4) is specifically as follows: a diversified loss function combining the WTA (winner take all) loss function, the negative log-likelihood of all trajectories, the adversarial loss, and the latent space distribution fitting KL divergence loss is used to calculate the modal matching loss function to solve the problems of modal collapse and single fitting;
[0017] For the loss function in modal matching, the WTA loss function is the matching modal trajectory X matched and the true value trajectory X ground_truth The average L2 norm of is:
[0018] L WTA =||X matched -X ground_truth ||2
[0019] The negative log-likelihood loss function simultaneously evaluates all modal trajectories and their confidences based on the multidimensional independent normal distribution assumption, and the expression is as follows:
[0020]
[0021] Where M is the number of predicted trajectory modes, and c is the confidence of the corresponding predicted modal trajectory;
[0022] The adversarial loss function is a loss function that determines the distance between the predicted value and the actual value in the scenario of generating the network. The expression is as follows:
[0023]
[0024] For the variational autoencoder network Context-CVAE in the conditional scenario, the loss function expression is as follows:
[0025] L Context-CVAE =α·L WTA +β·L NLL +L KL
[0026] For the conditional generative adversarial networks Context-CGAN and Context-CVGN, the loss function expression is:
[0027] L=α·L WTA +β·L NLL + χ·L GAN_d +L KL
[0028] The hyperparameters such as α, β, χ in the above loss functions are the weight coefficients of each loss function;
[0029] After defining the loss function expression, the parameters can be updated and trained by back-propagation to calculate the parameter gradient to minimize the loss function, thereby obtaining the optimal network architecture parameters for the multimodal trajectory prediction scenario.
[0030] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: the pedestrian trajectory prediction method in the present invention predicts multimodal trajectories in the dynamic interaction scene of pedestrians under the constraints of semantic physical environment, uses rasterized semantic maps in the input prior information for efficient environment modeling, uses variational generative adversarial networks under conditional scenarios to achieve multimodal trajectory prediction, applies the modal matching method to select a trajectory from multiple predicted trajectories according to modal matching, uses a discriminator to measure the modal trajectory and the true value trajectory, and uses a design combined with diversified loss functions to solve the problems of modal collapse and single fitting, so that the model of the present invention can predict the reasonable future trajectory of pedestrians in the semantic map of the scene, thereby achieving a more accurate prediction of the distribution of pedestrians' future trajectories, which has positive and profound significance for timely and rapid prediction of reasonable pedestrian trajectories, and is of great help to the further development of unmanned driving, intelligent transportation and other fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1It is an overall schematic diagram of a multimodal trajectory prediction method framework for semantic environment modeling in a specific embodiment of the present invention;
[0032] Figure 2 A schematic diagram of scene modeling using semantic modeling to encode environmental information in the present invention;
[0033] Figure 3 This is a schematic diagram of the process and loss function comparison of the multimodal trajectory prediction architectures Context-CVAE, Context-CGAN and the fusion architecture Context-CVGN under two conditional scenarios in the specific implementation of the present invention. DETAILED DESCRIPTION
[0034] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0035] The present invention relates to efficient multi-modal pedestrian trajectory prediction output under the condition of semantic environment scene modeling, and the specific implementation method mainly includes the following steps:
[0036] For the input observation video frame image, its time scale t∈{1,2,……,T obs}, a set of pedestrian trajectory sequences in a specific semantic environment is observed in is the physical environment feature vector of the nth pedestrian in the tth frame. The feature vector may only include the 2D coordinates in the input coordinate system. It may also contain fine-grained information such as pedestrian body posture. obs Frame is the current frame, and n∈{1,2,…,N} represents the number of pedestrians contained in each frame.
[0037] The task of multimodal pedestrian trajectory prediction is to predict the possible multiple walking trajectories of a pedestrian in the next period of time based on the known historical time series of a pedestrian, that is, to build an algorithm based on the above information to solve the future multimodal trajectories and their corresponding probabilities shown.
[0038] For a given trajectory prediction pedestrian n, the future prediction trajectory is
[0039]
[0040] Among them, T pred The overall schematic diagram of the multimodal trajectory prediction method framework of semantic environment modeling in the specific implementation of the present invention is as follows Figure 1 shown.
[0041] Step 1: Encoding context information using semantic modeling
[0042] In the present invention, the influence of the surrounding environment on the modeling and prediction of pedestrian trajectories is mainly taken into account, and the data set provides the original images of pedestrian historical trajectories and scenes in the coordinate system, which contain a lot of texture information that is meaningless to trajectory prediction and do not directly reflect the spatial characteristics of the environment in which the pedestrians are located. Such original images not only affect the recognition and extraction of pedestrian trajectory features, but also cannot accurately reflect the interaction of the environment on pedestrian trajectories in conditional scenes.
[0043] In the present invention, considering the powerful scene modeling capability of the raster-coded semantic map, scene modeling is performed in this way. The semantic map finally generated contains the physical environment information of almost all prediction-related spatial features such as the current position of all pedestrians and obstacles and negative space, while removing the fine-grained texture pixel features irrelevant to prediction. The schematic diagram of scene modeling using semantic modeling to encode environmental information in the present invention is shown in FIG. Figure 2 shown.
[0044] In addition, in order to ensure the consistency of spatial position under coordinate transformation, the present invention also converts the pedestrian's historical trajectory into a trajectory sequence in the pixel coordinate system of the semantic map, and makes the coordinates in the entire prediction process the coordinates in the pixel coordinate system, and the trajectory prediction and multimodal output are all completed in the pixel coordinate system.
[0045] Step 2: Establish a multimodal trajectory prediction model architecture
[0046] In the present invention, a conditional variational generation model Context-CVGN is designed to address the key and difficult points of the multimodal trajectory prediction task under conditional scenarios.
[0047] In the model architecture, the feature extraction of the historical pedestrian trajectory to be predicted under the conditional scene is first performed, and the environmental feature vector V with a length of 256 is obtained through the convolution, pooling, and equalization operations of the CNN convolutional neural network. context At the same time, feature extraction is performed on the semantic map that has been rasterized and encoded under the conditional scene to obtain comprehensive and efficient physical space traffic scene information. The historical pedestrian trajectory feature vector V with a length of 256 is obtained through LSTM time series feature vector extraction. trajectory , both serve as input feature conditions for subsequent multimodal prediction.
[0048] For the multimodal trajectory prediction part, the present invention combines the strong sampling ability of the variational autoencoder for the latent space under conditional scenarios and the good fitting ability of the generative adversarial network, and uses a variational autoencoder to fit and sample the latent space distribution of the feature vector. Different from the spatial probability distribution of the output future trajectory, the present invention directly generates and predicts M possible future trajectory sequences and the probability of each future trajectory sequence through the conditional variational model, and provides the subsequent partial modal matching as input while outputting the multimodal predicted trajectory. Among them, M represents the number of modes of the pedestrian predicted trajectory.
[0049] In the present invention, according to the different generation characteristics and prediction performance of variational autoencoders and generative adversarial networks, three prediction architectures, Context-CVAE, Context-CGAN and Context-CVGN, are set up. The main difference between them is that the variational autoencoder performs feature transformation on the sampling results, the generative adversarial network performs feature transformation on the generation results, and CVGN fuses the two for output.
[0050] For Context-CVAE and Context-CVGN, the expressions are as follows:
[0051] S pred =FC(Z sample ,V context ) (2)
[0052] For Context-CGAN, the expression is as follows:
[0053] S pred =FC(V feature ,V context ) (3)
[0054] In the expression, V context represents the semantic environment feature vector, Z sample represents the sampled output obtained from the variational autoencoder, FC is the fully connected layer network of the output fitting prediction trajectory, S pred Represents the output features of multimodal trajectory prediction. In a multimodal prediction, the corresponding probabilities of each trajectory are also output by the fully connected layer and converted into discrete distributions through softmax.
[0055] Through the above process, the design of the multimodal pedestrian trajectory prediction network architecture can well complete the multimodal feature and output tasks.
[0056] Step 3: Use the discriminator to measure the trajectory prediction results
[0057] In the present invention, a modal matching method is applied. First, a trajectory is selected from multiple predicted trajectories according to a matching rule. Then, the constructed discriminator D is used to measure the modal trajectory and the true trajectory, so as to change the current mainstream trajectory prediction method that often predicts a single trajectory at a time, so that the L2 distance between it and the true trajectory is minimized, so that the predicted trajectory tends to fit an average trajectory of the future trajectory distribution rather than multiple possible pedestrian trajectories, thereby achieving the purpose of completing multimodal prediction and predicting and outputting multiple possible trajectories at a time.
[0058] The role of the discriminator D is to obtain a visual predicted trajectory through trajectory feature input and decoding through the LSTM layer, so as to output the future multimodal trajectory of the target pedestrian that is more in line with the specific scenario.
[0059] The structure of the discriminator module is as follows:
[0060]
[0061]
[0062]
[0063] Among them, W embedding , W en , W classify are the trainable parameters of the trajectory point feature embedding layer, LSTM, and the binary classification part. i t is the true value trajectory or matching trajectory to be measured by the discriminator, and the initial hidden state vector of LSTM The environmental feature vector is also introduced as a condition in the discrimination process, Y di This is the result of trajectory binary classification.
[0064] Step 4: Construct and calculate the loss function for multimodal prediction
[0065] The loss function is the basis for network calculation parameter gradients and is the key to architecture update self-optimization. In the process of constructing a multimodal loss function, the present invention takes into account that most mainstream loss function construction methods use the distance error (Euclidean distance, etc.) between the output pedestrian predicted trajectory and the actual true value trajectory as the loss function, and back-propagates the error to update the parameters to achieve the purpose of training the network architecture. The limitation of this prediction method is that the loss function is limited to fitting the average expectation or maximum probability expectation of all possible future trajectories and cannot reasonably predict the multimodality of the trajectory, which will lead to a good prediction of a single trajectory path but not effective prediction of multiple paths. At the same time, it is very likely that in the expected output of the predicted trajectory, due to the correlation of trajectory probabilities under multimodality, problems such as inability to correctly fit will occur.
[0066] In view of the above discussion, the present invention uses a combination of multiple loss functions such as WTA (winner take all) loss function, negative log-likelihood of all trajectories, adversarial loss, and KL divergence loss of latent space distribution fitting in the loss function design, and designs and calculates the loss function of each corresponding part in the framework separately, and finally obtains the output sum of multiple loss functions for training to solve the problems of modal collapse and single fitting. The process and loss function comparison diagram of the multi-modal trajectory prediction architecture Context-CVAE, Context-CGAN and the fusion architecture Context-CVGN under two conditional scenarios in the specific implementation of the present invention are shown in the figure. Figure 3 shown.
[0067] For the loss function in modal matching, the present invention adopts the WTA loss function as the average L2 norm of the matching modal trajectory and the true value trajectory, that is:
[0068] L WTA =||X matched -X ground_truth ||2 (7)
[0069] The negative log-likelihood (NLL) loss function is a loss function that determines the distance between the predicted value and the actual value. It can simultaneously evaluate all modal trajectories and their confidence based on the multi-dimensional independent normal distribution assumption. The expression is as follows:
[0070]
[0071] Where M is the number of predicted trajectory modes, and c is the confidence of the corresponding predicted modal trajectory.
[0072] Similar to the above expression, the adversarial loss function is a loss function that discriminates the distance between the predicted value and the actual value in the scenario of generating the network. The expression is as follows:
[0073]
[0074] KL divergence is a measure of the amount of information loss when minimizing the approximate distribution, which can be used to learn the approximate distribution of complex data when learning variational autoencoders.
[0075] For the variational autoencoder network Context-CVAE in conditional scenarios, the loss function is mainly composed of the sum of the WTA loss function, the NLL loss function and the KL divergence loss, as shown in the following formula:
[0076] L Context-CVAE =α·L WTA +β·L NLL +L KL(10)
[0077] For the generative adversarial networks Context-CGAN and Context-CVGN under conditional scenarios, the loss function also includes the anti-loss function for the scenario under the generative network, and its loss function expression is:
[0078] L=α·L WTA +β·L NLL + χ·L GAN_d +L KL (11)
[0079] The hyperparameters such as α, β, χ in the above loss functions are the weight coefficients of each loss function.
[0080] After defining the loss function expression, the parameters can be updated and trained by back-propagation to calculate the parameter gradient to minimize the loss function, thereby obtaining the optimal network architecture parameters for the multimodal trajectory prediction scenario.
[0081] By training the above model architecture proposed in the present invention, a better estimated prediction output can be obtained.
[0082] In the process of model performance evaluation, similar to the commonly used trajectory prediction evaluation method, the average differential error (Average Differential Error, ADE) and the final differential error (FDE) are selected as evaluation indicators to describe the accuracy of the predicted trajectory. The expressions of ADE and FDE are as follows:
[0083]
[0084]
[0085] In order to ensure trajectory diversity, during trajectory prediction evaluation, noise is often added to the prediction process and multiple predictions are performed (usually 20 times), and the trajectory closest to the true value is taken as the matching output trajectory to calculate ADE / FDE; in the present invention, the proposed multimodal trajectory prediction directly outputs multiple possible trajectories and their confidences, and the matching modal trajectory and the true value trajectory are used to calculate the corresponding ADE / FDE. Specifically, the trajectory and conditional scene data of the past 8 frames totaling 3.2s are used as input, and the pedestrian trajectory of the next 12 frames totaling 4.8s is predicted, and training and testing are performed on five scenes on the ETH&UCY dataset.
[0086] According to the prediction defects of a single mode, the number of modal trajectories output by the model directly affects the quality of trajectory prediction; in particular, when the number of modal trajectories is 1, the prediction model degenerates into a single trajectory prediction. If the number of modal trajectories is too large, a large number of useless modal interference predictions will be generated, which will in turn have a negative impact. This is consistent with the fact that pedestrian trajectories are generally not unique in actual processes, but there are not a large number of selected paths. In the present invention, in order to determine the optimal number of modes, this paper uses the number of modes as an independent variable to conduct experiments and compares the trajectory prediction performance under four modal numbers of 1 to 4. The results are shown in Table 1.
[0087]
[0088] Table 1 Trajectory prediction performance under different numbers of modalities
[0089] As can be seen from Table 1, the single-mode trajectory prediction effect is the worst. Since the present invention aims to solve the multi-modal trajectory prediction problem, the network architecture and loss function used are also for multi-modal output. The single-mode can be approximately considered to predict the average value of the future trajectory distribution. This prediction method is relatively inaccurate for the expected prediction output in the single-mode case. Next, as the number of modes increases, the various indicators of trajectory prediction are improving, but better results are achieved after M=3. It can be considered that pedestrians do not choose too many trajectories in conditional scenarios, and three modal trajectories are sufficient to better represent the future trajectory distribution. Its performance in both performances is relatively excellent.
[0090] From the above, it can be seen that the multimodal trajectory prediction method proposed in the present invention can solve the problems of multimodal prediction collapse and inaccurate semantic environment description to a certain extent, realize the reasonable prediction and accurate output of pedestrian trajectories, and achieve relatively good results.
Claims
1. A multimodal trajectory prediction method based on semantic environment modeling, characterized in that: The steps include: (1) Using semantic modeling to encode environmental information, a semantic map of spatial features and physical environmental information relevant to prediction is generated, while removing fine-grained texture pixel features irrelevant to prediction; (2) Establish a multimodal trajectory prediction model architecture. Aiming at the key and difficult points of the multimodal trajectory prediction task under conditional scenarios, the conditional variational generation model Context-CVGN is designed to directly generate and predict M possible future trajectory sequences and the probability of each future trajectory sequence, and provide them as input to the subsequent partial modal matching. (3) Use the discriminator to measure the trajectory prediction results. Use the discriminator D to input the predicted trajectory features and use various indicators to determine the error between the predicted trajectory and the true value. (4) Construct and calculate the loss function of multimodal prediction, design and calculate the loss function of each corresponding part in the framework separately, and finally obtain the output sum of multiple parts of the loss function for training; Step (4) is specifically as follows: a design combining a diversified loss function of WTA loss function, negative log-likelihood of all trajectories, adversarial loss, and latent space distribution fitting KL divergence loss is used to calculate the modality matching loss function; For the loss function in modal matching, the WTA loss function is the matching modal trajectory X matched and the true value trajectory X ground_truth The average L2 norm of is: L WTA =||X matched -X ground_truth ||2 The negative log-likelihood loss function simultaneously evaluates all modal trajectories and their confidences based on the multidimensional independent normal distribution assumption, and the expression is as follows: Where M is the number of predicted trajectory modes, and c is the confidence of the corresponding predicted modal trajectory; The adversarial loss function is a loss function that determines the distance between the predicted value and the actual value in the scenario of generating the network. The expression is as follows: For the variational autoencoder network Context-CVAE in the conditional scenario, the loss function expression is as follows: L Context-CVAE =α·L WTA +β·L NLL +L KL For the conditional generative adversarial networks Context-CGAN and Context-CVGN, the loss function expression is: L=α·L WTA +β·L NLL +x·L GAN_d +L KL The α, β, and χ hyperparameters in the above loss functions are the weight coefficients of each loss function; After defining the loss function expression, the parameters are updated and trained by back-propagation to calculate the parameter gradients to minimize the loss function and obtain the optimal network architecture parameters for the multimodal trajectory prediction scenario.
2. The multimodal trajectory prediction method based on semantic environment modeling according to claim 1 is characterized in that: In step (1), the semantic map of spatial features and physical environment information related to prediction includes all pedestrian positions, obstacles and negative spaces.
3. The multimodal trajectory prediction method based on semantic environment modeling according to claim 1 is characterized in that: Step (1) is as follows: preprocessing the input data by introducing scene space modeling, using semantic maps to perform environmental structured modeling of the scene where the current pedestrian is located, highlighting the spatial feature elements of scene obstacles and other pedestrian interactions, discarding fine-grained texture features that are useless for trajectory reasoning, and completing efficient rasterized semantic modeling.
4. The multimodal trajectory prediction method based on semantic environment modeling according to claim 1 is characterized in that: In step (2), a multimodal trajectory prediction model architecture is established by using a conditional scene variational generative adversarial network architecture to transform pedestrian historical trajectory sequence information into a multimodal pedestrian trajectory prediction output while considering the environmental modeling information of the rasterized semantic map input.
5. The multimodal trajectory prediction method based on semantic environment modeling according to claim 1, characterized in that: In step (3), the predicted trajectory features are input into the discriminator D, decoded through the LSTM layer to obtain a visualized predicted trajectory, and the error between the predicted trajectory and the true value is judged by various indicators to optimize the best performance.
