Pedestrian trajectory prediction method, device, mobile device and storage medium

By collecting and analyzing obstacle sensing information in real time, using elliptical trajectory modeling and uncertainty feature extraction, we solve the problem of inaccurate pedestrian trajectory prediction in the existing technology, achieve stable and accurate trajectory prediction for low-speed pedestrians, and reduce the cost of Risk of collision between person and vehicle.

CN115628736BActive Publication Date: 2024-10-11BEIJING ZHIXINGZHE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211166000.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-23
Publication Date
2024-10-11
Estimated Expiration
2042-09-23

AI Technical Summary

Technical Problem

When dealing with low-speed pedestrians whose movement intentions are unclear, existing pedestrian trajectory prediction methods are prone to prediction delays, non-predictions or trajectory jitters, resulting in unstable prediction results and difficulty in accurately predicting pedestrians' future positions, especially in complex road traffic scenarios. Doing so may result in a collision between a person and a vehicle.

Method used

By collecting sensory information of obstacles in real time, cumulative trajectory information is formed, using speed and direction to determine pedestrian trajectories that meet unknown movement intentions, and elliptical trajectory modeling is performed to extract uncertain movement characteristics and predict future trajectories to ensure the accuracy of predictions. sex and stability.

Benefits of technology

It effectively avoids missing predictions and jitters or jumps in pedestrian target trajectories, provides stable and reliable trajectory prediction, reduces the risk of pedestrian-vehicle collision accidents, and improves the decision-making accuracy of the autonomous driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115628736B_ABST
    Figure CN115628736B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a method, device, mobile device and storage medium for predicting pedestrian trajectories. The method includes: real-time collection of perception information of multiple obstacles around the mobile device to form cumulative trajectory information of multiple obstacles, and determining the trajectory information of pedestrians that meet the requirements of unknown motion intentions from the cumulative trajectory information of multiple obstacles; using the trajectory information of pedestrians that meet the requirements of unknown motion intentions to model elliptical trajectories, wherein at least in the motion feature extraction of elliptical trajectory modeling, horizontal and vertical pedestrian motion feature extractions with uncertainty estimation are performed respectively; based on the uncertain trajectory obtained after elliptical trajectory modeling, future trajectory prediction is performed. The implementation of the present invention ensures the accuracy of trajectory prediction while avoiding missed predictions, jitters or jumps of pedestrian target trajectories due to unstable pedestrian motion and slow moving speed, thereby providing a stable and reliable predicted trajectory for downstream decision-making.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving, and in particular to a method, device, mobile device and storage medium for predicting pedestrian trajectories. Background Art

[0002] The autonomous driving system is usually composed of several parts: "perception-prediction-decision-planning-control". Among them, "prediction" is "trajectory prediction", the upstream "perception" is environmental perception, and the downstream "decision" is cognitive decision. The trajectory prediction task is to generate the motion trajectory of traffic participants (such as motor vehicles / cyclists / pedestrians, etc.) around the self-vehicle in a certain period of time in the future based on the perception information of the surrounding environment of the self-vehicle given by the upstream perception task, so as to provide basic input information for the cognitive decision-making and motion planning of the self-vehicle and avoid collision accidents between the self-vehicle and surrounding obstacles. Unlike motor vehicles with rigid body motion and non-motor vehicles such as cyclists with nearly rigid body motion, the movement of pedestrians has greater randomness and uncertainty. For example, pedestrians may walk back and forth on a road, or pedestrians may want to go to place A but suddenly turn to place B. This is possible in actual road traffic conditions. Under actual complex driving conditions, current pedestrian prediction methods often cannot give stable, non-jumpy and accurate pedestrian trajectories in the future. However, for downstream self-vehicle decision-making, the stability and accuracy of pedestrian target prediction trajectory plays a key role.

[0003] Existing pedestrian trajectory prediction methods can be divided into two categories: rule-based and deep learning-based prediction methods:

[0004] The first category is based on mathematical models such as constant speed and constant acceleration, incorporating some regularized constraints and prior assumptions to make prior predictions of pedestrian trajectories and output the trajectory of pedestrians within a certain period of time in the future, with little consideration of trajectory uncertainty;

[0005] The second category is a prediction method based on deep learning. It collects a large number of pedestrian trajectories in vehicle driving environments as training samples, designs a deep learning encoding and decoding model, learns network parameters, generates a trained network model, and then uses the offline trained model to perform inference in actual vehicle driving, and outputs the unimodal or multimodal trajectory lines of pedestrians in a certain period of time in the future.

[0006] In the process of implementing the present invention, the inventors found that there are at least the following problems in the related art:

[0007] For the above prediction methods, for slow pedestrian obstacles with unclear movement intentions such as walking slowly or pacing back and forth, the existing prediction methods often produce prediction delays or unpredicted results. In this case, the prediction results given are also unstable, and the output trajectory line shakes or jumps back and forth. If the pedestrian is judged to be a stationary target, no prediction is made and no prediction trajectory is made. In real driving scenarios, pedestrians' behaviors are changeable, their movements are uncertain, and prediction is difficult. The trajectory prediction task may not accurately judge the stationary state (for example, the user is not familiar with the terrain, stops to check the map after walking a section of the road, and then goes to the next stage of the journey. If you find that you have taken the wrong path, you will walk back), which may cause missed predictions, which may lead to accidents such as human-vehicle collisions. At present, the expression of the output trajectory of the rule-based prediction method and the deep learning-based prediction method has certain limitations. It is often expressed as a single-mode or multi-modal trajectory line, which is prone to jump in the intersection environment and cannot effectively reflect the comprehensive distribution of pedestrians at a certain time in the future. Summary of the invention

