Utilizing machine learning techniques to understand climate-crop production variability in the Akyemansa district of Ghana

Introduction This study integrates qualitative stakeholder insights with quantitative climate-soil analysis and machine learning (ML) to understand and predict cocoa production variability (monthly district-level output in tonnes) in the Akyemansa District. Methods Farmer surveys revealed sub-optimal agronomic practices, with 69% rarely applying fertilizers and 85% rarely applying pesticides, though pruning and shade management were widely adopted. Farmers identified weather variability, pests, and diseases as major constraints, while technology adoption for weather information remained low. Correlation analyses identified Wind Speed (r = −0.72), Wind Direction (r = −0.51), Dry Days (r = +0.50), and Rainy Days (r = −0.49) as the strongest associations with cocoa production, followed by Soil Temperature L4 (r = −0.45) and Precipitation (r = −0.40), with other climate and soil variables showing weaker relationships. Ten ML models were evaluated under baseline and PCA-transformed predictors. Results For the baseline models, XGBoost achieved the highest cross-validation R2 (0.58 ± 0.16), with the lowest MAE (8,812 ± 1,762 tonnes), while Gradient Boosting achieved the lowest RMSE (11,496 ± 2,432 tonnes). On the independent test set, AdaBoost achieved the highest baseline R2 (0.70), with an MAE of 9,132 tonnes and RMSE of 11,054 tonnes. Under PCA-transformed predictors, XGBoost achieved the highest cross-validation R2 (0.66 ± 0.10), while XGBoost achieved the highest independent test R2 (0.66); Linear Regression produced the lowest PCA-based test MAE (8,441 tonnes). PCA improved cross-validation performance for several models but did not consistently improve performance on the independent test period. The predictor set nevertheless exhibited substantial multicollinearity, with 21 strongly correlated predictor pairs (|r| > 0.80), a maximum VIF of 20,872.10, and a condition number of 563.32. Discussion Combining stakeholder insights with climate-soil data provides an evidence-based framework for understanding climate-related cocoa production variability. The findings highlight the potential of ML-based tools to support production sensitivity analysis, inform precision agriculture practices, and guide accessible advisory systems, thereby enhancing resilience and promoting sustainable cocoa production under increasing climatic variability.

Authors

Institutions

Publication Details

Journal
Frontiers in Agronomy
Published
2026-12-02
DOI
https://doi.org/10.3389/fagro.2026.1959692
Primary Topic
Climate change impacts on agriculture
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Utilizing machine learning techniques to understand climate-crop production variability in the Akyemansa district of Ghana

Jeffrey N. A. Aryee, Linus Kweku Labik, Charity Owusua Jnr Danso, Linus Kweku Labik
2 links
Frontiers in Agronomy
Climate change impacts on agriculture
article

Utilizing machine learning techniques to understand climate-crop production variability in the Akyemansa district of Ghana

Jeffrey N. A. Aryee, Linus Kweku Labik, Charity Owusua Jnr Danso, Linus Kweku Labik
article en

Abstract

Introduction This study integrates qualitative stakeholder insights with quantitative climate-soil analysis and machine learning (ML) to understand and predict cocoa production variability (monthly district-level output in tonnes) in the Akyemansa District. Methods Farmer surveys revealed sub-optimal agronomic practices, with 69% rarely applying fertilizers and 85% rarely applying pesticides, though pruning and shade management were widely adopted. Farmers identified weather variability, pests, and diseases as major constraints, while technology adoption for weather information remained low. Correlation analyses identified Wind Speed (r = −0.72), Wind Direction (r = −0.51), Dry Days (r = +0.50), and Rainy Days (r = −0.49) as the strongest associations with cocoa production, followed by Soil Temperature L4 (r = −0.45) and Precipitation (r = −0.40), with other climate and soil variables showing weaker relationships. Ten ML models were evaluated under baseline and PCA-transformed predictors. Results For the baseline models, XGBoost achieved the highest cross-validation R2 (0.58 ± 0.16), with the lowest MAE (8,812 ± 1,762 tonnes), while Gradient Boosting achieved the lowest RMSE (11,496 ± 2,432 tonnes). On the independent test set, AdaBoost achieved the highest baseline R2 (0.70), with an MAE of 9,132 tonnes and RMSE of 11,054 tonnes. Under PCA-transformed predictors, XGBoost achieved the highest cross-validation R2 (0.66 ± 0.10), while XGBoost achieved the highest independent test R2 (0.66); Linear Regression produced the lowest PCA-based test MAE (8,441 tonnes). PCA improved cross-validation performance for several models but did not consistently improve performance on the independent test period. The predictor set nevertheless exhibited substantial multicollinearity, with 21 strongly correlated predictor pairs (|r| > 0.80), a maximum VIF of 20,872.10, and a condition number of 563.32. Discussion Combining stakeholder insights with climate-soil data provides an evidence-based framework for understanding climate-related cocoa production variability. The findings highlight the potential of ML-based tools to support production sensitivity analysis, inform precision agriculture practices, and guide accessible advisory systems, thereby enhancing resilience and promoting sustainable cocoa production under increasing climatic variability.

Frontiers in AgronomyVol. 8
Clark University (US), Kwame Nkrumah University of Science and Technology (GH), Kwame Nkrumah University (ZM)
Zero hunger, Climate action, Industry, innovation and infrastructure
Climate change impacts on agriculture
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon