Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Semi-supervised Text Annotation for Hate Speech Detection using K-Nearest Neighbors and Term Frequency-Inverse Document Frequency

Author 1: Nur Heri Cahyana Author 2: Shoffan Saifullah Author 3: Yuli Fauziah Author 4: Agus Sasmito Aribowo Author 5: Rafal Drezewski
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 13, No. 10 · Published 2022 · Cited by 22

DOI: https://doi.org/10.14569/IJACSA.2022.0131020

Abstract

Sentiment analysis can detect hate speech using the Natural Language Processing (NLP) concept. This process requires annotation of the text in the labeling. However, when carried out by people, this process must use experts in the field of hate speech, so there is no subjectivity. In addition, if processed by humans, it will take a long time and allow errors in the annotation process for extensive data. To solve this problem, we propose an automatic annotation process with the concept of semi-supervised learning using the K-Nearest Neighbor algorithm. This process requires feature extraction of term frequency-inverse document frequency (TF-IDF) to obtain optimal results. KNN and TF-IDF were able to annotate and increase the accuracy of < 2% from the initial iteration of 57.25% to 59.68% in detecting hate speech. This process can annotate the initial dataset of 13169 with the distribution of 80:20 of training and testing data. There are 2370 labeled datasets; for testing, there are 1317 unannotated data; after preprocessing, there are 9482. The final results of the KNN and TF-IDF annotation processes have a length of 11235 for annotated data.

Keywords

How to Cite this Article

Cahyana, N. H., Saifullah, S., Fauziah, Y., Aribowo, A. S., & Drezewski, R. (2022). Semi-supervised Text Annotation for Hate Speech Detection using K-Nearest Neighbors and Term Frequency-Inverse Document Frequency. International Journal of Advanced Computer Science and Applications, 13(10). https://doi.org/10.14569/IJACSA.2022.0131020

Cahyana, Nur Heri, et al.. "Semi-supervised Text Annotation for Hate Speech Detection using K-Nearest Neighbors and Term Frequency-Inverse Document Frequency." International Journal of Advanced Computer Science and Applications, vol. 13, no. 10, 2022, https://doi.org/10.14569/IJACSA.2022.0131020.

@article{Cahyana2022,
  title     = {Semi-supervised Text Annotation for Hate Speech Detection using K-Nearest Neighbors and Term Frequency-Inverse Document Frequency},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {13},
  number    = {10},
  year      = {2022},
  publisher = {The Science and Information Organization},
  author    = {Nur Heri Cahyana and Shoffan Saifullah and Yuli Fauziah and Agus Sasmito Aribowo and Rafal Drezewski},
  doi       = {10.14569/IJACSA.2022.0131020},
  url       = {https://doi.org/10.14569/IJACSA.2022.0131020}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.