Stellar Grove · Case study
B01 · Botanical potency drift — forecasting batch phytochemistry from growing-season climate
Can we forecast whether a batch will meet its Certificate of Analysis before it is harvested?
Synthetic case study. Simulated data, not field observations. Seed 260101.
Headline: Out-of-spec phenolic batches are forecastable before harvest (AUC 0.96 on held-out seasons), but most of that skill is species and farm (baseline AUC 0.94); drought is the climate signal worth watching.
- Truth recovered 11/12
- Plausibility checks 4/4
Findings
- 9/12 effects are resolved with the published sign (Sun et al. 2022) or correctly read as null. Drought and the alkaloid N-deposition reversal are clear; the small N-deposition penalties on phenolics/terpenoids are not detectable with 12 farms.
- A species-and-farm-only baseline already reaches AUC 0.94; climate adds +0.02 AUC and cuts Brier from 0.096 to 0.084.
- The CO2 effect is not identifiable from 12 seasons: CO2 tracks the calendar (r = 1.00), so its 95% intervals are ±0.16 ln — wider than the planted effects (≤ 0.10). Separating it needs FACE/chamber data or the Sun et al. database.
- On held-out 2023–2025 batches, a pre-harvest climate forecast ranks out-of-spec phenolics with AUC 0.96 (Brier 0.084; base rate 39%).
- Flagging batches with forecast risk > 50% would route 43% of batches to extra testing and catch 25/28 failures.
Truth check — does the analysis recover what was planted?
| Quantity | Planted truth | Estimate | 95% interval | Recovered? |
|---|---|---|---|---|
| phenolics: Warming (+1 °C) | 0.06 ln-ratio | 0.0661 ln-ratio | [0.0463, 0.0858] | yes |
| phenolics: Drought (+1 deficit) | 0.400 ln-ratio | 0.472 ln-ratio | [0.351, 0.593] | yes |
| phenolics: CO2 (+100 ppm) | 0.100 ln-ratio | 0.000756 ln-ratio | [-0.158, 0.160] | yes |
| phenolics: N deposition (+1 kg/ha) | -0.008 ln-ratio | -0.00386 ln-ratio | [-0.0107, 0.00301] | yes |
| terpenoids: Warming (+1 °C) | 0 ln-ratio | 0.00136 ln-ratio | [-0.0181, 0.0208] | yes |
| terpenoids: Drought (+1 deficit) | 0.300 ln-ratio | 0.336 ln-ratio | [0.216, 0.456] | yes |
| terpenoids: CO2 (+100 ppm) | 0.08 ln-ratio | 0.198 ln-ratio | [0.0415, 0.355] | yes |
| terpenoids: N deposition (+1 kg/ha) | -0.006 ln-ratio | -0.00235 ln-ratio | [-0.00963, 0.00493] | yes |
| alkaloids: Warming (+1 °C) | 0 ln-ratio | 0.0021 ln-ratio | [-0.0166, 0.0208] | yes |
| alkaloids: Drought (+1 deficit) | 0.250 ln-ratio | 0.384 ln-ratio | [0.269, 0.498] | no |
| alkaloids: CO2 (+100 ppm) | 0 ln-ratio | 0.0696 ln-ratio | [-0.0809, 0.220] | yes |
| alkaloids: N deposition (+1 kg/ha) | 0.01 ln-ratio | 0.0111 ln-ratio | [0.00422, 0.0179] | yes |
Plausibility checklist
| Plausibility check | Result | Detail |
|---|---|---|
| All concentrations positive and < 400 mg/g | pass | observed [1.243, 90.0] mg/g; allowed [0.100, 400] mg/g |
| Precipitation deficit within [0, 0.6] | pass | observed [0, 0.485]; allowed [0, 0.600] |
| Median within-farm batch CV of phenolics 5–40% | pass | observed 0.133; target [0.05, 0.400] |
| >= 200 batches for a 3-class model | pass | 288 batches |