Abstract
This study aims to analyze soil quality using the K-Nearest Neighbors (KNN) algorithm based on environmental parameters such as temperature, humidity, pH, and nutrient content (N, P, K). The dataset used consists of 660 entries covering 22 different classes describing soil types with varying characteristics. The KNN model was applied to classify soil quality, and the results were evaluated using the Confusion Matrix and Classification Report. The accuracy of the model obtained was around 61%, indicating potential improvements in the classification of some more difficult soil classes. The model performed better on certain classes such as kidney beans, chickpeas, and grapes, but was less than optimal on other classes such as watermelon and pomegranate. These results indicate class alignment in the dataset that affects model performance. This study contributes to the application of machine learning algorithms in agriculture, especially for soil quality monitoring. In the future, this study opens up opportunities for further improvements by using parameter optimization techniques and other more complex algorithms. Thus, the results of this study can be used as a basis for developing intelligent systems for more effective and efficient soil management.
Keywords
Article Details
How to Cite
Citation FormatReferences
10 References- Aljanabi, M. H., & Aljanabi, K. B. (2023). A Parallel Approach for Optimizing KNN Classification Algorithm in Big Data. Al-Salam Journal for Engineering and Technology, 2(2), 165-172.
- Ayuningtias, N. H., Arifin, M., & Damayani, M. (2016). Analisa kualitas tanah pada berbagai penggunaan lahan di Sub Sub DAS Cimanuk Hulu. soilrens, 14(2). https://doi.org/10.24198/soilrens.v14i2.11035.
- Budianto, I. (2023). Klasifikasi Kondisi Tanah Berdasarkan Rekomendasi Tanaman Pertanian dan Perkebunan Melalui Penggunaan Jaringan Syaraf Tiruan Klasifikasi Multinomial.
- FINKA, M. G. S. (2023). Implementasi K-Nearest Neighbor (Knn) Untuk Klasifikasi Citra Serat Kayu.
- Ghosh, A., Senapati, A., Das, R., Sarkar, S., Saha, J., Mahanta, A., & Pal, S. B. (2023). Crop Recommendation Assistance Using Machine Learning (KNN Algorithm) and Python GUI. American Journal of Electronics & Communication, 4(2), 7-11.
- Hatuwal, B. K., Shakya, A., & Joshi, B. (2020). Plant Leaf Disease Recognition Using Random Forest, KNN, SVM and CNN. Polibits, 62, 13-19.
- LISA, L. (2023). ANALISIS KANDUNGAN LOGAM DAN UNSUR HARA PADA TANAH ULTISOL DENGAN MENGGUNAKAN X-RAY FLUORESCENCE (XRF) DAN UJI LABORATORIUM (Doctoral dissertation, UNIVERSITAS JAMBI).
- Putrama, Z. Implementasi metode k-medoid dalam penentuan cluster daerah berdasarkan tingkat pendapatan pajak di kabupaten pasaman barat (Bachelor's thesis, Fakultas Sains dan Teknologi UIN Syarif HIdayatullah Jakarta).
- Wijayanti, E. B., Setiadi, D. R. I. M., & Setyoko, B. H. (2024). Dataset analysis and feature characteristics to predict rice production based on eXtreme gradient boosting. Journal of Computing Theories and Applications, 1(3), 299-310.
- Wilson, A., Sukumar, R., & Hemalatha, N. (2021). Machine learning model for rice yield prediction using KNN regression. agriRxiv, (2021), 20210310469.
License
Copyright (c) 2025 Md Wira Putra Dananjaya, Gede Humaswara Prathama, I Gusti Ngurah Darma Paramartha, Putu Gita Pujayanti

This work is licensed under a Creative Commons Attribution 4.0 International License.
This is an open-access journal distributed under the Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits unrestricted use, distribution, reproduction, and adaptation in any medium (even commercially), provided appropriate credit is given to the original author(s), a link to the license is provided, and any changes made are indicated. Authors retain copyright without restrictions and grant the journal the right of first publication as well as non-exclusive publishing rights for archiving, indexing, and scholarly dissemination.
Downloads
OJS UsageStats PluginSimilar Articles
- Analisis Sentimen Pembelajaran Daring menggunakan Metode Naïve Bayes, KNN, dan Decision Tree Tobby Wiratama Putra, Agung Triayudi, Andrianingsih Andrianingsih · Jurnal JTIK (Jurnal Teknologi Informasi dan Komunikasi) · Vol. 6 No. 1 (2022): JANUARY-MARCH 2022
- Klasifikasi Jenis Kucing Menggunakan Algoritma K-Nearest Neighbor Dadang Iskandar Mulyana, Siti Nurhaliza · Jurnal JTIK (Jurnal Teknologi Informasi dan Komunikasi) · Vol. 9 No. 3 (2025): JULY-SEPTEMBER 2025
- Prediksi Ketuntasan Siswa Berbasis Data Multidimensi Menggunakan Metode K-Nearest Neighbor (KNN) di SMK NU Hasyim Asy'ari 2 Kudus Muhammad Syafi’ul Huda, Harminto Mulyo, Gentur Wahyu Nyipto Wibowo · Jurnal JTIK (Jurnal Teknologi Informasi dan Komunikasi) · Vol. 10 No. 4 (2026): OCTOBER 2026
- Implikasi Kode Klasifikasi Program Televisi Catatan Si Bocil NET TV Terhadap Tayangan Anak Siti Anisa Setiani, Hery Supiarza, Salsa Solli Nafsika · Jurnal JTIK (Jurnal Teknologi Informasi dan Komunikasi) · Vol. 7 No. 3 (2023): JULY-SEPTEMBER 2023
- Klasifikasi Kardus Barang di PT XYZ Menggunakan Convolutional Neural Network dengan Pendekatan Fine Grained Image Classification Alief Yuwastika Firmandicky, Yeremia Alfa Susetyo · Jurnal JTIK (Jurnal Teknologi Informasi dan Komunikasi) · Vol. 8 No. 4 (2024): OCTOBER-DECEMBER 2024
You may also start an advanced similarity search for this article.