Deep Reinforcement Learning-Based Self-Optimization of Flow Chemistry
Open Access
- 13 May 2025
- journal article
- Published by American Chemical Society (ACS) in ACS Engineering Au
- Vol. 5 (3) , 247-266
Abstract
The development of effective synthetic pathways is critical in many industrial sectors. The growing adoption of flow chemistry has opened new opportunities for more cost-effective and environmentally friendly manufacturing technologies. However, the development of effective flow chemistry processes is still hampered by labor- and experiment-intensive methodologies and poor or suboptimal performance. In this context, integrating advanced machine learning strategies into chemical process optimization can significantly reduce experimental burdens and enhance overall efficiency. This paper demonstrates the capabilities of deep reinforcement learning (DRL) as an effective self-optimization strategy for imine synthesis in flow, a key building block in many compounds such as pharmaceuticals and heterocyclic products. A deep deterministic policy gradient (DDPG) agent was designed to iteratively interact with the environment, the flow reactor, and learn how to deliver optimal operating conditions. A mathematical model of the reactor was developed based on new experimental data to train the agent and evaluate alternative self-optimization strategies. To optimize the DDPG agent’s training performance, different hyperparameter tuning methods were investigated and compared, including trial-and-error and Bayesian optimization. Most importantly, a novel adaptive dynamic hyperparameter tuning was implemented to further enhance the training performance and optimization outcome of the agent. The performance of the proposed DRL strategy was compared against state-of-the-art gradient-free methods, namely SnobFit and Nelder–Mead. Finally, the outcomes of the different self-optimization strategies were tested experimentally. It was shown that the proposed DDPG agent has superior performance compared to its self-optimization counterparts. It offered better tracking of the global solution and reduced the number of required experiments by approximately 50 and 75% compared to Nelder–Mead and SnobFit, respectively. These findings hold significant promise for the chemical engineering community, offering a robust, efficient, and sustainable approach to optimizing flow chemistry processes and paving the way for broader integration of data-driven methods in process design and operation.Keywords
Funding Information
- Research Councils UK (EP/P006965/1)
- Takeda Pharmaceutical Company (EP/P006965/1)
This publication has 64 references indexed in Scilit:
- Sustainability and Quality-by-Digital Design of an Integrated End-to-End Continuous Pharmaceutical Process2024
- Multi-Agent Reinforcement Learning and RL-Based Adaptive PID Control of Crystallization Processes2023
- Bayesian Self‐Optimization for Telescoped Continuous Flow SynthesisAngewandte Chemie International Edition, 2022
- Machine learning directed multi-objective optimization of mixed variable chemical systemsChemical Engineering Journal, 2022
- Machine Learning Applications for Chemical ReactionsChemistry – An Asian Journal, 2022
- Aerodynamic optimization of high-lift devices using a 2D-to-3D optimization method based on deep reinforcement learning and transfer learningAerospace Science and Technology, 2022
- Summit: Benchmarking Machine Learning Methods for Reaction OptimisationChemistry–Methods, 2021
- Machine learning meets continuous flow chemistry: Automated optimization towards the Pareto front of multiple objectivesChemical Engineering Journal, 2018
- Efficient multiobjective optimization employing Gaussian processes, spectral sampling and a genetic algorithmJournal of Global Optimization, 2018
- End‐to‐End Continuous Manufacturing of Pharmaceuticals: Integrated Synthesis, Purification, and Final Dosage FormationAngewandte Chemie, 2013