پایش هوشمند سلامت گاو شیری با پردازش سیگنال مبتنی بر هوش مصنوعی: راهکاری یکپارچه در کشاورزی دقیق و سیستم‌های اینترنت اشیاء (IoT)

نوع مقاله : مقاله پژوهشی

نویسندگان

1 گروه مهندسی بیوسیستم، دانشکده کشاورزی، دانشگاه تبریز، تبریز، ایران.

2 گروه مهندسی تغذیه دام، دانشکده کشاورزی، دانشگاه تبریز، تبریز، ایران.

چکیده

این مطالعه باهدف مقایسه دو روش پردازش سیگنال (بدون تبدیل موجک و با تبدیل موجک گسسته (DWT)) در پایش هوشمند فعالیت‌های گاو شیری انجام شد. با توجه به اهمیت کشاورزی دقیق و پایش سلامت دام، تمرکز اصلی بر تحلیل عملکرد این روش‌ها در تشخیص الگوهای حیاتی مانند تغذیه (Feeding) و نشخوار (Rumination) قرار گرفت. داده‌های مورد استفاده از حسگر پیزوالکتریک با فرکانس نمونه‌برداری ۲۴ هرتز جمع‌آوری شد و با استفاده از تکنیک‌های پیشرفته یادگیری عمیق و پردازش سیگنال تحلیل گردید. نتایج نشان داد که روش بدون DWT با دقت اعتبارسنجی 86/78٪، زمان آموزش کوتاه‌تر (68/21 دقیقه) و پیچیدگی مدل کمتر (17/0M پارامتر)، به‌عنوان گزینه بهینه برای سیستم‌های عملیاتی با محدودیت منابع محاسباتی شناخته می‌شود. با این حال، روش با DWT در کلاس Feeding بهبود جزئی در F1-Score (7627/0 نسبت به 752/0) نشان داد که حاکی از پتانسیل آن در پایش دقیق‌تر فعالیت‌های حیاتی است. در مقابل، عملکرد روش بدون DWT در تشخیص کلاس Rumination با99/0 F1-Score ≈برتری واضحی داشت. این پژوهش راهکاری کاربردی برای توسعه سامانه‌های IoT در کشاورزی هوشمند ارائه می‌کند و تأکید می‌نماید که انتخاب روش پردازش سیگنال باید مبتنی بر اولویت‌های عملیاتی (دقت، سرعت، یا تمرکز بر کلاس‌های خاص) باشد. همچنین پیشنهاد می‌شود که اثرات این روش‌ها در حوزه‌های گسترده‌تری مانند پردازش تصاویر سنجش از دور و رباتیک کشاورزی مورد بررسی قرار گیرد.

کلیدواژه‌ها

موضوعات


عنوان مقاله [English]

Intelligent Health Monitoring of Dairy Cattle Using Artificial Intelligence-Based Signal Processing: An Integrated Approach in Precision Agriculture and Internet of Things (IoT) Systems

نویسندگان [English]

  • Hossien Navid 1
  • Hadi Rahmanzadeh Bahram 1
  • Ali Hosseinkhani 2
1 Dept. of Biosystems Engineering, Faculty of Agriculture, University of Tabriz, Tabriz, Iran.
2 Animal Nutrition Engineering Group, Faculty of Agriculture, University of Tabriz, Tabriz,, Iran.
چکیده [English]

Precision livestock farming has emerged as an effective approach for improving animal health, welfare, and production efficiency through continuous behavioral monitoring. Among the various behavioral indicators, feeding and rumination are recognized as two of the most informative physiological activities because changes in these behaviors are closely associated with metabolic disorders, digestive diseases, and overall animal health. Conventional monitoring techniques, including visual observation and camera-based systems, are labor-intensive, costly, and difficult to implement in large-scale dairy farms. Consequently, the development of low-cost intelligent monitoring systems capable of real-time behavioral analysis has become an important research objective.
Introduction
This study presents a comparative investigation of two signal processing approaches for dairy cattle behavior recognition using a low-power piezoelectric sensing system integrated with artificial intelligence techniques. The primary objective was to evaluate the effectiveness of conventional time-domain feature extraction and Discrete Wavelet Transform (DWT)-based feature extraction for identifying feeding and rumination behaviors while considering both classification accuracy and computational efficiency. The proposed framework combines wearable sensing, wireless data acquisition, signal preprocessing, deep learning, and Internet of Things (IoT) communication into a unified monitoring platform suitable for precision livestock farming.
Materials and Methods
Data acquisition was performed at the dairy farm of the University of Tabriz using a piezoelectric sensor mounted on the animal's halter to capture jaw movement vibrations during different activities. An ESP32 microcontroller was employed for signal acquisition and Bluetooth communication with a mobile application, enabling wireless data collection and storage. The recorded datasets were transferred to a cloud storage platform for subsequent processing in Python using the Google Colab environment. Signal preprocessing included digital noise filtering, Min–Max normalization, and segmentation into fixed-length windows containing 20–30 samples. Because of the imbalance between behavioral classes, particularly the limited number of feeding samples, the Synthetic Minority Over-sampling Technique (SMOTE) was applied to generate balanced training data.
 
