Pedestrian crossing intention prediction method and device based on multiple uncertainties

By extracting multi-scale time features and self-attention mechanisms and fitting the Beta distribution, the inadequacy of uncertainty estimation in the prediction of pedestrian crossing intentions is solved, the credibility of the prediction results and the learning ability of the model are improved, and intelligent vehicle control is realized Systematic reliable decision-making.

CN118898867APending Publication Date: 2024-11-05CHANGZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410921173.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

The prior art cannot effectively quantify the uncertainty of pedestrian crossing intention prediction, making it difficult for intelligent vehicle control systems to make reliable decisions, and the volatile pedestrian intention leads to problems in historical time series where intention performance is opposite to real intention.

Method used

Using a pedestrian crossing intention prediction method based on multiple uncertainties, multi-scale time features are extracted from pedestrian bounding boxes, postures, bicycle speeds and polar coordinates, combined with self-attention mechanisms and sinusoidal position coding, the Beta distribution is fitted to obtain The probability and uncertainty of pedestrians traveling.

Benefits of technology

It improves the credibility of the prediction results, provides a reliable decision-making basis for the intelligent vehicle control system, and improves the model's learning ability to suddenly change pedestrian intentions. Experiments have proved that the AUC on the JAAD and PIE datasets reached 90% and 94%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118898867A_ABST
    Figure CN118898867A_ABST
Patent Text Reader

Abstract

The invention relates to a pedestrian crossing intention prediction method and device based on multiple uncertainties. The method comprises the following steps: extracting multi-scale time features from a pedestrian bounding box, a pedestrian posture, a self-vehicle speed and a quasi-polar coordinate; splicing the multi-scale time features in a channel dimension to obtain a feature FC; a class mark Ttk composed of learnable parameters is added to the feature FC, channel position information is recorded, and a feature FT is obtained; feature fusion is carried out on the feature FT to obtain a feature FCT, the feature of the position where the class mark Ttk is located is obtained from the feature FCT, the feature is sent to an MLP for basis collection, and a feature FE representing a judgment basis is obtained; and fitting the feature FE into Beta distribution, and obtaining the crossing probability and uncertainty of the pedestrian i. According to the method, the credibility of a pedestrian intention result is obtained while the pedestrian intention result is obtained after the information of all the elements is integrated, so that a reliable decision basis is provided for an intelligent vehicle control system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of crossing intention prediction, and in particular to a method and device for predicting pedestrian crossing intention based on multiple uncertainties. Background Art

[0002] In today's era of rapid development of intelligent transportation systems (ITS), the interactions between intelligent agents in transportation systems have become more precise and rapid. However, pedestrians, as traffic participants, cannot have their intentions directly acquired and shared by ITS. How to make intelligent agents think like human drivers to obtain judgment basis and control vehicle systems to make more efficient and safe responses is currently a topic that urgently needs to be studied.

[0003] The current mainstream methods all directly predict pedestrian crossing intentions (Crossing or Non-Crossing) from the model, but fail to obtain the uncertainty that is particularly important for intelligent vehicle control systems. For the predictions made by the model, its uncertainty should be quantified to provide a reliable basis for judgment for the vehicle control system, so as to make decisions that are more favorable to ITS. Therefore, providing reliable uncertainty estimates while making pedestrian crossing intention prediction results is necessary to maintain the safety of ITS.

[0004] At present, one of the uncertainty estimation methods is to sample or repeatedly calculate the model parameters to obtain the variance of the results. This method has certain requirements on computing power and is difficult to meet the real-time requirements of ITS. Another part of the method only estimates the uncertainty of the parameters, which is one-sided. In addition, since the intention of pedestrians can easily change in a short period of time (a few frames), the intention of early pedestrians in the historical time series may be opposite to the actual intention of the last pedestrian.

[0005] Therefore, it is urgent to design a new pedestrian crossing intention prediction method to solve the above problems. Summary of the invention

[0006] The technical problem to be solved by the present invention is to overcome the defects of the prior art and provide a pedestrian crossing intention prediction method based on multiple uncertainties. It obtains the pedestrian intention result after integrating the information of various factors and obtains the credibility of the result, thereby providing a reliable decision-making basis for the intelligent vehicle control system.

[0007] In order to solve the above technical problems, the technical solution of the present invention is: a method for predicting pedestrian crossing intention based on multiple uncertainties, the method comprising:

[0008] From the pedestrian bounding box B i , pedestrian posture P i , the vehicle speed V and the pedestrian's quasi-polar coordinates Q from the vehicle's perspective iExtracting multi-scale temporal features F V , and

[0009] The extracted multi-scale temporal features F V , and Concatenate on the channel dimension to retain the time series features and transform the dimension to obtain the feature F C ;

[0010] For feature F C Add a class flag T consisting of learnable parameters tk , based on the fully connected characteristics of the self-attention mechanism, through the class mark T tk Collect the information of each channel and use sinusoidal position encoding PE to record the channel position information to obtain the feature F T ;

