Urban rail transit passenger flow distribution method based on passenger travel duration

Through the passenger flow allocation method based on passenger travel duration, the urban rail transit spatio-temporal network is constructed, effective paths are searched and a Gaussian mixture model is constructed, which solves the accuracy and adaptability problems of the existing passenger flow allocation methods and improves the reliability and accuracy of passenger flow allocation. sex.

CN118536758APending Publication Date: 2024-08-23NANJING UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410644790.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing urban rail transit passenger flow allocation method relies on questionnaires and field surveys, has poor parameter accuracy, and is not suitable for the development of urban rail transit network, resulting in inaccurate passenger flow allocation results and low reference.

Method used

A passenger flow allocation method based on passenger travel time, by obtaining passenger travel data and train operation data, constructing an urban rail transit spatio-temporal network, calculating the transfer time at the transfer station, searching for effective paths that meet the travel time and transfer number constraints, and constructing a Gaussian The hybrid model solves the selection probability of effective travel routes and counts the time-sharing distribution results of passenger flow.

Benefits of technology

It improves the reliability and accuracy of passenger flow allocation results, adapts to the development of urban rail transit networks, avoids the problem of difficult parameter estimation in traditional methods, and the obtained effective path set is more consistent with the actual passenger travel path selection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536758A
    Figure CN118536758A
Patent Text Reader

Abstract

The invention relates to an urban rail transit passenger flow distribution method based on passenger travel duration. The method comprises the following steps: acquiring passenger travel data and train operation data; constructing an urban rail transit space-time network; calculating the transfer duration of the transfer station based on the passenger travel data and the train operation data; obtaining an effective travel path set based on the travel duration constraint, the transfer frequency constraint and the transfer duration constraint; a Gaussian mixture model is constructed based on passenger travel data and the number of effective travel paths, the selection probability of each effective path is solved, and then the time-sharing passenger flow volume is counted. According to the method, the passenger travel effective path in the peak period is restrained additionally from travel time, so that an effective path set is more matched with an actual passenger travel selection path set; the passenger travel duration of the multi-path OD pair is described by adopting a Gaussian mixture model, and the selection probability of each effective path is solved by adopting an EM algorithm, so that the problem that parameters are difficult to estimate in a traditional method is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of rail transit, and in particular relates to an urban rail transit passenger flow allocation method based on passenger travel time. Background Art

[0002] In the context of urban rail transit network operation, the accessibility of urban rail transit has been enhanced, and the efficiency of passenger transfer has been improved. More and more long-distance passengers choose urban rail transit as a travel mode, and transfer passengers have gradually become the main body of urban rail transit transportation. However, the networked line system provides more alternative travel routes for cross-line passengers, which also poses a higher challenge to the efficient operation and management of urban rail transit. Reliable and accurate passenger flow allocation methods are conducive to the operation managers to better grasp the temporal and spatial distribution of rail transit passenger flow, thereby improving the scientificity and accuracy of operation management.

[0003] The existing urban rail passenger flow allocation method is mainly based on the multinomial Logit model. The utility function and random error parameters in the model need to be calibrated by questionnaire surveys, field surveys and other methods. This method is not only time-consuming and labor-intensive, but also the accuracy of the parameters is greatly affected by the subject and object of the survey. In addition, the parameters often change with the development of the urban rail transit network and have poor stability, which greatly affects the applicability of the traditional passenger flow allocation method based on the multinomial Logit model.

[0004] Therefore, there is an urgent need for a passenger flow allocation method based on existing passenger flow information and other data, so as to improve the reliability of passenger flow allocation results and provide a solid data foundation for improving the level and efficiency of urban rail operation management. Summary of the invention

[0005] The purpose of the present invention is to provide an urban rail transit passenger flow allocation method based on passenger travel time, so as to solve the problems that the existing passenger flow allocation method is not practical, the passenger flow allocation results are inaccurate and the reference is low.

[0006] To achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention provides a method for allocating passenger flow in urban rail transit based on passenger travel time, the method comprising:

[0007] S1: Obtain passenger travel data and train operation data;

[0008] S2: Constructing the spatiotemporal network of urban rail transit;

[0009] S3: Calculating the transfer time at the transfer station based on the passenger travel data and the train operation data;

[0010] S4: Search for a set of effective travel paths during off-peak hours and a set of effective travel paths during peak hours in the urban rail transit space-time network that meet travel time constraints, transfer number constraints, and transfer time constraints;

[0011] S5: constructing a Gaussian mixture model based on the passenger travel data and the number of effective travel paths and solving the selection probability of each effective travel path;

[0012] S6: Statistical analysis of passenger flow time-sharing allocation results based on passenger exit time, train arrival time and the selection probability of each effective travel path.

[0013] As a further improvement of an embodiment of the present invention, the method further includes: the passenger travel data includes:

[0014] OD passenger flow matrix and travel time data corresponding to the OD passenger flow matrix.

[0015] As a further improvement of an embodiment of the present invention, the method further includes: constructing the urban rail transit spatiotemporal network includes:

