Lessons Learned from Deploying Adaptive Machine Learning Agents with Limited Data for Real-time Cell Culture Process Monitoring

Thanh Tung Khuat, Jian Peng, Robert Bassett, Ellen Otte, Bogdan Gabryś · DOI

TL;DR

This paper evaluates how different adaptive machine learning (ML) strategies—ranging from online learning to just-in-time modeling—perform when monitoring real-time metabolite levels in bioreactors. The core finding is that while "global" pretrained models are efficient, the key to handling process anomalies and novel culture media lies in real-time model updates using offline analytical measurements.

What Problem Does This Paper Address?

In biopharmaceutical manufacturing, monitoring the health of cell cultures (like those producing monoclonal antibodies) is critical. Traditionally, this involves "offline" sampling—taking a physical sample and measuring it in a lab—which is slow and infrequent. Raman spectroscopy offers a "real-time" alternative by using light to "fingerprint" the chemical composition of the bioreactor.

However, translating complex Raman spectra into accurate concentrations of glucose, lactate, and ammonium is difficult. Standard ML models are often "brittle": they perform well on data they’ve seen before but fail when a manufacturer changes the cell line, the nutrient "soup" (media), or when a process anomaly occurs (like a pump failure). This paper investigates how to make these ML models more adaptive and resilient using limited data.

Methods

The authors compared four primary ML architectures:

  1. Pretrained Models: Standard batch-learned models (like PLSR or SVR) trained on a large historical library (34 runs).
  2. Online Learning: Algorithms like Recursive Partial Least Squares (RPLSR) and Online Support Vector Regression (OSVR) that update their parameters instance-by-instance as new data arrives.
  3. Just-In-Time Learning (JITL): Instead of one global model, JITL identifies the ~30 most similar historical samples to the current Raman scan and builds a "local," single-use model on the fly.
  4. Retraining: Periodically retraining the entire batch model as new offline data becomes available.

They also introduced a Mixture-of-Experts (MoE) solution, which simply averages the predictions of all the above models to improve robustness and "smooth out" the noise.

Datasets

  • Historical Library: 34 historical bioreactor runs used for pretraining and as a reference library for JITL.
  • Case Study 1: A bioreactor run using familiar media but featuring a significant, unplanned spike in glucose (4x higher than normal) to test anomaly adaptation.
  • Case Study 2: Two runs (Cell Lines A and B) using entirely new culture media and feeding strategies that were not present in the historical training data.

Key Insights and Ideas

  • The "Update" is Everything: The single most important factor for accuracy wasn't the specific algorithm, but the frequency of updates. Models updated in "real-time" (whenever a new offline measurement was available) significantly outperformed those updated once daily or not at all.
  • Global vs. Local Trade-offs: Large "global" models trained on diverse data are robust but often lack the precision of "local" models. JITL bridges this gap by focusing only on the most relevant historical data for the current moment.
  • Adaptation to the Unknown: In Case Study 2, where the media was brand new, pretrained models failed completely. However, JITL and Online Learning agents were able to "pivot" and maintain high accuracy by learning the new chemical relationships on the fly.
  • MoE as a Stabilizer: While a single model might occasionally "hallucinate" or overreact to a spectral shift, the Mixture-of-Experts approach provided a much smoother and more reliable predictive trend, which is vital for automated control systems.

Key Results

  • Case Study 1 (Anomaly): For glucose prediction, retraining the model with real-time updates achieved the best performance with a 1.98% Normalised Mean Absolute Error (NMAE) and an $R^2$ of 98.86%.
  • Case Study 2 (Novel Conditions): Pretrained models without updates were ineffective ($R^2$ values were often negative). However, the JITL model with real-time updates excelled, achieving an NMAE of 4.75% for glucose and 7.87% for ammonium in Cell Line B.
  • MoE Performance: The Mixture-of-Experts approach was particularly effective in the novel conditions of Case Study 2, outperforming individual models with an $R^2$ of 96.32% for glucose and 98.54% for lactate.

Limitations and Future Work

  • Computational Cost: Retraining large models in real-time can be computationally expensive. While JITL is faster, it still requires a well-maintained and searchable data library.
  • Simple Averaging: The MoE solution used a simple mean of predictions. The authors suggest that future work could involve "smarter" weighting, where the system learns which expert to trust more based on the current process phase.
  • Closing the Loop: This study focused on monitoring. The ultimate goal is to use these adaptive predictions to drive automated control (e.g., an ML agent automatically adjusting a nutrient pump), which requires even higher levels of safety and reliability.

Summary updated

Abstract

This study explores the deployment of three machine learning (ML) approaches for real-time prediction of glucose, lactate, and ammonium concentrations in cell culture processes, using Raman spectroscopy as input features. The research addresses challenges associated with limited data availability and process variability, providing a comparative analysis of pretrained models, just-in-time learning (JITL), and online learning algorithms. Two industrial case studies are presented to evaluate the impact of varying bioprocess conditions on model performance. The findings highlight the specific conditions under which pretrained models demonstrate superior predictive accuracy and identify scenarios where JITL or online learning approaches are more effective for adaptive process monitoring. This study also highlights the critical importance of updating the deployed models/agents with the latest offline analytical measurements during bioreactor operations to maintain the model performance against the changes in cell growth behaviours and operating conditions throughout the bioreactor run. Additionally, the study confirms the usefulness of a simple mixture-of-experts framework in achieving enhanced accuracy and robustness for real-time predictions of metabolite concentrations based on Raman spectral data. These insights contribute to the development of robust strategies for the efficient deployment of ML models in dynamic and changing biomanufacturing environments.
BibTeX
@misc{khuat2025lessons,
  author = {Thanh Tung Khuat and Jian Peng and Robert Bassett and Ellen Otte and Bogdan Gabryś},
  title = {{Lessons Learned from Deploying Adaptive Machine Learning Agents with Limited Data for Real-time Cell Culture Process Monitoring}},
  year = {2025},
  eprint = {2509.02606},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.02606},
}

Loading related content...

Figure