Skip to main content
QUICK REVIEW

[Paper Review] A Machine Learning Approach to Forecasting Honey Production with Tree-Based Methods

Alessio Brini, Elisa Giovannini|arXiv (Cornell University)|Mar 30, 2023
Bee Products Chemical AnalysisAgricultural and Biological Sciences6 citations
TL;DR

This study proposes a machine learning approach using Random Forest and XGBoost to forecast honey production variation in Italian beehives by leveraging high-frequency hive and weather data. Tree-based models outperformed linear methods, with lagged hive weight and temperature/rainfall variables emerging as key predictors, enabling actionable risk management for beekeepers and insurers.

ABSTRACT

The beekeeping sector has experienced significant production fluctuations in recent years, largely due to increasingly frequent adverse weather events linked to climate change. These events can severely affect the environment, reducing its suitability for bee activity. We conduct a forecasting analysis of honey production across Italy using a range of machine learning models, with a particular focus on weather-related variables as key predictors. Our analysis relies on a dataset collected in 2022, which combines hive-level observations with detailed weather data. We train and compare several linear and nonlinear models, evaluating both their predictive accuracy and interpretability. By examining model explanations, we identify the main drivers of honey production. We also ensemble models from different families to assess whether combining predictions improves forecast accuracy. These insights support beekeepers in managing production risks and may inform the development of insurance products against unexpected losses due to poor harvests.

Motivation & Objective

  • To develop a predictive model for honey production variation in Italian beehives using machine learning.
  • To identify the most influential climatic and hive-level drivers of honey production using interpretable ML techniques.
  • To support beekeeping decision-making and insurance product design through accurate, prescriptive forecasting.
  • To assess the superiority of tree-based models over linear models in capturing complex, non-linear relationships in honey production data.
  • To provide actionable insights for mitigating climate-related production losses in precision beekeeping.

Proposed method

  • The study uses a dataset of 431 beehives in Italy from January 2019 to July 2022, collected via precision beekeeping sensors.
  • Weather data from the Copernicus open-source database is integrated with hive-level features such as weight, temperature, and humidity.
  • Two tree-based models—Random Forest (RF) and Extreme Gradient Boosting (XGB)—are trained to predict honey production variation.
  • Model performance is evaluated using RMSE and R² metrics on a test set from the production period.
  • Feature importance is assessed using permutation importance and SHAP values to interpret model predictions.
  • SHAP values quantify the contribution of each input feature to the model output, enabling detailed interpretation of model behavior.

Experimental results

Research questions

  • RQ1Which climatic and hive-level variables most strongly influence honey production variation in Italian beehives?
  • RQ2How do tree-based models like Random Forest and XGBoost compare to linear models in predicting honey production variation?
  • RQ3To what extent do lagged hive weight and weather variables contribute to predictive accuracy?
  • RQ4How can SHAP values be used to interpret and validate the predictions of complex tree-based models?
  • RQ5Can the model support practical decisions such as hive relocation or insurance risk assessment?

Key findings

  • Tree-based models, particularly XGBoost and Random Forest, significantly outperformed standard linear models in predicting honey production variation, with lower RMSE and higher R² scores.
  • Lagged values of hive weight variation were the most important predictors, indicating strong auto-regressive dynamics in honey production.
  • Among weather features, mean and maximum temperature, and total rainfall from previous periods had the highest predictive importance.
  • SHAP analysis confirmed that temperature and rainfall variables had a strong, consistent impact on predictions, with positive or negative contributions depending on magnitude and timing.
  • The model’s interpretability through SHAP values enables actionable insights for beekeepers, such as optimal hive relocation timing to avoid adverse weather.
  • The results support the development of weather-indexed insurance products for beekeepers based on data-driven risk assessment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.