Results and Discussion
Two independent feature extraction strategies were investigated. In the first approach, statistical time-domain descriptors, including the mean, standard deviation, minimum, and maximum values, were extracted from each signal segment. In the second approach, Discrete Wavelet Transform (DWT) was employed to obtain time-frequency representations capable of capturing transient characteristics of jaw movements. Both feature sets were subsequently used to train identical one-dimensional Convolutional Neural Network (1D-CNN) models implemented in TensorFlow/Keras. The network architecture consisted of successive convolutional, batch normalization, activation, pooling, dropout, and fully connected layers. Model optimization was performed using the Adam optimizer with categorical cross-entropy loss, while Early Stopping and adaptive learning-rate reduction were incorporated to improve convergence and prevent overfitting. Model performance was evaluated using validation accuracy, precision, recall, F1-score, confusion matrices, and learning curves.
The experimental results demonstrated clear differences between the two signal processing strategies. The time-domain approach achieved the highest overall performance, reaching a validation accuracy of 78.86%, while requiring only 21.68 minutes for model training and approximately 0.17 million trainable parameters. In contrast, the DWT-based approach achieved a validation accuracy of approximately 76%, required 23.44 minutes of training time, and increased the model complexity to approximately 0.19 million parameters. These findings indicate that eliminating wavelet transformation significantly reduces computational complexity while maintaining superior classification performance, making the proposed approach particularly suitable for resource-constrained intelligent monitoring systems.
A detailed analysis of individual behavioral classes revealed different strengths for the two approaches. For the Feeding class, the DWT-based method achieved a slightly higher F1-score (0.7627) than the time-domain approach (0.752), suggesting that time-frequency decomposition can better represent the transient and irregular characteristics of feeding behavior. Conversely, the time-domain method produced superior performance for Rumination, achieving an F1-score of approximately 0.9903, compared with 0.9888 obtained by the DWT-based model. Since rumination exhibits highly repetitive and periodic jaw movements, its essential characteristics can be effectively captured using simple statistical features without requiring computationally expensive spectral analysis.
The comparative evaluation indicates that the selection of signal processing techniques should be guided by the intended operational objectives of intelligent livestock monitoring systems. For large-scale dairy farms where computational resources, energy consumption, and implementation costs are important considerations, the conventional time-domain approach provides an excellent balance between classification accuracy, processing speed, and model simplicity. In contrast, DWT-based analysis may be advantageous in applications requiring enhanced sensitivity for detecting feeding behavior, despite its higher computational cost.
Conclusion
Overall, this study demonstrates that accurate behavioral monitoring of dairy cattle can be achieved using a low-cost piezoelectric sensing platform combined with deep learning techniques. The proposed framework offers a practical solution for IoT-enabled precision livestock farming by integrating wearable sensing, wireless communication, intelligent signal processing, and automated behavioral classification. The results further suggest that computationally efficient time-domain feature extraction represents the most suitable strategy for real-time deployment in practical livestock monitoring systems, while wavelet-based analysis remains a promising complementary technique for applications requiring more detailed characterization of complex behavioral patterns. These findings contribute to the development of intelligent animal health monitoring systems capable of supporting sustainable dairy farming through continuous, automated, and data-driven behavioral assessment.

کلیدواژه‌ها [English]

  • Smart Farming
  • livestock Monitoring
  • Discrete Wavelet Transform
  • Deep Learning
  • Internet of Things (IoT)
