Predict Union Election Results Through Polarity and Subjectivity Detection of Multilingual Opinions

Imitaz Ali Solangi, Javed Ahmed Mahar, Ghulam Ali Mallah, Zulfiqar Ali Solangi

Abstract

This study examines subjectivity and polarity in multilingual WhatsApp messages exchanged during the employees’ union election at the Mehran University of Engineering and Technology (MUET), Khairpur campus. As social-media platforms generate vast volumes of unstructured multilingual text, sentiment analysis an intersection of natural language processing (NLP) and machine learning (ML) offers a rigorous means of extracting collective opinion. We introduce a novel analytical framework for code-switched discourse in Sindhi and Urdu, thereby contributing to both multilingual NLP research and electoral studies. A corpus of WhatsApp messages reflecting anticipated election outcomes was collected, cleaned, and annotated. Five supervised classifiers—feed-forward neural networks, nonlinear support vector machines, random forests, decision trees, and k-nearest neighbours were trained to detect sentiment polarity and subjectivity. Across all models, Candidate 1 received markedly more favourable sentiment, posting an average positive-sentiment score of 61.48 % versus 37.11 % for Candidate 2. Candidate 1 likewise exhibited superior aggregate performance metrics (mean accuracy = 89.92 %, recall = 86.52 %, precision = 85.12 %, F1-score = 85.81 %). These findings demonstrate the feasibility of fine-grained sentiment mining in under-resourced languages and yield actionable insights for campaign strategists. Future research will enhance classification accuracy through advanced deep-learning architectures and will track dynamic sentiment patterns across multiple social-media platforms throughout the electoral cycle.

 

Keywords: multilingual sentiment analysis; code-switching; WhatsApp; natural language processing; machine learning; Sindhi; Urdu; electoral behaviour.

 

https://doi.org/10.55463/issn.1674-2974.52.5.18


Full Text:

PDF


References


Abiola, O.; Abayomi-Alli, A.; Tale, O.A.; Misra, S.; Abayomi-Alli, O. Sentiment Analysis of COVID-19 Tweets from Selected Hashtags in Nigeria Using VADER and Text Blob Analyser. J. Electr. Syst. Inf. Technol. 2023, 10, 5. https://doi.org/10.1186/s43067-023-00070-9

Alsemaree, O.; Alam, A.S.; Gill, S.S.; Uhlig, S. Sentiment Analysis of Arabic Social Media Texts: A Machine Learning Approach to Deciphering Customer Perceptions. Heliyon 2024, 10, e27863. https://doi.org/10.1016/j.heliyon.2024.e27863

Bansal, M.; Goyal, A.; Choudhary, A. A Comparative Analysis of K-Nearest Neighbor, Genetic, Support Vector Machine, Decision Tree, and Long Short-Term Memory Algorithms in Machine Learning. Decis. Anal. J. 2022, 3, 100071. https://doi.org/10.1016/j.dajour.2022.100071

Chandio, A.A.; Asikuzzaman, M.; Pickering, M.R. Cursive Character Recognition in Natural Scene Images Using a Multilevel Convolutional Neural Network Fusion. IEEE Access 2020, 8, 109054–109070. https://doi.org/10.1109/ACCESS.2020.3001605

Chandio, A.A.; Asikuzzaman, M.; Pickering, M.R.; Leghari, M. Cursive-Text: A Comprehensive Dataset for End-to-End Urdu Text Recognition in Natural Scene Images. Data Brief 2020, 31, 105749. https://doi.org/10.1016/j.dib.2020.105749

Chauhan, P.; Sharma, N.; Sikka, G. The Emergence of Social Media Data and Sentiment Analysis in Election Prediction. J. Ambient Intell. Humaniz. Comput. 2021a, 12, 2601–2627. https://doi.org/10.1007/s12652-020-02423-y

Chauhan, P.; Sharma, N.; Sikka, G. The Emergence of Social Media Data and Sentiment Analysis in Election Prediction. J. Ambient Intell. Humaniz. Comput. 2021b, 12, 2601–2627. https://doi.org/10.1007/s12652-020-02423-y

Dahar, I.A.; Abbas, F.; Rajput, U.; Hussain, A.; Azhar, F. An Efficient Sindhi Spelling Checker for Microsoft Word. Int. J. Comput. Sci. Netw. Secur. 2018, 18, 144–150.

Devi, G.D.; Kamalakkannan, S. Literature Review on Sentiment Analysis in Social Media: Open Challenges toward Applications. Test Eng. Manag. 2020, 83, 2466–2474.

Ding, Y.; Ma, J.; Luo, X. Applications of Natural Language Processing in Construction. Autom. Constr. 2022, 136, 104169. https://doi.org/10.1016/j.autcon.2022.104169

Gupta, S.; Singh, A.; Ranjan, J. Sentiment Analysis: Usage of Text and Emoji for Expressing Sentiments. In Advances in Data and Information Sciences; Lecture Notes in Networks and Systems, 94; Springer: Singapore, 2020; pp. 477–486. https://doi.org/10.1007/978-981-15-0694-9_45

Humayoun, M.; Nawab, R.M.A.; Uzair, M.; Aslam, S.; Farzand, O. Urdu Summary Corpus. In Proceedings of (Conference), 2016; pp. 796–800.

Jassim, M.A.; Abd, D.H.; Omri, M.N. A Survey of Sentiment Analysis from Film Critics Based on Machine Learning, Lexicon and Hybridization. Neural Comput. Appl. 2023, 35, 9437–9461. https://doi.org/10.1007/s00521-023-08359-6

