DOI: https://doi.org/10.1038/s41598-025-90249-z
PMID: https://pubmed.ncbi.nlm.nih.gov/40346172
تاريخ النشر: 2025-05-09
المؤلف: Margarita Mulero‐Pázmány وآخرون
الموضوع الرئيسي: تطبيقات الشبكات العصبية المتقدمة
نظرة عامة
في السنوات الأخيرة، اعتمد علماء الأحياء البرية بشكل متزايد على فخاخ الكاميرا لمراقبة تجمعات الحيوانات؛ ومع ذلك، فإن التحليل اليدوي للصور الناتجة مكلف ويتطلب جهدًا كبيرًا. غالبًا ما تفشل الأساليب الحالية للتعلم العميق في معالجة صور فخاخ الكاميرا في مواجهة التحديات الواقعية، مثل عدم التوازن بين صور الحيوانات والإطارات الفارغة، وصعوبة التمييز بين الأنواع المتشابهة، وتأثير عناصر الخلفية على تحديد الأنواع. لمعالجة هذه القيود، يقدم هذا البحث إطار عمل جديد للتعلم العميق على مرحلتين.
يستخدم الإطار المقترح أولاً نموذج تعلم عميق عالمي تم تدريبه على مجموعة بيانات شاملة تشمل جميع أنواع الحيوانات. بعد ذلك، يقوم خوارزمية التجميع التراكمية بتجميع الحيوانات بناءً على التشابهات البصرية. بعد ذلك، يتم تدريب نماذج خبراء متخصصة لكل مجموعة حيوانات لتعزيز اكتشاف الميزات. يستخدم هذا النهج التعلم الانتقالي من MegaDetectorV5 (إصدار YOLOv5)، الذي تم تدريبه مسبقًا على مجموعة متنوعة من أنواع الحيوانات والأنظمة البيئية. تم التحقق من فعالية هذه السلسلة ذات المرحلتين باستخدام مجموعة بيانات تضم 1.3 مليون صورة من 91 فخ كاميرا، تغطي 24 نوعًا من الثدييات، مع مجموعة اختبار تتكون من 120,000 صورة. حقق الإطار نتيجة F1 رائعة بنسبة 96.2% في التصنيف النهائي باستخدام نماذج الخبراء، مما يدل على دقة وفعالية متفوقتين في الكشف الآلي عن الحياة البرية مقارنة بالأساليب الحالية للتعلم العميق.
مقدمة
تسلط مقدمة ورقة البحث الضوء على الأهمية المتزايدة لأدوات الذكاء الاصطناعي (AI)، وخاصة خوارزميات الكشف عن الكائنات المعتمدة على التعلم العميق، في أتمتة الكشف عن الحيوانات وتحديدها في الصور وإطارات الفيديو. تظهر هذه الخوارزميات دقة عالية في تحديد مواقع الكائنات حتى في الخلفيات المعقدة أو عندما تكون مغطاة جزئيًا، مما يقلل من الحاجة إلى التوصيف اليدوي. تصنف الورقة نماذج الكشف عن الكائنات إلى كاشفات من مرحلة واحدة وكاشفات من مرحلتين، حيث تكون نماذج المرحلة الواحدة أسرع وأكثر ملاءمة للتطبيقات في الوقت الحقيقي، مثل معالجة مجموعات البيانات الكبيرة من فخاخ الكاميرا.
يقترح المؤلفون نظام خبراء متعدد المستويات يعزز دقة نموذج الكشف العالمي من خلال تحسين توقعاته من خلال نماذج خبراء متخصصة. يعالج هذا النظام بشكل فعال التحديات مثل التصنيف الخاطئ للأنواع المتشابهة والكشف عن الحيوانات في ظروف الرؤية المنخفضة. على سبيل المثال، يمكن لنموذج الخبراء تحديد الأرنب الذي تم تصنيفه بشكل خاطئ على أنه أرنب بري بواسطة النموذج العالمي، ويمكنه الكشف عن الحيوانات المخفية التي يفشل النموذج العالمي في التعرف عليها. تناقش الورقة أيضًا قيود الأساليب السابقة، بما في ذلك القضايا المتعلقة بعدم توازن البيانات وصعوبة التمييز بين الأنواع ذات الصلة الوثيقة، مما يبرز الحاجة إلى تحسين التقنيات في مراقبة الحياة البرية من خلال فخاخ الكاميرا.
الطرق
يقدم البحث سير عمل للتعلم العميق على مرحلتين مصمم لتحسين الكشف عن الحيوانات في صور فخاخ الكاميرا، مع معالجة التحديات المذكورة في الأدبيات الحالية. تعتمد المنهجية على استراتيجية قائمة على التجميع مستوحاة من علم الأحياء الميداني، حيث يقوم نموذج عام بتصنيف الصور في البداية إلى فئات أوسع قبل توجيهها إلى نماذج خبراء متخصصة لتحديد أكثر دقة. تعزز هذه الاستراتيجية القائمة على التقسيم والث conquering ثقة التصنيف وتتفوق على مصنف واحد من 24 فئة.
في المرحلة الأولى، يصنف نموذج عالمي الصور إلى واحدة من أربع مجموعات، كل منها مرتبط بدرجة ثقة. تتضمن المرحلة الثانية نموذج خبراء يركز على مجموعة أضيق من الفئات، مما يحسن الدقة والتعميم من خلال الاستفادة من الميزات المميزة لكل مجموعة. أدت هذه الاستراتيجية المبتكرة إلى زيادة دقة التصنيف من 92% إلى 96.2% على مجموعة اختبار تتكون من أكثر من 120,000 صورة، مما يخفف بشكل فعال من القضايا الشائعة مثل تصنيف الصور الفارغة بشكل خاطئ والخلط بين الأنواع المتشابهة.
النتائج
في هذا القسم، يتم تقديم نتائج سلسلة من التجارب للتحقق من المنهجية المقترحة باستخدام مجموعة بيانات اختبار خارج العينة تتكون من أكثر من 120,000 صورة، تم جمعها من سياقات لم يتم مواجهتها أثناء التدريب. نجح النموذج العالمي في تصنيف هذه الصور إلى أربع مجموعات متميزة، محققًا درجة F مذهلة بنسبة 97%. يُعزى هذا الأداء العالي إلى قدرة النموذج على التمييز بفعالية بين المجموعات الحيوانية الرئيسية بناءً على خصائصها الشكلية المميزة.
بعد ذلك، تم تحسين القرارات من النموذج العالمي من خلال نماذج الخبراء، مما أدى إلى تحقيق درجة F نهائية بنسبة 96.2%. تسلط الدراسة الضوء على مزايا سلسلة المرحلتين مقارنة بالنهج من مرحلة واحدة، كما يتضح من المقاييس المقارنة المقدمة في الجدول 3. تظهر المنهجية ذات المرحلتين، التي تستخدم نماذج متخصصة لمجموعات الحيوانات ذات الميزات المتشابهة، تحسينات كبيرة في الدقة، مما يعالج تعقيدات الكشف عن الحيوانات في السيناريوهات الواقعية. يمكن العثور على مزيد من التفاصيل حول تقييم سلسلة المرحلتين في الملحق ب.
المناقشة
في هذه الدراسة، نقدم سير عمل جديد للذكاء الاصطناعي للكشف عن الكائنات في صور فخاخ الكاميرا، باستخدام سلسلة مرحلتين تجمع بين نموذج عام مع نماذج خبراء متخصصة لمجموعات حيوانية متميزة. تتكون مجموعة البيانات، التي تضم أكثر من 1.3 مليون صورة من حدائق دوñانا الوطنية وحدائق سييرا دي لاس نيفيس، من 24 نوعًا وتمت معالجتها باستخدام MegaDetectorV5، مما يسرع بشكل كبير من عملية التوصيف. لم تعزز هذه الطريقة شبه الآلية الكفاءة فحسب، بل عالجت أيضًا التحديات المتعلقة بعدم توازن الفئات والتصنيف الخاطئ بين الأنواع المتشابهة. من خلال تجميع الحيوانات بناءً على التشابهات الشكلية، قمنا بتطوير نماذج خبراء حسنت دقة الكشف، لا سيما بالنسبة للأنواع الأقل شيوعًا، محققة زيادات ملحوظة في درجات F للأنواع مثل الوشق الإيبيري والغزال.
تشير النتائج إلى أن سلسلة المرحلتين لدينا تخفف بشكل فعال من قيود النماذج متعددة الفئات التقليدية، التي غالبًا ما تواجه صعوبات في تحديد الأنواع بسبب مجموعات البيانات غير المتوازنة والتشابهات بين الأنواع. يعمل النموذج العالمي كتصنيف أولي، موجهًا الصور إلى نماذج الخبراء المناسبة التي تم ضبطها بدقة لمجموعات معينة، مما يقلل من الإيجابيات الخاطئة ويعزز الدقة. لا يحسن هذا النهج المبتكر أداء التصنيف في الظروف الصعبة، مثل الإضاءة المنخفضة أو الرؤية الجزئية، ولكنه يحمل أيضًا وعدًا لدراسات بيئية أوسع، مما يسهل الفرز التلقائي لكميات كبيرة من صور فخاخ الكاميرا عبر مجموعات تصنيفية متنوعة. بشكل عام، تؤكد نتائجنا على إمكانيات هذه المنهجية في تعزيز جهود مراقبة الحياة البرية والحفاظ عليها.
القيود
ت stem القيود المفروضة على المنهجية المقدمة بشكل أساسي من اعتمادها على الصور الموصوفة يدويًا لتدريب الخوارزميات، مما يقدم إمكانية حدوث خطأ بشري في التصنيف. لتخفيف هذا الخطر، تؤكد الدراسة على ضرورة استخدام مراقبين خبراء ومراجعين متعددين لضمان تضمين الصور المصنفة بثقة فقط في مجموعة بيانات التدريب. يمكن أن تتضمن التحسينات المستقبلية تطبيق خوارزميات تجميع متقدمة تعتمد على الذكاء الاصطناعي، مما سيمكن من عملية تصنيف آلية بالكامل قابلة للتكيف مع تركيبات الأنواع المختلفة.
يمكن تعزيز استراتيجية التجميع الحالية، التي تحددها علماء الأحياء الخبراء، من خلال هذه الأساليب المدفوعة بالذكاء الاصطناعي، مما يسمح بأساليب أكثر ديناميكية وقابلية للتوسع في تصنيف الأنواع. تتناول البحث أيضًا الجوانب التقنية لنماذج التعلم العميق المستخدمة، بما في ذلك استخدام الانحدار العشوائي (SGD) للتحسين، وحجم دفعة يبلغ 128، ونظام تدريب منهجي على مدى 300 دورة. ساهم تنفيذ نقاط تفتيش النموذج وتتبع الأداء بشكل أكبر في قوة عملية اختيار النموذج، مما يضمن تحديد النموذج الأكثر دقة للتحليل اللاحق.
DOI: https://doi.org/10.1038/s41598-025-90249-z
PMID: https://pubmed.ncbi.nlm.nih.gov/40346172
Publication Date: 2025-05-09
Author(s): Margarita Mulero‐Pázmány et al.
Primary Topic: Advanced Neural Network Applications
Overview
In recent years, wildlife biologists have increasingly adopted camera traps for monitoring animal populations; however, the manual analysis of the resulting images is both costly and labor-intensive. Existing deep learning approaches for processing camera trap images often fall short in addressing real-world challenges, such as the imbalance between images of animals and empty frames, the difficulty in distinguishing between similar species, and the influence of background elements on species identification. To address these limitations, this study introduces a novel two-stage deep learning framework.
The proposed framework first employs a global deep learning model trained on a comprehensive dataset encompassing all animal species. Following this, an agglomerative clustering algorithm groups animals based on visual similarities. Subsequently, specialized expert models are trained for each animal group to enhance feature detection. This approach utilizes Transfer Learning from the MegaDetectorV5 (YOLOv5 version), which is pre-trained on a diverse array of animal species and ecosystems. The effectiveness of this two-stage pipeline was validated using a dataset of 1.3 million images from 91 camera traps, covering 24 mammal species, with a testing subset of 120,000 images. The framework achieved an impressive F1-Score of 96.2% in final classification using expert models, demonstrating superior precision and effectiveness in automated wildlife detection compared to existing deep learning methodologies.
Introduction
The introduction of the research paper highlights the growing significance of Artificial Intelligence (AI) tools, particularly deep learning-based object detection algorithms, in automating the detection and identification of animals in images and video frames. These algorithms demonstrate high accuracy in locating objects even in complex backgrounds or when partially obscured, thereby reducing the need for manual annotation. The paper categorizes object detection models into one-stage and two-stage detectors, with one-stage models being faster and more suitable for real-time applications, such as processing large datasets from camera traps.
The authors propose a multi-tier expert system that enhances the accuracy of a global detection model by refining its predictions through specialized expert models. This system effectively addresses challenges such as misclassification of similar species and detection of animals in low-visibility conditions. For instance, the expert model can correctly identify a rabbit misclassified as a hare by the global model, and it can detect hidden animals that the global model fails to recognize. The paper also discusses the limitations of previous methods, including issues related to data imbalance and the difficulty of distinguishing between closely related species, underscoring the need for improved techniques in wildlife monitoring through camera traps.
Methods
The research presents a two-stage deep learning workflow designed to improve animal detection in camera trap images, addressing challenges noted in existing literature. The methodology employs a Grouping-based strategy inspired by field biology, where a generalist model initially classifies images into broader categories before directing them to specialized expert models for more precise identification. This divide-and-conquer approach enhances classification confidence and outperforms a single 24-class classifier.
In the first stage, a global model classifies images into one of four groups, each associated with a confidence score. The second stage involves an expert model that focuses on a narrower set of classes, thereby improving precision and generalization by leveraging the distinct features of each group. This innovative strategy resulted in an increase in classification accuracy from 92% to 96.2% on a test dataset comprising over 120,000 images, effectively mitigating common issues such as misclassifying empty images and confusing similar species.
Results
In this section, the results of a series of experiments are presented to validate the proposed methodology using an out-of-sample test dataset comprising over 120,000 images, which were collected from contexts not encountered during training. The global model successfully classified these images into four distinct groups, achieving a remarkable F-score of 97%. This high performance is attributed to the model’s ability to effectively differentiate between the major animal groups based on their distinct morphological characteristics.
Subsequently, the decisions from the global model were refined through expert models, resulting in a final F-score of 96.2%. The study highlights the advantages of a two-stage pipeline over a single-stage approach, as evidenced by comparative metrics presented in Table 3. The two-stage methodology, which employs specialized models for groups of animals with similar features, demonstrates significant improvements in accuracy, thereby addressing the complexities of animal detection in real-world scenarios. Further details on the evaluation of the two-stage pipeline can be found in Appendix B.
Discussion
In this study, we present a novel AI workflow for object detection in camera trap images, utilizing a two-stage pipeline that combines a general model with specialized expert models for distinct animal groups. The dataset, comprising over 1.3 million images from Doñana and Sierra de las Nieves National Parks, includes 24 species and was annotated using MegaDetectorV5, significantly accelerating the labeling process. This semi-automatic approach not only enhanced efficiency but also addressed challenges related to class imbalance and misclassification among similar species. By clustering animals based on morphological similarities, we developed expert models that improved detection accuracy, particularly for less common species, achieving notable increases in F-scores for species such as the Iberian lynx and fallow deer.
The results indicate that our two-stage pipeline effectively mitigates the limitations of traditional multi-class models, which often struggle with species identification due to imbalanced datasets and similarities among species. The global model serves as an initial classifier, directing images to appropriate expert models that are fine-tuned for specific groups, thereby reducing false negatives and enhancing precision. This innovative approach not only improves classification performance in challenging conditions, such as low light or partial visibility, but also holds promise for broader ecological studies, facilitating the automatic sorting of large volumes of camera trap images across diverse taxonomic groups. Overall, our findings underscore the potential of this methodology to advance wildlife monitoring and conservation efforts.
Limitations
The limitations of the presented methodology primarily stem from its reliance on manually labeled images for training algorithms, which introduces the potential for human error in classification. To mitigate this risk, the study underscores the necessity of utilizing expert observers and multiple reviewers to ensure that only confidently classified images are included in the training dataset. Future improvements could involve the application of advanced clustering algorithms based on Artificial Intelligence, which would enable a fully automated classification process adaptable to various species compositions.
The current grouping strategy, determined by expert biologists, could be enhanced by these AI-driven methods, allowing for more dynamic and scalable approaches in species classification. The research also details the technical aspects of the deep learning models employed, including the use of Stochastic Gradient Descent (SGD) for optimization, a batch size of 128, and a systematic training regimen over 300 epochs. The implementation of model checkpoints and performance tracking further contributed to the robustness of the model selection process, ensuring that the most accurate model was identified for subsequent analysis.
