Most of Indonesia's land is used for agriculture and plantations because it is an agrarian country. Harvests or agricultural products can be exported to help the country's economic recovery. Coffee, the most traded tropical crop in the world, is one of the most valuable commodities. Approximately 25 million farming households contribute up to 80% of global coffee production (FAO Organizational 2023). Indonesia's coffee industry continues to experience significant annual growth. To optimize their production and distribution, Indonesian coffee producers must understand coffee bean sales trends. This study compares two methods for predicting coffee bean sales at the KOPEPI Ketiara Aceh Tengah Cooperative using Linear Regression and Random Forest methods. The research methods used in this study are data collection and system design. The results show a comparison of the Linear Regression and Random Forest methods in predicting coffee bean sales. Linear regression provides fairly good accuracy for the price variable with low MAPE values (3.35%–4.55%) and MAE that is still within reasonable limits, but produces large prediction errors for the export variable with high MAPE (67.84%–80.65%) and large MAE (5982–7960). In contrast, Random Forest shows superior performance with very low MAPE (2.69%–3.46%) and smaller MAE (4275–6038) on price variables, as well as more stable and consistent export predictions even though the MAPE values are still quite high (54.25%–84.97%). Overall, Random Forest is a more appropriate model to use because it provides accurate price predictions and more consistent export performance compared to Linear Regression.
Copyrights © 2026