[0008] In order to at least solve the problem in the prior art that the trajectory of an obstacle with unclear movement intention is inaccurate and prone to jumps. In a first aspect, an embodiment of the present invention provides a method for predicting a pedestrian trajectory, comprising:

[0009] collecting perception information of multiple obstacles around the mobile device in real time to form cumulative trajectory information of the multiple obstacles, and determining trajectory information of a pedestrian that meets the requirements of the unknown motion intention from the cumulative trajectory information of the multiple obstacles, wherein the unknown motion intention is determined at least according to the speed and direction of the pedestrian;

[0010] Using the trajectory information of pedestrians meeting the requirements of unknown motion intention to model an elliptical trajectory, wherein at least in the motion feature extraction of the elliptical trajectory modeling, horizontal and vertical pedestrian motion feature extractions with uncertainty estimation are performed respectively;

[0011] Future trajectory prediction is performed based on the uncertain trajectory obtained after the elliptical trajectory modeling.

[0012] In a second aspect, an embodiment of the present invention provides a pedestrian trajectory prediction execution device, including:

[0013] a trajectory information determination module, configured to collect in real time the perception information of a plurality of obstacles around the mobile device, form cumulative trajectory information of the plurality of obstacles, and determine the trajectory information of a pedestrian that meets the requirements of the unknown motion intention from the cumulative trajectory information of the plurality of obstacles, wherein the unknown motion intention is determined at least according to the speed and direction of the pedestrian;

[0014] A trajectory modeling module, used for performing elliptical trajectory modeling using trajectory information of pedestrians meeting the requirements of unknown motion intention, wherein at least in the motion feature extraction of the elliptical trajectory modeling, horizontal and vertical pedestrian motion feature extraction with uncertainty estimation are performed respectively;

[0015] The trajectory prediction module is used to predict the future trajectory based on the uncertain trajectory obtained after the elliptical trajectory modeling.

[0016] According to a third aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the pedestrian trajectory prediction method of any embodiment of the present invention.

[0017] In a fourth aspect, an embodiment of the present invention provides a mobile device, comprising a main body and the electronic device described in any embodiment of the present invention installed on the main body.

[0018] In a fifth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the method for predicting pedestrian trajectories of any embodiment of the present invention are implemented.

[0019] In a sixth aspect, an embodiment of the present invention further provides a computer program product, which, when executed on a computer, enables the computer to execute the pedestrian trajectory prediction method described in any one of the embodiments of the present invention.

[0020] The beneficial effect of the embodiments of the present invention is that the trajectory of pedestrians that meets the requirements of unknown motion intentions is predicted by using information such as speed and direction. On the basis of ensuring the accuracy of trajectory prediction, the missed prediction of pedestrian target trajectories due to the non-stationary movement of pedestrians and slow moving speeds, and the jitter or jump of pedestrian target trajectories are avoided, thereby providing a stable and reliable predicted trajectory for downstream decision-making. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 is a flow chart of a method for predicting pedestrian trajectories provided by an embodiment of the present invention;

[0023] Figure 2It is a flow chart of determining whether a pedestrian trajectory prediction method meets the requirements of unknown motion intention provided by an embodiment of the present invention;

[0024] Figure 3 is a trajectory modeling flow chart of a pedestrian trajectory prediction method provided by an embodiment of the present invention;

[0025] Figure 4 is a trajectory prediction comparison diagram of a pedestrian trajectory prediction method provided by an embodiment of the present invention;

[0026] Figure 5 It is a schematic diagram of correcting elliptical trajectory points in a pedestrian trajectory prediction method provided by an embodiment of the present invention;

[0027] Figure 6 It is a visualization schematic diagram of future trajectory information of a pedestrian trajectory prediction method provided by an embodiment of the present invention;

[0028] Figure 7 is an overall structural diagram of a pedestrian trajectory prediction method provided by an embodiment of the present invention;

[0029] Figure 8 It is a structural schematic diagram of a pedestrian trajectory prediction execution device provided by an embodiment of the present invention;

[0030] Fig. 9 A schematic structural diagram of an embodiment of an electronic device for predicting pedestrian trajectories provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] like Figure 1 FIG. 1 is a flowchart of a method for predicting pedestrian trajectories provided by an embodiment of the present invention, comprising the following steps:

[0033] S11: collecting perception information of multiple obstacles around the mobile device in real time to form cumulative trajectory information of the multiple obstacles, and determining trajectory information of a pedestrian that meets the requirements of the unknown motion intention from the cumulative trajectory information of the multiple obstacles, wherein the unknown motion intention is determined at least according to the speed and direction of the pedestrian;

[0034] S12: performing elliptical trajectory modeling using the trajectory information of the pedestrian that meets the requirements of the unknown motion intention, wherein at least in the motion feature extraction of the elliptical trajectory modeling, horizontal and vertical pedestrian motion feature extractions with uncertainty estimation are performed respectively;

[0035] S13: Predicting future trajectories based on the uncertain trajectories obtained after modeling the elliptical trajectories.