[0016] The weights of the stop arcs at each node and the running arcs between nodes in the urban rail transit space-time network are set based on the train's stop time and the running time between stations. The time from the arrival to the departure of each train at the station is assigned to each node, the transfer stations are represented by virtual stations, and the transfer behavior of passengers at the transfer stations is represented by transfer arcs. The weights of the transfer arcs are set based on the transfer time of each station.

[0017] As a further improvement of an embodiment of the present invention, the method further includes that obtaining the effective travel path set during the off-peak period includes:

[0018] The Dijkstra algorithm is used to obtain the shortest path set of each OD pair, and the graph-based breadth-first algorithm is used to obtain the effective path set that meets the travel time constraint and the number of transfer constraints as the effective path set for off-peak travel;

[0019] Travel time C OD The constraints are: In the formula, C OD Indicates the passenger's travel time, Indicates the shortest travel time; H s is the expansion coefficient;

[0020] The transfer number constraint is: the maximum number of transfers η max ≤The number of transfers on the shortest pathη min +1.

[0021] As a further improvement of an embodiment of the present invention, the method further includes that obtaining the set of effective travel paths during peak hours includes:

[0022] The effective path set during the off-peak period is further screened by using the transfer time constraint and the transfer number constraint to obtain the effective path set during the peak period;

[0023] Transfer time C h The constraints are: C h ≤(1+H 换 )*C min,h Where H 换 is the transfer extension coefficient;

[0024] The transfer number constraint is: the maximum number of transfers η max ≤The number of transfers on the shortest pathη min .

[0025] As a further improvement of an embodiment of the present invention, the method further includes: constructing a Gaussian mixture model based on passenger travel data and the number of valid travel paths and solving the selection probability of each valid travel path includes:

[0026] The travel time data is extracted from the passenger travel data, and the logarithm of the travel time is taken with the natural logarithm e as the base to form the travel time logarithm data X = {x1, x2, ..., x N}, where x is the logarithm of the travel time, x = ln(C OD ), C OD represents the travel time, N represents the total number of samples of the logarithm of the travel time;

[0027] Get the number of valid passenger travel paths k, and use the random number generation method to initialize the mean μ of k Gaussian distributions k , the probability of Gaussian distribution α k and the variance of the Gaussian distribution Based on k effective travel paths, k Gaussian distribution models are constructed and the EM algorithm is used to solve the selection probability of the effective travel path, that is, to solve the probability α of the Gaussian distribution k .

[0028] As a further improvement of an embodiment of the present invention, the method further includes that the using of the EM algorithm to solve the selection probability of the effective path of the trip includes:

[0029] S51: Introducing hidden variables γ ik , used to represent the probability that the logarithmic data of the i-th travel time comes from the k-th Gaussian distribution model, the logarithm of the travel time x and the latent variable γ ik The complete data of the logarithm of travel time is formed, and the logarithmic likelihood function of the complete data of the logarithm of travel time satisfies:

[0030]

[0031] Among them, L(x,γ|θ) represents the likelihood function of the complete data of the logarithm of the travel time, x represents the logarithm of the travel time, γ is the latent variable representing the probability that the logarithm of the travel time data x comes from each Gaussian distribution in the model, and α k represents the probability of the kth Gaussian distribution, μ k represents the mean of the kth Gaussian distribution, σ k represents the standard deviation of the k-th Gaussian distribution, represents the variance of the kth Gaussian distribution, n k represents the number of k-th Gaussian distributions, x i Represents the logarithmic data of the i-th travel time;

[0032] S52: Calculate the Q function, which satisfies:

[0033]

[0034] Among them, θ represents the model parameters including μ k , α k and j represents the number of iterations of the EM algorithm, Eγ ik represents the probability that the logarithmic data of the i-th travel time comes from the k-th Gaussian distribution model;

[0035] Using Bayesian probability to solve γ ik , expressed as:

[0036]

[0037] in, represents the kth Gaussian distribution function, α k represents the probability of the kth Gaussian distribution, μ k represents the mean of the kth Gaussian distribution, represents the variance of the kth Gaussian distribution, x i Represents the logarithmic data of the i-th travel time;

[0038] The Q function is further obtained, which is expressed as:

[0039]

[0040] S53: μ in Q function k and Find the partial derivative and set it to 0.

[0041] Get μ k satisfy:

[0042] get satisfy:

[0043] The Q function is Under the condition of k Find the partial derivative and set it to 0.

[0044] Get α k satisfy:

[0045] S54: Substitute the parameters obtained in step S53 into the likelihood function of step S51 for calculation. When the change in the likelihood function is less than the set threshold esp, the likelihood function is considered to have converged. k , α k and Output, otherwise return to step S52 to continue solving the parameters.

[0046] As a further improvement of an embodiment of the present invention, the method further includes that the sample data requirements include:

[0047] The Mahalanobis distance of the logarithmic data of passenger travel time input under the Gaussian model is calculated. When the Mahalanobis distance is greater than 3, the sample point is determined to be an abnormal discrete point and is removed from the sample data.

[0048] As a further improvement of an embodiment of the present invention, the method further includes: the statistical passenger flow time-sharing allocation result based on the passenger departure time, the train arrival time and the selection probability of each effective path includes:

