Analysis of Hoax News in News Media Using the K-Nearest Neighbor (K -NN) Method

Authors

  • Putri Nabila Universitas Malikussaleh
  • Bustami Universitas Malikussaleh
  • Wahyu Fuadi Universitas Malikussaleh

DOI:

https://doi.org/10.59934/jaiea.v6i1.2799

Keywords:

Hoaks, Berita, K-Nearest Neighbor (KNN), Text Mining, Euclidean Distance

Abstract

The rapid development of internet technology has facilitated the dissemination of information within the community through various news media. However, this convenience has also fueled the widespread dissemination of unverified fake news (hoaxes), potentially causing social unrest, undermining the credibility of information, and manipulating public opinion. Therefore, a computing system capable of automatically filtering and categorizing news is needed to help readers distinguish between facts and hoaxes. This study aims to develop an automatic classification model to identify hoax news using the K-Nearest Neighbor (KNN) method and measure its accuracy.

This study uses the Euclidean Distance approach with a value of k = 3. This study uses 2,000 news data that have been collected and verified through official fact-checking sites. The data was divided using the train-test split method with a ratio of 80:20 to obtain 1,600 training data and 400 testing data . Based on the results of the confusion matrix test at a value of K = 3, the True Positive (TP) value was 104, False Positive (FP) was 0, False Negative (FN) was 95, and True Negative (TN) was 201. The model performance evaluation showed a precision value of 100%, recall of 52.26%, and accuracy of 76.25%. These results indicate that the K-NN method is able to classify news well and has a high level of precision, although the model's ability to detect all hoax news ( recall ) still needs to be improved in further research. This research is expected to contribute as a technology-based tool ( decision support system ) for the public and academics in monitoring, filtering, and tackling the spread of fake news in digital media.

 

Downloads

Download data is not yet available.

References

M. Audina, AE Karyawati, IW Supriana, IKG Suhartana, IGS Astawa, and IW Santiyasa, “Classification of Covid-19 Hoax News Using a Combination of K-Nearest Neighbor and Information Gain Methods,” JELIKU (Journal of Electron. Comput Science. Udayana) , vol. 10, no. 4, p. 319, 2022, doi: 10.24843/jlk.2022.v10.i04.p02.

Nur Halimah and Purwanti, “Implementing Critical Thinking in Daily Life: A Case Study of Handling Hoax News,” J. Media Commun. | E-ISSN 3063-9581 , vol. 1, no. 3, pp. 40–44, 2025, doi: 10.62379/jmc.v1i3.158.

MD Hendriyanto and BN Sari, “Application of the K-Nearest Neighbor Algorithm in Classifying Hoax News Titles,” J. Ilm. Inform. , vol. 10, no. 02, pp. 80–84, 2022, doi: 10.33884/jif.v10i02.5477.

F. Putra, HF Tahiyat, RM Ihsan, R. Rahmaddeni, and L. Efrizoni, “Application of K-Nearest Neighbor Algorithm Using Wrapper as Preprocessing for Determining Human Body Weight Information,” MALCOM Indones. J. Mach. Learn. Comput. Sci. , vol. 4, no. 1, pp. 273–281, 2024, doi: 10.57152/malcom.v4i1.1085.

S. Ernawati and R. Wati, “Application of the K-Nearest Neighbors Algorithm in Travel Agent Review Sentiment Analysis,” J. Khatulistiwa Inform. , vol. 6, no. 1, pp. 64–69, 2018, [Online]. Available: https://www.trustpilot.com/categories/tr

L. Rhomaningtias, A. Khairunisa, S. Shella May Wara, and K. Maulida Hindrayani, “Sentiment Analysis of Smile Indonesia Application Reviews Using Naive Bayes Method and Support Vector Machine (SVM),” HOAQ (High Educ. Organ. Arch. Qual. J. Teknol. Inf. , vol. 16, no. 1, pp. 79–91, 2025, doi: 10.52972/hoaq.vol16no1.p79-91.

C. Saputra, W. Wilcent, H. Irsyad, and A. Rahman, “Query Processing and Ranking of News Titles Related to the Governor of West Java Using TF-IDF and Cosine Similarity,” Appl. Inf. Technol. Comput. Sci. , vol. 4, no. 1, pp. 25–32, 2025, doi: 10.58466/aicoms.v4i1.1799.

AR Putri and RK Dinata, "Comparison of the K-Nearest Neighbor and Random Forest Methods in Classifying the Best Selling Medicines at Khan Pharmacy Matang Glumpang Dua," vol. 3, no. 2, pp. 90–95, 2026.

R. Fauzan, "A Different Approach on Automated Use Case Diagram Semantic Assessment," vol. 14, no. 1, pp. 496–505, 2021, doi: 10.22266/ijies2021.0228.46.

B. Christopher, “Comparative Analysis of K-Nearest Neighbor and Naïve Bayes Classifier Methods Based on Randomized Search Optimization in Hoax News Classification,” JATISI (Jurnal of Information Technology and Information Systems) , vol. 12, no. 2, pp. 272–283, 2025, doi: 10.35957/jatisi.v12i2.11371.

Downloads

Published

2026-10-15

How to Cite

Putri Nabila, Bustami, & Wahyu Fuadi. (2026). Analysis of Hoax News in News Media Using the K-Nearest Neighbor (K -NN) Method. Journal of Artificial Intelligence and Engineering Applications (JAIEA), 6(1), 573–580. https://doi.org/10.59934/jaiea.v6i1.2799