Combination of K-NN and PCA Algorithms on Image Classification of Fish Species
Abstract
To do fish farming, you need to know the types of fish to be cultivated. This is because the type of fish will affect how it is handled and managed. Therefore, this study aims to develop an image processing system for classifying fish species, especially cultivated fish, with a combination of the K-Nearest Neighbor (K-NN) algorithm and Principal Component Analysis (PCA). The feature extraction used is feature extraction based on its color and shape. The K-NN algorithm can group certain objects considering the shortest distance from the object. According to the best criteria, the PCA method is employed in the meanwhile to decrease and keep the majority of the relevant data from the original characteristics. On the basis of the test results, the accuracy value obtained is 85%. The use of a combination of the K-NN and PCA algorithms in the image classification of fish species in the research that has been done has been shown to be capable of increasing accuracy by 7.5% compared to only using the K-NN algorithm.
Downloads
References
S. Manel et al., “Global determinants of freshwater and marine fish genetic diversity,” Nat. Commun., vol. 11, no. 1, p. 692, 2020, doi: 10.1038/s41467-020-14409-7.
A. Ssekyanzi, N. Nevejan, R. Kabbiri, J. Wesana, and G. Van Stappen, “Knowledge, Attitudes, and Practices of Fish Farmers Regarding Water Quality and Its Management in the Rwenzori Region of Uganda,” Water (Switzerland), vol. 15, no. 1, pp. 1–22, 2023, doi: 10.3390/w15010042.
L. Zhang, L. Zhang, and L. Zhang, “Application research of digital media image processing technology based on wavelet transform,” Eurasip J. Image Video Process., vol. 2018, no. 138, pp. 1–10, 2018, doi: 10.1186/s13640-018-0383-6.
H. Mayatopani, R. I. Borman, W. T. Atmojo, and A. Arisantoso, “Classification of Vehicle Types Using Backpropagation Neural Networks with Metric and Ecentricity Parameters,” J. Ris. Inform., vol. 4, no. 1, pp. 65–70, 2021, doi: 10.34288/jri.v4i1.293.
R. I. Borman, F. Rossi, D. Alamsyah, R. Nuraini, and Y. Jusman, “Classification of Medicinal Wild Plants Using Radial Basis Function Neural Network with Least Mean Square,” in International Conference on Electronic and Electrical Engineering and Intelligent System (ICE3IS), 2022.
E. P. Wanti, A. Pariyandani, S. Zulkarnain, and S. Idrus, “Utilization of SVM Method and GLCM Feature Extraction in Classifying Fish Images with Formalin,” Sci. J. Informatics, vol. 8, no. 1, pp. 168–175, 2021, doi: 10.15294/sji.v8i1.26806.
R. I. Borman, F. Rossi, Y. Jusman, A. A. A. Rahni, S. D. Putra, and A. Herdiansah, “Identification of Herbal Leaf Types Based on Their Image Using First Order Feature Extraction and Multiclass SVM Algorithm,” in International Conference on Electronic and Electrical Engineering and Intelligent System (ICE3IS), 2021, pp. 12–17. doi: 10.1109/ICE3IS54102.2021.9649677.
R. Nuraini, “Identification of Freshwater Fish Types Using Linear Discriminant Analysis (LDA) Algorithm,” IJICS (International J. Informatics Comput. Sci., vol. 6, no. 3, pp. 147–154, 2022, doi: 10.30865/ijics.v6i3.5565.
M. J. Alrawashdeh, T. Radwan, and K. Abunawas, “Performance of linear discriminant analysis using different robust methods,” Eur. J. Pure Appl. Math., vol. 11, no. 1, pp. 284–298, 2018.
S. Kaharuddin and E. W. Sholeha, “Classification of Fish Species with Image Data Using K-Nearest Neighbor,” Int. J. Comput. Inf. Syst., vol. 02, no. 02, pp. 54–58, 2021.
S. Uddin, I. Haque, H. Lu, M. A. Moni, and E. Gide, “Comparative performance analysis of K‑nearest neighbour (KNN) algorithm and its different variants for disease prediction,” Sci. Rep., vol. 12, no. 6256, pp. 1–11, 2022, doi: 10.1038/s41598-022-10358-x.
M. A. Imron and B. Prasetiyo, “Improving Algorithm Accuracy K-Nearest Neighbor Using Z-Score Normalization and Particle Swarm Optimization to Predict Customer Churn,” J. Soft Comput. Explor., vol. 1, no. 1, pp. 56–62, 2020, doi: 10.52465/joscex.v1i1.7.
R. I. Borman and B. Priyopradono, “Implementasi Penerjemah Bahasa Isyarat Pada Bahasa Isyarat Indonesia (BISINDO) Dengan Metode Principal Component Analysis (PCA),” J. Inform. J. Pengemb. IT, vol. 03, no. 1, pp. 103–108, 2018.
R. I. Borman, R. Napianto, N. Nugroho, D. Pasha, Y. Rahmanto, and Y. E. P. Yudoutomo, “Implementation of PCA and KNN Algorithms in the Classification of Indonesian Medicinal Plants,” in ICOMITEE 2021, 2021, pp. 46–50.
A. Mulyanto, W. Jatmiko, P. Mursanto, P. Prasetyawan, and R. I. Borman, “A New Indonesian Traffic Obstacle Dataset and Performance Evaluation of YOLOv4 for ADAS,” J. ICT Res. Appl., vol. 14, no. 3, pp. 286–298, 2021.
Z. Abidin, Permata, R. I. Borman, U. Ardiyatno, F. Rossi, and Y. Jusman, “Computer-aided Translation Based on Lampung Language as Low Resource Language,” in International Conference on Computer Science, Information Technology, and Electrical Engineering (COMITEE), 2021, pp. 7–11. doi: 10.1109/ICOMITEE53461.2021.9650324.
A. Gholamy, V. Kreinovich, and O. Kosheleva, “Why 70/30 or 80/20 Relation Between Training and Testing Sets : A Pedagogical Explanation,” Sch. UTEP, vol. 2, pp. 1–6, 2018.
I. Ahmad, Y. Rahmanto, R. I. Borman, F. Rossi, Y. Jusman, and A. D. Alexander, “Identification of Pineapple Disease Based on Image Using Neural Network Self-Organizing Map (SOM) Model,” in International Conference on Electronic and Electrical Engineering and Intelligent System (ICE3IS), 2022.
S. Bhahri and R. Rachmat, “Transformasi Citra Biner Menggunakan Metode Thresholding Dan Otsu Thresholding,” J. Sist. Inf. dan Teknol. Inf., vol. 7, no. 2, pp. 195–203, 2018.
W. K. Mutlag, S. K. Ali, Z. M. Aydam, and B. H. Taher, “Feature Extraction Methods: A Review,” J. Phys. Conf. Ser., vol. 1591, no. 1, pp. 1–10, 2020, doi: 10.1088/1742-6596/1591/1/012028.
P. Haque, B. Das, and N. N. Kaspy, “Two-Handed Bangla Sign Language Recognition Using Principal Component Analysis (PCA) And KNN Algorithm,” in International Conference on Electrical, Computer and Communication Engineering (ECCE), 2019.
N. Nikita, H. Sadawarti, and B. Kaur, “Classification of Renal Cancer using Principal Component Analysis (PCA) and K-Nearest Neighbour (KNN),” Int. J. Eng. Res. Technol., vol. 8, no. 16, pp. 156–159, 2020.
S. Sanjaya, M. L. Pura, S. K. Gusti, F. Yanto, and F. Syafria, “K-Nearest Neighbor for Classification of Tomato Maturity Level Based on Hue, Saturation, and Value Colors,” Indones. J. Artif. Intell. Data Min., vol. 2, no. 2, p. 101, 2019, doi: 10.24014/ijaidm.v2i2.7975.
N. K. A. Wirdiani, P. Hridayami, N. P. A. Widiari, K. D. Rismawan, P. B. Candradinata, and I. P. D. Jayantha, “Face Identification Based on K-Nearest Neighbor,” Sci. J. Informatics, vol. 6, no. 2, pp. 150–159, 2019, doi: 10.15294/sji.v6i2.19503.
Z. Abidin, R. I. Borman, F. B. Ananda, P. Prasetyawan, F. Rossi, and Y. Jusman, “Classification of Indonesian Traditional Snacks Based on Image Using Convolutional Neural Network (CNN) Algorithm,” in International Conference on Electronic and Electrical Engineering and Intelligent System (ICE3IS), 2022, pp. 18–23.
R. I. Borman, Y. Fernando, and Y. Egi Pratama Yudoutomo, “Identification of Vehicle Types Using Learning Vector Quantization Algorithm with Morphological Features,” J. RESTI (Rekayasa Sist. dan Teknol. Informasi), vol. 6, no. 2, pp. 339–345, 2022, doi: 10.29207/resti.v6i2.3954.
Copyright (c) 2023 Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi)
This work is licensed under a Creative Commons Attribution 4.0 International License.
Copyright in each article belongs to the author
- The author acknowledges that the RESTI Journal (System Engineering and Information Technology) is the first publisher to publish with a license Creative Commons Attribution 4.0 International License.
- Authors can enter writing separately, arrange the non-exclusive distribution of manuscripts that have been published in this journal into other versions (eg sent to the author's institutional repository, publication in a book, etc.), by acknowledging that the manuscript has been published for the first time in the RESTI (Rekayasa Sistem dan Teknologi Informasi) journal ;