Active learning on Indonesian Twitter sentiment analysis using uncertainty sampling

Muhaza Liebenlito, Nur Inayah, Esti Choerunnisa, Taufik Edy Sutanto, Suma Inna

Abstract


Nowadays, sentiment analysis research in social media is rapidly developing. Sentiment analysis typically falls under supervised learning, which requires annotating data. However, the annotation process for sentiment analysis tasks is notoriously time-consuming. Fortunately, an effective strategy to overcome this challenge has emerged, known as active learning. Active learning involves labeling only a small subset of the dataset, leaving the rest for annotation through sampling strategies. This study focuses on comparing two active learning strategies: random sampling and boundary sampling. These strategies are applied to machine learning models such as logistic regression and random forests. In addition, we present an evaluation of the model performance and data savings achieved by implementing these strategies in the context of traditional machine learning for sentiment analysis on Twitter. The dataset considered consists of two labels: positive and negative sentiments. The results of our investigation show that active learning can significantly reduce the amount of training data required, saving up to 65% of the total training data required to achieve peak model accuracy. The most successful model identified uses a random forest with a margin sampling strategy, yielding an accuracy of 81.12% and an F1 score of 88.60%. This research highlights the effectiveness of active learning strategies in sentiment analysis, demonstrating their potential to improve model performance and resource efficiency. The results underscore the viability of employing active learning methods, particularly the combination of random forest models with margin sampling, for more efficient sentiment analysis in social media.

Keywords


active learning; uncertainty sampling; logistic regression; random forest; sentiment analysis

Full Text:

PDF

References


B. Arafah et al., “The Digital Culture Literacy of Generation Z Netizens as Readers, Producers and Publishers of Text on Social Media,” International Journal of Intelligent Systems and Applications in Engineering, vol. 11, no. 3, Art. no. 3, Jul. 2023.

D. Elangovan and V. Subedha, “Adaptive Particle Grey Wolf Optimizer with Deep Learning-based Sentiment Analysis on Online Product Reviews,” Engineering, Technology & Applied Science Research, vol. 13, no. 3, Art. no. 3, Jun. 2023, doi: 10.48084/etasr.5787.

S. Malviya, A. K. Tiwari, R. Srivastava, and V. Tiwari, “Machine Learning Techniques for Sentiment Analysis: A Review,” SAMRIDDHI : A Journal of Physical Sciences, Engineering and Technology, vol. 12, no. 02, pp. 72–78, Dec. 2020, doi: 10.18090/samriddhi.v12i02.03.

P. Zhang, T. Chai, and Y. Xu, “Adaptive Prompt Learning-Based Few-Shot Sentiment Analysis,” Neural Process Lett, Mar. 2023, doi: 10.1007/s11063-023-11259-4.

P. Kumar and A. Gupta, “Active Learning Query Strategies for Classification, Regression, and Clustering: A Survey,” J. Comput. Sci. Technol., vol. 35, no. 4, pp. 913–945, Jul. 2020, doi: 10.1007/s11390-020-9487-4.

P. Ren et al., “A Survey of Deep Active Learning,” ACM Comput. Surv., vol. 54, no. 9, p. 180:1-180:40, Oct. 2021, doi: 10.1145/3472291.

M. H. Jarrahi, A. Memariani, and S. Guha, “The Principles of Data-Centric AI,” Commun. ACM, vol. 66, no. 8, pp. 84–92, Jul. 2023, doi: 10.1145/3571724.

E. Mosqueira-Rey, E. Hernández-Pereira, D. Alonso-Ríos, J. Bobes-Bascarán, and Á. Fernández-Leal, “Human-in-the-loop machine learning: a state of the art,” Artif Intell Rev, vol. 56, no. 4, pp. 3005–3054, Apr. 2023, doi: 10.1007/s10462-022-10246-w.

A. Raj and F. Bach, “Convergence of Uncertainty Sampling for Active Learning,” in Proceedings of the 39th International Conference on Machine Learning, PMLR, Jun. 2022, pp. 18310–18331. Accessed: Dec. 17, 2023. [Online]. Available: https://proceedings.mlr.press/v162/raj22a.html

J. Shao, Q. Wang, and F. Liu, “Learning to Sample: An Active Learning Framework,” in 2019 IEEE International Conference on Data Mining (ICDM), Nov. 2019, pp. 538–547. doi: 10.1109/ICDM.2019.00064.

V.-L. Nguyen, M. H. Shaker, and E. Hüllermeier, “How to measure uncertainty in uncertainty sampling for active learning,” Mach Learn, vol. 111, no. 1, pp. 89–122, Jan. 2022, doi: 10.1007/s10994-021-06003-9.

U. Naseem, M. Khushi, S. K. Khan, K. Shaukat, and M. A. Moni, “A Comparative Analysis of Active Learning for Biomedical Text Mining,” Applied System Innovation, vol. 4, no. 1, Art. no. 1, Mar. 2021, doi: 10.3390/asi4010023.

A. Agrawal and S. Tripathi, “Active Learning Using Margin Sampling Strategy for Entity Recognition,” in Advances in Cybernetics, Cognition, and Machine Learning for Communication Technologies, V. K. Gunjan, S. Senatore, A. Kumar, X.-Z. Gao, and S. Merugu, Eds., in Lecture Notes in Electrical Engineering. , Singapore: Springer, 2020, pp. 163–169. doi: 10.1007/978-981-15-3125-5_18.

J. Han, M. Kamber, and J. Pei, “8 - Classification: Basic Concepts,” in Data Mining (Third Edition), J. Han, M. Kamber, and J. Pei, Eds., in The Morgan Kaufmann Series in Data Management Systems. , Boston: Morgan Kaufmann, 2012, pp. 327–391. doi: 10.1016/B978-0-12-381479-1.00008-3.

B. Settles, “Uncertainty Sampling,” in Active Learning, B. Settles, Ed., in Synthesis Lectures on Artificial Intelligence and Machine Learning. , Cham: Springer International Publishing, 2012, pp. 11–20. doi: 10.1007/978-3-031-01560-1_2.

R. Monarch and R. Munro, Human-in-the-Loop Machine Learning: Active Learning and Annotation for Human-centered AI. Simon and Schuster, 2021.

I. L. Rahayu, “Identifikasi aktor terpenting penyebaran Informasi covid-19 berdasarkan komentar netizen di twitter menggunakan metode Katz centrality,” bachelorThesis, Fakultas Sains dan Teknologi UIN Syarif Hidayatullah Jakarta, 2021. Accessed: Sep. 15, 2023. [Online]. Available: https://repository.uinjkt.ac.id/dspace/handle/123456789/56882

R. Ferdiana, F. Jatmiko, D. D. Purwanti, A. S. T. Ayu, and W. F. Dicka, “Dataset Indonesia untuk Analisis Sentimen,” Jurnal Nasional Teknik Elektro dan Teknologi Informasi, vol. 8, no. 4, Art. no. 4, Nov. 2019.




DOI: https://doi.org/10.47738/jads.v5i1.144

Refbacks

  • There are currently no refbacks.



Barcode

Journal of Applied Data Sciences

ISSN:2723-6471 (Online)
Publisher:Bright Publisher
Website:http://bright-journal.org/JADS
Email:taqwa@amikompurwokerto.ac.id (principal contact)
  support@bright-journal.org (technical issues)

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0