Forecasting Coffee Sales Using Time-Based Features and Machine Learning Models
Abstract
Sales forecasting is a critical component of operational and strategic decision-making in retail and coffee businesses, where demand exhibits strong temporal variability and product-level heterogeneity. Accurate hourly-level forecasts enable effective inventory management, workforce scheduling, and data-driven promotional strategies. However, existing studies predominantly rely on aggregated sales data and provide limited comparative analyses between traditional statistical models and machine learning approaches using real transaction-level data. This study addresses this gap by conducting an empirical comparison between a traditional ARIMA model and ensemble machine learning models, namely Random Forest and XGBoost, for hourly coffee sales forecasting. The analysis is based on a real-world dataset comprising 3,547 transaction records enriched with temporal and product-related features. Model performance was evaluated using Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and the coefficient of determination (R²). The results demonstrate that machine learning models significantly outperform the ARIMA baseline, with XGBoost achieving the best performance and explaining approximately 83% of the variance in sales data, while ARIMA shows limited explanatory power due to its inability to capture non-linear and highly volatile demand patterns. Feature importance analysis further reveals that product-specific attributes are the dominant drivers of sales predictions, complemented by seasonal and intra-day temporal effects. These findings provide both scientific and practical contributions by offering empirical evidence on the superiority of machine learning models for granular sales forecasting and supporting data-driven decision-making in coffee retail analytics
Article Metrics
Abstract: 1 Viewers PDF: 2 ViewersKeywords
Sales Forecasting; Machine Learning; Time Series Analysis; Coffee Retail; Data Analytics
Full Text:
PDFRefbacks
- There are currently no refbacks.

IJIIS: International Journal of Informatics and Information Systems
| ISSN | : | 2579-7069 (Online) |
| Organized by | : | Departement of Information System, Universitas Amikom Purwokerto, Indonesia; Faculty of Computing and Information Science, Ain Shams University, Cairo, Egypt |
| Website | : | www.ijiis.org |
| : | husniteja@uinjkt.ac.id (publication issues) | |
| taqwa@amikompurwokerto.ac.id (managing editor) | ||
| contact@ijiis.org (technical & paper handling issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
