class: center, middle, inverse, title-slide # Development of a MultiModal Travel Demand Module for the Regional Strategic Planning Model tool ## Experience of contributing to the VisionEval project ### Liming Wang, Huajie Yang, Brian Gregor, and Tara Weidner ### 6/25/2018 --- # Outline - The VETravelDemandMM module - Innovations - The process of contributing to VisionEval - Reflections --- # The VETravelDemandMM module - Started in 2015 as an Oregon DOT SPR project to better capture mode shifting for the Regional Strategic Planning Model (RSPM) tool to - Incorporate non-auto modes into a mode choice module for the RSPM tool; - Explore and utilize the best data sources available for model estimation; - Leverage this effort for additional research and expand the scope to include emerging modes (bike sharing, car sharing, shared automated vehicles). --- background-image: url("resources/RSPM-flow-chart_v4.png") background-size: 100% <!--  --> --- # Progress - Scope includes review of literature & data, model design and testing, and finally implementation - The implementation was orginally planned for RSPM/GreenSTEP (ver 3.5) - Modes/models included: - Annual Average Daily Vehicle Models Travelled (VMT) model - Transit trips (frequency and length) and Person Miles Travelled (PMT) - Biking trips and PMT - Walking trips and PMT - Products (so far): - Project working papers and report deliverables - A poster presentation at the 2018 TRB annual meeting - A manuscript under review for publication at the Journal of Transport and Land Use - TRB ITM 2018 --- background-image: url("resources/ve-spr788.png") background-size: 75% --- # Innovations - Utilizing **a novel nationwide dataset** of highly detailed information of households (2009 NHTS) and built environment (EPA Smart Location Database) with a complete US coverage; - Modeling **annual average daily Vehicle Miles Traveled (AADVMT)**, instead of the VMT during the day of the survey commonly used in similar models; - Use of **cross validation** in model development to avoid overfitting; - Conducting **model selection**, in addition to variable selection, in the model development process to select the best model structure among a handful of options; - **Implemented as a self-contained R package for VisionEval**, which contains documents and functions for model (re-)estimation and prediction; - The model development process, from data processing, model estimation, validation and testing, to report and document compiling, **follows the best practice of reproducible research**; results and products derived from our work, including this ITM paper/presentation, is fully reproducible by others (sans confidential data). --- # Model Selection <img src="index_files/figure-html/unnamed-chunk-1-1.png" style="display: block; margin: auto;" /> --- # Elasticities <!-- I'm not going to show you the usual model estimation results etc here, but just to showcase two examples where I think the new implementation has done a good job -->  --- background-image: url("resources/validation-vetdm.png") background-size: 100% # Validation: VETravelDemandMM Predictions --- background-image: url("resources/validation-rspm.png") background-size: 68% # Validation: RSPM Predictions --- background-image: url("resources/validation-ohas.png") background-size: 100% # Validation: "Observed" OHAS --- # VisionEval Framework - When the project started, VisionEval (formerly RSPM Framework) was still on the drawing board; - As VE development picked up steam and materialized, the project team and TAC decided that it made more sense to implement for VE instead; - Started swtiching to implement as a VE module package in 12/2016; - Amended the Scope of Work to include the contribution review in 02/2017 --- # VETravelDemandMM Implementation - GitHub Repository: https://github.com/cities-lab/VETravelDemandMM - A standard R package with - inst/extdata - external datasets (HPMS, NTD, Place Types etc; 2009 NTHS and SLD are dependencies as separate packages) - data-raw/ - scripts for model estimation; can be adapted for re-estimating models with new data - data/ - estimated R model objects - R/ - implementation of the module - man/ - manuals for functions implemented in the package - vignettes/ - vignettes (documents) for the package, including an introduction document, contribution review and feedback - test/ - tests that are automatically with travis-ci [](https://travis-ci.org/cities-lab/VETravelDemandMM) --- # Contribution Review Process - [Contribution Review Criteria Check List](https://github.com/gregorbj/VisionEval/wiki/Contribution-Review-Criteria) - [Responses to Contribution Review Criteria](https://cities-lab.github.io/VETravelDemandMM/Review.html) - [Pull Request](https://github.com/gregorbj/VisionEval/pull/130) - [Comments from the Review team](https://github.com/gregorbj/VisionEval/wiki/Example-Review#feedback) --- # Reflections - The modular VE framework, along with the design principle, sample modules, extensive documentation and coding style guide, is extremely helpful; - Best practices we follow facilitate incorporating our code with the VE code base: - The git/GitHub workflow - Automated tests and continous integration - Code organization as R package - Reproducible research practice - Working closely with VE core developers like Brian Gregor and review team members (Tara Weinder, Ben Stabler, et al) helped tremendously; - Bridging the gap between transportation research and professional practice and leveraging SPR/UTC funding --- # Acknowledgements - Oregon Department of Transportation (SPR 788) - National Institute for Transportation and Communities (NITC-881)