[0036] In this embodiment, the method can be applied to various types of mobile devices, such as smart cars in road traffic, automatic floor washing vehicles in industrial parks, express delivery vehicles in communities, and automatic floor washing vehicles in shopping malls. Such mobile devices are often accompanied by other vehicles or pedestrians when traveling on the road. For example, in the scene of smart cars in road traffic, smart cars and pedestrians have their own action areas, and smart cars need to predict whether pedestrians will break into the driving area of ​​their own cars and plan corresponding control decisions in time. However, in the scene of automatic floor washing vehicles in shopping malls, pedestrians usually do not have a clear movement route. For example, pedestrians just wander around the mall aimlessly (slowly circling forward and backward in the mall, walking left and right, or wandering back and forth in a certain area. Pedestrians themselves have no destination, but just walk at random at a low speed), and automatic floor washing vehicles and pedestrians share the same action area. At this time, if the automatic floor washing vehicle predicts this pedestrian who meets the requirements of unknown motion intentions according to the existing technology based on rules or based on deep learning, there will be problems such as prediction delay, inaccurate prediction, and jump in prediction results. Since automatic floor scrubbers and pedestrians share the same driving area, more accurate prediction is needed to avoid collisions between vehicles and pedestrians.

[0037] For step S11, taking the automatic floor washing car in the above example, the automatic floor washing car collects the perception information of obstacles around the vehicle in real time during the cleaning task (obstacles include pedestrians, signboards, other mobile devices, etc.). For example, cameras and laser radars can be used to collect the perception information of obstacles around the vehicle. The perception information of obstacles around the vehicle belongs to the "perception" step upstream of "prediction", and the choice of the method for collecting perception information is not limited here. The perception information of obstacles around the vehicle is used to determine which obstacles have ultra-low speed flags, that is, to determine which obstacles are pedestrians who meet the requirements of unknown motion intentions. Among them, those that meet the requirements of unknown motion intentions include: unclear motion intentions such as walking slowly or pacing back and forth or wandering. The trajectory attributes that meet the unknown motion intentions are reflected in: the category of the obstacle belongs to people, the number of trajectory points reaches a preset number, the moving speed of the obstacle is less than the preset speed, and the direction of the obstacle has changed many times.

[0038] As an implementation manner, the real-time collection of perception information of multiple obstacles around the mobile device to form cumulative trajectory information of the multiple obstacles, and determining trajectory information of a pedestrian that meets the unknown motion intention requirement from the cumulative trajectory information of the multiple obstacles includes:

[0039] Collecting perception information of multiple obstacles around the mobile device in real time, wherein the perception information includes at least: a timestamp, a frame number, a tracking number, an obstacle category, a spatial coordinate, and a heading angle of the obstacle;

[0040] Using the tracking number, the timestamp and the frame number of each obstacle to form cumulative trajectory information of each obstacle;

[0041] Determining the accumulated trajectory information of obstacles that simultaneously meet the preset number of trajectory points and the obstacle category requirements as the trajectory information of the pedestrian;

[0042] Determine the number of direction changes of the trajectory information of the pedestrian using the heading angle, and determine the speed of the trajectory information of the pedestrian using the frame sequence number and the spatial coordinates;

[0043] The trajectory information of the pedestrian whose speed is lower than the preset speed and whose direction changes times are lower than the preset value is determined as the trajectory information of the pedestrian that meets the preset speed flag and meets the unknown motion intention requirement.

[0044] In this embodiment, the perception information of obstacles around the vehicle can be collected at a collection frequency of 10 Hz. The perception information includes but is not limited to the following: timestamp obj_timestamp (unit: nanosecond), frame number frame_id (natural number), tracking number tra_id (natural number), obstacle category obj_type (for example, it can be a natural number 0, 1, 2, and the category is not limited to motor vehicles, cyclists, pedestrians), the horizontal and vertical three-dimensional coordinates of each obstacle in the shopping mall space [obj_x, obj_y, obj_z] (unit: meter), the length, width and height of each obstacle [obj_l, obj_w, obj_h] (unit: meter, m) and the heading angle obj_yaw (unit: radian), which are summarized as an 11-dimensional vector: [obj_timestamp, frame_id, tra_id, obj_type, obj_x, obj_y, obj_z, obj_l, obj_w, obj_h, obj_yaw].

[0045] The perception information of obstacles around the vehicle in the continuous frames collected in real time is stored in the perception data cache pool. According to the tracking number tra_id, the cumulative trajectory information of each tracker is formed. It should be noted that the trajectory information here is consistent with the perception information content and format. Then, the number and category of track points are cascaded for each tracker. If the minimum number of track points (numtra_id>N is met in turn, t ) and the category is pedestrian (obj_type = 2), then the obstacle trajectory that meets the requirements is determined to be the trajectory of the pedestrian. The overall steps are as follows Figure 2 shown.

[0046] In the multi-level judgment of the kinematic characteristics of the determined pedestrian's trajectory, it is divided into two levels: the statistical speed value of the historical frame and the current frame and the statistical direction change times.

[0047] The statistical speed values ​​for historical frames and current frames include: speed v, lateral speed v x , longitudinal velocity v y , which are obtained by the position of two adjacent frames and the horizontal and vertical position changes. For example, the coordinates of the nth frame are (x n ,y n ), the coordinates of the n+1th frame are (x n+1 ,y n+1 ), corresponding to the horizontal speed of the current frame is x n+1 -x n , corresponding to the current frame longitudinal velocity y n+1 -y n , and then use the determined horizontal and vertical speeds to determine the speed v. Use the speed v and the preset v minh By contrast, if the velocity v is less than v minh Then the cumulative number of Nv is +1.

