Jurnal Teknik Informatika (JUTIF)
Vol. 5 No. 4 (2024): JUTIF Volume 5, Number 4, August 2024 - SENIKO

A COMPARISON OF THE NAIVE BAYES AND K-NN ALGORITHMS IN PREDICTING THE FRESHNESS OF MILKFISH AT FISH AUCTIONS

Harlis Setiyowati (Retail Management, Faculty of Humaniora, Universitas Pradita, Indonesia)
Hendra Mayatopani (Information System, Faculty of Science and Technology, Universitas Pradita, Indonesia)
Lilik Hariyanto (Culinary Art, Faculty of Hospitality and Tourism, Universitas Pradita, Indonesia)
Muhammad Alfathan Harriz (Informatics Engineering, Faculty of Science, Technology, Mathematics, Matana University, Indonesia)



Article Info

Publish Date
02 Aug 2024

Abstract

This research aims to compare the performance of two machine learning algorithms, Naive Bayes and K-Nearest Neighbors (K-NN), in predicting the freshness of milkfish (Chanos chanos) at fish auctions. Predicting fish freshness is an important aspect to ensure product quality and customer satisfaction. The Naive Bayes algorithm, which is based on Bayes' Theorem with the assumption of independence between features, as well as the K-NN algorithm, which uses an instance-based approach to classify data based on proximity to k nearest neighbors, were implemented and tested. Evaluation is carried out using accuracy and Kappa metrics. The results show that Naive Bayes achieved an accuracy of 73.44% with a Kappa value of 0.594, indicating good performance in predicting the freshness of milkfish. In contrast, K-NN shows an accuracy of 68.75% and a Kappa value of 0.461, which means its performance is lower compared to Naive Bayes. Further analysis revealed that Naive Bayes is more computationally efficient and faster at making predictions, making it better suited for real-time applications at fish auctions. However, Naive Bayes has limitations in assuming feature independence which may not always be true in real-world situations. On the other hand, K-NN although more flexible and capable of capturing complex patterns in data, tends to be slow and requires optimization of parameters such as k values ​​to improve its performance. In conclusion, Naive Bayes is recommended for predicting the freshness of milkfish at fish auctions because of its higher accuracy and reliability. Further research is needed to optimize these two algorithms through parameter adjustments and the use of ensemble methods to improve overall prediction performance.

Copyrights © 2024






Journal Info

Abbrev

jurnal

Publisher

Subject

Computer Science & IT

Description

Jurnal Teknik Informatika (JUTIF) is an Indonesian national journal, publishes high-quality research papers in the broad field of Informatics, Information Systems and Computer Science, which encompasses software engineering, information system development, computer systems, computer network, ...