Statistics for Machine Learning and Image Processing Based Approach for Improving Milk Production and Cattle Livestock Management