[0048] For the statistics of the number of orientation changes: for example, obj_yaw_n and obj_yaw_n+1 of the nth frame and the n+1th frame can be determined, and obj_yaw_n+1-obj_yaw_n can be used to determine whether the change of the orientation vector of two adjacent frames is greater than O. min If it is greater than O min Then the cumulative number of No is +1.

[0049] In a specific implementation, for example, the minimum number of trajectory points required for ultra-low-speed pedestrians can be set to Nt=10 (duration is 1s), and the target speed threshold v per frame is minh =0.75m / s, average speed threshold v minl =0.55m / s, speed statistics number threshold Nv=5, direction change threshold between two adjacent frames Omin=30°, direction change statistics number threshold No=5.

[0050] The tracker that satisfies the above examples at the same time: the number of track points, the category of pedestrian, the statistical speed value and the statistical direction value, is judged as an ultra-low-speed target (that is, a pedestrian that meets the requirements of unknown motion intention), and the corresponding ultra-low-speed flag is_ultra_static = True (default False), and the trajectory information containing speed information is sent to the subsequent ultra-low-speed trajectory modeling layer. Compared with the perception information, the trajectory information of pedestrians that meet the requirements of unknown motion intention also has additional speed information, which is summarized as a 15-dimensional vector: [obj_timestamp,frame_id,tra_id,obj_type,obj_x,obj_y,obj_z,obj_l,obj_w,obj_h,obj_yaw,v,v x , v y , is_ultra_static].

[0051] For step S12, the trajectory information of the pedestrian that meets the unknown motion intention requirements determined in step S11 is used to model the elliptical trajectory, including: extraction of the motion characteristics of the pedestrian that meets the unknown motion intention requirements, calculation of ultra-low-speed elliptical trajectory parameters, sampling of elliptical trajectory points, and correction of elliptical trajectory points. The overall steps are as follows: Figure 3 As shown, the ultra-low-speed pedestrian is a pedestrian that meets the requirements of unknown motion intention.

[0052] Specifically, the elliptical trajectory modeling using the trajectory information of the pedestrian that meets the unknown motion intention requirement includes:

[0053] Extracting the horizontal and vertical pedestrian motion features with uncertainty estimation from the trajectory information of the pedestrian that meets the unknown motion intention requirements, and obtaining the motion features of the pedestrian that meets the unknown motion intention requirements;

[0054] Extracting the elliptical trajectory parameters of the pedestrian using the motion features;

[0055] Using the elliptical trajectory parameters of the pedestrian to perform sampling, to obtain the trajectory points of the pedestrian;

[0056] The trajectory points of each pedestrian are converted into a unified global coordinate system to correct the trajectory points of each pedestrian.

[0057] As an implementation manner, the extraction of horizontal and vertical pedestrian motion features with uncertainty estimation in the trajectory information of the pedestrian meeting the unknown motion intention requirement to obtain the motion features of the pedestrian meeting the unknown motion intention requirement includes:

[0058] Determine the mean vector and standard deviation vector of the horizontal and vertical speeds by using the speed information obtained by performing continuous multi-frame prediction on the trajectory information of the pedestrian;

[0059] Performing lateral and longitudinal uncertainty estimation on the mean vector and standard deviation vector of the lateral and longitudinal velocities to obtain a covariance matrix of the lateral and longitudinal velocities;

[0060] The mean vector, standard deviation vector and covariance matrix of the horizontal and longitudinal velocities are determined as the motion features of the pedestrian that meets the requirements of the unknown motion intention.

[0061] In this embodiment, in order to comprehensively consider the motion characteristics of pedestrians who meet the requirements of unknown motion intentions, the uncertainty of pedestrians can be better reflected by statistically analyzing the motion characteristics of ultra-slow pedestrians in the horizontal and vertical directions. Compared with the trajectory prediction based on rules or deep learning in the prior art, due to the limitations of limited rules and model samples, the predicted trajectory is usually limited to a small area, and such prediction results are usually not accurate or comprehensive enough for pedestrians with unknown motion intentions. This method takes into account that the direction of movement of pedestrians with unknown motion intentions is not fixed, and it is necessary to judge separately in the horizontal and vertical directions, thereby expanding the trajectory prediction range as a whole to meet the pedestrian trajectory of unknown motion intentions, such as Figure 4 Shown is a comparison between trajectory prediction using uncertain pedestrian motion features and existing rule-based or deep learning-based trajectory prediction.

[0062] The velocity information (v,v) in the trajectory information of pedestrians that meet the requirements of unknown motion intentions in multiple frames is used. x , v y ) sequentially counts the mean vector (mean_vx, mean_vy) and standard deviation vector (std_vx, std_vy) of the horizontal and vertical velocities, and then calculates the 2×2 covariance matrix matrix_cov of the horizontal and vertical velocities according to the velocity information in the continuous multi-frame prediction information. The mean vector, standard deviation vector and covariance matrix of the horizontal and vertical velocities are determined as the motion features of the pedestrian that meets the requirements of the unknown motion intention.

[0063] As an implementation manner, the extracting the elliptical trajectory parameters of the pedestrian using the motion features includes:

[0064] The major semi-axis, minor semi-axis and direction angle of the elliptical trajectory are extracted from the motion features as the elliptical trajectory parameters.

[0065] In this embodiment, the eigenvectors vector_x, vector_y and the corresponding eigenvalues ​​λ_x, λ_y are calculated by the 2×2 covariance matrix matrix_cov. Then the major semi-axis length l_major, the minor semi-axis length l_minor and the direction angle angle of the ellipse trajectory are calculated as follows:

[0066] A point (x, y) on the elliptical trajectory satisfies the following formula:

[0067]

[0068] is equivalent to:

[0069]

[0070] A point (x, y) on the elliptical trajectory also satisfies the following formula:

[0071]

[0072] In the above formula, C is the size of the ellipse, and there are two unknowns (x, y), so this equation has two degrees of freedom.

[0073] Combining the above two formulas for a point (x, y), we get:

[0074]

[0075] After the combination, C can be found in the chi-square probability table (chi-square distribution table) according to the degree of freedom and probability. In the specific implementation, it can be calculated according to the confidence level of 95%, and the chi-square probability table can be searched according to the degree of freedom 2 and the probability 0.05, and C = 5.991 is obtained. Then the major and minor semi-axis lengths of the ellipse can be calculated according to the above formula. And the ellipse direction angle angle is determined by the following formula:

[0076]

[0077] The major semi-axis length l_major, the minor semi-axis length l_minor and the direction angle angle determined in the above steps are used as the ellipse trajectory parameters.

[0078] As an implementation manner, the sampling using the elliptical trajectory parameters of the pedestrian to obtain the trajectory points of the pedestrian includes:

[0079] Using the elliptical trajectory parameters to construct an elliptical trajectory of a pedestrian that meets the requirements of the unknown motion intention;

[0080] Uniformly sampling the elliptical trajectory according to a preset angle interval to obtain the angle corresponding to each sampling point;

[0081] The trajectory point of the pedestrian meeting the unknown motion intention requirement in the elliptical trajectory is determined based on the angles corresponding to the sampling points.

[0082] In this embodiment, after the major semi-axis length l_major, the minor semi-axis length l_minor and the direction angle angle of the ellipse are determined, an elliptical trajectory of the pedestrian that meets the requirements of the unknown motion intention can be constructed.

[0083] In the sampling process, the elliptical trajectory can be uniformly sampled from 0 to 360 degrees according to a certain angle interval θ. The total number of sampling points is 360 / θ, and the angles corresponding to each sampling point are {angel_1,angel_2,...,angle_i,...,angel_360 / θ}, where angle_i is the i-th sampling point, in degrees (°). Considering the efficiency of data transmission, in the actual sampling process, an angle interval of 10° can be used for uniform sampling and stored in a vector container. The sampling angle angel_i stored in the vector container is iterated. In order to avoid encountering invalid tan values ​​during the calculation process, such as tan(90°), angel_i=angel_i+0.1 is used to prevent angel_i from taking values ​​of 0°, 90°, 180°, 270°, and 360° (where tan is a tangent function, with a domain of {x|x≠(π / 2)+kπ,k∈Z}), and the angle is converted to radians angel_i=angel_i×π / 180. In addition, considering the positive and negative nature of the sampling points, angel_i is further transformed as follows:

[0084]

[0085] Assuming that the center of the ellipse is the origin (0, 0), the coordinates of the sampling point corresponding to angle_i are:

[0086]

[0087] In order to further make the ellipse trajectory points more accurate, the ellipse trajectory points sampled in the above steps are corrected to generate the final future trajectory data, including: correcting the origin of the ellipse, correcting the sampled trajectory points and coordinate conversion.

[0088] According to the velocity v of all trajectory points in the major and minor axis directions x and v y Projection on the ellipse direction (angle) corrects the coordinate position of the ellipse center (0,0).

[0089]

[0090] Among them, the subscript i = 1, 2, ..., T, and the corresponding prediction time_i is 1, 2, ..., T seconds. In actual implementation, T can be taken as 3.

[0091] Update the sampling point coordinates (sam_x, sam_y) corresponding to angle_i:

[0092]

[0093] like Figure 5 This is a schematic diagram of correcting the ellipse trajectory points. The right oblique arrow in the figure is the direction of the ellipse. The ellipse with sampling points on the horizontal arrow is the trajectory before correction, and the oblique ellipse with sampling points rotated counterclockwise from the horizontal direction according to the ellipse direction angle is the trajectory after correction.

[0094] The coordinate point obtained by rotating the horizontal point counterclockwise from the horizontal direction by angle (ellipse direction angle) is:

[0095]

[0096] The global position of the target and the relative position between the trajectory point and the ellipse origin are added together to transform all the trajectory points of each ultra-low-speed pedestrian target from the obstacle target's own coordinate system to a unified global coordinate system. In actual implementation, the global coordinate system can use UTM (Universal Transverse Mercator).

[0097] As an implementation manner, the future trajectory prediction based on the uncertain trajectory obtained after the elliptical trajectory modeling includes:

[0098] Predicting the future trajectory of the pedestrian that meets the unknown motion intention requirements based on the trajectory points of each pedestrian in the elliptical trajectory modeling according to a preset frequency;

[0099] The future trajectory of the pedestrian is visualized.

[0100] In this embodiment, the trajectory data of the elliptical trajectory modeling is loaded, and the future trajectory data of the pedestrian that meets the requirements of the unknown motion intention is published at a certain frequency. The published data format is [obj_timestamp,frame_id,tra_id,obj_type,obj_x,obj_y,obj_z,obj_yaw,v,v x ,v y ,is_ultra_static], where [obj_x,obj_y,obj_z] are the coordinate information of the predicted trajectory points. The predicted trajectory is shown in the figure below: Figure 6 As shown in the figure on the left.

[0101] In real time, the release of future trajectory data can be published in the form of ROS (Robot Operating System) topics with a release frequency of 10Hz. The output predicted trajectory is given to the downstream "decision-making".