[0049] Divide a day into n time-divided intervals according to the set time granularity; obtain the arrival time of the passenger at the terminal station based on the passenger's departure time and the train's arrival time; obtain the interval section that the passenger passes through in the nth time-divided interval when the kth path is selected from the passenger's terminal station, and count the passenger flow of each interval section The actual passenger flow of any section when the kth path is selected in the nth time-sharing granularity interval It is expressed as:

[0050]

[0051] Among them, O is the passenger entry point, D is the passenger exit point, α k is the probability of selecting the kth path;

[0052] Total passenger flow of the {a,b} interval section within the nth time-sharing granularity interval It is expressed as:

[0053]

[0054]

[0055] in, is a 0-1 variable used to indicate whether {a,b} is on the kth valid path of the OD;

[0056] For the time-sharing section passenger flow of any section {a, b} in the nth time-sharing granularity interval of the urban rail transit space-time network It is expressed as: Output the time-sharing allocation results of each interval section.

[0057] To achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention further provides a computer device, comprising a memory and a processor, characterized in that the memory stores a computer program that can be run on the processor, and when the program is executed on the processor, the steps in the urban rail transit passenger flow allocation method based on passenger travel time as described in any one of the above items are implemented.

[0058] In order to achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention further provides a storage medium, which stores a computer program, and is characterized in that when the computer program is executed by a processor, the steps in the urban rail transit passenger flow allocation method based on passenger travel time as described in any one of the above items are implemented.

[0059] Compared with the prior art, the urban rail transit passenger flow allocation method based on passenger travel time provided by the present invention is compared with the traditional effective path search algorithm. On the basis of considering the path time and the number of transfer restrictions, it constrains the effective paths for passenger travel during peak hours from the perspective of travel time, so that the final effective path set is more matched with the actual passenger travel selection path set; based on the analysis that the passenger travel time of a single OD pair satisfies the logarithmic Gaussian distribution, a Gaussian mixture model is used to describe the passenger travel time of multiple path OD pairs, and the EM algorithm is used to solve the Gaussian mixture model, and then the selection probability of each effective path is obtained, avoiding the problem of difficult parameter estimation faced by the traditional passenger flow allocation method based on the multi-logit model. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is a simplified flow chart for obtaining a valid path set of the urban rail transit passenger flow allocation method based on passenger travel time according to the present invention.

[0061] Figure 2 It is a simplified flow chart of passenger flow allocation of the urban rail transit passenger flow allocation method based on passenger travel time described in the present invention.

[0062] Figure 3 This is the density distribution map of passenger travel time from Youfangqiao to Jiangwangmiao.

[0063] Figure 4It is a reliability evaluation result diagram of the off-peak period model parameter k of the urban rail transit passenger flow allocation method based on passenger travel time described in the present invention.

[0064] Figure 5 It is a reliability evaluation result diagram of the peak period model parameter k of the urban rail transit passenger flow allocation method based on passenger travel time described in the present invention.

[0065] Figure 6 It is a cross-sectional passenger flow and subway data comparison curve diagram obtained by using the urban rail transit passenger flow allocation method based on passenger travel time of the present invention. DETAILED DESCRIPTION

[0066] The present invention will be described in detail below in conjunction with the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by a person skilled in the art based on these embodiments are all within the scope of protection of the present invention.

[0067] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0068] In the first embodiment of the present invention, the present invention provides a method for allocating passenger flow in urban rail transit based on passenger travel time, such as Figures 1-2 As shown, the method includes,

[0069] S1: Obtain passenger travel data and train operation data;

[0070] S2: Constructing the spatiotemporal network of urban rail transit;

[0071] S3: Calculate the transfer time at the transfer station based on passenger travel data and train operation data;

[0072] S4: Search for a set of effective travel paths during off-peak hours and a set of effective travel paths during peak hours in the urban rail transit space-time network that meet travel time constraints, transfer number constraints, and transfer time constraints;

[0073] S5: Construct a Gaussian mixture model based on passenger travel data and the number of valid travel paths and solve the selection probability of each valid path;

[0074] S6: Time-sharing passenger flow allocation based on passenger exit time, train arrival time and selection probability of each effective path.

[0075] In a specific implementation of the present invention, the passenger travel data includes an OD passenger flow matrix and travel duration data corresponding to the OD passenger flow matrix.

[0076] In a specific embodiment of the present invention, obtaining the peak passenger flow OD matrix includes: selecting 7:00-9:00 and 17:30-19:00 as peak time periods, and dividing the passengers traveling during the time periods into four categories: both entering and exiting the station, neither entering and exiting the station within the peak time period, only entering the station within the peak time period, and only exiting the station within the peak time period;

