应用 Naive Bayes 分类器方法分析社交媒体用户对总统选举阶段的情绪

F. Dharta, Ardhana Januar Mahardhani, Sitti Rachmawati Yahya, Andika Dirsa, Elvira M. Usulu
{"title":"应用 Naive Bayes 分类器方法分析社交媒体用户对总统选举阶段的情绪","authors":"F. Dharta, Ardhana Januar Mahardhani, Sitti Rachmawati Yahya, Andika Dirsa, Elvira M. Usulu","doi":"10.60083/jidt.v6i1.494","DOIUrl":null,"url":null,"abstract":"This research aims to analyze the sentiment of social media users towards the election. The author collected data in this research through a literature study and observation. The author uses a classification method with the Naïve Bayes Classifier Algorithm and Support Vector Machine to analyze sentiment results. Next, this research extracts word assessment features using TextBlob, which changes text into positive or negative classes. Based on the research results, after going through the text preprocessing stage of more than 15,000 tweets, 11,000 clean tweets were obtained, which were then labelled using the text blob library in Python. The labelling results show that 4,000 tweets are positive, and the rest are harmful, indicating that most social media users' sentiment towards the election is positive. Words that often appear in the positive class express support and confidence in implementing elections that are considered honest and fair. On the other hand, words in the negative class reflect negative sentiment towards implementing elections, which are considered unsuccessful and time-consuming. The Naïve Bayes method provides accuracy, precision, and recall values of 85%, 80%, and 75%. In the Support Vector Machine method, testing is carried out with three kernels (linear, RBF, and poly), where the poly kernel with the best parameter values C is ten and degree is 1 produces the highest accuracy, precision, and recall of 90%, 90%, and 85%, respectively.","PeriodicalId":507682,"journal":{"name":"Jurnal Informasi dan Teknologi","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-02-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Application of Naive Bayes Classifier Method to Analyze Social Media User Sentiment Towards the Presidential Election Phase\",\"authors\":\"F. Dharta, Ardhana Januar Mahardhani, Sitti Rachmawati Yahya, Andika Dirsa, Elvira M. Usulu\",\"doi\":\"10.60083/jidt.v6i1.494\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"This research aims to analyze the sentiment of social media users towards the election. The author collected data in this research through a literature study and observation. The author uses a classification method with the Naïve Bayes Classifier Algorithm and Support Vector Machine to analyze sentiment results. Next, this research extracts word assessment features using TextBlob, which changes text into positive or negative classes. Based on the research results, after going through the text preprocessing stage of more than 15,000 tweets, 11,000 clean tweets were obtained, which were then labelled using the text blob library in Python. The labelling results show that 4,000 tweets are positive, and the rest are harmful, indicating that most social media users' sentiment towards the election is positive. Words that often appear in the positive class express support and confidence in implementing elections that are considered honest and fair. On the other hand, words in the negative class reflect negative sentiment towards implementing elections, which are considered unsuccessful and time-consuming. The Naïve Bayes method provides accuracy, precision, and recall values of 85%, 80%, and 75%. In the Support Vector Machine method, testing is carried out with three kernels (linear, RBF, and poly), where the poly kernel with the best parameter values C is ten and degree is 1 produces the highest accuracy, precision, and recall of 90%, 90%, and 85%, respectively.\",\"PeriodicalId\":507682,\"journal\":{\"name\":\"Jurnal Informasi dan Teknologi\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-02-04\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Jurnal Informasi dan Teknologi\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.60083/jidt.v6i1.494\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Jurnal Informasi dan Teknologi","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.60083/jidt.v6i1.494","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

本研究旨在分析社交媒体用户对选举的情绪。作者在本研究中通过文献研究和观察收集数据。作者使用 Naïve Bayes 分类器算法和支持向量机的分类方法来分析情感结果。接下来,本研究使用 TextBlob 提取单词评估特征,将文本分为正面或负面类别。根据研究结果,在对 15000 多条推文进行文本预处理阶段后,得到了 11000 条干净的推文,然后使用 Python 中的文本 Blob 库对这些推文进行了标注。标注结果显示,有 4000 条推文是正面的,其余的都是有害的,这表明大多数社交媒体用户对选举的情绪是积极的。经常出现在正面类中的词语表达了对实施被认为是诚实公正的选举的支持和信心。另一方面,负面类中的词语反映了人们对实施选举的负面情绪,认为选举不成功且耗费时间。奈维贝叶斯方法的准确率、精确率和召回率分别为 85%、80% 和 75%。在支持向量机方法中,测试使用了三种核(线性、RBF 和 poly),其中最佳参数值 C 为 10、度数为 1 的 poly 核的准确率、精确率和召回率最高,分别为 90%、90% 和 85%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Application of Naive Bayes Classifier Method to Analyze Social Media User Sentiment Towards the Presidential Election Phase
This research aims to analyze the sentiment of social media users towards the election. The author collected data in this research through a literature study and observation. The author uses a classification method with the Naïve Bayes Classifier Algorithm and Support Vector Machine to analyze sentiment results. Next, this research extracts word assessment features using TextBlob, which changes text into positive or negative classes. Based on the research results, after going through the text preprocessing stage of more than 15,000 tweets, 11,000 clean tweets were obtained, which were then labelled using the text blob library in Python. The labelling results show that 4,000 tweets are positive, and the rest are harmful, indicating that most social media users' sentiment towards the election is positive. Words that often appear in the positive class express support and confidence in implementing elections that are considered honest and fair. On the other hand, words in the negative class reflect negative sentiment towards implementing elections, which are considered unsuccessful and time-consuming. The Naïve Bayes method provides accuracy, precision, and recall values of 85%, 80%, and 75%. In the Support Vector Machine method, testing is carried out with three kernels (linear, RBF, and poly), where the poly kernel with the best parameter values C is ten and degree is 1 produces the highest accuracy, precision, and recall of 90%, 90%, and 85%, respectively.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Social Media Analysis: Utilizing Information Technology for Market Intelligence and Branding of Toraja Coffe Products Consumer Preferences on Processed Herbs and Spices Products of SMEs in Sukoharjo Managing Human Resource in the Digital Economy: Balancing Challenges and Opportunities The Disabled Community Empowerment Model with Social Entrepreneurship Approach to Tenoon Business Analysis of The Role of Affective Commitment As an Intervening Variable in The Relationship Between Effective Reward and Organizational Learning in Advertising Industry
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1