[0102] In order to further represent the future trajectory, the future trajectory will be visualized, such as Figure 6 As shown in the figure on the right, the box represents the pedestrian target box, the line segment represents the lane information, the point represents the trajectory point information, the arrow on each target box represents the target direction, and the text in the figure represents: tracking sequence number id, speed speed, obstacle type type and life cycle age. In actual visualization, the visualization of future trajectory data can be achieved using the RVIZ tool in ROS. In summary of the above steps, the structural diagram of this method is as follows Figure 7 shown.

[0103] It can be seen from this implementation that the trajectory of pedestrians that meets the requirements of unknown motion intentions is predicted using information such as speed and direction. On the basis of ensuring the accuracy of trajectory prediction, it avoids missed predictions of pedestrian target trajectories due to the non-stationary movement of pedestrians and slow moving speeds, and jitter or jumps in the trajectory of pedestrian targets, thereby providing downstream decision-making with a stable and reliable predicted trajectory.

[0104] like Figure 8 The figure is a schematic diagram of the structure of a pedestrian trajectory prediction execution device provided by an embodiment of the present invention. The system can execute the pedestrian trajectory prediction method described in any of the above embodiments and is configured in a terminal.

[0105] The pedestrian trajectory prediction execution device 10 provided in this embodiment includes: a trajectory information determination module 11 , a trajectory modeling module 12 and a trajectory prediction module 13 .

[0106] Among them, the trajectory information determination module 11 is used to collect the perception information of multiple obstacles around the mobile device in real time, form the cumulative trajectory information of the multiple obstacles, and determine the trajectory information of the pedestrian that meets the requirements of unknown motion intention from the cumulative trajectory information of the multiple obstacles, wherein the unknown motion intention is determined at least based on the speed and direction of the pedestrian; the trajectory modeling module 12 is used to use the trajectory information of the pedestrian that meets the requirements of unknown motion intention to perform elliptical trajectory modeling, wherein at least in the motion feature extraction of the elliptical trajectory modeling, horizontal and vertical pedestrian motion feature extractions with uncertainty estimation are performed respectively; the trajectory prediction module 13 is used to predict the future trajectory based on the uncertainty trajectory obtained after the elliptical trajectory modeling.

[0107] Furthermore, the trajectory information determination module is used to:

[0108] Collecting perception information of multiple obstacles around the mobile device in real time, wherein the perception information includes at least: a timestamp, a frame number, a tracking number, an obstacle category, a spatial coordinate, and a heading angle of the obstacle;

[0109] Using the tracking number, the timestamp and the frame number of each obstacle to form cumulative trajectory information of each obstacle;

[0110] Determining the accumulated trajectory information of obstacles that simultaneously meet the preset number of trajectory points and the obstacle category requirements as the trajectory information of the pedestrian;

[0111] Determine the number of direction changes of the trajectory information of the pedestrian using the heading angle, and determine the speed of the trajectory information of the pedestrian using the frame sequence number and the spatial coordinates;

[0112] The trajectory information of the pedestrian whose speed is lower than the preset speed and whose direction changes times are lower than the preset value is determined as the trajectory information of the pedestrian that meets the preset speed flag and meets the unknown motion intention requirement.

[0113] Furthermore, the trajectory modeling module is used to:

[0114] Extracting the horizontal and vertical pedestrian motion features with uncertainty estimation from the trajectory information of the pedestrian that meets the unknown motion intention requirements, and obtaining the motion features of the pedestrian that meets the unknown motion intention requirements;

[0115] Extracting uncertain elliptical trajectory parameters of the pedestrian using the motion features;

[0116] Using the uncertain elliptical trajectory parameters of the pedestrian to perform sampling, to obtain the trajectory points of the pedestrian;

[0117] The trajectory points of each pedestrian are converted into a unified global coordinate system to correct the trajectory points of each pedestrian.

[0118] Furthermore, the trajectory modeling module is used to:

[0119] Determine the mean vector and standard deviation vector of the horizontal and vertical speeds by using the speed information obtained by performing continuous multi-frame prediction on the trajectory information of the pedestrian;

[0120] Performing lateral and longitudinal uncertainty estimation on the mean vector and standard deviation vector of the lateral and longitudinal velocities to obtain a covariance matrix of the lateral and longitudinal velocities;

[0121] The mean vector, standard deviation vector and covariance matrix of the horizontal and longitudinal velocities are determined as the motion features of the pedestrian that meets the requirements of the unknown motion intention.

[0122] Furthermore, the trajectory modeling module is used to:

[0123] The major semi-axis, the minor semi-axis and the direction angle of the elliptical trajectory are extracted from the motion features as elliptical trajectory parameters.

[0124] Furthermore, the trajectory modeling module is used to:

[0125] Using the uncertain elliptical trajectory parameters to construct an elliptical trajectory of a pedestrian that meets the requirements of an unknown motion intention;

[0126] Uniformly sampling the elliptical trajectory according to a preset angle interval to obtain the angle corresponding to each sampling point;

[0127] The trajectory point of the pedestrian meeting the unknown motion intention requirement in the elliptical trajectory is determined based on the angles corresponding to the sampling points.

[0128] Furthermore, the trajectory prediction module is used to:

[0129] Predicting the future trajectory of the pedestrian that meets the unknown motion intention requirements based on the trajectory points of each pedestrian in the elliptical trajectory modeling according to a preset frequency;

[0130] The future trajectory of the pedestrian is visualized.

