## Industrial antibiotic fermenters can confuse software sensors during mechanical disruptions

URL: https://theprimary.com/science/2026-12-03/antibiotic-fermenters-soft-sensors
Published: 2026-12-03T21:21:08.591Z
Updated: 2026-12-03T21:21:10.151Z
Category: Science

Training algorithms on historical equipment errors sharpens yield tracking when antibiotic vats veer off course, but unmodelled breakdowns and uncalibrated alarms still threaten automated factory control.

Growing life-saving antibiotics inside industrial fermentation tanks is a delicate biological balancing act. Deep inside sealed stainless-steel vats, microbial cultures consume sugar, breathe oxygen, and churn out active drug molecules over hundreds of consecutive hours. Plant operators cannot constantly draw physical samples to measure how much penicillin has accumulated without risking contamination and slowing down production. Instead, pharmaceutical facilities increasingly rely on soft sensors, which are mathematical models that calculate hidden chemical concentrations in real time from routine factory measurements such as acidity, temperature, vessel pressure, and feed rates.

These computational estimates work well when a fermentation batch proceeds smoothly, but they often break down as soon as equipment falters. When an unexpected cooling failure or a blocked nutrient valve knocks a vessel off course, the biological link between easily measured physical conditions and actual product formation begins to drift. In an operational pharmaceutical plant, a blind sensor during a crisis leaves factory supervisors unable to tell whether a multi-million-dollar batch of medicine can still be salvaged or must be discarded.

To follow what occurs inside the vessel, an operator must watch a cascade of living steps. Fungal cells take in dissolved nutrients, process them through metabolic pathways, and excrete penicillin while heat builds up and broth thickens. Controlling that process requires maintaining balanced aeration, cooling, and feeding across hundreds of hours. When an intake line fouls or a chiller stumbles, the chemical environment alters cell growth and shifts the rate of drug synthesis. Because standard software estimators infer antibiotic yields from regular environmental variables, any divergence between physical telemetry and cellular metabolism throws their calculations off target.

## Why do digital sensors fail when fermentation goes wrong?

Software models lose their accuracy during equipment breakdowns because algorithms trained exclusively on flawless factory cycles never learn how stressed microbes behave. Under typical operating conditions, living fungal cells transform dissolved oxygen and corn-steep liquor into penicillin along predictable metabolic routes. If a mechanical pump sticks, cooling capacity drops, or glucose feeds fluctuate, the environment inside the vessel deviates from historical norms. Because standard algorithms have only witnessed well-behaved runs, they project yields as though the biological culture were still following its standard recipe, generating systematic errors precisely when plant operators need reliable guidance.

To address that blind spot, researchers A. B. Behlim, A. Tilewale, and D. Patel investigated whether deliberately exposing algorithms to known mechanical deviations could protect sensor accuracy during process disruptions. In a study posted to the bioRxiv preprint server, the authors designed a matched test comparing conventional regressors trained solely on normal operations against fault-inclusive models exposed to recorded equipment errors. The investigation evaluated current-time penicillin concentration across 100 simulated batches of a 100,000-liter fed-batch fermentation process known as IndPenSim, spanning 113,935 total observations.

The benchmark dataset, hosted as an open-access resource of approximately 2.5 gigabytes on Mendeley Data, models different control regimes: batches 1 to 30 use recipe-driven controls, batches 31 to 60 use operator adjustments, batches 61 to 90 incorporate advanced control with simulated Raman spectroscopy, and batches 91 to 100 contain deliberate process faults. Using 36 real-time and causal history features, the authors trained HistGradientBoosting algorithms under a leave-one-fault-batch-out protocol, ensuring that every tested deviation batch was excluded from its own training set. In the fault-inclusive runs, permitted deviation batches received three times the sample weight of standard runs to force the regressor to heed rare disturbances.