[0011] For feature F T Perform feature fusion to obtain feature F CT , from the feature F CT Get the class flag T tk The feature F of the location CT [position(T tk )];

[0012] Set the class marker T tk The feature F of the location CT [position(T tk )] is sent to MLP for basis collection, and the feature F representing the basis for judgment is obtained E ;

[0013] The feature F representing the basis for judgment E Fit it to Beta distribution and obtain the crossing probability and uncertainty of pedestrian i from the Beta distribution.

[0014] Further, from the pedestrian bounding box B i , pedestrian posture P i , the vehicle speed V and the quasi-polar coordinates Q i Extracting multi-scale temporal features F V , and Specifically:

[0015] Step a: Use four windows of different sizes (1, 4, 8, 16) to analyze the original time series data X i Segmentation is performed to obtain pedestrian intention feature expressions at different time steps The formula is,

[0016]

[0017] Where Split() means segmentation;

[0018] Step b, Perform one-dimensional convolution to obtain the time series features within a single time scale, and use upsampling on the result after one-dimensional convolution to unify the sequence length; the formula is,

[0019]

[0020] Where s∈{1,4,8,16} represents the upsampling scaling factor, Conv1D represents one-dimensional convolution, and SiLu represents the activation function. Represents the features of the corresponding time scale after upsampling;

[0021] Step c: add the upsampled features to obtain multi-time scale feature expressions The formula is,

[0022]

[0023] Furthermore, the formula of sinusoidal position encoding PE is,

[0024]

[0025] The even positions are sine coded, the odd positions are cosine coded, n represents the natural number 0, 1, 2, 3..., and d is the feature dimension of the hidden layer of the model.

[0026] Furthermore, the feature F representing the basis for judgment E Fitting is done as Beta distribution, and the crossing probability and uncertainty of pedestrian i are obtained from the Beta distribution; specifically:

[0027] Step A, the probability density function of the Beta distribution is;

[0028]

[0029] Where Γ represents the Γ function, It is used for normalization to ensure that the total probability is 1. The probability density of Beta distribution is controlled by α and β. α and β are two parameters of Beta distribution, which represent the number of times pedestrians do not cross and cross in the current scene respectively;

[0030] Step B: The feature F representing the basis for judgment E Use Softplus to activate and get S∈R 2 , at this time (α, β) = S + 1; thus, the probability of pedestrians not crossing and crossing is obtained; the formula is,

[0031]

[0032] Among them, P0 and P1 represent the probability of pedestrians not crossing and crossing.

[0033] Step C, according to Calculating the uncertainty un, we get,

[0034]

[0035] Furthermore, the feature F representing the basis for judgment E In the process of fitting to Beta distribution, the loss function used by the model is,

[0036]

[0037] Where N represents the number of samples, Be represents Beta distribution,

[0038] y j The jth element Var(S+1) of the true label represents the variance of the Beta distribution that obeys [α, β]=S+1.

[0039] The present invention also provides a pedestrian crossing intention prediction device based on multiple uncertainties, comprising: an MTSN module for respectively obtaining a pedestrian boundary box B and a pedestrian crossing intention prediction device based on multiple uncertainties; i , pedestrian posture P i , the vehicle speed V and the pedestrian's quasi-polar coordinates Q from the vehicle's perspective i Extracting multi-scale temporal features F V , and

[0040] The feature fusion module is used to first extract the multi-scale time features F V , and Concatenate on the channel dimension to retain the time series features and transform the dimension to obtain the feature F C ; Then for feature F C Add a class flag T consisting of learnable parameters tk , based on the fully connected characteristics of the self-attention mechanism, through the class mark T tk Collect the information of each channel and use sinusoidal position encoding PE to record the channel position information to obtain the feature F T ;

[0041] The CT module is used to analyze the feature F T Perform feature fusion to obtain feature FCT ; and from feature F CT Get the class flag T tk The feature F of the location CT [position(T tk )];

[0042] MLP module is used to classify the class label T tk The feature F of the location CT [position(T tk )] to collect the basis and obtain the feature F representing the basis for judgment E ;

[0043] The prediction module is used to convert the feature F representing the basis for judgment E Fit it to Beta distribution and obtain the crossing probability and uncertainty of pedestrian i from the Beta distribution.

[0044] After adopting the above technical solution, the present invention has the following beneficial effects:

[0045] 1. While predicting the pedestrian intention, the present invention collects judgment basis from the model and fits the Beta distribution, thereby obtaining the uncertainty of the result, which is ultimately used to measure the credibility of the prediction result, thereby providing a reliable decision-making basis for the intelligent vehicle control system;

[0046] 2. Based on the internal correlation of time series and the variability of pedestrian intentions, the present invention designs a multi-time scale sensitive network structure (MTSN), and utilizes sliding windows on time series to enrich the diverse expressions of temporal features, thereby improving the model's learning ability on time series of different scales to cope with sudden changes in pedestrian intentions. Experiments on two widely used datasets JAAD and PIE prove that the UGPCIP of the present invention not only provides the credibility of the results, but also improves the model's confidence in the correct prediction results (the AUC on JAAD and PIE reached 90% and 94% respectively). BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A flowchart of a method for predicting pedestrian crossing intention based on multiple uncertainties of the present invention;

