Royal Statistical Society Bradford, 2017-01-25, University of Leeds Geography Department.

Talk structure

  1. Computing needs of transport planners

  2. Open source tools in statistics/transport

  3. Case studies (stplanr + PCT)

  • But first some context
  • Then let's talk solutions

Context

Premises

  • The transport system is not working well for anyone
  • To 'fix' it, policy interventions are needed
  • Policy interventions can be more effective when locally targetted
  • However, there are infinite potential interventions at the local level
  • Evidence is needed to prioritise among the infinity of options
  • Only a systematic and objective evidence base will do
  • And that means data + statistics! 🔢
  • And that means computing 🖥️
  • And that means human-computer interaction 👨👩💻
  • And that means software is vital for sustainable transport policy

What's wrong with the transport system?

"Works fine for me"

Locally targetted vs national interventions

  • Nationally uniform transport policies have several advantages
    • Avoid 'mixed messages'
    • In some cases essential (e.g. fuel prices)
    • We're all in it together
  • BUT, locally specific transport policies can boost cost-effectiveness
    • Should walking/cycle paths be the same width throughout?
    • Point facilities will be used more if they're located sensibly (e.g. bus stops)
    • Cycle share schemes much more effective when spatial configuration matches urban form

Some transport statistics

  • Transport eats time. We spend on average 6% of our lives (sleeping/resting: 37%; commuting: 1%; paid work: 25%) (King and Bergh 2017).

  • Transport eats space. More than half many US cities spaces are occupied by parking (~20%) and streets (~40%). In Texas, for example, 21.3% of land space was taken by surface parking (Source: oldurbanist.blogspot.co.uk)

  • Transport eats energy. In 2015 it accounted for 39.9% of final energy consumption (DECC).

Space used by transport (USA)

Energy use in transport (UK)

Energy use in Transport nationally

Final energy consumption (excluding non-energy use) was 1.9 per cent higher than in
2014 [0.3% seasonally adjusted], with rises in the domestic, transport and services sectors but with a fall in the industrial sector. The rise in consumption was due to increased
transport demand likely due to lower petroleum prices.

(DECC 2016)

Transport fuel prices

Source: DECC 2016

Computational needs of transport planners

Tools for the trade

Transport planning needs have a history

Forecasting urban travel

  • Book by Boyce and Williams (2015)

Origins of Transport planning

Credit: Crispin Cooper. See cardiff.ac.uk/sdna/

The origins of modelling

  • "urban travel forecasting was definitely 'where the action was' for young transportation engineers and planners entering the field in the 1960s" (Boyce and Williams 2015, 67).
  • heavily restricted by computing power
  • no consideration of walking or cycling

Available tools

Transport planning tools: expensive…

And potentially dangerous!

Tools for transport planning I

Source: Pixton.com

  • Are black boxes

Tools for transport planning II

Source: openclipart

  • Tools are blunt

Tools for transport planning III

Source: By James Albert Bonsack (1859 – 1924), Wikimedia

  • Are sometimes too complex!
  • Implications for others

Open source software for transport planning

Softare product Classification License
QGIS GIS GNU GPL
Grass GIS GIS GNU GPL
PostGIS/pgRouting Database GNU GPL
TRANUS Transport modelling Creative commons
AequilibraE Transport modelling Custom
UrbanSim Transport modelling Custom
MATSim Transport modelling GNU GPL
SUMO Transport modelling Apache 2.0
R Programming language GNU GPL
Python Programming language Python 2.0
stplanr R package MIT
activitysim Python package BSD

A broad classification, and use cases

  • General purpose products that have found many transport applications
  • Python
  • R
  • QGIS
  • Dedicated transport programs
  • MATSim
  • SUMO
  • Add-on packages that providing transport planning capabilities to existing (mature) programs
  • stplanr
  • AequilibraE
  • activitysim

The wider movement

  • Open data
  • Publicly accessible
  • The wider community

Open source in other sectors

  • We can learn from 'early adopter' sectors

Community buy-in

Testing many tools

Source: Camcycle.org

Participatory planning

Envisioning shifting travel patterns

Source: Leeds Cycling Campaign

Incorporation of new (open source?) digital technologies

Case studies

Origin-destination data

install.packages("stplanr")
library(stplanr)
## Loading required package: sp
data("flow")
nrow(flow)
## [1] 49
flow[1:3, 1:3]
##        Area.of.residence Area.of.workplace All
## 920573         E02002361         E02002361 109
## 920575         E02002361         E02002363  38
## 920578         E02002361         E02002367  10

Spatial data

