Modelling urban traffic using the Neo4j graph database

18
Modeling Urban Traffic using the Neo4j Graph Database GGE 4700 Technical Report Presented by Jacob Wood Supervisor Dr. Monica Wachawicz THE UNIVERSITY OF NEW BRUNSWICK 2015

Transcript of Modelling urban traffic using the Neo4j graph database

Page 1: Modelling urban traffic using the Neo4j graph database

Modeling Urban Traffic using the Neo4j Graph Database

GGE 4700

Technical Report

Presented by Jacob Wood

Supervisor

Dr. Monica Wachawicz

THE UNIVERSITY OF NEW BRUNSWICK

2015

Page 2: Modelling urban traffic using the Neo4j graph database

Motivation

• Volume of traffic: simulation, small samples for collection

• Best way to store and manage the future data

• Most appropriate representation for a specific use

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 2

Page 3: Modelling urban traffic using the Neo4j graph database

Research Objectives

• Creating a Network Representation of a section of the road network

• Collect traffic Volumes from various sources at multiple scales

• Determine best graph representation traffic network

• Learning how to store and query traffic data using a new Software (Neo4j database)

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 3

Page 4: Modelling urban traffic using the Neo4j graph database

Traffic Volumes

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 4

Regent St. & Priestman St. Intersection

Page 5: Modelling urban traffic using the Neo4j graph database

Wingz Technologies (2015)

Porta(2015)

Dual vs. Primal

Dual: • Focus on the flow of traffic

• Mathematically driven

• Streets as nodes

• Intersections as the relationship

Primal: • Resembles a map

• Intersections as nodes

• Streets as the relationship

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 5

Page 6: Modelling urban traffic using the Neo4j graph database

Methodology Neo4j • Importing data

• Creating nodes and links

• Adding attributes

• Querying the data

• Comparing scale

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 6

Page 7: Modelling urban traffic using the Neo4j graph database

Network Representation Streets:

• SMYTHE • REGENT • PROSEPECT • PRIESTMAN • MONTGOMERY • YORK • KINGS COLLEGE • MITCHELL • DUNDONALD / BEAVERBROOK • HANWELL • BRUNSWICK • WOODSTOCK • KING • QUEEN

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 7

Page 8: Modelling urban traffic using the Neo4j graph database

Dual Representation (1/4)

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 8

Page 9: Modelling urban traffic using the Neo4j graph database

Dual Representation (2/4)

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 9

Page 10: Modelling urban traffic using the Neo4j graph database

Relationship (3/4)

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 10

a b

Name Smythe Priestman

Type Local Local

Length 3.15 km 1.64 km

AADT 16400 11400

Page 11: Modelling urban traffic using the Neo4j graph database

Relationship (4/4)

Relationship type • Intersects

Properties • Street type

• Street length

• Average Annual Daily Traffic (AADT)

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 11

Page 12: Modelling urban traffic using the Neo4j graph database

Primal Representation (1/2)

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 12

Page 13: Modelling urban traffic using the Neo4j graph database

Primal (2/2)

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 13

Properties • Name • Northing & Easting • AADT Northbound • AADT Eastbound • AADT Southbound • AADT Westbound

Page 14: Modelling urban traffic using the Neo4j graph database

Query 1 AADT Information

Dual

• AADT Volumes > 10000

• resultst ……

Primal

• AADT Northbound > 5000

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 14

Page 15: Modelling urban traffic using the Neo4j graph database

Query 2 Miscellaneous

Dual

Street Length > 2500 m

Primal

Sum of AADT Southbound per Day

Result:

90398 (Vehicles Southbound Each day)

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 15

Page 16: Modelling urban traffic using the Neo4j graph database

Conclusions

• Promising application of graph databases for traffic data integration

• Importance

• Complexity

• Dual vs. Primal

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 16

Page 17: Modelling urban traffic using the Neo4j graph database

Future Work

• More dense network

• Import real-time data for observation

• Provide service to City Centers

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 17

Page 18: Modelling urban traffic using the Neo4j graph database

Acknowledgements

Dr. Monica Wachowicz, GGE @ UNB

Mr. Darren Charters, City of Fredericton

Dr. Eric Hildebrand, Civil Engineering - Transportation @ UNB

Mr. Tim Holyoke, Exp. Fredericton

Tuesday, April 14, 2015 Modeling urban traffic using the Neo4j graph database 18