A method and system for sampling one-way operation time of public transportation

By using the state concurrency probability of the HTT period and the roulette algorithm in the public transportation simulation to determine the road traffic status and calculate the conditional probability of the one-way operation time, the problem of sampling deviation of the one-way operation time is solved, and the simulation accuracy and bus service quality are improved. .

CN111949944BActive Publication Date: 2024-09-13武汉禾青优化科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010733530.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-27
Publication Date
2024-09-13
Estimated Expiration
2040-07-27

AI Technical Summary

Technical Problem

In the existing technology, the one-way operation time is obtained through simple random sampling without considering changes in road traffic conditions, resulting in inaccurate public transportation simulation results and affecting operation planning and control.

Method used

Through the state concurrency probability during the HTT period, the roulette algorithm is used to determine the road traffic state, and calculate the conditional probability of the one-way operation time in this state, and then calculate the arrival time, reducing the deviation between the one-way operation time sampling and the actual time.

Benefits of technology

It improves the accuracy of public transportation simulation, helps planners better evaluate bus planning and control, and provides better public transportation services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111949944B
    Figure CN111949944B
Patent Text Reader

Abstract

The present invention discloses a method and system for sampling one-way operation time of a public bus, the method comprising: determining the HTT period to which the current one-way trip belongs according to the departure time of the current one-way trip; calculating the road traffic status of the current one-way trip according to the state concurrency probability corresponding to the HTT period; calculating the conditional probability of the one-way operation time under the road traffic status of the current one-way trip at the same time; calculating the arrival time of the current one-way trip according to the conditional probability; repeating the above steps until the last one-way trip; the system comprises an initial module, a data processing module, a calculation output module and a judgment module. The present invention executes the above method through the system to determine the road traffic status of the current one-way trip, calculates the arrival time of the current one-way trip according to the conditional probability of the one-way operation time under the road traffic status of the current one-way trip, reduces the deviation between the sampling of the one-way operation time and the actual one-way operation time in the traffic simulation, and improves the accuracy of the public transportation simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of public transportation system research, and in particular to a method and system for sampling one-way operation time of a public transportation. Background Art

[0002] In public transportation systems, traffic simulation can help us study the complex interactions between the various components of public transportation systems (including infrastructure, vehicles, passengers, and intelligent transportation systems). How to reasonably and accurately set parameters in these simulation software to control the operation of public transportation vehicles in simulation has always been a problem for dispatchers.

[0003] Control strategy and one-way operation time sampling are two important factors that affect the results of public transportation simulation. Previous research on public transportation simulation often focuses on control strategy, while in terms of one-way operation time sampling, public transportation simulation will cluster according to the changes in one-way operation time through the k-means algorithm, and divide the simulation time into multiple HTT (homogenous trip time) periods according to the clustering results, and obtain them through simple random sampling distributed within the HTT period.

[0004] The one-way operation time simulates the operation of the bus on the route. A bus operation process is composed of a series of one-way services. A one-way trip is a service that takes passengers from one station to another, usually consisting of the order of the departure station, departure time, arrival station, and arrival time. The time spent on a one-way trip is called the one-way operation time. In reality, the one-way operation time will be affected by the road traffic conditions; for example, the one-way operation time spent when the road is congested is significantly greater than the one-way operation time when the road is smooth. The shortcomings of the prior art are that the one-way operation time is obtained by simple random sampling of its distribution within the HTT period, which is equivalent to assuming that the road traffic conditions remain unchanged during the HTT period, and does not consider the impact of changes in road traffic conditions on the one-way operation time, resulting in a large deviation between the simple random sampling of the one-way operation time in the public transportation simulation and the actual one-way operation time, making the simulation results inaccurate, which in turn affects the public transportation operation plan and public transportation control. Summary of the invention

[0005] The present invention aims to solve the technical problem that there is a large deviation between the simple random sampling of the one-way operation time in the prior art and the actual one-way operation time. The present invention provides a method and system for sampling the one-way operation time of a public bus.

[0006] The technical solution of the present invention to solve the above technical problems is as follows:

[0007] On the one hand, an embodiment of the present invention provides a method for sampling a one-way operation time of a public transport, comprising the following steps:

[0008] Step 1, according to the departure time of the current one-way trip, determine the HTT time period to which the current one-way trip belongs; each of the HTT time periods corresponds to a one-way operating time set;

[0009] Step 2, according to the state concurrency probability corresponding to the HTT period, the current one-way road traffic state is obtained by a roulette algorithm; at the same time, the conditional probability of the one-way operation time in the one-way operation time set under the current one-way road traffic state is calculated; the road traffic state includes three states: unobstructed, normal and congested; the state concurrency probability is the probability of the three road traffic states existing at the same time;

[0010] Step 3, calculating the current one-way arrival time according to the conditional probability;

[0011] Step 4, repeat steps 1 to 3 until the last one way.

[0012] On the other hand, an embodiment of the present invention provides a bus one-way operation time sampling system, characterized in that it is configured with:

[0013] The initial module determines the HTT period to which the current one-way trip belongs according to the departure time of the current one-way trip; each of the HTT periods corresponds to a one-way operation time set;

[0014] The data processing module obtains the current one-way road traffic state through a roulette algorithm according to the state concurrency probability corresponding to the HTT period; and simultaneously calculates the conditional probability of the one-way operation time in the one-way operation time set under the current one-way road traffic state; the state concurrency probability is the probability of several road traffic states existing at the same time;

[0015] A calculation output module calculates the current one-way arrival time according to the conditional probability;

[0016] A judgment module is used to judge whether the current one-way trip is the last one-way trip.

[0017] The embodiment of the present invention provides a method and system for sampling one-way operation time of a public bus. The method determines the current one-way road traffic state through the state concurrency probability corresponding to the HTT period; calculates the current one-way arrival time according to the conditional probability of the one-way operation time under the current one-way road traffic state; reduces the deviation between the one-way operation time sampling and the actual one-way operation time in traffic simulation, and improves the accuracy of public transportation simulation; helps planners to better evaluate public transportation planning and perform public transportation control, and ultimately provides better public transportation services for public transportation passengers. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1A schematic diagram of a flow chart of a method for sampling a single-trip operation time of a public transportation system according to an embodiment of the present invention;

[0019] Figure 2 This is a schematic diagram of the flow chart of the state concurrency probability calculation steps of an embodiment of the present invention;

[0020] Figure 3 A schematic diagram of the process of marking the road traffic status according to an embodiment of the present invention;

[0021] Figure 4 This is a road traffic status interval distribution diagram of an embodiment of the present invention;

[0022] Figure 5 The present invention is a schematic diagram of the structure of a bus one-way operation time sampling system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0024] Figure 1 FIG. 1 is a flow chart of a method for sampling a one-way operation time of a public transportation system according to an embodiment of the present invention; Figure 1 As shown, the following steps are included:

[0025] Step 1, according to the departure time of the current one-way trip, determine the HTT time period to which the current one-way trip belongs; each of the HTT time periods corresponds to a one-way operating time set;

[0026] Step 2, according to the state concurrency probability corresponding to the HTT period, the current one-way road traffic state is obtained by a roulette algorithm; and at the same time, the conditional probability of the one-way operation time in the one-way operation time set under the current one-way road traffic state is calculated; the state concurrency probability is the probability of several road traffic states existing at the same time;

[0027] Step 3, calculating the current one-way arrival time according to the conditional probability;

[0028] Step 4, repeat steps 1 to 3 until the last one way.

[0029] Specifically, each HTT period corresponds to a one-way operation time set; the one-way operation time set is to extract all one-way operation times from a large amount of AVL (Automatic Vehicle Location) data, cluster all one-way operation times through k-means, and divide them into several continuous homogeneous one-way operation time sets; and divide the simulation time period into several one-to-one corresponding HTT periods according to the clustering results. When determining the departure time of the current one-way trip, the HTT period to which the current one-way trip belongs can be accurately determined; according to the state concurrency probability of the one-way operation time set corresponding to the HTT period to which the current one-way trip belongs, the road traffic state of the current one-way trip is obtained through the roulette algorithm; and then the conditional probability of the one-way operation time in the one-way operation time set corresponding to the HTT period is calculated under the road traffic state of the current one-way trip; according to the conditional probability, the Monte Carlo random sampling method is used to extract the one-way operation time under the corresponding road traffic state, and then the extracted one-way operation time plus the departure time of the current one-way trip is equal to the current one-way arrival time.