data("cents")
cents@data[1:2,]
##       geo_code  MSOA11NM percent_fem  avslope
## 1708 E02002384 Leeds 055    0.458721 2.856563
## 1712 E02002382 Leeds 053    0.438144 2.284782
desire_lines = od2line(flow = flow, zones = cents)
plot(desire_lines)
points(cents)

Transport planning is somthing you do

Source: the Propensity to Cycle Tool (PCT) Lovelace et al. (2016)

Hot off the press: the cycle to schools layer

See our test server

The overlay between travel to school and work layers

  • Setup:
# load data
rf_schools = readRDS("~/npct/pctSchoolsUK/pctSchoolsApp/rf_leeds_schools_all.Rds")
rf_commute = readRDS("~/npct/pct-data/west-yorkshire/rnet.Rds")

# create bounding box polygon
bbox_poly = stplanr::bb2poly(rf_schools)
proj4string(bbox_poly) = proj4string(rf_commute)
## Warning in ReplProj4string(obj, CRS(value)): A new CRS was assigned to an object with an existing CRS:
## +init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0
## without reprojecting.
## For reprojection, use function spTransform
# spatial subset
rf_commute = rf_commute[bbox_poly,]

Visualisation code

Results: see rpubs.com/RobinLovelace/

## tmap mode set to interactive viewing

Headline result: huge potential to optimise network for children and adults

Solutions

The case for open source software in transport planning

Practical reasons

  • It's cheaper
  • Faster evolving
  • More robust: more eyes on it

Philosophical reasons

  • Transport Planning is intertwined with democracy and power relations
  • People will try to manipulate it for own benefits - transparency/reproducibility = key
  • Control of public sector organisations over their data and analysis capabilities
  • Hypothesis: Use open source -> greater good

Common objections to open source software

  • It's not user friendly
  • It's not where jobs are (now)
  • It doesn't have the support of trusted suppliers
  • Anyone can come and 'hack' your code!
  • Developer's don't get paid
  • Any more?

Open source software has no warranty…

What to keep, what to replace?

Keep Replace How
Terminology Inaccessible Online tools
Equations Proprietary ownership Open source licences
Use of scenarios Ageing software New software
Narrow scenarios of future Flexible models
Black boxes Simple and open method

Overlaps between energy and software transition

  • Both require 'systemic' change (Beddoe et al. 2009)
  • They seem like technical problems on the outset but are highly political
  • It takes time, commitment and persuasion
  • The benefits take time to realise

Could there be a mutually reinforcing feedback loop:

Shift in (digital) infrastructure -> change in behaviour and priorities?

We're (accidentally) doing something right in terms of coal

Source: DECC. Risk: electric cars.

Points of contention

Most people agree that:

  • Transport models are not working optimally
  • Open source software is 'good'
  • It would be good to save money and switch

Areas of disagreement:

  • How to get there
  • Whether it's a slow transition or 'cold turkey'
  • Who should write the code
  • Any volunteers (or funders)?

Solutions - policy

  • Incentivise low carbon, healthy travel
  • Build cycle paths (where they are most needed, of appropriate design)
  • Embed walking and cycling - urban realm improvements, facilities sign-posting
  • Subsidise car sharing solutions
  • Disincentivise high carbon solutions

  • Creative approaches > - Reducing worktime hours: "The three best performing scenarios were those that involved employees working a four-day week as they enabled companies to reduce energy use, and employees to reduce commuting" (King and Bergh 2017).

References

Lovelace, Robin. 2016. "Mapping out the future of cycling." Get Britain Cycling, 2016. P. 22 - 24. Available from getbritaincycling.net

Beddoe, Rachael, Robert Costanza, Joshua Farley, Eric Garza, Jennifer Kent, Ida Kubiszewski, Luz Martinez, et al. 2009. “Overcoming Systemic Roadblocks to Sustainability: The Evolutionary Redesign of Worldviews, Institutions, and Technologies.” Proceedings of the National Academy of Sciences 106 (8): 2483–9. doi:10.1073/pnas.0812570106.

Boyce, David E., and Huw C. W. L. Williams. 2015. Forecasting Urban Travel: Past, Present and Future. Edward Elgar Publishing.

King, Lewis C., and Jeroen C. J. M. van den Bergh. 2017. “Worktime Reduction as a Solution to Climate Change: Five Scenarios Compared for the UK.” Ecological Economics 132 (February): 124–34. doi:10.1016/j.ecolecon.2016.10.011.

Lovelace, Robin, Anna Goodman, Rachel Aldred, Nikolai Berkoff, Ali Abbas, and James Woodcock. 2016. “The Propensity to Cycle Tool: An Open Source Online System for Sustainable Transport Planning.” Journal of Transport and Land Use, December. doi:10.5198/jtlu.2016.862.