S_TransNeXtM: نموذج التعرف على سلوك الخنازير بناءً على TransNeXtM وsLSTM
S_TransNeXtM: a pig behavior recognition model based on the TransNeXtM and the sLSTM

شارك:
المجلة: Frontiers in Veterinary Science، المجلد: 12
DOI: https://doi.org/10.3389/fvets.2025.1674842
PMID: https://pubmed.ncbi.nlm.nih.gov/41112158
تاريخ النشر: 2025-10-02
المؤلف: Wangli Hao وآخرون
الموضوع الرئيسي: دراسات سلوك الحيوان ورفاهيته

نظرة عامة

تقدم البحث نموذجًا جديدًا للتعرف على سلوك الخنازير، S_TransNeXtM، مصممًا لتعزيز مراقبة صحة الخنازير وظروف البيئة من خلال معالجة القيود في الطرق التقليدية بشكل فعال. يدمج النموذج كل من المعلومات المكانية والزمنية من بيانات الفيديو. في المجال المكاني، يستخدم هيكلًا مبتكرًا، TransNeXtM، الذي يتميز بآلية انتباه مجمعة مستوحاة من الطبيعة، وGLU التلافيفي، ووحدة Mamba، مما يمكّن من التقاط ميزات عالمية ومحلية أكثر تمييزًا. بالنسبة للجوانب الزمنية، يستخدم النموذج بنية ذاكرة طويلة وقصيرة المدى المعدلة (sLSTM) مع آلية بوابة أسية وحالات مستقرة، مما يسمح له بإقامة تبعيات زمنية أطول مقارنةً بالوحدات المتكررة المغلقة التقليدية (GRU) وLSTM.

تشير النتائج التجريبية إلى أن S_TransNeXtM يحقق دقة متقدمة تبلغ 94.53%، مما يمثل تحسينًا بنسبة 0.55% إلى 11.32% مقارنةً بالمعايير السابقة وانخفاضًا كبيرًا في الخسارة بنسبة 52.47%. تشير النتائج إلى أن تصميم النموذج يعزز بشكل فعال قدرات التعرف على سلوك الخنازير. ستركز الأعمال المستقبلية على تحسين هيكل النموذج لمعالجة تسلسلات زمنية أطول وتطوير آلية تعلم تكيفية لضبط المعلمات ديناميكيًا، مما يحسن من قدرة النموذج على التكيف مع سلوكيات الخنازير المتنوعة والمتغيرة في سياقات بيئية مختلفة. بالإضافة إلى ذلك، ستُبذل جهود لجمع مجموعات بيانات عالية الجودة ومتنوعة لدعم البحث بشكل أكبر.

مقدمة

تسلط مقدمة هذه الورقة البحثية الضوء على أهمية التعرف على سلوك الخنازير في تعزيز إدارة التغذية وتعزيز تربية الحيوانات المستدامة. يسمح التعرف الدقيق على سلوكيات الخنازير بفهم أفضل لاحتياجاتها الفسيولوجية والنفسية، مما يؤدي إلى تحسين بيئات التغذية والصيغ التي تعزز كفاءة الإنتاج. تعاني الطرق التقليدية، مثل المراقبة اليدوية وتقنية الاستشعار، من قيود من حيث الذاتية، التعقيد، والمخاطر المحتملة على صحة الحيوان. وبالتالي، كان هناك تحول نحو التقنيات المتقدمة، بما في ذلك رؤية الكمبيوتر والتعلم العميق، التي أظهرت وعدًا في تحسين دقة وكفاءة التعرف على السلوك.

تشير العديد من الدراسات إلى أساليب مبتكرة للتعرف على سلوك الخنازير باستخدام تقنيات التعلم العميق. على سبيل المثال، دمج Hengyi وآخرون وحدة التحول الزمني (TSM) في هياكل مختلفة من الشبكات العصبية التلافيفية، محققين دقة تعرف تبلغ 95.69% للسلوكيات العدوانية. تشمل المساهمات الملحوظة الأخرى نموذج Yue وآخرون الهجين الذي يجمع بين الشبكات العصبية التلافيفية (CNNs) والوحدات المتكررة المغلقة (GRUs) بدقة 94.8%، وإطار عمل Junjie وآخرون الذي يدمج CNNs مع ذاكرة طويلة وقصيرة المدى (LSTM)، محققًا دقة متوسطة تبلغ 96.8%. على الرغم من هذه التقدمات، لا تزال هناك تحديات في استخراج ميزات الصورة وتحليل التسلسلات الزمنية الطويلة بشكل فعال. تتناول هذه الورقة هذه التحديات من خلال تقديم نموذج S_TransNeXtM، الذي يحسن كل من المجالات المكانية والزمنية للتعرف الدقيق على السلوك، ويقترح وحدات جديدة لتعزيز قدرات استخراج الميزات والتمييز.

طرق

توضح قسم “المواد والطرق” تصميم التجربة والإجراءات المستخدمة في الدراسة. تفصل المواد المحددة المستخدمة، بما في ذلك مصادرها وطرق إعدادها، بالإضافة إلى إعداد التجربة، الذي قد يتضمن أدوات وتقنيات مختلفة ذات صلة بأهداف البحث. يصف القسم أيضًا البروتوكولات المتبعة لجمع البيانات، بما في ذلك أي تحليلات إحصائية تم إجراؤها لضمان صحة وموثوقية النتائج.

بالإضافة إلى ذلك، قد تتضمن الطرق معلومات عن أحجام العينات، الضوابط، وأي متغيرات تم التلاعب بها خلال التجارب. يضمن هذا النهج الشامل أن الدراسة يمكن تكرارها وأن النتائج قوية وصحيحة علميًا. بشكل عام، يعمل القسم كأساس حاسم لفهم كيفية إجراء البحث والأساس الذي تم بناء الاستنتاجات عليه.

مناقشة

في هذا القسم، يناقش المؤلفون مجموعة البيانات والمنهجية للتعرف على سلوكيات الخنازير باستخدام نموذج جديد، S_TransNeXtM. تتكون مجموعة البيانات من 1.5 تيرابايت من بيانات الفيديو التي تم جمعها من ستة منازل للخنازير، تلتقط ست فئات سلوكية: الشرب، الأكل، القتال، الاستكشاف، الاستلقاء، والمشي. تمثل كل فئة سلوكية حوالي 450 فيديو، مع معالجة إجمالية تبلغ 2,755 فيديو إلى مقاطع من 24 إطارًا. يدمج نموذج S_TransNeXtM المعلومات المكانية والزمنية من خلال مكونين رئيسيين: وحدة TransNeXtM، التي تستخدم آليات انتباه متقدمة ووحدة Mamba لتعزيز تمييز الميزات، ووحدة sLSTM، المصممة لالتقاط التبعيات طويلة المدى في التسلسلات الزمنية.

تظهر النتائج التجريبية أن نموذج S_TransNeXtM يتفوق على نماذج الأساس المختلفة، محققًا دقة تبلغ 94.53% وخسارة قدرها 0.3350، متجاوزًا بشكل كبير نماذج مثل ViT وSwin Transformer وConvNeXt. تسهم وحدة Mamba وآلية الانتباه المجمعة في تحسين الأداء من خلال تصفية الضوضاء وتعزيز قدرات استخراج الميزات. بالإضافة إلى ذلك، تلتقط وحدة sLSTM التبعيات الزمنية بشكل فعال، مما يعزز دقة التعرف. تشير النتائج إلى أن نموذج S_TransNeXtM فعال بشكل خاص في التعرف على سلوك الخنازير، محققًا نتائج متفوقة عبر مقاييس تقييم متعددة، على الرغم من بعض التحديات في التعرف على سلوكيات معينة بسبب التعقيدات الكامنة في البيانات.

Journal: Frontiers in Veterinary Science, Volume: 12
DOI: https://doi.org/10.3389/fvets.2025.1674842
PMID: https://pubmed.ncbi.nlm.nih.gov/41112158
Publication Date: 2025-10-02
Author(s): Wangli Hao et al.
Primary Topic: Animal Behavior and Welfare Studies

Overview

