SEONGEUN_BAEK // GAME DATA ANALYST Seongeun Baek home
PROJECTS

PROJECT DETAILS

Menu Demand Forecasting for Resort Restaurants

A three-person team forecast seven days of resort menu demand in the LG Aimers hackathon, placing 32nd of 817 teams; I built the whole forecasting pipeline.

Menu Demand Forecasting for Resort Restaurants · Project overview
Type Hackathon · 3-person team
Period Aug 2025 – Aug 2025
Affiliation LG Aimers (7th cohort) · DACON
My role Designed and built the whole forecasting pipeline: preprocessing and features, the BiGRU and LightGBM models, the ensemble and the post-processing.
Tools Python, PyTorch, LightGBM, scikit-learn
Infographic of the forecasting pipeline. On the left, the input (28 days of one menu's sales, calendar and holidays, 7-day lags and an exponential moving average) splits into a BiGRU above (recursive: one day at a time, each forecast fed to the next day) and a LightGBM below (direct: each horizon h predicted at once); on the right the two are blended with a weight α(h) per horizon, then capped, smoothed with a 3-day median and rounded into a 7-day forecast per menu. A band at the bottom shows sMAPE, the metric all three tuning steps used.
FIG · ENSEMBLE PIPELINE Figure 1 The forecasting pipeline of the submission code. The BiGRU predicts one day at a time and feeds each forecast into the next day's input; LightGBM predicts each horizon h directly. The two are blended with a weight α(h) chosen per horizon on a holdout, then capped, median-smoothed and rounded. The post-processing bars are a schematic.

Question

A restaurant needs to know each menu item’s demand ahead of time to prepare ingredients and staff. The LG Aimers 7th-cohort online hackathon asked for forecasts of menu sales at the food and beverage outlets of a resort.

The question: given a menu item’s sales over the last 28 days, how many will sell on each of the next seven days?

Data

The competition provided daily sales quantities per outlet and menu item at the resort. Each menu name carries its outlet’s name in front, so the outlet is known too.

Method

I designed and built the forecasting pipeline below (Figure 1).

  1. Features. From the date: year, month, day, day of the week, and whether it is a weekend or a public holiday (Korean holidays from the Python holidays package), with day of week and month also one-hot encoded. From sales: the mean of the previous 7 days, the value 7 days earlier, the standard deviation of the previous 7 days, and an exponential moving average (α = 0.30). These 30 features were scaled to 0–1.
  2. BiGRU: recursive. The 28-day sequence, with a menu embedding (16 dimensions) and a sinusoidal positional encoding (16 dimensions; Vaswani et al., 2017), went into a bidirectional GRU (Cho et al., 2014) with a hidden size of 192, and additive attention (Bahdanau et al., 2015) summarised the 28 days in one context vector. The forecast is made one day at a time, seven times; each day’s forecast is used to recompute the sales features of the next day’s input. The output is a baseline plus a correction: the baseline g·(7-day mean) + (1 − g)·(previous day), with a mix g learned per menu item, plus a correction from the network, a menu bias and a menu × day-of-week bias, passed through softplus to keep it non-negative.
  3. Training the BiGRU. The loss is the outlet-weighted sMAPE of the metric, with extra weights of 1.2, 1.1 and 1.05 on the first three days. AdamW, a cosine learning rate with warm restarts, mixed precision and gradient clipping. During training, the probability of feeding the actual value instead of the model’s own forecast into the next day’s input rose from 20% to 50% over the epochs. Five seeds were trained separately; for each seed the median forecast of the last epochs’ checkpoints and the best validation checkpoint was taken, then the median across seeds.
  4. LightGBM: direct. LightGBM (Ke et al., 2017) predicts the sales on day t + h straight from the features at day t: one row per (t, h), with the horizon h (1–7) as a feature. It adds the length of the current zero-sales run (zero_run), the days since the last sale (last_nz_gap) and the share of zero-sales days in the last 28 (zero_ratio). The loss is a Tweedie loss with power p = 1.2. A Tweedie distribution is an exponential dispersion model whose variance is proportional to the mean to the power p; for 1 < p < 2 it is a compound Poisson–gamma distribution with a point mass at zero (Jørgensen, 1987). The training weights multiply the outlet weight and a horizon weight, and rows with zero sales get a weight of 0, as in the metric.
  5. Ensemble. The last 49 days of the training period were held out, and the forecasts for its first seven days chose a blend weight α(h) for each horizon h. The final forecast is α(h)·BiGRU + (1 − α(h))·LightGBM. The search went over 0–1 in steps of 0.05, then over ±0.10 around the best value in steps of 0.01, scored by the outlet-weighted sMAPE. The weights chosen for each seed were averaged with weights inversely proportional to their holdout error.
  6. Post-processing. Forecasts above a cap, the larger of the 99th percentile and twice the mean of the menu item’s recent sales, were cut to the cap. Days 2–6 of the seven-day forecast were smoothed with a 3-day running median (the left neighbour already smoothed), and the submitted values were rounded to whole units.

Result

The team placed 32nd of the 817 teams in the online hackathon (top 4%; the DACON profile record). The submitted forecast is the output of the pipeline in Figure 1.

The leaderboard and holdout scores are not in the remaining material, so they are not given.

My role

In a team of three, I built the whole forecasting pipeline:

What I learned

FOR GAME TEAMS

For game teams

In a game, this is the same structure as forecasting next week's demand for each shop item from its daily sales to prepare limited items and event stock.

RESEARCH CONTRIBUTION

Research contribution

Forecasting the next seven days from 28 days of a menu's sales, I built a recursive BiGRU that feeds each forecast back as the next day's input and a direct LightGBM that takes the horizon h as an input, and blended the two with a weight α(h) chosen per horizon on a holdout.

Next project