Demand Hidden by Stockouts: Censored Demand Recovery and Green Waste-Reduction Forecasting for Sustainable Fresh-Food Consumption Under Emerging-Market Urbanization
Abstract
1. Introduction
2. Related Work
2.1. Deep Learning for Demand and Time-Series Forecasting
2.2. Forecasting with Exogenous Variables and Foundation Models
2.3. Censored Demand, Lost Sales, and Demand Uncensoring
2.4. Perishable Inventory and Decision-Focused Learning
3. The CADRE Framework
3.1. Problem Formulation and Overview
3.2. Exogenous-Aware Encoder
3.3. Diurnal-Cycle Decomposition
3.4. Censored Demand Recovery Head
3.5. Decision-Focused Replenishment Loss
3.6. Joint Training Objective and Optimisation
3.7. Complexity
4. Datasets and Experimental Setup
4.1. Datasets
| Algorithm 1. Controlled re-censoring for known-truth recovery and replenishment evaluation |
| Input: per-series test observations ; mask rate ; seed s; stratum map (hour-of-day for FreshRetailNet, day-of-week for Favorita). Output: shared re-censored inputs and known truth . 1: for each store–SKU series i do 2: ; ▹ candidates, known truth 3: for all ▹ default: original flag preserved 4: for each calendar stratum k do 5: 6: first elements of ▹ ties: seed-s permutation 7: for each do 8: 9: ; ▹ partial-depth censoring 10: end for 11: end for 12: end for 13: present the identical to every model 14: score all recovery and replenishment metrics against only ▹ never against a model output 15: return |
4.2. Baselines
4.3. Evaluation Metrics
4.4. Replenishment Simulation
4.5. Implementation Details
5. Experimental Results and Analysis
5.1. Main Comparison
5.2. Ablation Study
5.3. Robustness to Mask Rate
5.4. Multi-Parameter Sensitivity
5.5. Simulated Replenishment Outcomes and Potential Sustainability Implications
5.6. Per-Category Forecast Trajectories
5.7. Demand Profiles Across Operating Regimes
5.8. Computational Cost
5.9. In-Model Recovery Versus Two-Stage Recovery
6. Discussion
6.1. Simulated Inventory Implications and Limitations
6.2. Potential Sustainability Implications
6.3. Applicability, Generalisability, and Failure Conditions
6.4. Practical Deployment Requirements and Operational Constraints
6.5. Field Validation
7. Conclusions and Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Appendix A. Extended Dataset Statistics
Appendix B. Reproducibility
| Algorithm A1. CADRE joint end-to-end training (one run) |
| Input: series ; lookback L, horizon H; loss weights ; training mask rate ; epochs E. Output: trained parameters (encoder, likelihood and auxiliary heads, diurnal-cycle bank ). 1: for each phase k ▹ init from uncensored hours 2: for epoch to E do 3: for each minibatch do 4: on the H-hour target horizon: re-censor a fraction of known-truth hours by the operator of Algorithm 1 5: → augmented ; retain truth ; target hours ▹ lookback untouched 6: over the lookback ▹ deseasonalise history; encoder input, not augmented 7: ; add back ▹ reads history + known future covariates only 8: ; 9: Equation (3) using ▹ augmented flags drive the likelihood 10: ▹ auxiliary decision head (training only) 11: Equation (4) on with target ; otherwise ▹ genuine stockout excluded 12: ▹ recovered demand, reporting only 13: ▹ Equation (5) 14: stop gradients into from every target hour with ▹ protect cycle bank 15: ▹ cosine schedule 16: end for 17: if validation WAPE has not improved then early-stop 18: end for 19: return ▹ repeat over seeds 0–4 |
Appendix C. Additional Notes on the Decision Simulation
Appendix D. Numerical Details of the Censored Likelihood
Appendix E. Baseline Protocol
| Model | Source/Commit | Covariates Supplied | Validation Grid (Candidate Values) | Early Stopping | Decision Quantile |
|---|---|---|---|---|---|
| SARIMA | statsmodels 0.14.6; pmdarima 2.1.1 | none; seasonal period 24 (FRN)/7 (Fav) | ; | validation WAPE | empirical residual -quantile |
| DLinear | cure-lab/LTSF-Linear 0c11366 | target history (no future cov.) | lr ; batch ; dropout | validation WAPE | per-series residual -quantile |
| N-HiTS | Nixtla NeuralForecast 1.7.2 b9e4d02 | calendar/promotion (native) | lr ; batch ; stacks ; width | validation WAPE | per-series residual -quantile |
| PatchTST | yuqinie98/PatchTST 204c21e | target-only (no future cov.) | lr ; batch ; patch ; dropout | validation WAPE | per-series residual -quantile |
| TimesNet | thuml/Time-Series-Library d8f2a17 | calendar/promotion/weather channels | lr ; batch ; ; top-k | validation WAPE | per-series residual -quantile |
| iTransformer | thuml/Time-Series-Library d8f2a17 | covariates as variate tokens | lr ; batch ; ; layers | validation WAPE | per-series residual -quantile |
| DeepAR | GluonTS 0.16.2 (PyTorch) | past/future known covariates | lr ; batch ; hidden ; layers | validation NLL | predictive -quantile (200 samples) |
| TimeXer | thuml/Time-Series-Library d8f2a17 | calendar/promotion/causal weather | lr ; batch ; dropout | validation WAPE | predictive/residual -quantile |
| Chronos | amazon/chronos-t5-base (∼200 M) | target only, zero-shot | context 512 (FRN)/64 (Fav); 100 samples; temp ; per-series scaling | n/a (zero-shot) | sample -quantile |
| Tobit-MLP | authors’ PyTorch impl. | same covariates as CADRE | lr ; batch ; hidden ; layers | validation censored NLL | predictive -quantile |
| Two-stage | stage 1: CADRE NB censored head; stage 2: TimeXer d8f2a17 (both retrained) | same covariates as CADRE | stage-1 = CADRE grid; stage-2 = TimeXer grid above | validation WAPE | predictive/residual -quantile |
Appendix F. Weather Availability and Leakage
Appendix G. Favorita Mask Sensitivity
| Mask Rate/Type | TimeXer | Two-Stage | CADRE |
|---|---|---|---|
| 10% peak-day | 20.73/ | 20.21/ | 18.71/ |
| 20% peak-day (main) | 21.28/ | 20.81/ | 19.14/ |
| 30% peak-day | 22.52/ | 21.88/ | 20.05/ |
| 40% peak-day | 24.10/ | 23.37/ | 21.26/ |
| 20% uniform random | 20.44/ | 20.02/ | 18.96/ |
| 20% demand-proportional | 20.92/ | 20.43/ | 19.02/ |
Appendix H. Likelihood Sensitivity (FreshRetailNet and Favorita)
Appendix I. Stockout-Label Noise and Data Quality
Appendix J. Operational-Assumption Sensitivity
References
- United Nations Environment Programme. Food Waste Index Report 2024; Technical Report; United Nations Environment Programme (UNEP): Nairobi, Kenya, 2024. [Google Scholar]
- Ishangulyyev, R.; Kim, S.; Lee, S.H. Understanding Food Loss and Waste—Why Are We Losing and Wasting Food? Foods 2019, 8, 297. [Google Scholar] [CrossRef] [PubMed]
- Food and Agriculture Organization of the United Nations. The State of Food and Agriculture 2019: Moving Forward on Food Loss and Waste Reduction; Technical Report; FAO: Rome, Italy, 2019. [Google Scholar]
- Todd, E.C.D.; Faour-Klingbeil, D. Impact of Food Waste on Society, Specifically at Retail and Foodservice Levels in Developed and Developing Countries. Foods 2024, 13, 2098. [Google Scholar] [CrossRef] [PubMed]
- Wang, Y.; Gu, J.; Long, L.; Li, X.; Shen, L.; Fu, Z.; Zhou, X.; Jiang, X. FreshRetailNet-50K: A Stockout-Annotated Censored Demand Dataset for Latent Demand Recovery and Forecasting in Fresh Retail. arXiv 2025, arXiv:2505.16319. [Google Scholar] [CrossRef]
- Nahmias, S. Perishable Inventory Theory: A Review. Oper. Res. 1982, 30, 680–708. [Google Scholar] [CrossRef] [PubMed]
- Salinas, D.; Flunkert, V.; Gasthaus, J.; Januschowski, T. DeepAR: Probabilistic Forecasting with Autoregressive Recurrent Networks. Int. J. Forecast. 2020, 36, 1181–1191. [Google Scholar] [CrossRef]
- Nie, Y.; Nguyen, N.H.; Sinthong, P.; Kalagnanam, J. A Time Series is Worth 64 Words: Long-Term Forecasting with Transformers. In Proceedings of the International Conference on Learning Representations, Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Liu, Y.; Hu, T.; Zhang, H.; Wu, H.; Wang, S.; Ma, L.; Long, M. iTransformer: Inverted Transformers Are Effective for Time Series Forecasting. In Proceedings of the International Conference on Learning Representations, Vienna, Austria, 7–11 May 2024. [Google Scholar]
- Conrad, S.A. Sales Data and the Estimation of Demand. Oper. Res. Q. 1976, 27, 123–127. [Google Scholar] [CrossRef]
- Nahmias, S. Demand Estimation in Lost Sales Inventory Systems. Nav. Res. Logist. 1994, 41, 739–757. [Google Scholar] [CrossRef]
- Sachs, A.L.; Minner, S. The Data-Driven Newsvendor with Censored Demand Observations. Int. J. Prod. Econ. 2014, 149, 28–36. [Google Scholar] [CrossRef]
- Ban, G.Y.; Rudin, C. The Big Data Newsvendor: Practical Insights from Machine Learning. Oper. Res. 2019, 67, 90–108. [Google Scholar] [CrossRef]
- Tobin, J. Estimation of Relationships for Limited Dependent Variables. Econometrica 1958, 26, 24–36. [Google Scholar] [CrossRef]
- Wang, Y.; Wu, H.; Dong, J.; Liu, Y.; Qiu, Y.; Zhang, H.; Wang, J.; Long, M. TimeXer: Empowering Transformers for Time Series Forecasting with Exogenous Variables. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 10–15 December 2024; Volume 37. [Google Scholar]
- Lin, S.; Lin, W.; Hu, X.; Wu, W.; Mo, R.; Zhong, H. CycleNet: Enhancing Time Series Forecasting through Modeling Periodic Patterns. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 10–15 December 2024; Volume 37. [Google Scholar]
- Elmachtoub, A.N.; Grigas, P. Smart “Predict, then Optimize”. Manag. Sci. 2022, 68, 9–26. [Google Scholar] [CrossRef]
- Makridakis, S.; Spiliotis, E.; Assimakopoulos, V. M5 Accuracy Competition: Results, Findings, and Conclusions. Int. J. Forecast. 2022, 38, 1346–1364. [Google Scholar] [CrossRef]
- Makridakis, S.; Spiliotis, E.; Assimakopoulos, V.; Chen, Z.; Gaba, A.; Tsetlin, I.; Winkler, R.L. The M5 Uncertainty Competition: Results, Findings and Conclusions. Int. J. Forecast. 2022, 38, 1365–1385. [Google Scholar] [CrossRef]
- Lim, B.; Arık, S.Ö.; Loeff, N.; Pfister, T. Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecasting. Int. J. Forecast. 2021, 37, 1748–1764. [Google Scholar] [CrossRef]
- Böse, J.H.; Flunkert, V.; Gasthaus, J.; Januschowski, T.; Lange, D.; Salinas, D.; Schelter, S.; Seeger, M.; Wang, Y. Probabilistic Demand Forecasting at Scale. Proc. VLDB Endow. 2017, 10, 1694–1705. [Google Scholar] [CrossRef]
- Zhou, H.; Zhang, S.; Peng, J.; Zhang, S.; Li, J.; Xiong, H.; Zhang, W. Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting. Proc. AAAI Conf. Artif. Intell. 2021, 35, 11106–11115. [Google Scholar] [CrossRef]
- Wu, H.; Xu, J.; Wang, J.; Long, M. Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting. In Proceedings of the Advances in Neural Information Processing Systems, Virtual, 6–14 December 2021; Volume 34. [Google Scholar]
- Zhou, T.; Ma, Z.; Wen, Q.; Wang, X.; Sun, L.; Jin, R. FEDformer: Frequency Enhanced Decomposed Transformer for Long-Term Series Forecasting. In Proceedings of the 39th International Conference on Machine Learning, Baltimore, MD, USA, 17–23 July 2022; Volume 162, pp. 27268–27286. [Google Scholar]
- Zeng, A.; Chen, M.; Zhang, L.; Xu, Q. Are Transformers Effective for Time Series Forecasting? Proc. AAAI Conf. Artif. Intell. 2023, 37, 11121–11128. [Google Scholar] [CrossRef]
- Wu, H.; Hu, T.; Liu, Y.; Zhou, H.; Wang, J.; Long, M. TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysis. In Proceedings of the International Conference on Learning Representations, Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Oreshkin, B.N.; Carpov, D.; Chapados, N.; Bengio, Y. N-BEATS: Neural Basis Expansion Analysis for Interpretable Time Series Forecasting. In Proceedings of the International Conference on Learning Representations, Virtual, 26 April–1 May 2020. [Google Scholar]
- Challu, C.; Olivares, K.G.; Oreshkin, B.N.; Garza Ramirez, F.; Mergenthaler Canseco, M.; Dubrawski, A. N-HiTS: Neural Hierarchical Interpolation for Time Series Forecasting. Proc. AAAI Conf. Artif. Intell. 2023, 37, 6989–6997. [Google Scholar] [CrossRef]
- Wang, S.; Wu, H.; Shi, X.; Hu, T.; Luo, H.; Ma, L.; Zhang, J.Y.; Zhou, J. TimeMixer: Decomposable Multiscale Mixing for Time Series Forecasting. In Proceedings of the International Conference on Learning Representations, Vienna, Austria, 7–11 May 2024. [Google Scholar]
- Das, A.; Kong, W.; Sen, R.; Zhou, Y. A Decoder-Only Foundation Model for Time-Series Forecasting. In Proceedings of the 41st International Conference on Machine Learning, Vienna, Austria, 21–27 July 2024; Volume 235. [Google Scholar]
- Ansari, A.F.; Stella, L.; Turkmen, C.; Zhang, X.; Mercado, P.; Shen, H.; Shchur, O.; Rangapuram, S.S.; Pineda Arango, S.; Kapoor, S.; et al. Chronos: Learning the Language of Time Series. arXiv 2024, arXiv:2403.07815. [Google Scholar]
- Woo, G.; Liu, C.; Kumar, A.; Xiong, C.; Savarese, S.; Sahoo, D. Unified Training of Universal Time Series Forecasting Transformers. In Proceedings of the 41st International Conference on Machine Learning, Vienna, Austria, 21–27 July 2024; Volume 235. [Google Scholar]
- Huh, W.T.; Levi, R.; Rusmevichientong, P.; Orlin, J.B. Adaptive Data-Driven Inventory Control with Censored Demand Based on the Kaplan-Meier Estimator. Oper. Res. 2011, 59, 929–941. [Google Scholar] [CrossRef]
- Besbes, O.; Muharremoglu, A. On Implications of Demand Censoring in the Newsvendor Problem. Manag. Sci. 2013, 59, 1407–1424. [Google Scholar] [CrossRef]
- Hssaine, C.; Sinclair, S.R. The Data-Driven Censored Newsvendor Problem. arXiv 2024, arXiv:2412.01763. [Google Scholar] [CrossRef]
- Karaesmen, I.Z.; Scheller-Wolf, A.; Deniz, B. Managing Perishable and Aging Inventories: Review and Future Research Directions. In Planning Production and Inventories in the Extended Enterprise; International Series in Operations Research & Management Science; Springer: Berlin/Heidelberg, Germany, 2011; Volume 151, pp. 393–436. [Google Scholar] [CrossRef]
- Gallego, G.; Moon, I. The Distribution Free Newsboy Problem: Review and Extensions. J. Oper. Res. Soc. 1993, 44, 825–834. [Google Scholar] [CrossRef]
- Huber, J.; Müller, S.; Fleischmann, M.; Stuckenschmidt, H. A Data-Driven Newsvendor Problem: From Data to Decision. Eur. J. Oper. Res. 2019, 278, 904–915. [Google Scholar] [CrossRef]
- Amos, B.; Kolter, J.Z. OptNet: Differentiable Optimization as a Layer in Neural Networks. In Proceedings of the 34th International Conference on Machine Learning, Sydney, Australia, 6–11 August 2017; Volume 70, pp. 136–145. [Google Scholar]
- Donti, P.L.; Amos, B.; Kolter, J.Z. Task-Based End-to-End Model Learning in Stochastic Optimization. In Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; Volume 30, pp. 5484–5494. [Google Scholar]
- Qi, M.; Shi, Y.; Qi, Y.; Ma, C.; Yuan, R.; Wu, D.; Shen, Z.J.M. A Practical End-to-End Inventory Management Model with Deep Learning. Manag. Sci. 2023, 69, 759–773. [Google Scholar] [CrossRef]
- Mandi, J.; Kotary, J.; Berden, S.; Mulamba, M.; Bucarey, V.; Guns, T.; Fioretto, F. Decision-Focused Learning: Foundations, State of the Art, Benchmark and Future Opportunities. J. Artif. Intell. Res. 2024, 80, 1623–1701. [Google Scholar] [CrossRef]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention Is All You Need. In Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; Volume 30. [Google Scholar]
- Vinuesa, R.; Azizpour, H.; Leite, I.; Balaam, M.; Dignum, V.; Domisch, S.; Felländer, A.; Langhans, S.D.; Tegmark, M.; Fuso Nerini, F. The Role of Artificial Intelligence in Achieving the Sustainable Development Goals. Nat. Commun. 2020, 11, 233. [Google Scholar] [CrossRef] [PubMed]






| Method Stream | Censoring as Lower Bound | High-Freq. Exog. Covariates | Shared Deep Representation | DeciSion-Oriented Training | Not Scored on Own Imputation | Waste Sustainability Simulation |
|---|---|---|---|---|---|---|
| Tobit/Poisson censored estimators | Yes | Limited | No | No | Partly | No |
| Lost-sales demand estimation | Yes | Limited | No | Sometimes | Partly | No |
| Censored newsvendor/Kaplan–Meier | Yes | Limited | No | Yes | Theory/simulation | No |
| Generic deep retail forecasters | No | Yes | Yes | No | Yes (observed sales) | No |
| Decision-focused inventory learning | Usually no | Sometimes | Yes | Yes | Depends on labels | Sometimes |
| Two-stage recovery pipeline | Yes | Yes | Partly | Sequential | Yes (re-censoring) | Limited |
| CADRE (this work) | Yes | Yes | Yes | Yes | Yes (re-censoring) | Model-based |
| Symbol | Meaning |
|---|---|
| observed sales at time t | |
| stockout/censoring flag (1 if censored) | |
| latent demand under full availability | |
| known exogenous covariates | |
| lookback and forecast horizon | |
| diurnal-cycle bank | |
| negative-binomial mean and dispersion | |
| survival probability | |
| decision target (observed or re-censored known demand) | |
| auxiliary decision-head output (training-only regulariser) | |
| critical fractile | |
| decision-loss and cycle-regularisation weights |
| Component | Shape/Setting |
|---|---|
| Target input | |
| Future covariates | |
| Patch tokens | , with |
| Global token | |
| Exogenous tokens | |
| Horizon decoder | linear , reshaped to |
| Position encoding | learnable patch position + hour-of-day phase embedding |
| Residual order | pre-LN attention and feed-forward residuals |
| Output heads | NB likelihood head: linear maps to (deployment order from the NB predictive distribution, Section 4.4); auxiliary decision head: continuous , a training-only regulariser |
| Property | FreshRetailNet-50K | Corp. Favorita (Ecuador) |
|---|---|---|
| Region | 18 cities, China | 54 stores, Ecuador |
| Granularity | Hourly | Daily |
| Series | 50,000 | Store–family, daily |
| SKUs/families | 863 SKUs | 33 families |
| Samples | ≈100 million hourly observations | ≈120 M item–day rows (≈3 M family–day fitted) |
| Span per series | ≈90 days | 2013–2017 |
| Stockout labels | Real, hourly | None |
| Covariates | temp., precip., discount, holiday | promotion, oil price, holiday |
| Censoring in experiments | real labels for training; controlled re-censoring for known-truth evaluation | constructed high-demand, day-level mask |
| Evidence role | primary stockout-censored fresh-retail benchmark | cross-market daily robustness check |
| Supports | stockout recovery; intraday peak censoring; replenishment simulation | robustness to market and cadence under synthetic censoring |
| Does not support | direct field waste measurement | real stockout recovery or intraday claims |
| Hyperparameter | FreshRetailNet-50K | Favorita |
|---|---|---|
| Lookback L | 168 h | 90 d |
| Horizon H | 24 h | 14 d |
| Patch length P | 24 | 7 |
| Encoder blocks B | 3 | 3 |
| Model width D | 256 | 256 |
| Attention heads | 8 | 8 |
| Dropout | 0.1 | 0.1 |
| Optimiser | AdamW | AdamW |
| Learning rate | ||
| Weight decay | ||
| Batch size | 64 | 64 |
| Epochs | 50 | 50 |
| Decision weight | 0.3 | 0.3 |
| Cycle regulariser | ||
| Period | 24 | 7 |
| Critical fractile | 0.90 | 0.90 |
| Seeds | 5 | 5 |
| Hyperparameter | Candidate Values | Selection Criterion |
|---|---|---|
| Decision weight | validation WAPE and validation cost | |
| Cycle regulariser | validation WAPE, avoid cycle overfit | |
| Critical fractile | reported sensitivity; main high-service | |
| Patch length P | validation WAPE | |
| Model width D | validation WAPE and runtime | |
| Dropout | validation WAPE |
| FreshRetailNet-50K | Favorita | |||||
|---|---|---|---|---|---|---|
| Method | WAPE | MAE | RMSE | Bias | WAPE | Bias |
| SARIMA | 52.14 ± 0.41 | 3.62 ± 0.06 | 6.05 ± 0.09 | ± 0.5 | 27.33 ± 0.38 | ± 0.4 |
| Chronos (0-shot) | 45.93 ± 0.12 | 3.16 ± 0.03 | 5.28 ± 0.05 | ± 0.3 | 24.07 ± 0.10 | ± 0.2 |
| DLinear | 44.27 ± 0.22 | 3.04 ± 0.04 | 5.06 ± 0.07 | ± 0.4 | 23.61 ± 0.20 | ± 0.3 |
| Tobit-MLP | 43.18 ± 0.34 | 2.96 ± 0.05 | 4.97 ± 0.08 | ± 0.3 | 22.14 ± 0.26 | ± 0.3 |
| N-HiTS | 43.52 ± 0.27 | 2.98 ± 0.04 | 4.93 ± 0.06 | ± 0.4 | 22.58 ± 0.24 | ± 0.3 |
| DeepAR | 42.66 ± 0.31 | 2.91 ± 0.05 | 4.81 ± 0.07 | ± 0.4 | 22.39 ± 0.22 | ± 0.3 |
| PatchTST | 41.85 ± 0.19 | 2.87 ± 0.03 | 4.79 ± 0.05 | ± 0.3 | 22.01 ± 0.17 | ± 0.2 |
| TimesNet | 41.23 ± 0.25 | 2.83 ± 0.04 | 4.74 ± 0.06 | ± 0.3 | 21.94 ± 0.21 | ± 0.3 |
| iTransformer | 40.61 ± 0.23 | 2.79 ± 0.04 | 4.69 ± 0.06 | ± 0.3 | 21.72 ± 0.19 | ± 0.2 |
| Two-stage | 38.94 ± 0.21 | 2.66 ± 0.04 | 4.51 ± 0.05 | ± 0.3 | 20.81 ± 0.18 | ± 0.2 |
| TimeXer | 39.42 ± 0.18 | 2.71 ± 0.03 | 4.58 ± 0.05 | ± 0.3 | 21.28 ± 0.16 | ± 0.2 |
| CADRE | 36.71 ± 0.16 | 2.49 ± 0.03 | 4.38 ± 0.05 | ± 0.2 | 19.14 ± 0.15 | ± 0.2 |
| Comparison | WAPE (pp) | 95% CI | Adj. p | Bias (pp) | 95% CI |
|---|---|---|---|---|---|
| vs. TimeXer | < | ||||
| vs. Two-stage | |||||
| vs. Tobit-MLP | < | ||||
| vs. iTransformer | < |
| Configuration | WAPE | Bias | Service (%) | Waste (%) | Cost Index |
|---|---|---|---|---|---|
| Full CADRE | 36.71 ± 0.15 | ± 0.21 | 94.7 ± 0.19 | 6.4 ± 0.16 | 88.5 ± 0.38 |
| w/o censored likelihood | 38.93 ± 0.24 | ± 0.37 | 93.1 ± 0.28 | 9.1 ± 0.29 | 97.0 ± 0.62 |
| w/o decision loss | 37.18 ± 0.18 | ± 0.19 | 94.3 ± 0.22 | 8.0 ± 0.21 | 92.9 ± 0.47 |
| w/o diurnal cycle | 37.84 ± 0.27 | ± 0.33 | 94.2 ± 0.24 | 7.1 ± 0.18 | 91.0 ± 0.55 |
| w/o exogenous covariates | 38.36 ± 0.22 | ± 0.26 | 94.1 ± 0.31 | 7.3 ± 0.27 | 91.6 ± 0.51 |
| backbone → iTransformer | 37.52 ± 0.17 | ± 0.23 | 94.5 ± 0.17 | 6.8 ± 0.15 | 89.8 ± 0.44 |
| backbone → PatchTST | 37.88 ± 0.26 | ± 0.31 | 94.3 ± 0.26 | 7.0 ± 0.23 | 90.4 ± 0.49 |
| Decision-Target Variant | WAPE | Bias | Waste (%) | Cost Index |
|---|---|---|---|---|
| No decision loss | 37.18 | 8.0 | 92.9 | |
| Decision loss, uncensored targets only | 36.95 | 7.2 | 90.8 | |
| Decision loss, +train re-censored known-truth targets (main) | 36.71 | 6.4 | 88.5 | |
| Decision loss, stop-gradient recovered target on stockout hours | 36.73 | 6.5 | 88.7 | |
| Decision loss, non-detached recovered target | 36.66 | 6.2 | 87.9 |
| Method | 10% | 20% | 30% | 40% | 50% |
|---|---|---|---|---|---|
| TimeXer | 38.3/ | 39.4/ | 41.7/ | 44.9/ | 49.2/ |
| Two-stage | 37.6/ | 38.9/ | 40.8/ | 43.5/ | 47.0/ |
| CADRE | 35.9/ | 36.7/ | 38.2/ | 40.6/ | 43.8/ |
| Policy Input | Service Level (%) | Waste Rate (%) | Stockout Rate (%) | Cost Index |
|---|---|---|---|---|
| Censored sales | 92.9 ± 0.31 | 9.8 ± 0.34 | 7.1 ± 0.26 | 100.0 ± 0.0 |
| TimeXer forecast | 93.4 ± 0.27 | 9.1 ± 0.29 | 6.6 ± 0.19 | 96.2 ± 0.58 |
| Two-stage forecast | 94.0 ± 0.23 | 7.6 ± 0.18 | 6.0 ± 0.22 | 91.8 ± 0.47 |
| CADRE | 94.7 ± 0.18 | 6.4 ± 0.16 | 5.3 ± 0.21 | 88.5 ± 0.39 |
| Comparison ( = 0.90) | Service (pp) | 95% CI | Waste (pp) | 95% CI | Cost | 95% CI | Adj. p (Waste) |
|---|---|---|---|---|---|---|---|
| CADRE—Censored sales | |||||||
| CADRE—TimeXer | |||||||
| CADRE—Two-stage |
| Policy | Service (%) | Waste (%) | Stockout (%) | Cost Index | |
|---|---|---|---|---|---|
| 0.75 | Censored sales | 88.1 | 4.6 | 11.8 | 100.0 |
| 0.75 | TimeXer | 88.8 | 4.4 | 11.1 | 97.4 |
| 0.75 | Two-stage | 89.7 | 3.9 | 10.2 | 93.9 |
| 0.75 | CADRE | 90.6 | 3.5 | 9.3 | 90.5 |
| 0.80 | Censored sales | 89.8 | 6.1 | 10.2 | 100.0 |
| 0.80 | TimeXer | 90.4 | 5.9 | 9.6 | 97.0 |
| 0.80 | Two-stage | 91.2 | 5.3 | 8.8 | 93.3 |
| 0.80 | CADRE | 92.0 | 4.8 | 8.0 | 89.7 |
| 0.90 | Censored sales | 92.9 | 9.8 | 7.1 | 100.0 |
| 0.90 | TimeXer | 93.4 | 9.1 | 6.6 | 96.2 |
| 0.90 | Two-stage | 94.0 | 7.6 | 6.0 | 91.8 |
| 0.90 | CADRE | 94.7 | 6.4 | 5.3 | 88.5 |
| 0.92 | Censored sales | 93.5 | 10.9 | 6.5 | 100.0 |
| 0.92 | TimeXer | 94.0 | 10.0 | 6.0 | 96.0 |
| 0.92 | Two-stage | 94.7 | 8.4 | 5.3 | 91.4 |
| 0.92 | CADRE | 95.3 | 7.0 | 4.7 | 88.2 |
| Method | Params (M) | Train (min/epoch) | Latency (ms) | GPU Mem (GB) |
|---|---|---|---|---|
| DLinear | 0.04 | 1.2 | 6 | 2.1 |
| PatchTST | 1.2 | 4.6 | 18 | 7.4 |
| iTransformer | 3.4 | 5.1 | 21 | 8.2 |
| TimeXer | 4.2 | 5.7 | 24 | 9.1 |
| TimesNet | 12.1 | 9.8 | 44 | 13.6 |
| CADRE | 6.8 | 7.4 | 31 | 11.3 |
| Method | Recovery sMAPE (%) | vs. CADRE | 95% CI | p vs. CADRE (Recovery sMAPE) | WAPE (%) | Waste (%) |
|---|---|---|---|---|---|---|
| Linear interpolation | 24.6 ± 0.47 | < | — | — | ||
| Tobit-MLP | 19.8 ± 0.36 | < | 43.18 | 8.8 | ||
| Two-stage | 17.4 ± 0.29 | 38.94 | 7.6 | |||
| CADRE | 13.0 ± 0.24 | — | — | — | 36.71 | 6.4 |
| Category | Stockout Incidence (%) | TimeXer WAPE | CADRE WAPE | WAPE (pp) | Waste Red. (pp) |
|---|---|---|---|---|---|
| Leafy vegetables | 31.2 | 42.8 | 38.9 | 4.7 | |
| Fish & seafood | 27.6 | 41.5 | 38.0 | 4.2 | |
| Fruit | 21.4 | 39.4 | 36.9 | 3.4 | |
| Meat | 19.8 | 38.3 | 36.2 | 3.0 | |
| Root vegetables | 17.3 | 37.6 | 35.8 | 2.6 | |
| Dairy | 8.9 | 35.2 | 34.4 | 1.4 |
| Condition | Evidence Already Reported | Recommended Interpretation |
|---|---|---|
| High censoring, strong intraday cycle | Leafy vegetables 31.2% incidence, WAPE pp, simulated waste reduction 4.7 pp; fish and seafood 27.6%, pp, 4.2 pp | Strongest candidate setting for CADRE |
| Moderate censoring | Meat 19.8%, WAPE pp, 3.0 pp; root vegetables 17.3%, pp, 2.6 pp | Selective use justified when labels and covariates are reliable |
| Low censoring/longer shelf life | Dairy 8.9%, WAPE pp, waste reduction 1.4 pp | Incremental value small; an incumbent exogenous forecaster may be preferable |
| Moderate label noise | 5% flips: WAPE 37.10, bias ; 10% flips: 37.65, | Deploy only with label monitoring and periodic audit |
| High label noise | 20% flips: WAPE 38.80, bias | Audit inventory logs or use a fallback model |
| Missing exogenous data | 10% missing promotion: WAPE 37.02; 30% missing weather: 37.46; no exogenous variables: 38.36 | CADRE remains usable, but its incremental benefit declines |
| Centralised nightly batch inference | 6.8 M parameters; 7.4 min/epoch; 31 ms per 1000 series; 11.3 GB GPU memory | Feasible for central batch decision support |
| Alternative operating assumptions | Main 94.7/6.4/88.5; lead time 94.2/6.7/90.1; two-day shelf life 94.8/4.5/86.9; markdown 94.6/5.9/87.8; pack size 94.5/6.9/89.6 (service/waste/cost) | Direction robust in simulation, but magnitude is policy-dependent |
| Strongly intermittent/zero-inflated demand | Not directly tested; NB-head limitation noted | Use an alternative likelihood or intermittent-demand method |
| Real-time emergency ordering, multi-echelon allocation, long stochastic lead time | Not tested | Outside current evidence; future work required |
| Need for modular auditability | Two-stage recovery sMAPE 17.4 vs. CADRE 13.0, but stages are reviewable independently | Two-stage may be preferred when governance outweighs predictive gains |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Yin, C.; Zheng, Y.; Kong, Z. Demand Hidden by Stockouts: Censored Demand Recovery and Green Waste-Reduction Forecasting for Sustainable Fresh-Food Consumption Under Emerging-Market Urbanization. Sustainability 2026, 18, 7642. https://doi.org/10.3390/su18157642
Yin C, Zheng Y, Kong Z. Demand Hidden by Stockouts: Censored Demand Recovery and Green Waste-Reduction Forecasting for Sustainable Fresh-Food Consumption Under Emerging-Market Urbanization. Sustainability. 2026; 18(15):7642. https://doi.org/10.3390/su18157642
Chicago/Turabian StyleYin, Chao, Yuhua Zheng, and Zhaoyang Kong. 2026. "Demand Hidden by Stockouts: Censored Demand Recovery and Green Waste-Reduction Forecasting for Sustainable Fresh-Food Consumption Under Emerging-Market Urbanization" Sustainability 18, no. 15: 7642. https://doi.org/10.3390/su18157642
APA StyleYin, C., Zheng, Y., & Kong, Z. (2026). Demand Hidden by Stockouts: Censored Demand Recovery and Green Waste-Reduction Forecasting for Sustainable Fresh-Food Consumption Under Emerging-Market Urbanization. Sustainability, 18(15), 7642. https://doi.org/10.3390/su18157642