[0077] Taking passengers who neither enter nor exit the station during peak hours as an example, based on the passenger's starting station O, entry time, travel path, and rail transit space-time network diagram, the station where the passenger is at the start time of the peak or the station O' that is about to arrive and the station where the passenger is at the end time of the peak or the station D' that is about to arrive are estimated; O'D' is taken as the starting and ending stations of the passenger's travel during the peak period, and the start and end time of the peak period are taken as the entry and exit times, then these passengers can be divided into three travel sections: OO', O'D' and D'D; for passengers who both enter and exit the station during the peak period: OD is taken as the starting and ending stations of the passenger's travel during the peak period, and the passenger's actual entry and exit time is taken as the entry and exit time. For passengers who enter the station but leave the station outside the peak period: calculate the station where the peak ends or the station D′ that is about to arrive, use OD′ as the starting and ending stations of the passenger travel during the peak period, the passenger entry time and the peak end time as the entry and exit times, and the travel sections are OD′, D′D; for passengers who enter the station but leave the station during the peak period: calculate the station where the peak starts or the station O′ that is about to arrive, use O′D as the starting and ending stations of the passenger travel during the peak period, the peak start time and the passenger exit time as the entry and exit times; the travel sections are OO′, O′D; The peak passenger flow OD matrix can be obtained by processing the passenger travel data.

[0078] In a specific embodiment of the present invention, the construction of the urban rail transit space-time network includes setting the stop arcs of each node and the running arcs between nodes of the urban rail transit space-time network based on the stop time of the train and the running time between stations; assigning the time when each train arrives at the station to leave the station to each node, and the set of the train arrival time and departure time of the station s is respectively represented by and Representation; transfer stations are represented by virtual stations, and transfer arcs are used to represent passengers' transfer behavior at transfer stations. Transfer arcs are set based on the average transfer time of each station.

[0079] It should be noted that weight is a special expression in graph theory to describe the time of each edge or arc in the network, rather than the weight of each. The weight of the running arc and the stop arc is a value obtained from the train timetable, and the weight of the transfer arc is a value obtained by calculation.

[0080] In a specific embodiment of the present invention, the calculation of the transfer time at the transfer station based on the passenger travel data and the train operation data includes:

[0081] Passenger travel time C OD Passenger entry time t in , waiting time t w , length of time in the car z , Transfer time t h And the length of time to leave the station out Composition, satisfying: C OD =t in +t w +t z +t h +t out ;

[0082] exist Based on the calculation formula, three different stations on the same route are selected, and the travel time C in the AFC data of the trips between the three stations is calculated. OD , combined with the train running time and train departure frequency, the average entry and exit time of the three stations is calculated. According to this method, the entry and exit time of the remaining required stations can also be calculated; then the same method is used to calculate the transfer time of each transfer station based on the travel time between OD pairs of a single path transfer, and the transfer time is used as the transfer arc of the rail transit space-time network.

[0083] Calculating the transfer time in step S3 includes:

[0084] S301: It is known that there is a unique valid path between the three stations A, B, and C on the same line of the urban rail, and the mean passenger travel time is μ AB , μ BA , μ AC , μ CA , μ BC , μ CB , and their variances are σ AB , σ BA , σ AC , σ CA , σ BC , σ CB To ensure that the passenger travel time data obtained from the AFC data are complete enough, three pairs of stations with the largest passenger flow between OD and A of the line are selected here. The passenger travel time between stations A, B, and C is t AB ,t AC ,t BC , the departure frequency of this line is f. Taking the AB section as an example, we can get the average travel time between the three stations:

[0085]

[0086] Among them, μ A,in represents the mean entry time of station A, μ B,out represents the mean outbound time of station B, t z,AB Indicates the time passengers spend on the bus from station A to station B;

[0087] S302, assuming that the mean entry and exit times of the three stations A, B, and C are μ A,in , μ A,out , μ B,in , μ B,out , μ C,in , μ C,out Based on AFC data and train timetable, we can get the mean of total travel time, travel time and line departure frequency respectively. Then the mean of entry time between stations A, B and C satisfies:

[0088]

[0089]

[0090]

[0091]

[0092]

[0093]

[0094] The above formula can be used to calculate the average entry and exit time of stations A, B, and C, and thus the average entry and exit time of the remaining required stations can be calculated;

[0095] S303, select a pair of ODs with only one single path and only passing through the transfer station C as the object, with the starting and ending stations being station A and station B respectively. Based on the mean and variance of the passenger travel time obtained in the above steps, combined with the train running time and train departure frequency, the travel time of the passengers on the OD path can be obtained as t z,AB , the departure frequency of the line at station A is f A ;

[0096] Taking station A to station B as an example, we can get the average travel time:

[0097]

[0098] Among them, μ h,C represents the mean transfer time at transfer station C;

[0099] S304, based on the AFC data and the train schedule, the average total travel time, the ride time and the line departure frequency of the section can be obtained respectively. By substituting them with the average entry and exit time obtained in step S302, the average transfer time can be obtained, and the average transfer time is used as the transfer arc weight of the transfer station in the rail transit space-time network.

[0100] In a specific embodiment of the present invention, Figure 1 The method of obtaining the effective path set for off-peak travel includes using the Dijkstra algorithm to obtain the shortest path set of each OD pair, and using the graph-based breadth-first algorithm to obtain the effective path set that meets the travel time constraint and the transfer number constraint as the effective path set for off-peak travel; the travel time C OD The constraints are: In the formula, C OD Indicates the duration of the trip. represents the shortest path travel time, H s is the ductility coefficient, which satisfies H s >0; the number of transfers required is: maximum number of transfers η max ≤The number of transfers on the shortest pathη min +1.