[0048] Figure 2 is a schematic diagram of the MTSN module of the present invention;

[0049] Figure 3 is the histogram distribution of the uncertainty estimation results of the present invention on the JAAD and PIE test sets;

[0050] Figure 4 This is the visualization result predicted by the present invention. DETAILED DESCRIPTION

[0051] 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.

[0052] like Figure 1 , Figure 2 As shown, a pedestrian crossing intention prediction method based on multiple uncertainties includes:

[0053] Step S1: From the pedestrian bounding box B i , pedestrian posture P i , the vehicle speed V and the pedestrian's quasi-polar coordinates Q from the vehicle's perspective i Extracting multi-scale temporal features F V , and

[0054] The polar coordinate system is established by taking the bottom center point A = (960, 1080) of the image captured by the camera of the vehicle as the pole, and the vector The polar axis is the polar axis, and the counterclockwise direction is the positive direction to construct a quasi-polar coordinate system, and the quasi-polar coordinate position of the pedestrian (cosθ, dist) is obtained through the pedestrian center point position C. In the quasi-polar coordinates we use, dist reflects the distance between the pedestrian and the vehicle in two-dimensional space, and cosθ indicates the lateral position of the pedestrian from the perspective of the car. With the change of coordinates in the time dimension, even if the ego vehicle and pedestrians are constantly moving, the subtle changes in the interaction between the ego vehicle and pedestrians can still be effectively represented and captured in real time. The connection between the ego vehicle and pedestrians is represented in a more human-like and scientific way. Compared with the intention influence factor features used in other works, it has stronger interpretability and greatly alleviates the model reasoning errors caused by the constant relative motion of pedestrians and ego vehicles.

[0055] Assume that the center coordinates of pedestrian i at time t are Then the polar coordinates of pedestrian i at time t are as follows:

[0056]

[0057] Pedestrian posture P i Contains information about the pedestrian’s thoughts and actions. The vehicle’s speed V indirectly affects the pedestrian’s crossing intention. The pedestrian’s bounding box B i Provides pedestrian motion trajectory model, quasi-polar coordinates Q i From the perspective of coordinate system conversion, the movement pattern of pedestrians is easier to learn and the focus is on pedestrians at the edge of the screen. Step S1 is as follows Figure 2 As shown, specifically including:

[0058] Step S11: Use four windows of different sizes (1, 4, 8, 16) to process the original time series data X i Segmentation is performed to obtain pedestrian intention feature expressions at different time steps Specifically, Figure 2 Although the time series data in the figure shows an overall upward trend, there are sudden changes at points A, B, C, and D. If the entire sequence is used as a single feature acquisition source, the model will ignore these important changes due to the influence of the overall trend. Therefore, we use windows of different sizes for cropping to obtain expressions of different time scales. The specific formula is,

[0059] Where Split() means segmentation;

[0060] Step S12: Perform one-dimensional convolution to obtain the time series features within a single time scale. Due to different window sizes, the length after convolution is not uniform. In order to facilitate the fusion of features of different time scales, upsampling is used on the result after one-dimensional convolution to unify the sequence length to 16; the formula is,

[0061]

[0062] Where s∈{1,4,8,16} represents the upsampling scaling factor, Conv1D represents one-dimensional convolution, and SiLu represents the activation function. Represents the features of the corresponding time scale after upsampling;

[0063] Step S13, add the upsampled features to obtain a multi-time scale feature expression The formula is,

[0064]

[0065] in Representing the multi-time scale characteristics of each type of data, the entire step S1 can be expressed by the following formula:

[0066]

[0067] Step S2: extract the multi-scale time features F V , and Concatenate on the channel dimension to retain the time series features and transform the dimension to obtain the feature F C ;

[0068] Among them, each type of data obtains the corresponding multi-time scale features after step S1 The characteristic shape of each type of data is (N×T×C), where N represents the batch size, T represents the time length, and C represents the number of channels. The sensitivity in the time dimension will F V , Concatenate on the channel dimension to preserve its temporal characteristics, and obtain Fc'∈R N×T×(4C) , Then transform the dimension of Fc' into R N×(4C)×T , the conversion formula is F C =GRU(view(Conv1d(C i ; W3))), where GRU represents the gated recurrent unit, view represents the feature dimension transformation, W3 represents the parameters of the one-dimensional convolution Conv1d, and Fc' represents C i The characteristic of C i is a parameter related to Fc', which is the size of the time dimension after time convolution. i , can better capture the location information of pedestrians, reduce misleading information in the time dimension, and reduce the impact of misleading information. Use a large number of linear layers and forget gate structures in GRU to carefully extract the location information of pedestrians and eliminate misleading information in the time dimension, so as to better extract features.

[0069] It should be noted that in the dimension conversion formula, C is used i The purpose of replacing the feature Fc' is to extract more useful time series features through GRU and convolution operations to enhance the prediction ability of the model.

