Commodity price forecasting with machine learning
TECHNICAL DEEP DIVE

AI for Commodity Price Forecasting in Procurement

By Fredrik Filipsson & Morten Andersen
Published 29 March 2026
Read time 9 minutes
Category Direct Materials

Why Commodity Price Forecasting Matters

Commodity prices drive direct materials costs and impact gross margin significantly. In 2022, steel prices jumped 60% in six months. In 2023, semiconductor prices fell 40% in a year. These swings create enormous procurement challenges:

  • If you forecast too high, you overbuild inventory and lock in inflated costs
  • If you forecast too low, you face supply shortages or emergency premium buys
  • Finance teams need price forecasts to plan gross margin and set pricing
  • Strategic sourcing teams need forecasts to time supplier negotiations

Traditional forecasting methods (exponential smoothing, ARIMA) treat commodity prices as isolated time series. They miss crucial context: geopolitical shocks, weather disruptions, capacity changes. This is where AI excels.

How AI Commodity Forecasting Works

Data Integration

AI models integrate multiple data sources that predict commodity prices:

  • Market data: Futures prices, spot prices, trading volumes from exchanges (CME, LME, COMEX)
  • Supply signals: Mine/refinery production, inventory levels, capacity utilization, shipments
  • Demand signals: Economic indicators (PMI, industrial production, CCI), customer orders, capacity orders
  • Disruption data: Weather (drought for crops, cold for energy), geopolitics (sanctions, trade wars), shipping delays
  • Company data: Historical purchase prices, volumes, supplier contracts, inventory levels

The more data sources, the more accurate the forecast. A model with only historical price data forecast 65-75% accuracy. Add in supply/demand signals and you hit 75-82%. Add disruption data and you reach 80-88%.

Machine Learning Models

Modern AI commodity forecasting uses ensemble methods combining multiple model types:

  • Gradient Boosting (XGBoost, LightGBM): Learns non-linear relationships between variables. Best for identifying market regime changes.
  • LSTM Neural Networks: Captures temporal patterns and longer-term trends. Good for commodities with cyclical patterns.
  • Regression with domain constraints: Enforces logical bounds (e.g., future prices can't drop below production cost). Prevents implausible forecasts.
  • Ensemble averaging: Combines predictions from multiple models to reduce variance.

The best performing models typically combine gradient boosting for shorter-term (7-30 day) forecasts with LSTM for longer-term (30-90 day) forecasts.

Read the Full Direct Materials Guide

Commodity forecasting is one part of AI-powered direct materials strategy.

Read Guide

Accuracy: What to Expect

Typical accuracy ranges (2026):

  • 30-day forecast: 82-88% MAPE (mean absolute percentage error)
  • 60-day forecast: 75-82% MAPE
  • 90-day forecast: 70-78% MAPE
  • Traditional statistical models: 65-75% MAPE (30 days)

MAPE measures the average percentage error. An 82% MAPE on steel prices means your forecast is off by 18 percentage points on average. For a 500 per tonne forecast, that's a 90 tonne error band—significant but manageable.

Accuracy varies significantly by commodity:

  • Liquid, well-tracked commodities (steel, copper, aluminum): 80-88% accuracy. These trade actively on exchanges with transparent pricing and supply data.
  • Less liquid commodities (specialty metals, rare earths): 70-75% accuracy. Less data available; more influenced by single suppliers.
  • Agricultural commodities (wheat, corn, sugar): 75-82% accuracy. Strong weather and seasonal signals; models work well when trained on multi-year data.
  • Energy (oil, natural gas): 72-80% accuracy. Highly geopolitical; harder to predict.

Supply Chain Disruption Detection

Beyond forecasting prices, AI models can detect early warning signals of supply disruptions that will impact prices:

  • Inventory depletion: If supplier inventory levels fall 20%+ month-over-month, this predicts supply tightness and potential price spikes 4-8 weeks out.
  • Weather signals: Drought conditions predict crop shortages (agricultural commodities) or energy constraints (heating oil, natural gas). These can be detected 2-4 weeks ahead.
  • Geopolitical escalation: Trade war announcements, sanctions, or military actions predict supply disruption. Models trained on historical geopolitical data can flag these as elevated risk.
  • Shipping delays: Port congestion, equipment shortages, or fuel price spikes predict logistics cost increases, which eventually flow through commodity prices.
  • Production interruptions: Unplanned refinery shutdowns, mine flooding, or strikes can be detected through equipment monitoring and social media signals.

The best models maintain confidence intervals around forecasts. A 30-day steel price forecast might be 480-520 per tonne with 85% confidence. When a geopolitical event occurs, the confidence interval widens (480-560) because uncertainty increases. This signals the need for strategic action: dual sourcing, price hedging, or strategic inventory builds.

Hedging Strategy Support

AI commodity forecasts help procurement teams make hedging decisions. If your forecast says steel will rise 8-12% over the next 90 days, you might decide to:

  • Lock in current prices with forward contracts
  • Buy futures to hedge exposure
  • Build strategic inventory before the price rise
  • Negotiate longer contract terms before prices escalate

The challenge is that even 82% accurate forecasts are wrong 18% of the time. A good practice is to use AI forecasts to guide hedging decisions, but not automate them. Procurement teams should review forecasts quarterly and make hedging decisions based on risk tolerance and financial constraints.

Limitations and When Accuracy Breaks Down

  • Black swan events: Unprecedented events (pandemics, wars, natural disasters) are inherently unpredictable. AI models trained on historical data can't forecast what hasn't happened before.
  • Rapid regime changes: If market dynamics fundamentally shift (e.g., shift to electric vehicles reducing oil demand), historical models become less accurate. Retraining helps, but there's always a lag.
  • Thin market commodities: Specialty materials with few suppliers and thin trading are harder to forecast. Supplier-specific factors dominate over market signals.
  • Data quality issues: If supply/demand data is lagged or inaccurate, forecasts suffer. Real-time data is expensive and sometimes unavailable.
  • Manipulation: In some commodities, large traders can move prices through coordinated buying/selling, making prices less predictable from fundamentals.

Implementation: Getting Started

Step 1: Prioritize commodities — Identify the 5-10 commodities with the highest spend volatility. Focus there first.

Step 2: Gather data — Collect 2-3 years of historical pricing data, supply/demand signals, and disruption events. The more complete the data, the better the model.

Step 3: Select a platform — LevaData, Coupa, or custom ML models. LevaData is strongest for direct materials. Custom models give you more control but require in-house data science.

Step 4: Baseline current accuracy — Measure your current forecasting accuracy (probably poor). This is your benchmark to beat.

Step 5: Integrate into planning — Feed AI forecasts into demand planning and sourcing decisions. Track whether the forecasts actually improve outcomes.

Conclusion

AI commodity price forecasting delivers measurable value for procurement teams. By integrating market data, supply signals, and disruption indicators, machine learning models achieve 10-15% better accuracy than traditional methods. For companies with volatile commodity exposure, this translates to better hedging decisions, smarter sourcing timing, and improved gross margin.

The key is to view AI forecasts as one input to decision-making, not as a crystal ball. Use forecasts to guide strategy, but always combine them with human judgment and scenario planning.

Free Weekly Briefing

Stay Ahead of Procurement AI

Get the latest tool reviews, comparison guides, and procurement AI news — delivered every Tuesday.

No spam. Unsubscribe any time.