Kaur, C.; Sharma, A. Sentiment Analysis of Tweets on Social Issues Using Machine Learning Approach. Int. J. Adv. Trends Comput. Sci. Eng. 2020, 9, 6303–6311. https://doi.org/10.30534/ijatcse/2020/310942020

Khan, A.; Boudjellal, N.; Ahmad, A.; Khan, M. From Social Media to Ballot Box: Leveraging Location-Aware Sentiment Analysis for Election Predictions. Comput. Mater. Contin. 2023, 77, 3037–3055. https://doi.org/10.32604/cmc.2023.044403

Khurana, D.; Koli, A.; Khatter, K.; Singh, S. Natural Language Processing: State of the Art, Current Trends and Challenges. Multimed. Tools Appl. 2023, 82, 3713–3744. https://doi.org/10.1007/s11042-022-13428-4

Kumar, S.; Dhathri Devi, N.; Krishnendhu, T.; Nerthu, K.; Radhakrishnan, S. Review of Sentiment Analysis: A Multilingual Approach. Int. J. Adv. Res. Comput. Commun. Eng. 2020, 9, 53–58. https://doi.org/10.17148/IJARCCE.2020.9110

Maas, A.L.; Daly, R.E.; Pham, P.T.; Huang, D.; Ng, A.Y.; Potts, C. Learning Word Vectors for Sentiment Analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics; ACL: Portland, OR, USA, 2011; pp. 142–150.

Mahar, J.; Shaikh, H.; Memon, G. A Model for Sindhi Text Segmentation into Word Tokens. Sindh Univ. Res. J. (Sci. Ser.) 2012, 44, —.

Martins, R.; Almeida, J.; Henriques, P.; Novais, P. Predicting an Election’s Outcome Using Sentiment Analysis. In Trends and Innovations in Information Systems and Technologies; Rocha, Á. et al., Eds.; Springer: Cham, 2020; Volume 1159, pp. 134–143. https://doi.org/10.1007/978-3-030-45688-7_14

Nadeem, M.A.; Bukhari, S.H.H.; Arshad, M.U.; Naeem, S.; Beg, M.O.; Shahzad, W. Language Detection and Localization for Pakistani Languages in Acoustic Channels. In Proceedings of the 17th International Conference on Emerging Technologies (ICET); Islamabad, 2022; pp. 142–147. https://doi.org/10.1109/ICET56601.2022.10004691

Naithani, K.; Raiwani, Y.P. Realization of Natural Language Processing and Machine Learning Approaches for Text-Based Sentiment Analysis. Expert Syst. 2023, 40, e13114. https://doi.org/10.1111/exsy.13114

Prabhakar Kaila, D.R.; Prasad, D.A. Informational Flow on Twitter—Corona Virus Outbreak—Topic Modelling Approach. Int. J. Adv. Res. Eng. Technol. 2020, 11, 128–134.

Raja Chakravarthi, B.; Muralidaran, V.; Priyadharshini, R.; McCrae, J.P. Corpus Creation for Sentiment Analysis in Code-Mixed Tamil–English Text. arXiv 2020, arXiv:2006.

Saleh Alzubaidi, M.; Bourennani, F. Sentiment Analysis of Tweets Using Emojis and Texts. In Proceedings of the 4th International Conference on Information Science and Systems (ICISS); ACM: New York, NY, USA, 2021; pp. 111–114. https://doi.org/10.1145/3459955.3460608

Shah, M.; Shaikh, H.; Mahar, J.; Mahar, S. Sindhi Stemmer for Information Retrieval System Using Rule-Based Stripping Approach. Sindh Univ. Res. J. (Sci. Ser.) 2016, 48, —.

Tucker, J.A.; Guess, A.; Barberá, P.; Vaccari, C.; Siegel, A.; Sanovich, S.; Stukal, D.; Nyhan, B. Social Media, Political Polarization, and Political Disinformation: A Review of the Scientific Literature. SSRN Electron. J. 2018, 95 pp. https://doi.org/10.2139/ssrn.3144139

Vásquez Rojas, C.; Roldán Reyes, E.; Aguirre y Hernández, F.; Cortés Robles, G. Integration of a Text Mining Approach in the Strategic Planning Process of Small and Medium-Sized Enterprises. Ind. Manag. Data Syst. 2018, 118, 745–764. https://doi.org/10.1108/IMDS-01-2017-0029

Vel, S.S. Pre-Processing Techniques of Text Mining Using Computational Linguistics and Python Libraries. In Proceedings of the 2021 International Conference on Artificial Intelligence and Smart Systems (ICAIS); Coimbatore, India, 2021; pp. 879–884. https://doi.org/10.1109/ICAIS50930.2021.9395924

Xing, Y.; Wang, X.; Qiu, C.; Li, Y.; He, W. Research on Opinion Polarization by Big Data Analytics Capabilities in Online Social Networks. Technol. Soc. 2022, 68, 101902. https://doi.org/10.1016/j.techsoc.2022.101902

Zhang, J.; Wang, W.; Lu, C.; Wang, J.; Sangaiah, A.K. Lightweight Deep Network for Traffic Sign Classification. Ann. Telecommun. 2020, 75, 369–379. https://doi.org/10.1007/s12243-019-00731-9


Refbacks

  • There are currently no refbacks.