A Machine Learning Framework: E-Commerce Retail Sales Forecasting with External Weather Features

Background: Accurate sales forecasting supports inventory planning, resource allocation, revenue management, and operational decision-making. However, the incremental predictive value of external factors such as weather, beyond historical sales information, remains important to assess. This study evaluates an interpretable forecasting framework for daily-location sales revenue and examines the relative contributions of historical and weather information. Methods: Daily sales data were integrated with weather observations and temporal lag features. Random Forest, Extreme Gradient Boosting, CatBoost, and Stacked Long Short-Term Memory (LSTM) models were used for forecasting. Performance was assessed using mean absolute error, root mean squared error, symmetric mean absolute percentage error, and R2. Results: Stacked LSTM achieved the strongest overall test performance (MAE = 28.50, RMSE = 57.04, sMAPE = 5.82%, R2 = 0.972). Feature-importance analysis indicated that historical sales, particularly one-day sales lag, provided a stronger predictive signal than individual weather variables. Conclusions: Historical sales information was the primary predictive signal, while weather provided supplementary information. From a practical perspective, the framework can support revenue-oriented forecasting and help assess the additional value of incorporating weather information. This study also contributes to forecasting research by distinguishing the predictive role of historical sales patterns from the incremental contribution of external contextual variables.

Authors

Institutions

Publication Details

Journal
Logistics
Published
2026-09-14
DOI
https://doi.org/10.3390/logistics10090214
Primary Topic
Forecasting Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

A Machine Learning Framework: E-Commerce Retail Sales Forecasting with External Weather Features

Saman Hassanzadeh Amin, Monzer Alharairi, Saeed Zolfaghari, Muhammad Zaka Shaheryar
Logistics
Forecasting Techniques and Applications
article

A Machine Learning Framework: E-Commerce Retail Sales Forecasting with External Weather Features

Saman Hassanzadeh Amin, Monzer Alharairi, Saeed Zolfaghari, Muhammad Zaka Shaheryar
article en

Abstract

Background: Accurate sales forecasting supports inventory planning, resource allocation, revenue management, and operational decision-making. However, the incremental predictive value of external factors such as weather, beyond historical sales information, remains important to assess. This study evaluates an interpretable forecasting framework for daily-location sales revenue and examines the relative contributions of historical and weather information. Methods: Daily sales data were integrated with weather observations and temporal lag features. Random Forest, Extreme Gradient Boosting, CatBoost, and Stacked Long Short-Term Memory (LSTM) models were used for forecasting. Performance was assessed using mean absolute error, root mean squared error, symmetric mean absolute percentage error, and R2. Results: Stacked LSTM achieved the strongest overall test performance (MAE = 28.50, RMSE = 57.04, sMAPE = 5.82%, R2 = 0.972). Feature-importance analysis indicated that historical sales, particularly one-day sales lag, provided a stronger predictive signal than individual weather variables. Conclusions: Historical sales information was the primary predictive signal, while weather provided supplementary information. From a practical perspective, the framework can support revenue-oriented forecasting and help assess the additional value of incorporating weather information. This study also contributes to forecasting research by distinguishing the predictive role of historical sales patterns from the incremental contribution of external contextual variables.

LogisticsVol. 10(9)
University of Toronto (CA)
Openalex Percentile: Top 6%
Forecasting Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Machine Learning Framework: E-Commerce Retail Sales Forecasting with External Weather Features — Saman Hassanzadeh Amin, Monzer Alharairi, et al. · Logistics (2026) | TGRS Research Map | TGRS