Thermal Vision-Based Livestock Health Monitoring System
Edge-deployed Raspberry Pi 5 and MLX90640 thermal vision pipeline using body-part-specific Gaussian Mixture Models for non-contact cattle health monitoring.
>80% anomaly detection accuracy across mastitis, lameness, and fever; 25,890 BDT (~$310) prototype BOM / ~$210 target unit cost
- Raspberry Pi 5
- MLX90640 Thermal Camera
- DHT22 Environmental Sensor
- OpenCV
- Python
- Gaussian Mixture Models (GMM)

Problem
Smallholder dairy farms lack affordable, non-contact tools for early detection of fever, mastitis, and lameness in cattle.
Approach
Led a 4-person capstone team at AIUB (Feb 2025 – Jan 2026) to engineer an end-to-end embedded edge pipeline using a Raspberry Pi 5, MLX90640 thermal camera, and DHT22 environmental sensor. Deployed body-part-specific Gaussian Mixture Models (GMM) for unsupervised anomaly detection paired with real-time farmer alerting, with all processing running locally on the edge device.
Results
On the collected dataset, the system reported >80% anomaly detection accuracy across mastitis, lameness, and fever with percentile-based false-alarm control. Prototype hardware BOM cost was 25,890 BDT (~$310), with a target production unit cost near $210.
What Went Wrong
Ambient barn temperature fluctuations and seasonal environmental shifts introduced heavy thermal baseline noise.
What I Learned
Engineered adaptive thermal normalization and synthetic seasonal data augmentation to maintain inference reliability on our collected dataset under noisy barn conditions.
Photo Gallery // 3 Assets
Links & Artifacts
Code / artifacts being prepared for release.