Artificial neural network for product-accompanied analysis and control