Reinforcement-Learning pH Control for BioSMB
RESEARCH CASE STUDY
Reinforcement-Learning pH Control for BioSMB
A simulation-pretrained TD3 policy generated bounded acid/base flow decisions during a 4.55-hour BioSMB laboratory run across a changing pH sequence.
System architecture
Contribution and implementation
The TD3 actor was pretrained for 500,000 steps in an ideal chemistry simulation and exported with a fixed five-state, two-action deployment contract before laboratory application.
A ratio-first bounded action mapper converts the TD3 policy outputs into feasible acid and acetate flow commands using the measured outlet pH, target, error, and previous actions.
Laboratory analysis preserves the full transient and settled-block views; the later replay-based online-adaptation path is implemented software but is not demonstrated by this stored run.
Implementation: Python · PyTorch
Results and evaluation
The stored hardware-connected experiment ran for 4.5517 hours and contains 14,426 valid outlet-pH measurements and 236 controller-action changes.
With targets reconstructed from the supplied schedule, the transient-inclusive raw MAE was 0.02376 pH and the mean absolute error of the eight final-five-minute block means was 0.0088 pH.
As a run-level diagnostic rather than an inline-flow measurement, one-minute reservoir-mass-derived and commanded flows had correlations of 0.99846 for acid and 0.99932 for sodium acetate.
Limitations and evidence maturity
This is one stored laboratory run; the active target and exact policy identity were not embedded in the CSV, so target-dependent metrics are reconstructed rather than directly logged.
The run does not demonstrate the later online-gradient adaptation path, formal robustness or safety guarantees, production deployment, or same-protocol superiority over an established controller.