Claim Missing Document
Check
Articles

Found 1 Documents
Search
Journal : Journal of System and Computer Engineering

Crop Recommendation Based on Soil and Weather Conditions Using the K-Nearest Neighbors Algorithm Yuliyanto, Yuliyanto; Sahibu, Supriadi; Imran, Taufik; Arisha, Andriansyah Oktafiandi; Munawirah, Munawirah
Journal of System and Computer Engineering Vol 6 No 3 (2025): JSCE: July 2025
Publisher : Universitas Pancasakti

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.61628/jsce.v6i3.1955

Abstract

The national food self-sufficiency program demands innovation in optimizing the selection of agricultural commodities based on environmental and weather conditions. This challenge is rooted in a fundamental problem faced by farmers—achieving harmony among soil characteristics, weather patterns, and suitable crops. In support of this initiative, it is necessary to develop a crop recommendation system based on machine learning that utilizes key soil and weather condition parameters. This study employs the K-Nearest Neighbors (KNN) algorithm, which functions by identifying the optimal value of ‘K’ to maximize classification accuracy. The KNN algorithm is implemented in a crop recommendation system to classify 1,100 datasets representing ideal growing conditions for 11 crop types. These datasets were generated using a normal distribution approach with a 5% variation from the mean values, and were validated using a clipping function to ensure the data remained within ideal ranges. The results of this study demonstrate that the KNN algorithm achieves high accuracy 96,67% in utilizing soil and weather parameters to generate crop recommendations. The average probability score for the recommended crops was 83.33%. Based on experimental testing, rice was recommended during the rainy and extreme rainy seasons, soybeans were recommended during the dry season, and mung beans were most suitable during extreme dry conditions.
Co-Authors Adha, Adha Adi Pratama, Adi Afriadi, Achmad Afriadi, Muhammad Ahmad Gunadi, Ahmad Aiwa, Toto Akbar Rafsanjani, Alfarobbi Al Aziz, Putra Habib Alvariza Farrel, Delza Ambarwati, Indah Widya Amriyeny, Ulya Fajri Anjani, Arrum Puspita Aprilia, Zahra Dhiva Arisha, Andriansyah Oktafiandi Arliansyah, Arul Armin, Andre Hasnuryadi Baharuddin Baharuddin Baharuddin Baharuddin Boy Rollastin, Boy Rollastin Chamro', Wardatul Dafiuddin Salim Dafri, Nastiar Dharta, Yuli Edy Kustiani Eko Noer Kristiyanto, Eko Noer Eko Yudo Eko Yuliarsha Sidhi Ergiantoro, Anugerah Fadhian, Muhammad Filo Fathur Rohman, Fathur Feriadi, Indra Habib Al Aziz, Putra Hakim, Zikrul Harwadi, Harwadi Hasdiansah, Hasdiansah Husman, Husman Ilham Ary Wahyudie Imran, Taufik Jailani Jailani Josi, Ahmad Junaidi Junaidi Kurniawan, Ade Dwi Kusuma, Rian Laily Muharani Lioe, Kon Phin Marzuki, Slamet Masdani, Masdani Muhaimin Muhaimin Muhammad Faisal Amin Muhammad Subhan Muhammad Syahdan muharram, Muhammad Munawirah, Munawirah Mustopa Mustopa Novizal Novizal, Novizal Nugraheni Hadiyanti Nurcahya, Dian Nurcahya Nursalam Nursalam Oktoviandi, Oktoviandi Oktriadi, Yudi Parulian Silalahi Permana Liu, Marcell Candra Pranata, Yogi Pristiansyah, Pristiansyah Ramli Ramli Rangga Pratama, Rangga Pratama Razqi, Fadilla Muhamad Robert Napitupulu Rollastin, Boy Sahibu, Supriadi Saputra, Aprianor Teguh Setiawan, Iwan Dwi Simangunsong, Kristian Jubatner Somawardi Somawardi Subarkah, Imam SUBHAN, MUHAMAD Sugianto Sugianto Sujatmiko Sujatmiko Sukanto Sukanto Suzen, Zaldy Sirwansyah Sylvia Madusari Tony, Frans umah, khoiroh Ventani, Embun Wahyudie, Illham Ary Wibowo, Willy Yus Andi, Zulfan Zaldy Kurniawan Zulfitriyanto, Zulfitriyanto