Data Science
Finance
Technology
February 06, 2025
Coffee price prediction: challenges and solutions with data science
Even with technological and methodological advances, the unpredictability of global markets continues to be an obstacle

On January 30, 2025, coffee prices reached records, hitting US$ 4 per pound, according to the Reuters news agency. This historic increase is the result of a combination of factors, such as unfavorable climatic conditions in major producing countries, such as Brazil and Vietnam, in addition to an insufficient supply to meet growing global demand. Financial speculation and high hedging costs also contributed to this price escalation.
This scenario highlights the complexity involved in forecasting coffee prices, a product highly sensitive to climatic, political, and economic variations. The forecasting of commodity prices, especially coffee, is a process that involves several interconnected factors. According to Yeshiwas & Berelie (2020), volatility in commodity prices can be analyzed through còvolatility models, which help understand the interaction between different markets, such as coffee and oil.
However, supply shocks, variations in global demand, and macroeconomic events make building predictive models a challenge. In this scenario, data science is gaining an increasingly relevant role, enabling the analysis of large volumes of historical data in real-time to improve prediction accuracy.
Statistical models, such as AutoRegressive Integrated Moving Average (ARIMA) and Generalized Autoregressive Conditional Heteroskedasticity (GARCH), are useful for predicting financial commodity prices, but still struggle to capture unexpected events (natural disasters and economic crises), as analyzed by Divisekara et al. (2020). This demonstrates that, despite advances in predictive modeling, uncertainty will always be present in the coffee market.
The impact of the climate
Climatic conditions are one of the main factors affecting production and, consequently, coffee prices. Kouadio et al. (2021) state that biophysical models (which combine climatic, physiological, and soil-related factors to estimate crop yield) are fundamental for calculating the productivity of robusta coffee species, especially in regions where the climate varies drastically. Dinh et al. (2022) reinforce this view by demonstrating that precipitation and temperature can be used to predict coffee productivity, allowing for an anticipation of price fluctuations.
Other studies, such as those by Thao et al. (2022), use remote sensing data to improve productivity forecasts, demonstrating that the combination of climatic variables and satellite data can offer important insights for producers and investors.
The influence of macroeconomic factors
Beyond climate, macroeconomic factors play an important role in commodity pricing. Makkonen et al. (2021) analyzed how temperature anomalies and macroeconomic variables influence agricultural futures returns, showing that the interaction between these factors can affect price stability. Nguyen et al. (2022) demonstrated that domestic consumption and global demand dynamics are equally important in predicting coffee prices.
The speculation in the financial market is another relevant factor. Nugroho et al. (2021) used the Vector Error Correction Model (VECM) to analyze the effects of the Covid-19 pandemic on robusta coffee prices in Indonesia, concluding that global uncertainty and exchange rate fluctuations had a significant impact. Furthermore, Deina et al. (2022) showed that models based on Extreme Learning Machines (ELM) can outperform traditional approaches, suggesting that the use of advanced techniques can help reduce the impacts of speculation. The use of artificial intelligence and machine learning models allows for the processing of large amounts of financial and market data, improving projections and making forecasts more assertive.
Government policies
Other essential factors in coffee pricing are government policies and geopolitical events. Furthermore, advances in remote sensing have been enabling a more precise analysis of agricultural supply. Van Viet & Thuy (2023) demonstrated how satellite-derived vegetation indices, such as the Normalized Difference Vegetation Index (NDVI) and the Enhanced Vegetation Index (EVI), can contribute to coffee productivity forecasting, assisting governments and producers in strategic decisions. These indices help estimate vegetation health, allowing for anticipation of impacts from climate on the harvest and adjustment of expectations for supply and demand. Motisi et al. (2022), on the other hand, propose a qualitative model to predict outbreaks of coffee rust, one of the most detrimental diseases to the crop, helping to mitigate agricultural risks that could lead to even greater fluctuations in market prices.
The future
With the global coffee supply pressured by climatic and structural factors, prices are expected to remain volatile in the short term. Although the El Niño climatic phenomenon is not active on the planet in 2025, as indicated by the Climate Prediction Center of the National Oceanic and Atmospheric Administration (NOAA), future climatic events may still impact the performance of major producers, such as Brazil and Colombia. Furthermore, issues such as changes in environmental regulation, sustainability practices, and production costs may play a relevant role in defining the market scenario.
Data science and the adoption of machine learning models to predict trends continue to evolve, enabling more robust analyses by processing large volumes of data and identifying patterns that previously went unnoticed. However, despite these innovations, the complexity of the coffee market continues to present significant challenges for long-term forecasts.
Thus, forecasting commodity prices is a dynamic and challenging process, requiring a multidisciplinary approach that combines statistical models, artificial intelligence, macroeconomic analysis, and environmental monitoring. Even with technological and methodological advances, the unpredictability of global markets remains a significant obstacle to accurate and reliable forecasts.
| To access the references of this text click here |
Who wrote this column
José Erasmo Silva