[0070] Step S3, for feature F C Add a class flag T consisting of learnable parameters tk Based on the fully connected characteristics of the self-attention mechanism, each feature can interact with all other features, and then through the class mark T tk Collect the information of each channel and use sinusoidal position encoding PE to record the channel position information to obtain the feature F T ;

[0071] Considering the need to keep the channel position invariant in subsequent operations, we use sinusoidal position encoding (PE) to record the channel position information.

[0072]

[0073] Among them, sine coding is used for even positions, cosine coding is used for odd positions, n represents the natural number 0, 1, 2, 3, etc., and d represents the feature dimension of the hidden layer of the model (the transformer model where the self-attention mechanism is located). It is worth noting that at this time FC The number of channels is 4 times that before feature fusion. Combined with the fully connected characteristics of the multi-head attention mechanism in CT, this process will lead to a lot of calculations and feature redundancy. Therefore, we set the shape to R N×C×T The class label T consisting of learnable parameters tk , which can be understood as adding several layers of learnable channels in the channel dimension. Originally, there were 4c channels, and c channels were set up. These c channels collected all the information of the 4c ​​channels. Therefore, only the fused c channels are needed to represent the information of the 4c ​​channels, thereby reducing the number of parameters and calculations required in subsequent calculations. Class symbol T tk The c channels learn the class mark features for the final classification, which is consistent with F C Putting it together, the formula is:

[0074] F T =c(F C ,T tk )+PE;

[0075] c() represents the concatenation step. C and T tk The two tensors are connected along the same dimension, assuming that F C and T tk The shapes of are (N,T,d1) and (N,T,d2), respectively, where N is the batch size, T is the time step, and d1 and d2 are the feature dimensions. After executing the c() concatenation operation, the resulting tensor shape is (N,T,d1+d2). The position encoding PE is usually a tensor with the same shape as the concatenated tensor, which is used to introduce position information. Assuming the shape of PE is (N,T,d1+d2), it can be directly added to the concatenated tensor, and the final F T The tensor contains the original features and time step information, as well as the position information introduced by position encoding. T ∈R N×(5C)×T .

[0076] Step S4, for feature F T Perform feature fusion to obtain feature F CT , from the feature F CT Get the class flag T tk The feature F of the location CT [position(T tk )];

[0077] In this step, F T Send it to CT for feature fusion to get F CT . It should be noted that we set T tkThe purpose is to reduce the number of parameters required in subsequent calculations. Combined with the characteristics of full connection of sequence features in CT, it is only necessary to obtain the fused T tk The feature F of the location CT [position(T tk )] can represent the global fusion of all feature layers. CT [position(T tk )] is as follows: 1. feature extraction; 2. position encoding; 3. feature fusion; 4. obtaining the features of the specified position; position means taking the subscript operation, and [] means taking the element content corresponding to the table below.

[0078] Step S5: set the class mark T tk The feature F of the location CT [position(T tk )] is sent to MLP for basis collection, and the feature F representing the basis for judgment is obtained E The formula is,

[0079] F E =MLP(F CT [position(T tk )],w)

[0080] Among them, F E ∈R 2 It represents the features used to collect the basis for judgment, w represents the parameters of MLP, position represents the subscript operation, and [] represents the element content corresponding to the following table.

[0081] Step S6: The feature F representing the basis for judgment E Fit it to Beta distribution and obtain the crossing probability and uncertainty of pedestrian i from the Beta distribution.

[0082] Step S6 collects evidence from the model according to the theory of evidence, and directly fits the result into a probability distribution to directly obtain the prediction result and uncertainty in the scenario. This method avoids the time waste caused by repeated sampling calculations and the limitations of artificially setting the number of samplings. In addition, the uncertainty estimation of the results solves the one-sidedness of only estimating the uncertainty of the parameters.

[0083] Our prediction task is essentially a binary classification problem, which means that we can use the binomial distribution. Therefore, it is most appropriate to use the Beta distribution as the target distribution. Step S6 is as follows:

[0084] Step S61, the probability density function of Beta distribution is,

[0085]

[0086] Where Γ represents the Γ function, It is used for normalization to ensure that the total probability is 1. From the probability density function of the Beta distribution, it can be observed that the probability density of the Beta distribution is controlled by α and β, and when α is greater than β, the peak of the Beta distribution will be biased towards 1 (positive sample result), otherwise it will be biased towards 0. In the specific implementation of the task in this paper, the meanings of α and β are exchanged (in order to design the loss function below). In practical terms, they represent the number of times pedestrians did not cross and crossed in the current scene obtained from the training data set, which is in line with statistical principles.

[0087] Step S62: the feature F representing the basis for judgment E Use Softplus to activate and get S∈R 2 , a vector with one row and two columns, in this case (α, β) = S+1, that is, {α, β} = {S0+1, S1+1}; thus, the probability of pedestrians not crossing and crossing is obtained; the formula is,

[0088]

