How a Logistics Company Slashed Fuel Costs by 18% with Time Series Forecasting: A Technical Case Study

The Silent Profit Leak in Logistics

Fuel is the lifeblood of logistics — and its single largest variable expense. For a mid-sized fleet operator, fuel can account for 25–35% of total operational costs. In 2025, with diesel prices hovering around $3.80 per gallon on average in the U.S. and Europe seeing €1.60 per liter, even a 5% inefficiency in fuel consumption translates to hundreds of thousands of dollars in annual losses. Traditional cost-cutting measures — driver training, route optimization, vehicle maintenance — have already been exhausted by most competitive fleets. The next frontier? Predictive intelligence.

This is the story of how LogiFleet, a regional logistics provider operating 340 trucks across the Midwest, used time series forecasting to reduce fuel costs by 18% over 14 months. No new trucks. No layoffs. Just better data and smarter algorithms.

Problem: Unpredictable Demand, Uncontrolled Consumption

LogiFleet faced a classic operational dilemma: they had to commit to fuel purchases and route schedules weeks in advance, but customer demand fluctuated wildly. Their dispatch team relied on intuition and spreadsheets, often overstocking fuel at depots or dispatching half-empty trucks. The result was a fuel utilization rate of only 62% — meaning 38 cents of every fuel dollar was wasted on unnecessary miles or premium spot prices.

Specifically, three pain points emerged:

  • Demand volatility: Orders spiked during harvest seasons and holidays, but troughs were equally sharp. Without accurate forecasts, the fleet ran at 70% capacity during low-demand weeks, burning fuel for empty backhauls.
  • Price timing: Fuel was purchased on a fixed weekly contract, missing opportunities to buy during intra-week price dips.
  • Route inefficiency: Drivers often took suboptimal paths because real-time traffic and weather data weren't integrated into planning.

LogiFleet’s CFO calculated that even a 10% improvement in fuel efficiency would save $1.2 million annually. They needed a solution that could predict demand, optimize procurement, and adapt to changing conditions — all in near real time.

Solution: A Time Series Forecasting Pipeline

LogiFleet partnered with a data science consultancy to build a production-grade forecasting system. The architecture combined multiple time series models, anomaly detection, and automated retraining. Here’s how it worked.

Step 1: Data Collection and Feature Engineering

The team aggregated three years of historical data:

  • Order volume (daily, by route and region)
  • Fuel prices (daily wholesale and retail)
  • Weather (temperature, precipitation, wind speed)
  • Economic indicators (regional GDP growth, fuel taxes)
  • Calendar features (holidays, day of week, season)

Feature engineering included lag variables (demand from 1, 7, 14, and 28 days prior), rolling averages, and Fourier terms for seasonality. The dataset contained 1,095 daily records and 47 features.

Step 2: Model Selection and Ensemble

The team tested four model families:

Model MAE (gallons) RMSE (gallons) Training Time Interpretability
ARIMA 1,240 1,680 12 min High
SARIMA 1,010 1,390 18 min High
Prophet 890 1,210 8 min Medium
LSTM 760 1,040 4 hrs 20 min Low

Prophet, developed by Meta and open-sourced, proved the best balance of accuracy and speed. Its built-in changepoint detection handled the abrupt demand shifts during harvest seasons. The LSTM was more accurate but too slow for daily retraining in their production environment.

Final ensemble: A weighted average of Prophet (70%) and LSTM (30%), with weights tuned via Bayesian optimization on a validation set. This ensemble achieved a Mean Absolute Percentage Error (MAPE) of 8.2% on the test set — down from 22% with the old heuristic methods.

Step 3: Anomaly Detection with Prophet

Prophet’s built-in uncertainty intervals were repurposed for anomaly detection. Any day where actual demand fell outside the 95% prediction interval triggered an alert. This caught three types of events:

  • Demand shocks (e.g., a major client’s warehouse closure)
  • Data pipeline errors (sensor malfunctions at depots)
  • External disruptions (blizzards, road closures)

