Classification of Multiple Emotions in Indonesian Text Using The K-Nearest Neighbor Method

Q3 Engineering
Ahmad Zamsuri, Sarjon Defit, G. W. Nurcahyo
{"title":"Classification of Multiple Emotions in Indonesian Text Using The K-Nearest Neighbor Method","authors":"Ahmad Zamsuri, Sarjon Defit, G. W. Nurcahyo","doi":"10.37385/jaets.v4i2.1964","DOIUrl":null,"url":null,"abstract":"Emotions are expressions manifested by individuals in response to what they see or experience. In this study, emotions were examined through individuals' tweets regarding the election issues in Indonesia in 2024. The collected tweets were then labeled based on emotions using the emotion wheel, which consisted of six categories: joy, love, surprise, anger, fear, and sadness. After the labeling process, the next step involved weighting using TF-IDF (Term Frequency-Inverse Document Frequency) and Bag-of-Words (BoW) techniques. Subsequently, the model was evaluated using the K-Nearest Neighbor (KNN) algorithm with three different data splitting ratios: 80:20, 70:30, and 60:40. From the six labels used in the modeling process, the accuracy was then calculated, and the labels were subsequently merged into positive and negative categories. Then the modeling was conducted using the same process with the six labels. The results of this study revealed that the utilization of TF-IDF outperformed BoW. The highest accuracy was achieved with the 80:20 data splitting ratio, attaining 58% accuracy for the six-label classification and 79% accuracy for the two-label classification","PeriodicalId":34350,"journal":{"name":"Journal of Applied Engineering and Technological Science","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2023-06-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Applied Engineering and Technological Science","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.37385/jaets.v4i2.1964","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"Engineering","Score":null,"Total":0}
引用次数: 2

Abstract

Emotions are expressions manifested by individuals in response to what they see or experience. In this study, emotions were examined through individuals' tweets regarding the election issues in Indonesia in 2024. The collected tweets were then labeled based on emotions using the emotion wheel, which consisted of six categories: joy, love, surprise, anger, fear, and sadness. After the labeling process, the next step involved weighting using TF-IDF (Term Frequency-Inverse Document Frequency) and Bag-of-Words (BoW) techniques. Subsequently, the model was evaluated using the K-Nearest Neighbor (KNN) algorithm with three different data splitting ratios: 80:20, 70:30, and 60:40. From the six labels used in the modeling process, the accuracy was then calculated, and the labels were subsequently merged into positive and negative categories. Then the modeling was conducted using the same process with the six labels. The results of this study revealed that the utilization of TF-IDF outperformed BoW. The highest accuracy was achieved with the 80:20 data splitting ratio, attaining 58% accuracy for the six-label classification and 79% accuracy for the two-label classification
用k近邻法分类印尼语文本中的多重情绪
情绪是个体对所看到或经历的反应所表现出来的表现。在这项研究中,通过个人关于2024年印尼选举问题的推文来检验情绪。然后,使用情绪轮根据情绪对收集到的推文进行标记,情绪轮由六类组成:喜悦、爱、惊讶、愤怒、恐惧和悲伤。在标记过程之后,下一步涉及使用TF-IDF(术语频率逆文档频率)和单词袋(BoW)技术进行加权。随后,使用K-最近邻(KNN)算法对模型进行评估,该算法具有三种不同的数据分割比率:80:20、70:30和60:40。根据建模过程中使用的六个标签,计算准确性,然后将标签合并为阳性和阴性类别。然后使用相同的过程对六个标签进行建模。本研究结果表明,TF-IDF的利用率优于BoW。数据分割比为80:20时的准确率最高,六标签分类的准确率为58%,两标签分类的正确率为79%
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
1.50
自引率
0.00%
发文量
0
审稿时长
4 weeks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信