August 15 Social networks module, MATSim Castasegna meeting, October 2007 Jeremy Hackney.

Slides:



Advertisements
Similar presentations
Solving problems by searching
Advertisements

Juni 14 1 New actors in MATSim –T: Agent based retailers F. Ciari IVT – ETH Zürich MATSim Seminar - Castasegna.
Social network partition Presenter: Xiaofei Cao Partick Berg.
Pete Bohman Adam Kunk.  Introduction  Related Work  System Overview  Indexing Scheme  Ranking  Evaluation  Conclusion.
Analysis and Modeling of Social Networks Foudalis Ilias.
Pattern Recognition and Machine Learning: Kernel Methods.
Spatial statistics Lecture 3.
Randomized Algorithms Kyomin Jung KAIST Applied Algorithm Lab Jan 12, WSAC
CONNECTIVITY “The connectivity of a network may be defined as the degree of completeness of the links between nodes” (Robinson and Bamford, 1978).
Networks FIAS Summer School 6th August 2008 Complex Networks 1.
Date:2011/06/08 吳昕澧 BOA: The Bayesian Optimization Algorithm.
Using Structure Indices for Efficient Approximation of Network Properties Matthew J. Rattigan, Marc Maier, and David Jensen University of Massachusetts.
Evolutionary Computational Intelligence
Agenda Overview Why TransCAD Challenges/tips Initiatives Applications.
Semantic text features from small world graphs Jure Leskovec, IJS + CMU John Shawe-Taylor, Southampton.
Code and Decoder Design of LDPC Codes for Gbps Systems Jeremy Thorpe Presented to: Microsoft Research
Simulation Models as a Research Method Professor Alexander Settles.
Distance Indexing on Road Networks A summary Andrew Chiang CS 4440.
Systematic Analysis of Interactome: A New Trend in Bioinformatics KOCSEA Technical Symposium 2010 Young-Rae Cho, Ph.D. Assistant Professor Department of.
Network Measures Social Media Mining. 2 Measures and Metrics 2 Social Media Mining Network Measures Klout.
Department of Computer Science, University of California, Irvine Site Visit for UC Irvine KD-D Project, April 21 st 2004 The Java Universal Network/Graph.
Models of Influence in Online Social Networks
Random Graph Models of Social Networks Paper Authors: M.E. Newman, D.J. Watts, S.H. Strogatz Presentation presented by Jessie Riposo.
The Erdös-Rényi models
Topic 13 Network Models Credits: C. Faloutsos and J. Leskovec Tutorial
Lesson 5 – Looking at the Output MATSim Tutorial, 2011, Shanghai 1.
Preparing Data for Analysis and Analyzing Spatial Data/ Geoprocessing Class 11 GISG 110.
Destination Choice Modeling of Discretionary Activities in Transport Microsimulations Andreas Horni.
Modeling Destination Choice in MATSim Andreas Horni IVT ETH Zürich July 2011.
Glasgow 02/02/04 NN k networks for content-based image retrieval Daniel Heesch.
Science: Graph theory and networks Dr Andy Evans.
Architecture David Levinson. East Asian Grids Kyoto Nara Chang-an Ideal Chinese Plan.
Online Algorithms By: Sean Keith. An online algorithm is an algorithm that receives its input over time, where knowledge of the entire input is not available.
Cognitive ability affects connectivity in metapopulation: A simulation approach Séverine Vuilleumier The University of Queensland.
Chapter 4 – Descriptive Spatial Statistics Scott Kilker Geog Advanced Geographic Statistics.
1 Preferred citation style for this presentation Balmer, M. (2006) Next Steps: Detail Discussion of Forthcoming Tasks, MATSIM-T Developer Workshop, Castasegna,
ZACH MA WINTER 2015 A Parallelized Multi-Agent Transportation Simulation Using MASS MATMASSim.
ITEC 2620A Introduction to Data Structures Instructor: Prof. Z. Yang Course Website: 2620a.htm Office: TEL 3049.
Most of contents are provided by the website Graph Essentials TJTSD66: Advanced Topics in Social Media.
Optimizing Pheromone Modification for Dynamic Ant Algorithms Ryan Ward TJHSST Computer Systems Lab 2006/2007 Testing To test the relative effectiveness.
Lecture 10: Network models CS 765: Complex Networks Slides are modified from Networks: Theory and Application by Lada Adamic.
Location Choice Modeling for Shopping and Leisure Activities with MATSim: Utility Function Extension and Validation Results A. Horni IVT ETH Zurich.
CS270 Project Overview Maximum Planar Subgraph Danyel Fisher Jason Hong Greg Lawrence Jimmy Lin.
Location Choice Modeling for Shopping and Leisure Activities with MATSim: Status Update & Next Steps A. Horni IVT, ETH Zurich.
Lesson 4 1 Looking closer at the input elements Learn how the initial demand was created for Switzerland Create a single agent using MATSim tools (the.
Coevolutionary Automated Software Correction Josh Wilkerson PhD Candidate in Computer Science Missouri S&T.
Mix networks with restricted routes PET 2003 Mix Networks with Restricted Routes George Danezis University of Cambridge Computer Laboratory Privacy Enhancing.
Performance Evaluation Lecture 1: Complex Networks Giovanni Neglia INRIA – EPI Maestro 10 December 2012.
Context: the Governor’s Climate Roadmap Overall goals –quantify the relationship between land use and transportation sector greenhouse gas (GHG) emissions.
Informatics tools in network science
Refined Online Citation Matching and Adaptive Canonical Metadata Construction CSE 598B Course Project Report Huajing Li.
Topical Analysis and Visualization of (Network) Data Using Sci2 Ted Polley Research & Editorial Assistant Cyberinfrastructure for Network Science Center.
Cmpe 588- Modeling of Internet Emergence of Scale-Free Network with Chaotic Units Pulin Gong, Cees van Leeuwen by Oya Ünlü Instructor: Haluk Bingöl.
Artificial Intelligence Solving problems by searching.
Solving problems by searching Chapter 3. Types of agents Reflex agent Consider how the world IS Choose action based on current percept Do not consider.
Network (graph) Models
Solving problems by searching
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Empirical analysis of Chinese airport network as a complex weighted network Methodology Section Presented by Di Li.
Gephi Gephi is a tool for exploring and understanding graphs. Like Photoshop (but for graphs), the user interacts with the representation, manipulate the.
Routing in Packet Networks Shortest Path Routing
Network Science: A Short Introduction i3 Workshop
Methodology & Current Results
Networked Life NETS 112 Fall 2014 Prof. Michael Kearns
Department of Computer Science University of York
ITEC 2620M Introduction to Data Structures
Practical Applications Using igraph in R Roger Stanton
Graphs.
Presentation transcript:

August 15 Social networks module, MATSim Castasegna meeting, October 2007 Jeremy Hackney

Social interactions in transportation science Long term how travel technology and other factors influence contacts Short term how social contacts influence activity travel choices, mental maps, spatial discovery

Social interaction and travel behavior Transportation supply Geography Activity travel behavior Social behavior Transport planning Sociology Statistical physics New areas

Features of the Social Network Module Initial social network Face to face interactions (spatial) Modify social network Other interactions (non-spatial) Modify activity plans using social influence model Re-evaluate plans Calculate complex network statistics Output movements, socializing, and statistics

Module API classes EgoNetwork (Person.knowledge) A map of affiliated Persons and SocialLinks to them CoolPlaces (Person.knowledge.map) Facilities <> Activities SocialNetwork A map of EgoNetworks Initialization, modification methods Knowledge is modified (Person) Ego Network CoolPlaces Interactors (SocialNetwork) Spatial (face to face) NonSpatial (not observed, not face to face) SocialNetworkStatistics Probes of social and travel behavior

MATSim Controller Load Data Startup Adjust Plans Shutdown.xml: Plans World Network Facilities Matrix Census Etc. Choose Strategy and Scoring Replan Strategy

Social Network Controller Load Data Startup Adjust Plans Shutdown.xml: Plans World Network Facilities Matrix Census Etc. Choose Strategy and Scoring Initialize SocialNet SocialNet Interactions

NOTE: Scoring For quickly generating the social network, new evaluation of the new plans is necessary. However, precise traffic assignment is not important. MobSim in RePlanning can be a simple Euclidean distance. I have not programmed this, though. Instead, I generate the social network quickly by iterating outside of the RePlanning loop. I have had to write my own scoring function (not a standard MATSim scoring function, which is tied to the replanning package). IMPROVEMENT: I want to use the MATSim scoring package but I need a simpler plan scoring device than full assignment

NOTE: Coupling Partial relaxation technique used for socializing Number of iterations of socializing before replanning is adjustable This amounts to variable coupling strength between social network algorithm and travel algorithms This will be very important, I think (see sample results)

SNInteractions Spatial Interactions Nonspatial Interactions Link Removal Exchange Knowledge Return SocialNet Calculate and write out Statistics Map agents <> activity locations Agents interact at locations Write out Social Net (Negotiate activities) Wrapup Input SocialNet and Plans

SN Plan Adjustments Probe Knowledge Change Copied Plan Copy Selected Plan Pick Activity of same Type from Plan Return Plans Calculate and write out Statistics Pick Type of Activity Pick Facility of this Type from Knowledge Either Re-Assign or other Measure Replace its Facility from Knowledge Evaluate Change Input SocialNet and Plans

Example "experiment" Initial social networkErdös/Renyi Face to face interactionsRenew link or make friend Modify social networkRemove "old" links Other interactionsExchange info about locations Introduce friends of friends Modify activity plansSwitch secondary location Re-evaluate plansSelect: shortest total length Calculate complex network statistics Output movements, socializing, and statistics

Example "experiment" 1008 randomly generated agents 0-3 random out of home activities Random activity destinations Equal time for each activity 1 day Network: Source: Michael Balmer 2007

Sample Configuration File

Analysis 1: Overview Calculating statistics in MATSim run requires JUNG library Support libraries for JUNG Costs time, information not used in run (analysis only) Other statistics from output network (iterations) in Space-ASCII Postprocess with R and Pajek Postprocessing will be impossible with larger networks/bigger files

Analysis 2: Some output files Agent file (nodes) iter id homeid deg asd1 asd2 asd3 clust plantype numknown NaN hlwhh hhh hhhhh hehh 0... Edge file (edges) iter tlast tfirst dist egoid alterid purpose timesmet initialized renewwork newrandomintro newleisure 1... Graph file (statistics) iter deg clust clustratio asd1 asd2 asd3 dyad_dist link_age meet_freq Infinity

Analysis 3: Analysis tools Network statistics: MATSim  /socialnets/stats  R .pdf's  single.pdf Visualization: MATSim  /socialnets/pajek  Pajek .svg Movies of "Evolution" would be possible if I wrote out the format KML is no problem except HUGE files and not sure what it shows Automatic detection of clusters, different stats from MATSim would give more insight

For output example See Frontiers in Transportation presentation (inserted ) Model 1 no optimization of activities: only iterate social network (friends-of-friends meeting, spatial meeting) Model 2 optimize secondary locations: each social network iteration (friends-of-friends meeting, spatial meeting, exchange of spatial information), replan by changing secondary location. Choose path with shortest-length chain (no MobSim)

Validation of social network output Exponential degree distribution P(ij)~exp(N(z)) Average degree Clustering coefficient > random Short path lengths Homophily (assortativity) Geographic attributes Visit frequency vs. distance, etc.

Analysis: Sample Degree Distribution Activities constant Activities optimized Log-normal Log-log

Analysis: Sample Graph Statistics, N=1008 Run configuration DiameterNumber of components Average clustering ratio relative to Erdös/Renyi Average Degree Constant activity plan Optimized activity plan Erdös/Renyi reference graph ~12±-1~48±  The 2 social network graphs have exponentially distributed degree which is the same whether activities are replanned or not. However other graph and travel statistics are very different in the two models.

Analysis: Sample Activity Space Measures Plan type = "hwlh" Circle representation of average distance to all activities (asd1) Circle representation of average distance to all friends (asd2) Sum of arrow length is Euclidean- based length of plan (activity chain) (asd3)

Analysis: Sample Activity Space Measures No replanning of secondary activity locationReplanning secondary activity location each iteration of social network

Calculation size Interaction calculation scales as N * degree ~ pN * N where p is the percent of population that agent knows, i.e. a function of 1/N Knowledge exchange calculation scales as N * q * degree where q is the number of places known to the agent Introducing friends calculation scales as N * degree