Smart Cattle Behavior Sensing with Embedded Vision and TinyML at the Edge
Accurate real-time monitoring of cattle behavior is essential for enabling data-driven decision-making in precision livestock farming. However, existing monitoring solutions often rely on cloud-based processing or high-power hardware, which are impractical for deployment in remote or low-infrastructure agricultural environments. There is a critical need for low-cost, energy-efficient, and autonomous sensing systems capable of operating independently at the edge. This paper presents a compact, sensor-integrated system for real-time cattle behavior monitoring using an embedded vision sensor and a TinyML-based inference pipeline. The system is designed for low-power deployment in field conditions and integrates the OV2640 image sensor with the Sipeed Maixduino platform, which features the Kendryte K210 RISC-V processor and an on-chip neural network accelerator (KPU). The platform supports fully on-device classification of cattle postures using a quantized convolutional neural network trained on the publicly available cattle behavior dataset, covering standing and lying behavioral states. Sensor data is captured via the onboard camera and preprocessed in real time to meet model input specifications. The trained model is quantized and converted into a K210-compatible. kmodel using the NNCase toolchain, and deployed using MaixPy firmware. System performance was evaluated based on inference latency, classification accuracy, memory usage, and energy efficiency. Results demonstrate that the proposed TinyML-enabled system can accurately classify cattle behaviors in real time while operating within the constraints of a low-power, embedded platform, making it a viable solution for smart livestock monitoring in remote or under-resourced environments.
Authors
- Ibrahim A. Hameed (ORCID: https://orcid.org/0000-0003-1252-260X)
- Edgar Vallar (ORCID: https://orcid.org/0000-0001-8236-7102)
- Jazzie R. Jao (ORCID: https://orcid.org/0009-0006-5433-4753)
Institutions
- Norwegian University of Science and Technology (NO)
- Norwegian University of Life Sciences (NO)
- De La Salle University (PH)
Publication Details
- Published
- 2025-11-07
- DOI
- https://doi.org/10.3390/ecsa-12-26519
- Primary Topic
- Animal Behavior and Welfare Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00