[0101] In a specific embodiment of the present invention, Figure 1 The method of obtaining the effective path set for peak-hour travel includes further screening the effective path set for off-peak hours by using the transfer time constraint and the transfer number constraint, and obtaining the effective path set that meets the transfer time constraint and the transfer number constraint as the effective path set for peak hours; the transfer time requirement is: C h ≤(1+H 换 )*C min,h Where H 换 is the transfer extension coefficient, which satisfies H 换 >0; the number of transfers required is: maximum number of transfers η max ≤The number of transfers on the shortest pathη min .

[0102] The specific steps for obtaining the effective travel path in step S4 include:

[0103] S401: Basic data input to construct rail transit network topology map;

[0104] Input the basic data of the urban rail transit network, including the names and numbers of stations and lines, the running time between stations, the connection relationship between stations, and the transfer information of transfer stations, and construct the rail transit network topology diagram G = (V, E), where V represents the station and E represents the connection arc between stations;

[0105] S402: Obtain the shortest travel path set within the OD pair based on the Dijkstra algorithm;

[0106] S403: Determine the line information of the OD site;

[0107] Based on the analysis of passenger travel behavior and the definition of effective travel paths, OD stations can be divided into the following three types:

[0108] 1) If the OD stations belong to only one route, the shortest path is the only valid travel path, and the process directly goes to step S409;

[0109] 2) If the OD site belongs to two or more identical lines, there may be multiple valid paths. In this case, m short-circuit searches need to be performed, and the value of m is not greater than the number of lines to which the OD site belongs, and the process goes to step S404;

[0110] 3) If the OD sites do not belong to the same line, there may be multiple valid paths. In this case, a K short-circuit search needs to be performed, and the process goes to step S404;

[0111] S404: Record the travel time of the shortest path from the entry station O to the exit station D for the OD pair solved by the Dijkstra algorithm as The number of transfers in the shortest path is denoted as η min ; Assume that the number of layers m = 0, nodes a = b = 1, L m represents the set of nodes at the mth level, represents the set of transfer stations and starting and ending points that meet the effective path constraints searched at the mth level, L T represents the set of possible transfer stations in the next layer that the current node searches for, h m represents the number of transfer stations and the initial h m =η min , the initial node is

[0112] S405: traverse the ath site at the mth layer The adjacent nodes of And calculate the starting point arrive Duration When the m-th layer of sites has not been traversed completely, the process goes to step S406, otherwise it goes to step S408;

[0113] S406: Determine whether the path searched in step S405 meets the constraints of travel time and number of transfers. If not, set a=a+1 and discard the path, and return to step S404. If it meets the constraints, The following operations are performed on the type:

[0114] 1) If it is the terminal station, the path and its duration are recorded, and the process returns to step S405;

[0115] 2) For transfer stations, h m =h m +1, b=b+1, return to step S405;

[0116] 3) When it is a general site, b=b+1, and the process returns to step S405;

[0117] S407: When If all adjacent nodes of have been traversed, set a=a+1, b=1, and then return to step S405;

[0118] S408: m=m+1, if satisfy Then a and b are initialized to 1, and the process returns to step S404; otherwise, the search is completed, and the process goes to step S409;

[0119] S409: Output the final valid path set of the OD pair as the effective path set during off-peak hours, perform constraint judgment on the transfer time and the number of peak transfers on the effective path set during off-peak hours, and filter and output the effective path set during peak hours.

[0120] In a specific embodiment of the present invention, a Gaussian mixture model is constructed based on passenger travel data and the number of valid travel paths, and the selection probability of each valid path is solved using the EM algorithm, including:

[0121] S501: Extract travel time data from passenger travel data, and take the logarithm of the travel time with the natural logarithm e as the base to form travel time logarithm data X = {x1, x2, ..., x N}, where x represents the logarithm of the travel time, x=ln(t), t represents the travel time, and N represents the total number of samples of the logarithm of the travel time;

[0122] S502: Obtain the number of valid passenger travel paths k, and use a random number generation method to initialize the mean μ of k Gaussian distributions k , the probability of Gaussian distribution α k and the variance of the Gaussian distribution

[0123] S503: Introducing hidden variables γ ik , used to represent the probability that the logarithmic data of the i-th travel time comes from the k-th Gaussian distribution, the logarithm of the travel time x and the latent variable γ ikThe complete data of the logarithm of travel time is formed, and the logarithmic likelihood function of the complete data of the logarithm of travel time satisfies:

[0124]

[0125] Among them, L(x,γ|θ) represents the likelihood function of the complete data of the logarithm of the travel time, x represents the logarithm of the travel time, γ is the latent variable representing the probability that the logarithm of the travel time data x comes from each Gaussian distribution in the model, and α k represents the probability of the kth Gaussian distribution, μ k represents the mean of the kth Gaussian distribution, σ k represents the standard deviation of the k-th Gaussian distribution, represents the variance of the kth Gaussian distribution, n k represents the number of k-th Gaussian distributions, x i Represents the logarithmic data of the i-th travel time;

[0126] S504: Calculate the Q function, which satisfies:

[0127]

[0128] Among them, θ represents all model parameters including μ k , α k and j represents the number of iterations of the EM algorithm, Eγ ik It represents the probability that the logarithmic data of the i-th travel time of the current model parameter comes from the k-th sub-model;

