A1 Refereed original research article in a scientific journal

Forecasting daily customer flow in restaurants: a multifactor machine learning approach




AuthorsShah, Himat; Myller, Niko; Islas Sedano, Carolina

PublisherAmerican Institute of Mathematical Sciences (AIMS)

Publication year2025

Journal: Applied Computing and Intelligence

Volume5

Issue2

First page 168

Last page190

eISSN2771-392X

DOIhttps://doi.org/10.3934/aci.2025011

Publication's open availability at the time of reportingOpen Access

Publication channel's open availability Open Access publication channel

Web address https://doi.org/10.3934/aci.2025011

Self-archived copy’s web addresshttps://research.utu.fi/converis/portal/detail/Publication/508199286

Self-archived copy's licenceCC BY

Self-archived copy's versionPublisher`s PDF


Abstract

This paper presents a case study on predicting daily customer flow in a university’s self­service restaurant. We conduct a systematic comparison of multiple machine learning techniques and diverse feature sets to identify the best-performing model within our experimental scope, aiming to improve forecasting accuracy in this dynamic environment. We analyze real-time data collected via RFID sensors from spring 2019 to 2024. To ensure high data quality, we apply a robust preprocessing pipeline, followed by careful feature engineering to select 10 distinct features, labeled M1 to M10. These features include temporal attributes such as day, month, year, and season, as well as external factors like local weather conditions, public holidays, and menu choices. We conduct a systematic comparison across all feature sets and identify M10 as the optimal combination. A key finding highlights the importance of handling missing data—particularly during the COVID-19 period—as one of the most critical steps in the preprocessing stage. To evaluate the predictive power of our selected features, we tested various machine learning models, including linear regression, random forest, extreme gradient boosting (XGBoost), and long short-term memory (LSTM). Our findings indicate that XGBoost achieves the lowest mean absolute error (MAE) and mean squared error (MSE) values. The XGBoost model outperforms other models across all the feature sets, M1 to M10. XGBoost is particularly effective because it uses past data and a technique called exponential smoothing to understand what customers will do in the short term. Our analysis identifies the most influential features as the previous day’s customer count, exponential smoothing outputs, holidays, day of the week, and weather data. Overall, we recommend XGBoost as the most effective model for predicting daily customer numbers in similar contexts, given its superior accuracy across diverse feature sets.


Downloadable publication

This is an electronic reprint of the original article.
This reprint may differ from the original in pagination and typographic detail. Please cite the original version.




Funding information in the publication
This research was supported by Business Finland, under the Veturi program with the Dining Flow project (6547/31/2022).


Last updated on 15/01/2026 08:23:32 AM