[0131] The embodiment of the present invention further provides a non-volatile computer storage medium, the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the pedestrian trajectory prediction method in any of the above method embodiments;

[0132] As an implementation mode, the non-volatile computer storage medium of the present invention stores computer executable instructions, and the computer executable instructions are configured as follows:

[0133] collecting perception information of multiple obstacles around the mobile device in real time to form cumulative trajectory information of the multiple obstacles, and determining trajectory information of a pedestrian that meets the requirements of the unknown motion intention from the cumulative trajectory information of the multiple obstacles, wherein the unknown motion intention is determined at least according to the speed and direction of the pedestrian;

[0134] Using the trajectory information of pedestrians meeting the requirements of unknown motion intention to model an elliptical trajectory, wherein at least in the motion feature extraction of the elliptical trajectory modeling, horizontal and vertical pedestrian motion feature extractions with uncertainty estimation are performed respectively;

[0135] Future trajectory prediction is performed based on the uncertain trajectory obtained after the elliptical trajectory modeling.

[0136] As a non-volatile computer-readable storage medium, it can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. One or more program instructions are stored in the non-volatile computer-readable storage medium, and when executed by the processor, the pedestrian trajectory prediction method in any of the above method embodiments is executed.

[0137] An embodiment of the present invention also provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method for predicting pedestrian trajectories.

[0138] In some embodiments, an embodiment of the present invention further provides a mobile device, comprising a body and an electronic device according to any of the aforementioned embodiments installed on the body.

[0139] The mobile device may be any device with mobility, including but not limited to automobiles, ships, submarines, airplanes, aircraft, etc. Automobiles include but are not limited to vehicles with L0-L5 autonomous driving technology levels as specified by the Society of Automotive Engineers International (SAE International) or the Chinese national standard “Automotive Driving Automation Classification”, for example, vehicle equipment or robotic equipment having the following functions:

[0140] (1) Passenger-carrying function, such as family cars and buses;

[0141] (2) Cargo-carrying functions, such as ordinary trucks, van trucks, trailer trucks, closed trucks, tank trucks, flatbed trucks, container trucks, dump trucks, trucks with special structures, etc.;

[0142] (3) Tool functions, such as logistics delivery vehicles, automated guided vehicles (AGVs), patrol cars, cranes, hoists, excavators, bulldozers, forklifts, road rollers, loaders, off-road engineering vehicles, armored engineering vehicles, sewage treatment vehicles, sanitation vehicles, vacuum trucks, floor scrubbers, water sprinklers, sweeping robots, food delivery robots, shopping guide robots, lawn mowers, golf carts, etc.;

[0143] (4) Entertainment functions, such as entertainment vehicles, amusement park self-driving devices, balance vehicles, etc.;

[0144] (5) Special rescue functions, such as fire trucks, ambulances, power repair vehicles, engineering rescue vehicles, etc.

[0145] In some embodiments, the embodiments of the present invention further provide a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the pedestrian trajectory prediction method described in any one of the embodiments of the present invention.

[0146] Fig. 9 FIG. 1 is a schematic diagram of the hardware structure of an electronic device for a pedestrian trajectory prediction method provided by another embodiment of the present application. Fig. 9As shown, the device includes:

[0147] One or more processors 910 and memory 920, Fig. 9 A processor 910 is taken as an example. The device for predicting pedestrian trajectory may further include: an input device 930 and an output device 940.

[0148] The processor 910, the memory 920, the input device 930 and the output device 940 may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.

[0149] The memory 920, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the pedestrian trajectory prediction method in the embodiment of the present application. The processor 910 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 920, that is, the pedestrian trajectory prediction method in the above method embodiment is implemented.

[0150] The memory 920 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data, etc. In addition, the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 920 may optionally include a memory remotely arranged relative to the processor 910, and these remote memories may be connected to the mobile device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0151] The input device 930 can receive input digital or character information. The output device 940 can include a display device such as a display screen.

[0152] The one or more modules are stored in the memory 920, and when executed by the one or more processors 910, the pedestrian trajectory prediction method in any of the above method embodiments is executed.

[0153] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0154] The non-volatile computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the non-volatile computer-readable storage medium may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the non-volatile computer-readable storage medium may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0155] An embodiment of the present invention also provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the steps of the pedestrian trajectory prediction method of any embodiment of the present invention.

[0156] The above-mentioned electronic device can be implemented as an autonomous driving domain controller, wherein the autonomous driving domain controller is communicated with various sensors (including but not limited to lidar, camera, millimeter wave radar, ultrasonic radar, inertial measurement unit, wheel speed meter, etc.) loaded on the mobile device, and obtains environmental perception data and vehicle speed information through these sensors, and extracts obstacle information and generates position information of the mobile device based on the acquired environmental perception data and vehicle speed information, and performs path planning based on the position information and obstacle information.

[0157] The electronic device of the embodiment of the present application may also exist in many other forms, including but not limited to:

[0158] (1) Mobile communication equipment: This type of equipment is characterized by having mobile communication functions and its main purpose is to provide voice and data communications. This type of terminal includes: smart phones, multimedia phones, functional phones, and low-end phones.

[0159] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDAs, MIDs, and UMPC devices, such as tablet computers.

[0160] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players, handheld game consoles, e-books, smart toys, and portable car navigation devices.

[0161] (4) Other electronic devices with data processing functions.

[0162] In this article, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include" and "comprise" include not only those elements, but also other elements not explicitly listed, or also include elements inherent to such processes, methods, articles or equipment. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or equipment that includes the elements.

