Jurnal Computer Science and Information Technology (CoSciTech)
Vol 6 No 2 (2025): Jurnal Computer Science and Information Technology (CoSciTech)

Perbandingan Random Forest Regressor Dan Decision Tree Regressor Untuk Prediksi Hasil Panen

Rizki Faizal (Unknown)
Abdullah, Asrul (Unknown)
Pangestika, Menur Wahyu (Unknown)



Article Info

Publish Date
05 Sep 2025

Abstract

Uncertainty in crop yields due to environmental factors remains a major challenge in Indonesia's agricultural sector. This study aims to compare the performance of the Random Forest Regressor and Decision Tree Regressor algorithms in predicting cultivated crop yields. The dataset used was sourced from Kaggle, consisting of 300,000 rows with features such as crop type, soil type, rainfall, fertilizer use, irrigation, and weather conditions. The system was developed using Python and Streamlit. The methodology includes data preprocessing, model training, and evaluation using the Mean Absolute Error (MAE) metric. The test results show that the Decision Tree Regressor achieved a lower MAE (0.43) compared to the Random Forest Regressor (0.48), resulting in more accurate predictions on this dataset. Feature analysis indicates that rainfall and crop type are the most influential factors. Although Random Forest is generally known for its stability, this study demonstrates that Decision Tree can outperform it within the context of the dataset used. The developed system is expected to assist farmers and policymakers in planning agricultural production more efficiently and in a data-driven manner.

Copyrights © 2025






Journal Info

Abbrev

coscitech

Publisher

Subject

Computer Science & IT

Description

Jurnal CoSciTech (Computer Science and Information Technology) merupakan jurnal peer-review yang diterbitkan oleh Program Studi Teknik Informatika, Fakultas Ilmu Komputer, Univeritas Muhammadiyah Riau (UMRI) sejak April tahun 2020. Jurnal CoSciTech terdaftar pada PDII LIPI dengan Nomor ISSN ...