Prediction method and device capable of explaining pedestrian road crossing intention based on multi-task mutual guidance
Through the multi-task mutual guidance method, combined with pedestrian posture and scene information, context-constrained posture features are generated to predict pedestrian crossing intentions, which solves the problem of insufficient accuracy of pedestrian crossing intention prediction in complex environments in the existing technology, and achieves a better Accurate and interpretable prediction results.
Patent Information
- Application Number
- CN202410639727.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-03
AI Technical Summary
Existing pedestrian crossing intention prediction models are not accurate enough in complex traffic environments and are difficult to effectively predict pedestrians' future behavior, especially in dynamic environments, which can easily lead to misjudgments.
An interpretable pedestrian crossing intention prediction method based on multi-task mutual induction is adopted. By obtaining the target pedestrian's past posture sequence, scene semantic segmentation map and distance from other traffic objects from the observation frame, context-constrained posture features are generated and combined with future postures. Sequence prediction of pedestrian crossing intentions, enabling more accurate predictions and interpretability.
It improves the accuracy and robustness of pedestrian crossing intention prediction, can better express the future behavior of pedestrians in complex traffic environments, and enhances the ability of autonomous vehicles to understand traffic scenes.
Smart Images

Figure CN118587662A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of road crossing intention prediction, and in particular to an interpretable pedestrian crossing intention prediction method and device based on multi-task mutual guidance. Background Art
[0002] Pedestrian crossing intention prediction is critical for autonomous vehicles because it is directly related to ensuring the safety of road users and the decision-making ability of the autonomous driving system. The unpredictability of pedestrian behavior, such as sudden changes in direction or crossing the road without a signal light, requires autonomous vehicles to accurately predict these actions to avoid collisions. An effective prediction system can identify potential pedestrian actions in advance, allowing the vehicle to adjust its speed or route in time to avoid accidents. As urban traffic conditions become increasingly complex, the accuracy of this prediction becomes particularly important for the widespread application of autonomous vehicles.
[0003] Pedestrian movements are extremely unstable and highly random, and are affected by a variety of factors, including personal intentions, environmental conditions, and social interactions. For example, pedestrians may suddenly change direction because they see other pedestrians, or stop when they sense an approaching vehicle. This behavioral uncertainty and environmental variability pose significant challenges to intention prediction models. Pedestrians' actions and motion trajectories are an important basis for predicting pedestrians' intention to cross the street. Physical features such as interactive actions derived from them can better help us infer the target pedestrian's intention to cross the street. For example, using contextual information for pedestrian path prediction, considering the trajectory of vehicle and pedestrian interactions, and integrating social and physical constraints. Although these methods have achieved good results, their basic reliance on pedestrians' previous behavior brings inherent limitations. Specifically, in a complex traffic environment, pedestrians' behavior is affected by dynamic environmental factors. Therefore, previous behavior patterns may not provide a reliable basis for future predictions. Current models predict pedestrians' intention to cross the street based on their previous actions, which increases the possibility of error.
[0004] Based on this, there is an urgent need to design a pedestrian crossing intention prediction method based on multi-task interaction to more accurately predict pedestrian crossing intention and be applicable to various traffic scenarios. Summary of the invention
[0005] The technical problem to be solved by the present invention is to overcome the defects of the prior art and provide an interpretable pedestrian crossing intention prediction method based on multi-task mutual guidance, which combines scene information and the future posture of pedestrians at the same time, can more accurately predict the pedestrian crossing intention and achieve interpretability.
[0006] In order to solve the above technical problems, the technical solution of the present invention is: an interpretable pedestrian crossing intention prediction method based on multi-task mutual guidance, comprising:
[0007] S1, encode and fuse the target pedestrian's past posture sequence X, the scene semantic segmentation map F, and the distance d between the target pedestrian and other traffic objects obtained from the observation frame to obtain the context-constrained posture feature S of the target pedestrian;
[0008] S2, based on the target pedestrian’s past posture sequence X, uses the context-constrained posture feature S to guide the generation of the target pedestrian’s future posture sequence
[0009] S3, future posture sequence based on context-constrained posture feature S and target pedestrian Predicting pedestrians’ intention to cross the road.
[0010] Further, step S1 is specifically as follows:
[0011] Perform Conv2d downsampling and pooling operations on the scene semantic segmentation map F; perform Conv1d downsampling and pooling operations on the distance d between the target pedestrian and other traffic objects; use TCN_GCN_unit to extract the target pedestrian's past posture sequence X to posture feature X';
[0012] Multiply the result of the two poolings with the posture feature X';
[0013] Perform a mean operation on the dot product results to obtain the context-constrained posture feature S of the target pedestrian.
[0014] Further, step S2 is specifically as follows:
[0015] Gaussian noise is gradually added to the target pedestrian’s past posture sequence X to destroy the original data and obtain the noise X k ;
[0016] Use time step t and context to constrain pose features S and noise X k Constructing guiding feature W;
[0017] For the guided feature W and noise X k The spatial TF layer is obtained by fusing and position encoding, and the spatial TF layer and the guide feature W are fused and position encoded to obtain a temporal TF layer for learning the temporal dependency relationship on the past posture sequence X of the target pedestrian;
[0018] A transformer-based denoiser is used to capture the spatiotemporal dependencies of poses in the temporal TF layer, facilitating the generation of future pose sequences of the target pedestrian that fit the scene in the reverse process.
[0019] Furthermore, we use the time step t and context constraints to constrain the pose features S and the noise X k Construct the guiding feature W; specifically:
[0020] A multi-layer perceptron MLP is used to generate time embedding features t′ according to time step t;
[0021] Fuse the temporal embedding feature t′ with the contextual constraint posture feature S to obtain the fused embedding feature S′;
[0022] In ResnetBlock, the fusion embedding feature S′ and noise X k Using residual links, we obtain the guided feature W.
[0023] Further, step S3 is specifically as follows:
[0024] Use TCN_GCN_unit to extract the future pose sequence of the target pedestrian To posture features
[0025] The posture feature X' and the posture feature Merge to get comprehensive posture features
[0026] Integrate context-constrained pose feature S and comprehensive pose feature Get the posture context embedding feature I; where,
[0027] Mean() represents the mean operation, Linear() represents the linearization operation; Einsum() represents Einstein summation; Conv() represents 2d convolution;
[0028] The posture context embedding feature I is subjected to BatchNorm and Mean operations, and then Dropout is performed to reduce the dimension to obtain the pedestrian’s intention to cross the road.
[0029] The present invention also provides an interpretable pedestrian crossing intention prediction device based on multi-task mutual guidance,
[0030] include:
[0031] The multi-source input fusion module is used to encode and fuse the target pedestrian's past posture sequence X, the scene semantic segmentation map F, and the distance d between the target pedestrian and other traffic objects obtained from the observation frame to obtain the context-constrained posture feature S of the target pedestrian;
[0032] The future posture sequence generation module is used to generate the future posture sequence of the target pedestrian based on the past posture sequence X of the target pedestrian and the context-constrained posture feature S.
[0033] Prediction module, based on the context-constrained posture feature S and the target pedestrian's future posture sequence Predicting pedestrians’ intention to cross the road.
[0034] After adopting the above technical solution, the present invention has the following beneficial effects:
[0035] The present invention uses the extracted context-constrained posture features as guidance, and based on the pedestrian's previous posture, can accurately generate the pedestrian's future posture that conforms to the traffic scene, improving its robustness and accuracy; and uses the generated pedestrian's future posture as an auxiliary clue, combined with the context-constrained posture features to predict the pedestrian's intention to cross the street, which can better express the possible future behavior of pedestrians in complex traffic environments and accurately identify the pedestrian's intention to cross the road. Therefore, the new multi-task mutual guidance network (MTMGN) proposed by the present invention integrates the pedestrian crossing intention prediction task and the pedestrian future posture generation task, and fully utilizes their complementarity through multi-task learning, improves the generalization ability, and enables the MTMGN to accurately predict the pedestrian's intention to cross the road while generating the pedestrian's future posture, achieving interpretability, which is conducive to the autonomous driving car to understand complex traffic scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A framework diagram of an interpretable pedestrian crossing intention prediction model based on multi-task mutual guidance of the present invention;
[0037] Figure 2 A framework diagram of a future posture sequence generation module of the present invention;
[0038] Figure 3 It is a framework diagram of the prediction module of the present invention;
[0039] Figure 4 This is an interpretable pedestrian crossing intention prediction result diagram based on multi-task mutual guidance of the present invention. DETAILED DESCRIPTION
[0040] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments in conjunction with the accompanying drawings.
[0041] Embodiment 1
[0042] like Figure 1 , 2 As shown in ,3, an interpretable pedestrian crossing intention prediction method based on multi-task mutual guidance includes:
[0043] S1 encodes and fuses the target pedestrian's past posture sequence X, the scene semantic segmentation map F, and the distance d between the target pedestrian and other traffic objects obtained from the input observation frame to obtain the context-constrained posture feature S of the target pedestrian; specifically:
[0044] S11, perform Conv2d downsampling and pooling operations on the scene semantic segmentation map F; perform Conv1d downsampling and pooling operations on the distance d between the target pedestrian and other traffic objects; use TCN_GCN_unit to extract the target pedestrian's past posture sequence X to posture feature X';
[0045] S12, dot multiplication of the result after two pooling in step S11 and the posture feature X';
[0046] S13, perform mean operation on the dot product result to obtain the context constraint posture feature S of the target pedestrian; wherein the formula is:
[0047] S=Mean(TCN_GCN_unit(X)·Pooling(Conv2d(F))·Pooling(Conv1d(d));
[0048] Conv2d() represents two-dimensional convolution downsampling; Conv1d() represents one-dimensional convolution downsampling; · represents dot product; Pooling() represents pooling operation; Mean represents mean operation;
[0049] TCN_GCN_unit() consists of a unit_GCN and a unit_TCN, and an additional residual; the specific processing process of TCN_GCN_unit() for the past posture sequence X is to first process the input data X through the graph convolution network (GCN), extract the features in the graph structure, and then send these features to the multi-scale temporal convolution network (TCN) to capture the dynamic changes of the time series; the processed features are introduced with nonlinearity through the ReLU activation function; then the residual connection is enabled, and the original input X is appropriately adjusted (such as channel matching or downsampling) and then added to the processed features, retaining the original information and promoting gradient flow, enhancing the learning ability of the model. Among them, the features obtained after addition are the posture features X'.
[0050] S2, based on the target pedestrian’s past posture sequence X, uses the context-constrained posture feature S to guide the generation of the target pedestrian’s future posture sequence Specifically:
[0051] S21, gradually add Gaussian noise to the target pedestrian’s past posture sequence X, destroy the original data, and obtain the noise X k ; Use multi-layer perceptron MLP to generate time embedding feature t′ according to time step t, fuse the time embedding feature t′ with the context constraint posture feature S to obtain the fused embedding feature S′;
[0052] S22, in ResnetBlock, the fusion embedding feature S′ and noise X kUse residual links to obtain the guided feature W;
[0053] S23, for the guided feature W and the noise X k The spatial TF layer is obtained by fusing and position encoding, and the spatial TF layer and the guide feature W are fused and position encoded to obtain a temporal TF layer for learning the temporal dependency relationship on the past posture sequence X of the target pedestrian;
[0054] S24, uses a transformer-based denoiser to capture the spatiotemporal dependencies of poses in the temporal TF layer, facilitating the generation of future pose sequences of the target pedestrian that fit the scene in the reverse process
[0055] In step S2, the guided feature W and the noise X k Initially connected and fed into a spatial TF layer to mine spatial features. Then, the guided feature W is connected to the output of the spatial TF layer and then fed into the temporal TF layer to explore temporal features. This two-input guided process significantly enhances the exploration of the spatiotemporal dependencies of the pose. That is, the generation of the future pose of the pedestrian considers the impact of various environmental factors on the pedestrian's pose, and uses the context-constrained pose features as conditions to guide the diffusion process towards generating reasonable future poses of the pedestrian. In the denoising process, the pose clarity is gradually enhanced by minimizing the difference between the noisy pose and the corresponding true value, and finally the future pose of the pedestrian is generated.
[0056] Specifically, step S2 mainly provides a reasonable future posture for step S3, and encourages the dependency modeling network to study the spatiotemporal correlation between traffic environment factors and pedestrian postures, so as to generate pedestrian postures consistent with the traffic scene.
[0057] S3, future posture sequence based on context-constrained posture feature S and target pedestrian Predict pedestrians’ intention to cross the road; specifically:
[0058] S31, use TCN_GCN_unit to extract the future posture sequence of the target pedestrian To posture features
[0059] S32, the posture feature X' and the posture feature Merge to get comprehensive posture features
[0060] S33, in order to strengthen the comprehensive posture characteristics The correlation between the context constraint posture feature S and the integrated context constraint posture feature S Get the posture context embedding feature I,
[0061] Among them, Mean() represents the mean operation, Linear() represents the linearization operation, Einsum() represents the Einstein summation, and Conv() represents the 2D convolution. Use mean and linear to ensure size matching.
[0062] S34, perform BatchNorm, Mean and Dropout dimensionality reduction operations on the posture context embedding feature I in sequence, and finally predict the probability of crossing the street or not crossing the street.
[0063] Specifically, the inventors of the present invention consider that the pedestrian's intention to cross the street is closely related to the pedestrian's future behavior. Only considering the pedestrian's past posture will cause the model to fail to make correct decisions. Therefore, this embodiment introduces an auxiliary task of generating the pedestrian's future posture to help predict the pedestrian's intention to cross the road. Through multi-task learning, the information interaction between the prediction of crossing intention and the generation of pedestrian's future posture is promoted, which effectively improves the accuracy of the pedestrian's crossing intention prediction results and provides explainability for the prediction results.
[0064] Embodiment 2
[0065] like Figure 1 , 2 , 3, a predictive device for interpreting pedestrian crossing intention based on multi-task mutual guidance, comprising:
[0066] The multi-source input fusion module is used to obtain the target pedestrian’s past posture sequence X, the scene semantic segmentation map F, and the distance d between the target pedestrian and other traffic objects from the input observation frame, and encode and fuse them to obtain the context-constrained posture feature S of the target pedestrian;
[0067] A future posture sequence generation module is used to generate a future posture sequence X of the target pedestrian based on the past posture sequence X of the target pedestrian and to use the context-constrained posture feature S to guide the generation of the future posture sequence X of the target pedestrian;
[0068] The prediction module is used to predict the pedestrian's intention to cross the road based on the context-constrained posture feature S and the target pedestrian's future posture sequence X.
[0069] The explainable pedestrian crossing intention prediction model based on multi-task mutual guidance involved in the above embodiment has two tasks, namely, a future posture prediction task and a crossing intention prediction task.
[0070] The loss function for the future posture prediction task is:
[0071] L posture =||∈-∈θ(X k ,k)|| 2
[0072] ∈ represents the true value, ∈θ(X k,k) represents the denoised predicted value; this loss function helps the model learn the difference between the denoised result and the true value.
[0073] The loss function for the road crossing intention prediction task is:
[0074] L intention =-y i ·log(p i )-(1-y i )·log(1-p i )
[0075] p i Denotes the predicted label, y i Represents the true label, this loss function helps the model learn the difference between the predicted value and the true label.
[0076] The weighted sum of the above two loss functions gives the loss function of the entire model during the training process. That is,
[0077] L entire =λ1·L posture +λ2·L intention
[0078] Among them, λ1 is the loss function L intention The weight of λ2 is the loss function L intention The weight of .
[0079] The above embodiments are verified by specific experiments below.
[0080] A. Dataset
[0081] We evaluate our method on the JAAD and PIE datasets, which are the most widely used pedestrian behavior datasets.
[0082] B. Evaluation Metrics
[0083] Pedestrian crossing intention prediction is a binary classification task (cross the road / don’t cross the road). Accuracy (Acc), ROC_AUC (AUC), F1 score (F1), precision (P) and recall (R) are used as evaluation indicators.
[0084] C. Experimental Results
[0085]
[0086] Table 1: Performance comparison between the method in this embodiment (model MTMGN) and the existing most advanced model (method)
[0087] Reports additional input sources beyond the baseline used: “Seg” is the semantic segmentation map, “P 3D” is the 3D key point, “B” is the bounding box coordinate, “TP” is the traffic perception data, “LB” is the local bounding box image, “LS” is the local surrounding image, and “H” is the 3D head direction.
[0088] Among the performance indicators in Table 1, the ones in bold are the best, followed by the ones in underline. It can be seen from Table 1 that the evaluation indicators of the model in this embodiment are all optimal or close to optimal.
[0089] We visualize the scene images, target pedestrians, and pedestrian key point coordinates in our model to further qualitatively analyze the environmental and action factors that our model focuses on when inferring pedestrians’ intention to cross the street. Figure 4 As shown in Figure 1, our model correctly focuses on the impact of the surrounding crowds and roads on the target pedestrian's movements, which may potentially affect the target pedestrian's intention to cross the street. Therefore, we show the predicted movements and the target pedestrian's actual movements while showing the road environment. As shown in Figure (a), we show the movement posture of the target pedestrian in the subsequent frames. It can be seen that the target pedestrian's legs have not crossed and moved, and the head also looks like it is observing the road. The model predicts NC, which is consistent with the actual situation. As shown in Figure (b), it can be seen that the pedestrian has not moved his feet. In general, our model can take into account environmental factors that have a significant impact on pedestrian movements instead of paying attention to all environmental factors. Through qualitative analysis, it can further prove the effectiveness of predicting pedestrian crossing intentions by considering the potential interactions between pedestrians and traffic elements and the variability of future movements. As shown in Figure (c), the model predicts the pedestrian's subsequent walking movements and predicts the pedestrian's intention to cross the street. As shown in Figure (d), the pedestrian in the picture is mostly occluded, and the input detection skeleton also has major problems, but the predicted skeleton shows an appropriate movement trend and gives a correct prediction result.
[0090] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, and its technical scope must be determined according to the scope of the claims.
Claims
1. A method for predicting pedestrians’ intention to cross the road based on multi-task interaction, characterized in that: include: S1, encode and fuse the target pedestrian's past posture sequence X, the scene semantic segmentation map F, and the distance d between the target pedestrian and other traffic objects obtained from the observation frame to obtain the context-constrained posture feature S of the target pedestrian; S2, based on the target pedestrian’s past posture sequence X, uses the context-constrained posture feature S to guide the generation of the target pedestrian’s future posture sequence S3, future posture sequence based on context-constrained posture feature S and target pedestrian Predicting pedestrians’ intention to cross the road.
2. The method for predicting pedestrian crossing intention based on multi-task mutual guidance according to claim 1 is characterized in that: Step S1 is specifically as follows: Perform Conv2d downsampling and pooling operations on the scene semantic segmentation map F; perform Conv1d downsampling and pooling operations on the distance d between the target pedestrian and other traffic objects; use TCN_GCN_unit to extract the target pedestrian's past posture sequence X to posture feature X'; Multiply the result of the two poolings with the posture feature X'; Perform a mean operation on the dot product results to obtain the context-constrained posture feature S of the target pedestrian.
3. The method for predicting pedestrian crossing intention based on multi-task mutual guidance according to claim 1 is characterized in that: Step S2 is specifically as follows: Gaussian noise is gradually added to the target pedestrian’s past posture sequence X to destroy the original data and obtain the noise X k ; Use time step t and context to constrain pose features S and noise X k Constructing guiding feature W; For the guided feature W and noise X k The spatial TF layer is obtained by fusing and position encoding, and the spatial TF layer and the guide feature W are fused and position encoded to obtain a temporal TF layer for learning the temporal dependency relationship on the past posture sequence X of the target pedestrian; A transformer-based denoiser is used to capture the spatiotemporal dependencies of poses in the temporal TF layer, facilitating the generation of future pose sequences of the target pedestrian that fit the scene in the reverse process.
4. The method for predicting pedestrian crossing intention based on multi-task mutual guidance according to claim 3 is characterized in that: Use time step t and context to constrain pose features S and noise X k Construct the guiding feature W; specifically: A multi-layer perceptron MLP is used to generate time embedding features t′ according to time step t; Fuse the temporal embedding feature t′ with the contextual constraint posture feature S to obtain the fused embedding feature S′; In ResnetBlock, the fusion embedding feature S′ and noise X k Using residual links, we obtain the guided feature W.
5. According to the method for predicting pedestrian crossing intention based on multi-task mutual guidance according to claim 2, it is characterized in that: Step S3 is specifically as follows: Use TCN_GCN_unit to extract the future pose sequence of the target pedestrian To posture features The posture feature X' and the posture feature Merge to get comprehensive posture features Integrate context-constrained pose feature S and comprehensive pose feature Get the posture context embedding feature I; where, Mean() represents the mean operation, Linear() represents the linearization operation; Einsum() represents Einstein summation; Conv() represents 2d convolution; The posture context embedding feature I is subjected to BatchNorm and Mean operations, and then Dropout is performed to reduce the dimension to obtain the pedestrian’s intention to cross the road.
6. An interpretable pedestrian crossing intention prediction device based on multi-task mutual guidance, characterized in that: include: The multi-source input fusion module is used to encode and fuse the target pedestrian's past posture sequence X, the scene semantic segmentation map F, and the distance d between the target pedestrian and other traffic objects obtained from the observation frame to obtain the context-constrained posture feature S of the target pedestrian; The future posture sequence generation module is used to generate the future posture sequence of the target pedestrian based on the past posture sequence X of the target pedestrian and the context-constrained posture feature S. Prediction module, based on the context-constrained posture feature S and the target pedestrian's future posture sequence Predicting pedestrians’ intention to cross the road.