[0129] Using Bayesian probability to solve Eγ ik , expressed as:

[0130]

[0131] in, represents the kth Gaussian distribution function, and z represents the kth Gaussian distribution;

[0132] The Q function is further obtained, which is expressed as:

[0133]

[0134] S505: Calculate the Mahalanobis distance of the sample points under the model parameters, and remove abnormal discrete points that do not meet the sample data requirements;

[0135] S506: μ in the Q function k and Find the partial derivative and set it to 0.

[0136] Get μ k satisfy:

[0137] get satisfy:

[0138] The Q function is Under the condition of k Find the partial derivative and set it to 0.

[0139] Get α k satisfy:

[0140] S507: Substitute the parameters obtained in step S506 into the likelihood function of step S503 for calculation. When the change in the likelihood function is less than the set threshold esp, the likelihood function is considered to have converged. k , α k and Output, otherwise return to step S504 to continue solving the parameters.

[0141] In a specific embodiment of the present invention, the passenger flow time-sharing allocation result based on the passenger departure time, train arrival time and the selection probability of each effective path includes:

[0142] A time granularity of 15 minutes is set as the passenger flow statistics unit. The time of a day is divided into time granularity intervals according to the time granularity of 15 minutes. n = {1, 2, 3, ..., 96} is used to represent the nth time granularity interval in a day. Based on the assumption that passengers will exit the station immediately after arriving at the target station, the arrival time of the passengers at the terminal station is inferred based on the passenger's exit time and the train's arrival time. From the passenger's terminal station, the section of the interval that the passenger passes through in the nth time granularity interval when choosing the kth path is inferred, and the passenger flow of each interval is counted. Then the actual passenger flow of a section interval when the i-th path is selected in the n-th time-sharing granularity interval satisfies:

[0143]

[0144] Among them, O is the passenger entry point, and D is the passenger exit point; α k is the probability of selecting the kth path;

[0145] Total passenger flow in the interval {a,b} within the nth time-sharing granularity interval satisfy:

[0146]

[0147]

[0148] in, is a 0-1 variable used to indicate whether the interval {a,b} is on the kth valid path of the OD;

[0149] For the time-sharing section passenger flow of any interval {a, b} in the nth time-sharing granularity interval of the urban rail transit space-time network satisfy: Output the time-sharing allocation results of each period interval section.

[0150] In a second embodiment of the present invention, the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the program is executed on the processor, the steps in the urban rail transit passenger flow allocation method based on passenger travel time as described in any one of the above items are implemented.

[0151] In embodiment three of the present invention, the present invention provides a storage medium storing a computer program, characterized in that when the computer program is executed by a processor, the steps in the urban rail transit passenger flow allocation method based on passenger travel time as described in any one of the above items are implemented.

[0152] In order to more intuitively illustrate the method proposed in the present invention, the Youfangqiao-Jiangwangmiao section of the Nanjing Metro network is taken as an example to verify the method.

[0153] Youfangqiao Station is the transfer station for Nanjing Metro Line 2 and Line S3, and Jiangwangmiao is an ordinary station for Line 4; taking the line network structure data, passenger flow data and train timetable of Nanjing Metro from December 2 to December 6, 2019 as input, the data is preprocessed according to step S1 to obtain passenger travel data and train timetable; after step S2, the urban rail transit space-time network is constructed, and after step S3, the average transfer time of the transfer station is obtained, which is used as the weight of the transfer arc of the urban rail transit space-time network.

[0154] After step S4, the effective travel path set of the Youfangqiao-Jiangwangmiao OD pair during the off-peak period is obtained, as shown in Table 1; the effective path set is constrained by the transfer time and the number of transfers, and the effective travel paths during the peak period are obtained as Path 1 and Path 2 in Table 1.

[0155] Table 1 Results of generating effective travel paths

[0156]

[0157] From the AFC data and OD passenger flow matrix from December 2 to December 6, 2019, the passenger travel data with the entry station at Youfangqiao and the exit station at Jiangwangmiao were selected. After the peak passenger flow OD matrix processing steps, 1362 corresponding off-peak travel time data sets and 452 peak travel time data sets were obtained. The density distribution of the off-peak travel time data sets and the peak travel time data sets are as follows: Figure 3 shown.

[0158] Take k=4, take the logarithm of the travel duration data during the off-peak period as input, and obtain the probability of passenger travel path selection during the off-peak period α through step S5 k and the mean travel time μ k , the results are shown in Table 2.

[0159] Table 2 Solution results of Gaussian mixture model for off-peak travel time data

[0160]

[0161]

[0162] Take k=2, take the logarithm of the peak travel time data as input, and obtain the peak passenger travel path selection probability α through step S5 k and the mean travel time μ k , the results are shown in Table 3.

[0163] Table 3 Results of Gaussian mixture model for peak travel time data