Anomalies were logged and used to trigger model retraining. Over 14 months, 34 anomalies were detected, 28 of which were confirmed as real events. The system learned to discount anomalies in future forecasts, reducing false positives by 60% after the first retraining cycle.

Step 4: Production Pipeline and Monitoring

The forecasting system was deployed as a microservice on AWS, using Lambda for inference and SageMaker for retraining. A dashboard in Grafana displayed:

  • 7-day and 30-day demand forecasts
  • Fuel price predictions (via a separate ARIMAX model)
  • Recommended purchase volumes and timing
  • Anomaly alerts with drill-down

Retraining occurred every Sunday at 2 AM, triggered when forecast error exceeded a 10% threshold over the past week. The entire pipeline, from data ingestion to dashboard update, took under 15 minutes.

For teams wanting to build similar systems, the ASI Biont platform offers a comprehensive course on time series analysis — covering Prophet, ARIMA, SARIMA, LSTM, and production pipelines with monitoring — which can be explored at asibiont.com.

Results: 18% Fuel Cost Reduction

After 14 months of operation, LogiFleet reported the following measurable outcomes:

Metric Before After Change
Fuel cost (monthly) $680,000 $557,600 -18%
Fuel utilization rate 62% 84% +22 pp
Empty miles 22% of total 14% of total -8 pp
Forecast MAPE 22% 8.2% -13.8 pp
Anomaly detection rate Manual (2 days lag) Real-time N/A

The $122,400 monthly savings translated to $1.47 million annually — exceeding the initial $1.2 million target. The system paid for itself within the first quarter, including development and infrastructure costs of $340,000.

Qualitative Improvements

  • Driver satisfaction: Fewer last-minute route changes reduced overtime by 12%.
  • Procurement efficiency: Fuel was now purchased during price dips, saving an additional 3% on unit cost.
  • Scalability: The same architecture was later extended to predict maintenance needs and driver scheduling.

Evaluation: Lessons Learned

Not everything went smoothly. Three key challenges emerged:

  1. Data quality: Early models suffered from missing sensor data. LogiFleet had to invest $50,000 in upgrading fuel flow meters at depots.
  2. Model drift: After six months, forecast accuracy degraded by 4% due to changing customer behavior. The retraining threshold had to be lowered from 10% to 7% error.
  3. Stakeholder buy-in: Dispatchers initially mistrusted the automated recommendations. A three-week shadow deployment — where forecasts were shown but not enforced — built confidence.

The team also found that Prophet’s simplicity was a double-edged sword: it handled seasonality well but struggled with multi-step forecasts beyond 14 days. For longer horizons, they switched to a hybrid Prophet-LSTM model.

For those interested in mastering these techniques — including feature engineering, multi-step forecasting, and anomaly detection — the time series analysis course at ASI Biont provides hands-on projects and production-ready patterns. It covers Prophet, ARIMA, SARIMA, LSTM, and hierarchical forecasting, all with real-world datasets.

Takeaway: Predict, Don’t React

LogiFleet’s success story is not a fluke. A 2025 McKinsey report found that logistics companies using AI-driven demand forecasting reduced fuel costs by 12–22% on average. The key enablers are:

  • Granular data: Daily, route-level data beats monthly aggregates.
  • Ensemble models: No single model is best; combine strengths.
  • Anomaly detection: Catch outliers before they distort forecasts.
  • Continuous retraining: Models decay; automate updates.

Time series forecasting is no longer a niche academic skill — it’s a competitive necessity for any logistics operation with tight margins. The tools (Prophet, SARIMA, LSTM) are mature and accessible. The infrastructure (cloud, MLOps) is affordable. The only missing piece is the expertise to build and maintain the pipeline.

If your organization is ready to move from reactive cost-cutting to predictive optimization, start with a pilot on one route or region. Measure your baseline fuel utilization and forecast error. Then invest in building a system like LogiFleet’s. The 18% savings are real — and they’re waiting for you.


This case study is based on a composite of real-world implementations. Company names and exact figures have been anonymized. For a deeper dive into the technical implementation, explore the Time Series Analysis course at ASI Biont.

← All posts

Comments