Affiliation:
1. James Watt School of Engineering, University of Glasgow, Glasgow G12 8QQ, UK
2. Punjab Safe Cities Authority, Qurban Lines, Lahore 54660, Pakistan
3. Department of Information Sciences, University of Education, Lahore 54770, Pakistan
Abstract
Modern means of communication, economic crises, and political decisions play imperative roles in reshaping political and administrative systems throughout the world. Twitter, a micro-blogging website, has gained paramount importance in terms of public opinion-sharing. Manual intelligence of law enforcement agencies (i.e., in changing situations) cannot cope in real time. Thus, to address this problem, we built an alert system for government authorities in the province of Punjab, Pakistan. The alert system gathers real-time data from Twitter in English and Roman Urdu about forthcoming gatherings (protests, demonstrations, assemblies, rallies, sit-ins, marches, etc.). To determine public sentiment regarding upcoming anti-government gatherings (protests, demonstrations, assemblies, rallies, sit-ins, marches, etc.), the alert system determines the polarity of tweets. Using keywords, the system provides information for future gatherings by extracting the entities like date, time, and location from Twitter data obtained in real time. Our system was trained and tested with different machine learning (ML) algorithms, such as random forest (RF), decision tree (DT), support vector machine (SVM), multinomial naïve Bayes (MNB), and Gaussian naïve Bayes (GNB), along with two vectorization techniques, i.e., term frequency–inverse document frequency (TFIDF) and count vectorization. Moreover, this paper compares the accuracy results of sentiment analysis (SA) of Twitter data by applying supervised machine learning (ML) algorithms. In our research experiment, we used two data sets, i.e., a small data set of 1000 tweets and a large data set of 4000 tweets. Results showed that RF along with count vectorization performed best for the small data set with an accuracy of 82%; with the large data set, MNB along with count vectorization outperformed all other classifiers with an accuracy of 75%. Additionally, language models, e.g., bigram and trigram, were used to generate the word clouds of positive and negative words to visualize the most frequently used words.
Funder
Engineering and Physical Sciences Research Council
Subject
Fluid Flow and Transfer Processes,Computer Science Applications,Process Chemistry and Technology,General Engineering,Instrumentation,General Materials Science
Reference37 articles.
1. Image control: How police affect the presentation of crime news;Chermak;Am. J. Police,1995
2. Public protests and policy making;Battaglini;Q. J. Econ.,2017
3. A report of the 2019 Hong Kong protests;Purbrick;Asian Aff.,2019
4. Optimized focused web crawler with natural language processing based relevance measure in bioinformatics web sources;Sekhar;Cybern. Inf. Technol.,2019
5. Ferrari, A., Donati, B., and Gnesi, S. (2017, January 4–8). Detecting domain-specific ambiguities: An NLP approach based on Wikipedia crawling and word embeddings. Proceedings of the IEEE 25th International Requirements Engineering Conference Workshops (REW), Lisbon, Portugal.
Cited by
1 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献