TY - JOUR AU - Garba, Mahaman Lawali Inoussa AU - Harouna, Naroua AU - Kadri, Chaibou AU - Ali, Maman Aminou AU - Moussa, Hannatou PY - 2025 TI - Crop Yield Prediction in Niger Using Machine Learning Techniques JF - Journal of Computer Science VL - 21 IS - 8 DO - 10.3844/jcssp.2025.1811.1818 UR - https://thescipub.com/abstract/jcssp.2025.1811.1818 AB - Agriculture is the most impactful sector on Niger's economic growth. Stresses related to climate change and the environment are leading to a continuous decline in crop yield. Accurate crop yield forecasting is of paramount importance for farmers, government, policy makers, and other stakeholders to make most appropriate decisions regarding resource allocation and food security. This study examines the power of Machine Learning (ML) algorithms for crop yield prediction in Niger by introducing a combined machine learning and multi-level stacking ensemble (CML MSE) model as a solution to improving the accuracy of crop forecasts using real farming data. Parameters such as agricultural, environmental and soil conditions are used to develop the CML- MSE approach to help farmers in making appropriate decisions for crop selection. The CML-MSE model consists of nine ML algorithms and three layers. The first layer uses K Nearest Neighbor (KNN), Decision Tree (DT), Random Forest (RF), XGBoost (XGboost), Lightgbm and Catboost algorithms as base learners; the second layer acts as a meta-learner and use Support Vector Machine (SVM), Neural Network (NN) and Linear Regression (LR); and the third layer which uses LR algorithm. The prediction performance is assessed by using the Mean Absolute Error (MAE), the Root Mean Square Error (RMSE) and the coefficient of determination (R2), allowing comparisons to be made with the prediction of its individual models. The results obtained show that the proposed CML-MSE model offers the best performance compared with other models, with an MAE of 177.14 kg/ha, an RMSE of 243.71 kg/ha and an R2of 65%. This work aims to provide Niger farmers with means to make appropriate decisions for improved food security.