Short answer: you can forecast the risk, not the result. Fusarium infection in the field produces both DON mycotoxin and the hydrophobins that cause beer to gush, so a model fed harvest weather, region, variety susceptibility and grain-inspection data can rank incoming barley lots from low to high risk and route them to test, segregate or reject. That triage is genuinely useful — it focuses expensive assays where they matter. But contamination is patchy and the cost of a missed lot is a food-safety recall, so the model screens; the laboratory and a human decide.

DON and gushing are the two malthouse problems that start before the barley ever arrives: both are sown in a warm, wet flowering window months earlier. By intake the damage is done and unevenly spread through the lot, which is what makes them both a forecasting problem and a sampling nightmare.

Intake triage — score, then route incoming lot weather · variety · NIR risk score low · med · high accept segregate & assay DON reject / divert
The model does not pass or fail a lot; it sorts lots so the lab assay and the human decision land where the risk is highest.

Where gushing and DON come from

Both trace to Fusarium head blight, a fungal infection of the cereal ear favoured by warm, humid weather during flowering. The fungus produces deoxynivalenol (DON), a mycotoxin that is a regulated food-safety hazard and largely survives malting and brewing into the finished beer. The same infection deposits hydrophobins — small surface-active proteins that cling to carbon-dioxide bubbles and stabilise them, so the beer erupts when the pack is opened (primary gushing). Crucially, this is a field problem, not a brewery one: by the time the barley reaches the malthouse you are managing inherited risk, deciding which lots to trust.

A risk score at intake

The model is a classic risk-ranking task. Features that genuinely carry signal: weather during the crop’s flowering window (rainfall, humidity, temperature), growing region and field history, variety susceptibility, and grain-inspection or near-infrared (NIR) readings at intake that hint at fungal damage. Train on past lots labelled with their measured DON and any gushing incidents, and the model outputs a risk grade per delivery. You then act on the grade: accept the low-risk lots, segregate and assay the medium ones, divert the high-risk ones to a non-food use or back to the supplier. The point is not to skip the DON test — it is to aim it.

The data and a generative reporting layer

This lives or dies on data discipline: tying each delivery to its agronomic origin, its NIR scan and, eventually, its laboratory DON result, so the model keeps learning. A generative-AI layer then does the unglamorous but real work of food-safety paperwork — drafting the HACCP note for a segregated lot, summarising “why was lot 88 flagged?” against the weather and region for the supplier conversation, and letting a quality manager query the season’s intake risk in plain language. It complements existing food-safety traceability from grain to glass rather than replacing the assay or the auditor.

Where a miss is expensive

This is the post where “where it breaks” matters most, because the failure mode is a safety failure. Contamination is heterogeneous — DON concentrates in pockets, so a lot can pass a sample and still carry a hot spot, and a model trained on lot-average labels cannot resolve what the sampling itself missed. Gushing is multifactorial: hydrophobins are the main primary cause, but carbonation, metal ions, calcium oxalate and packaging all contribute, so a clean barley risk score does not guarantee a calm pack. And the asymmetry is brutal — a false negative that lets a high-DON lot through is far costlier than a false positive that wastes an assay, so the model must be tuned to over-refer, and a human must own the release decision. Treat the score as the reason to test, never the reason not to.

The bottom line

AI earns its place in the malthouse as a triage tool for inherited risk: it ranks incoming barley for DON and gushing potential and points your testing where it counts. It does not clear a lot — heterogeneous contamination and multifactorial gushing make that the lab’s and the quality manager’s job. Keep the assay in the loop, bias the model toward caution, and let it make your sampling smarter, not your safety thinner.

Frequently asked questions

What is gushing in beer? Gushing is the spontaneous over-foaming of beer the moment a pack is opened, with no obvious shaking or fault. Primary gushing is driven by hydrophobin proteins from Fusarium mould on the barley, which stabilise tiny carbon-dioxide bubbles; it traces back to field infection, not to the brewery.

What is DON and why does it matter in malting? DON (deoxynivalenol) is a mycotoxin produced by Fusarium fungi on cereals. It is a food-safety hazard with regulatory limits, it largely survives malting and brewing, and the same field infection that raises DON often raises gushing risk — so it is screened at barley intake.

Can AI predict mycotoxin or gushing risk? It can rank the risk. A model using harvest weather during flowering, region, variety susceptibility and grain inspection or near-infrared data flags high-risk lots for testing or rejection. It is a triage tool, not a substitute for the DON assay, because contamination is patchy and the cost of a miss is high.

Part of the Brewing Science & AI track.