journal article·2023-02-26Open access

Predicting Location of Tweets Using Machine Learning Approaches

Mohammed Alsaqer, Salem Alelyani, Mohamed Mohana, Khalid Alreemy, Ali Alqahtani

Applied Sciences· Volume 13· Issue 5

Abstract

Twitter, one of the most popular microblogging platforms, has tens of millions of active users worldwide, generating hundreds of millions of posts every day. Twitter posts, referred to as “tweets”, the short and the noisy text, bring many challenges with them, such as in the case of some emergency or disaster. Predicting the location of these tweets is important for social, security, human rights, and business reasons and has raised noteworthy consideration lately. However, most Twitter users disable the geo-tagging feature, and their home locations are neither standardized nor accurate. In this study, we applied four machine learning techniques named Logistic Regression, Random Forest, Multinomial Naïve Bayes, and Support Vector Machine with and without the utilization of the geo-distance matrix for location prediction of a tweet using its textual content. Our extensive experiments on our vast collection of Arabic tweets From Saudi Arabia with different feature sets yielded promising results with 67% accuracy.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Human Mobility and Location-Based Analysis · Public Relations and Crisis Communication · Complex Network Analysis Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Center for Artificial Intelligence (CAI), King Khalid University, Abha 61421, Saudi Arabia

College of Computer Science, King Khalid University, Abha 61421, Saudi Arabia

Funding

Deanship of Scientific Research at King Khalid University

References (40)

