Pedestrian flow prediction method and device and computer program product
By determining the historical and predicted movement trajectories of terminal devices, and combining them with preset tables and road condition characteristics, the problems of hardware dependence and poor applicability in existing technologies are solved, and accurate pedestrian flow prediction at low cost is achieved.
Patent Information
- Application Number
- CN202410953371.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-15
AI Technical Summary
Existing technologies require additional hardware support for pedestrian flow prediction and have poor applicability, making it difficult to achieve accurate and personalized pedestrian flow prediction for application scenarios.
By determining the historical movement trajectory of terminal devices, a predicted movement trajectory is generated, the target probability value and arrival time are determined, and the pedestrian flow prediction result is generated based on the number of terminal devices. The prediction process is optimized using preset tables and road condition features.
It enables low-cost, accurate, and personalized pedestrian flow prediction, improving the practicality and reliability of the prediction results and making it suitable for various application scenarios.
Smart Images

Figure CN118967400A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of big data analysis, and in particular to a method, device and computer program product for predicting passenger flow. Background Art
[0002] When the flow of people in a geographical area is too large, it may cause adverse events such as congestion and trampling, and it is not conducive to the execution of pre-arranged itineraries. Through crowd flow prediction, we can know the flow of people in the area at the predicted time point, so as to take timely response measures to avoid various adverse events. At the same time, it can also reduce the waiting time of people and alleviate the pressure on the use of public facilities.
[0003] In the related art, when predicting the flow of people, additional hardware equipment support is usually required, or the applicability to different scenarios is poor. Summary of the invention
[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.
[0005] To this end, the purpose of the present disclosure is to propose a method, device, computer equipment and storage medium for predicting pedestrian flow, thereby enabling accurate prediction of pedestrian flow at a relatively low cost, and the prediction process is suitable for personalized application scenarios, thereby improving the practicality and reliability of the obtained pedestrian flow prediction results.
[0006] To achieve the above-mentioned purpose, the method for predicting the flow of people proposed in the first embodiment of the present disclosure includes:
[0007] Determine a historical motion trajectory of the terminal device, wherein the historical motion trajectory is used to indicate an initial position, an initial motion direction, and an initial motion speed of the terminal device at a current moment;
[0008] Generate a predicted motion trajectory according to the initial position and the initial motion direction, wherein the predicted motion trajectory includes a position to be predicted;
[0009] Determining a target probability value of the terminal device executing the predicted motion trajectory;
[0010] Determining, according to the initial movement speed, the arrival time of the terminal device moving to the position to be predicted;
[0011] The number of terminal devices whose arrival time is the time to be predicted is determined according to the target probability value, and a pedestrian flow prediction result of the location to be predicted at the time to be predicted is generated according to the number of terminal devices.
[0012] Optionally, in some embodiments, determining the historical movement trajectory of the terminal device includes:
[0013] Determine a plurality of historical locations of the terminal device based on a preset statistical interval, wherein the plurality of historical locations includes the initial location;
[0014] Determining the initial movement direction and the initial movement speed according to the preset statistical interval and the multiple historical positions;
[0015] The multiple historical positions are connected to generate the historical motion trajectory.
[0016] Optionally, in some embodiments, there are one or more intersections in the predicted motion trajectory;
[0017] Wherein, determining a target probability value of the terminal device executing the predicted motion trajectory includes:
[0018] Determining a target exit direction of the terminal device at the intersection according to the predicted motion trajectory;
[0019] Determine a reference probability value of the terminal device selecting the target exit direction at the intersection;
[0020] The target probability value is calculated and determined according to the reference probability value of each of the intersections.
[0021] Optionally, in some embodiments, determining a reference probability value of the terminal device selecting the target exit direction at the intersection includes:
[0022] Determining, according to the predicted motion trajectory, an entrance direction of the terminal device at the intersection and a plurality of candidate exit directions corresponding to the entrance direction;
[0023] Acquire a first preset table corresponding to the inlet direction, wherein the first preset table is used to indicate the probability of the terminal device selecting each of the candidate exit directions;
[0024] The reference probability value of the terminal device selecting the target exit direction at the intersection is determined from the first preset table.
[0025] Optionally, in some embodiments, the first preset table includes a plurality of candidate probability values corresponding to the target exit direction, and the candidate probability values are associated with candidate scene types;
[0026] Wherein, determining the reference probability value of the terminal device selecting the target exit direction at the intersection from the first preset table includes:
[0027] Determining a target scene type when the terminal device moves to the intersection;
[0028] Determine a matching result between the target scene type and a plurality of the candidate scene types;
[0029] The reference probability value is determined from the multiple candidate probability values according to the matching result.
[0030] Optionally, in some embodiments, the determining the target scene type when the terminal device moves to the intersection includes: determining time characteristics and weather characteristics when the terminal device moves to the intersection;
[0031] The target scene type is determined according to the time characteristics and the weather characteristics.
[0032] Optionally, in some embodiments, determining the historical movement trajectory of the terminal device includes:
[0033] Determine the time difference between the to-be-predicted moment and the current moment;
[0034] Determining a statistical area according to the position to be predicted and the time difference;
[0035] Determine the historical movement trajectory of the terminal device currently located in the statistical area.
[0036] Optionally, in some embodiments, determining the arrival time of the terminal device moving to the to-be-predicted position according to the initial movement speed includes:
[0037] Determining road condition characteristics of the predicted motion trajectory;
[0038] According to the road condition characteristics, the predicted motion trajectory is divided into a plurality of sections, wherein the plurality of sections include an initial section and a subsequent section, and the initial motion speed corresponds to the initial section;
[0039] Determining the traffic condition change information of the subsequent road section and the initial road section;
[0040] Determining a corresponding moving speed change amount from a second preset table according to the road condition change information, wherein the second preset table is used to indicate the moving speed change amounts corresponding to different road condition change information;
[0041] Determining a subsequent movement speed corresponding to the subsequent road section according to the initial movement speed and the movement speed change;
[0042] The arrival time of the terminal device moving to the position to be predicted is calculated and determined based on the initial road section, the subsequent road section, the initial movement speed and the subsequent movement speed.
[0043] To achieve the above-mentioned purpose, the pedestrian flow prediction device proposed in the second embodiment of the present disclosure includes:
[0044] A first determination module, used to determine a historical motion trajectory of a terminal device, wherein the historical motion trajectory is used to indicate an initial position, an initial motion direction, and an initial motion speed of the terminal device at a current moment;
[0045] A generating module, configured to generate a predicted motion trajectory according to the initial position and the initial motion direction, wherein the predicted motion trajectory includes a position to be predicted;
[0046] A second determination module is used to determine a target probability value of the terminal device executing the predicted motion trajectory;
[0047] A third determination module is used to determine the arrival time of the terminal device moving to the position to be predicted according to the initial movement speed;
[0048] The fourth determination module is used to determine the number of terminal devices whose arrival time is the time to be predicted according to the target probability value, and generate a pedestrian flow prediction result for the location to be predicted at the time to be predicted according to the number of terminal devices.
[0049] The computer device proposed in the third aspect embodiment of the present disclosure includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the pedestrian flow prediction method proposed in the first aspect embodiment of the present disclosure is implemented.
[0050] The fourth aspect embodiment of the present disclosure proposes a non-temporary computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the pedestrian flow prediction method proposed in the first aspect embodiment of the present disclosure is implemented.
[0051] The fifth aspect embodiment of the present disclosure proposes a computer program product. When the instructions in the computer program product are executed by a processor, the pedestrian flow prediction method proposed in the first aspect embodiment of the present disclosure is executed.
[0052] The crowd flow prediction method, device, computer equipment and storage medium provided by the present disclosure determine the historical motion trajectory of the terminal device, wherein the historical motion trajectory is used to indicate the initial position, initial motion direction and initial motion speed of the terminal device at the current moment, and generate a predicted motion trajectory according to the initial position and the initial motion direction, wherein the predicted motion trajectory includes the position to be predicted, determines the target probability value of the terminal device executing the predicted motion trajectory, determines the arrival time of the terminal device moving to the position to be predicted according to the initial motion speed, determines the number of terminal devices whose arrival time is the time to be predicted according to the target probability value, and generates a crowd flow prediction result for the position to be predicted at the time to be predicted according to the number of terminal devices, thereby enabling accurate prediction of crowd flow at a relatively low cost, and the prediction process is suitable for personalized application scenarios, thereby improving the practicality and reliability of the obtained crowd flow prediction result.
[0053] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0055] Figure 1 is a flow chart of a method for predicting the flow of people proposed in an embodiment of the present disclosure;
[0056] Figure 2 is a flow chart of a method for predicting human flow according to another embodiment of the present disclosure;
[0057] Figure 3 is a flow chart of a method for predicting human flow according to another embodiment of the present disclosure;
[0058] Figure 4 is a schematic diagram of a motion trajectory proposed according to the present disclosure;
[0059] Figure 5 is a schematic diagram of intersection probability proposed according to the present disclosure;
[0060] Figure 6 It is a schematic diagram of setting the zone radius at 15 kilometers according to the present disclosure;
[0061] Figure 7 It is a schematic diagram of road conditions in an area demarcated according to a preset location point proposed in the present disclosure;
[0062] Figure 8 is a structural schematic diagram of a pedestrian flow prediction device proposed in an embodiment of the present disclosure;
[0063] Fig. 9A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0064] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present disclosure, and are not to be construed as limitations of the present disclosure. On the contrary, the embodiments of the present disclosure include all changes, modifications, and equivalents that fall within the spirit and connotation of the appended claims.
[0065] It should be noted that the executor of the crowd flow prediction method of this embodiment is a crowd flow prediction device, which can be implemented by software and / or hardware. The device can be configured in a computer device, which may include but is not limited to a terminal, a server, etc.
[0066] It should be noted that the process of obtaining, storing, using, and processing information in the disclosed technical solution complies with the relevant provisions of national laws and regulations and does not violate public order and good morals.
[0067] It should be noted that in the embodiments of the present application, there may be existing solutions in the industry such as certain software, components, models, etc., which should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the relevant content of the solution.
[0068] Figure 1 It is a flowchart of a method for predicting passenger flow proposed in an embodiment of the present disclosure.
[0069] like Figure 1 As shown, the crowd flow prediction method includes:
[0070] S101: Determine a historical motion trajectory of a terminal device, wherein the historical motion trajectory is used to indicate an initial position, an initial motion direction, and an initial motion speed of the terminal device at a current moment.
[0071] The terminal device may refer to a mobile phone, a smart watch, etc., without limitation.
[0072] The historical movement trajectory may refer to the movement trajectory of the terminal device within a historical time interval, and the historical time interval may be based on the current moment as the end moment.
[0073] It is understandable that with the rapid popularization of smart terminal devices, users usually wear terminal devices when traveling. Therefore, in the embodiments of the present disclosure, the historical motion trajectory of the user can be represented by determining the historical motion trajectory of the terminal device, thereby providing reliable data support for the subsequent generation of predicted motion trajectory.
[0074] S102: Generate a predicted motion trajectory according to the initial position and the initial motion direction, wherein the predicted motion trajectory includes the position to be predicted.
[0075] The predicted motion trajectory may refer to the predicted motion trajectory of the terminal device within a period of time in the future.
[0076] It is understandable that users may encounter intersections during movement, so the embodiment of the present disclosure can generate one or more predicted motion trajectories based on the initial position and initial movement direction. The method of using each predicted motion trajectory in the process of pedestrian flow prediction is similar, and the embodiment of the present disclosure will not be repeated here.
[0077] The location to be predicted may refer to a location point where passenger flow prediction is to be performed.
[0078] It is understandable that each predicted motion trajectory in the embodiment of the present disclosure may have one or more positions to be predicted at the same time, and the subsequent processing process for each position to be predicted is similar, which is not described in detail in the embodiment of the present disclosure.
[0079] In the embodiment of the present disclosure, when generating the predicted motion trajectory according to the initial position and the initial motion direction, the motion trajectory may be extended from the initial position to the initial motion direction, and an exit direction is selected for extension each time an intersection is encountered. Therefore, the number of predicted motion trajectories obtained in the embodiment of the present disclosure is related to the number of intersections.
[0080] S103: Determine a target probability value for the terminal device to execute the predicted motion trajectory.
[0081] Among them, the target probability value can be used to describe the possibility of the terminal device executing the predicted motion trajectory.
[0082] For example, in the embodiments of the present disclosure, when determining the target probability value of the terminal device executing the predicted motion trajectory, it can be based on a pre-trained machine learning model, or it can also be based on a preset relationship table to determine the target probability value of the terminal device executing the predicted motion trajectory, without limitation.
[0083] It is understandable that due to the existence of intersections, multiple motion trajectories may be generated according to the initial position and the initial motion direction in the embodiment of the present disclosure, and the user may execute any of the motion trajectories. Therefore, the embodiment of the present disclosure needs to determine the target probability value of the terminal device executing the predicted motion trajectory, thereby providing reliable data support for the subsequent determination of the number of terminal devices whose arrival time is the predicted time.
[0084] S104: Determine the arrival time of the terminal device at the position to be predicted based on the initial movement speed.
[0085] That is to say, in the embodiment of the present disclosure, the arrival time of each terminal device at the position to be predicted can be calculated, thereby providing a reliable judgment basis for the subsequent generation of the pedestrian flow prediction result at the position to be predicted at the time to be predicted.
[0086] S105: Determine the number of terminal devices whose arrival time is the to-be-predicted time according to the target probability value, and generate a pedestrian flow prediction result at the to-be-predicted location at the to-be-predicted time according to the number of terminal devices.
[0087] For example, assuming that a total of 30 terminal devices move to the predicted position and their arrival time may be the predicted time, among which the target probability values corresponding to 10 terminal devices are 50%, and the target probability values corresponding to 20 terminal devices are 10%, then it can be determined that the number of terminal devices whose arrival time is the predicted time is S = 10*50% + 20*10% = 7 (units).
[0088] In this embodiment, by determining the historical motion trajectory of the terminal device, wherein the historical motion trajectory is used to indicate the initial position, initial motion direction and initial motion speed of the terminal device at the current moment, a predicted motion trajectory is generated according to the initial position and the initial motion direction, wherein the predicted motion trajectory includes the position to be predicted, a target probability value for the terminal device to execute the predicted motion trajectory is determined, and according to the initial motion speed, the arrival time of the terminal device to the position to be predicted is determined, and according to the target probability value, the number of terminal devices whose arrival time is the time to be predicted is determined, and according to the number of terminal devices, a crowd flow prediction result for the position to be predicted at the time to be predicted is generated, thereby enabling accurate prediction of crowd flow at a relatively low cost, and the prediction process is suitable for personalized application scenarios, thereby improving the practicality and reliability of the obtained crowd flow prediction results.
[0089] Figure 2 It is a flow chart of a method for predicting passenger flow proposed in another embodiment of the present disclosure.
[0090] like Figure 2 As shown, the method for predicting the flow of people includes:
[0091] S201: Determine multiple historical locations of a terminal device based on a preset statistical interval, wherein the multiple historical locations include an initial location.
[0092] The preset statistical interval may refer to a pre-configured terminal positioning statistical interval, for example, 5 seconds, 1 minute, etc., and there is no limitation on this.
[0093] The multiple historical locations may refer to multiple continuous positioning locations of the terminal device before the current moment.
[0094] In the embodiment of the present disclosure, by determining multiple historical locations of a terminal device based on a preset statistical interval, reliable data support can be provided for subsequent generation of a historical motion trajectory.
[0095] S202: Determine an initial movement direction and an initial movement speed according to a preset statistical interval and a plurality of historical positions.
[0096] That is, in the embodiment of the present disclosure, after determining multiple historical locations of the terminal device based on a preset statistical interval, its running direction and movement speed can be analyzed according to the preset statistical interval and multiple historical locations to determine the initial movement direction and initial movement speed.
[0097] S203: Connect multiple historical positions to generate a historical movement trajectory.
[0098] That is, in the embodiment of the present disclosure, multiple historical positions of the terminal device can be determined based on a preset statistical interval, wherein the multiple historical positions include an initial position, and the initial movement direction and initial movement speed are determined based on the preset statistical interval and the multiple historical positions, and the multiple historical positions are connected to generate a historical movement trajectory. In this way, the acquisition cost of the historical movement trajectory can be effectively reduced, and the accuracy and practicality of the obtained historical movement trajectory can be guaranteed.
[0099] S204: Generate a predicted motion trajectory according to the initial position and the initial motion direction, wherein the predicted motion trajectory includes the position to be predicted, and there are one or more intersections in the predicted motion trajectory.
[0100] The description of S204 can be specifically referred to the above embodiment, which will not be repeated here.
[0101] S205: Determine the target exit direction of the terminal device at the intersection according to the predicted motion trajectory.
[0102] It is understandable that each intersection may contain two or more exits, and the probability of a user selecting each exit may be different, while each predicted motion trajectory has only one exit at the same intersection. Therefore, in the embodiment of the present disclosure, the target exit direction of the terminal device at the intersection can be determined based on the predicted motion trajectory, thereby providing a reliable execution object for the subsequent determination of the reference probability value.
[0103] S206: Determine a reference probability value for the terminal device to select a target exit direction at the intersection.
[0104] Among them, the reference probability value can be used to describe the probability that the target exit direction selected by a certain terminal device at an intersection conforms to the predicted motion trajectory. Optionally, in some embodiments, when determining the reference probability value of the terminal device selecting the target exit direction at an intersection, the entrance direction of the terminal device at the intersection and multiple candidate exit directions corresponding to the entrance direction can be determined based on the predicted motion trajectory, and a first preset table corresponding to the entrance direction is obtained, wherein the first preset table is used to indicate the probability of the terminal device selecting each candidate exit direction, and the reference probability value of the terminal device selecting the target exit direction at the intersection is determined from the first preset table. Thus, the reference probability value of the terminal device selecting the target exit direction at the intersection can be quickly and accurately determined based on the first preset table.
[0105] The first preset table can be used to indicate the probability of a user selecting each candidate exit direction after entering the intersection from the above entrance direction. The first preset table can be obtained after statistical analysis based on historical pedestrian flow data of the intersection.
[0106] Optionally, in some embodiments, the first preset table includes multiple candidate probability values corresponding to the target exit direction, and the candidate probability values are associated with the candidate scene types; when determining the reference probability value for the terminal device to select the target exit direction at the intersection from the first preset table, it can be: determining the target scene type when the terminal device moves to the intersection, determining the matching result between the target scene type and multiple candidate scene types, and determining the reference probability value from the multiple candidate probability values based on the matching result. Thus, based on the matching result between the target scene type and multiple candidate scene types, the adaptability of the obtained reference probability value to the target scene type is effectively improved.
[0107] The candidate probability value may refer to the probability value configured for different scene types in the first preset table for the target exit direction. The candidate scene type may refer to the type pre-classified for different scenes. In the disclosed embodiment, the intersection traffic data may be collected for different candidate scene types for analysis and processing to obtain the corresponding candidate probability value.
[0108] Optionally, in some embodiments, when determining the target scene type when the terminal device moves to the intersection, the following method may be used: determining the time characteristics and weather characteristics when the terminal device moves to the intersection, and determining the target scene type based on the time characteristics and weather characteristics. In this way, the accuracy of the description of the intersection scene information by the obtained target scene type can be ensured.
[0109] The division of scene types in the presently disclosed embodiment may be related to time characteristics (months, holidays, weekdays, and time periods of the day, etc.) and weather characteristics (sunny or cloudy conditions, temperature, wind level, rainy or snowy weather, etc.), or may be related to any other characteristics, without limitation.
[0110] S207: Calculate and determine a target probability value based on the reference probability value of each intersection.
[0111] For example, in the embodiment of the present disclosure, when calculating and determining the target probability value based on the reference probability value of each intersection, the product value of the reference probability values of all intersections in the predicted motion trajectory may be determined as the target probability value.
[0112] That is, in the embodiment of the present disclosure, there are one or more intersections in the predicted motion trajectory. After the predicted motion trajectory is generated according to the initial position and the initial motion direction, the target exit direction of the terminal device at the intersection can be determined according to the predicted motion trajectory, and the reference probability value of the terminal device selecting the target exit direction at the intersection can be determined. According to the reference probability value of each intersection, the target probability value is calculated and determined. Thus, the accuracy of the obtained target probability value can be effectively improved by combining the reference probability value of each intersection.
[0113] S208: Determine the arrival time of the terminal device at the position to be predicted based on the initial movement speed.
[0114] S209: Determine the number of terminal devices whose arrival time is the time to be predicted according to the target probability value, and generate a pedestrian flow prediction result at the location to be predicted at the time to be predicted according to the number of terminal devices.
[0115] The description of S208 and S209 can be specifically referred to the above embodiment, which will not be repeated here.
[0116] In this embodiment, multiple historical positions of the terminal device are determined based on a preset statistical interval, wherein the multiple historical positions include an initial position, and the initial movement direction and initial movement speed are determined according to the preset statistical interval and the multiple historical positions, and the multiple historical positions are connected to generate a historical movement trajectory. In this way, the acquisition cost of the historical movement trajectory can be effectively reduced, and the accuracy and practicality of the obtained historical movement trajectory can be guaranteed. According to the predicted movement trajectory, the target exit direction of the terminal device at the intersection is determined, and the reference probability value of the terminal device selecting the target exit direction at the intersection is determined. According to the reference probability value of each intersection, the target probability value is calculated and determined. In this way, the accuracy of the obtained target probability value can be effectively improved in combination with the reference probability value of each intersection.
[0117] Figure 3 It is a flow chart of a method for predicting passenger flow proposed in another embodiment of the present disclosure.
[0118] like Figure 3 As shown, the crowd flow prediction method includes:
[0119] S301: Determine the time difference between the time to be predicted and the current time.
[0120] In the embodiment of the present disclosure, when the time difference between the time to be predicted and the current time is determined, reference information of the time dimension can be provided for the subsequent determination of the statistical area.
[0121] S302: Determine a statistical area according to the position to be predicted and the time difference.
[0122] The statistical area may refer to an area within which historical movement trajectories of terminal devices are to be counted.
[0123] In the embodiment of the present disclosure, when determining the statistical area based on the position to be predicted and the time difference, the maximum movement speed of the terminal device can be determined, and then the statistical radius can be determined based on the maximum movement speed and the time difference, and the statistical area can be determined with the position to be predicted as the center point combined with the statistical radius.
[0124] S303: Determine the historical movement trajectory of the terminal device currently located in the statistical area.
[0125] That is, in the disclosed embodiment, the time difference between the time to be predicted and the current time can be determined, and the statistical area can be determined according to the position to be predicted and the time difference, and the historical movement trajectory of the terminal device located in the statistical area at the current time can be determined. In this way, the pertinence of the historical movement trajectory statistical process can be effectively improved, and the utilization rate of computing resources can be improved.
[0126] S304: Generate a predicted motion trajectory according to the initial position and the initial motion direction, wherein the predicted motion trajectory includes the position to be predicted.
[0127] S305: Determine a target probability value for the terminal device to execute the predicted motion trajectory.
[0128] The description of S304 and S305 can be specifically referred to the above embodiment, which will not be repeated here.
[0129] S306: Determine the road condition characteristics of the predicted motion trajectory.
[0130] The road condition characteristics can be used to describe the relevant characteristics that affect the movement state of pedestrians in the road section. In the embodiment of the present disclosure, the road condition characteristics can include the number of traffic lights, congestion conditions, and rainfall levels, etc., which are not limited.
[0131] S307: Divide the predicted motion trajectory into a plurality of sections according to the road condition characteristics, wherein the plurality of sections include an initial section and a subsequent section, and the initial motion speed corresponds to the initial section.
[0132] In the disclosed embodiment, the number of subsequent road segments may be 0, or any other positive integer, and there is no limitation on this.
[0133] That is, in the disclosed embodiment, the predicted motion trajectory can be divided into a plurality of sections according to the road condition characteristics, so as to facilitate subsequent analysis of sections with different road condition characteristics.
[0134] S308: Determine the road condition change information between the subsequent road section and the initial road section.
[0135] Among them, the road condition change information can be used to describe the change in road conditions between subsequent sections and initial sections, such as changes in the number of traffic lights, changes in congestion conditions, changes in rainfall levels, etc., without any restrictions.
[0136] In the disclosed embodiment, when determining the road condition change information between the subsequent road section and the initial road section, reliable reference information can be provided for the subsequent determination of the moving speed change amount corresponding to the subsequent road section.
[0137] S309: Determine a corresponding moving speed change amount from a second preset table according to the road condition change information, wherein the second preset table is used to indicate the moving speed change amounts corresponding to different road condition change information.
[0138] Among them, the second preset table can be obtained based on the analysis of historical pedestrian flow data at the intersection.
[0139] In the disclosed embodiment, when the corresponding moving speed change amount is determined from the second preset table according to the road condition change information, the applicability of the obtained moving speed change amount can be effectively improved.
[0140] S310: Determine a subsequent movement speed corresponding to a subsequent road section according to the initial movement speed and the change in movement speed.
[0141] That is, in the embodiment of the present disclosure, after determining the corresponding moving speed change from the second preset table according to the road condition change information, the subsequent moving speed corresponding to the subsequent road section can be determined according to the initial moving speed and the moving speed change.
[0142] S311: Calculate and determine the arrival time of the terminal device at the position to be predicted based on the initial road section, the subsequent road section, the initial movement speed and the subsequent movement speed.
[0143] In the embodiment of the present disclosure, when calculating and determining the arrival time of the terminal device to the predicted position based on the initial road segment, subsequent road segments, initial movement speed and subsequent movement speed, the movement time of the initial road segment can be calculated based on the initial movement speed, the movement time of the corresponding subsequent road segment can be calculated based on the subsequent movement speed, and then the movement time of the initial road segment and the sum of the movement time of each subsequent road segment are calculated, and the arrival time is calculated based on the sum and the current time.
[0144] That is to say, in the disclosed embodiment, after generating the predicted motion trajectory according to the initial position and the initial motion direction, the road condition characteristics of the predicted motion trajectory can be determined, and the predicted motion trajectory can be divided into multiple sections according to the road condition characteristics, wherein the multiple sections include an initial section and a subsequent section, and the initial motion speed corresponds to the initial section, and the road condition change information of the subsequent section and the initial section is determined, and the corresponding mobile speed change amount is determined from the second preset table according to the road condition change information, wherein the second preset table is used to indicate the mobile speed change amount corresponding to different road condition change information, and the subsequent motion speed corresponding to the subsequent section is determined according to the initial motion speed and the mobile speed change amount, and the arrival time of the terminal device moving to the position to be predicted is calculated and determined according to the initial section, the subsequent section, the initial motion speed and the subsequent motion speed. In this way, the calculation process of the arrival time can be adapted to the personalized road conditions, thereby effectively improving the accuracy of the predicted arrival time.
[0145] S312: Determine the number of terminal devices whose arrival time is the time to be predicted according to the target probability value, and generate a pedestrian flow prediction result at the location to be predicted at the time to be predicted according to the number of terminal devices.
[0146] The description of S312 can be specifically referred to the above embodiment, which will not be repeated here.
[0147] In this embodiment, by determining the time difference between the time to be predicted and the current time, the statistical area is determined according to the position to be predicted and the time difference, and the historical movement trajectory of the terminal device located in the statistical area at the current time is determined. In this way, the pertinence of the historical movement trajectory statistical process can be effectively improved, and the utilization rate of computing resources can be improved. The road condition characteristics of the predicted movement trajectory are determined, and the predicted movement trajectory is divided into multiple sections according to the road condition characteristics, wherein the multiple sections include an initial section and a subsequent section, and the initial movement speed corresponds to the initial section, and the road condition change information of the subsequent section and the initial section is determined. According to the road condition change information, the corresponding mobile speed change amount is determined from the second preset table, wherein the second preset table is used to indicate the mobile speed change amount corresponding to different road condition change information, and the subsequent movement speed corresponding to the subsequent section is determined according to the initial movement speed and the mobile speed change amount, and the arrival time of the terminal device moving to the position to be predicted is calculated according to the initial section, the subsequent section, the initial movement speed and the subsequent movement speed. In this way, the calculation process of the arrival time can be adapted to the personalized road conditions, thereby effectively improving the accuracy of the predicted arrival time.
[0148] Based on the above embodiments, the technical solution of the present disclosure includes steps S1 to S3, which are described in detail as follows.
[0149] Step S1: Acquire the location information of the terminal device within a continuous time period, and generate a motion trajectory according to the location information.
[0150] Step S2: Based on the motion trajectory and the weights of each feasible route, a plurality of predicted trajectory routes corresponding to the terminal device and the arrival time of a preset position point on each predicted trajectory route are obtained.
[0151] Step S3: The server uses the time point as a statistical dimension to determine the estimated number of people at the preset location points in each route at different time points, and obtains a crowd flow prediction result based on the estimated number of people.
[0152] The above steps are explained in detail as follows.
[0153] Step S1: Acquire the location information of the terminal device within a continuous time period, and generate a motion trajectory according to the location information. The specific steps include S11 and S12, as described below.
[0154] S11: Obtain positioning data of the terminal device.
[0155] The server sets a location update statistical cycle with 5 seconds as a statistical interval, that is, the terminal position is located once every 5 seconds to obtain corresponding positioning data, which can be processed by GPS positioning.
[0156] S12: Determine movement data of the terminal device based on the positioning data.
[0157] The moving direction and speed of the terminal device are determined based on the statistical data of multiple continuous positioning data, and the motion trajectory is generated by connecting the position data obtained at each statistical time point.
[0158] like Figure 4 As shown, Figure 4 It is a schematic diagram of the motion trajectory proposed in the present disclosure. It is described by two consecutive moments. The first position is the position (x1, y1) obtained by the positioning data obtained at the 0th second, and the second position (x2, y2) is the position obtained by the positioning data obtained at the 5th second. At this time, the two are connected to obtain the trajectory of the two moments. At the same time, the moving speed under the trajectory is calculated according to the displacement from the first position to the second position and the time interval (5 seconds). Figure 4 The movement of the trajectory is calculated as (y1-y2) / 5 seconds, where y1-y2 is the displacement difference from north to south, that is, the actual moving distance, and then divided by 5 seconds to get the moving speed of this trajectory.
[0159] Step S2: Based on the motion trajectory and the weights of each feasible route, multiple predicted trajectory routes corresponding to the terminal device and the arrival time of the preset position point on each predicted trajectory route are obtained. The specific steps include S21 and S22, as described below.
[0160] S21: Determine the weight of each intersection according to the actual monitored statistical data.
[0161] For a certain fixed intersection, the flow of people and vehicles passing through is recorded, and the weight of each intersection is determined based on the actual monitored statistical data. The configuration method of route weights is adjusted accordingly according to different time periods and actual conditions. It is divided into morning, afternoon and evening periods on holidays, commuting periods, working periods and rest periods on weekdays, various periods under different weather conditions, etc. For each situation, data from different statistical periods such as one week or one month are counted to calculate the weight. It is necessary to determine the weight of each direction for each intersection in advance as the basis for its passing probability. For example Figure 5 As shown, Figure 5 is a schematic diagram of intersection probability proposed in the present disclosure, Figure 5 Only the weights of each intersection when moving from north to south are marked. According to the actual statistics of an intersection, when moving from north to south to the intersection, the weight of the west is 0.3, the weight of the east is 0.5, and the weight of the south is 0.2; when moving from south to north to the intersection, the weight of the west is 0.4, the weight of the east is 0.3, and the weight of the north is 0.3. Among them, the above determination method is for a statistical period T, and the accuracy of different weights of the statistical granularity of the statistical period T varies.
[0162] Regarding the configuration method of route weights in the first step, three actual situations, namely holidays, working days and heavy rain, are taken as examples.
[0163] 1. At a certain fixed intersection, a comparison table of the north-to-south inflow, westbound flow, eastbound flow and southbound flow at different time periods during holidays is shown in Table 1:
[0164] Table 1
[0165] Time period North to South Traffic Westbound traffic Eastbound traffic Southbound traffic 6:00-12:00 6000 2000 1000 3000 12:00-18:00 8000 3000 2000 5000 18:00-24:00 3000 1000 500 1500
[0166] When the time period is 6:00-12:00, for users at this fixed intersection, the weight of moving along the west direction is 2000 / 6000 (0.33), the weight of moving along the east direction is 1000 / 6000 (0.17), and the weight of moving along the south direction is 3000 / 6000 (0.5). That is, the weights of the three different exit directions are obtained when entering from north to south during the seven-day holiday from 6:00-12:00. The weight calculation of the remaining two time periods is similar.
[0167] 2. At the same fixed intersection, a comparison table of the north-to-south inflow, westbound inflow, eastbound inflow and southbound inflow at different time periods for five consecutive working days is shown in Table 2:
[0168] Table 2
[0169] Time period North to South Traffic Westbound traffic Eastbound traffic Southbound traffic 6:00-9:00 3000 600 1500 900 9:00-12:00 1000 100 600 300 12:00-14:00 2000 800 600 600 14:00-17:00 1000 600 100 100 17:00-20:00 3500 900 1600 1000 20:00-24:00 1200 300 500 400
[0170] When the time period is 6:00-9:00, for users at this fixed intersection, the weight of moving along the west exit is 600 / 3000 (0.2), the weight of moving along the east exit is 1500 / 3000 (0.5), and the weight of moving along the south exit is 900 / 3000 (0.3). That is, when entering from north to south during the time period of 6:00-9:00 on five consecutive working days, the weights of the three different exit directions are obtained, and the weight calculation of the remaining time periods is similar.
[0171] 3. Still at the same fixed intersection, a comparison table of the north-to-south inflow, westbound inflow, eastbound inflow and southbound inflow at different time periods during a month of heavy rain is shown in Table 3:
[0172] Table 3
[0173] Time period North to South Traffic Westbound traffic Eastbound traffic Southbound traffic 6:00-9:00 1800 600 900 300 9:00-12:00 600 100 300 200 12:00-14:00 1500 800 300 400 14:00-17:00 600 100 300 200 17:00-20:00 2000 900 600 500 20:00-24:00 500 300 100 100
[0174] When the time period is 6:00-9:00, for users at this fixed intersection, the weight of moving along the west direction is 600 / 1800 (0.33), the weight of moving along the east direction is 900 / 1800 (0.5), and the weight of moving along the south direction is 300 / 1800 (0.17). That is, the weights of the three different exit directions are obtained when entering from north to south during the time period of 6:00-9:00 in heavy rain within a month. The weight calculation of the remaining time periods is similar.
[0175] From the above, we can see that the weights of the same exit intersection are different in the three actual situations.
[0176] S22: Obtain the user's predicted trajectory route based on the weights of each intersection.
[0177] The preset location point is a location point set for the flow of people to be counted. For each user, based on his / her movement trajectory and the weight of each feasible route, multiple predicted trajectory routes can be generated, and for each location point set in the predicted trajectory, the time when the user arrives at the location point can be determined.
[0178] In trajectory prediction, in order to make real-time updated predictions based on specific moving trajectories, if the terminal device has passed an intersection and has a clear moving trajectory, the corresponding trajectory update is performed. The update algorithm is consistent with the aforementioned calculation method, except that the sections that have been passed do not need to be statistically predicted, as they already have clear path information. When the path is calculated by the prediction probability method for each of the four original intersections, after passing the first intersection, the actual moving direction has been confirmed, and the corresponding calculation of the movement probabilities of the remaining three intersections is used to obtain the predicted trajectory.
[0179] Step S3: The server uses the time point as the statistical dimension to determine the estimated number of people at the preset location points in each route at different time points, and obtains the crowd flow prediction result based on the estimated number of people. The specific steps include S31 and S32, as described below.
[0180] S31: Divide the preset location points into areas according to the predicted time.
[0181] When estimating the flow of people at a preset location, you first need to divide the area. For a certain location, if you predict the flow of people 20 minutes later, it is meaningless to count the data of users 100 kilometers away, as they will not reach the point within 20 minutes. When demarcating the area, the method is as follows: for the selected location, first demarcate the area with the preset location as the location center. The size of the area is reasonably determined based on the distance between the predicted time and the current time.
[0182] When driving on urban roads, a comparison table of different prediction times and area setting radii is obtained through actual monitoring data, as shown in Table 4:
[0183] Table 4
[0184] Prediction time Area setting radius 20 minutes 15 km 40 minutes 30 km 60 minutes 45 km 80 minutes 60 km
[0185] like Figure 6 As shown, Figure 6 This is a schematic diagram of setting a zone radius of 15 kilometers according to the disclosure. In the case of urban roads, the flow of people at a preset location after 20 minutes is predicted. According to the above comparison table, the corresponding zone setting radius is determined to be 15 kilometers. Figure 6 The horizontal and vertical solid lines in the middle are the road networks corresponding to the large area. One grid represents 5 kilometers. The circular area composed of the preset location point as the circle and 15 kilometers as the radius is the designated area. Of course, it can also be a rectangular area. The reason for demarcating the area in this way is to avoid the route being too long, which will lead to subsequent invalid probability calculations.
[0186] S32: For the actually demarcated area, the server predicts the movement trajectories of all users in the area, and obtains the predicted result of the pedestrian flow / vehicle flow at a preset location at a certain time point.
[0187] For the actual demarcated area, when predicting the user's movement trajectory, in order to improve the prediction accuracy, it is necessary to consider real-time conditions such as the number of traffic lights, road congestion, weather changes, etc., because these conditions will affect the movement speed, which will lead to inaccurate movement trajectory prediction. Therefore, it is necessary to correct the movement speed based on the above factors to accurately predict the trajectory.
[0188] Based on the predicted trajectory route of each person, the probability of each person arriving at the preset location is obtained. According to the probability of each person arriving at the preset location and the number of travelers in the divided area, the predicted result of the pedestrian / vehicle flow at the preset location at a certain point in time is calculated. From the configuration method of the route weight in step 2, it can be seen that the weights of each exit intersection under the same movement trajectory route are different in different time periods and different actual situations, so that the predicted results of the pedestrian / vehicle flow at the preset location at a certain point in time are different.
[0189] Regarding the movement speed correction in S32:
[0190] 1. The effect of the number of red lights on the moving speed is actually monitored, and a comparison table of the number of red light changes and the moving speed changes is obtained, as shown in Table 5:
[0191] Table 5
[0192] Number of red light changes Movement speed change -1 +5 km / h -2 +10 km / h +1 -5 km / h +2 -10 km / h
[0193] The moving speed of the current section is measured to be 50 km / h. When no change in the number of red lights is detected in the next section, the measured value of 50 km / h is not corrected at this time; when it is monitored that the number of red lights in the next section decreases by one, the change in moving speed is obtained as +5 km / h according to the comparison table of the number of red light changes and the change in moving speed, that is, the moving speed of the next section is corrected to 55 km / h, and the same applies to the remaining three red light change situations.
[0194] 2. The impact of road congestion on moving speed is actually monitored, and a comparison table of congestion conditions and changes in moving speed is obtained, as shown in Table 6:
[0195] Table 6
[0196] Congestion Movement speed change Slight blockage -15 km / h Moderate congestion -25 km / h Severe blockage -40 km / h
[0197] When it is monitored that the next road section is congested due to a traffic accident or other circumstances, and the congestion is minor, the moving speed change is obtained as -15 km / h according to the comparison table of congestion situation and moving speed change, that is, the moving speed of the next road section is corrected to 35 km / h, and the remaining two congestion situations are similar.
[0198] 3. The effect of rainfall on the moving speed is actually monitored, and a comparison table of rainfall degree and moving speed change is obtained, as shown in Table 7:
[0199] Table 7
[0200] Rainfall level Movement speed change light rain -5 km / h moderate rain -10 km / h heavy rain -20 km / h Heavy rain -30 km / h
[0201] When it is monitored that there will be light rain on the next road section, the change in moving speed is obtained as -5 km / h according to the comparison table between rainfall degree and moving speed change, that is, the moving speed of the next road section is corrected to 45 km / h, and the same applies to the remaining three rainfall degrees.
[0202] For the prediction of pedestrian / vehicle flow in S32: Figure 7 For example, Figure 7 This is a schematic diagram of road conditions in an area demarcated according to a preset position point proposed in the present invention. The black dot is the preset position point, the rectangular dotted line range is the area demarcated for the preset position point (simplified for ease of explanation), and the arrows represent the user's driving direction. ① is user 1, and the driving direction is from west to east, ② is user 2, and the driving direction is from east to west, and ③ is user 3, and the driving direction is from south to north.
[0203] The preset time is from 8:00 to 9:00 in the morning on weekdays. The number of people driving into the area is 2,800. At the intersection faced by user 1, the number of people driving from west to east is 600, and the weight of the southbound intersection is 0.2; at the intersection faced by user 2, the number of people driving from east to west is 800, and the weight of the westbound intersection is 0.7. When entering the westbound intersection and reaching the next intersection, the weight of the southbound intersection is 0.3; at the intersection faced by user 3, the number of people driving from south to north is 500, and the weight of the westbound intersection is 0.3. When entering the westbound intersection, it is the same as the westbound intersection entered by user 2. The driving direction is from east to west, the intersections reached are the same, and the weights of the corresponding intersections are also the same. The probability of user 1 reaching the preset location is 0.2, so the number of people reaching the preset location from the intersection where user 1 is located is (600*0.2)120 people; the probability of user 2 reaching the preset location is (0.7*0.3)0.21, so the number of people reaching the preset location from the intersection where user 2 is located is (800*0.21)168 people; the probability of user 3 reaching the preset location is (0.3*0.3)0.09, so the number of people reaching the preset location from the intersection where user 3 is located is (500*0.09)45 people. The same method is used to calculate the number of people entering and driving to the preset location from the other two intersections, which are 60 and 100 respectively. The total number of people reaching the preset location within the preset time is (120+168+45+60+100)493 people.
[0204] The time period is the same as above. According to the example of configuring the route weight in step S2, the actual situation is that the number of people driving to the area changes during holidays and heavy rain, and the probability of each predicted trajectory route and the number of people walking also change. The final statistics show that the total number of people arriving at the preset location within the preset time is 1270 and 240 respectively. The prediction results in the same time period are different under three different actual conditions.
[0205] The crowd flow prediction method proposed in the present disclosure has at least the following advantages based on the prior art:
[0206] (1) No additional hardware equipment is required, and no historical data of the current terminal needs to be recorded, that is, no corresponding portrait needs to be stored. The overall flow of people in the preset area can be predicted based on the current location point. The entire process only requires the positioning function provided by the operator, and no additional permissions are required;
[0207] (2) The statistics of passenger flow include the time dimension, which can provide the passenger flow situation at each time point. At the same time, based on the actual terminal movement situation in the routes of the entire area, the statistics are more accurate, avoiding the problem that the predicted data given by prediction models or other purely predictive methods are only roughly vague results and lack of accuracy.
[0208] (3) When predicting the flow of people, there is no need to know the destination of the terminal device. The prediction can be made based on the actual location, which requires less information.
[0209] (4) When making traffic predictions, the weights of the directions of each intersection are obtained through big data statistics. There is no need to store and obtain the historical data of the terminal device itself. The prediction is then made based on the historical data or the travel data of the same period. There is no need to maintain a large amount of data. The prediction algorithm is simple, and the only input parameter required is the current location. No additional data parameter acquisition is required, and it is applicable to a wide range of scenarios.
[0210] Figure 8 It is a structural diagram of a pedestrian flow prediction device proposed in an embodiment of the present disclosure.
[0211] like Figure 8 As shown, the pedestrian flow prediction device 80 comprises:
[0212] A first determination module 801 is used to determine a historical motion trajectory of a terminal device, wherein the historical motion trajectory is used to indicate an initial position, an initial motion direction, and an initial motion speed of the terminal device at a current moment;
[0213] A generating module 802, configured to generate a predicted motion trajectory according to the initial position and the initial motion direction, wherein the predicted motion trajectory includes the position to be predicted;
[0214] The second determination module 803 is used to determine a target probability value of the terminal device executing the predicted motion trajectory;
[0215] The third determination module 804 is used to determine the arrival time of the terminal device moving to the position to be predicted according to the initial movement speed;
[0216] The fourth determination module 805 is used to determine the number of terminal devices whose arrival time is the to-be-predicted time according to the target probability value, and generate a pedestrian flow prediction result at the to-be-predicted location at the to-be-predicted time according to the number of terminal devices.
[0217] It should be noted that the above explanation of the crowd flow prediction method is also applicable to the crowd flow prediction device of this embodiment and will not be repeated here.
[0218] In this embodiment, by determining the historical motion trajectory of the terminal device, wherein the historical motion trajectory is used to indicate the initial position, initial motion direction and initial motion speed of the terminal device at the current moment, a predicted motion trajectory is generated according to the initial position and the initial motion direction, wherein the predicted motion trajectory includes the position to be predicted, a target probability value for the terminal device to execute the predicted motion trajectory is determined, and according to the initial motion speed, the arrival time of the terminal device to the position to be predicted is determined, and according to the target probability value, the number of terminal devices whose arrival time is the time to be predicted is determined, and according to the number of terminal devices, a crowd flow prediction result for the position to be predicted at the time to be predicted is generated, thereby, accurate prediction of crowd flow can be achieved at a relatively low cost, and the prediction process is suitable for personalized application scenarios, thereby improving the practicality and reliability of the obtained crowd flow prediction results.
[0219] Fig. 9 A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. Fig. 9 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0220] like Fig. 9 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0221] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.
[0222] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0223] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Fig. 9 Not shown, often called a "hard drive").
[0224] although Fig. 9 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (hereinafter referred to as: CD-ROM), a digital versatile disc read only memory (hereinafter referred to as: DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.
[0225] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.
[0226] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a human body to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0227] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the pedestrian flow prediction method mentioned in the above embodiment.
[0228] In order to implement the above embodiments, the present disclosure further proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the pedestrian flow prediction method proposed in the above embodiments of the present disclosure is implemented.
[0229] In order to implement the above embodiments, the present disclosure further proposes a computer program product. When the instruction processor in the computer program product is executed, the pedestrian flow prediction method proposed in the above embodiments of the present disclosure is executed.
[0230] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0231] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
[0232] It should be noted that, in the description of the present disclosure, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present disclosure, unless otherwise specified, the meaning of "plurality" is two or more.
[0233] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present disclosure belong.
[0234] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0235] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0236] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0237] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0238] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0239] Although the embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present disclosure. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present disclosure.
Claims
1. A method for predicting human flow, characterized in that: include: Determine a historical motion trajectory of the terminal device, wherein the historical motion trajectory is used to indicate an initial position, an initial motion direction, and an initial motion speed of the terminal device at a current moment; Generate a predicted motion trajectory according to the initial position and the initial motion direction, wherein the predicted motion trajectory includes a position to be predicted; Determining a target probability value of the terminal device executing the predicted motion trajectory; Determining, according to the initial movement speed, the arrival time of the terminal device moving to the position to be predicted; The number of terminal devices whose arrival time is the time to be predicted is determined according to the target probability value, and a pedestrian flow prediction result of the location to be predicted at the time to be predicted is generated according to the number of terminal devices.
2. The method according to claim 1, characterized in that The determining of the historical movement trajectory of the terminal device includes: Determine a plurality of historical locations of the terminal device based on a preset statistical interval, wherein the plurality of historical locations includes the initial location; Determining the initial movement direction and the initial movement speed according to the preset statistical interval and the multiple historical positions; The multiple historical positions are connected to generate the historical motion trajectory.
3. The method according to claim 1, characterized in that There are one or more intersections in the predicted motion trajectory; Wherein, determining a target probability value of the terminal device executing the predicted motion trajectory includes: Determining a target exit direction of the terminal device at the intersection according to the predicted motion trajectory; Determine a reference probability value of the terminal device selecting the target exit direction at the intersection; The target probability value is calculated and determined according to the reference probability value of each of the intersections.
4. The method according to claim 3, characterized in that The determining a reference probability value of the terminal device selecting the target exit direction at the intersection includes: Determining, according to the predicted motion trajectory, an entrance direction of the terminal device at the intersection and a plurality of candidate exit directions corresponding to the entrance direction; Acquire a first preset table corresponding to the inlet direction, wherein the first preset table is used to indicate the probability of the terminal device selecting each of the candidate exit directions; The reference probability value of the terminal device selecting the target exit direction at the intersection is determined from the first preset table.
5. The method according to claim 4, characterized in that The first preset table includes a plurality of candidate probability values corresponding to the target exit direction, and the candidate probability values are associated with candidate scene types; Wherein, determining the reference probability value of the terminal device selecting the target exit direction at the intersection from the first preset table includes: Determining a target scene type when the terminal device moves to the intersection; Determine a matching result between the target scene type and a plurality of the candidate scene types; The reference probability value is determined from the multiple candidate probability values according to the matching result.
6. The method according to claim 5, characterized in that The determining the target scene type when the terminal device moves to the intersection includes: Determine the time characteristics and weather characteristics when the terminal device moves to the intersection; The target scene type is determined according to the time characteristics and the weather characteristics.
7. The method according to claim 1, characterized in that The determining of the historical movement trajectory of the terminal device includes: Determine the time difference between the to-be-predicted moment and the current moment; Determining a statistical area according to the position to be predicted and the time difference; Determine the historical movement trajectory of the terminal device currently located in the statistical area.
8. The method according to claim 1, characterized in that The step of determining the arrival time of the terminal device moving to the position to be predicted according to the initial movement speed includes: Determining road condition characteristics of the predicted motion trajectory; According to the road condition characteristics, the predicted motion trajectory is divided into a plurality of sections, wherein the plurality of sections include an initial section and a subsequent section, and the initial motion speed corresponds to the initial section; Determining the traffic condition change information of the subsequent road section and the initial road section; Determining a corresponding moving speed change amount from a second preset table according to the road condition change information, wherein the second preset table is used to indicate the moving speed change amounts corresponding to different road condition change information; Determining a subsequent movement speed corresponding to the subsequent road section according to the initial movement speed and the movement speed change; The arrival time of the terminal device moving to the position to be predicted is calculated and determined based on the initial road section, the subsequent road section, the initial movement speed and the subsequent movement speed.
9. A pedestrian flow prediction device, characterized in that: include: A first determination module, used to determine a historical motion trajectory of a terminal device, wherein the historical motion trajectory is used to indicate an initial position, an initial motion direction, and an initial motion speed of the terminal device at a current moment; A generating module, configured to generate a predicted motion trajectory according to the initial position and the initial motion direction, wherein the predicted motion trajectory includes a position to be predicted; A second determination module is used to determine a target probability value of the terminal device executing the predicted motion trajectory; A third determination module is used to determine the arrival time of the terminal device moving to the position to be predicted according to the initial movement speed; The fourth determination module is used to determine the number of terminal devices whose arrival time is the time to be predicted according to the target probability value, and generate a pedestrian flow prediction result for the location to be predicted at the time to be predicted according to the number of terminal devices.
10. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.
Citation Information
Cited By
Traffic jam prediction method
CN120510707A
