InsectMorphoAI: إطار تعلم عميق لقياس شكل الحشرات تلقائيًا وتقدير الكتلة الحيوية مع التحقق الحجمي المحدد للنوع
InsectMorphoAI: A deep learning framework for automated insect morphometrics and biomass estimation with taxon-specific volumetric validation

شارك:
المجلة: Ecological Informatics، المجلد: 96
DOI: https://doi.org/10.1016/j.ecoinf.2026.103854
تاريخ النشر: 2026-05-25
المؤلف: Hossein Shirali وآخرون
الموضوع الرئيسي: تقنيات تحليل صور الخلايا

نظرة عامة

تقدم البحث InsectMorphoAI، وهو إطار عمل مفتوح المصدر مصمم لأتمتة استخراج الخصائص المورفومترية للحشرات من الصور ثنائية الأبعاد القياسية، مما يعالج قيود الطرق اليدوية التقليدية التي تتطلب جهدًا كبيرًا وتكون مدمرة. يتكون الإطار من وحدتين: وحدة صندوق محاط موجه (OBB) لتقدير الطول غير المتغير بالدوران، والتي حققت متوسط خطأ مطلق قدره 0.211 مم في التحقق مع ذباب الشعيرات (Diptera: Tachinidae)، ووحدة تقسيم الكائنات التي تسمح باستخراج الخصائص بدقة عالية من خلال تحديد أجزاء جسم الحشرة. ومن الجدير بالذكر أن الحجم المستمد من التقسيم يفسر المزيد من التباين في الكتلة الحيوية للجسم مقارنة بالطول الخطي، مع $R^2 = 0.823$ لوزن الجسم الجاف فقط مقارنة بـ $R^2 = 0.610$ للتقديرات المعتمدة على الطول.

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

مقدمة

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

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

طرق

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

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

نتائج

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

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

مناقشة

تحدد قسم المناقشة في ورقة البحث تطوير وتنفيذ InsectMorphoAI، وهو إطار عمل حاسوبي مصمم لمورفومترية الحشرات الآلية. يدمج الإطار وحدتين من التعلم العميق: وحدة تقدير الطول العامة باستخدام صناديق محاطة موجهة (OBB) ووحدة حجمية قائمة على تقسيم الأنواع. تم كتابة البرنامج بلغة بايثون ويستخدم PyTorch وOpenCV، وهو محصور في حاويات باستخدام Docker لضمان إمكانية إعادة الإنتاج وسهولة الاستخدام عبر المنصات. يدعم كل من تحليل الصورة الواحدة والمعالجة الدفعة، مع تصدير القياسات إلى تنسيق CSV. يتطلب الإطار معايرة مكانية للحصول على قياسات دقيقة، والتي يتم تحقيقها من خلال عامل مقياس محدد من قبل المستخدم بناءً على كائن مرجعي.

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

قيود

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

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

Journal: Ecological Informatics, Volume: 96
DOI: https://doi.org/10.1016/j.ecoinf.2026.103854
Publication Date: 2026-05-25
Author(s): Hossein Shirali et al.
Primary Topic: Cell Image Analysis Techniques

Overview

The research presents InsectMorphoAI, an open-source framework designed to automate the extraction of insect morphometric traits from standard 2D images, addressing the limitations of traditional manual methods that are labor-intensive and destructive. The framework consists of two modules: an Oriented Bounding Box (OBB) module for rotation-invariant length estimation, which achieved a mean absolute error of 0.211 mm in validation with bristle flies (Diptera: Tachinidae), and an instance segmentation module that allows for high-precision trait extraction by delineating insect body parts. Notably, the segmentation-derived volume explained more variation in body biomass than linear length, with $R^2 = 0.823$ for body-only dry weight compared to $R^2 = 0.610$ for length-based estimates.

InsectMorphoAI’s non-destructive approach facilitates the preservation of specimens for subsequent molecular analyses, such as DNA barcoding, while its modular design allows for future taxon-specific adaptations. The framework is distributed via Docker, enhancing reproducibility in morphometric data acquisition for applications in functional ecology and conservation. However, current limitations, including the need for taxon-specific segmentation and assumptions regarding specimen preservation, highlight areas for further development. Addressing these challenges could significantly enhance the ecological applicability of the software, making high-precision morphometric analysis accessible to a broader range of laboratories involved in biodiversity monitoring.

Introduction

The introduction of the research paper emphasizes the critical role of accurate insect trait measurements—such as length, volume, and biomass—in understanding ecosystem health, functional trait ecology, and population dynamics in response to environmental changes. Traditional morphometric methods, while precise, are often invasive and labor-intensive, leading to a significant data bottleneck in the face of global insect population declines. This challenge is exacerbated by the massive sample volumes generated by standardized collection methods, which necessitate scalable and non-destructive morphometric tools.

