45
www.cardiff.ac.uk/sdna www.cardiff.ac.uk/ sdna Spatial Design Network Analysis Plugin for QGIS Crispin Cooper October 2016

Dr Crispin Cooper - QGIS Plugin ‘sDNA’

Embed Size (px)

Citation preview

Page 1: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdnawww.cardiff.ac.uk/sdna

Spatial Design Network AnalysisPlugin for QGIS

Crispin Cooper

October 2016

Page 2: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Spatial Network Analysis

"Konigsberg bridges" by Bogdan Giuşcă - Public domain (PD), based on the image. Licensed under CC BY-SA 3.0

Euler, 1736

Page 3: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Spatial Network Analysis

"Konigsberg bridges" by Bogdan Giuşcă - Public domain (PD), based on the image. Licensed under CC BY-SA 3.0

Euler, 17363

33

5

Page 4: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Spatial Network Analysis

Euler Burgess (Concentric city model)Christaller (Central Place Theory)

Shimbel 1953 (Closeness)

Social network analysis (trendy!) Space Syntax sDNA

Freeman 1977 (Betweenness)

MIT UNA, etc

Page 5: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

The sDNA Toolbox

sDNA toolbox

Free & Open Source

“Free as in beer"(not open source)

Proprietary

ArcGIS

Autocad

Command Line

QGIS

Page 6: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Statistics on network buffers•Accessibility within radius

• Closeness• Improved accessibility measures• Network gravity model

•Flows/Betweenness for radius

•Network density within radius • Link count• Junction count• Total connectivity• Total length• Total angular cost• Total weight

•Severance • Total/mean geodesic length• Total crow flight distance• Mean geodesic diversion ratio

•Efficiency • Convex hull area• Convex hull perimeter• Convex hull maximum radius• Bearing of maximum radius• Hull shape index

•Two phase (generation/assignment) model

• Two phase betweenness• Two phase destination weight

Page 7: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Discrete Space Analysis

Page 8: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Discrete Space Analysis

Page 9: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Discrete Space Analysis

Page 10: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Discrete Space Analysis

Page 11: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Discrete Space Analysis

Page 12: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Continuous Space Analysis

Page 13: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Continuous Space Analysis

Page 14: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Continuous Space Analysis

Page 15: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Continuous Space Analysis

Page 16: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Continuous Space Analysis

Page 17: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Continuous Space Analysis

Page 18: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Demo

Page 19: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Why?

• Spatial analysis– Based on spatial proximity rather than networks– General toolbox

• Transport models– Highly detailed, reductionist, technical– Specialist – for non transport projects typically too

• Complex• Expensive (calibration)• Hard to adapt

Page 20: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Epidemiology

Page 21: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Convex Hull Maximum Radius 600m (HullR600)

“the furthest you can get (as the crow flies) from your point of origin, by walking 600m (taking obstacles into account)”…averaged across an enumeration district (major roads don’t count)A measure of network efficiency for pedestrians

Page 22: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Page 23: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

kj

2

2

2

2

1

1

1

1

1

2

2

2

1 2

2

2

22

2

2

2

2

1

2

1

2

2

1

2 2

2

2

2

2

1

2

2

2

1

2

2

1

2

1

2

2

2

2

1

1

2

2

22

2

22

1

1

22 2

3

22

1

1 2 2

2

2

2

2

2

2

2

2

1

1

1

1

1

2

1

1

1

1

1

1

1

11

1

2

1

1

11

1

11

Hay Festival

Home locations of survey respondents travelling by car

Numbers where shown show number of passengers per vehicle

Page 24: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Cardiff All non–residential address layer 2 2014

Three main patterns- Cardiff central cluster- Radial linear cluster- Dispersed location Alain Chiaradia 2016

Page 25: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

1 2 3 4 5 6 7 8 9 100%

10%20%30%40%50%60%70%80%90%

100%

s PO 400 m PDF

Shopping %Street length %

Shopping and street network length as functions of predicted flow

Primary road network27% of the shopping location are on 18% of most accessible street network.

Local super grid37% of the shopping location are on 14% of most accessible part of the street network

Pedestrian super-grid37% of the shopping location are on 11% of then most accessible part of street network.

Pedestrian local grid20% of shopping location are on 5% of the most accessible part of the street network.

1 most flow10 least flow

1 2 3 4 5 6 7 8 9 100%

5%

10%

15%

20%

25%

30%

35%

Shopping % Street length %

1 2 3 4 5 6 7 8 9 100%

10%20%30%40%50%60%70%80%90%

100%

s PO 800 m PDF

Shopping %Street length %

1 2 3 4 5 6 7 8 9 100%

5%

10%

15%

20%

25%

30%

35%

Shopping % Street length %

1 2 3 4 5 6 7 8 9 100%

10%20%30%40%50%60%70%80%90%

100%

s PO 2000 m PDF

Shopping %Street length %

1 2 3 4 5 6 7 8 9 100%

5%

10%

15%

20%

25%

30%

35%

Shopping % Street length %

1 2 3 4 5 6 7 8 9 100%

10%20%30%40%50%60%70%80%90%

100%

s PO 10,000 m PDF

Shopping %Street length %

1 2 3 4 5 6 7 8 9 100%

5%

10%

15%

20%

25%

30%

35%

Shopping % Street length %

Alain Chiaradia 2016

Page 26: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Machine learning• Penalized Regression (ridge or lasso)

– To a transport modeller, it’s a mild form of entropy maximization– To a Bayesian, it’s introducing priors for parameters to equal zero– To a frequentist, it’s a technique for handling multicollinearity

• Generalized cross-validation with bootstrapping– Avoids overfitting the model – used to tune penalty metaparameter only

• Weighting by – Minimizes a mixture of relative and absolute error– aims to minimize GEH as favoured by transport modellers– GEH thresholds need reconsidering for small flows but balance still taken

as appropriate

Page 27: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 28: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 29: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 30: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 31: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 32: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 33: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 34: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 35: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 36: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 37: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 38: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 39: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 40: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 41: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Combining multiple behaviours through machine learning…

Page 42: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Explains 78% of cycle flows based on minimal data (cross validated r2)• Visual reference for integrated

network planning• Improve current models of cost

benefit (HEAT)

Combining multiple behaviours through machine learning…

Page 43: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

45% of cycle-to-work

decisions explainedby urban design

…without knowing places of work

Page 44: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna

Page 45: Dr Crispin Cooper - QGIS Plugin ‘sDNA’

• www.cardiff.ac.uk/sdna