Decoupling Expiration Risk Classification and Discount Rules in a Web Inventory Monitoring Prototype
DOI:
https://doi.org/10.47709/cnahpc.v8i4.9820Dimension:
Keywords:
expiration monitoring, K-nearest neighbor, inventory risk, rule-based recommendation, decision supportAbstract
Recorded expiration status and future inventory loss are different decision targets. This study audits a date-based monitoring architecture, a historical K-nearest neighbor (KNN) experiment, and independent markdown rules. Source-document recovery established that the 1,000 simulated labels were deterministic date bands: High at seven days or fewer, Medium at 8–30 days, and Low beyond 30 days. The revised architecture assigns date status directly and retains KNN only as an offline diagnostic. The historical K = 9 confusion matrix gives accuracy 0.735, macro F1 0.502, balanced accuracy 0.488, High recall 0.441, and Medium recall 0.063; 32 of 59 High records were classified Low. These results are not an independently selected-model estimate. A new sensitivity grid evaluated 135 hypothetical combinations of demand response, sell-through, cost, and discount. Discounting improved accounting profit in 60 of 108 discounted scenarios and worsened it in the remainder; these counts describe a designed grid, not real-world success probabilities. Forty black-box cases passed for a new Python reference decision core, without validating the original PHP application. The findings support direct treatment of known dates and conditional economic review of markdowns. Original-data ablation, matched classifier comparisons, renewed validation, and application-level testing remain dependent on the original CSV and source code.
Downloads
References
Apicella, A., Isgrò, F., & Prevete, R. (2025). Don’t push the button! Exploring data leakage risks in machine learning and transfer learning. Artificial Intelligence Review, 58, Article 339. https://doi.org/10.1007/s10462-025-11326-3
Cawley, G. C., & Talbot, N. L. C. (2010). On over-fitting in model selection and subsequent selection bias in performance evaluation. Journal of Machine Learning Research, 11, 2079–2107. https://www.jmlr.org/papers/v11/cawley10a.html
Chehrazi, N., Sanders, R. E., & Stamatopoulos, I. (2025). Inventory information frictions explain price rigidity in perishable groceries. Marketing Science, 44(2), 411–436. https://doi.org/10.1287/mksc.2023.0473
Chicco, D., & Jurman, G. (2020). The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics, 21, Article 6. https://doi.org/10.1186/s12864-019-6413-7
Chicco, D., & Jurman, G. (2023). The Matthews correlation coefficient (MCC) should replace the ROC AUC as the standard metric for assessing binary classification. BioData Mining, 16, Article 4. https://doi.org/10.1186/s13040-023-00322-4
Cover, T., & Hart, P. (1967). Nearest neighbor pattern classification. IEEE Transactions on Information Theory, 13(1), 21–27. https://doi.org/10.1109/TIT.1967.1053964
Dewi, S. P., Nurwati, & Rahayu, E. (2022). Penerapan data mining untuk prediksi penjualan produk terlaris menggunakan metode K-nearest neighbor [Applying data mining to predict best-selling products using the K-nearest neighbor method]. Building of Informatics, Technology and Science (BITS), 3(4), 639–648. https://doi.org/10.47065/bits.v3i4.1408
Elreedy, D., Atiya, A. F., & Kamalov, F. (2024). A theoretical distribution analysis of synthetic minority oversampling technique (SMOTE) for imbalanced learning. Machine Learning, 113(7), 4903–4923. https://doi.org/10.1007/s10994-022-06296-4
Espinosa, E., & Figueira, A. (2023). On the quality of synthetic generated tabular data. Mathematics, 11(15), Article 3278. https://doi.org/10.3390/math11153278
Fonseca, J., & Bacao, F. (2023). Tabular and latent space synthetic data generation: A literature review. Journal of Big Data, 10, Article 115. https://doi.org/10.1186/s40537-023-00792-7
Haijema, R., Duijvestijn, L., Akkerman, R., & Cruijssen, F. (2026). Dynamic expiration date-based discounting of fresh food products. International Journal of Production Economics, 292, Article 109824. https://doi.org/10.1016/j.ijpe.2025.109824
Hasiloglu-Ciftciler, M., & Kaya, O. (2025). Dynamic inventory control and pricing strategies for perishable products considering both profit and waste. Computers & Operations Research, 181, Article 107103. https://doi.org/10.1016/j.cor.2025.107103
Hernandez, M., Epelde, G., Alberdi, A., Cilla, R., & Rankin, D. (2023). Synthetic tabular data evaluation in the health domain covering resemblance, utility, and privacy dimensions. Methods of Information in Medicine, 62(Suppl. 1), e19–e38. https://doi.org/10.1055/s-0042-1760247
Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), Article 100804. https://doi.org/10.1016/j.patter.2023.100804
Kayikci, Y., Demir, S., Mangla, S. K., Subramanian, N., & Koc, B. (2022). Data-driven optimal dynamic pricing strategy for reducing perishable food waste at retailers. Journal of Cleaner Production, 344, Article 131068. https://doi.org/10.1016/j.jclepro.2022.131068
Keskin, N. B., Li, Y., & Song, J.-S. (2022). Data-driven dynamic pricing and ordering with perishable inventory in a changing environment. Management Science, 68(3), 1938–1958. https://doi.org/10.1287/mnsc.2021.4011
Kumar, A., Singh, D., & Yadav, R. S. (2024). Entropy and improved k-nearest neighbor search based under-sampling (ENU) method to handle class overlap in imbalanced datasets. Concurrency and Computation: Practice and Experience, 36(2), Article e7894. https://doi.org/10.1002/cpe.7894
Modak, I., Bardhan, S., & Giri, B. C. (2024). Dynamic pricing and preservation investment strategy for perishable products under quality, price and greenness dependent demand. Journal of Industrial and Management Optimization, 20(7), 2260–2281. https://doi.org/10.3934/jimo.2024001
Naser, M. Z., & Alavi, A. H. (2023). Error metrics and performance fitness indicators for artificial intelligence and machine learning in engineering and sciences. Architecture, Structures and Construction, 3, 499–517. https://doi.org/10.1007/s44150-021-00015-8
Nguru, F. M., & Iriane, G. R. (2026). Perancangan sistem monitoring stok dan tanggal kadaluwarsa berbasis IoT pada kulkas rumah tangga [Design of an IoT-based stock and expiration-date monitoring system for household refrigerators]. Jurnal Publikasi Manajemen Informatika, 5(1), 239–246. https://doi.org/10.55606/jupumi.v5i1.4696
Rinanda, A. R., Ondri, O. R., & Sulistiyono. (2023). Sistem informasi penjualan berbasis web dengan metode prototype [A web-based sales information system using the prototype method]. BINER: Jurnal Ilmu Komputer, Teknik dan Multimedia, 1(2), 290–299. https://www.journal.mediapublikasi.id/index.php/Biner/article/view/2957
Shi, R., & You, C. (2023). Joint dynamic pricing and freshness-keeping effort strategy for perishable products with price-, freshness-, and stock-dependent demand. Journal of Industrial and Management Optimization, 19(9), 6572–6592. https://doi.org/10.3934/jimo.2022228
Sun, P., Wang, Z., Jia, L., & Xu, Z. (2024). SMOTE-kTLNN: A hybrid re-sampling method based on SMOTE and a two-layer nearest neighbor classifier. Expert Systems with Applications, 238, Article 121848. https://doi.org/10.1016/j.eswa.2023.121848
Syahab, M. A., Rambe, A., Harahap, B., & Syahputra, D. (2026). Penerapan algoritma K-nearest neighbor untuk klasifikasi produk terlaris pada usaha mikro [Applying the K-nearest neighbor algorithm to classify best-selling products in microenterprises]. Jurnal Minfo Polgan, 15(2), 1705–1712. https://doi.org/10.33395/jmp.v15i2.16298
Syed, T. A., Aslam, H., Bhatti, Z. A., Mehmood, F., & Pahuja, A. (2024). Dynamic pricing for perishable goods: A data-driven digital transformation approach. International Journal of Production Economics, 277, Article 109405. https://doi.org/10.1016/j.ijpe.2024.109405
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Syahprian

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