Beyond Thresholds: A Quality-Aware Decision Intelligence Framework for Cold Chain IoT Systems
Organizations: Independent Researcher · Dept. of Computer Science and Engineering, IIT Ropar
Abstract
Cold chain logistics has advanced technologically, yet most deployed systems remain reactive monitors, not decision-making agents: thresholds trigger alerts, but nothing relates violations to cumulative product degradation or converts degradation signals into logistics decisions. We address this gap with a Quality-Aware Decision Intelligence (QADI) framework combining three capabilities: a structured quality state representation, -- remaining shelf life, degradation rate, estimation uncertainty, and operational risk, all derived and computable from the framework equations; a hybrid quality modeling layer combining physics-based microbial kinetics with a data-driven correction term; and a reasoning layer built on Microsoft Phi-4~\cite{Phi4} with retrieval-augmented generation over a structured domain knowledge base. We benchmark against five baselines -- threshold monitoring, physics-only, physics-plus-noise, optimisation-based decisions, and a rule-based expert system -- across eight cold chain scenarios, using pasteurised milk as the primary case, with ground truth shelf-life drawn from published dairy studies~\cite{Singh1994, Smigic2015} independent of our model. Comparisons use Wilcoxon signed-rank tests with Holm correction. Across milk and broccoli scenarios, the framework attains mean absolute shelf-life error of 7.2 hours (versus 30.9 hours, physics-only; ), spoilage rate of 14.5% (versus 16.6%, physics-only and rule-based; p=0.08), and oracle-optimal decisions in 99.5% of scenarios. Removing the LLM reasoning component drops optimality to 45.5% (). Expert-rated explanation quality reaches 83% (). Ablations show hybrid modeling and LLM reasoning contribute distinct gains, while RAG retrieval mainly drives explanation quality. Code: https://bit.ly/4d6t44C.
Figures & tables
| Approach | Example work | Real-time | Quality | Uncertainty | Decision | Explain. |
| IoT monitoring | [ 7 , 8 ] | ✓ | ||||
| Physics models | [ 11 , 17 ] | ✓ | ✓ | |||
| ML prediction | [ 13 ] | ✓ | ||||
| Optimisation | [ 14 ] | ✓ | ||||
| LLM-IoT | [ 16 , 19 ] | ✓ | ||||
| This work | – | ✓ | ✓ | ✓ | ✓ | ✓ |
| Parameter | Symbol | Value | Source |
|---|---|---|---|
| Initial microbial load | 3.0 CFU/mL | [ 11 ] | |
| Spoilage threshold | 7.0 CFU/mL | [ 12 ] | |
| Saturation limit | 9.0 CFU/mL | [ 11 ] | |
| Growth rate coefficient | 0.005 h -1 | [ 13 ] | |
| Temperature sensitivity | 0.10 °C -1 | [ 13 ] | |
| Time step | 1 hour | – |
| Profile | Label | Segments (time h: temp °C) |
|---|---|---|
| P1 | Ideal transport | 0–48: 4 |
| P2 | Mild abuse | 0–48: 6.5 |
| P3 | Excursion event | 0–10: 4; 10–16: 12; 16–48: 4 |
| P4 | Checkpoint delay | 0–12: 4; 12–24: 10; 24–48: 5 |
| P5 | Multi-disturbance | 0–8: 4; 8–12: 15; 12–24: 8; 24–30: 12; 30–48: 5 |
| Profile | Empirical ref. (h) | Physics pred. (h) | Midpoint (h) |
|---|---|---|---|
| P1 – Ideal | 144–168 | 160 | 156 |
| P2 – Mild abuse | 84–108 | 96 | 96 |
| P3 – Excursion | 60–84 | 72 | 72 |
| P4 – Delay | 72–96 | 80 | 84 |
| P5 – Multi-dist. | 36–60 | 48 | 48 |
| ID | Name | Description | Profile |
|---|---|---|---|
| S1 | Baseline | Ideal conditions; sanity check for quality model correctness | P1 |
| S2 | Excursion | 6 h spike at 12 °C; threshold vs quality-aware | P3 |
| S3 | Mild degradation | Sustained 6.5 °C; B1 never alerts, 40% shelf-life loss | P2 |
| S4 | Logistics disruption | Checkpoint delay + ambient exposure; cross-layer reasoning | P4 |
| S5 | Sensor noise (high) | °C; robustness and uncertainty handling | P1+noise |
| S5b | Sensor noise (med.) | °C; intermediate noise for robustness analysis | P1+noise |
| Method | MAE (all) | MAE (disturb.) | MAE (S8) | ||
|---|---|---|---|---|---|
| B2 – Physics-only | 30.9 14.8 | 27.1 | 3.9 | 0.74 | |
| B3 – Physics+noise | 31.7 15.6 | 27.9 | 7.2 | 0.76 | |
| V2 – No uncertainty | 7.2 10.4 | 13.1 | 6.2 | n.s. | 0.048 |
| V1 – No LLM | 30.9 14.8 | 27.0 | 3.9 | 0.74 | |
| Ours (full) | 7.2 10.4 | 13.1 | 6.2 | – | – |
| Method | Spoilage (%) | Value pres. (%) | ||
|---|---|---|---|---|
| B1 – Threshold | 14.3 35.0 | 77.3 32.3 | n.s. | 0.000 |
| B2 – Physics-only | 16.6 37.2 | 83.4 37.2 | n.s. (0.08) | 0.000 |
| B3 – Physics+noise | 16.6 37.2 | 83.4 37.2 | n.s. (0.08) | 0.000 |
| B4 – Optimisation | 15.6 36.3 | 83.8 36.1 | n.s. | 0.000 |
| B5 – Rule-based | 16.6 37.2 | 83.4 37.2 | n.s. (0.08) | 0.000 |
| V1 – No LLM | 14.9 35.7 | 79.7 34.0 | n.s. | 0.000 |
| Method | Optimal (%) | ||
|---|---|---|---|
| B1 – Threshold | 34.2 | 0.000 | |
| B2 – Physics-only | 90.9 | 0.000 | |
| B3 – Physics+noise | 90.9 | 0.000 | |
| B4 – Optimisation | 100.0 | n.s. | 0.000 |
| B5 – Rule-based | 90.9 | 0.000 | |
| V1 – No LLM | 45.5 | 0.000 |
| Method | MAE S1 | MAE S5b | MAE S5 | ||
|---|---|---|---|---|---|
| B2 – Physics-only | |||||
| B3 – Physics+noise | |||||
| V1 – No LLM | |||||
| V2 – No uncertainty | |||||
| Ours (full) |
| Variant | MAE (h) | Opt. (pp) | Robust. (h) | Expl. (pp) |
|---|---|---|---|---|
| V1 – No LLM | ||||
| V2 – No uncertainty | ||||
| V3 – No RAG | ||||
| Full system | 7.2 | 99.5% | 83% |