Machine-learned digital phase switch for sustainable chemical production. (1st January 2023)