Use of machine learning for a helium line intensity ratio method in Magnum-PSI. (October 2022)