Addressing that weighting strategy, Dhaval said in response to questions from Primary that the adjustment was a prespecified heuristic rather than an optimized parameter. “The 3× multiplier was not derived from an exhaustive hyperparameter search, nor was it optimized within a nested validation loop,” Dhaval said. In a leave-one-deviation-batch-out fit, 90 normal batches supplied 90 base units of weight, while the nine permitted fault runs supplied 27 units, meaning fault runs represented about 23.08 percent of the total training weight. Dhaval noted that the experiment evaluated this combined strategy rather than isolating exposure from weighting.

## How much accuracy can fault-inclusive training restore?

Exposing the regression model to previous process disruptions reduced prediction errors across held-out deviation batches by nearly a fifth. Across the ten fault batches, pooled root mean square error fell from 3.195 grams per liter under normal-only training to 2.564 grams per liter under fault-inclusive training, representing a 19.73 percent reduction in estimation error. Mean absolute error on those same ten abnormal batches dropped from 2.076 grams per liter to 1.441 grams per liter, while the coefficient of determination rose from 0.8580 to 0.9085.

Crucially, this adaptation during anomalies did not degrade everyday tracking when the simulated facility operated without incident. Across the 90 normal-operation batches, evaluated across five balanced complete-batch folds, the root mean square error remained steady, shifting from 1.981 grams per liter under baseline training to 1.983 grams per liter under fault-inclusive training. Eight of the ten fault batches demonstrated individual performance gains, yielding a mean paired batch error reduction of 0.7063 grams per liter, with a descriptive 95 percent batch-bootstrap interval spanning 0.2194 to 1.2844 grams per liter.

Explaining how the regressor absorbed disruptions without eroding nominal performance, Dhaval pointed to decision-tree dynamics. “The model builds an additive ensemble of decision trees that can represent nonlinear and region-specific relationships between process measurements and penicillin concentration,” Dhaval told Primary. In those runs, normal batches preserved roughly 76.9 percent of the batch-weighted training mass, giving the estimator exposure to abnormal patterns while maintaining its nominal baseline. Dhaval clarified that because individual decision paths were not traced to specific leaves, this behavior represents a plausible interpretation rather than a proven mechanistic finding.

## What prevents these models from entering actual drug factories?

Incomplete failure coverage and unreliable safety alarms prevent these soft sensors from immediate deployment on physical factory floors. The findings represent outputs from a simulated mathematical environment rather than physical measurements taken from live pharmaceutical bioreactors. When faced with Batch 100, which featured an unusual disturbance, the fault-inclusive model failed severely, producing a root mean square error of 6.631 grams per liter and an explanatory coefficient of determination of -2.4837 on that single run.

Examining that breakdown, Dhaval told Primary that the simulation exhibited a late, low-producing trajectory that the regressor persistently overestimated. Across Batch 100, the simulated concentration averaged 6.931 grams per liter against a fault-inclusive prediction of 11.790 grams per liter, widening at 230 hours to an estimated 15.511 grams per liter against an actual 5.626 grams per liter. Recorded disturbance events ceased after 110 hours, yet calculation errors persisted until harvest, leaving the exact physiological or mechanical cause undetermined.

The authors also determined that companion safety tools, including an Isolation Forest anomaly detector, a fault-risk classifier, and empirical prediction intervals, supplied incomplete operational warnings during off-nominal behavior. Dhaval observed that the Isolation Forest evaluates statistical novelty against typical inputs rather than calculating whether a prediction is inaccurate. “A process deviation can produce a poor concentration estimate even when its measured input combination remains relatively close to the normal training distribution,” Dhaval said. During Batch 100, only 4.61 percent of observations triggered an out-of-distribution alert, while the fault classifier raised false alarms on 13.86 percent of normal observations.

These simulations do not demonstrate how algorithms will behave when facing unforeseen mechanical breakdowns. The test environment mirrors a 100,000-liter bioreactor through mathematical equations, but simulated runs cannot capture the complex biological shifts and sensor noise of living industrial broth. Furthermore, the bioRxiv paper is a preprint that has not completed formal peer review. Dhaval acknowledged that holding out single runs does not verify whether models generalize across entire unobserved fault mechanisms, and stressed that real bioreactor tests will be necessary to determine how much of this simulated accuracy persists in commercial production.