Alvarenga, I., Borges, L., Palkovi£, , J., Rodina, , V., & Oddy, a. (2016). Using a three-axis accelerometer to identify and classify sheep behaviour at pasture. Appl. Animal Behaviour Sci, 91–99. https://doi.org/10.1016/j.applanim.2016.05.026
Beauchemin, K. (2018). Invited review: current perspectives on eating and rumination activity in dairy cows. J. Dairy Sci, 101 (6), 4762–4784. https://doi.org/10.3168/jds.2017-13706
Benaissa Said, T. F. (2019). Classification of ingestive-related cow behaviours using RumiWatch halter and neck-mounted accelerometers. Appl Anim Behav Sci, 211:9–16. https://doi.org/10.1016/j.applanim.2018.12.003
Bikker, J., van Laar, H., Rump, P., Doorenbos, J., van Meurs, K., Griffioen, G., & Dijkstra, J. (2014). Technical note: evaluation of an ear-attached movement sensor to record cow feeding behavior and activity. J. Dairy Sci, 97, 2974–2979. http://dx.doi.org/10.3168/jds.2013-7560
Chang, A. Z., Fogarty, E., Moraes, L., & García-Guerra, A. (2022). Detection of rumination in cattle using an accelerometer ear-tag: A comparison of analytical methods and individual animal and generic models. Comput. Electron Agric, 192, 106595. https://doi.org/10.1016/j.compag.2021.106595
Giovanettia, V., Decandiaa, M., & Molle, G. (2017). Automatic classification system for grazing, ruminating and resting behaviour of dairy sheep using a tri-axial accelerometer. Livestock Sci, 196:, 42–8. https://doi.org/10.1016/j.livsci.2016.12.011
Kappes, R., Knob, D., & Scheid, A. (2021). Evaluation of an electronic system for monitoring dairy cow rumination in a grazing based system . Trop Anim Health Prod, 53, 379. Retrieved from https://doi.org/10.1007/s11250-021-02833-w
Laca, E., & WallisDeVries, M. (2000). Acoustic measurement of intake and grazing behaviour of cattle. Grass Forage Sci, Vol, 55(2), 97–104. https://doi.org/10.1046/j.1365-2494.2000.00203.x
Mei, L., Wu, Y., Li, G., Liu, M., Hu, R., Zou, H., Peng, Y. (2023). Classification of cow behavior patterns using inertial measurement units and a fully convolutional network model. J. Dairy Sci, Vol, 106, 1351–1359. Retrieved from https://doi.org/10.3168/jds.2022-22350
Nydegger, F., nger A, M., & Frey, H. (2012). Research activities using the ART-MSR method of automatic recording and interpretation of rumination and feeding behavior. Plant Cell Tissue Organ Cult, 46(3):, 251–6.
Penning, P. (1983). A technique to record automatically some aspects of grazing and ruminating behaviour in sheep. Grass Forage Sci., Vol 38, 89–96.
Pereira, G., Heins , B., & Endres, M. (2017). Technical note: Validation of an ear-tag accelerometer sensor to determine rumination, eating, and activity behaviors of grazing dairy cattle. J Dairy Sci, 101(3):, 2492–5. https://doi.org/10.3168/jds.2016-12534
Rayas-Amor, A., Morales-Almara ´z , E., Licona-Vela ´zquez, G., Vieyra-Alberto, R., & Lama, M. (2017). Triaxial accelerometers for recording grazing and ruminating time in dairy cows: An alternative to visual observations. J Veter Behav Clin Appl Res, 20, 102–8. https://doi.org/10.1016/j.jveb.2017.04.003
Reiter, S., Sattlecker, G., Lidauer, L., Kickinger, F., Ohlschuster, M., Auer, W., Iwersen, M. (2018). Evaluation of an ear-tag-based accelerometer for monitoring rumination in dairy cows. J. Dairy Sci., 101 (4),, 3398–3411. Retrieved from https://doi.org/10.3168/jds.2017-12686
Rutter, S., Champion, R., & Penning, P. (1997). An automatic system to record foraging behaviour in free-ranging ruminants. Appl. Anim. Behav. Sci, Vol, 54, 185–195. https://doi.org/10.1016/S0168-1591(96)01191-4
Shen, W., Cheng, F., Zhang, Y., Wei, X., Fu, Q., & Zhang, Y. (2020). Automatic recognition of ingestive-related behaviors of dairy cows based on triaxial acceleration. Inf. Process. Agric, 7, 427–443. Retrieved from https://doi.org/10.1016/j.inpa.2019.10.004
Soriani, N., Panella,, G., & Calamari, L. (2013). Rumination time during the summer season and its relationships with metabolic conditions and milk production. J. Dairy Sci, vol. 96 (8), 5082–5094. https://doi.org/10.3168/jds.2013-6620