[0030] According to the first-in-first-out control strategy, when the departure time of the current one-way trip is greater than the departure time of the last one-way trip, the calculation is terminated; when the departure time of the current one-way trip is less than the departure time of the last one-way trip, steps 1 to 3 are repeated.

[0031] For example, all one-way operating times extracted from AVL data are divided into several continuous homogeneous one-way operating time sets TT by using the k-means clustering algorithm. h (h=1,2,…,H), h is the number of one-way operation time sets; and the simulation time period is also divided into h HTT periods based on this clustering result. When sampling the one-way operation time, the number i of the current one-way departure schedule is initially set to 0.

[0032] In the first stage, when the number of the current one-way departure is i=i+1; i=i+1 means assigning i+1 to i; through the current one-way departure time t s i , determine the hth HTT period to which the current one-way trip i belongs, and then calculate the one-way operation time set TT corresponding to the hth HTT period h The road state concurrency probability is calculated by the roulette method to obtain the current one-way road traffic state k; at the same time, the one-way operation time set TT is calculated h The conditional probability of the one-way operating time under the road traffic state k.

[0033] In the second stage, through TT h The conditional probability of the one-way operation time under the road traffic state k is used to calculate the current one-way arrival time.

[0034] The calculation is performed using a first-in-first-out control strategy. If the departure time of the current single trip i is greater than the departure time of the last single trip, the calculation is terminated and the calculation of all single trips in the hth HTT period is completed; otherwise, the above steps are repeated to enter the calculation of the next single trip.

[0035] The embodiment of the present invention provides a method for sampling a one-way operation time of a public bus. The method determines the current one-way road traffic state through the state concurrency probability corresponding to the HTT period; calculates the current one-way arrival time according to the conditional probability of the one-way operation time under the current one-way road traffic state; reduces the deviation between the one-way operation time sampling and the actual one-way operation time in traffic simulation, and improves the accuracy of public transportation simulation.

[0036] Further, Figure 2 FIG. 1 is a flow chart of the steps for calculating the state concurrency probability according to an embodiment of the present invention; Figure 2 As shown, the state concurrency probability calculation step includes:

[0037] Step 21, grouping the one-way operation time of each day in the one-way operation time set according to the road traffic status; Step 22, respectively calculating the probability of each group under the corresponding road traffic status:

[0038]

[0039] Among them, w k Indicates that the road traffic status is k probability;

[0040] Step 23, the probability of each group under the corresponding road state is calculated through vector calculation to obtain the state concurrency probability corresponding to the HTT period.

[0041] Specifically, there are many changes in the one-way operation time set corresponding to an HTT period; therefore, the one-way operation time of each day in the one-way operation time set is grouped according to the road traffic status; the embodiment of the present invention preferably divides the road traffic status into three types: unobstructed, normal, and congested; for example, the one-way operation time set TT corresponding to the hth HTT period h , according to the daily road traffic status, it is divided into three groups, each group can be expressed as TT hk , k = 1, 2, 3, representing the three road traffic conditions of smooth, normal and congested respectively; further, the probabilities of these three groups of road traffic conditions are calculated as w1, w2, w3 respectively through the formula, and the three groups of road traffic condition probabilities are applied through the vector algorithm to obtain the one-way operation time set TT corresponding to the hth HTT period h The state concurrency probability is expressed as (w1,w2,w3).

[0042] Furthermore, the conditional probability calculation formula is:

[0043]

[0044] Wherein, f(t|k) represents the conditional probability of the one-way operating time when the road traffic state is k.

[0045] Specifically, extract the one-way operation time set TT h Within, under the road traffic state k, the ratio of the one-way number with a one-way operating time of t to the total one-way number under the road traffic state k is obtained.

[0046] Further, Figure 3 Schematic diagram of the road traffic status marking process of an embodiment of the present invention; Figure 3 As shown, the method for marking the road traffic status of each day in the one-way operation time set includes:

[0047] Step 211, defining the road traffic state; defining the road traffic state into different state intervals according to the distribution of the one-way operation time in the one-way operation time set;