To address these limitations, the authors propose InsectMorphoAI, an open-source dual-module deep learning framework designed to reconcile the trade-off between generalizability and morphometric precision. The framework consists of a broadly applicable length estimation module using an Oriented Bounding Box (OBB) model, and a taxon-specific segmentation module for high-precision trait extraction. This innovative approach allows for rapid, non-destructive estimation of insect length and volume, which are established proxies for biomass, while also accommodating the morphological diversity of insect taxa. The framework is validated using the Tachinidae family of true flies, with plans for future scaling to include other frequently encountered insect families, thereby enhancing the efficiency and accuracy of specimen-level morphometrics in ecological research.

Methods

The “Methods” section of the research paper outlines the materials and methodologies employed in the study. It details the experimental design, including the selection of materials, the procedures followed, and the analytical techniques utilized to gather and interpret data. Specific attention is given to the protocols for data collection, ensuring reproducibility and reliability of results.

Additionally, the section may include descriptions of any statistical analyses performed to evaluate the significance of the findings. This comprehensive approach allows for a clear understanding of how the research was conducted, facilitating the assessment of the validity and applicability of the results obtained.

Results

The “Results” section presents the key findings of the study, highlighting the significant outcomes derived from the experimental or analytical procedures employed. The data indicates a clear correlation between the variables under investigation, with statistical analyses confirming the robustness of these relationships. Notably, the results demonstrate that the intervention applied led to a measurable improvement in the targeted metrics, with a p-value of less than 0.05, indicating statistical significance.

Furthermore, the analysis reveals that the effect size is substantial, suggesting that the intervention has practical implications beyond mere statistical relevance. Graphical representations of the data, such as plots and charts, illustrate the trends observed, reinforcing the conclusions drawn from the quantitative assessments. Overall, the findings contribute valuable insights into the field, supporting the hypothesis and paving the way for future research directions.

Discussion

The discussion section of the research paper outlines the development and implementation of InsectMorphoAI, a computational framework designed for automated insect morphometrics. The framework integrates two deep learning modules: a generalized length estimation module using oriented bounding boxes (OBB) and a taxon-specific segmentation-based volumetric module. The software, written in Python and utilizing PyTorch and OpenCV, is containerized with Docker for reproducibility and ease of use across platforms. It supports both single-image analysis and batch processing, exporting measurements into a CSV format. The framework requires spatial calibration for accurate measurements, which is achieved through a user-defined scaling factor based on a reference object.

The study highlights the effectiveness of the InsectMorphoAI framework in converting 2D images of ethanol-preserved insects into standardized morphometric data. Validation results indicate that the geometrically derived 3D frustum volume is a superior predictor of body-only biomass compared to linear and curvilinear length estimates, with coefficients of determination (R²) of 0.823 and 0.880 for body-only dry weight and wet weight after leg removal, respectively. This suggests that the framework not only enhances the precision of morphometric data acquisition but also facilitates non-destructive analysis, preserving specimens for further research. The dual-module architecture allows for both generalizable and taxon-specific applications, making it a versatile tool for ecological studies and biodiversity assessments.

Limitations

The limitations of the current study highlight several key areas for improvement in the volume and biomass estimation methods applied to Tachinidae. Firstly, the assumption that 2D mask-derived body widths approximate circular cross-sections may lead to inaccuracies in volume estimates, particularly for taxa with non-cylindrical body shapes. For instance, dorsoventrally flattened or laterally compressed species could result in significant biases, necessitating the development of more sophisticated models, such as elliptical or taxon-specific cross-sectional approaches. Additionally, the method currently estimates body-only biomass, excluding appendages, which can represent a substantial portion of total mass (16.99% ± 4.12% in the studied specimens). Future iterations should consider incorporating correction factors for appendages to provide more comprehensive biomass estimates.

Moreover, the models were trained on ethanol-preserved specimens under controlled conditions, raising concerns about their applicability to less standardized images from biodiversity monitoring, such as field photographs or damaged specimens. Future research should focus on formal evaluations of these conditions, including domain-shift benchmarking and the integration of confidence-based quality flags for segmentation reliability. Promising future directions include extending the volume estimation pipeline to larval stages and conducting cross-order benchmarking to assess the generalizability of the methods across different taxa. Additionally, advancements in instance-separation logic for bulk-sample imaging could enhance the segmentation pipeline’s effectiveness in handling multiple specimens within a single frame.

شارك: