Have a personal or library account? Click to login
Machine Learning Approaches for Forecasting Raspberry Prices and Farm Profitability in Serbia Cover

Machine Learning Approaches for Forecasting Raspberry Prices and Farm Profitability in Serbia

Open Access
|Nov 2025

Abstract

Price volatility and uncertain profitability remain critical challenges for Serbia’s raspberry sector, which is among the largest in the world and highly dependent on export markets. This study develops and evaluates machine learning (ML) approaches for forecasting raspberry prices and profitability, using farm-level production and economic data collected between 2020 and 2024. Several models, including multiple linear regression, random forest, gradient boosting, and long short-term memory (LSTM) neural networks, were trained and validated on historical data incorporating yields, input costs, prices, and cultivar characteristics. Forecast accuracy was assessed using mean absolute error (MAE) and root mean square error (RMSE). The results indicate that ensemble methods (random forest and gradient boosting) provided the most robust short-term price forecasts, whereas the LSTM achieved superior performance in capturing non-linear dynamics and seasonal fluctuations. The profitability predictions revealed that family labor costs and price variability were the strongest explanatory factors associated with the gross margin risk. Overall, the findings demonstrate that machine learning offers a valuable tool for anticipating market outcomes and managing economic risk in export-oriented horticulture. By integrating predictive analytics into farm-level and policy decision-making, Serbia’s raspberry producers can improve planning, stabilize income, and strengthen competitiveness in volatile international markets.

DOI: https://doi.org/10.2478/contagri-2025-0028 | Journal eISSN: 2466-4774 | Journal ISSN: 0350-1205
Language: English
Page range: 284 - 291
Submitted on: Sep 19, 2025
|
Accepted on: Nov 7, 2025
|
Published on: Nov 27, 2025
Published by: University of Novi Sad
In partnership with: Paradigm Publishing Services
Publication frequency: 4 issues per year

© 2025 Nataša Milosavljević, Danica Glavaš-Trbić, Vedran Tomić, Robert Radišić, Stevan Čanak, published by University of Novi Sad
This work is licensed under the Creative Commons Attribution 4.0 License.