The research presents a novel pig behavior recognition model, S_TransNeXtM, designed to enhance the monitoring of pig health and environmental conditions by effectively addressing limitations in conventional methods. The model integrates both spatial and temporal information from video data. In the spatial domain, it employs an innovative backbone, TransNeXtM, which features a bio-inspired Aggregated Attention Mechanism, a Convolutional GLU, and a Mamba unit, enabling the capture of more discriminative global and local features. For the temporal aspect, the model utilizes a modified Long Short-Term Memory (sLSTM) architecture with an exponential gating mechanism and stabilized states, allowing it to establish longer temporal dependencies compared to traditional Gated Recurrent Units (GRU) and LSTM.

Experimental results indicate that S_TransNeXtM achieves a state-of-the-art accuracy of 94.53%, representing an improvement of 0.55% to 11.32% over previous benchmarks and a significant reduction in loss by 52.47%. The findings suggest that the model’s design effectively enhances pig behavior recognition capabilities. Future work will focus on optimizing the model architecture for processing longer temporal sequences and developing an adaptive learning mechanism to adjust parameters dynamically, thereby improving the model’s adaptability to diverse and changing pig behaviors in various environmental contexts. Additionally, efforts will be made to gather high-quality, diverse datasets to further support the research.

Introduction

The introduction of this research paper highlights the significance of pig behavior recognition in enhancing feeding management and promoting sustainable animal husbandry. Accurate identification of pig behaviors allows for a better understanding of their physiological and psychological needs, leading to optimized feeding environments and formulas that improve production efficiency. Traditional methods, such as manual observation and sensor technology, have limitations in terms of subjectivity, complexity, and potential risks to animal health. Consequently, there has been a shift towards advanced technologies, including computer vision and deep learning, which have shown promise in improving the accuracy and efficiency of behavior recognition.

Several studies are referenced, showcasing innovative approaches to pig behavior recognition using deep learning techniques. For instance, Hengyi et al. integrated the Temporal Shift Module (TSM) into various convolutional neural network architectures, achieving a recognition accuracy of 95.69% for aggressive behaviors. Other notable contributions include Yue et al.’s hybrid model combining Convolutional Neural Networks (CNNs) and Gated Recurrent Units (GRUs) with a 94.8% accuracy, and Junjie et al.’s framework that fuses CNNs with Long Short-Term Memory (LSTM), achieving an average accuracy of 96.8%. Despite these advancements, challenges remain in effectively extracting image features and analyzing long temporal sequences. This paper addresses these challenges by introducing the S_TransNeXtM model, which optimizes both spatial and temporal domains for precise behavior recognition, and proposes novel modules to enhance feature extraction and discrimination capabilities.

Methods

The “Materials and Methods” section outlines the experimental design and procedures employed in the study. It details the specific materials used, including their sources and preparation methods, as well as the experimental setup, which may involve various instruments and techniques relevant to the research objectives. The section also describes the protocols followed for data collection, including any statistical analyses performed to ensure the validity and reliability of the results.

Additionally, the methods may include information on sample sizes, controls, and any variables manipulated during the experiments. This comprehensive approach ensures that the study can be replicated and that the findings are robust and scientifically sound. Overall, the section serves as a critical foundation for understanding how the research was conducted and the basis for the conclusions drawn.

Discussion

In this section, the authors discuss the dataset and methodology for recognizing pig behaviors using a novel model, S_TransNeXtM. The dataset consists of 1.5 TB of video data collected from six pig houses, capturing six behavior categories: Drinking, Eating, Fighting, Exploring, Lying, and Walking. Each behavior category is represented by approximately 450 videos, with a total of 2,755 videos processed into 24-frame segments. The S_TransNeXtM model integrates spatial and temporal information through two main components: the TransNeXtM module, which employs advanced attention mechanisms and the Mamba unit to enhance feature discrimination, and the sLSTM module, designed to capture long-term dependencies in temporal sequences.

The experimental results demonstrate that the S_TransNeXtM model outperforms various baseline models, achieving an accuracy of 94.53% and a loss of 0.3350, significantly surpassing models such as ViT, Swin Transformer, and ConvNeXt. The Mamba unit and Aggregate Attention Mechanism contribute to improved performance by filtering noise and enhancing feature extraction capabilities. Additionally, the sLSTM module effectively captures temporal dependencies, further boosting recognition accuracy. The findings indicate that the S_TransNeXtM model is particularly effective for pig behavior recognition, achieving superior results across multiple evaluation metrics, despite some challenges in recognizing specific behaviors due to inherent complexities in the data.