[0163] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0164] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for predicting pedestrian trajectories, comprising: collecting perception information of multiple obstacles around the mobile device in real time to form cumulative trajectory information of the multiple obstacles, and determining trajectory information of a pedestrian that meets the requirements of the unknown motion intention from the cumulative trajectory information of the multiple obstacles, wherein the unknown motion intention is determined at least according to the speed and direction of the pedestrian; The trajectory information of pedestrians that meet the requirements of unknown motion intention is used to extract the horizontal and vertical pedestrian motion features for uncertainty estimation, and then the elliptical trajectory modeling is performed; Future trajectory prediction is performed based on the uncertain trajectory obtained after the elliptical trajectory modeling.

2. The method according to claim 1, characterized in that The real-time collection of the perception information of multiple obstacles around the mobile device to form the accumulated trajectory information of the multiple obstacles, and the determination of the trajectory information of the pedestrian that meets the unknown motion intention requirement from the accumulated trajectory information of the multiple obstacles includes: Collecting perception information of multiple obstacles around the mobile device in real time, wherein the perception information includes at least: a timestamp, a frame number, a tracking number, an obstacle category, a spatial coordinate, and a heading angle of the obstacle; Using the tracking number, the timestamp and the frame number of each obstacle to form cumulative trajectory information of each obstacle; Determining the accumulated trajectory information of obstacles that simultaneously meet the preset trajectory point number and the obstacle category requirements as the trajectory information of the pedestrian; Determine the number of direction changes of the trajectory information of the pedestrian using the heading angle, and determine the speed of the trajectory information of the pedestrian using the frame sequence number and the spatial coordinates; The trajectory information of the pedestrian whose speed is lower than the preset speed and whose direction changes times are lower than the preset value is determined as the trajectory information of the pedestrian that meets the preset speed flag and meets the unknown motion intention requirement.

3. The method according to claim 1, characterized in that The method of extracting horizontal and vertical pedestrian motion features for uncertainty estimation using the trajectory information of pedestrians meeting the requirements of unknown motion intentions and performing elliptical trajectory modeling includes: Extracting the horizontal and vertical pedestrian motion features with uncertainty estimation from the trajectory information of the pedestrian that meets the unknown motion intention requirements, and obtaining the motion features of the pedestrian that meets the unknown motion intention requirements; Extracting uncertain elliptical trajectory parameters of the pedestrian using the motion features; Using the uncertain elliptical trajectory parameters of the pedestrian to perform sampling, to obtain the trajectory points of the pedestrian; The trajectory points of each pedestrian are converted into a unified global coordinate system to correct the trajectory points of each pedestrian.

4. The method according to claim 3, characterized in that The extraction of horizontal and vertical pedestrian motion features by performing uncertainty estimation in the trajectory information of the pedestrian that meets the unknown motion intention requirements to obtain the motion features of the pedestrian that meets the unknown motion intention requirements includes: Determine the mean vector and standard deviation vector of the horizontal and vertical speeds by using the speed information obtained by performing continuous multi-frame prediction on the trajectory information of the pedestrian; Performing lateral and longitudinal uncertainty estimation on the mean vector and standard deviation vector of the lateral and longitudinal velocities to obtain a covariance matrix of the lateral and longitudinal velocities; The mean vector, standard deviation vector and covariance matrix of the horizontal and longitudinal velocities are determined as the motion features of the pedestrian that meets the requirements of the unknown motion intention.

5. The method according to claim 3, characterized in that: The method of extracting the uncertain elliptical trajectory parameters of the pedestrian using the motion features includes: The major semi-axis, the minor semi-axis and the direction angle of the elliptical trajectory are extracted from the motion features as elliptical trajectory parameters.

6. The method according to claim 3, characterized in that The sampling using the uncertain elliptical trajectory parameters of the pedestrian to obtain the trajectory points of the pedestrian includes: Using the uncertain elliptical trajectory parameters to construct an elliptical trajectory of a pedestrian that meets the requirements of an unknown motion intention; Uniformly sampling the elliptical trajectory according to a preset angle interval to obtain the angle corresponding to each sampling point; The trajectory point of the pedestrian meeting the unknown motion intention requirement in the elliptical trajectory is determined based on the angles corresponding to the sampling points.

7. The method according to claim 1, characterized in that The future trajectory prediction based on the uncertain trajectory obtained after the elliptical trajectory modeling includes: Predicting the future trajectory of the pedestrian that meets the unknown motion intention requirements based on the trajectory points of each pedestrian in the elliptical trajectory modeling according to a preset frequency; The future trajectory of the pedestrian is visualized.

8. A pedestrian trajectory prediction execution device, comprising: a trajectory information determination module, configured to collect in real time the perception information of a plurality of obstacles around the mobile device, form cumulative trajectory information of the plurality of obstacles, and determine the trajectory information of a pedestrian that meets the requirements of the unknown motion intention from the cumulative trajectory information of the plurality of obstacles, wherein the unknown motion intention is determined at least according to the speed and direction of the pedestrian; The trajectory modeling module is used to extract the horizontal and vertical pedestrian motion features for uncertainty estimation using the trajectory information of pedestrians that meet the requirements of unknown motion intentions, and to perform elliptical trajectory modeling; The trajectory prediction module is used to predict the future trajectory based on the uncertain trajectory obtained after the elliptical trajectory modeling.

9. An electronic device, comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method described in any one of claims 1 to 7.

10. A mobile device comprising the electronic device according to claim 9.

11. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.