Showing posts with label Traffic Models. Show all posts
Showing posts with label Traffic Models. Show all posts

Thursday, February 17, 2022

New Paper: Synthetic Populations with Social Networks

When developing geographically explicit agent-based models, one thing we spend a lot of time on is building synthetic populations and then linking the agents in the synthetic population to each other.  To overcome this issue we have a new paper published in "Computational Urban Science " entitled "A method to create a synthetic population with social networks for geographically-explicit agent-based models" In this paper  Na (Richard) Jiang, Hamdi Kavak, Annetta Burger, William Kennedy and myself present a synthetic population generation method that also includes social networks and use the New York Metro as a study site, which covers an area of 262 x 234 km and is home to over 23 million people. 

To show the utility of this method we also present three simple applications (e.g., a disease , a disaster  and a traffic model) which utilize different parts of this synthetic population but are all geographically explicit and use networks in some shape or form. If this sounds of interest, below you can read the abstract from the paper, along with seeing some of the figures from our methodology and example applications. While at the bottom of the post we provide the full citation and a link to the paper. The paper itself also has links to actual code that generates the synthetic population and the resulting datasets and models  (code: https://bit.ly/SynPopABM; source and resulting synthetic population data: https://osf.io/3vsaj/) .  

Abstract: 

Geographically-explicit simulations have become crucial in understanding cities and are playing an important role in urban science. One such approach is that of agent-based modeling which allows us to explore how agents interact with the environment and each other (e.g., social networks), and how through such interactions aggregate patterns emerge (e.g., disease outbreaks, traffic jams). While the use of agent-based modeling has grown, one challenge remains, that of creating realistic, geographically-explicit, synthetic populations which incorporate social networks. To address this challenge, this paper presents a novel method to create a synthetic population which incorporates social networks using the New York Metro Area as a test area. To demonstrate the generalizability of our synthetic population method and data to initialize models, three different types of agent-based models are introduced to explore a variety of urban problems: traffic, disaster response, and the spread of disease. These use cases not only demonstrate how our geographically-explicit synthetic population can be easily utilized for initializing agent populations which can explore a variety of urban problems, but also show how social networks can be integrated into such populations and large-scale simulations.

Keywords: Synthetic Population Generation, Agent-Based Modeling, New York, Traffic Dynamics, Disease, Disaster

Study Area

Workflow for Generation of Synthetic Population and Networks

Creation of Social Networks: (a) Selected Population; (b) Creation of a Household Network; (c) Creation of Work and Educational Networks for each Member of the Household; (d) The Household, its Networks within the Full Census Tract

Model Component Structure of Population Respond to Disaster event

Agents’ Health Status After 1 Minute of the Disaster Event

Full Reference:

Jiang, N., Crooks, A.T., Kavak, H., Burger, A. and Kennedy, W.G. (2022), A Method to Create a Synthetic Population with Social Networks for Geographically Explicit Agent-Based Models, Computational Urban Science, 2:7. Available at https://doi.org/10.1007/s43762-022-00034-1

Friday, July 30, 2021

Generation of Reusable Synthetic Population and Social Networks

Building on our work on synthetic populations, Na (Richard) Jiang, Bill Kennedy, Hamdi Kavak, and myself have a new paper which was presented at the 2021 Annual Modeling and Simulation (ANNSIM) Conference entitled "Generation of Reusable Synthetic Population And Social Networks for Agent-Based Modeling." Rather than go into details about the paper, below is the abstract and as the conference was virtual, the presentation which accompanies the paper was prerecorded by Richard and is embedded below. If you want to find out more, at the bottom of the post there is a link to a draft of the paper.

Abstract: Within agent-based models, agents interact with each other (e.g., social networks) and their environment, and it is through such interactions more aggregate patterns emerge (e.g., disease outbreaks, traffic jams). While the popularity of agent-based modeling has grown, one challenge remains, that of creating and sharing realistic synthetic populations which incorporate social networks. To overcome this challenge, this paper introduces a new approach that creates a reusable synthetic population using the New York Metro Area as a study area. Our method directly incorporates social networks (i.e., connections within a family or workplace) when creating a synthetic population. To demonstrate the utility and reusability of the synthetic population and to highlight the role of social networks, we show two example applications: traffic dynamics and the spread of a disease. These applications demonstrate how our synthetic population method can be easily utilized for different modeling problems. 

Keywords: Synthetic Population, Agent-Based Modeling, New York, Traffic Dynamics, Disease Models.


  Full Reference: 

Jiang, N., Crooks, A.T., Kennedy, W.G., and Kavak, H. (2021), Generation of Reusable Synthetic Population And Social Networks for Agent-Based Modeling, in  Martin, C.R.,  Blas, M.J. and Psijas, A.I (eds.), Proceedings of the 2021 Annual Modeling and Simulation Conference (ANNSIM), Online, pp. 1-12.. (pdf)

Wednesday, June 30, 2021

Towards Large-Scale Agent-Based Geospatial Simulation

Running large scale spatial agent-based models is often a computational challenge. To address this challenge, at the upcoming International Conference on Social Computing, Behavioral-Cultural Modeling and Prediction and Behavior Representation in Modeling and Simulation (or SBP-BRiMS for short), Umar Manzoor, Hamdi Kavak, Joon-Seok Kim, Dieter Pfoser, Andreas Zufle, and Carola Wenk and myself have a paper entitled "Towards Large-Scale Agent-Based Geospatial Simulation."

In the paper we propose a scalable and general agent-based modeling and simulation framework for geospatial simulations involving networks. Specifically we propose to a solution for the parallelization of the single-threaded GeoMASON tookit by employing the Java Agent Development Environment (JADE) for the communication between threads (essentially, we divide the space of our agents into partitions, each handled by a separate thread of execution). We evaluate the proposed framework an simple urban model (created in MASON), which simulates simple patterns of life within an urban setting (click here for the blog post). The model has spatial network for agent movement and social network for maintaining social links. We compared the performance of the proposed framework on different settings, and concluded from experimentation that the proposed framework is outperformed by GeoMason when the agent population is small whereas with an increasing agent population, our proposed framework outperforms GeoMason as the complexity and time taken in simulation step increases substantially. If this sounds of interest, below we provide the abstract to the paper, along with some images of the framework and and simulation architecture. At the bottom of the page you can find the full citation and a link to the paper.

Abstract. Agent-based geospatial simulations have become very popular and widely used in examining the social and cultural characteristics of populations. Well-known toolkits such as NetLogo or MASON generally have scalability limitations, especially when the model and underlying spatial infrastructure become complex. This paper presents a framework for simulating large-scale agent-based geospatial systems by integrating the multi-agent systems toolkit JADE with the MASON agent-based modeling framework and its GIS extension, GeoMASON. The proposed Java-based framework can simulate large areas with hundreds of thousands of agents. It allows for the studying the evolution of a population and its environment over time. Such a framework provides the essential first steps for scalable model execution without sacrificing the model generality. 

Keywords: Large-scale geospatial simulation, Agent-based Modeling, MASON, Jade, GIS.

System Architecture of Proposed Framework.
Agent transfer between Zones.
Simulation using Proposed Architecture.

Full Reference:

Manzoor, U., Kavak, H., Kim, J-S., Crooks, A.T., Pfoser, D., Zufle, A. and Wenk, C. (2021), Towards Large-Scale Agent-Based Geospatial Simulation, 2021 International Conference on Social Computing, Behavioral-Cultural Modeling and Prediction and Behavior Representation in Modeling and Simulation, Washington DC. (pdf)

Tuesday, November 03, 2020

Integrating Social Networks into Large-scale Urban Simulations

Building on past posts about our work with respect to generating large scale synthetic populations for agent-based models, we have a new paper entitled "Integrating Social Networks into Large-scale Urban Simulations for Disaster Responses" that was accepted at the 3rd ACM SIGSPATIAL International Workshop on GeoSpatial Simulation. In the paper we discuss our method to create synthetic populations  which incorporates social networks to generate for the New York megacity region. To demonstrate the utility of our approach, we use the generated synthetic population to initialize an agent-based model which not only generates basic patterns of life (e.g., commuting to and from work), but also allows us to explore how people react to disasters and how their social networks are changed by such events. 

If sounds of interest to you, below we provide the abstract to the paper, along with our synthetic population workflow and some sample outcomes from the model. At the bottom of the post we provide the full reference and link to the paper (the paper itself also links to a GitHub repository where more information about the synesthetic population can be found).

ABSTRACT: Social connections between people influence how they behave and where they go; however, such networks are rarely incorporated in agent-based models of disaster. To address this, we introduce a novel synthetic population method which specifically creates social relationships. This synthetic population is then used to instantiate a geographically explicit agent-based model for the New York megacity region which captures pre- and post- disaster behaviors. We demonstrate not only how social networks can be incorporated into models of disaster but also how such networks can impact decision making, opening up a variety of new application areas where network structures matter in urban settings. 

KEYWORDS: Urban Simulation, Agent-based models, Synthetic Populations, Social Networks, Geographical Information Systems, Disasters.

Synthetic population and social network generation workflow.
Synthetic population at household level within a census track (A) and social network of one individual (B).
Example of a heat-map of traffic density (A) Manhattan is center of the plot. The impact area of the disaster and the health status of the agents (B).

Full Reference:

Jiang, N., Burger, A., Crooks, A.T. and Kennedy, W.G. (2020), Integrating Social Networks into Large-scale Urban Simulations for Disaster Responses. Geosim ’20: 3rd ACM SIGSPATIAL International Workshop on GeoSpatial Simulation, Seattle, WA. (pdf)

Thursday, January 12, 2017

Transportation in Agent-Based Urban Modelling


Sarah Wise, Mike Batty and myself have recently had a chapter published in Agent Based Modelling of Urban Systems entitled "Transportation in Agent-Based Urban Modelling". In the chapter we provide a critique in how transportation has been included or omitted from agent-based models and suggest how it might be handled in future applications.

Our argument is that transportation plays an important role in nearly every aspect of our daily lives. However, within agent-based models that explore urban problems, transportation is often omitted. Using representative case studies (e.g. from crime, disease spread, and land use) we present different levels/tiers of complexity at which transportation systems are captured with agent-based models (as shown in Table 1). Table 2 shows how these tiers of complexity are captured within crime models.  For interested readers, below you can see the abstract to our chapter.  


Abstract:
As the urban population rapidly increases to the point where most of us will be living in cities by the end of this century, the need to better understand urban areas grows ever more urgent. Urban simulation modelling as a field has developed in response to this need, utilizing developing technologies to explore the complex inter-dependencies, feedback's, and heterogeneities which characterize and drive processes that link the functions of urban areas to their form. As these models grow more nuanced and powerful, it is important to consider the role of transportation within them. Transportation joins, divides, and structures urban areas, providing a functional definition of the geometry and the economic costs that determine urban processes accordingly. However, it has proved challenging to factor transportation into agent-based models (ABM); past approaches to such modelling have struggled to incorporate information about accessibility, demographics, or time costs in a significant way. ABM have not yet embraced alternative traditions such as that in land use transportation modelling that build on spatial interaction in terms of transport directly, nor have these alternate approaches been disaggregated to the level at which populations are represented as relatively autonomous agents. Where disaggregation of aggregate transport has taken place, it has led to econometric models of individual choice or microsimulaton models of household activity patterns which only superficially embody the key principles of ABM. But the explosion in the availability of movement data in recent years, combined with improvements in modelling technology, is easing this process dramatically. In particular, agent-based modelling as a methodology has grown ever more promising and is now capable of emulating the interplay of urban systems and transportation. Here, we explore the importance of this approach, review how transportation has been factored into or omitted from agent-based models of urban areas, and suggest how it might be handled in future applications. Our approach is to take snapshots of different applications and use these to illustrate how transportation is handled in such models.

Keywords: Agent-based modelling; urban systems; urban modelling






Full Reference:
Wise, S. Crooks, A.T. and Batty, M. (2017). Transportation in Agent-Based Urban Modelling, in Namazi-Rad, M., Padgham, L., Perez, P., Nagel, K. and Bazzan, A. (eds), Agent Based Modelling of Urban Systems, Springer, New York, NY, pp. 129-148. (pdf)


Friday, April 29, 2011

Using agents to explore traffic: Part Two-Micro to Macro

Following on from a previous post on traffic modeling with agent-based models, I have been thinking of other work in this area and came across the following movies on Youtube. The first is a traffic simulator from Martin Treiber. What is interesting is the "coffeemeter" that gives an impression of the accelerations and jerks in the traffic. You can investigate this model further here: http://www.traffic-simulation.de/ or watch the movie below.




The question you might be asking in yourselves is, do such models work in reality? The mathematical theory behind these so-called "shockwave" jams was developed more than 15 years ago using models that show jams appear from nowhere on roads carrying their maximum capacity of free-flowing traffic – typically triggered by a single driver slowing down. Below is a movie of the NetLogo Traffic Basic Model exploring this principle.


Hopefully the movie above helps add something to your question. But if not check out the next movie (make sure the sound is on). In which a team of Japanese researchers recreated the phenomenon on a test-track by putting 22 vehicles on a 230-meter single-lane circuit. Drivers were asked to cruise steadily at 30 kilometers per hour, and at first the traffic moved freely. But small fluctuations soon appeared in distances between cars, breaking down the free flow, until finally a cluster of several vehicles was forced to stop completely for a moment. That cluster spread backwards through the traffic like a shockwave. Every time a vehicle at the front of the cluster was able to escape at up to 40 km/h, another vehicle joined the back of the jam. The full article can be read in New Scientist (click here).


Moving away from traffic jams, as the previous post highlighted we can also use agent-based models to look at traffic intersections. The movie shows a more complicated intersection than in the last post and shows how different intersections can be visualized and modeled.



But while the above movie is rather simplistic, agent-based models can be developed from such simple situations to more complex one. For example, if you can model one type of intersection what is stopping you for modeling more? The movie below shows a more complex set of intersections using Paramics (however, this is noted to be a microsimulation model, if you are interested in finding out the difference between microsimulation and ABM see here).



From a local scene we can also turn to exploring more larger scenes such as entire metropolitan regions. The movie below is of that of TRANSIMS microsimulation-agent based model applied to downtown Chicago:



What I find so interesting about such traffic models is how one can go from basic models at the micro level and scale up such models (and of adding more complexity) to explore more macro phenomena such as traffic jams at metropolitan scales.

Tuesday, March 29, 2011

Using agents to explore traffic

After spending time in the US, I am amazed how much one has to drive and this got me thinking about using agent-based models for traffic simulations (which is a large body of literature accompanying it). It also relates to my interests in urban systems and the fact that as cities have grown, transportation technologies have evolved (from walking, to trains etc), and now the automobile has become the dominant mode of transport for moving within and between cities. Trips range from journeys to work to shopping trips. The wide spread adoption and use of automobile is also one of the contributors to sprawl (in its many shapes and forms) as the car is not restrained by frequent stops or set routes, for instance such as trains are. Thus, if one can understand the relationships between land use and transportation one can investigate issues relating to urban sustainability. This is where agent-based models come in, in the sense they allow one to focus on the behavior of people. For example, how people decide to go to work.


ABM also allows us to explore simple thought experiments and how more aggregate results emerge from individual interactions such as: what is more effective, a four way stop or a traffic lights at a road intersection? The simple agent-based model presented below utilizes MASON and was created by Omar Guerrero of the CSS department at GMU. The rules of the model are simple, in the sense that at a four way stop, the vehicle that is first to arrive, it is first to move, unless two vehicles arrive at the intersection at the same time and then the vehicle has to give way to the car on the right. While at traffic lights vehicles must stop at red lights. The movie below shows part of the graphical user interface for a particular model run of both a four way stop and traffic light.


Even though this is a simple model, one can explore a number of issues such as how these different intersection configurations impact on the flow of traffic under different volumes of traffic. For example, at low traffic volumes in general, the stop sign is more effective (i.e. allows more cars to cross) than the traffic light. However, at greater traffic volumes the traffic lights out performs the four way stop (in the sense there are more cars in queues) but also with high traffic volumes, one can see oscillations in traffic waiting at the lights while the four way stops create long queues of traffic as shown in the figure below:



Moving away from micro patterns of traffic flows one can use ABM to explore daily commuting. For example, traffic models such as TRANSIMS or MATSim allow for the study of entire metropolitan regions and how traffic jams etc. form. To give a simple example of such a movement, the model presented below illustrates how many individuals can cause traffic jams. The model (using GeoMason) is based on commuters working within the Tyson’s Corner area of Virginia which boarders Washington DC. We take road and travel to work data from the US census and use this as the basis for our model.


The road data acts as a basis for our agents (red) to move from their homes (areas shaded green) to Tyson’s corner and the census data provides us with the number of agents who travel to the area on a daily basis. The agents attempt to find the shortest path from their home to the destination with preferential attachment to highways and freeways over smaller country roads. By running the model, cars start at homes and travel towards Tyson’s Corner and as more cars join certain sections of roads, traffic jams start to form (as speed is a function of the number of cars on a specific section of road). For example in the movie above, individual cars can be distinguished when they are not clustered but when traffic density increases, larger clusters develop.