Hate speech content detection system on Twitter using K-nearest neighbor method

Prasetyo, Vincentius Riandaru and Samudra, Anton Hendrik (2022) Hate speech content detection system on Twitter using K-nearest neighbor method. In: AIP Conference Proceedings 2470, 3rd BIANNUAL INTERNATIONAL CONFERENCE ON INFORMATICS, TECHNOLOGY, AND ENGINEERING 2021 (InCITE 2021): Leveraging Smart Engineering, 25–26 August 2021, Surabaya, Indonesia (Online).

[thumbnail of Incite 2021 - Hate speech content detection system.pdf] PDF
Incite 2021 - Hate speech content detection system.pdf

Download (4MB)
Official URL / DOI: https://doi.org/10.1063/5.0080185


Twitter is a social media platform that many Indonesians use to express their thoughts on a variety of topics. In Indonesia, the use of social media is governed by a law known as Information and Electronic Transactions Law.However, until now, the implementation of this law has been subpar. This is because there are still violations occurring, and no legal action has been taken against these violations. Hate speech is a common violation on Twitter. The goal of this research is to create a system that can detect potential violations of content on Twitter, particularly content containing hate speech. The k-nearest neighbor (KNN) method was used in this research, along with the feature extraction method TF-IDF. The system built will detect whether the tweet you want to post violates a specific article in the Information and Electronic Transactions Law. Based on model validation, model classifier built has accuracy value is 67.86%, with K value in the KNN method is 10. Meanwhile, based on user validation, the system created has an accuracy of 77%.

Item Type: Conference or Workshop Item (Paper)
Uncontrolled Keywords: Hate Speech Detection, Twitter, K-Nearest Neighbor, ITE Law
Subjects: K Law > K Law (General)
Q Science > QA Mathematics > QA75 Electronic computers. Computer science
Q Science > QA Mathematics > QA76 Computer software
Divisions: Faculty of Engineering > Department of Informatic
Date Deposited: 27 May 2022 05:03
Last Modified: 16 Feb 2023 08:17
URI: http://repository.ubaya.ac.id/id/eprint/41914

Actions (login required)

View Item View Item