Enhancing precision livestock farming through advanced time-series forecasting techniques and anomaly detection