Analisis Kinerja Algoritma Machine Learning Untuk Klasifikasi Emosi
Abstract
Social media is a place to express or share daily activities. Various new events are often discussed on social media, such as on Twitter. Frequently, the conversations conducted by Twitter users when giving a review or opinion have various emotions, such as anger, sadness, fear, or joy. Emotions are difficult to describe the challenges that occur, sometimes leading to multiple interpretations and misunderstandings leading to debates and reporting to the authorities. So this shows that emotions in reviews and opinions are essential for classification because emotions that come from texts are difficult to understand. In addition, the classification of emotions needs to be done to speed up the identification of emotions. The purpose of this study is to find out which algorithm has optimal performance in the classification of emotions. Machine Learning methods are the Naïve Bayes algorithm, Random Forest, and Support Vector Machines; this is done to determine the dominant algorithm in classifying emotions. The results of the modeling and classification using the Random Forest algorithm obtained a dominant accuracy with an accuracy value of 81.3%, followed by the SVM algorithm with an accuracy value of 76.6% and an accuracy value of 79.1% Naïve Bayes algorithm. In addition, from the speed of time in completing the classification, the Random Forest algorithm has the fastest time of 1.27 seconds
Downloads
References
A. Chaer, Pengantar Semantik Bahasa Indonesia, Edisi Revi. Jakarta: Rineka Cipta, 2019.
A. Chaer, Morfologi bahasa Indonesia. Jakarta: Rineka Cipta, 2008.
A. B. P. Negara, H. Muhardi, and F. Sajid, “Perbandingan Algoritma Klasifikasi terhadap Emosi Tweet Berbahasa Indonesia,” J. Edukasi dan Penelit. Inform., vol. 7, no. 2, p. 242, 2021, doi: 10.26418/jp.v7i2.48198.
R. M. Cahyaningtyas, R. Kusumaningrum, Sutikno, Suhartono, and D. E. Riyanto, “Emotion detection of tweets in Indonesian language using LDA and expression symbol conversion,” Proc. - 2017 1st Int. Conf. Informatics Comput. Sci. ICICoS 2017, vol. 2018-Janua, pp. 253–257, 2017, doi: 10.1109/ICICOS.2017.8276371.
M. Azam, T. Ahmed, F. Sabah, and M. I. Hussain, “Feature Extraction based Text Classification using K-Nearest Neighbor Algorithm,” IJCSNS Int. J. Comput. Sci. Netw. Secur., vol. 18, no. 12, pp. 95–101, 2018, [Online]. Available: http://paper.ijcsns.org/07_book/201812/20181213.pdf
L. Farsiah, Y. S. Chen, and A. Misbullah, “Multi-Classes Emotion Detection for Unbalanced Indonesian Tweets,” Proc. Int. Conf. Electr. Eng. Informatics, vol. 2020-Octob, 2020, doi: 10.1109/ICELTICs50595.2020.9315403.
A. S. Aribowo and S. Khomsah, “Implementation Of Text Mining For Emotion Detection Using The Lexicon Method (Case Study: Tweets About Covid-19),” Telematika, vol. 18, no. 1, p. 49, 2021, doi: 10.31315/telematika.v18i1.4341.
M. S. Saputri, R. Mahendra, and M. Adriani, “Emotion Classification on Indonesian Twitter Dataset,” Proc. 2018 Int. Conf. Asian Lang. Process. IALP 2018, no. November, pp. 90–95, 2019, doi: 10.1109/IALP.2018.8629262.
F. S. Yerzi and Y. Sibaroni, “Analisis Sentimen Terhadap Kebijakan Pemerintah Dalam Menangani Covid-19 Dengan Pendekatan Lexicon Based,” e-Proceeding Eng., vol. 8, no. 5, pp. 11354–11366, 2021.
S. Sudianto, A. D. Sripamuji, I. Ramadhanti, R. R. Amalia, J. Saputra, and B. Prihatnowo, “Penerapan Algoritma Support Vector Machine dan Multi-Layer Perceptron pada Klasisifikasi Topik Berita,” vol. 11, no. 2, pp. 84–91, 2022.
W. Afandi, S. N. Saputro, A. M. Kusumaningrum, H. Ardiansyah, M. H. Kafabi, and S. Sudianto, “Klasifikasi Judul Berita Clickbait menggunakan RNN-,” J. Pengemb. IT, vol. 7, no. 2, pp. 85–89, 2022.
H. A. Santoso, E. H. Rachmawanto, and U. Hidayati, “Fake Twitter Account Classification of Fake News Spreading Using Naïve Bayes,” Sci. J. Informatics, vol. 7, no. 2, pp. 2407–7658, 2020, [Online]. Available: http://journal.unnes.ac.id/nju/index.php/sji
E. Fitri, “Analisis Sentimen Terhadap Aplikasi Ruangguru Menggunakan Algoritma Naive Bayes, Random Forest Dan Support Vector Machine,” J. Transform., vol. 18, no. 1, p. 71, 2020, doi: 10.26623/transformatika.v18i1.2317.
L. Breiman, “Random forests,” Random For., pp. 1–122, 2001, doi: 10.1201/9780429469275-8.
M. A. Fauzi, “Random forest approach fo sentiment analysis in Indonesian language,” Indones. J. Electr. Eng. Comput. Sci., vol. 12, no. 1, pp. 46–50, 2018, doi: 10.11591/ijeecs.v12.i1.pp46-50.
C. Science, “Efficient Classification Algorithms using SVMs for Large Datasets Master of Technology,” no. June, 2007.
I. Muhammad and Z. Yan, “Supervised Machine Learning Approaches: a Survey,” ICTACT J. Soft Comput., vol. 05, no. 03, pp. 946–952, 2015, doi: 10.21917/ijsc.2015.0133.
S. Sudianto, P. Wahyuningtias, H. W. Utami, U. A. Raihan, and H. N. Hanifah, “Comparison Of Random Forest And Support Vector Machine Methods On Twitter Sentiment Analysis ( Case Study : Internet Selebgram Rachel Vennya Escape From Quarantine ) Perbandingan Metode Random Forest Dan Support Vector Machine Pada Analisis Sentimen Twitt,” Jutif, vol. 3, no. 1, pp. 141–145, 2022.
S. Chandra Ayunda Apta, N. Trivetisia, N. A. Winanti, D. P. Martiyaningsih, T. W. Utami, and S. Sudianto, “Analisis Komparasi Algoritma Machine Learning untuk Sentiment Analysis,” J. Pengemb. IT, vol. 7, no. 2, pp. 80–84, 2022.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Analisis Kinerja Algoritma Machine Learning Untuk Klasifikasi Emosi
Pages: 1027−1034
Copyright (c) 2022 Sudianto

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).





















