AI-Assisted Ingredient Inventory Forecasting using Weighted Moving Average and Output Validation for a Micro Food Enterprise in the Philippines
Micro food enterprises in the Philippines often track perishable ingredients through memory and manual counts, and generative artificial intelligence (AI) tools that could help them may produce incorrect figures. This study designed, implemented, and evaluated an ingredient inventory forecasting module with output validation for Demeter's Kitchenette, a dessert shop in Marikina City. Ingredient usage is derived from non-cancelled orders through product recipes, and a five-week weighted moving average forecasts seven-day demand, from which the module computes restock quantities, days of stock remaining, and overstock and expiry flags. A large language model only phrases these computed facts; a rule-based checker rejects any summary whose numbers, bolded ingredient names, or item–quantity pairings do not match them, allows one corrected retry, and otherwise displays a code-generated summary. Because recorded sales were too sparse for backtesting, forecast accuracy was evaluated through a recipe-based simulation of four demand scenarios against naive and simple moving average baselines. The checker was evaluated on 100 generated summaries and 100 summaries with injected errors. The weighted moving average achieved an average weighted absolute percentage error of 12.1%, between the naive method (11.3%) and the simple moving average (12.9%); it outperformed the naive method under stable and payday-driven demand but recovered more slowly after a holiday surge. The checker rejected both unsupported drafts and detected 73% of injected errors, at no recurring AI cost. Separating computation from language generation lets small food businesses use free AI services for decision support without exposing purchasing decisions to fabricated figures.
Authors
- Chinee Austria
- Johlan Demeterial
- John Argel Bagiwan
- Christiana Gonzales
Institutions
- FEU Roosevelt Marikina (PH)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24528885
- Primary Topic
- Forecasting Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00