Group Anomaly Detection and Risk Control of Commodity Sales Volume Data Based on LSTM-VAE Framework
DOI:
https://doi.org/10.71222/gc4gzd19Keywords:
LSTM-VAE, anomaly detection, time seriesAbstract
In recent years, the increasing demand for sales-volume analytics has driven growing interest in deep-learning-based anomaly detection methods for intelligent supply-chain management and operational risk control. Using point-of-sale data from brick-and-mortar retail stores, this study proposes a group-anomaly detection approach based on an LSTM-VAE framework to identify contiguous anomalous segments that are likely associated with stock-out events or supply disruptions, thereby enabling timely early warning. The LSTM-VAE (Long Short-Term Memory-Variational Auto-Encoder) integrates LSTM networks to model temporal dependencies in time-series data with the generative learning capability of a variational auto-encoder. The model is trained exclusively on historical data representing normal operational weeks, allowing it to learn baseline sales dynamics and effectively distinguish normal patterns from anomalous behaviors. During the testing phase, time-series segments exhibiting persistently high reconstruction errors are identified as potential periods of stock-out risk or supply-chain disruption. The dataset consists of weekly sales records collected from 45 retail stores in the United States between 2010 and 2023, comprising more than 50 000 observations. Each record includes sales volume as the target variable, along with inventory levels, weekly timestamps, store identifiers, product identifiers, temperature information, macroeconomic indicators, and special-holiday dummy variables. Data preprocessing procedures include missing-value imputation, outlier handling, and feature standardization to ensure model robustness. Experimental results show that the proposed LSTM-VAE model performs effectively in group-anomaly detection by accurately capturing contiguous abnormal segments associated with inventory shortages, thus providing practical insights for optimizing replenishment strategies. Overall, the proposed approach offers a scalable and efficient solution for risk control in large-scale product-level sales monitoring scenarios.
References
1. S. Sagar, "The impact of digital transformation on retail management and consumer behavior," Journal of Business and Management, vol. 26, no. 1, pp. 06-14, 2024.
2. J. Ramakrishnan, E. Shaabani, C. Li, and M. A. Sustik, "Anomaly detection for an e-commerce pricing system," In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, July, 2019, pp. 1917-1926. doi: 10.1145/3292500.3330748
3. S. H. Poon, and C. W. J. Granger, "Forecasting volatility in financial markets: A review," Journal of economic literature, vol. 41, no. 2, pp. 478-539, 2003.
4. D. Kwon, H. Kim, J. Kim, S. C. Suh, I. Kim, and K. J. Kim, "A survey of deep learning-based network anomaly detection," Cluster Computing, vol. 22, no. Suppl 1, pp. 949-961, 2019.
5. H. McDonald, "Spatiotemporal Negative Inventory Outlier Decomposition for Supply Chain Applications in Consumer-Packaged Goods (CPG)," 2024.
6. T. Fonseka, A. Tulenkov, and K. Grolinger, "Improving retail sales through unsupervised collective-contextual anomaly detection: a deep reconstruction autoencoder for network-wide sales analysis," Applied Intelligence, vol. 55, no. 12, pp. 1-20, 2025. doi: 10.1007/s10489-025-06749-y
7. T. Ko, J. H. Lee, H. Cho, S. Cho, W. Lee, and M. Lee, "Machine learning-based anomaly detection via integration of manufacturing, inspection and after-sales service data," Industrial Management & Data Systems, vol. 117, no. 5, pp. 927-945, 2017. doi: 10.1108/imds-06-2016-0195
8. G. Makhmetova, "Automated Anomaly Detection for Sales and Inventory in Data-Driven Industries," Universal Library of Engineering Technology, vol. 2, no. 1, 2025.
9. E. Tanuwijaya, and T. Mauritsius, "Anomaly Detection in Sales Transactions for FMCG (Fast Moving Consumer Goods) Distribution," Journal of Applied Data Sciences, vol. 5, no. 3, pp. 1223-1236, 2024.
10. C. Deng, and Y. Liu, "A deep learningbased inventory management and demand prediction optimization method for anomaly detection," Wireless communications and mobile computing, vol. 2021, no. 1, p. 9969357, 2021. doi: 10.1155/2021/9969357
11. M. Chopra, R. Chopra, R. Reddy, and S. Chopra, "Leveraging LSTM Neural Networks and ARIMA Models for Enhanced Real-Time Sales Forecasting in Dynamic Retail Environments," Journal of AI ML Research, vol. 12, no. 2, 2023.
12. T. Cemgil, S. Ghaisas, K. Dvijotham, S. Gowal, and P. Kohli, "The autoencoding variational autoencoder," Advances in Neural Information Processing Systems, vol. 33, pp. 15077-15087, 2020.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Ruihan Luo, Jinlin Hu, Qingyu Sun (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.