[0089] Among them, P0 and P1 represent the probability of pedestrians not crossing and crossing. It is worth noting that the sum of P0 and P1 is not equal to 1. In order to introduce the uncertainty un of the prediction result, we use the formula

[0090] Step S63, according to Calculate the uncertainty un and get,

[0091]

[0092] In order to introduce uncertainty un of the prediction results, the present embodiment establishes a relationship between the evidence collected from the model and the uncertainty. The above process establishes a direct relationship between uncertainty and the probability of the prediction results. The information collected from the model directly affects both, making the estimation of uncertainty more reliable.

[0093] In addition, unlike the classification task where softmax is used to provide a point estimate of the class probability of a sample, our method directly predicts a continuous probability distribution, so a loss function needs to be designed. First, the variance of the Beta distribution fitted by the model should be as small as possible to ensure the model's confidence in the prediction. Therefore, for sample i, the first term of the loss function is as shown in the following formula:

[0094]

[0095] The variance of the Beta distribution should be as small as possible to ensure the model's confidence in the prediction, where y jThe jth element of the true label Var(S+1) represents the variance of the Beta distribution that obeys [α,β]=S+1. In addition, in order to strengthen the model's estimate of uncertainty, we use KL divergence on the fitted Beta distribution that obeys [α,β] and [1,1], which degenerates into a uniform distribution, to "punish" the model's random guesses. Therefore, the final loss function L is expressed as:

[0096]

[0097] Where N represents the number of samples and Be represents Beta distribution.

[0098] A device or model for implementing the method in the above embodiment is provided below, and the device or model includes:

[0099] The MTSN module is used to extract the pedestrian bounding box B from the i , pedestrian posture P i , the vehicle speed V and the pedestrian's quasi-polar coordinates Q from the vehicle's perspective i Extracting multi-scale temporal features F V , and

[0100] The feature fusion module is used to first extract the multi-scale time features F V , and Concatenate on the channel dimension to retain the time series features and transform the dimension to obtain the feature F C ; Then for feature F C Add a class flag T consisting of learnable parameters tk , based on the fully connected characteristics of the self-attention mechanism, through the class mark T tk Collect the information of each channel and use sinusoidal position encoding PE to record the channel position information to obtain the feature F T ;

[0101] The CT module is used to analyze the feature F T Perform feature fusion to obtain feature F CT ; and from feature F CT Get the class flag T tk The feature F of the location CT [position(T tk )];

[0102] MLP module is used to classify the class label T tk The feature F of the location CT [position(T tk)] to collect the basis and obtain the feature F representing the basis for judgment E ;

[0103] The prediction module is used to convert the feature F representing the basis for judgment E Fit it to Beta distribution and obtain the crossing probability and uncertainty of pedestrian i from the Beta distribution.

[0104] The solutions involved in the above embodiments are verified in combination with specific experiments.

[0105] 1. Dataset

[0106] In order to fairly compare the proposed model (UGPCIP), we strictly follow the benchmark of pedestrian crossing prediction and use JAAD and PIE as evaluation datasets.

[0107] 2. Implementation details

[0108] The hidden layer dimension in our model is 64, and the number of layers of the Transformer encoder of the CT module is set to 2. We used the pedestrianboundingbox provided by the dataset and used Simcc to extract 17 key points of the human body as pedestrianpose. In training, we used the AdamW optimizer, and set the initial learning rate for PIE and JAAD to 1×e^(-4), the batch size to 64, the epoch to 1000, and used the CosineAnnealingLR learning rate strategy. All experiments were performed on NVIDIA RTX 3080GPU and Intel i7.

[0109] 3. Evaluation indicators

[0110] In order to evaluate the performance of different prediction methods, we follow the benchmark and use five evaluation indicators, namely accuracy, area under the curve (AUC), precision (P), recall (R) and F1-score. Among them, AUC as the main indicator reflects the classification effect of the model (the closer to 1, the better the effect), and F1-score comprehensively evaluates precision and recall.

[0111] 4. Ablation study

[0112] Table 1: Comparison of the effects of inputting different types of data separately on PIE

[0113]

[0114] Among them, Inputs represents the input data type of the method, P represents pedestrian pose, V represents ego-vehicle velocity, B represents pedestrian bounding box, and Q represents quasi-polar coordinate.

[0115] This paper uses four types of data to predict pedestrian intentions, so we conduct ablation experiments as shown in Table 1 to explore the effect of each type of data. As can be seen from Table 1, the effects of P, B, and Q are not much different, while the effect of V is more obvious, with an accuracy of only 87%, because the speed of the vehicle is indirectly related to pedestrians. Finally, P, V, B, and Q are used as input together to achieve the best effect, reaching 91%, which proves that the Cross-channel TransformerEncoder (encoder of the CT module) introduced in this paper effectively integrates the features of these types of data.

[0116] Table 2: Ablation experiment of MTSN module on PIE

[0117]

