Klasifikasi Spam Tweet Pada Twitter Menggunakan Metode Naïve Bayes (studi Kasus: Pemilihan Presiden 2019)

Authors

DOI:

https://doi.org/10.34818/eoe.v6i2.9927

Abstract

Abstrak Pemilu merupakan wujud dari kebebasan berpendapat dan kebebasan berserikat. Sedangkan arti dari pemilu itu sendiri adalah proses pemilihan orang untuk mengisi jabatan-jabatan politik tertentu. Pada tahun 2019 Indonesia telah menyelenggarakan pesta demokrasi 5 tahunan yang telah dilaksanakan pada tanggal 17 april 2019. Pembahasan tentang pilpres 2019 begitu ramai diperbincangkan termasuk di media sosial twitter, Twitter telah memperkenalkan fitur Trending Topics sejak tahun 2018. Fitur ini memudahkan pengguna untuk mengetahui berita atau informasi terbaru di seluruh dunia secara real time. Bagi pengguna yang ingin melakukan promosi produk tentunya hal ini akan sangat bermanfaat bagi mereka, apalagi disertai dengan hashtag yang berkaitan dengan pilpres 2019 yang sedang ramai diperbincangkan. Dengan cara ini, mereka dapat mempromosikan konten dagangan mereka ke calon pembeli dengan lebih cepat. Hal ini menyebabkan para pengguna biasa membuang banyak waktu dalam memilih dan memilah informasi atau berita yang mereka inginkan karena konten yang tidak perlu muncul secara terus menerus atau dapat juga disebut dengan spam. Dalam menghadapi permasalahan tersebut, maka dari itu pada tugas akhir telah dibangun suatu sistem menggunakan metode Naive Bayes untuk mengklasifikasi sekumpulan tweet kedalam dua kelas yaitu spam dan non spam. Sebelum memasuki proses pengklasifikasian, sistem melakukan preprocessing terhadap dataset yang digunakan, hal tersebut bertujuan untuk meningkatkan performansi dari ke dua metode yang digunakan. Dalam penelitian ini Naïve Bayes dengan preprocessing dan Naïve Bayes tanpa preprocessing masing-masing menghasilkan nilai akurasi 76,34% dan 74,14%.

Kata Kunci: Pemilu, Twitter, Tweet, Spam, Naïve Bayes.

Abstract Elections are a manifestation from freedom of opinion and freedom of association. Whereas the meaning of the election itself is the process of selecting people to fulfill certain political positions. In 2019 Indonesia has held a 5 years democratic party which will be held on 17 April 2019. Discussions about the 2019 presidential election are so widely discussed including on social media twitter, Twitter has introduced the Trending Topics feature since 2018. This feature makes it easy for users to know the news or the latest information around the world in real time. For users who want to carry out product promotions surely this will be very beneficial for them, especially accompanied by the 2019 replace the president election hashtag which is widely being discussed. In this way, they can promote their merchandise to potential buyers faster. This causes ordinary users to waste a lot of time in choosing and sorting information or news they want due to content that does not need to appear continuously or can also be called spam. In dealing with these problems, therefore in this final project will be built a system using the Naive Bayes method to classify a set of tweets into two classes namely spam and non spam. Before entering the classification process, the system preprocesses the data set used, it aims to improve performance from the two methods used. In this study Naive Bayes with preprocessing and Naive Bayes without preprocessing each produced an accuracy value of 76,34% and 74,14%.

Keywords: Election, Twitter, Tweet, Spam, Naïve Bayes

Downloads

Download data is not yet available.

References

[1] T. India, "blog.twitter.com," Twitter, 5 December 2018. [Online]. Available: https://blog.twitter.com/en_in/topics/events/2018/Year-on-Twitter-2018-India.html. [Accessed Thursday August 2019].

[2] Y. Zhu, X. Wang, E. Zong, N. L. N, H. Li and Q. Yang, "Discovering Spammers in Social Networks," Proceedings of the Twenty-Sixth AAAI Conference on Artificial Intelligence, 2012.

[3] H. T. W, "SPAM-Different Approach to Fighting," 2004.

[4] F. A. Prayoga, A. Pinandito and R. S. Perdana, "Rancang Bangun Aplikasi Deteksi Spam Twitter menggunakan Metode Naive Bayes dan KNN pada Perangkat Bergerak Android," Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 2, pp. 554-564, 2018.

[5] D. H. Deshmukh, T. Ghorpade and P. Padiya, "Classification Using Preprocessing and Machine Learning Algorithms on NSL- KDD Dataset," International Conference on Communication, Information & Computing Technology (ICCICT), pp. 16-17, 2015.

[6] A. Strange, "Flickr Document Reveals Origin Of Twitter," Wired News, 20 April 2007. [Online]. Available: https://www.wired.com/2007/04/flickr-document/. [Accessed 20 Oktober 2018].

[7] M. G. H, "Web spam taxonomy," New York, ACM Press, 2005.

[8] A. I. Khadim, Y. -N. Cheah and N. H. Ahamed, "Text Document Preprocessing and Dimension Reduction Techniques for Text Document Clustering," 2014 4th International Conference on Artificial Intelligence with Applications in Engineering and Technology, pp. 69-73, 2014.

[9] Z. Ceska and C. Fox, "The Influence of Text Pre-processing on Plagiarism Detection," 2011. ISSN : 2355-9365 e-Proceeding of Engineering : Vol.6, No.2 Agustus 2019 | Page 9119

[10] R. S. P. M. A. F. A. R. T. Lestari, "Analisis Sentimen Tentang Opini Pilkada Dki 2017 Pada Dokumen Twitter Berbahasa Indonesia Menggunakan Näive Bayes dan Pembobotan Emoji," Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 1, no. 12, pp. 1718-1724, 2017.

[11] Kohavi, "A study of Cross-Validation and Bootstrap for Accuracy Estimation and Model Selection," 2014, p. 167.

[12] M. F. A. Azka, "Pemanfaatan Ontologi dengan Paradigma Pembangunan Combined Hierarchy dalam Pengukuran Indeks Kebahagiaan Masyarakat Kota Bandung," 2016, pp. 10-15.

Downloads

Published

2019-08-01

Issue

Pages

9111-9120

Section

Program Studi S1 Informatika

How to Cite

Hanafiah, M., Herdiani, A., & Astuti, W. (2019). Klasifikasi Spam Tweet Pada Twitter Menggunakan Metode Naïve Bayes (studi Kasus: Pemilihan Presiden 2019). EProceedings of Engineering, 6(2), 9111-9120. https://doi.org/10.34818/eoe.v6i2.9927