Accidental crushing by sows is the primary cause of pre-weaning piglet mortality in intensive production, often due to the spatiotemporal lag of manual inspection. While Internet of Things (IoT) solutions exist, they frequently face challenges such as vision occlusion, high hardware costs, and latency. To address these, this study developed a low-cost multi-modal edge computing system based on TinyML. Using an ESP32-S3 microcontroller, the system employs a “Motion-Gated Acoustic Detection” strategy, activating a lightweight 1D-CNN model to identify piglet screams only when an IMU detects high-risk postural transitions of the sow. Results show the quantized model (5.1 KB) achieves 95.56% accuracy and 2 ms inference latency. The total end-to-end response latency is within 179 ms, ensuring intervention within the early “golden rescue window.” The low-power design enables the battery life to cover the entire lactation period. Field tests demonstrated that the system intercepted identified crushing risks within the monitored cohort, supporting its potential for significantly improving piglet survival probability. This research overcomes the limitations of single-modal monitoring and provides a scalable, cost-effective engineering intervention for enhancing animal welfare and achieving intelligent, unattended supervision in precision livestock farming.
Liu et al. (Sat,) studied this question.