Obtaining extensive in- and at-line input and output analytics combined with machine learning to improve predictive CQA