[0118] In order to verify the effectiveness of the MTSN module proposed in this paper, we deleted the MSTN module and replaced it with a CNN with equal parameters to ensure fairness. The results are shown in Table 2. It can be observed that the lack of MTSN will lead to a significant decrease in indicators, with the remaining indicators except the accuracy decreasing by about 3%. This shows that the MTSN module proposed by us helps alleviate the problem of pedestrian intention variability, thereby helping to improve the pedestrian intention prediction effect.

[0119] 5. Baseline Model

[0120] Table 3: Comparison of the effects of different models on JAAD and PIE

[0121]

[0122] In the data type of Inputs, I represents an image. UN in Modelvariant indicates that an uncertainty estimation method is used.

[0123] We used the following methods as baselines, which include some of the newer methods in the benchmark as well as recent methods that have achieved excellent results in the past.

[0124] Among them, SFRNN processes different types of data through stacked recurrent neural networks (RNNs) and uses a progressive feature fusion method to process low-level and high-level features.

[0125] FUSSI only uses pedestrian pose and bounding box, and uses DenseNet to explore the impact of different fusion strategies on the effect.

[0126] SingleRNN directly concatenates various types of data at input and uses RNN to extract timing information to obtain the final result.

[0127] PCPA attempts to use as much visual (images) and non-visual data (pedestrian

[0128] The GPCPA adds traffic scene semantic segmentation data based on PCPA.

[0129] BiPed is designed to process multiple types of data using independent modules and fusion modules at the same time, and uses multi-task prediction of pedestrian positions to improve prediction results.

[0130] Pedestrian Graph+ uses lightweight GCN to specifically extract pedestrian action information and combines ego-vehiclespeed and local context to predict pedestrian intentions.

[0131] MCIP and CIPF process visual and non-visual data respectively, and calculate the weights of the two features accordingly, and obtain the final prediction results based on the weighted features.

[0132] PIT, PMMT and PedCMT use Transformers as the backbone network. PIT designs a temporal structure for feature fusion at each time step. PMMT directly uses non-visual data and visual information processed by CNN. PedCMT draws on ViT's class token to carefully design a fusion module.

[0133] DPCIAN uses GCN to process pedestrian actions and scene traffic object interaction information, and integrates pedestrian action information at the scene level.

[0134] 5. Quantitative analysis

[0135] Table 3 shows the quantitative experimental results on the PIE and JAAD datasets. It can be seen that early methods such as SFRNN and SingleRNN use RNNs to model the input time series data. FUSSI uses DenseNet separately. Later, due to the rise of attention mechanisms, various forms of attention methods were introduced into the model, such as PCPA, Global PCPA, and BiPed. Recently, due to its powerful modeling ability for time series data, Transformer has been cited in the pedestrian intention prediction task and achieved remarkable results.

[0136] From the perspective of input data, most methods use image data, which results in a high number of model parameters. However, UGPCIP achieves comparable results using only non-visual data, effectively reducing the consumption of computing resources. The recently proposed PedCMT achieves a maximum accuracy of 93% using only non-visual data, while UGPCIP only achieves 91%, but additionally obtains important uncertainty estimates.

[0137] From the perspective of model performance, on the PIE and JAAD datasets, the UGPCIP proposed in this paper achieved the best results in AUC and precision, and achieved similar results in other indicators. Among the recent methods, our accuracy is only 2% less than PedCMT. This is because this paper has reduced the index in order to fit the additional output of uncertainty, but obtained more important uncertainty information, and the decline was controlled within a reasonable range. At the same time, we have achieved better results in AUC and precision, with AUC increased by 2%, and precision improved by at least 5% compared with the recent methods. The same is true for JAAD, with AUC increased by at least 10%. This shows that our method has achieved excellent classification results and can more accurately distinguish pedestrians with crossing intentions.

[0138] 6. Real-time performance analysis

[0139] Table 4: Comparison of UGPCIP real-time performance on JAAD

[0140]

[0141] We conducted experiments on the amount of model parameters and speed to evaluate its real-time performance in ITS, as shown in Table 6. Among them, PCPA and GPCPA use global pictures and semantic segmentation information of the traffic scene, resulting in a huge amount of parameters, but the effect is not ideal. This is because the global visual information cannot make the model focus on the target pedestrian, resulting in invalid feature calculation. FUSSI and PedGraph+ use local pictures to achieve lightweight purposes and have achieved significant improvements in results. PedGraph only uses action information to achieve an accuracy of 80%. The UGPCIP proposed in this paper significantly reduces the amount of parameters and improves the running speed to 1.2ms without using image information. In addition, benefiting from the MTSN and uncertainty estimation method proposed in this paper, the accuracy of UGPCIP also reached a maximum of 88%.

[0142] 7. Qualitative analysis

[0143] The histogram distribution of the uncertainty estimation results of UGPCIP on the JAAD and PIE test sets is shown in the figure below: Figure 3 As shown in the figure, the horizontal axis un represents the range of uncertainty estimation results (0 to 1). The smaller un is, the lower the uncertainty is. The vertical axis quantity represents the number of test samples corresponding to the uncertainty estimation results. In order to qualitatively analyze the effect of UGPCIP in estimating the uncertainty of pedestrian prediction results, we present the uncertainty estimation results of UGPCIP on the JAAD and PIE test sets in a histogram. The results are shown in the figure below. Figure 3 As shown. It can be seen that the uncertainty of most samples is concentrated in the range of 0 to 0.3, which has low uncertainty, indicating that the model has sufficient confidence in this part of samples. Only a small number of samples are in the high uncertainty range of 0.6 to 0.9, which proves the learning effect of UGPCIP on uncertainty. It can be observed that there is a small peak in the range of 0.9 to 1, which indicates that there are some samples from which the model cannot learn useful evidence to make reliable predictions, but the number of these samples is relatively small compared to the low uncertainty samples.

[0144] Table 5: Reliability analysis of uncertainty estimates

[0145]

[0146] In Table 5, UN represents uncertainty, and when UN is 1, it represents the prediction effect of all samples with statistical uncertainty less than or equal to 1. In order to further analyze the reliability of uncertainty estimation, we conducted experiments as shown in Table 5. We calculated the prediction effect under different uncertainty thresholds. It can be seen that when UN = 0.6, the effect is greatly improved due to the elimination of samples with an absolute number of uncertainties between 0.9 and 1 (these samples are considered unreliable by the model). The best effect is achieved when UN = 0.2, at which time the samples with highly confident predictions by the model are retained. Compared with UN = 1, the accuracy of UN = 0.2 is improved by at least 3% and 6% on PIE and JAAD respectively, and other indicators have also increased significantly. The above proves the reliability of our uncertainty estimation results.

[0147] To further qualitatively analyze our uncertainty estimation method, we visualized Figure 4 The pedestrian crossing intention prediction results and uncertainty estimation results of the three UGPCIPs shown in the figure are as follows: Figure 4 From top to bottom in the figure are scene 1, scene 2 and scene 3 respectively. It should be noted that the peak in the Beta distribution represents a high-quality density area, indicating that the probability of this area is the highest, that is, the location of the peak represents the probability of pedestrians crossing.

[0148] From the perspective of pedestrian crossing intention prediction results, Figure 4 It can be clearly seen from the beta distribution on the right that the peak of the Beta distribution predicted by UGPCIP in scenes one and two is concentrated between 0.8 and 1, that is, the predicted result is crossing, which is consistent with the actual situation. In the third scene, the pedestrian on the left is unloading, which is obviously a pedestrian who will not cross, and the peak of the Beta distribution in this scene is also concentrated between 0 and 0.2, indicating that there is a high probability that he will not cross, that is, the result is given correctly. It is worth noting that in the first two cases, the basis for judging pedestrian crossing, that is, alpha and beta, obtained by the model are very close, resulting in a small distribution difference between the two Betas. In the third case, the basis for judging whether the pedestrian crosses, that is, alpha, reaches 26. This is because there are far more non-crossing samples than crossing samples in the data set, so it is easier for the model to collect the basis for non-crossing. At the same time, this also shows that when the model collects more basis for crossing samples, the model will be more confident in the result. In addition, although the distribution difference between scenario 1 and scenario 2 is small, it is not difficult to see that the Beta peak of scenario 2 is lower and the distribution is wider, without the concentration in scenario 1. Therefore, from the perspective of probability, the crossing probability of scenario 1 is greater than that of scenario 2, which is also reflected in the comparison of the beta sizes of the two scenarios.

[0149] From the perspective of uncertainty estimation results, the uncertainty estimation results of scenario 1 and scenario 2 are equal to 0.11, but the ratios of the parameters beta and alpha of their Beta distributions are quite different (8 and 3, respectively). Therefore, Formula 12 used for the final uncertainty estimation only focuses on the number of evidences collected from the model and does not care about the pedestrian prediction results. In scenario 3, the sum of alpha and beta reaches 31, so a lower uncertainty of 0.06 is obtained. The above analysis proves that our uncertainty estimation method, while linking the Beta distribution with uncertainty, does not focus on whether the pedestrian's result is to cross or not, but only focuses on the number of evidences collected, which is more reliable.

[0150] 8. Conclusion

[0151] This paper proposes a novel method UGPCIP, which uses pedestrian pose, ego-vehicle horizontal occupancy, pedestrian bounding box and quasi-polar coordinate as input to predict pedestrian crossing intention. UGPCIP introduces the MTSN proposed in this paper, using a sliding window to capture subtle changes in pedestrian motion patterns, alleviating the variability of pedestrian intentions in historical time series. Finally, we propose a new method to obtain reliable uncertainty estimates when predicting pedestrian intentions. Specifically, we collect the basis for judgment from the model, fit it into a Beta distribution and establish a connection with the uncertainty to obtain its uncertainty estimate based on the Beta distribution. Experiments have shown that UGPCIP obtains important uncertainty estimates while achieving comparable results to the latest mainstream methods, providing a reliable basis for the decision-making of intelligent agents in ITS.

[0152] Thanks to the lightweight and high accuracy of UGPCIP, it is possible to apply it to traffic scenarios to reduce pedestrian accidents. In addition, UGPCIP provides reliable uncertainty estimates, which also makes it possible to apply it in closed scenarios such as automated factories to avoid major accidents.

[0153] 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 pedestrian crossing intention based on multiple uncertainties, characterized in that: Methods include: From the pedestrian bounding box B i , pedestrian posture P i , the vehicle speed V and the pedestrian's quasi-polar coordinates Q from the vehicle's perspective i Extracting multi-scale temporal features F V , and The extracted multi-scale temporal features F V , and Concatenate on the channel dimension to retain the time series features and transform the dimension to obtain the feature F C ; For feature F C Add a class flag T consisting of learnable parameters tk , based on the fully connected characteristics of the self-attention mechanism, through the class mark T tk Collect the information of each channel and use sinusoidal position encoding PE to record the channel position information to obtain the feature F T ; For feature F T Perform feature fusion to obtain feature F CT , from the feature F CT Get the class flag T tk The feature F of the location CT [position(T tk )]; Set the class marker T tk The feature F of the location CT [position(T tk )] is sent to MLP for basis collection, and the feature F representing the basis for judgment is obtained E ; The feature F representing the basis for judgment E Fit it to Beta distribution and obtain the crossing probability and uncertainty of pedestrian i from the Beta distribution.

2. The method for predicting pedestrian crossing intention based on multiple uncertainties according to claim 1, characterized in that: From the pedestrian bounding box B i , pedestrian posture P i , the vehicle speed V and the quasi-polar coordinates Q i Extracting multi-scale temporal features F V , and Specifically: Step a: Use four windows of different sizes (1, 4, 8, 16) to analyze the original time series data X i Segmentation is performed to obtain pedestrian intention feature expressions at different time steps The formula is, Where Split() means segmentation; Step b, Perform one-dimensional convolution to obtain the time series features within a single time scale, and use upsampling on the result after one-dimensional convolution to unify the sequence length; the formula is, Where s∈{1,4,8,16} represents the upsampling scaling factor, Conv1D represents one-dimensional convolution, and SiLu represents the activation function. Represents the features of the corresponding time scale after upsampling; Step c: add the upsampled features to obtain multi-time scale feature expressions The formula is, 3. The method for predicting pedestrian crossing intention based on multiple uncertainties according to claim 1, characterized in that: The formula for sinusoidal position encoding PE is: The even positions are sine coded, the odd positions are cosine coded, n represents the natural number 0, 1, 2, 3..., and d is the feature dimension of the hidden layer of the model.

4. The method for predicting pedestrian crossing intention based on multiple uncertainties according to claim 1, characterized in that: The feature F representing the basis for judgment E Fitting is done as Beta distribution, and the crossing probability and uncertainty of pedestrian i are obtained from the Beta distribution; specifically: Step A, the probability density function of the Beta distribution is, Where Γ represents the Γ function, It is used for normalization to ensure that the total probability is 1. The probability density of Beta distribution is controlled by α and β. α and β are two parameters of Beta distribution, which represent the number of times pedestrians do not cross and cross in the current scene respectively; Step B: The feature F representing the basis for judgment E Use Softplus to activate and get S∈R 2 , at this time (α, β) = S + 1; thus, the probability of pedestrians not crossing and crossing is obtained; the formula is, Among them, P0 and P1 represent the probability of pedestrians not crossing and crossing. Step C, according to Calculating the uncertainty un, we get, 5. The method for predicting pedestrian crossing intention based on multiple uncertainties according to claim 4 is characterized in that: The feature F representing the basis for judgment E In the process of fitting to Beta distribution, the loss function used by the model is, Where N represents the number of samples, Be represents Beta distribution, y j The jth element Var(S+1) of the true label represents the variance of the Beta distribution that obeys [α, β]=S+1.

6. A pedestrian crossing intention prediction device based on multiple uncertainties, characterized in that: include: The MTSN module is used to extract the pedestrian bounding box B from the i , pedestrian posture P i , the vehicle speed V and the pedestrian's quasi-polar coordinates Q from the vehicle's perspective i Extracting multi-scale temporal features F V , and The feature fusion module is used to first extract the multi-scale time features F V , and Concatenate on the channel dimension to retain the time series features and transform the dimension to obtain the feature F C ; Then for feature F C Add a class flag T consisting of learnable parameters tk , based on the fully connected characteristics of the self-attention mechanism, through the class mark T tk Collect the information of each channel and use sinusoidal position encoding PE to record the channel position information to obtain the feature F T ; The CT module is used to analyze the feature F T Perform feature fusion to obtain feature F CT ; and from feature F CT Get the class flag T tk The feature F of the location CT [position(T tk )]; MLP module is used to classify the class label T tk The feature F of the location CT [position(T tk )] to collect the basis and obtain the feature F representing the basis for judgment E ; The prediction module is used to convert the feature F representing the basis for judgment E Fit it to Beta distribution and obtain the crossing probability and uncertainty of pedestrian i from the Beta distribution.