[0048] Step 212, marking the road traffic status of each day within the one-way operating time set according to the status interval.

[0049] Specifically, Figure 4 is a road traffic status interval distribution diagram of an embodiment of the present invention; Figure 4 As shown in Figure 1, since the daily one-way operation time contains at least hundreds of one-way records or samples, it is necessary to define the daily road traffic status; for example, the one-way operation time set TT corresponding to the hth HTT period h , according to TT h The distribution calculation of the one-way operation time in the hth HTT period is: the x-axis is the one-way operation time, the y-axis is the probability value, and two boundaries a and b are defined on the x-axis; if the one-way operation time is less than a, it is a smooth interval (Smooh), if it is greater than b, it is a congested interval (Busy), and if it is between the two, it is a normal interval (Normal). Therefore, the one-way operation time set TT corresponding to the hth HTT period is h The daily road traffic status can be expressed as:

[0050]

[0051] Among them, K(n) represents the road traffic status on the nth day, n = 1, 2, 3...; TT(n) represents the one-way operating time set on the nth day; med(TT(n)) is the median of the TT(n) set; if med(TT(n)) is less than or equal to a, K(n) = 1, 1 represents a smooth state; if med(TT(n)) is greater than a and less than or equal to b, K(n) = 2, 1 represents a normal state; if med(TT(n)) is greater than b, K(n) = 3, 3 represents a congested state.

[0052] The one-way operation time sampling results of a bus one-way operation time sampling method provided by an embodiment of the present invention are compared with those of a simple random sampling method and a sampling method that only considers the division of HTT time periods, as shown in the following table:

[0053]

[0054] The TTSA-HS column is a bus one-way operation time sampling method provided by the embodiment of the present invention; TTSA is a simple random sampling method; TTSA-HS is a sampling method that only considers the division of HTT time periods; where D value is the deviation between the sampling result and the actual result, and the smaller the D value, the closer the sampling result is to the actual result. It can be seen from the table that the one-way operation time sampling method proposed in the embodiment of the present invention is significantly better than the other two commonly used sampling methods.

[0055] The embodiment of the present invention provides a method for sampling a one-way operation time of a bus. The method determines the current one-way road traffic state through the state concurrency probability corresponding to the HTT period; calculates the current one-way arrival time according to the conditional probability of the one-way operation time under the current one-way road traffic state; reduces the deviation between the one-way operation time sampling and the actual one-way operation time in traffic simulation, improves the accuracy of public transportation simulation, helps planners better evaluate public transportation planning, conducts public transportation control, and ultimately provides better public transportation services for public transportation passengers.

[0056] Based on the above embodiments, Figure 5 FIG. 1 is a schematic diagram of a bus one-way operation time sampling system according to an embodiment of the present invention. Figure 5 As shown, the configuration is:

[0057] The initial module determines the HTT period to which the current one-way trip belongs according to the departure time of the current one-way trip; each of the HTT periods corresponds to a one-way operation time set;

[0058] The data processing module obtains the current one-way road traffic state through a roulette algorithm according to the state concurrency probability corresponding to the HTT period; and simultaneously calculates the conditional probability of the one-way operation time in the one-way operation time set under the current one-way road traffic state; the road traffic state includes three states: unobstructed, normal and congested; and the state concurrency probability is the probability of the three road traffic states existing at the same time;

[0059] A calculation output module calculates the current one-way arrival time according to the conditional probability;

[0060] A judgment module is used to judge whether the current one-way trip is the last one-way trip.

[0061] Furthermore, the data processing module is configured with a state concurrency probability calculation unit, which groups the one-way operation time of each day in the one-way operation time set according to the road traffic state; and calculates the probability of each group under the corresponding road state:

[0062]

[0063] Among them, w k Indicates that the road traffic status is k probability;

[0064] The probability of each group under the corresponding road state is calculated through vector calculation to obtain the state concurrency probability corresponding to the HTT period.

[0065] Furthermore, the data calculation module is equipped with a conditional probability calculation unit; the conditional probability calculation formula is:

[0066]

[0067] Wherein, f(t|k) represents the conditional probability of the one-way operation time when the road traffic state is k.

