Real-Time Mastitis Detection in Livestock using Deep Learning and Machine Learning Leveraging Edge Devices