Showing posts sorted by relevance for query NLP. Sort by date Show all posts
Showing posts sorted by relevance for query NLP. Sort by date Show all posts

Thursday, September 07, 2023

Agent-Based Modeling of Consumer Choice

At the upcoming International Conference on Geographic Information Science (GIScience 2023) Boyu Wang and myself have a new paper entitled "Agent-Based Modeling of Consumer Choice by Utilizing Crowdsourced Data and Deep Learning." In the paper we explore how through mining Yelp reviews can inform an agents choices of restaurants. The model itself was created in Mesa and uses Mesa-Geo and  more details about the model can be found at https://github.com/wang-boyu/yelp-abm.  If this sounds of interest, below you can see the abstract to the paper, some fugues including the graphical user interface of the model and a link to the paper.

Abstract: People’s opinions are one of the defining factors that turn spaces into meaningful places. Online platforms such as Yelp allow users to publish their reviews on businesses. To understand reviewers' opinion formation processes and the emergent patterns of published opinions, we utilize natural language processing (NLP) techniques especially that of aspect-based sentiment analysis methods (a deep learning approach) on a geographically explicit Yelp dataset to extract and categorize reviewers' opinion aspects on places within urban areas. Such data is then used as a basis to inform an agent-based model, where consumers' (i.e., agents') choices are based on their characteristics and preferences. The results show the emergent patterns of reviewers' opinions and the influence of these opinions on others. As such this work demonstrates how using deep learning techniques on geospatial data can help advance our understanding of place and cities more generally.


Keywords: aspect-category sentiment analysis, consumer choice, agent-based modeling, online restaurant reviews.

An overview of proposed agent-based model logic.

Average star rating vs. average sentiment by aspect category for 200 randomly selected restaurants in the City of St. Louis, MO.

The prototype agent-based model (a) with simulated (b) and actual visiting patterns (c).

Full reference:

Wang, B. and Crooks, A.T. (2023), Agent-Based Modeling of Consumer Choice by Utilizing Crowdsourced Data and Deep Learning, in Beecham, R., Long, J.A., Smith, D., Zhao, Q., and Wise, S (eds), Proceedings of the 12th International Conference on Geographic Information Science (GIScience 2023), Dagstuhl Publishing, Dagstuhl, Germany., pp. 81:1-81:6. (pdf)


Wednesday, May 27, 2026

New Paper: Exploring Fear in Urban Environments

In the past we have written about how we have used social media to study a plethora of topics with respect the the form and function of cities among many other things. But one thing we have not explored is fear and more specifically fear of crime and how this can be mined through geosocial media. 

This has now changed with a new paper entitled "Exploring Fear in Urban Environments: Place and Space Analysis of Social Media Data" which has recently been published in Applied Geography.  In this paper, Ying Zhou and myself extract fear related posts from social media and examine the places and spaces where people experience fear, as well as the factors that contribute to it in New York City. 

We do this by utilizing Natural Language Processing (NLP) techniques for sentiment and text analysis, including a RoBERTa-based emotion classification model and the BERTopic model for topic modeling. The former model narrowed the raw data to those with the dominant emotion of fear, and the latter analyzed space- and place-related features that contribute to the fear sentiment. Then, the selected social media data were analyzed using spatial clustering methods (i.e., Hotspot Analysis (Getis-Ord Gi*) and Local Moran’s I) and compared with urban crime data for weekly trends and spatial patterns. As such the paper has the following research objectives:
  1. exploring places where people expressed fear through social media; 
  2. making comparisons between safety-related fear and crime from the perspective of both time and space; 
  3. extracting urban environmental and social features that lead to fear.

If this sounds of interest, and you wish to find out more with respect to our findings, below you can read the abstract to the paper, see some of the figures which describe our research methodology and results while at the bottom of the post you can find a link to the paper itself. Finally the code we utilized in the paper can be found at https://osf.io/y7xfc/overview.

Abstract:

One goal of creating livable cities is to enhance public safety. While previous research in urban studies has focused on correlations between physical environments and crime, it has typically relied on criminal statistics. However, fear of crime is an emotional response to perceived risks rather than a direct reflection of crime levels, so it cannot be analyzed solely by crime data. Additionally, urban planning today has gradually shifted its focus from a top-down to a bottom-up approach, making it essential to understand and foster spaces where residents feel safe. This research examines the spaces and places where people experience fear, as well as the factors that contribute to it, in New York City. We utilized social media data to gather people’s expressions of the city and identified posts expressing fear emotion using the RoBERTa-based model and a rule-based classifier. Then, the selected social media data and crime were compared temporally by weekly trends and spatially by clustering methods (i.e., Hotspot Analysis (Getis-Ord Gi*) and Local Moran’s I). The results show that their temporal and spatial patterns partially have limited alignment. To delve into the origins of fear, we extend our analysis by adopting BERTopic to identify topics and summarize them into themes (e.g., places, transportation, people, others) to understand the bottom-up emergence of fear, thereby informing a people-centered approach to research on urban issues. 

