A dynamic model for short-term passenger flow prediction based on AFC data
Through the short-term passenger flow prediction dynamic model based on AFC data, the problem of insufficient prediction and low efficiency of existing technology in processing short-term passenger flow data is solved, and a complete, stable and efficient prediction of urban rail transit passenger flow is achieved, and dynamic adjustment is achieved Data consistency, suitable for actual operational needs.
Patent Information
- Application Number
- CN202010882983.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-28
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-08-28
AI Technical Summary
When existing urban rail transit passenger flow prediction technology processes short-term passenger flow data, the linear model cannot fully reflect the development trend of the data, the prediction accuracy of the nonlinear model is insufficient, the calculation efficiency of the simulation model is low, and the machine learning model is prone to overlearning or underlearning. The prediction accuracy of the combined model is unstable and deviated from actual operating scenarios.
Adopt a short-term passenger flow prediction dynamic model based on AFC data, collect and store transaction data through the automatic ticket collection system, calculate historical OD passenger flow data and timetable distribution ratio, dynamically calculate platform and train section passenger flow data, and dynamically self-verify through the model and self-correction module to adjust data consistency.
It achieves complete, evaluable and intuitive prediction of platform and train passenger flow data, has dynamic self-checking and self-correction capabilities, improves the effectiveness and efficiency of prediction, and is consistent with actual operating scenarios.
Smart Images

