Subway network section passenger flow calculation method based on multi-dimensional data space-time coupling
Through the method of multi-dimensional data spatio-temporal coupling, the subway network is simplified and the passenger route-train matching algorithm is constructed, which solves the problems of computational complexity and low accuracy of passenger flow estimation in the subway network in the existing technology, and realizes real-time passenger flow management of large-scale subway networks. and resource optimization.
Patent Information
- Application Number
- CN202410990069.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-29
AI Technical Summary
Existing subway network passenger flow estimation methods are complex in calculation and low in accuracy, and cannot meet the real-time needs of large-scale subway networks. Especially during peak hours, passenger flow distribution cannot be accurately obtained, resulting in resource waste and safety hazards.
Using a subway network cross-section passenger flow estimation method based on multi-dimensional data spatio-temporal coupling, by simplifying the subway network, a passenger path-train matching algorithm is constructed to calculate the cross-section passenger flow at non-transfer and transfer stations, and combined with AFC data and train timetables, the passenger path is realized spatiotemporal trajectory matching.
It improves the accuracy and calculation efficiency of passenger flow estimation, can update passenger flow data at non-transfer stations and transfer stations in real time, supports refined operation management of large-scale subway networks, and reduces computational complexity and resource waste.
Smart Images

Figure CN118864211A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of passenger flow estimation methods, and in particular to a subway network section passenger flow estimation method based on multi-dimensional data spatiotemporal coupling. Background Art
[0002] The subway system has developed into a networked system with multiple lines intersecting, and its passenger flow has increased dramatically. Large-scale passenger flow during peak hours or special periods will put tremendous pressure on the system's transportation capacity, which may lead to safety problems such as passenger delays and congestion on the platform. However, the smaller passenger flow during off-peak hours will lead to excess transportation capacity and waste of resources. Therefore, it is of great significance to accurately obtain the passenger flow of the subway network section and dynamically grasp the temporal and spatial distribution of the network passenger flow for the networked and refined operation and management of the subway system. The current subway network passenger flow estimation method mainly adopts the traffic network flow allocation technology, which is based on the passenger path selection model and the OD data between stations for calculation. This method is used for large-scale subway networks and has the defects of high computational complexity and low computational accuracy.
[0003] In the existing methods, on the one hand, it is necessary to fit the relevant parameters of passenger path selection through questionnaire surveys, which not only takes time and labor costs, but also makes it difficult to ensure the validity of the sample; on the other hand, as the network scale increases, the computational efficiency of the multi-path search algorithm for the entire network will also be greatly reduced due to its high complexity, and it cannot meet the real-time requirements of network section passenger flow calculation.
[0004] At the same time, with the development of information technology, the subway system has generated a variety of massive data during operation, including AFC card swiping data, subway line network data, train operation data, etc. The calculation method based on big data analysis provides new support conditions for subway network passenger flow estimation. However, under the subway one-ticket system and seamless transfer mode, it is impossible to obtain passenger routes and train information through single data analysis, and it is impossible to achieve accurate calculation of network passenger flow.
[0005] The purpose of the present invention is to overcome the shortcomings of existing technologies and methods, and to provide a subway section passenger flow estimation method based on multi-dimensional data spatiotemporal coupling for large-scale subway networks, which can greatly improve the accuracy and computational efficiency of large-scale subway network section passenger flow estimation. Summary of the invention
[0006] The present invention aims to provide a method for estimating passenger flow of subway network sections based on spatiotemporal coupling of multi-dimensional data, which solves the problem that the existing methods cannot achieve accurate calculation of network passenger flow.
[0007] In order to achieve the above object, the technical solution of the present invention is as follows: a method for estimating passenger flow of a subway network section based on multi-dimensional data spatiotemporal coupling, comprising the following steps:
[0008] S1. Calculate the cross-sectional passenger flow at non-transfer stations;
[0009] S2. Passenger flow path-train matching method for transfer:
[0010] S2.1. Simplify the subway network;
[0011] S2.2, search for the shortest OD path of the station based on the simplified subway network;
[0012] S2.3, search for effective station OD paths based on the simplified subway network;
[0013] S2.4, generate effective OD paths of stations in the subway network;
[0014] S2.5, construct a passenger route-train matching algorithm with multi-dimensional data spatiotemporal coupling;
[0015] S3. Estimate the cross-sectional passenger flow at the transfer station.
[0016] Furthermore, the specific method of step S1 is as follows:
[0017] S1.1. Construct the line train number set J, line station set S, and train departure time set Stranded Passenger Set initialization
[0018] S1.2. According to the line train timetable data, distinguish whether the line is in the upward direction or the downward direction. At the same time, according to the station number relationship of entry and exit, filter out the passenger card swiping records in the upward direction and the downward direction;
[0019] S1.3, traverse the line train number set J, set j = 1;
[0020] S1.4, read j, traverse the line site set S in the line, and set s = 1;
[0021] S1.5. Read s and construct a passenger entry card swiping time window between the current train number j and the current station s. According to the AFC passenger entry card swiping time and passenger entry card swiping time window in step S1.2, the train can be selected to carry passengers and the distribution of passenger destinations is counted. Determine whether the current station s is the last station in the corresponding direction of the line. If so, execute step S1.7; otherwise, execute step S1.6;
[0022] S1.6, let s=s+1, execute step S1.5;
[0023] S1.7, store the results in dictionary form;
[0024] S1.8. Based on the passenger destination distribution stored in step S1.7, the number of inbound and outbound passenger flows that can be carried at each station of line number j is counted according to the inbound and outbound stations. The inbound passenger flow at station s is equal to the sum of the OD passenger flows that enter from station s and exit from stations in the line station set S; the outbound passenger flow at station s is equal to the sum of the OD passenger flows that enter from stations in the line station set S and exit from station s. The specific calculation formula is as follows:
[0025]
[0026] S1.9. Calculate the real-time cross-sectional passenger flow V of train j l,s,j (s=1, 2, 3...):
[0027] V l,s,j =V l,s-1,j -DF l,s,j +AF l,s,j (V l,s,j ≤C j ) (3)
[0028] If V l,s,j <C l,j , then record the current passenger flow V of the section l,s,j , and set j=j+1, and execute step S1.2; otherwise, execute step S1.10;
[0029] S1.10. Calculate the walking time of passengers of the previous j-1 trains at each station based on the departure time of the previous j-1 trains at each station, and calculate the average walking time of passengers at each station.
[0030] S1.11, traverse the line station set S in the line, set s = 1;
[0031] S1.12, read s, and construct the entry card swiping time window between the current train number j and the current station s Departure card swiping time window Filter passengers whose entry and exit card swiping time windows meet the current train's entry and exit card swiping time windows at the corresponding stations:
[0032]
[0033] Count the number of passengers entering the station AF l,s,j DF l,s,j , among which, the inbound volume AF l,s,j is the number of all passengers in the corresponding station entry card swiping time window, and the exit volume DF l,s,j The number of all passengers in the corresponding station exit card swiping time window;
[0034] S1.13. Order renew set;
[0035] S1.14. Calculate the real-time cross-sectional passenger flow V of train j at station s according to the following formula l,s,j :
[0036] V l,s,j =V l,s-i,j -DF l,s,j +AF l,s,j (V l,s,j ≤C j ) (6)
[0037] If V l,s,j <C l,j , then record the current section passenger flow V l,s,j , let s=s+1, if V l,s,j >=C l,j , then the actual number of passengers entering the station is calculated according to the formula, and the train section passenger flow, passenger entry volume, passenger retention volume and platform retention rate are calculated:
[0038] V l,s,j =Cj (7)
[0039] AF′ l,s,j =C j -V l,s-1,j +DF l,s,j (8)
[0040]
[0041] make
[0042] S1.15. Determine whether the current station s is the last station in the direction of the line. If so, execute step S1.14; otherwise, set s=s+1 and execute step S1.12;
[0043] S1.16. Determine whether the current train number j is the last train number calculated for the line. If so, output the cross-sectional passenger flow and end this calculation; otherwise, set j=j+1 and execute step S1.11.
[0044] Furthermore, the method of step S2.1 is as follows:
[0045] S2.1.1. Define the subway network as G(V, E), where V is a node set, V = {v1, v2, v3, ..., v n ] represents each site; E is a directed edge set, E = {E1, E2, E3, ..., E n}、E i ={e 1i, e 2i , e 3i , ..., e ni} represents the segment connecting adjacent sites, e ij =(v i , v j ), represents the segment from site i to site j;
[0046] S2.1.2 The simplified subway network is based on lines. The lines in the network are regarded as nodes, and the transfer relationships between lines are regarded as connections. The simplified subway network is defined as G(L′, E′), where L′={l1, l2, l3, ..., l n} is a set of lines; E′={E1,E2,E3,...,E n}、E i ={e 1i , e 2i , e 3i , ..., e ni} is the set of transfer relations between lines, e ij =(l i , l j ) represents the slave line l i To j If there is a transfer, then e ij =1, otherwise e ij =∞.
[0047] Furthermore, the method of step S2.2 is as follows:
[0048] S2.2.1. Initialize the network node set L′={l1, l2, l3, ..., l n}, the node set S = {} storing the shortest path and the uncalculated node set Q = {l1, l2, l3, ..., l n ], where Q+S=L′; initialize the dist[n] array storing the shortest distance, where dist[0]=0, dist[n] is the distance from the starting node to the node l n The shortest distance;
[0049] S2.2.2. Loop through the route number l of each passenger's entry point in the AFC data i , will l i Add to the node set S, let S = {l i}, dist[0] = 0, update the node set Q = L′-S; calculate all nodes in Q to the starting node l i The shortest distance dist[k], dist[k] = w(i, k);
[0050] S2.2.3. Find the node l with the minimum shortest distance from all nodes in Q to the starting node. j , will l j Add to the node set S, that is, S = S + {l j}, update the node set Q = L′-S;
[0051] S2.2.4. Calculate the distance from all nodes in Q to the departure node l i The shortest distance dist[k′], dist[k′]=dist[j]+w(j,k), if dist[k′]<djst[k], then update dist[k]=dist[k′];
[0052] S2.2.5. Repeat steps S2.2.3 and S2.2.4 until Q = {} and S = L′; save the shortest path from the starting node to the remaining nodes;
[0053] S2.2.6. Read the line number of the exit station in the passenger's travel record. n , get dist[n] and the path corresponding to dist[n], and save the shortest path information of the record;
[0054] S2.2.7. Check whether all AFC data has been read. If so, end the search. Otherwise, execute step S2.2.2.
[0055] Furthermore, the specific method of step S2.3 is as follows:
[0056] S2.3.1. Initialize the storage offset node list A, let Store the alternative path set B, Store the set C of valid paths,
[0057] S2.3.2. Read the passenger entry and exit information, extract the entry and exit line number, use the station 0D shortest path algorithm based on the simplified subway network to obtain the path L, add L to the set C, and add the node l of l i (i=1,2,3…n) are added to list A, and k=1.
[0058] S2.3.3, traverse the offset nodes and read l i , judge l i Is it the last element in the list? If so, execute step S2.3.5; otherwise, execute step S2.3.4.
[0059] S2.3.4, delete l one by one i To i+1 The connecting edge is obtained by using the shortest path algorithm, and the starting node is l i, the end node is l n The shortest path of
[0060] S2.3.5, connection path (l1-l i ) and (l i -l n ), put the path into the candidate path set, and calculate the time cost on the path,
[0061] S2.3.6. Find the path with the minimum impedance among the candidate paths, clear list A, add the path to set C, add the nodes of the path to list A, and set k = k + 1.
[0062] S2.3.7. Determine whether k is less than K. If so, execute step S2.3.3; otherwise, execute step S2.3.7.
[0063] S2.3.8. Extract the valid path of set C and determine whether all AFC data are complete. If so, the valid path search ends; otherwise, execute step S2.3.2.
[0064] Furthermore, the specific method of step S2.4 is as follows:
[0065] S2.4.1. Initialization: Store a set A of physical valid paths based on site names, A = {S1, S2, ..., S k}, The transfer station dictionary B included in the line, B = {l1: {c1, c2, ..., c k}, l2: {c1, c2, ..., c k}, l k : {c1, c2, ..., c k}}, the station number dictionary C contained in the transfer station name,
[0066]
[0067] S2.4.2. Read the passenger entry and exit station number, read the valid physical path set P based on the line level, traverse the valid paths in the valid path set, set i = 1,
[0068] S2.4.3. Read the valid physical path p i , traverse p i The line number in, let k = 1,
[0069] S2.4.4, read l k , calculate and obtain l through the transfer station dictionary B k With l k+1 The intersection sites [c1, c2, ...], excluding the entry and exit site names contained in the intersection,
[0070] S2.4.5, judgment l k Is it p i If yes, execute step S2.4.6; otherwise, let k=k+1 and execute step S2.4.4.
[0071] S2.4.6, respectively (l k , l k+1 The intersection site list formed by (k = 1, 2, 3, ...) is combined with the passenger's starting site number to obtain a valid physical path p' based on the site name i p i ′=[s s , c1, c2, ..., s e ],
[0072] S2.4.7. Traverse the line numbers in the valid path pi again, let j = 1,
[0073] S2.4.8, read l j , traverse the valid path p i ′, let s = 0,
[0074] S2.4.9. Read p′ i [s], if the site is a number, add it to S i ; If the site is a Chinese site, execute step S2.4.10,
[0075] S2.4.10. Obtain the station number of the station according to the transfer station station number dictionary C, and replace it with l j Add the site number starting with S i , judge p′ i [s] whether it is p′ i If it is the last site in, then execute step S2.4.11; otherwise, let s = s + 1 and execute step S2.4.9.
[0076] S2.4.11, judgement l j Is it p i If yes, execute step S2.4.12; otherwise, let j=j+1 and execute step S2.4.8.
[0077] S2.4.12. Determine p i Is it the last element in P? If so, execute step S2.4.13; otherwise, let i=i+1 and execute step S2.4.3.
[0078] S2.4.13. Output the effective physical path A of the passenger based on the station, and determine whether all AFC data have been calculated. If so, end the generation of the effective path; otherwise, execute step S2.4.2.
[0079] Furthermore, the specific method of step S2.5 is as follows:
[0080] S2.5.1. Data preparation: Extract the train schedule information for each line and direction from the train schedule data. If it is the upward direction, select the station number in descending order and the train departure time in ascending order; if it is the downward direction, select the station number information in ascending order and the train departure time in ascending order;
[0081] S2.5.2, let i = 1, and traverse the passengers at station 0D in the subway network G(V, E);
[0082] S2.5.3. Read the ith passenger, obtain the card swiping time of the ith passenger entering and exiting the station, set n = 1, and obtain the valid physical path set A i , traverse A i ;
[0083] S2.5.4. Read Traversal The number in, let k = 0;
[0084] S2.5.5. Read judge and Are the first two digits of the numbers the same? If they are the same, record the current line 1 with the same number and execute step S2.5.6; otherwise, obtain and Transfer walking time Execute step S2.5.11;
[0085] S2.5.6 If Record the current direction as up and read the train timetable with line 1 as the current direction up; otherwise, record the current direction as down and read the train timetable with line 1 as the current direction down;
[0086] S2.5.7. According to the train timetable opened in step S2.5.6, obtain the timetable of each train at Departure time set of the station Traversal Let m = 1;
[0087] S2.5.8, Read like Then execute step S2.5.9; otherwise, record the current train number m and the current passenger departure time. Execute step S2.5.10;
[0088] S2.5.9, let m=m+1, and execute step S2.5.8;
[0089] S2.5.10. Judgment Is it the last station number in the list? If not, let k = k + 1 and get the train number m. Departure time of the station Execute step S2.5.5; otherwise, obtain the train number m in Departure time of the station Calculate the estimated departure time of the route using the following formula: Execute step S2.5.12;
[0090]
[0091] S2.5.11. Obtain the time when the passenger arrives at the transfer station according to the following formula make k=k+1, execute step S2.5.5;
[0092]
[0093] S2.5.12 If Then the space-time path is invalid, and step S2.5.13 is executed; otherwise, the space-time path is valid, and the path is saved and step S2.5.13 is executed;
[0094] S2.5.13. Judgment Is it A i If the last element is , then output the space-time path of the ith passenger and the train number and departure time of the passenger at each station, and execute step S2.5.14; otherwise, set n = n + 1 and execute step S2.5.4;
[0095] S2.5.14. Determine whether i is the last passenger. If so, output the time-space paths of all passengers and the train numbers and departure times of the passengers at each station, and the algorithm ends; otherwise, set i=i+1 and execute step S2.5.3.
[0096] Furthermore, the specific method of step S3 is as follows:
[0097] S3.1, determining the calculated target route and train direction;
[0098] S3.2. Construct the line train number set J, line station set S, line intersection set V, and train departure time set Stranded Passenger Set make
[0099] S3.3, extract the set of transfer passengers through the transfer passenger flow path-train matching method in step S2, determine the subway line used by the passengers, obtain the transfer passenger flow in the calculated direction, replace the passenger's entry and exit stations with the transfer station stations passing through the target line in the space-time path, and retain the train number j that the passenger takes through the target line; according to the entry and exit station number relationship, filter the non-transfer passenger flow in the calculated direction of the target line, and set i=1;
[0100] S3.4, select passenger i;
[0101] S3.5, determine whether passenger i is a transfer passenger flow, if so, set i=i+1 and execute step S3.4; otherwise, execute step S3.6;
[0102] S3.6. Determine and record the passenger's travel range based on the passenger's entry and exit stations According to the following formula, we can obtain the route v that passengers can choose, and obtain the departure time set of each train number at the entry station according to the route v:
[0103]
[0104] Filter out the train number j that the passenger takes, record the departure time of the train arriving at station D, and calculate the passenger's walking time out of the station:
[0105]
[0106] V l,s,j ≤C l,j (3-5)
[0107] S3.7, determine whether passenger i is the last passenger currently calculated, if so, execute step S3.8; otherwise, set i=i+1 and execute step S3.5;
[0108] S3.8, traverse the line intersection set V, set v = 1;
[0109] S3.9. Select read route v and obtain the train number set J under route v. v , let j = 1;
[0110] S3.10, read j v , filter out the train number j v For all passengers, count the distribution of passengers on this train according to their entry and exit stations, and store the results in a dictionary form;
[0111] S3.11. Count the passenger flow of the train at each station. The passenger flow of the train is equal to the sum of the passenger flow of the station set Sv when the train enters the station s and the station set Sv when the train leaves the station. The passenger flow of the train leaves the station is equal to the sum of the passenger flow of the station set Sv when the train leaves the station s and the station set Sv. The calculation formula is as follows:
[0112]
[0113] S3.12. Calculate j according to the following formula v Real-time passenger flow of trains
[0114] V l,s,j =V l,s-1,j -DF l,s,j +AF l,s,j (V l,s,j ≤C j ) (3-8)
[0115] like The current passenger flow of the section is recorded Execute step S3.13; otherwise, record the train number j at which the current route starts to be stranded v , execute step S3.14;
[0116] S3.13, judgement j v Is it the last train trip calculated for this route? If yes, execute step S3.14; if not, j=j+1, execute step 12;
[0117] S3.14, determine whether the intersection v is the last intersection of the current line, if so, execute step S3.17, if not, v=v+1, execute step S3.9;
[0118] S3.15. Filter out the first stranded train number j according to the train schedule, filter out the AFC data of all previous train numbers, obtain the exit walking time of non-transfer passengers whose exit station is s (s = 1, 2, 3, ...), and calculate the average walking time
[0119] S3.16, traverse the station site set S of the target line, set s = 1;
[0120] S3.17, read s, obtain the remaining train number set J after the stranded train number j passing the current station s s , train number j, get the departure time set of the current station s Create a dictionary dic for the passenger flow distribution of stranded passengers in their travel intervals z ,
[0121]
[0122] S3.18, filter out train number j s , all passengers entering the station at station s, and count the number of passengers entering the station AF l,s,j At the same time, according to the passenger's travel interval, the number of passengers entering the station in each travel interval under the station is counted, and a dictionary dic of travel intervals and passenger entry volume is created. Judge DIC z Are all 0? If yes, go to step S3.20; if not, go to step S3.19;
[0123] S3.19. Get j s The intersection v where the train is located is selected according to the travel interval dictionary dic v Get the travel range that the train can carry passengers Update s The dictionary dic of travel intervals and passenger entry volume, make Update transfer and stay dictionary dic z , update the number of passengers entering the station AF l,j,s ;
[0124] S3.20, construct a model based on the current train number j s , the departure card swiping time window between the current station s, and the non-transfer passengers who meet the departure card swiping time window of the current train are selected according to the following formula, and the non-transfer passengers who meet the departure card swiping time window of the current train are selected according to the train number j s , current station s, filter out the transfer passengers leaving the current station, and count the number of passengers leaving the station DF l,s,j , of which the outbound volume is AF l,s,j The total number of passengers in the exit card swiping time window of the station plus the number of transfer passengers leaving the station on this train;
[0125]
[0126] S3.21, calculate j according to the following formula s Real-time cross-sectional passenger flow Vl,si of the train at station s:
[0127] V l,s,j =V l,s-1,j -DF l,s,j +AF l,s,j (V l,s,j ≤C j ) (3-8)
[0128] If V l,s,j <C l,j , then record the current passenger flow V of the section l,s,j , execute step S3.24; otherwise, record the current passenger flow C of the section l,s,j, calculate the actual number of passengers entering the station and the number of passengers stranded on the platform according to the following formula: Platform retention rate P l,s,j , Number of people stranded in the area Dictionary dic1 of travel intervals and number of stranded passengers entering the station, Update the passenger flow distribution dictionary DIC for stranded passengers' travel intervals z ,
[0129]
[0130] AF′ l,s,j =C j -V l,s-1,j +DF l,s,j (3-11)
[0131]
[0132]
[0133] S3.22, determine the train number j at the current station s Is it the last train calculated for this direction at this station? If so, execute step S3.23; otherwise, let j=j+1 and execute step S3.18;
[0134] S3.23. Determine whether the current station is the last station calculated for the line. If so, output the cross-sectional passenger flow of each train, the number of stranded passengers at each platform of each train, and the stranded rate, and end the passenger flow calculation; otherwise, set s=s+1 and execute step S3.17.
[0135] Compared with the prior art, this solution has the following beneficial effects:
[0136] 1. The walking time parameters of passengers obtained in this scheme based on AFC data have a larger number of samples, are not affected by the subjectivity of passengers, and take into account the differences in the walking time of passengers in different time periods. The walking time parameters obtained are more accurate.
[0137] 2. This solution is based on a simplified subway network path search algorithm that can reduce the search for invalid paths in the path, greatly reduce the search time, have higher search efficiency, and support parallel computing. Therefore, the algorithm can be adapted to large-scale road networks and the calculation of massive data.
[0138] 3. The passenger path-train matching algorithm based on multi-dimensional data spatiotemporal coupling can obtain the spatiotemporal relationship between passengers, lines and trains in the subway network, eliminate erroneous paths, and more accurately calculate the spatiotemporal trajectory of passengers.
[0139] 4. The subway network cross-section passenger flow estimation method of this scheme can match passengers with train numbers on the line, and can accurately estimate indicators such as platform passenger flow retention rate, train load rate and train cross-section passenger flow at transfer stations and non-transfer stations. The algorithm has a high degree of parallelization, and the calculation efficiency and accuracy are significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0140] Figure 1 is a flow chart of passenger flow estimation for non-transfer station sections in this embodiment;
[0141] Figure 2 This is a flow chart of the shortest path algorithm based on a simplified subway network in this embodiment;
[0142] Figure 3 is a flow chart of searching for effective site OD paths based on a simplified subway network in this embodiment;
[0143] Figure 4 is a flow chart of generating effective OD paths of stations in a subway network in this embodiment;
[0144] Figure 5 is a flow chart of the space-time path selection algorithm for passengers in this embodiment;
[0145] Figure 6 is a flow chart for calculating the average walking time in the method for estimating the cross-sectional passenger flow of a transfer station in this embodiment;
[0146] Figure 7 It is a calculation flow chart of the method for estimating the cross-sectional passenger flow of a transfer station in this embodiment. DETAILED DESCRIPTION
[0147] The present invention is further described in detail below through specific embodiments:
[0148] Example
[0149] The parameters involved in this embodiment are described as follows:
[0150] J: train number set, 1, 2, 3, …j∈J;
[0151] S: line site set, 1, 2, 3, …k, …, s∈S;
[0152] L: Line set, 1, 2, 3, ..., 1∈L;
[0153] The departure time set of line 1;
[0154] The set of stranded passengers at station 1 of line;
[0155] The departure time of the jth train at the sth station on line 1;
[0156] The time when passenger i swipes his card to exit the station at the sth station in route 1;
[0157] The time when passenger i swipes his card to enter the station at the sth station in route 1;
[0158] The walking time for passenger i to enter the sth station in route 1;
[0159] Average walking time for passengers entering the station at station s;
[0160] Average walking time for passengers leaving station s;
[0161] AF l,s,j : The number of trains entering the station at station s in line 1;
[0162] The OD quantity of the jth train from station k to station s in line 1;
[0163] DF l,s,j : The number of departures of the jth train at the sth station on line 1;
[0164] C l,j : The capacity of the j-th train on line 1;
[0165] V l,s,j : The cross-sectional passenger flow of the j-th train at the s-th station on line 1;
[0166] P l,s,j : The platform retention rate of the j-th train at the s-th station on line 1;
[0167] s s : Passenger entry station number;
[0168] s e : Passenger exit station number;
[0169] l k : Line number (k=1, 2, 3, ...);
[0170] c k : Transfer station name (k=1, 2, 3, ...);
[0171] Transfer station number (i=1, 2, 3, ...);
[0172] p k: The effective physical path of the passenger based on the line (k = 1, 2, 3, ...), p k ={l1,l2,...,l i};
[0173] P: The valid physical path set based on the line, P = {p1, p2, ..., p k};
[0174] S k : An array of valid physical paths for passengers based on their stop numbers.
[0175] A: The valid physical path set of passengers based on the station number, A = {S1, S2, ... S k};
[0176] i: passenger number and name;
[0177] The time when the passenger swipes his card to enter the station;
[0178] The time when the passenger swipes his card to exit the station;
[0179] Calculate the time when passenger i swipes his card to exit the station;
[0180] Passenger i’s walking time to the station;
[0181] Passenger i’s exit walking time;
[0182] The time when passenger i enters the station and arrives at the platform;
[0183] The time when passenger i enters and leaves the platform;
[0184] The departure time of the Jth trip of Line 1 at station c;
[0185] The walking time for passenger i to transfer from line 1 to line f at transfer station c;
[0186] The departure time of passenger i at station c on line 1 before transferring;
[0187] The time it takes for passenger i to arrive at platform c of line f after transferring;
[0188] The waiting time of passenger i at platform c on line f;
[0189] The departure time of passenger i at station c on line f after the transfer;
[0190] A: valid physical path set for passenger i;
[0191] r e : 0, 1 variables, 0 represents invalid path, 1 represents valid path;
[0192] V: set of intersections, 1, 2, 3, ..., v∈V
[0193] V J : Route train number set;
[0194] Z L,S : Turnaround station set;
[0195] The station interval set of line 1;
[0196] The travel interval set of route 1;
[0197] z l,s : The turnaround station in line 1, the single intersection is 2, the hero intersection is 3, ...;
[0198] The station interval in route 1 consists of the adjacent turnaround station as the starting point and the other stations as intermediate stations;
[0199] The method for estimating passenger flow of subway network sections based on multi-dimensional data spatiotemporal coupling includes the following steps:
[0200] S1. Calculate the cross-sectional passenger flow at non-transfer stations: Based on the passenger's card swiping time and the average walking time to enter the station, combined with the critical walking time of the train number, the nearest train number that the passenger will take is calculated. The cross-sectional passenger flow of trains at non-transfer stations is updated in real time through train capacity and passenger 0D information, realizing the calculation of cross-sectional passenger flow at non-transfer stations in the network.
[0201] like Figure 1 As shown, the specific method of step S1 is as follows:
[0202] S1.1. Construct the line train number set J, line station set S, and train departure time set Stranded Passenger Set initialization
[0203] S1.2. According to the line train timetable data, distinguish whether the line is in the upward direction or the downward direction. At the same time, according to the station number relationship of entry and exit, filter out the passenger card swiping records in the upward direction and the downward direction;
[0204] S1.3, traverse the line train number set J, set j = 1;
[0205] S1.4, read j, traverse the line site set S in the line, and set s = 1;
[0206] S1.5. Read s and construct a passenger entry card swiping time window between the current train number j and the current station s. According to the AFC passenger entry card swiping time and passenger entry card swiping time window in step S1.2, select the passengers that can be carried by this train and count the distribution of passengers' destinations Determine whether the current station s is the last station in the corresponding direction of the line. If so, execute step S1.7; otherwise, execute step S1.6;
[0207] S1.6, let s=s+1, execute step S1.5;
[0208] S1.7. Store the results in a dictionary format: {Line No. j: {(Line No. j, Entry Station s): {Exit Station s+1: Number of People Exit station s+2: Number of people ..., exit station s+n: number of people }……}};
[0209] S1.8. Based on the passenger destination distribution stored in step S1.7, the number of inbound and outbound passenger flows that can be carried at each station of line train number j is counted according to the inbound and outbound stations. The inbound passenger flow at station s is equal to the sum of the 0D passenger flows that enter from station s and exit from stations in the line station set S; the outbound passenger flow at station s is equal to the sum of the 0D passenger flows that enter from stations in the line station set S and exit from station s. The specific calculation formula is as follows:
[0210]
[0211] S1.9. Calculate the real-time cross-sectional passenger flow V of train j l,s,j (s=1, 2, 3...):
[0212] V l,s,j =V l,s-1,j -DF l,s,j +AF l,s,j (V l,s,j ≤C j ) (3)
[0213] Judge V l,s,j With train capacity C l,j If V l,s,j <C l,j , then record the current passenger flow V of the section l,s,j, and set j=j+1, and execute step S1.2; otherwise, execute step S1.10;
[0214] S1.10. Calculate the walking time of passengers of the previous j-1 trains at each station based on the departure time of the previous j-1 trains at each station, and calculate the average walking time of passengers at each station.
[0215] S1.11, traverse the line station set S in the line, set s = 1;
[0216] S1.12, read s, and construct the entry card swiping time window between the current train number j and the current station s Departure card swiping time window Filter passengers whose entry and exit card swiping time windows meet the current train's entry and exit card swiping time windows at the corresponding stations:
[0217]
[0218] Count the number of passengers entering the station AF l,s,j DF l,s,j , among which, the inbound volume AF l,s,j is the number of all passengers in the corresponding station entry card swiping time window, and the exit volume DF l,s,j The number of all passengers in the corresponding station exit card swiping time window;
[0219] S1.13. Order renew set;
[0220] S1.14. Calculate the real-time cross-sectional passenger flow V of train j at station s according to the following formula l,s,j :
[0221] V l,s,j =V l,s-1,j -DF l,s,j +AF l,s,j (V l,s,j ≤C j ) (6)
[0222] Judge V l,s,j With train capacity C l,j If V l,s,j <C l,j , then record the current section passenger flow V l,s,j , let s=s+1, if V l,s,j >=C l,j , then the actual number of passengers entering the station is calculated according to the formula, and the train section passenger flow, passenger entry volume, passenger retention volume and platform retention rate are calculated:
[0223] V l,s,j =Cj (7)
[0224] AF′ l,s,j =C j -V l,s-1,j +DF l,s,j (8)
[0225]
[0226]
[0227] make
[0228] S1.15. Determine whether the current station s is the last station in the direction of the line. If so, execute step S1.14; otherwise, set s=s+1 and execute step S1.12;
[0229] S1.16. Determine whether the current train number j is the last train number calculated for the line. If so, output the cross-sectional passenger flow and end this calculation; otherwise, set j=j+1 and execute step S1.11.
[0230] S2, transfer passenger flow path-train matching method: The principle is: first, simplify the subway network; then, by constructing a passenger path search algorithm with transfer number restrictions, filter the effective path set for passengers to travel; finally, match the lines and trains taken by transfer passengers. The specific method of step S2 is as follows:
[0231] S2.1. Simplify the subway network, such as Figure 2 As shown, the specific method is as follows:
[0232] S2.1.1. Define the subway network as G(V, E), where V is a node set, V = {v1, v2, v3, ..., v n} represents each site; E is a directed edge set, E={E1,E2,E3,...,E n}、E i ={e 1i , e 2i , e 3i , ..., e ni} represents the segment connecting adjacent sites, e ii =(v i , v j ), represents the segment from site i to site j;
[0233] S2.1.2 The simplified subway network is based on lines. The lines in the network are regarded as nodes, and the transfer relationship between lines is regarded as a connection. That is, if there is a transfer station between lines, the nodes are connected to each other until the topological relationship of all lines is completed. The simplified subway network is defined as G(L′,E′), where L′={l1,l2,l3,...,l n ) is a set of lines; E′={E1,E2,E3,...,E n ]、E i ={e 1i , e 2i , e 3i , ..., e ni} is the set of transfer relations between lines, e ij =(l i , l j ) represents the slave line l i To j If there is a transfer, then e ij =1, otherwise e ij =∞.
[0234] S2.2. Search for the shortest path of the station 0D based on the simplified subway network. The specific method is as follows:
[0235] S2.2.1. Initialize the network node set L′={l1, l2, l3, ..., l n}, the node set S = {} storing the shortest path and the uncalculated node set Q = {l1, l2, l3, ..., l n ], where Q+S=L′; initialize the dist[n] array storing the shortest distance, where dist[0]=0, dist[n] is the distance from the starting node to the node l n The shortest distance;
[0236] S2.2.2. Loop through the route number l of each passenger's entry point in the AFC data i , will l i Add to the node set S (since the subway lines are extracted as nodes and the direct transfer relationships between lines are extracted as edges, the node set S is the line station set S), let S = {l i}, dist[0] = 0, update the node set Q = L′-S; calculate all nodes in Q to the starting node l i The shortest distance dist[k], dist[k] = w(i, k);
[0237] S2.2.3. Find the node l with the minimum shortest distance from all nodes in Q to the starting node. j , will l jAdd to the node set S, that is, S = S + {l j}, update the node set Q = L′-S;
[0238] S2.2.4. Calculate the distance from all nodes in Q to the departure node l i The shortest distance dist[k′], dist[k′]=dist[j]+w(j,k), if dist[k′]<dist[k], then update dist[k]=dist[k′];
[0239] S2.2.5. Repeat steps S2.2.3 and S2.2.4 until Q = {} and S = L′; save the shortest path from the starting node to the remaining nodes;
[0240] S2.2.6. Read the line number of the exit station in the passenger's travel record. n , get dist[n] and the path corresponding to dist[n], and save the shortest path information of the record;
[0241] S2.2.7. Check whether all AFC data has been read. If so, end the search. Otherwise, execute step S2.2.2.
[0242] S2.3, search for effective station OD paths based on the simplified subway network, such as Figure 3 As shown, the K short-circuit algorithm is used to search for effective paths between stations 0D in the subway network. The specific steps are as follows:
[0243] S2.3.1. Initialize the storage offset node list A, let Store the alternative path set B, Store the set C of valid paths,
[0244] S2.3.2. Read the passenger entry and exit information, extract the entry and exit line number, use the station 0D shortest path algorithm based on the simplified subway network to obtain the path L, add L to the set C, and add the node l of i (i=1,2,3…n) are added to list A, and k=1.
[0245] S2.3.3, traverse the offset nodes. Read l i , judge l i Is it the last element in the list? If so, execute step S2.3.5; otherwise, execute step S2.3.4.
[0246] S2.3.4, delete l one by one i To i+1 The connecting edge is obtained by using the shortest path algorithm, and the starting node is l i, the end node is l n The shortest path.
[0247] S2.3.5, connection path (l1-l i ) and (l i -l n ), put the path into the candidate path set, and calculate the time cost on the path.
[0248] S2.3.6. Find the path with the minimum impedance among the alternative paths, clear list A, add the path to set C, add the nodes of the path to list A, and set k=k+1.
[0249] S2.3.7. Determine whether k is less than K, where K represents the number of valid paths, a parameter given in advance, usually K=3. If so, execute step S2.3.3; otherwise, execute step S2.3.7.
[0250] S2.3.8. Extract the valid path of set C and determine whether all AFC data are complete. If so, the valid path search ends; otherwise, execute step S2.3.2.
[0251] S2.4. Generate the effective OD path of the station in the subway network, that is, according to the intersection of the transfer stations between the lines, the effective OD path of the station based on the simplified subway network G(L′, E′) can be converted into a physical path represented as a station sequence. Figure 4 As shown, the specific method is as follows:
[0252] S2.4.1. Initialization: Store a set A of physical valid paths based on site names, A = {S1, S2, ..., S k}, The transfer station dictionary B included in the line, B = {l1: {c1, c2, ..., c k}, l2: {c1, c2, ..., c k}, l k : {c1, c2, ..., c k}}, the station number dictionary C contained in the transfer station name,
[0253] S2.4.2. Read the passenger entry and exit station number, read the valid physical path set P based on the line level, traverse the valid paths in the valid path set, and set i=1.
[0254] S2.4.3. Read the valid physical path p i , traverse p i The line number in , let k = 1.
[0255] S2.4.4, read l k, calculate and obtain l through the transfer station dictionary B k With l k+1 The intersection of sites [c1, c2, ...], excluding the entry and exit site names contained in the intersection.
[0256] S2.4.5, judgment l k Is it p i If yes, execute step S2.4.6; otherwise, let k=k+1 and execute step S2.4.4.
[0257] S2.4.6, respectively (l k , l k+1 The intersection site list formed by (k = 1, 2, 3, ...) is combined with the passenger's starting site number to obtain a valid physical path p' based on the site name i , p i ′=[s s , c1, c2, ..., s e ].
[0258] S2.4.7. Traverse the valid path p again i The line number in , let j = 1.
[0259] S2.4.8, read l j , traverse p′ in the valid path i site, let s=0.
[0260] S2.4.9. Read p′ i [s], if the site is a number, add it to S i ; If the site is a Chinese site, execute step S2.4.10.
[0261] S2.4.10. Obtain the station number of the station according to the transfer station station number dictionary C, and replace it with l j Add the site number starting with S i , judge p i Is ′[s] p? i ′, if yes, execute step S2.4.11; otherwise, let s=s+1 and execute step S2.4.9.
[0262] S2.4.11, judgement l j Is it p i If yes, execute step S2.4.12; otherwise, let j=j+1 and execute step S2.4.8.
[0263] S2.4.12. Determine p iIs it the last element in P. If yes, execute step S2.4.13; otherwise, let i=i+1 and execute step S2.4.3.
[0264] S2.4.13. Output the effective physical path A of the passenger based on the station, and determine whether all AFC data have been calculated. If so, end the generation of the effective path; otherwise, execute step S2.4.2.
[0265] S2.5. Construct a multi-dimensional data spatiotemporal coupled passenger path-train matching algorithm: By analyzing AFC passenger card swiping data and train timetable data, combined with the effective path information of OD between stations, basic information such as passenger entry walking time, transfer walking time and exit walking time are statistically obtained. On this basis, the departure time of passengers at each platform is determined, and invalid paths where the departure time of passengers at the last station is greater than the exit card swiping time are excluded. Finally, the passenger path-train matching is achieved. Figure 5 As shown, the specific method is as follows:
[0266] S2.5.1. Data preparation: Extract the train timetable information for each line and direction from the train timetable data. If the line is in the upward direction, select the station number in descending order and the train departure time in ascending order; if the line is in the downward direction, select the station number information in ascending order and the train departure time in ascending order.
[0267] S2.5.2. Let i=1, and traverse the passengers at station 0D in the subway network G(V, E).
[0268] S2.5.3. Read the ith passenger, obtain the card swiping time of the ith passenger entering and exiting the station, set n = 1, and obtain the valid physical path set A i , traverse A i .
[0269] S2.5.4. Read Traversal The number in , let k = 0.
[0270] S2.5.5. Read judge and If the first two digits of the numbers are the same, record the current line 1 with the same number and execute step S2.5.6; otherwise, obtain and Transfer walking time Perform step S2.5.11.
[0271] S2.5.6 If Record that the current direction is up, and read the train timetable with line 1 as the current direction up; otherwise, record that the current direction is down, and read the train timetable with line 1 as the current direction down.
[0272] S2.5.7. According to the train timetable opened in step S2.5.6, obtain the timetable of each train at Departure time set of the station Traversal Let m=1.
[0273] S2.5.8, Read Compare passengers' arrival times at platforms and If Then execute step S2.5.9; otherwise, record the current train number m and the current passenger departure time. Perform step S2.5.10.
[0274] S2.5.9. Let m=m+1 and execute step S2.5.8.
[0275] S2.5.10. Judgment Is it the last station number in the list? If not, let k = k + 1 and get the train number m in Departure time of the station Execute step S2.5.5; otherwise, obtain the train number m in Departure time of the station Calculate the estimated departure time of the route using the following formula: Perform step S2.5.12.
[0276]
[0277] S2.5.11. Obtain the time when the passenger arrives at the transfer station according to the following formula make k=k+1, execute step S2.5.5.
[0278]
[0279] S2.5.12. Compare and estimate the time of leaving the station by swiping the card The actual card swipe time If Then the space-time path is invalid, and step S2.5.13 is executed; otherwise, the space-time path is valid, the path is saved, and step S2.5.13 is executed.
[0280] S2.5.13. Judgment Is it A iIf yes, then output the space-time path of the ith passenger and the train number and departure time of the passenger at each station, and execute step S2.5.14; otherwise, set n = n + 1 and execute step S2.5.4.
[0281] S2.5.14, determine whether i is the last passenger. If yes, output the time-space paths of all passengers and the train numbers and departure times of passengers at each station, and the algorithm ends; otherwise, set i=i+1 and execute step S2.5.3.
[0282] S3. Estimate the cross-sectional passenger flow at transfer stations: First, consider the line train operation plan, and estimate the number of the nearest train that the passenger will take by analyzing the time it takes for passengers to swipe their card at the station, the average walking time at the station, the time it takes to swipe their card at the station, the average walking time at the station, and the train operation plan. Then, based on the train capacity and passenger flow distribution, the passenger train matching algorithm is used to update the cross-sectional passenger flow of the train in real time. Finally, estimate the cross-sectional passenger flow at the transfer station.
[0283] like Figure 6 and Figure 7 As shown, the specific algorithm is as follows:
[0284] S3.1, determining the calculated target route and train direction;
[0285] S3.2. Construct the line train number set J, line station set S, line intersection set V, and train departure time set Stranded Passenger Set make
[0286] S3.3. Through the transfer passenger flow path-train matching method of step S2, extract the transfer passenger set, determine the subway line used by the passengers, and obtain the transfer passenger flow in the calculated direction by statistics. Replace the passenger's entry and exit stations with the transfer station stations passing through the target line in the space-time path, and retain the train number j that the passenger takes through the target line; according to the entry and exit station number relationship, filter the non-transfer passenger flow in the calculated direction of the target line, and let i=1.
[0287] S3.4, select passenger i;
[0288] S3.5, determine whether passenger i is a transfer passenger flow, if so, set i=i+1 and execute step S3.4; otherwise, execute step S3.6;
[0289] S3.6. Determine and record the passenger's travel range based on the passenger's entry and exit stations According to the following formula, we can obtain the route v that passengers can choose, and obtain the departure time set of each train number at the entry station according to the route v:
[0290]
[0291] Filter out the train number j that the passenger takes, record the departure time of the train arriving at station D, and calculate the passenger's walking time out of the station:
[0292]
[0293] S3.7, determine whether passenger i is the last passenger currently calculated, if so, execute step S3.8; otherwise, set i=i+1 and execute step S3.5;
[0294] S3.8, traverse the line intersection set V, set v = 1;
[0295] S3.9. Select read route v and obtain the train number set J under route v. v , let j=1.
[0296] S3.10, read j v , filter out the train number j v All passengers on the train are counted according to their entry and exit stations, and the results are stored in a dictionary format: {line number d v :{(Line No. j v , entry station j v ): {Exit station: s+1 people Exit station s+2: Number of people ..., exit station s+n: number of people }……}}.
[0297] S3.11. Count the passenger flow of the train at each station. The passenger flow of the train is equal to the station of entry (s), and the station of exit (s) is the station set S. v The outbound passenger flow is equal to the outbound station s, and the inbound station is the station set S v The calculation formula is as follows:
[0298]
[0299] S3.12. Calculate j according to the following formula v Real-time passenger flow of trains
[0300] V l,s,j =V l,s-1,j -DF l,s,j +AF l,s,j (V l,s,j ≤C j ) (3-8)
[0301] judge With train capacity C l,v,j If the size between The current passenger flow of the section is recorded Execute step S3.13; otherwise, record the train number j at which the current route starts to be stranded v , execute step S3.14.
[0302] S3.13, judgement j v Is it the last train trip calculated for this route? If so, execute step S3.14; if not, j=j+1, execute step S3.12.
[0303] S3.14. Determine whether the intersection v is the last intersection of the current line. If so, execute step S3.17. If not, v=v+1 and execute step S3.9.
[0304] S3.15. Filter out the first stranded train number j according to the train schedule, filter out the AFC data of all train numbers before j, obtain the exit walking time of non-transfer passengers whose exit station is s (s = 1, 2, 3, ...), and calculate the average walking time
[0305] S3.16. Traverse the station site set S of the target line and set s=1.
[0306] S3.17, read s, obtain the remaining train number set J after the stranded train number j passing the current station s s , train number j, get the departure time set of the current station s Create a dictionary dic for the passenger flow distribution of stranded passengers in their travel intervals z ,
[0307] S3.18, filter out train number j s , all passengers entering the station at station s, and count the number of passengers entering the station AF l,s,j At the same time, according to the passenger's travel interval, the number of passengers entering the station in each travel interval under the station is counted, and a dictionary dic of travel intervals and passenger entry volume is created. Judge DIC z Are both 0? If so, execute step S3.20; if not, execute step S3.19.
[0308] S3.19. Get j s The intersection v where the train is located is selected according to the travel interval dictionary dic v Get the travel range that the train can carry passengers Update s The dictionary dic of travel intervals and passenger entry volume, make Update transfer and stay dictionary dic z , update the number of passengers entering the station AF l,j,s .
[0309] S3.20, construct a model based on the current train number j s , the departure card swiping time window between the current station s, and the non-transfer passengers who meet the departure card swiping time window of the current train are selected according to the following formula, and the non-transfer passengers who meet the departure card swiping time window of the current train are selected according to the train number j s , current station s, filter out the transfer passengers leaving the current station, and count the number of passengers leaving the station DF l,s,j , of which the outbound volume is AF l,s,j It is the total number of passengers who leave the station during the exit card swiping time window plus the number of transfer passengers who leave the station for this train.
[0310]
[0311] S3.21, calculate j according to the following formula s Real-time sectional passenger flow V of train at station s l,s,j :
[0312] V l,s,j =V l,s-1,j -DF l,s,j +AF l,s,j (V l,s,j ≤C j ) (3-8)
[0313] Judge V l,s,j With train capacity C l,j If V l,s,j <C l,j , then record the current passenger flow V of the section l,s,j , execute step S3.24; otherwise, record the current passenger flow C of the section l,s,j , calculate the actual number of passengers entering the station and the number of passengers stranded on the platform according to the following formula: Platform retention rate P l,s,j , Number of people stranded in the area Dictionary dic1 of travel intervals and number of stranded passengers entering the station, Update the passenger flow distribution dictionary DIC for stranded passengers' travel intervals z ,
[0314] AF′ l,s,j =C j -V l,s-1,j +DF l,s,j (3-11)
[0315]
[0316]
[0317] S3.22, determine the train number j at the current station s Is it the last train calculated for this direction at this station? If yes, execute step S3.23; otherwise, let j=j+1 and execute step S3.18.
[0318] S3.23, determine whether the current station is the last station calculated for the line. If so, output the cross-sectional passenger flow of each train, the number of stranded people at each platform of each train, and the stranded rate, and then end the passenger flow calculation; otherwise, set s = s + 1 and execute step S3.17.
[0319] The above are only embodiments of the present invention, and the common knowledge such as the known specific structures and / or characteristics in the scheme are not described in detail here. It should be pointed out that for those skilled in the art, several deformations and improvements can be made without departing from the structure of the present invention, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.
Claims
1. A method for estimating passenger flow in subway network sections based on multi-dimensional data spatiotemporal coupling, characterized by: The steps include: S1. Calculate the cross-sectional passenger flow at non-transfer stations; S2. Passenger flow path-train matching method for transfer: S2.
1. Simplify the subway network; S2.2, search for the shortest OD path of the station based on the simplified subway network; S2.3, search for effective station OD paths based on the simplified subway network; S2.4, generate effective OD paths of stations in the subway network; S2.5, construct a passenger route-train matching algorithm with multi-dimensional data spatiotemporal coupling; S3. Estimate the cross-sectional passenger flow at the transfer station.
2. The method for estimating passenger flow of subway network sections based on multi-dimensional data spatiotemporal coupling according to claim 1 is characterized by: The specific method of step S1 is as follows: S1.
1. Construct the line train number set J, line station set S, and train departure time set Stranded Passenger Set initialization S1.
2. According to the line train timetable, distinguish whether the line is in the upward direction or the downward direction. At the same time, according to the station number relationship of entry and exit, filter out the passenger card swiping records in the upward direction and the downward direction; S1.3, traverse the line train number set J, set j = 1; S1.4, read j, traverse the line site set S in the line, and set s = 1; S1.
5. Read s and construct a passenger entry card swiping time window between the current train number j and the current station s. According to the AFC passenger entry card swiping time and passenger entry card swiping time window in step S1.2, the train can be selected to carry passengers and the distribution of passenger destinations is counted. Determine whether the current station s is the last station in the corresponding direction of the line. If so, execute step S1.7; otherwise, execute step S1.6; S1.6, let s=s+1, execute step S1.5; S1.7, store the results in dictionary form; S1.
8. Based on the passenger destination distribution stored in step S1.7, the number of inbound and outbound passenger flows that can be carried at each station of line number j is counted according to the inbound and outbound stations. The inbound passenger flow at station s is equal to the sum of the OD passenger flows that enter from station s and exit from stations in the line station set S; the outbound passenger flow at station s is equal to the sum of the OD passenger flows that enter from stations in the line station set S and exit from station s. The specific calculation formula is as follows: S1.
9. Calculate the real-time cross-sectional passenger flow V of train j l,s,j (s=1, 2, 3...): V l,s,j =V l,s-1,j -DF l,s,j +AF l,s,j (V l,s,j ≤C j ) (3) If V l,s,j <C l,j , then record the current passenger flow V of the section l,s,j , and set j=j+1, and execute step S1.2; otherwise, execute step S1.10; S1.
10. Calculate the walking time of passengers of the previous j-1 trains at each station based on the departure time of the previous j-1 trains at each station, and calculate the average walking time of passengers at each station. S1.11, traverse the line station set S in the line, set s = 1; S1.12, read s, and construct the entry card swiping time window between the current train number j and the current station s Departure card swiping time window Filter passengers whose entry and exit card swiping time windows meet the current train's entry and exit card swiping time windows at the corresponding stations: Count the number of passengers entering the station AF l,s,j , outbound volume DF l,s,j Among them, the station entry volume AF l,s,j is the number of all passengers in the corresponding station entry card swiping time window, and the exit volume DF l,s,i The number of all passengers in the corresponding station exit card swiping time window; S1.
13. Order renew set; S1.
14. Calculate the real-time cross-sectional passenger flow V of train j at station s according to the following formula l,s,j : V l,s,j =V l,s-1,j -DF l,s,j +AF l,s,j (V l,s,j ≤C j ) (6) If V l,s,j <C l,j , then record the current section passenger flow V l,s,j , let s=s+1, if V l,s,j >=C l,j , then the actual number of passengers entering the station is calculated according to the formula, and the train section passenger flow, passenger entry volume, passenger retention volume and platform retention rate are calculated: In l,s,j =C j (7) OF' l,s,j =C j -V l,s-1,j +DF l,s,j (8) make S1.
15. Determine whether the current station s is the last station in the direction of the line. If so, execute step S1.14; otherwise, set s=s+1 and execute step S1.12; S1.
16. Determine whether the current train number j is the last train number calculated for the line. If so, output the cross-sectional passenger flow and end this calculation; otherwise, set j=j+1 and execute step S1.
11.
3. The method for estimating passenger flow of subway network sections based on multi-dimensional data spatiotemporal coupling according to claim 1 is characterized by: The method of step S2.1 is as follows: S2.1.
1. Define the subway network as G(V, E), where V is a node set, V = {v1, v2, v3, ..., v n } represents each site; E is a directed edge set, E={E1,E2,E3,...,E n }、E i ={e 1i , e 2i , e 3i , ..., e ni } represents the segment connecting adjacent sites, e ij =(v i , v j ), represents the segment from site i to site j; S2.1.2 The simplified subway network is based on lines. The lines in the network are regarded as nodes, and the transfer relationships between lines are regarded as connections. The simplified subway network is defined as G(L′,E′), where L′={l1,l2,l3,...,l n } is a set of lines; E′={E1,E2,E3,...,E n )、E i ={e 1i , e 2i , e 3i , ..., e ni } is the set of transfer relations between lines, e ij =(l i , l j ) represents the slave line l i To j If there is a transfer, then e ij =1, otherwise e ij =∞.
4. The method for estimating passenger flow of subway network sections based on multi-dimensional data spatiotemporal coupling according to claim 3 is characterized by: The method of step S2.2 is as follows: S2.2.
1. Initialize the network node set L′={l1, l2, l3, ..., l n }, the node set S = {} storing the shortest path and the uncalculated node set Q = {l1, l2, l3, ..., l n ), where Q+S=L′; initialize the dist[n] array storing the shortest distance, where dist[0]=0, dist[n] is the distance from the starting node to the node l n The shortest distance; S2.2.
2. Loop through the route number l of each passenger's entry point in the AFC data i , will l i Add to the node set S, let S = {l i }, dist[0] = 0, update the node set Q = L′-S; calculate all nodes in Q to the starting node l i The shortest distance dist[k], dist[k] = w(i, k); S2.2.
3. Find the node l with the minimum shortest distance from all nodes in Q to the starting node. j , will l j Add to the node set S, that is, S = S + {l i }, update the node set Q = L′-S; S2.2.
4. Calculate the distance from all nodes in Q to the departure node l i The shortest distance dist[k′], dist[k′]=dist[j]+w(j,k), if dist[k′]<dist[k], then update dist[k]=dist[k′]; S2.2.
5. Repeat steps S2.2.3 and S2.2.4 until Q = {} and S = L′; save the shortest path from the starting node to the remaining nodes; S2.2.
6. Read the line number of the exit station in the passenger's travel record. n , get dist[n] and the path corresponding to dist[n], and save the shortest path information of the record; S2.2.
7. Check whether all AFC data has been read. If so, end the search. Otherwise, execute step S2.2.
2.
5. The method for estimating passenger flow of subway network sections based on multi-dimensional data spatiotemporal coupling according to claim 4 is characterized by: The specific method of step S2.3 is as follows: S2.3.
1. Initialize the storage offset node list A, let Store the candidate path set B, Store the set C of valid paths, S2.3.2, read the passenger entry and exit information, extract the entry and exit line number, use the station 0D shortest path algorithm based on the simplified subway network to obtain the path L, add L to the set C, and add the node l of i (i=1,2,3…n) are added to list A, and k=1. S2.3.3, traverse the offset nodes and read l i , judge l i Is it the last element in the list? If so, execute step S2.3.5; otherwise, execute step S2.3.
4. S2.3.4, delete l one by one i To i+1 The connecting edge is obtained by using the shortest path algorithm, and the starting node is l i , the end node is l n The shortest path of S2.3.5, connection path (l1-l i ) and (l i -l n ), put the path into the candidate path set, and calculate the time cost on the path, S2.3.
6. Find the path with the minimum impedance among the candidate paths, clear list A, add the path to set C, add the nodes of the path to list A, and set k = k + 1. S2.3.
7. Determine whether k is less than K. If so, execute step S2.3.3; otherwise, execute step S2.3.
7. S2.3.
8. Extract the valid path of set C and determine whether all AFC data are complete. If so, the valid path search ends; otherwise, execute step S2.3.
2.
6. The method for estimating passenger flow of subway network sections based on multi-dimensional data spatiotemporal coupling according to claim 5, characterized in that: The specific method of step S2.4 is as follows: S2.4.
1. Initialization: Store a set A of physical valid paths based on site names, A = {S1, S2, ..., S k }, The transfer station dictionary B included in the line, B = {l1: {c1, c2, ..., c k }, l2: {c1, c2, ..., c k }, l k : {c1, c2, ..., c k }}, the station number dictionary C contained in the transfer station name, S2.4.
2. Read the passenger entry and exit station number, read the valid physical path set P based on the line level, traverse the valid paths in the valid path set, set i = 1, S2.4.
3. Read the valid physical path p i , traverse p i The line number in, let k = 1, S2.4.4, read l k , calculate and obtain l through the transfer station dictionary B k With l k+1 The intersection sites [c1, c2, ...], excluding the entry and exit site names contained in the intersection, S2.4.5, judgment l k Is it p i If yes, execute step S2.4.6; otherwise, let k=k+1 and execute step S2.4.
4. S2.4.6, respectively (l k , l k+1 The intersection site list formed by (k = 1, 2, 3, ...) is combined with the passenger's starting site number to obtain a valid physical path p' based on the site name i , p′ i =[s s , c1, c2, ..., s e ], S2.4.
7. Traverse the line numbers in the valid path pi again, let j = 1, S2.4.8, read l j , traverse p′ in the valid path i The site, let s = 0, S2.4.
9. Read p′ i [s], if the site is a number, add it to S i ; If the site is a Chinese site, execute step S2.4.10, S2.4.
10. Obtain the station number of the station according to the transfer station station number dictionary C, and replace it with l i Add the site number starting with S i , judge p′ i Is [s] p′? i If it is the last site in, then execute step S2.4.11; otherwise, let s = s + 1 and execute step S2.4.
9. S2.4.11, judgement l i Is it p i If yes, execute step S2.4.12; otherwise, let j=j+1 and execute step S2.4.
8. S2.4.
12. Determine p i Is it the last element in P? If so, execute step S2.4.13; otherwise, let i=i+1 and execute step S2.4.
3. S2.4.
13. Output the effective physical path A of the passenger based on the station, and determine whether all AFC data have been calculated. If so, end the generation of the effective path; otherwise, execute step S2.4.
2.
7. The method for estimating passenger flow of subway network sections based on multi-dimensional data spatiotemporal coupling according to claim 6, characterized in that: The specific method of step S2.5 is as follows: S2.5.
1. Data preparation: Extract the train schedule information for each line and direction from the train schedule data. If it is the upward direction, select the station number in descending order and the train departure time in ascending order; if it is the downward direction, select the station number information in ascending order and the train departure time in ascending order; S2.5.2, let i = 1, and traverse the passengers at station 0D in the subway network G(V, E); S2.5.
3. Read the ith passenger, obtain the card swiping time of the ith passenger entering and exiting the station, set n = 1, and obtain the valid physical path set A i , traverse A i ; S2.5.
4. Read Traversal The number in, let k = 0; S2.5.
5. Read judge and Are the first two digits of the numbers the same? If they are the same, record the current line 1 with the same number and execute step S2.5.6; otherwise, obtain and Transfer walking time Execute step S2.5.11; S2.5.6 If Record the current direction as up and read the train timetable with line 1 as the current direction up; otherwise, record the current direction as down and read the train timetable with line 1 as the current direction down; S2.5.
7. According to the train timetable opened in step S2.5.6, obtain the timetable of each train at Departure time set of the station Traversal Let m = 1; S2.5.8, Read like Then execute step S2.5.9; otherwise, record the current train number m and the current passenger departure time. Execute step S2.5.10; S2.5.9, let m=m+1, and execute step S2.5.8; S2.5.
10. Judgment Is it the last station number in the list? If not, set k = k + 1 and get the train number m. Departure time of the station Execute step S2.5.5; otherwise, obtain the train number m in Departure time of the station Calculate the estimated departure time of the route using the following formula: Execute step S2.5.12; S2.5.
11. Obtain the time when the passenger arrives at the transfer station according to the following formula make Execute step S2.5.5; S2.5.12 If Then the space-time path is invalid, and step S2.5.13 is executed; otherwise, the space-time path is valid, and the path is saved and step S2.5.13 is executed; S2.5.
13. Judgment Is it A i If the last element is , then output the space-time path of the ith passenger and the train number and departure time of the passenger at each station, and execute step S2.5.14; otherwise, set n = n + 1 and execute step S2.5.4; S2.5.
14. Determine whether i is the last passenger. If so, output the time-space paths of all passengers and the train numbers and departure times of the passengers at each station, and the algorithm ends; otherwise, set i=i+1 and execute step S2.5.
3.
8. The method for estimating passenger flow of a subway network section based on multi-dimensional data spatiotemporal coupling according to any one of claims 3 to 7, characterized in that: The specific method of step S3 is as follows: S3.1, determining the calculated target route l and train direction; S3.
2. Construct the line train number set J, line station set S, line intersection set V, and train departure time set Stranded Passenger Set make S3.3, extract the set of transfer passengers through the transfer passenger flow path-train matching method in step S2, determine the subway line used by the passengers, obtain the transfer passenger flow in the calculation direction by statistics, replace the passenger's entry and exit stations with the transfer station stations passing through the target line in the space-time path, and retain the train number j that the passenger takes through the target line; According to the relationship between the entry and exit station numbers, filter the non-transfer passenger flow in the calculated direction of the target line, and let i = 1; S3.4, select passenger i; S3.5, determine whether passenger i is a transfer passenger flow, if so, set i=i+1 and execute step S3.4; Otherwise, execute step S3.6; S3.
6. Determine and record the passenger's travel range based on the passenger's entry and exit stations According to the following formula, we can obtain the route v that passengers can choose, and obtain the departure time set of each train number at the entry station according to the route v: Filter out the train number j that the passenger takes, record the departure time of the train arriving at station D, and calculate the passenger's walking time out of the station: In l,s,j ≤C l,j (3-5) S3.7, determine whether passenger i is the last passenger currently calculated, if so, execute step S3.8; otherwise, set i=i+1 and execute step S3.5; S3.8, traverse the line intersection set V, set v = 1; S3.
9. Select read route v and obtain the train number set J under route v. v , let j = 1; S3.10, read j v , filter out the train number j v For all passengers, count the distribution of passengers on this train according to their entry and exit stations, and store the results in a dictionary form; S3.
11. Count the passenger flow of the train at each station. The passenger flow of the train is equal to the station of entry (s), and the station of exit (s) is the station set S. v The outbound passenger flow is equal to the outbound station s, and the inbound station is the station set S v The total passenger flow is calculated as follows: S3.
12. Calculate j according to the following formula v Real-time passenger flow of trains V l,s,j =V l,s-1,j -DF l,s,j +AF l,s,j (V l,s,j ≤C j ) (3-8) like The current passenger flow of the section is recorded Execute step S3.13; otherwise, record the train number j at which the current route starts to be stranded v , execute step S3.14; S3.13, judgement j v Is it the last train trip calculated for this route? If yes, execute step S3.14; if not, j=j+1, execute step 12; S3.14, determine whether the intersection v is the last intersection of the current line, if so, execute step S3.17, if not, v=v+1, execute step S3.9; S3.
15. Filter out the first stranded train number j according to the train schedule, filter out the AFC data of all train numbers before j, obtain the exit walking time of non-transfer passengers whose exit station is s (s = 1, 2, 3, ...), and calculate the average walking time S3.16, traverse the station site set S of the target line, set s = 1; S3.17, read s, obtain the remaining train number set J after the stranded train number j passing the current station s s , train number j, get the departure time set of the current station s Create a dictionary dic for the passenger flow distribution of stranded passengers in their travel intervals z , S3.18, filter out train number j s , all passengers entering the station at station s, and count the number of passengers entering the station AF l,s,j At the same time, according to the passenger's travel interval, the number of passengers entering the station in each travel interval under the station is counted, and a dictionary dic of travel intervals and passenger entry volume is created. Judge DIC z Are all 0? If yes, go to step S3.20; if not, go to step S3.19; S3.
19. Get j s The intersection v where the train is located is selected according to the travel interval dictionary dic v Get the travel range that the train can carry passengers Update s The dictionary dic of travel intervals and passenger entry volume, make Update transfer and stay dictionary dic z , update the number of passengers entering the station AF l,j,s ; S3.20, construct a model based on the current train number j s , the departure card swiping time window between the current station s, and the non-transfer passengers who meet the departure card swiping time window of the current train are selected according to the following formula, and the non-transfer passengers who meet the departure card swiping time window of the current train are selected according to the train number j s , current station s, filter out the transfer passengers leaving the current station, and count the number of passengers leaving the station DF l,s,j , of which the outbound volume is AF l,s,j The total number of passengers in the exit card swiping time window of the station plus the number of transfer passengers leaving the station on this train; S3.21, calculate j according to the following formula s Real-time cross-sectional passenger flow V of train at station s l,s,j : V l,s,j =V l,s-1,j -DF l,s,j +AF l,s,j (V l,s,j ≤C j ) (3-8) If V l,s,j <C l,j , then record the current passenger flow V of the section l,s,j , execute step S3.24; otherwise, record the current passenger flow C of the section l,s,j , calculate the actual number of passengers entering the station and the number of passengers stranded on the platform according to the following formula: Platform retention rate P l,s,j , Number of people stranded in the area Dictionary dic1 of travel intervals and number of stranded passengers entering the station, Update the passenger flow distribution dictionary DIC for stranded passengers' travel intervals z , AF′ l,s,j =C j -V l,s-1,j +DF l,s,j (3-11) S3.22, determine the train number j at the current station s Is it the last train calculated for this direction at this station? If so, execute step S3.23; otherwise, let j=j+1 and execute step S3.18; S3.
23. Determine whether the current station is the last station calculated for the line. If so, output the cross-sectional passenger flow of each train, the number of stranded passengers at each platform of each train, and the stranded rate, and end the passenger flow calculation; otherwise, set s=s+1 and execute step S3.17.