Keywords: Social media; Natural language processing; Sentiment analysis; Urban environment.

Methodology framework.

An example of textual analysis on fear-related tweets: from machine-generated topics to human-interpreted themes describing fear in NYC.

Weekly trends comparison between safety-related fear and violent crime.

Clustering features analysis by the method of hotspot analysis (Getis-Ord Gi∗).

Full Reference: 

Zhou, Y. and Crooks, A.T. (2026), Exploring Fear in Urban Environments: Place and Space Analysis of Social Media Data, Applied Geography, 192: 104051 (pdf)

Wednesday, October 04, 2023

Leveraging newspapers to understand urban issues

In the past, this blog has explored several aspects of Detroit, such as how well its covered with Volunteered Street View Imagery or how through the use of agent-based models one can explore issues with urban shrinkage. Keeping up with the theme of shrinkage and Detroit but at the same time utilizing our growing interest in natural language processing (especially topic modeling) we (Na (Richard) Jiang, Hamdi Kavak, Wenjing Wang and myself) have a new paper entitled "Leveraging newspapers to understand urban issues: A longitudinal analysis of urban shrinkage in Detroit" published in Environment and Planning B. 

In the paper, we take 6794 English news articles published by national and local press organizations (e.g., Forbes, The New York Times, Newsweek, The Detroit News) between 1975 to 2021 using the keywords “Detroit”, “shrink” and “decline.” These keywords were selected based on the characteristics of the study area (i.e., Detroit) and the phenomenon of urban shrinkage. With these data we then use BERTopic to detect and classify all collected news articles into certain topics. We chose BERTopic because it captures the semantic relationship among words converting sentences and words to embedding and automatically generates the topic unlike other NLP topic modeling techniques (e.g., LDA). Our topic modeling results identify several insights with respect to Detroit's shrinkage. For example, we can detect the side effects of the 2007-2009 economic recession on Detroit's automobile industry, local employment status, and the housing market. If sounds of interest and you want to find out more, below we provide the abstract, some figures from the paper including the methodology workflow and an example of the resulting topics over time. Finally, at the bottom of the page you can see the full reference and s link to the paper itself.

Abstract 

Today we are awash with data, especially when it comes to studying cities from a diverse data ecosystem ranging from demographic to remotely sensed imagery and social media. This has led to the growth of urban analytics providing new ways to conduct quantitative research within cities. One area that has seen significant growth is using natural language processing techniques on text data from social media to explore various issues relating to urban morphology. However, we would argue that social media only provides limited insights when dealing with longer-term urban phenomena, such as the growth and shrinkage of cities. This relates to the fact that social media is a relatively recent phenomenon compared to longer-term urban problems that take decades to emerge. Concerning longer-term coverage, newspapers, which are increasingly becoming digitized, provide the possibility to overcome the limitations of social media and provide insights over a timeframe that social media does not. To demonstrate the utility of newspapers for urban analytics and to study longer-term urban issues, we utilize an advanced topic modeling technique (i.e., BERTopic) on a large number of newspaper articles from 1975 to 2021 to explore urban shrinkage in Detroit. Our topic modeling results reveal insights related to how Detroit shrinks. For example, side effects of 2007 to 2009 economic recessions on Detroit’s automobile industry, local employment status, and the housing market. 

Key Words: Natural Language Processing, Topic Modeling, Newspapers, Urban Shrinkage, Urban Analytics.

 

 Vacancy status change from 1970 to 2010 for city of Detroit and surrounding area.
Topic modeling work flow.
Topics over time (a) urban, (b) population, (c) shrinkage, (d) economy, (e) job, (f) house.

Full Reference:

Jiang, N., Crooks, A.T., Kavak, H. and Wang, W. (2023), Leveraging Newspapers to Understand Urban Issues: A Longitudinal Analysis of Urban Shrinkage in Detroit, Environment and Planning B. Available at https://doi.org/10.1177/23998083231204695. (pdf)

Thursday, February 06, 2025

From print to perspective: A mixed-method analysis of the convergence and divergence of COVID-19 topics in newspapers and interviews

In previous posts we have noted how one can explore urban issues through newspapers, while at the same time we have used social media to explore trends in vaccinations. In a recently published paper in PLOS Digital Health entitled "From print to perspective: A mixed-method analysis of the convergence and divergence of COVID-19 topics in newspapers and interviews" with Qingqing Chen, Adam Sullivan, Jennifer Surtees, Laurene Tumiel-Berhalter and myself, we thought we would explore how COVID-19 was reported in newspapers and how this varied from interviews. 

