scieee AI-readable full text Open interactive document viewer

Dynamic OD transit matrix estimation: formulation and model-building environment

Montero Mercadé, Lídia,Codina Sancho, Esteve,Barceló Bugeda, Jaime

Abstract

The aim of this paper is to provide a detailed description of a framework for the estimation of time-sliced origin-destination (OD) trip matrices in a transit network using counts and travel time data of Bluetooth Smartphone devices carried by passengers at equipped transit-stops. A Kalman filtering formulation defined by the authors has been included in the application. The definition of the input for building the space-state model is linked to network scenarios modeled with the transportation planning platform EMME. The transit assignment framework is optimal strategy-based, which determines the subset of paths related to the optimal strategies between all OD pairs

Full text

Dynamic OD passenger matrix estimation: formulation and model-building environment Authors: L. Montero, E. Codina and J.Barceló Barcelona TECH - UPC (Technical University of Catalonia) ICSEng 2014 (23rd INTERNATIONAL CONFERENCE ON SYSTEMS ENGINEERING) LAS VEGAS, Nevada, August 19-21, 2014 ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló Contents 1. Aim of this work 2. A Linear State Space Model approach 3. A Linear Kalman filter formulation for dynamic passenger matrices 4. KFX3T Prototype Testing by simulation 5. Automatization of KFX3T Model Building 6. Conclusions and further research Page -2- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 1. Aim of this work (I) To explore the design and implementation of efficient methods to support the short-term and real-time estimation of time dependent Origin-Destination matrices for transit trips when, new detection technologies (ICT) complete the traditional ones: – This is the case of the new sensors detecting passengers equipped with Bluetooth mobile devices, •Or for auto trip matrices, sensors detecting vehicles equipped with Tom-Tom, Parrot and similar devices allowing AVI (Authomatic vehicle identification) technologies. –From a research stand point this means starting to explore the potential of ICT new technologies in simplifying transportation models and develop new applications for practitioners. Page -3- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 1. Aim of this work: Macro, meso and micro approaches to traffic modeling for private trips… Page -5- •Different types of network representations. •All them share in common the demand model in terms of Origin-Destination Trip Matrices: –the number of trips from the selected origin to the chosen destination, –for a given time period –for a given trip purpose/mode •Origins and destinations are represented in models in terms of artificial nodes, or centroids, where traffic flows are generated and sunk. Source: J.Barceló – Sedona Workshop 2005 ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 7 TRAFFIC DATA FROM SENSORS DATA FILTERING AND FUSION DINAMIC TRAFFIC MODELS URBAN NETWORK: TRAFFIC STATE HISTORICAL OD MATRIX ( ) TIME PERIOD τ pτ ij t Data Profile for period τ Kalman filter model for dinamic OD matrix estimation for time period τ MESOSCOPIC TRAFFIC SIMULATOR OD MATRIX FOR TIME PERIOD τ Current TIS in BCN website (only measures) : non complete Advance ATIS in (measures + fusión + models): complete description 1. Aim … A main input to ATIS/ATMS models : realtime dynamic Origin to Destination (OD) matrices ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló Contents 1. Aim of this work 2. A Linear State Space Model approach 3. A Linear Kalman filter formulation for dynamic passenger matrices 4. KFX3T Prototype Testing by simulation 5. Automatization of KFX3T Model Building 6. Conclusions and further research Page -13- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 2. A State Space Model approach Page -14- Traditional Statistical Model •The parameter vector θ determines the distribution of the observed vector Y. •A sample y1,…,yP is used to estimate θ. State Space Model •The hyperparameter vector θ determines the distribution of the unobserved state vector X. •The state vector X and the hyperparameter vector θ determine the distribution of the observed vector Y. •A sample y1,…,yP is used to estimate θ. •The estimated value of θ and the sample y1,…,yP are used to estimate . ( ) ( ) n yyS yFY ,, ˆ1= ≈ θ θ ( ) ( ) ( ) ( ) θ θ θ θ ˆ ,,, ˆ X, ,, ˆ 1 1 Pi pp P ii yyTX yFY yyS xgX   = ≈ = ≈ X ˆ ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló Observations Counts, travel times for equipped vehicles/passengers Counts at traditional sensors for all vehicles Passenger counts at line-stops (off-line) Passenger counts at some line-stops (on-line) Unobserved States OD Pattern/OD Flows OD Pattern/OD Flows State Space Model: hyperparameters Equipped vehicles/passengers All vehicles/passengers 2 . Why A State Space Model ? Page -16- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló Contents 1. Objective of this work 2. A Linear State Space Model approach 3. A Linear Kalman filter formulation for dynamic passenger matrices i. Definition of state variables and observation variables. ii. Statement of the equations of the KF linear formulation. iii. Time varying model parameters: travel time discrete distributions from BT data 4. KFX3T Prototype Testing by simulation 5. Automatization of KFX3T Model Building 6. Conclusions and further research Page -26- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 3. A Linear Kalman filter formulation for dynamic passenger matrices •Optimal Strategies for transit trips can be computed by any transportation planning software including equilibrium transit assignment. •Transit networks have been modeled with EMME4. •Transit strategies can be decomposed into simple paths in the expanded transit network. Those simple path flows constitute the state variables in the space-state model proposed. •Under uncongested transit assignment models optimal strategies do not depend on historic demand for the period of study computed. Page-34- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló B X Y A An Hyperpath for any (optimal) strategy can be decomposed into a finite number of acyclic simple paths and the expected cost of an hyperpath is roughly speaking the weighted average of its simple path costs. Expanded Graph of line sections Flows on lines can be expressed using path flows on strategies (hyperpaths) Page -37- Strategies and Hyperpaths B X Y A B X Y A Flows on physical transit segments ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló : flow of equipped passengers on simple paths e belonging to an optimal strategy for i-j OD; Most likely simple used paths are assumed to be the output of an optimal strategy transit assignment. Proportions assigned to active paths constitute an output of the linear KF proposal. : The historic observation variables during interval k on passenger counts on transit-stops for time interval length Δt; according to current time-varying model parameters, i.e. a column vector of dimension Q+I, whose structure is ( ) ( ) ( )( ) TT kqk ykz ~~ ~= ( ) ( ) ( ) ( ) ( ) v(k) ~ ~+        −=−=  Δg(k) kgkgF(k)kzkzkΔz ( ) kg ije ∆ Deviates of OD simple path flows on optimal strategy as state variables and deviates of counts on ICT sensors as observation equations 40 ( ) k g ije ~ 3. KF Approach : simple path flow deviations on optimal strategy for OD as state variables (I) ( ) kz ~ () kzq ∆ Page-40- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 3. KF Approach : simple path flow deviations on optimal strategy for OD as state variables(II) State vector equations AR(r) on deviates: ( ) ( ) ( ) ( ) kw1wkgwD1kg 1 ++−∆=+∆ ∑ = r w ( ) ( ) ( )( ) ky ~ ky ~ )−≈−=∆ (k)gg(k)AU(k)g(k)H(k T Observation vector equations: ( ) v(k) (k)v (k)v kz 2 1+∆=         +∆         =∆ g(k)F(k)g(k) E H(k) First block: deviates of counts on sensor points () () ( ) ( ) ( ) ( ) ( ) Iikq kqkgkgk q Kc JjIi kgk g ii J j Kc ijc J jiji ij i ijc ijc i ij i    1 ~ 1 ,1,1 ~ 1 :11 =−=∆ →= = == −≥ ∆ ∑ ∑∑ = == Second block: conservation flows for each entry and time interval k Networks •Several simple paths are considered to describe the optimal strategy for each selected OD pair and OD simple path flows change smoothly. Depends On experienced traffic state •H(t) BT Travel Times •Time-varying model parameters Travel times are considered •Several Δts (between 5 and 15 min) are to be considered: time lag effect is explicitly included in the formulation. Page-41- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló •Travel times Trs of passengers first boarding at any transit-stop with ICT sensor r headed during their journey through ICT sensor s at time interval k follow a certain distribution, no matter the selected simple path. •Approximate travel time distribution by discrete distribution with bin proportions updated according to on-line ICT data. •Bin proportions from each first boarding transit-stop to any measurement point are considered time-varying model parameters: structural constraints to sum 1 are required. – Fraction of passengers that require h time intervals to reach ICT sensor s at time interval k firstly captured at ICT sensor r ( related to transport zone) i. ( ) ( ) sensors ICT ofpair ),(1 10 1 srku Hhku H h h rs h rs ∑ = = =≥  3. KF Approach : Time varying model parameters obtained from ICT data – Travel times from equipped passengers (III) Page -42- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 3. A Linear Kalman filter formulation for dynamic passenger matrices: estimation process ( ) − ++++++ += k T1k k1k1k T1k k1k1k RFPFFPG ( ) ( ) k1k1k1k1k gFGd ++++ −+= 1z k ( ) ( ) k1k1k1k gFε+++ −+= 1kz ( ) k1k1k1k 1k 1k PFGIP +++ + + −= What can be said before the observations are considered? k Tk k k1k WDDPP+= + k k k1k Dgg= + Initialization What can be improved after the observations are considered? KF recursive dynamics Innovations: 0 1≥+= ++ + +1k k k 1k 1k d α gg Page -43- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló Contents 1. Objective of this work 2. A Linear State Space Model approach 3. A Linear Kalman filter formulation for dynamic passenger matrices 4. KFX3T Prototype Testing by Simulation 5. Automatization of KFX3T Model Building 6. Conclusions and further research Page -45- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 4. KFX3T Prototype Testing by simulation Test Network (EMME4) •Headway L1 and L4 is 15 min and otherwise set to 10 min •ICT sensors at all-stops ( Sx – all nodes and S4 nodes 3, 4, 5 and 7) •Travel speed is 20km/h •Boarding time 0 •Horizon 60 min •4 Time-slices Page -46- OD 8 9 1 180 120 2 60 180 ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 4. KFX3T Prototype Testing by simulation •Test Network (EMME4) –Optimal Strategies Assignment for the global period (static) –Flow is distributed at origins using a logit model with scale parameter 0.2. Page -47- –L1, L3, L4 for destination centroid 8. –L2, L4 for destination centroid 9. – Interarrival times of bus units assumed exponentially distributed ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 4. KFX3T Prototype Testing by simulation Test Network (EMME4) •Optimal Strategies Assignment for the global period (static) •Flow is distributed at origins using a logit model with scale parameter 0.2. Page -48- •L1, L3, L4 for destination centroid 8. •L2, L4 for destination centroid 9. •Common OD Pattern for each time-slice (15 min) accounting for 10-30-40-20 of total demand. •Interval 5 min. ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló ... Good convergence instance: Factor 1 – 150%OD flows- Factor 2-H1- Factor 3-Only at Bus-Stops •‘True Matrix’ and Initial Total matrix •Estimated Total matrix •Theil’s Coefficient •RMSEN Page-55- 270 180 90 270 172.5 127.5 60.9 200.0 0.11 0.15 0.24 0.09 0.25 0.35 0.53 0.21 180 120 60 180 ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló ... Non-convergent instance: Factor 1 – 100%OD flows- Factor 2-Hx-all •‘True Matrix’ and Initial matrix •Estimated Total matrix •Theil’s Coefficient •RMSEN Page-56- 150 150 120 120 170 130 138 102 0.19 0.13 0.33 0.33 0.42 0.32 1.10 0.57 •Target OD matrix (depends on simulation instance) 162 116 73 188 ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló ... Good convergence instance: Factor 1 – 150%s- Factor 2-H1 - Factor 3- Entries+BusStops (left) and (right) Bus-Stops Estimate OD flow; 159.92 Estimate OD flow; 200.03 Estimate OD flow; 118.08 Estimate OD flow; 60.94 y = 1.17 x - 22.45 R² = 0.9921 0 50 100 150 200 250 0 50 100 150 200 100% Equipped Passengers, Entries and Bus-Stops : Estimated vs Historic OD Passenger flows - 1h Page-57- Estimate OD flow; 172.51 Estimate OD flow; 184.69 Estimate OD flow; 127.49 Estimate OD flow; 55.32 y = 1.13 x - 16.92 R² = 0.9572 0 50 100 150 200 250 0 50 100 150 200 100% Equipped Passengers and Bus-Stops : Estimated vs Historic OD Passenger flows - 1h ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 4. KFX3T Prototype Testing by simulation: KPIs – according to design factors •Factors 3 and 1 – Robustness of the estimated OD flows (global KPIs) •Factor 2: Perfect OD Pattern Page-58- Factor 3 – Availability ICT Sensors Factor 1 – A priori total OD flows Global Theil Coefficient (GU) and RMSEN and R 2 according to nu parameter. In parenthesis KPIs for OD pair 1 50% 100% 125% 150% GU GRMSEN R2 GU GRMSEN R2 GU GRMSEN R2 GU GRMSEN R2 Mx-All Entries & BusStops 0.15 (0.12) 0.34 (0.26) 99.1% 0.15 (0.12) 0.34 (0.26) 99.1% 0.16 (0.13) 0.36 (0.28) 97.5% 0.17 (0.14) 0.38 (0.29) 94.7% Sx-All Bus Stops 0.19 (0.18) 0.42 (0.42) 94.4% 0.20 (0.19) 0.44 (0.43) 95.8% 0.20 (0.19) 0.45 (0.44) 95.3% 0.21 (0.20) 0.47 (0.45) 94.1% S4-Bus Stops 3,4,5,7 0.36 (0.23) 1.47 (0.51) 87.2% 0.34 (0.19) 1.31 (0.42) 91% 0.32 (0.17) 1.20 (0.36) 92.5% 0.26 (0.15) 0.95 (0.30) 92.9% ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló Contents 1. Objective of this work 2. A Linear State Space Model approach 3. A Linear Kalman filter formulation for dynamic passenger matrices 4. KFX3T Prototype Testing by simulation 5. Automatization of KFX3T Model Building 6. Conclusions and further research Page -60- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 5. Automatization of KFX3T Model Building To deal with medium size networks: a platform integrating EMME in order to provide: •A graphic description (centroids, nodes, links and connectors) and transit lines (stops, headways and itineraries). •A Transport Zoning System and historic demand matrix for the period of study. •The location of ICT sensors at transit-stops (identified by an additional segment attribute @nBT, in EMME terminology, and an additional line attribute, @sline, to identify lines affected by BT-equipped stops, either totally or partially). •OD paths involved in optimal strategies for the historic transit demand according to an Extended Transit Assignment, where OD flows are split between connectors in the origin zone using a logit model (scale parameter 0.5) and are subject to an OD path proportion greater than 5%. Page -61- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 5. Automatization of KFX3T Model Building •The total number of public transit trips was 47816.3 for a 2003 working day within 340 non-null cells, and an average value of 140 trips (max 1186 trips). •We fixed ICT equipped transitstops for three of the most important bus lines: L7, L8 and L13. Page -62- •After selecting OD pairs with captured flows greater than 10, these lines have a total load of 20765 transit trips in 151 OD pairs ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 5. Automatization of KFX3T Model Building •A strategy file is saved by EMME and the Extended Analysis tool reports path-based details on paths extracted from strategies in a text file. –This text file contains the path description included in the optimal strategies restricted to OD pairs and whose OD flow could be captured by some ICT sensors in accordance with historic demand and transit assignment. –The path file has a complex format and is post-processed using python script to generate the desired information in the data model of KFX3T. – For each ICT-equipped transit-stop, the captured optimal transit OD paths are identified. For each pair of ICT transit-stops, the paths and subpaths connecting both sensors are identified. •Report files related to OD pairs, nodes, links, etc. were converted to worksheet and .csv format files, in order to be read by the KFX3T model building procedures. This led to: – A network spreadsheet containing worksheets for: centroids, nodes and links. – A demand spreadsheet containing worksheets for: OD pairs, Entrances, Exits and OD paths involved in optimal strategies. – A measurement spreadsheet containing worksheets: Measures, SODMeasures, ActiveMeas, CapODPaths and Global (parameters). Page -63- ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 5. Authomatization of KFX3T Model Building Page -64- Flowchart with the main elements of KFX3T in the MATLAB application KFX3T Emme.m Emulation: passenger counts, travel times Batch file Python script EMME model Data model workbooks MAT files Dynamic Transit OD matrix Path details ICT equipped stops Itineraries OD flows Links Nodes Python scripts Historic Transit OD matrix ICSEng ‘14- August 19-21, LAS VEGAS, NEVADA … L.Montero , E. Codina and J.Barceló 5. Authomatization of KFX3T Model Building •The KFX3T internal data model is divided into MAT files that are loaded as needed into the program: Global.mat, Tuning.mat, Graph.mat, Demand.mat and Measures.mat. • Additionally, two additional MAT files have been included for internal use in order to simplify the access to some critical structures. •These two files are: AccDem.mat (related to accessing OD pairs and paths) and AccMes.mat (related to OD paths captured by each defined sensor and pairs of ICT sensors). Page -65-