[0164] Path number <![CDATA[Path selection probability α k > <![CDATA[Average value μ of travel time for a path k > 1 <![CDATA[α1=0.8205735]]> <![CDATA[μ1=3106.133]]> 2 <![CDATA[α2=0.17949265]]> <![CDATA[μ2=3171.133]]>

[0165] The reliability of the number of effective paths was verified using the Bayesian Information Criterion. The BIC evaluation results of the model parameters during the off-peak period and the peak period are shown in the figure below. Figure 4 and Figure 5 As shown;

[0166] It should be noted that the Bayesian Information Criterion (BIC) corrects some unknown states through subjective probability estimation under incomplete intelligence, and finally uses the expected value and corrected probability to make the optimal decision. The calculation formula is as follows: BIC=kln(N)-2ln(L(θ)), where BIC represents the value inferred by the Bayesian Information Criterion, k represents the number of Gaussian distributions in the model, N represents the total number of samples, and L(θ) is the extreme value of the model likelihood function.

[0167] From the perspective of fitting, the BIC criterion aims to select a model that best fits the existing data. Therefore, the BIC criterion can be used to verify the reliability of the k value of the Gaussian mixture model, that is, the number of valid paths. Figure 4 and Figure 5 It can be seen that the effective path set obtained by this method has good reliability.

[0168] After step S6, the OD passenger flows are respectively input into the rail transit network, and finally the cross-sectional passenger flow and transfer passenger flow of the network are obtained.

[0169] Taking the section passenger flow from Xinjiekou to Daxinggong of Nanjing Metro as an example, the passenger flow distribution results of the whole network of the present invention are further verified; the section from Xinjiekou to Daxinggong belongs to Nanjing Metro Line 2, and the operation start time of this line is 6:00 and the operation end time is 23:00; the passenger flow data and line network basic data of Nanjing Metro on December 6, 2019 are used as input, and the time granularity of 15min is selected to obtain the section passenger flow results as shown in Table 4.

[0170] Table 4 Passenger flow estimation results from Xinjiekou to Daxinggong section

[0171]

[0172]

[0173]

[0174] In order to further compare the effects of this method and the traditional passenger flow allocation method based on the multinomial Logit model in practical applications, these two methods were used to estimate the passenger flow of each line section of Nanjing Metro. The results are shown in Table 5.

[0175] Table 5 Comparison of the accuracy of passenger flow estimation results for each section of Nanjing Metro under different allocation methods

[0176]

[0177]

[0178] Compared with the passenger flow allocation method based on the Logit model, the passenger flow allocation method proposed in this method has a relatively small error in cross-sectional passenger flow estimation. In particular, this method has obtained more ideal results on Line 1, Line 2 and Line 3, which have large passenger flows. This shows that the passenger flow allocation method proposed in this paper has an advantage over the passenger flow allocation method based on Logit in terms of the accuracy of the allocation results.

[0179] In summary, compared with the traditional effective path search algorithm, the urban rail transit passenger flow allocation method based on passenger travel time provided by the present invention constrains the effective travel paths of passengers during peak hours from the perspective of travel time on the basis of considering the path time and the number of transfers, so that the final effective path set is more matched with the actual passenger travel selection path set; based on the analysis that the passenger travel time of a single OD pair satisfies the logarithmic Gaussian distribution, a Gaussian mixture model is used to describe the passenger travel time of multiple path OD pairs, and the EM algorithm is used to solve the Gaussian mixture model, and then the selection probability of each effective path is obtained, avoiding the problem of difficult parameter estimation faced by the traditional passenger flow allocation method based on the multi-logit model.

[0180] It should be understood that although this specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each implementation mode may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

[0181] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the modules described above can refer to the corresponding process in the aforementioned method implementation, and will not be repeated here.

[0182] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0183] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0184] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for a computer system (which can be a personal computer, a server, or a network system, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

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

Claims

1. A method for allocating passenger flow in urban rail transit based on passenger travel time, characterized in that: include, S1: Obtain passenger travel data and train operation data; S2: Constructing the spatiotemporal network of urban rail transit; S3: Calculating the transfer time at the transfer station based on the passenger travel data and the train operation data; S4: Search for a set of effective travel paths during off-peak hours and a set of effective travel paths during peak hours in the urban rail transit space-time network that meet travel time constraints, transfer number constraints, and transfer time constraints; S5: constructing a Gaussian mixture model based on the passenger travel data and the number of effective travel paths and solving the selection probability of each effective travel path; S6: Statistical analysis of passenger flow time-sharing allocation results based on passenger exit time, train arrival time and the selection probability of each effective travel path.

2. The method for allocating passenger flow in urban rail transit based on passenger travel time according to claim 1, characterized in that: The passenger travel data includes an OD passenger flow matrix and travel duration data corresponding to the OD passenger flow matrix.

3. The method for allocating passenger flow in urban rail transit based on passenger travel time according to claim 1, characterized in that: The construction of the urban rail transit space-time network includes: Based on the train timetable, the train's stop time and inter-station running time are obtained, and the weights of the stop arcs of each node and the running arcs between nodes in the urban rail transit space-time network are set according to the train's stop time and inter-station running time; the time when each train arrives at and leaves the station is assigned to each node, the transfer station is represented by a virtual station, and the transfer behavior of passengers at the transfer station is represented by a transfer arc, and the weight of the transfer arc is set based on the transfer time of each station.

4. The method for allocating passenger flow in urban rail transit based on passenger travel time according to claim 1, characterized in that: Obtaining the effective travel path set during the off-peak period includes: The Dijkstra algorithm is used to obtain the shortest path set of each OD pair, and the graph-based breadth-first algorithm is used to obtain the effective path set that meets the travel time constraint and the number of transfer constraints as the effective path set for off-peak travel; Travel time C OD The constraints are: In the formula, C OD Indicates the passenger's travel time, Indicates the shortest travel time; H s is the expansion coefficient; The transfer number constraint is: the maximum number of transfers η max ≤The number of transfers on the shortest pathη min +1.

5. The method for allocating passenger flow in urban rail transit based on passenger travel time according to claim 1 or 5, characterized in that: Obtaining the effective travel path set during peak hours includes: The effective path set during the off-peak period is further screened by using the transfer time constraint and the transfer number constraint to obtain the effective path set during the peak period; Transfer time C h The constraints are: C h ≤(1+H 换 )*C min,h Where H 换 is the transfer extension coefficient; The transfer number constraint is: the maximum number of transfers η max ≤The number of transfers on the shortest pathη min .

6. The method for allocating passenger flow in urban rail transit based on passenger travel time according to claim 1, characterized in that: The Gaussian mixture model is constructed based on the passenger travel data and the number of effective travel paths, and the selection probability of each effective travel path is solved, including: The travel time data is extracted from the passenger travel data, and the logarithm of the travel time is taken with the natural logarithm e as the base to form the travel time logarithm data X = {x1, x2, ..., x N }, where x is the logarithm of the travel time, x = ln(C OD ), C OD represents the travel time, N represents the total number of samples of the logarithm of the travel time; Get the number of valid passenger travel paths k, and use the random number generation method to initialize the mean μ of k Gaussian distributions k , the probability of Gaussian distribution α k and the variance of the Gaussian distribution Based on k effective travel paths, k Gaussian distribution models are constructed and the EM algorithm is used to solve the selection probability of the effective travel path, that is, the probability α of the Gaussian distribution is solved k .

7. The method for allocating passenger flow in urban rail transit based on passenger travel time according to claim 6, characterized in that: The EM algorithm is used to solve the selection probability of the effective travel path, including: S51: Introducing hidden variables γ ik , used to represent the probability that the logarithmic data of the i-th travel time comes from the k-th Gaussian distribution model, the logarithm of the travel time x and the latent variable γ ik The complete data of the logarithm of travel time is formed, and the logarithmic likelihood function of the complete data of the logarithm of travel time satisfies: Among them, L(x,γ|θ) represents the likelihood function of the complete data of the logarithm of the travel time, x represents the logarithm of the travel time, γ is the latent variable representing the probability that the logarithm of the travel time data x comes from each Gaussian distribution in the model, and α k represents the probability of the kth Gaussian distribution, μ k represents the mean of the kth Gaussian distribution, σ k represents the standard deviation of the k-th Gaussian distribution, represents the variance of the kth Gaussian distribution, n k represents the number of k-th Gaussian distributions, x i Represents the logarithmic data of the i-th travel time; S52: Calculate the Q function, which satisfies: Among them, θ represents the model parameters including μ k , α k and j represents the number of iterations of the EM algorithm, Eγ ik represents the probability that the logarithmic data of the i-th travel time comes from the k-th Gaussian distribution model; Using Bayesian probability to solve γ ik , expressed as: in, represents the kth Gaussian distribution function, α k represents the probability of the kth Gaussian distribution, μ k represents the mean of the kth Gaussian distribution, represents the variance of the kth Gaussian distribution, x i Represents the logarithmic data of the i-th travel time; The Q function is further obtained, which is expressed as: S53: μ in Q function k and Find the partial derivative and set it to 0. Get μ k satisfy: get satisfy: The Q function is Under the condition of k Find the partial derivative and set it to 0. Get α k satisfy: S54: Substitute the parameters obtained in step S53 into the likelihood function of step S51 for calculation. When the change in the likelihood function is less than the set threshold esp, the likelihood function is considered to have converged. k , α k and Output, otherwise return to step S52 to continue solving the parameters.

8. The method for allocating passenger flow in urban rail transit based on passenger travel time according to claim 1, characterized in that: The passenger flow time-sharing allocation results based on the selection probability statistics of passenger departure time, train arrival time and each effective path include: Divide a day into n time-sharing granularity intervals according to the set time granularity; Based on the passenger's departure time and the train's arrival time, the passenger's arrival time at the terminal is obtained. From the passenger's terminal, the section that the passenger passes through in the nth time-sharing granularity interval when the kth path is selected is obtained, and the passenger flow of each section is counted. The actual passenger flow of any section when the kth path is selected in the nth time-sharing granularity interval It is expressed as: Among them, O is the passenger entry point, D is the passenger exit point, α k is the probability of selecting the kth path; Total passenger flow of the {a,b} interval section within the nth time-sharing granularity interval It is expressed as: in, is a 0-1 variable used to indicate whether {a,b} is on the kth valid path of the OD; For the time-sharing section passenger flow of any section {a, b} in the nth time-sharing granularity interval of the urban rail transit space-time network It is expressed as: Output the time-sharing allocation results of each interval section.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.