Prediction and monitoring with machine learning under complex dependencies for swine production data