[0068] Furthermore, the data calculation module is provided with a road traffic status labeling unit;

[0069] Defining a road traffic state; defining the road traffic state as different state intervals according to the distribution of one-way operation time in a one-way operation time set corresponding to the HTT period;

[0070] The road traffic status of each day within the one-way operating time set corresponding to the HTT period is marked according to the status interval.

[0071] The embodiment of the present invention provides a bus one-way operating time sampling system to execute the above method, determine the current one-way road traffic state through the state concurrency probability corresponding to the HTT cycle; calculate the current one-way arrival time according to the conditional probability of the one-way operating time under the current one-way road traffic state; reduce the deviation between the one-way operating time sampling and the actual one-way operating time in the traffic simulation, improve the accuracy of public transportation simulation, help planners better evaluate public transportation planning, perform public transportation control, and ultimately provide better public transportation services for public transportation passengers.

[0072] 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 shown as units may or may not be physical units, i.e., 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.

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

[0074] 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 sampling one-way operation time of a public transport, characterized in that: The following steps are involved: Step 1, according to the departure time of the current one-way trip, determine the HTT time period to which the current one-way trip belongs; each of the HTT time periods corresponds to a one-way operating time set; Step 2, according to the state concurrency probability of the one-way operation time set, the current one-way road traffic state is obtained by a roulette algorithm; and at the same time, the conditional probability of the one-way operation time in the one-way operation time set under the current one-way road traffic state is calculated; the state concurrency probability is the probability of several road traffic states existing at the same time; Step 3, calculating the current one-way arrival time according to the conditional probability; Step 4, repeating steps 1 to 3 until the last one-way trip; The state concurrency probability calculation method comprises: Step 21, grouping the one-way operation time of each day in the one-way operation time set according to the road traffic status; Step 22, respectively calculate the probability of each group under the corresponding road traffic state: Among them, w k Indicates that the road traffic state has a k probability; Step 23, the probability of each group under the corresponding road traffic state is calculated through vector calculation to obtain the state concurrency probability corresponding to the HTT period.

2. A method for sampling one-way operation time of a public transport according to claim 1, characterized in that: The conditional probability calculation formula is: Wherein, f(t|k) represents the conditional probability of the one-way operation time when the road traffic state is k.

3. A method for sampling one-way operation time of public transportation according to claim 1, characterized in that: The method for marking the road traffic status of each day in the one-way operation time set includes: Step 211, defining the road traffic state; defining the road traffic state into different state intervals according to the distribution of the one-way operation time in the one-way operation time set; Step 212, marking the road traffic status of each day within the one-way operating time set according to the status interval.

4. A bus one-way operation time sampling system, characterized in that: The configuration is: The initial module determines the HTT period to which the current one-way trip belongs according to the departure time of the current one-way trip; each of the HTT periods corresponds to a one-way operation time set; The data processing module obtains the current one-way road traffic state through a roulette algorithm according to the state concurrency probability of the one-way operation time set; and simultaneously calculates the conditional probability of the one-way operation time in the one-way operation time set under the current one-way road traffic state; the state concurrency probability is the probability of several road traffic states existing at the same time; A calculation output module calculates the current one-way arrival time according to the conditional probability; A judging module, judging whether the current one-way trip is the last one-way trip; The data processing module is configured with a state concurrency probability calculation unit, According to the road traffic status, the one-way operation time of each day in the one-way operation time set is grouped; Calculate the probability of each group under the corresponding road traffic conditions: Among them, w k Indicates that the road traffic state has a k probability; The probability of each group under the corresponding road state is calculated through the midpoint vector to obtain the state concurrency probability corresponding to the HTT period.

5. A bus one-way operation time sampling system according to claim 4, characterized in that: The data processing module is equipped with a conditional probability calculation unit; the conditional probability calculation formula is: Wherein, f(t|k) represents the conditional probability of the one-way operation time when the road traffic state is k.

6. A bus one-way operation time sampling system according to claim 4, characterized in that: The data processing module is equipped with a road traffic status labeling unit; Defining the road traffic state; defining the road traffic state into different state intervals according to the distribution of the one-way operation time in the one-way operation time set; The road traffic status of each day within the one-way operating time set is marked according to the status interval.