LocBERT: Improving Social Media User Location Prediction Using Fine-Tuned BERT

Asif Khan, Huaping Zhang*, Nada Boudjellal, Arshad Ahmad, Maqbool Khan

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Predicting user locations on social media platforms like Twitter is a challenging task with numerous applications in marketing, politics, and disaster response. This paper introduces LocBERT, a fine-tuned BERT model designed to accurately predict the locations of Twitter users based on their conversations. Our experiments focus on the “StateElecTweets” dataset, comprising 1.6 million labeled tweets associated with state locations within the United States. The results demonstrate that LocBERT outperforms traditional machine learning models such as SVM and Naive Bayesian, achieving an accuracy of 0.988 and an F1-score of 0.987. The study contributes to predicting the location of users in election-related tweets, enabling a better understanding of campaign demographics and assisting political stakeholders in refining their strategies. The findings of this research hold significant implications for various domains and highlight the effectiveness of LocBERT in accurately predicting user locations on social media platforms.

Original languageEnglish
Title of host publicationDatabase and Expert Systems Applications - DEXA 2023 Workshops - 34th International Conference, DEXA 2023, Proceedings
EditorsGabriele Kotsis, Ismail Khalil, Atif Mashkoor, Johannes Sametinger, A Min Tjoa, Bernhard Moser, Maqbool Khan
PublisherSpringer Science and Business Media Deutschland GmbH
Pages23-32
Number of pages10
ISBN (Print)9783031396885
DOIs
Publication statusPublished - 2023
Event34th International Conference on Database and Expert Systems Applications , DEXA 2023 - Penang, Malaysia
Duration: 28 Aug 202330 Aug 2023

Publication series

NameCommunications in Computer and Information Science
Volume1872 CCIS
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Conference

Conference34th International Conference on Database and Expert Systems Applications , DEXA 2023
Country/TerritoryMalaysia
CityPenang
Period28/08/2330/08/23

Keywords

  • Location
  • Machine Learning
  • Social Media
  • Transformers

Fingerprint

Dive into the research topics of 'LocBERT: Improving Social Media User Location Prediction Using Fine-Tuned BERT'. Together they form a unique fingerprint.

Cite this