A Prompting Framework for GPT-Based Twitter/X User Classification in the Context of Disasters

During disasters, social media users from diverse social groups share information, concerns, and perspectives on X (formerly Twitter), amassing critical disaster resilience knowledge. Effective user classification is essential for facilitating user-centered research across different groups and improving the relevance and quality of social media data mining. This study examines the feasibility of leveraging a large language model (LLM), generative pretrained transformer (GPT)-4o Mini, for the social role-related classification of Twitter/X users in the disaster contexts. A three-step social group classification (TSSGC) prompting framework was proposed, incorporating several prompting and improvement methods to enhance GPT’s reasoning capabilities. The performance of the TSSGC was evaluated across different classification scenarios, including stakeholder sectors to which users belong, the industries they are affiliated with, and the disaster-related responsibilities they take. Comparative experiments were conducted to evaluate the performance of the TSSGC against several widely used machine-learning and prompting methods. The results demonstrate the effectiveness and applicability of the TSSGC in categorizing users into various social groups. This research contributes to the body of knowledge by proposing a prompting framework that leverages LLMs to classify Twitter/X users into disaster-related social groups based solely on usernames and descriptions. By supporting user classification using minimal user information, the proposed approach minimizes computational demands and reliance on extensive data, thus enhancing the scalability and efficiency of large-scale social media processing in time-sensitive disaster settings.

Authors

Institutions

Publication Details

Journal
Journal of Computing in Civil Engineering
Published
2025-10-16
DOI
https://doi.org/10.1061/jccee5.cpeng-6751
Primary Topic
Spam and Phishing Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Prompting Framework for GPT-Based Twitter/X User Classification in the Context of Disasters

Arif Mohaimin Sadri, Lihua Fu, Lu Zhang
Journal of Computing in Civil Engineering
Spam and Phishing Detection
article

A Prompting Framework for GPT-Based Twitter/X User Classification in the Context of Disasters

Arif Mohaimin Sadri, Lihua Fu, Lu Zhang
article en

Abstract

During disasters, social media users from diverse social groups share information, concerns, and perspectives on X (formerly Twitter), amassing critical disaster resilience knowledge. Effective user classification is essential for facilitating user-centered research across different groups and improving the relevance and quality of social media data mining. This study examines the feasibility of leveraging a large language model (LLM), generative pretrained transformer (GPT)-4o Mini, for the social role-related classification of Twitter/X users in the disaster contexts. A three-step social group classification (TSSGC) prompting framework was proposed, incorporating several prompting and improvement methods to enhance GPT’s reasoning capabilities. The performance of the TSSGC was evaluated across different classification scenarios, including stakeholder sectors to which users belong, the industries they are affiliated with, and the disaster-related responsibilities they take. Comparative experiments were conducted to evaluate the performance of the TSSGC against several widely used machine-learning and prompting methods. The results demonstrate the effectiveness and applicability of the TSSGC in categorizing users into various social groups. This research contributes to the body of knowledge by proposing a prompting framework that leverages LLMs to classify Twitter/X users into disaster-related social groups based solely on usernames and descriptions. By supporting user classification using minimal user information, the proposed approach minimizes computational demands and reliance on extensive data, thus enhancing the scalability and efficiency of large-scale social media processing in time-sensitive disaster settings.

Journal of Computing in Civil EngineeringVol. 40(1)
University of Oklahoma (US)
Openalex Percentile: Top 57%
Spam and Phishing Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Prompting Framework for GPT-Based Twitter/X User Classification in the Context of Disasters — Arif Mohaimin Sadri, Lihua Fu, et al. · Journal of Computing in Civil Engineering (2025) | TGRS Research Map | TGRS