Show source-provided references
1. Statista (2022, December 22). Number of Active Twitter Users. Available online: https://www.statista.com.
2. Abbasi, M.A., Chai, S.K., Liu, H., and Sagoo, K. (2012, January 3–5). Real-world behavior analysis through a social media lens. Proceedings of the International Conference on Social Computing Behavioral-Cultural Modeling, and Prediction, College Park, MD, USA.10.1007/978-3-642-29047-3_3 ↗
3. Real-time event detection from the Twitter data stream using the TwitterNews+ Framework10.1016/j.ipm.2018.03.001 ↗
4. Eventweet: Online localized event detection from twitter10.14778/2536274.2536307 ↗
5. Weng, J., and Lee, B.S. (2011, January 17–21). Event detection in twitter. Proceedings of the Fifth International AAAI Conference on Weblogs and Social Media, Barcelona, Spain.
6. Twitter Analysis for Intelligent Transportation10.1093/comjnl/bxy129 ↗
7. Hu, B., and Ester, M. (2013, January 12–16). Spatial topic modeling in online social media for location recommendation. Proceedings of the 7th ACM Conference on Recommender Systems, Hong Kong.10.1145/2507157.2507174 ↗
8. Rakesh, V., Reddy, C.K., and Singh, D. (2013, January 25–28). Location-specific tweet detection and topic summarization in twitter. Proceedings of the 2013 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining, Niagara, ON, Canada.10.1145/2492517.2492583 ↗
9. Cheng, Z., Caverlee, J., and Lee, K. (2013, January 25–28). You are where you tweet: A content-based approach to geo-locating twitter users. Proceedings of the 19th ACM International Conference on Information and Knowledge Management, Niagara Falls, ON, Canada.
10. Estimating the locations of emergency events from Twitter streams10.1016/j.procs.2014.05.321 ↗
11. Sakaki, T., Okazaki, M., and Matsuo, Y. (2010, January 26–30). Earthquake shakes Twitter users: Real-time event detection by social sensors. Proceedings of the 19th International Conference on World Wide Web, Raleigh, NC, USA.10.1145/1772690.1772777 ↗
12. Processing social media messages in mass emergency: A survey10.1145/2771588 ↗
13. Where in the world are you? Geolocation and language identification in Twitter10.1080/00330124.2014.907699 ↗
14. A survey of location prediction on twitter10.1109/TKDE.2018.2807840 ↗
15. Sloan, L., and Morgan, J. (2015). Who tweets with their location? Understanding the relationship between demographic characteristics and the use of geoservices and geotagging on Twitter. PLoS ONE, 10.10.1371/journal.pone.0142209 ↗
16. Ritter, A., Clark, S., and Etzioni, O. (2011, January 27–29). Named entity recognition in tweets: An experimental study. Proceedings of the Conference on Empirical Methods in Natural Language Processing, Edinburgh, UK.
17. Named entity recognition for tweets10.1145/2414425.2414428 ↗
18. Liu, X., Zhang, S., Wei, F., and Zhou, M. (2011, January 19–24). Recognizing named entities in tweets. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, Portland, OR, USA.
19. Malmasi, S., and Dras, M. (2015, January 19–21). Location mention detection in tweets and microblogs. Proceedings of the Conference of the Pacific Association for Computational Linguistics, Bali, Indonesia.10.1007/978-981-10-0515-2_9 ↗
20. Jurgens, D., Finethy, T., McCorriston, J., Xu, Y.T., and Ruths, D. (2015, January 26–29). Geolocation prediction in twitter using social networks: A critical analysis and review of current practice. Proceedings of the Ninth International AAAI Conference on Web and Social Media, Oxford, UK.
21. Poulston, A., Stevenson, M., and Bontcheva, K. (2017, January 4–7). Hyperlocal home location identification of twitter profiles. Proceedings of the 28th ACM Conference on Hypertext and Social Media, Prague, Czech Republic.10.1145/3078714.3078719 ↗
22. Mahmud, J., Nichols, J., and Drews, C. (2012, January 4–8). Where is this tweet from? inferring home locations of twitter users. Proceedings of the Sixth International AAAI Conference on Weblogs and Social Media, Dublin, Ireland.
23. Ukkusuri, S.V., and Yang, C. (2019). Transportation Analytics in the Era of Big Data, Springer.10.1007/978-3-319-75862-6 ↗
24. Chang, H.w., Lee, D., Eltaher, M., and Lee, J. (2012, January 26–29). @ Phillies tweeting from Philly? Predicting Twitter user locations with spatial word usage. Proceedings of the 2012 International Conference on Advances in Social Networks Analysis and Mining (ASONAM 2012), Istanbul, Turkey.
25. Eisenstein, J., O’Connor, B., Smith, N.A., and Xing, E.P. (2010, January 9–11). A latent variable model for geographic lexical variation. Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing, Cambridge, MA, USA.
26. Home location identification of twitter users10.1145/2528548 ↗
27. Flatow, D., Naaman, M., Xie, K.E., Volkovich, Y., and Kanza, Y. (2015, January 2–6). On the accuracy of hyper-local geotagging of social media content. Proceedings of the Eighth ACM International Conference on Web Search and Data Mining, Shanghai, China.10.1145/2684822.2685296 ↗
28. Wing, B.P., and Baldridge, J. (2011, January 19–24). Simple supervised document geolocation with geodesic grids. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, Portland, OR, USA.
29. Roller, S., Speriosu, M., Rallapalli, S., Wing, B., and Baldridge, J. (2012, January 12–14). Supervised text-based geolocation using language models on an adaptive grid. Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, Jeju, Republic of Korea.
30. Kinsella, S., Murdock, V., and O’Hare, N. (2011, January 28). I’m eating a sandwich in Glasgow: Modeling locations with tweets. Proceedings of the 3rd International Workshop on Search and Mining User-Generated Contents, Glasgow, UK.10.1145/2065023.2065039 ↗
31. Paraskevopoulos, P., and Palpanas, T. (2015, January 25–28). Fine-grained geolocalisation of non-geotagged tweets. Proceedings of the 2015 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining, Paris, France.10.1145/2808797.2808869 ↗
32. Hulden, M., Silfverberg, M., and Francom, J. (2015, January 25–30). Kernel density estimation for text-based geolocation. Proceedings of the Twenty-Ninth AAAI Conference on Artificial Intelligence, Austin, TX, USA.10.1609/aaai.v29i1.9149 ↗
33. Pre-HLSA: Predicting home location for Twitter users based on sentimental analysis10.1016/j.asej.2021.05.015 ↗
34. Predicting geolocation of tweets: Using combination of CNN and BiLSTM10.1007/s41019-021-00165-1 ↗
35. Kleinbaum, D.G., Dietz, K., Gail, M., Klein, M., and Klein, M. (2002). Logistic Regression, Springer.
36. Kibriya, A.M., Frank, E., Pfahringer, B., and Holmes, G. (2004, January 4–6). Multinomial naive bayes for text categorization revisited. Proceedings of the Australasian Joint Conference on Artificial Intelligence, Cairns, Australia.10.1007/978-3-540-30549-1_43 ↗
37. What is a support vector machine?10.1038/nbt1206-1565 ↗
38. Wang, L. (2005). Support Vector Machines: Theory and Applications, Springer Science & Business Media.10.1007/b95439 ↗
39. A random forest guided tour10.1007/s11749-016-0481-7 ↗
40. Random forests10.1023/A:1010933404324 ↗