DOI: https://doi.org/10.1016/j.atech.2025.100770
تاريخ النشر: 2025-01-08
المؤلف: Voncarlos M. Araújo وآخرون
الموضوع الرئيسي: الزراعة الذكية والذكاء الاصطناعي
نظرة عامة
تتناول هذه الورقة البحثية القضية الحرجة لرفاهية الحيوانات في تربية الماشية، مع التركيز بشكل خاص على اكتشاف الأبقار باستخدام تقنيات الذكاء الاصطناعي المتقدمة. تسلط الدراسة الضوء على قيود خوارزميات اكتشاف الأبقار الحالية في بيئات الزراعة الواقعية، والتي غالبًا ما تتعقد بعوامل مثل الإضاءة المتغيرة، والاعتراضات، والتداخل الخلفي. للتغلب على هذه التحديات، يقترح المؤلفون نموذج اكتشاف جديد يدمج YOLOv8 مع وحدة اهتمام الكتلة التلافيفية (CBAM). تظهر نتائجهم أن نموذج YOLOv8-CBAM يتفوق على النماذج الأساسية، بما في ذلك Mask R-CNN و YOLOv5، محققًا تحسينًا في متوسط الدقة (mAP) بنسبة 2.3% ومعدل دقة يبلغ 95.2% عبر بيئات متنوعة.
في الختام، تؤكد الدراسة على فعالية نموذج YOLOv8-CBAM في إدارة سيناريوهات الاكتشاف المعقدة، مما يظهر قوته ضد الأبقار المتداخلة والخلفيات المتغيرة. تعزز بنية النموذج، المدعومة بآليات الانتباه، دقة الاكتشاف بشكل كبير، خاصة في الظروف الصعبة. بينما تشير النتائج إلى أن الاكتشاف المدفوع بالذكاء الاصطناعي يمكن أن يقلل من الحاجة إلى الإشراف البشري، يحذر المؤلفون من الاعتماد فقط على بيانات الصور، مقترحين أن تشمل الأبحاث المستقبلية مصادر بيانات إضافية مثل نظام تحديد المواقع العالمي (GPS) والتصوير الحراري لتعزيز قدرات الاكتشاف وكفاءته بشكل أكبر. بشكل عام، تساهم هذه الدراسة في تقدم الزراعة الذكية من خلال اقتراح حل موثوق لمراقبة رفاهية الأبقار في سياقات زراعية متنوعة.
مقدمة
تؤكد مقدمة هذه الورقة البحثية على الدور الحاسم للحيوانات في النظم البيئية والاعتراف المتزايد برفاهية الحيوانات كالتزام أخلاقي وأخلاقي. تسلط الضوء على أهمية ضمان رفاهية فئات الحيوانات المختلفة، وخاصة الماشية، بسبب تأثيرها على الممارسات المستدامة وتفضيلات المستهلكين. تناقش الورقة التقدم في الذكاء الاصطناعي (AI) وإمكاناته في مراقبة الماشية، مع التركيز بشكل خاص على رفاهية الأبقار. يتم تقديم دمج تقنيات الذكاء الاصطناعي، مثل الرؤية الحاسوبية وتعلم الآلة، كوسيلة لتعزيز مراقبة وإدارة صحة الأبقار، وهو أمر ضروري لكل من الاعتبارات الأخلاقية وإنتاجية الزراعة.
تتناول الدراسة بشكل خاص التحديات التي تواجه اكتشاف الأبقار باستخدام الخوارزميات الحالية، خاصة في البيئات المعقدة التي تتميز بتغيرات في ظروف الإضاءة، والاعتراضات، وتعقيدات الخلفية. لمواجهة هذه القضايا، قام المؤلفون بتجميع مجموعة بيانات شاملة تتكون من حوالي 1,115 صورة تم التقاطها في إعدادات متنوعة، وقد استخدموا نماذج اكتشاف من مرحلة واحدة ومرحلتين، بما في ذلك YOLOv5 و YOLOv8 المعزز بوحدة اهتمام الكتلة التلافيفية (CBAM). تشير النتائج إلى تحسينات كبيرة في دقة الاكتشاف، حيث حقق نموذج YOLOv8-CBAM دقة تبلغ 95.2% ومتوسط دقة (mAP) يبلغ 82.6%، مما يظهر فعاليته في التطبيقات الواقعية لمراقبة الأبقار. توضح الورقة هيكلها، مفصلة الأقسام التالية التي ستتناول الأعمال ذات الصلة، والمنهجيات، والتحقق التجريبي، والنقاشات حول النهج المقترح.
الطرق
في هذا القسم، يوضح المؤلفون المنهجية لتطوير خط أنابيب لاكتشاف الأبقار الحلوب في البيئات المعقدة. تبدأ العملية بجمع الصور عبر إعدادات متنوعة، تليها زيادة البيانات لتعزيز تنوع وحجم مجموعة البيانات. ثم يتم وضع علامات على مجموعة البيانات وتقسيمها إلى مجموعات تدريب (70%)، والتحقق (15%)، والاختبار (15%). تشمل النماذج المستخدمة للاكتشاف نموذج Mask R-CNN من مرحلتين، ونموذج YOLOv5 من مرحلة واحدة، ونموذج YOLOv8-CBAM التكيفي، مع إجراء مقارنات لاحقة مع نتائج الاكتشاف السابقة.
استخدم الإعداد التجريبي مجموعة Compute Canada التي تحتوي على أربعة وحدات معالجة رسومات NVIDIA A100 SXM4، مستفيدة من حزمة Ultralytics و PyTorch 1.11.0 للتعلم العميق. تم تدريب النماذج على صور تم تغيير حجمها إلى 640 × 640 بكسل لتحسين كفاءة الذاكرة والحساب. تم تقييم طريقتين للتحسين، وهما الانحدار العشوائي (SGD) وأدم، مع التركيز على نقاط القوة والضعف الخاصة بهما فيما يتعلق بمعدلات التعلم وقدرات التعميم. تم تنفيذ معدل تعلم تكيفي، ينخفض من 0.01 إلى 0.001 أثناء التدريب. استخدم نموذج Mask R-CNN ResNet-101 كهيكل عمود فقري ورأس، بينما استخدمت نماذج YOLO CSPNet لاستخراج الميزات، مع أوزان مدربة مسبقًا من مجموعة بيانات COCO لتسريع التدريب.
النقاش
في مناقشة منهجيات اكتشاف الأبقار، تقارن الورقة بين التقنيات التقليدية—مثل تقسيم الألوان، وتحليل القوام، وتحليل ميزات الشكل—مع الأساليب الحديثة للتعلم العميق. غالبًا ما تكافح الطرق التقليدية مع الظروف البيئية المتغيرة، مما يؤدي إلى انخفاض الدقة. في المقابل، يمكن لنماذج التعلم العميق، وخاصة تلك المعتمدة على الشبكات العصبية التلافيفية (CNNs)، أن تتعلم تلقائيًا الميزات ذات الصلة من مجموعات بيانات كبيرة، مما يعزز قوتها ضد عوامل مثل تغييرات الإضاءة وضوضاء الخلفية. تصنف الورقة خوارزميات اكتشاف التعلم العميق إلى طرق من مرحلة واحدة (مثل سلسلة YOLO، SSD) وطرق من مرحلتين (مثل Mask R-CNN، Faster R-CNN)، مشيرة إلى أنه بينما تقدم نماذج المرحلتين عادةً دقة أعلى، فإنها تتطلب أوقات تدريب أطول. على سبيل المثال، حقق نموذج Faster R-CNN متوسط دقة (mAP) يبلغ 99.6% لاكتشاف الأبقار، لكن مدة تدريبه تعتبر عيبًا مقارنة بنماذج YOLO الأسرع، التي أظهرت أيضًا أداءً تنافسيًا.
تؤكد الدراسة على أهمية جمع البيانات وزيادتها، باستخدام 1,115 صورة بقرة تم التقاطها في بيئات متنوعة. تمت معالجة الصور وزيادتها لتعزيز تدريب النموذج، مع التركيز على الحفاظ على قدرات التعميم على الرغم من عدم التوازن في مجموعة البيانات. توضح الورقة عملية وضع العلامات، التي جمعت بين التقنيات اليدوية وشبه اليدوية لتحسين الكفاءة. أظهرت تقييمات نماذج الاكتشاف المختلفة، بما في ذلك YOLOv5 و YOLOv8، أن أجهزة الكشف من مرحلة واحدة تفوقت بشكل كبير على نماذج المرحلتين من حيث متوسط الدقة (mAP) ووقت الاستدلال، خاصة في السيناريوهات المعقدة. أظهر نموذج YOLOv8، المعزز بوحدة اهتمام الكتلة التلافيفية (CBAM)، تحسينات ملحوظة في دقة الاكتشاف، خاصة في البيئات الصعبة التي تحتوي على اعترضات وظروف إضاءة متغيرة. بشكل عام، تشير النتائج إلى أن هياكل YOLO، خاصة عند دمجها مع آليات الانتباه، مناسبة بشكل جيد لاكتشاف الأبقار بشكل فعال في بيئات زراعية متنوعة ومعقدة.
القيود
تسلط قسم القيود الضوء على عدة تحديات وتحسينات محتملة في الاكتشاف التلقائي للأبقار الحلوب. بينما يستخدم النموذج الحالي بيانات الصور بشكل فعال للاكتشاف، فإنه يفتقر إلى دمج المعرفة الخبيرة الإضافية ومصادر البيانات متعددة الأنماط، مثل نظام تحديد المواقع العالمي (GPS)، و RFID، والتصوير الحراري، والتي يمكن أن تعزز دقة الاكتشاف دون المساس برفاهية الحيوان. لقد فرضت قيود كاميرا السقف الداخلي (IC)، خاصة بسبب مجموعة بيانات التدريب الصغيرة، الحاجة إلى استخدام تقنيات زيادة البيانات والتعلم الانتقالي؛ ومع ذلك، لم تعالج هذه الطرق بالكامل التحديات التي تطرحها البيئات المزدحمة والمعترضة.
يمكن أن تركز التحسينات المستقبلية على تحسين بنية النموذج لتقليل المتطلبات الحاسوبية مع الحفاظ على الدقة، ربما من خلال نماذج خفيفة مثل MobileNet أو الأساليب الهجينة التي تجمع بين أطر اكتشاف مختلفة. بالإضافة إلى ذلك، يمكن أن يؤدي دمج البيانات متعددة الأنماط إلى تحسين القوة وتوفير رؤى أعمق حول سلوك الأبقار وصحتها، خاصة في مراقبة المناطق التشريحية الحرجة. بشكل عام، بينما يظهر النموذج الحالي أداءً واعدًا في سيناريوهات معينة، فإن التحسينات الإضافية ضرورية لتحسين قدرات الاكتشاف في البيئات الزراعية المعقدة.
DOI: https://doi.org/10.1016/j.atech.2025.100770
Publication Date: 2025-01-08
Author(s): Voncarlos M. Araújo et al.
Primary Topic: Smart Agriculture and AI
Overview
This research paper addresses the critical issue of animal welfare in livestock farming, particularly focusing on cow detection using advanced Artificial Intelligence (AI) technologies. The study highlights the limitations of existing cow detection algorithms in real-world farming environments, which are often complicated by factors such as variable lighting, occlusions, and background interference. To overcome these challenges, the authors propose a novel detection model that integrates YOLOv8 with the Convolutional Block Attention Module (CBAM). Their findings demonstrate that the YOLOv8-CBAM model outperforms baseline models, including Mask R-CNN and YOLOv5, achieving a mean Average Precision (mAP) improvement of 2.3% and a precision rate of 95.2% across diverse environments.
In the conclusion, the study emphasizes the effectiveness of the YOLOv8-CBAM model in managing complex detection scenarios, showcasing its robustness against overlapping cows and varying backgrounds. The model’s architecture, enhanced by attention mechanisms, significantly improves detection accuracy, particularly in challenging conditions. While the results indicate that AI-driven detection can reduce the need for human oversight, the authors caution against relying solely on image data, suggesting that future research should incorporate additional data sources such as GPS and thermal imaging to further enhance detection capabilities and efficiency. Overall, this study contributes to the advancement of smart agriculture by proposing a reliable solution for monitoring cow welfare in diverse farming contexts.
Introduction
The introduction of this research paper emphasizes the critical role of animals in ecosystems and the growing recognition of animal welfare as a moral and ethical obligation. It highlights the importance of ensuring the well-being of various animal categories, particularly livestock, due to their impact on sustainable practices and consumer preferences. The paper discusses the advancements in Artificial Intelligence (AI) and its potential applications in livestock monitoring, particularly focusing on cow welfare. The integration of AI technologies, such as computer vision and machine learning, is presented as a means to enhance the monitoring and management of cow health, which is essential for both ethical considerations and agricultural productivity.
The study specifically addresses the challenges faced in cow detection using existing algorithms, particularly in complex environments characterized by varying lighting conditions, occlusions, and background complexities. To tackle these issues, the authors have curated a comprehensive dataset of approximately 1,115 images captured in diverse settings and have employed both one-stage and two-stage detection models, including YOLOv5 and YOLOv8 enhanced with the Convolutional Block Attention Module (CBAM). The results indicate significant improvements in detection accuracy, with the YOLOv8-CBAM model achieving a precision of 95.2% and a mean Average Precision (mAP) of 82.6%, thereby demonstrating its effectiveness in real-world applications for cow monitoring. The paper outlines its structure, detailing subsequent sections that will cover related work, methodologies, experimental validation, and discussions on the proposed approach.
Methods
In this section, the authors outline the methodology for developing a pipeline to detect dairy cows in complex environments. The process begins with the collection of images across various settings, followed by data augmentation to enhance the dataset’s diversity and volume. The dataset is then annotated and divided into training (70%), validation (15%), and testing (15%) subsets. The models employed for detection include a two-stage Mask R-CNN, a one-stage YOLOv5, and an adaptive YOLOv8-CBAM, with subsequent comparisons made against previous detection results.
The experimental setup utilized a Compute Canada cluster featuring four NVIDIA A100 SXM4 GPUs, leveraging the Ultralytics package and PyTorch 1.11.0 for deep learning. The models were trained on images resized to 640 × 640 pixels to optimize memory and computational efficiency. Two optimization methods, Stochastic Gradient Descent (SGD) and Adam, were evaluated, with a focus on their respective strengths and weaknesses regarding learning rates and generalization capabilities. An adaptive learning rate was implemented, decreasing from 0.01 to 0.001 during training. The Mask R-CNN utilized ResNet-101 as both the backbone and head architecture, while YOLO models employed CSPNet for feature extraction, with pre-trained weights from the COCO dataset to expedite training.
Discussion
In the discussion of cow detection methodologies, the paper contrasts traditional techniques—such as color segmentation, texture analysis, and shape feature analysis—with modern deep learning approaches. Traditional methods often struggle with varying environmental conditions, leading to decreased accuracy. In contrast, deep learning models, particularly those based on convolutional neural networks (CNNs), can automatically learn relevant features from large datasets, enhancing their robustness against factors like lighting changes and background noise. The paper categorizes deep learning detection algorithms into one-stage (e.g., YOLO series, SSD) and two-stage methods (e.g., Mask R-CNN, Faster R-CNN), noting that while two-stage models typically offer higher accuracy, they require longer training times. For instance, Faster R-CNN achieved a mean Average Precision (mAP) of 99.6% for cow detection, but its training duration is a drawback compared to the faster YOLO models, which also demonstrated competitive performance.
The study emphasizes the importance of data collection and augmentation, utilizing 1,115 cow images captured in diverse environments. The images were processed and augmented to enhance model training, with a focus on maintaining generalization capabilities despite imbalances in the dataset. The paper details the annotation process, which combined manual and semi-manual techniques to improve efficiency. The evaluation of various detection models, including YOLOv5 and YOLOv8, revealed that one-stage detectors significantly outperformed two-stage models in terms of mAP and inference time, particularly in complex scenarios. YOLOv8, enhanced with a Convolutional Block Attention Module (CBAM), showed marked improvements in detection accuracy, especially in challenging environments with occlusions and varying lighting conditions. Overall, the findings suggest that YOLO architectures, particularly when integrated with attention mechanisms, are well-suited for effective cow detection in diverse and complex agricultural settings.
Limitations
The section on limitations highlights several challenges and potential improvements in the automatic detection of welfare dairy cows. While the current model effectively utilizes image data for detection, it lacks the integration of additional expert knowledge and multimodal data sources, such as GPS, RFID, and thermal imaging, which could enhance detection accuracy without compromising animal welfare. The limitations of the indoor ceiling (IC) camera, particularly due to a small training dataset, have necessitated the use of data augmentation and transfer learning techniques; however, these methods have not fully addressed the challenges posed by crowded and occluded environments.
Future improvements could focus on optimizing model architecture to reduce computational demands while maintaining accuracy, potentially through lightweight models like MobileNet or hybrid approaches that combine different detection frameworks. Additionally, integrating multimodal data could improve robustness and provide deeper insights into cow behavior and health, particularly in monitoring critical anatomical regions. Overall, while the current model demonstrates promising performance in specific scenarios, further enhancements are essential for improving detection capabilities in complex farming environments.