The rationale behind this was that the COVID-19 pandemic has led to diverse experiences influenced by public health measures like lockdowns and social distancing. To explore these dynamics, we introduce a novel ’big-thick’ data approach that integrates extensive U.S. newspaper data with detailed interviews. By employing natural language processing (NLP) and geoparsing techniques, we identify key topics related to the pandemic and vaccinations both in newspapers and personal narratives from interviews, and compare the (spatial) convergences and divergences between them. 

We found that both sources converge to highlight the profound impacts of the pandemic on daily life. However, newspapers provide a macro-level perspective, predominately covering policy, public health efforts and economics, while interviews reveal the nuanced impacts at the micro-level, focusing on personal experiences, emotion and concerns. An intriguing finding is the pronounced concern regarding the reliability of news information from interviews. By showcasing both convergences and divergences in identified topics, our study enhances the understanding of key issues that both disseminated to and resonate with the public, contributing to the development of more effective communication strategies for future public health crises.

If this sounds of interest, below you can read the abstract to the paper, see some of the figures which include our workflow and some of the results. At the bottom of the post you can see the full reference and a link to the actual paper. While at https://figshare.com/s/339b1c0d059c189dd6a4?file=44583661 you can find the code we used for our analysis. 

Abstract:

In the face of the unprecedented COVID-19 pandemic, various government-led initiatives and individual actions (e.g., lockdowns, social distancing, and masking) have resulted in diverse pandemic experiences. This study aims to explore these varied experiences to inform more proactive responses for future public health crises. Employing a novel “big-thick” data approach, we analyze and compare key pandemic-related topics that have been disseminated to the public through newspapers with those collected from the public via interviews. Specifically, we utilized 82,533 U.S. newspaper articles from January 2020 to December 2021 and supplemented this “big” dataset with “thick” data from interviews and focus groups for topic modeling. Identified key topics were contextualized, compared and visualized at different scales to reveal areas of convergence and divergence. We found seven key topics from the “big” newspaper dataset, providing a macro-level view that covers public health, policies and economics. Conversely, three divergent topics were derived from the “thick” interview data, offering a micro-level view that focuses more on individuals’ experiences, emotions and concerns. A notable finding is the public’s concern about the reliability of news information, suggesting the need for further investigation on the impacts of mass media in shaping the public’s perception and behavior. Overall, by exploring the convergence and divergence in identified topics, our study offers new insights into the complex impacts of the pandemic and enhances our understanding of key issues both disseminated to and resonating with the public, paving the way for further health communication and policy-making.
An overview of the research workflow.

The monthly distribution of collected articles in the United States from January 2020 to December 2021.

An example of identified entities labeled with predefined entity types.

The spatial distribution of newspaper articles by different scales.


The spatial distribution of identified newspaper topics across different regions in New York State.

Ordered rank of identified topics by percentage from interviews.

Full reference:
Chen, Q., Crooks, A.T., Sullivan, A.J., Surtees, J.A. and Tumiel-Berhalter, L. (2025). From Print to Perspective: A mixed-method analysis of the convergence and divergence of COVID-19 topics in newspapers and interviews, PLOS Digital Health. Available at https://doi.org/10.1371/journal.pdig.0000736. (pdf)

Monday, January 05, 2026

Not just numbers: Understanding cities through their words

In the past we have written how one can use social media or newspapers to study the world around us. Keeping with this theme of using text we (Xinyu Fu, Catherine Brinkley, Thomas Sanchez, Chaosu Li and myself) have a new editorial entitled "Not just numbers: Understanding cities through their words" which accompanies a special issue in Environment and Planning B entitled "Leveraging Natural Language Processing for Urban Analytics" 

The editorial discusses how researchers can use natural language processing  (NLP) methods to get a sense of a diverse range of issues impacting cities. To quote from the editorial, these range: 
 "from  analyzing housing development from council planning applications (Lin et al., 2025), revealing visitor perceptions of famous attractions or passengers’ perceptions on transit service quality from social media (Luo et al., 2025; Ma et al., 2025), defining the meaning of urban imageability based on online review (Zhu et al., 2025), understanding the spatial implications of the digital economy (Occhini et al., 2025), and extracting policies from official government reports (Wang et al., 2025)."

These papers, along with the data they used, and findings are summarized in the table below, and as such demonstrate how one can move beyond purely quantitative data and methods to study cities. If this sounds of interest, please feel free to read our editorial along with the papers in the special issue. 


Full reference: 

Fu, X., Brinkley, C., Sanchez, T.W., Li, C. and Crooks, A.T. (2026), Not Just Numbers: Understanding Cities through their Words, Environment and Planning B, 53(1): 3-10. (pdf)