Figure CN112182838B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of rail transit technology, and in particular to a short-term passenger flow prediction dynamic model. Background Art
[0002] Passenger flow is the key basic data in the operation of rail transit lines. By analyzing the characteristics of passenger flow and predicting the patterns of passenger flow, it provides a basis, support and auxiliary decision-making for operation and scheduling, formulates a more reasonable urban rail transit operation plan, improves the quality of urban rail transit services, and better serves the travel needs of citizens.
[0003] At present, urban rail transit passenger flow prediction technologies are mainly divided into the following categories:
[0004] 1) Linear prediction models, such as time series prediction models, Kalman filter models, etc.;
[0005] 2) Nonlinear prediction models, such as wavelet prediction models, chaos prediction models and non-parametric prediction models;
[0006] 3) Simulation prediction models, such as cellular automaton prediction method and traffic simulation prediction method;
[0007] 4) Machine learning prediction models, such as support vector machines, neural networks, etc.;
[0008] 5) Combined prediction model.
[0009] The defects of current urban rail transit passenger flow prediction technology:
[0010] When dealing with short-term passenger flow in urban rail transit with strong randomness and nonlinear characteristics, the linear prediction model cannot fully obtain the intrinsic characteristics of short-term passenger flow, and linear mapping is difficult to fully reflect the development trend of short-term passenger flow data.
[0011] The nonlinear prediction model can describe the nonlinear characteristics of short-term passenger flow data of urban rail transit, but its prediction accuracy needs to be further improved in the face of massive small-grained short-term passenger flow data.
[0012] Simulation prediction models usually have high modeling costs, and the model calculation efficiency is difficult to meet timeliness requirements.
[0013] Shallow machine learning prediction models are prone to over-learning or under-learning problems when processing big data.
[0014] The combination method and content in the combined model have a great influence on the prediction effect of the final model, and the prediction accuracy is unstable.
[0015] In terms of prediction time, predictions are made at certain equal intervals, which deviates from the actual operating scenario. Summary of the invention
[0016] In view of the defects of the prior art, the technical problem to be solved by the present invention is to provide a dynamic model for short-term passenger flow prediction based on AFC data, which can predict platform passenger flow data and train section passenger flow data and ensure the effectiveness and efficiency of the prediction.
[0017] In order to solve the above technical problems, the present invention adopts the following technical solution: a short-term passenger flow prediction dynamic model based on AFC data, comprising:
[0018] The automatic ticket vending and checking system is used to collect and store AFC transaction data to form AFC historical data:
[0019] The historical OD passenger flow data calculation module calculates the historical OD passenger flow data based on the AFC historical data, and calculates the distribution ratio of the passenger flow data at time t according to the corresponding timetable, including the passenger flow ratio coefficient R(i, j, t) from station i to station j, and the ratio coefficient R of the up and down passenger flow at station i. u (i, t), R d (i, t), the relationship between them is as follows:
[0020]
[0021]
[0022] The platform passenger flow data calculation module is used to calculate the station passenger flow data of station i at time t, and the calculation is as follows:
[0023] NStation(i,t)=NAFCin(i,t)+NShiftin(i,t)+NRest(i,t-1)
[0024] NRest(i,t)=NStation(i,t)–Non(i,t)
[0025] NUp(i,t)=NStation(i,t)×Ru(i,t)
[0026] NDown(i,t)=NStation(i,t)×Rd(i,t)
[0027] NOD(i,j,t)=NStation(i,t)×R(i,j,t)
[0028] Where, NStation represents the number of people on the platform; NAFCin represents the cumulative number of people entering the station by AFC during t-1 and t; NShiftin represents the cumulative number of people entering the station by transfer during t-1 and t; NRest represents the number of people staying on the platform; Non represents the number of people getting on the train, and t-1 represents the time of the previous moment in the timetable; NUp represents the number of people on the platform who expect to go up; NDown represents the number of people on the platform who expect to go down, and NOD represents the number of people on the platform who expect to take the train to the destination station j;
[0029] The train section passenger flow data calculation module is used to calculate the section passenger flow data of train k in section (i) at time t, and the calculation is as follows:
[0030] N Train (k, t) = N Train (k,t -1 )–N off (k,i,t)+N on (k,i,t)
[0031] N TrainD (k, j, t) = N TrainD (k,j,t -1 )+(N on (k, i, t) × R(i, j, t))
[0032] N off (k, i, t) = N TrainD (k,i,t -1 )
[0033] Where N Train Indicates the number of passengers on the train section; N off Indicates the number of people getting off the bus; N on Indicates the number of people on board; N TrainD It represents the number of passengers going to destination j in the train section.
[0034] Furthermore, the train has a full load quota. When the train is fully loaded, it cannot meet the expectations of all passengers waiting on the platform.
[0035] For the downlink, the number of people expected to board is the number of downlink passengers calculated on the platform.
[0036] N Expon (i, t) = N Down (i, t)
[0037] First calculate the judgment conditions, and then calculate the actual number of people on the bus based on the conditions:
[0038] N space (k, t) = N limit –(NTrain (k,t -1 )–N off (k,i,t)
[0039] J con =N space (k, t) – N Expon (i, t)
[0040] If J con ≥0,N on (k, i, t) = N Expon (i, t)
[0041] If J con <0,N on (k, i, t) = N space (k, t)
[0042] Where N Expon Indicates passengers who wish to board the bus at the platform; N space Indicates the passenger space available on the train; N limit Indicates the train's full passenger quota; J con Indicates the judgment condition.
[0043] Furthermore, regarding transfer passengers, if there are multiple transfer paths, the calculation is based on the shortest path. Suppose the passenger goes from a→b→c, which means the passenger transfers from station a to station c via station b. In this line, the passenger is classified as a passenger with OD a→b and gets off at station b at time t. In the transfer line, the passenger is classified as a passenger who enters station b at time t and whose OD is b→c.
[0044] According to the formula N off (k, i, t) = N TrainD (k,i,t -1 ) Calculate the number of passengers transferring at station b,
[0045] Where c is all the stations that transfer to other lines via station b:
[0046] N shift (k, b, t) = ∑ c NTrainD(k,c,t-1)
[0047] Where Nshift represents the number of transfer passengers, and NTrainD represents the number of passengers going to destination c other than the line in the train section.
[0048] Furthermore, for each train at the starting station, the number of passengers in the train cross-section is equal to the number of passengers on the platform, and NTrainD(k, j, t-1)=0.
[0049] Furthermore, it also includes a dynamic self-checking and self-correction module of the model. The number of people getting off the train after arriving at station i at time t should be equal to the number of AFC passengers leaving station i some time after time t. The difference between the two numbers is calculated and recalculated according to the model to dynamically correct the number of passengers in the section of the station and train and the number of each proportion.
[0050] Furthermore, at the terminal station of each train, the number of passengers in the train section should be equal to the number of passengers leaving the station by AFC. The difference between the two numbers is calculated and recalculated according to the model to dynamically correct the number of passengers at the station and subsequent trains as well as the number of each proportion.
[0051] Furthermore, at the transfer station, the number of people at the transfer exit should be equal to the number of people getting off the train minus the number of AFC passengers exiting the station after a certain period of time. The difference between the two numbers is calculated and recalculated according to the model to dynamically correct the number of stations, trains, transfer passengers and each proportion.
[0052] Furthermore, the AFC transaction data includes the ticket card number, entry number, entry time, exit number, and exit time.
[0053] The technical solution adopted by the present invention has the following beneficial effects:
[0054] 1. Completeness. Existing methods and models are relatively isolated. Passenger flow prediction generally requires prediction of three aspects of data: passenger flow data at the station, cross-section passenger flow data, and OD matrix data. Existing methods and models generally only predict single data or a single line. This model models passenger flow prediction as a whole and is complete.
[0055] 2. Evaluability and intuitiveness. Existing technologies use complex methods and models to predict output results from input data in a black box manner. The internal logic and characteristics are unclear, specific models are difficult to tune, and the results and accuracy are not stable enough. This model has clear internal logic and is highly evaluable and intuitive.
[0056] 3. Dynamic self-checking and self-correction. The existing technology does not take into account the internal relationship between the passenger flow data of the station, the cross-section passenger flow data and the OD matrix data, nor does it take into account the mutual correlation and mutual verification relationship between the data of the station, line and line network. This model fully considers the consistency and internal logic between the data, thus forming a closed-loop system with dynamic self-checking and self-correction capabilities.
[0057] 4. Effectiveness and high efficiency of prediction. The prediction timing and time interval are combined with the train timetable, which is suitable for the actual application scenario and ensures the effectiveness and high efficiency of the prediction.
[0058] The specific technical solutions and beneficial effects of the present invention will be described in detail in the following specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments:
[0060] Figure 1 It is a schematic diagram of a dynamic model for short-term passenger flow prediction based on AFC data of the present invention. DETAILED DESCRIPTION
[0061] The technical solutions of the embodiments of the present invention are explained and described below, but the following embodiments are only preferred embodiments of the present invention, not all. Based on the embodiments in the implementation mode, other embodiments obtained by those skilled in the art without creative work all belong to the protection scope of the present invention.
[0062] The invention is a short-term passenger flow prediction dynamic model based on AFC data, which calculates platform passenger flow data and train section passenger flow data at a certain moment according to the train timetable and historical OD passenger flow data.
[0063] Among them, the platform passenger flow data specifically includes the total platform passenger flow, which can be subdivided into up passenger flow data and down passenger flow data according to the driving direction, as well as OD passenger flow data calculated from the station as the starting point to each destination station. The input data comes from the historical transaction data and real-time transaction data collected by AFC. AFC is the abbreviation of the automatic ticket vending and checking system of urban rail transit. OD: origin-destination, meaning starting point-end point, is used to express the passenger's driving path.
[0064] The relationship between the data is as follows Figure 1 As shown, the relationship between the variables is described in detail below: Take a line as an example, assuming that the line has n stations, numbered 1, 2, 3, ..., n, for station i, Section (i) represents the section between stations i and i+1. According to the train timetable, the calculation time is t, and the previous calculation time is t -1 , the current train is k.
[0065] A dynamic model for short-term passenger flow prediction based on AFC data, including:
[0066] The automatic ticket vending and checking system is used to collect and store AFC transaction data to form AFC historical data, wherein the AFC transaction data can refer to the existing technology, including the ticket card number, entry number, entry time, exit number, and exit time.
[0067] The historical OD passenger flow data calculation module calculates the historical OD passenger flow data based on the AFC historical data, and calculates the distribution ratio of the passenger flow data at time t according to the corresponding timetable.
[0068] Since the AFC historical transaction data contains the entry station and time, as well as the exit station and time of each passenger, the passenger's travel path can be obtained by matching the station and the exit.
[0069] The distribution ratio of passenger flow data at time t includes the passenger flow ratio coefficient R(i, j, t) from station i to station j, the passenger flow ratio coefficient R(i, j, t) of the up and down passenger flow at station i u (i, t), R d (i, t).
[0070] With the historical OD passenger flow data, we can know the set of passengers from station i to station j at a certain time t. The ratio of the number of passengers in this set to the total number of passengers on the platform at that time t is the proportional coefficient R(i, j, t).
[0071] The above proportionality coefficients are related to each other as follows:
[0072]
[0073]
[0074] The platform passenger flow data calculation module is used to calculate the station passenger flow data of station i at time t. The specific calculation is as follows:
[0075] The number of people on the platform is the sum of the number of people entering the station from the AFC, the number of people entering the station from the transfer station, and the number of people who were not transported away by the previous train and are stranded on the platform:
[0076] NStation(i,t)=NAFCin(i,t)+NShiftin(i,t)+NRest(i,t-1)
[0077] The number of people stranded on the platform is the number of people on the platform minus the number of people left on the platform after getting on the train:
[0078] NRest(i,t)=NStation(i,t)–Non(i,t)
[0079] The expected number of people is the number of people on the platform going to each destination station, calculated based on historical ratios:
[0080] NUp(i,t)=NStation(i,t)×Ru(i,t)
[0081] NDown(i,t)=NStation(i,t)×Rd(i,t)
[0082] NOD(i,j,t)=NStation(i,t)×R(i,j,t)
[0083] Where, NStation represents the number of people on the platform; NAFCin represents the cumulative number of people entering the station by AFC during t-1 and t; NShiftin represents the cumulative number of people entering the station by transfer during t-1 and t; NRest represents the number of people staying on the platform; Non represents the number of people getting on the train, and t-1 represents the time of the previous moment in the timetable; NUp represents the number of people on the platform who expect to go up; NDown represents the number of people on the platform who expect to go down, and NOD represents the number of people on the platform who expect to take the train to the destination station j;
[0084] The train section passenger flow data calculation module is used to calculate the section passenger flow data of train k in section (i) at time t, and the calculation is as follows:
[0085] N Train (k, t) = N Train (k,t -1 )–N off (k,i,t)+N on (k,i,t)
[0086] The number of people getting off the bus is the number of people on the bus who are expected to reach the destination station.
[0087] The number of people on the platform ready to board the bus
[0088] The number of passengers going to destination j in the train section: The number of passengers going to destination j in the total number of passengers on the train is calculated by adding the number of passengers originally scheduled to go to j plus the number of passengers who just boarded the train to go to j:
[0089] N TrainD (k, j, t) = N TrainD (k,j,t -1 )+(N on (k, i, t) × R(i, j, t))
[0090] N off (k, i, t) = N TrainD (k,i,t -1 )
[0091] Where N Train Indicates the number of passengers on the train section; N off Indicates the number of people getting off the bus; N on Indicates the number of people on board; N TrainD It represents the number of passengers going to destination j in the train section.
[0092] The short-term passenger flow forecast dynamic update and display system automatically updates and displays the calculation results of the platform passenger flow data calculation module and the train section passenger flow data calculation module, and transmits the results to the operation dispatching system to provide a basis, support and auxiliary decision-making for operation dispatching, and formulate a more reasonable urban rail transit operation plan.
[0093] The train has a full load quota. When the train is full, it cannot meet the expectations of all passengers waiting on the platform.
[0094] Take the following behavior as an example. The number of people expected to board the bus is the number of passengers going down the platform.
[0095] N Expon (i, t) = N Down (i, t)
[0096] First calculate the judgment conditions, and then calculate the actual number of people on the bus based on the conditions:
[0097] N space (k, t) = N limit –(N Train (k,t -1 )–N off (k,i,t)
[0098] J con =N space (k, t)–N Expon (i, t)
[0099] If J con ≥0,N on (k, i, t) = N Expon (i, t)
[0100] If J con <0,N on (k, i, t) = N space (k, t)
[0101] Where N Expon Indicates passengers who wish to board the bus at the platform; N space Indicates the passenger space available on the train; N limit Indicates the train's full passenger quota; J con Indicates the judgment condition.
[0102] The train is full, so naturally people on the platform cannot get on and can only wait for the next train, which is why there are people stranded on the platform. The same is true for the upward train. The number of people getting on each train cannot exceed the quota, so only some people can get on.
[0103] For transfer passengers, if there are multiple transfer routes, the shortest route will be used for calculation.
[0104] Suppose the passenger goes from a→b→c, which means the passenger transfers from station a to station c via station b. In this line, the passenger is classified as a passenger with OD a→b and gets off at station b at time t. In the transfer line, the passenger is classified as a passenger who enters station b at time t and whose OD is b→c.
[0105] According to the formula N off (k, i, t) = N TrainD (k,i,t -1 ) calculate the number of passengers transferring at station b,
[0106] Where c is all the stations that transfer to other lines via station b:
[0107] N shift (k, b, t) = ∑ c NTrainD(k,c,t-1)
[0108] Where Nshift represents the number of transfer passengers, and NTrainD represents the number of passengers going to destination c other than the line in the train section.
[0109] Model startup and iteration conditions
[0110] For each train at the starting station, the train should be empty, so the number of passengers in the train section is equal to the number of people on the platform.
[0111] N TrainD (k,j,t -1 )=0
[0112] In order to make the model have dynamic self-checking and self-correcting capabilities, a dynamic self-checking and self-correcting module of the model is also provided.
[0113] The number of people getting off each train after it arrives at station i at time t should be equal to the number of passengers leaving the station i by AFC after a period of time at time t. By calculating the difference between the two numbers and re-calculating according to the above calculation method of the model, the number of passengers in the section of the station and train and the number of each proportion can be dynamically corrected in time to make up for the error of the prediction results in the previous stage and improve the accuracy.
[0114] At the terminal station of each train, the number of passengers in the train section should be equal to the number of passengers leaving the station by AFC. By calculating the difference between the two numbers and recalculating according to the model, the number of passengers at the station and subsequent trains and the number of each proportion can be dynamically corrected in time to make up for the error of the prediction results in the previous stage and improve the accuracy.
[0115] At the transfer station, the number of people at the transfer exit should be equal to the number of people getting off the train minus the number of passengers leaving the station after a certain period of time. By calculating the difference between the two numbers and re-calculating according to the model, the number of stations, trains, transfer passengers and the number of each proportion can be dynamically corrected in a timely manner to make up for the errors in the prediction results of the previous stage and improve accuracy.
[0116] The difference in the number of people is calculated based on the original number of people to know the proportion of which station these people come from. If the actual number of people is more or less than the estimate, it means that there is a problem with the estimate. The number of people boarding the train at the source station can be adjusted according to the proportion, and then the number of people on subsequent trains and platforms can be recalculated according to the formulas to make the subsequent results more in line with reality.
[0117] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Those skilled in the art should understand that the present invention includes but is not limited to the contents described in the above specific embodiments. Any modification that does not deviate from the functional and structural principles of the present invention will be included in the scope of the claims.
Claims
1. A dynamic device for short-term passenger flow prediction based on AFC data, characterized in that: include: The automatic ticket vending and checking system is used to collect and store AFC transaction data to form AFC historical data: The historical OD passenger flow data calculation module calculates the historical OD passenger flow data based on the AFC historical data, and calculates the distribution ratio of the passenger flow data at time t according to the corresponding timetable, including the passenger flow ratio coefficient R(i, j, t) from station i to station j, and the ratio coefficient R of the up and down passenger flow at station i. u (i, t), R d (i, t), the relationship between them is as follows: The platform passenger flow data calculation module is used to calculate the station passenger flow data of station i at time t, and the calculation is as follows: NStation(i,t)=NAFCin(i,t)+NShiftin(i,t)+NRest(i,t-1) NRest(i,t)=NStation(i,t)–Non(i,t) NUp(i,t)=NStation(i,t)×Ru(i,t) NDown(i,t)=NStation(i,t)×Rd(i,t) NOD(i,j,t)=NStation(i,t)×R(i,j,t) Where, NStation represents the number of people on the platform; NAFCin represents the cumulative number of people entering the station by AFC during t-1 and t; NShiftin represents the cumulative number of people entering the station by transfer during t-1 and t; NRest represents the number of people staying on the platform; Non represents the number of people getting on the train, and t-1 represents the time of the previous moment in the timetable; NUp represents the number of people on the platform who expect to go up; NDown represents the number of people on the platform who expect to go down, and NOD represents the number of people on the platform who expect to take the train to the destination station j; The train section passenger flow data calculation module is used to calculate the section passenger flow data of train k in section (i) at time t, and the calculation is as follows: N Train (k,t)=N Train (k,t -1 )–N off (k,i,t)+N on (k,i,t) N TrainD (k,j,t)=N TrainD (k,j,t -1 )+(N on (k,i,t)×R(i,j,t)) N off (k,i,t)=N TrainD (k,i,t -1 ) Where N Train Indicates the number of passengers on the train section; N off Indicates the number of people getting off the bus; N on Indicates the number of people on board; N TrainD It represents the number of passengers going to destination j in the train section; It also includes a dynamic self-checking and self-correction module for the model. The number of people getting off the train after it arrives at station i at time t should be equal to the number of passengers leaving the station i by AFC after a period of time at time t. The difference between the two numbers of people is calculated and recalculated according to the model to dynamically correct the number of cross-sectional passenger flow at the station and train and the number of each proportion. At the terminal station of each train, the number of cross-sectional passenger flow of the train should be equal to the number of passengers leaving the station by AFC. The difference between the two numbers of people is calculated and recalculated according to the model to dynamically correct the number of passengers leaving the station and subsequent trains and the number of each proportion. At the transfer station, the number of people at the transfer exit should be equal to the number of people getting off the train minus the number of passengers leaving the station by AFC after a certain period of time. The difference between the two numbers of people is calculated and recalculated according to the model to dynamically correct the number of passengers leaving the station, train and transfer passengers and the number of each proportion.
2. The short-term passenger flow prediction dynamic device based on AFC data according to claim 1 is characterized by: The train has a full load quota. When the train is full, it cannot meet the expectations of all passengers waiting on the platform. For the downlink, the number of people expected to board is the number of downlink passengers calculated on the platform. N Expon (i,t)=N Down (i,t) First calculate the judgment conditions, and then calculate the actual number of people on the bus based on the conditions: N space (k,t)=N limit –(N Train (k,t -1 )–N off (k,i,t)) J con =N space (k,t)–N Expon (i,t) If J con ≥0,N on (k, i, t) = N Expon (i, t) If J con <0,N on (k, i, t) = N space (k, t) Where N Expon Indicates passengers who wish to board the bus at the platform; N space Indicates the passenger space available on the train; N limit Indicates the train's full passenger quota; J con Indicates the judgment condition.
3. The short-term passenger flow prediction dynamic device based on AFC data according to claim 1 is characterized by: For transfer passengers, if there are multiple transfer routes, the shortest route will be used for calculation. Suppose the passenger goes from a→b→c, which means the passenger transfers from station a to station c via station b. In this line, the passenger is classified as a passenger with OD a→b and gets off at station b at time t. In the transfer line, the passenger is classified as a passenger who enters station b at time t and whose OD is b→c. According to the formula N off (k, i, t) = N TrainD (k,i,t -1 ) calculate the number of passengers transferring at station b, Where c is all the stations that transfer to other lines via station b: N shift (k,b,t)=∑ c NTrainD(k,c,t-1) Where Nshift represents the number of transfer passengers, and NTrainD represents the number of passengers going to destination c other than the line in the train section.
4. The short-term passenger flow prediction dynamic device based on AFC data according to claim 1 is characterized by: For each train at the starting station, the number of passengers in the train section is equal to the number of passengers on the platform, NTrainD(k, j, t-1)=0.
5. The short-term passenger flow prediction dynamic device based on AFC data according to claim 1 is characterized by: AFC transaction data includes ticket card number, entry number, entry time, exit number, and exit time.
