تقييم شامل لنماذج التعلم العميق الخفيفة لتصنيف أمراض الطماطم في بيئات الحوسبة الطرفية
A comprehensive evaluation of lightweight deep learning models for tomato disease classification on edge computing environments

شارك:
المجلة: Scientific Reports، المجلد: 16، العدد: 1
DOI: https://doi.org/10.1038/s41598-026-42439-6
PMID: https://pubmed.ncbi.nlm.nih.gov/41786837
تاريخ النشر: 2026-03-05
المؤلف: Trong-Minh Hoang وآخرون
الموضوع الرئيسي: الزراعة الذكية والذكاء الاصطناعي

نظرة عامة

تناقش هذه القسم تطوير تطبيقات التعلم العميق التي تهدف إلى أتمتة الكشف المبكر والدقيق عن الأمراض في نباتات الطماطم، مشددة على التوازن الحرج بين الكفاءة الحسابية ودقة التشخيص في البيئات الزراعية المحدودة الموارد. يقترح المؤلفون إطار تقييم لسبع هياكل من الشبكات العصبية التلافيفية (CNN)، بما في ذلك ShuffleNetV2 و MobileNetV3-Small و SqueezeNet و MobilePlantViT و DenseNet121 و ResNet50 و VGG16، لتقييم إمكانياتها للتنفيذ في مثل هذه السياقات.

تظهر النتائج الرئيسية من التجارب التي أجريت على مجموعة فرعية من أمراض الطماطم من مجموعة بيانات PlantVillage أن هيكل MobilePlantViT يحقق توازنًا مثاليًا بين الكفاءة والأداء، حيث يظهر دقة تشخيص تتجاوز 99.5%. بالإضافة إلى ذلك، يقدم المؤلفون مقياس استقرار الاضطراب (PSS) لتقييم قابلية تفسير نماذج الذكاء الاصطناعي القابل للتفسير (XAI) بشكل كمي، مثل Grad-CAM و SHAP و LIME، لتحديد الخيار الأنسب للأجهزة الطرفية. علاوة على ذلك، تشير قياسات استدلال وحدة المعالجة المركزية إلى أن التصاميم الهجينة يمكن أن تستفيد بشكل فعال من الحوسبة المتوازية، مما يعزز ملاءمة MobilePlantViT للتطبيقات التي تتطلب دقة تشخيص عالية في البيئات الطرفية.

مقدمة

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

تؤكد الورقة على ضرورة وجود نماذج تعلم آلي خفيفة الوزن يمكن أن تعمل بفعالية على الأجهزة الطرفية ذات الموارد الحاسوبية المحدودة. تستعرض عدة هياكل CNN مدمجة، مثل MobileNetV3 و ShuffleNet و SqueezeNet، التي تحافظ على دقة تنافسية مع تقليل حجم النموذج والكمون. بالإضافة إلى ذلك، تناقش المقدمة ظهور الهياكل الهجينة، بما في ذلك MobileViT، التي تجمع بين CNNs والمحولات لتعزيز الأداء. ومع ذلك، غالبًا ما تتجاهل الدراسات الحالية تقييم هذه النماذج في ظل ظروف موحدة وتفشل في معالجة قابلية تفسير توقعاتها. تهدف هذه الدراسة إلى سد هذه الفجوات من خلال تقديم مقارنة شاملة للهياكل الخفيفة لتشخيص أمراض الطماطم، وتقييم قابلية تفسيرها من خلال طرق متنوعة، وتقييم جدواها للنشر على الأجهزة الطرفية. تشمل المساهمات الرئيسية مقارنة الأداء لسبع هياكل نماذج، وتقييم كمي لقابلية التفسير باستخدام مقياس استقرار الاضطراب (PSS) الجديد، وتحليل زمن استدلال وحدة المعالجة المركزية لتطبيقات الزراعة في الوقت الحقيقي.

الطرق

تم هيكلة المنهجية المقترحة لإطار تشخيص أمراض الطماطم في أربع مراحل متتابعة: (i) تحديد البيانات والمعالجة المسبقة، (ii) تقسيم البيانات، (iii) تدريب متعدد النماذج وتقييم الأداء، و (iv) تحليل الذكاء الاصطناعي القابل للتفسير (XAI). تم تصميم هذا النهج المنهجي لتسهيل مقارنة شاملة بين النماذج المختلفة، كما هو موضح في الشكل 1.

في إعداد التجربة، تم تدريب جميع النماذج وتقييمها على محطة عمل تحتوي على وحدة معالجة الرسومات NVIDIA A4000 (16GB VRAM)، و 48 GB RAM، وتعمل بنظام Ubuntu 22.04 LTS. استخدم التدريب PyTorch 2.1.0 مع CUDA 11.8 لتسريع وحدة معالجة الرسومات، مع استخدام مُحسِّن آدم بمعدل تعلم أولي قدره $10^{-4}$ وانخفاض وزن قدره $10^{-3}$. للحفاظ على الاتساق عبر التقييمات، تم توحيد دقة الإدخال عند 224 × 224 بكسل. حققت معظم النماذج التقارب في غضون 50-100 دورة، مع تنفيذ إيقاف مبكر للتخفيف من الإفراط في التكيف. يتم الإبلاغ عن النتائج من تشغيل تدريب واحد مع بذور عشوائية ثابتة لضمان القابلية للتكرار، على الرغم من أن المؤلفين يلاحظون أن تشغيلات متعددة مع بذور متغيرة ستوفر رؤى إحصائية أكثر موثوقية.

المناقشة

في قسم المناقشة، يبرز المؤلفون التقدم في التعلم العميق لتشخيص أمراض النباتات بشكل آلي، مع التأكيد بشكل خاص على قيود الشبكات العصبية التلافيفية (CNNs) المبكرة في التكيف مع الظروف الواقعية بسبب عوامل مثل تغيرات الإضاءة وتعقيد الخلفية. يشيرون إلى أنه بينما حققت نماذج مثل DenseNet121 دقة عالية (99.61%)، فإنها تتطلب موارد حاسوبية كبيرة. بالمقابل، يظهر نموذج MobilePlantViT المقترح أداءً قابلاً للمقارنة (99.40% دقة) مع عدد أقل بكثير من المعلمات (0.82M) وتعقيد حسابي أقل (0.60G FLOPs)، مما يجعله أكثر ملاءمة للنشر على الأجهزة الطرفية.

يتناول المؤلفون أيضًا أهمية تقنيات الذكاء الاصطناعي القابل للتفسير (XAI) في تعزيز شفافية النموذج وموثوقيته. يقارنون بين طرق XAI المختلفة، بما في ذلك Grad-CAM و LIME و SHAP، مع تقييم استقرارها تحت الاضطرابات المدخلة. تشير النتائج إلى أن MobilePlantViT يحافظ على قابلية تفسير قوية، وهو أمر حاسم للتطبيقات الزراعية العملية حيث قد تتأثر الصور بالضوضاء وتغيرات الإضاءة. بشكل عام، تشير النتائج إلى أن الهياكل الهجينة من CNN والمحولات مثل MobilePlantViT لا تحقق فقط دقة تشخيص عالية ولكنها تقدم أيضًا قدرات نشر فعالة في البيئات المحدودة الموارد، مما يعزز مجال تشخيص أمراض النباتات.

القيود

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

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

Journal: Scientific Reports, Volume: 16, Issue: 1
DOI: https://doi.org/10.1038/s41598-026-42439-6
PMID: https://pubmed.ncbi.nlm.nih.gov/41786837
Publication Date: 2026-03-05
Author(s): Trong-Minh Hoang et al.
Primary Topic: Smart Agriculture and AI

Overview

This section discusses the development of deep learning applications aimed at automating early and accurate disease detection in tomato plants, highlighting a critical trade-off between computational efficiency and diagnostic accuracy in resource-limited agricultural environments. The authors propose an evaluation framework for seven convolutional neural network (CNN) architectures, including ShuffleNetV2, MobileNetV3-Small, SqueezeNet, MobilePlantViT, DenseNet121, ResNet50, and VGG16, to assess their potential for implementation in such contexts.

Key findings from experiments conducted on a subset of tomato diseases from the PlantVillage dataset reveal that the MobilePlantViT architecture achieves an optimal balance between efficiency and performance, demonstrating diagnostic accuracy exceeding 99.5%. Additionally, the authors introduce the perturbation stability score (PSS) metric to quantitatively evaluate the explainability of explainable AI (XAI) models, such as Grad-CAM, SHAP, and LIME, to identify the most suitable option for edge devices. Furthermore, CPU inference measurements indicate that hybrid designs can effectively utilize parallel computing, reinforcing the suitability of MobilePlantViT for applications requiring high diagnostic accuracy in edge environments.

Introduction

The introduction highlights the critical impact of plant diseases on agricultural productivity, particularly focusing on tomatoes, which are susceptible to various diseases influenced by geographic and climatic factors. Traditional methods of disease detection rely on experienced farmers, but advancements in Internet of Things (IoT) systems and visual recognition technologies, particularly convolutional neural networks (CNNs), have significantly improved the accuracy and efficiency of disease diagnosis. Despite achieving high classification accuracy in controlled environments, challenges remain in deploying these models in real-world agricultural settings due to resource constraints and the need for model explainability.

The paper emphasizes the necessity for lightweight machine learning models that can operate effectively on edge devices with limited computational resources. It reviews several compact CNN architectures, such as MobileNetV3, ShuffleNet, and SqueezeNet, which maintain competitive accuracy while reducing model size and latency. Additionally, the introduction discusses the emergence of hybrid architectures, including MobileViT, which combine CNNs and transformers to enhance performance. However, existing studies often overlook the evaluation of these models under standardized conditions and fail to address the interpretability of their predictions. This research aims to fill these gaps by providing a comprehensive comparison of lightweight architectures for tomato disease diagnosis, evaluating their explainability through various methods, and assessing their feasibility for edge deployment. Key contributions include a performance comparison of seven model architectures, a quantitative evaluation of explainability using a novel Perturbation Stability Score (PSS), and an analysis of CPU-based inference latency for real-time agricultural applications.

Methods

The proposed methodology for the tomato disease diagnosis framework is structured into four sequential stages: (i) data specification and preprocessing, (ii) data partitioning, (iii) multi-model training and performance evaluation, and (iv) explainable AI (XAI) analysis. This systematic approach is designed to facilitate a comprehensive comparison of different models, as illustrated in Figure 1.

In the experimental setup, all models were trained and evaluated on a workstation featuring an NVIDIA A4000 GPU (16GB VRAM), 48 GB RAM, and running Ubuntu 22.04 LTS. The training utilized PyTorch 2.1.0 with CUDA 11.8 for GPU acceleration, employing the Adam optimizer with an initial learning rate of $10^{-4}$ and a weight decay of $10^{-3}$. To maintain consistency across evaluations, the input resolution was standardized at 224 × 224 pixels. Most models achieved convergence within 50-100 epochs, with early stopping implemented to mitigate overfitting. Results are reported from a single training run with a fixed random seed to ensure reproducibility, although the authors note that multiple runs with varying seeds would yield more reliable statistical insights.

Discussion

In the discussion section, the authors highlight the advancements in deep learning for automated plant disease diagnosis, particularly emphasizing the limitations of early convolutional neural networks (CNNs) in adapting to real-world conditions due to factors like lighting variations and background complexity. They note that while models such as DenseNet121 achieved high accuracy (99.61%), they require significant computational resources. In contrast, the proposed MobilePlantViT model demonstrates comparable performance (99.40% accuracy) with substantially fewer parameters (0.82M) and lower computational complexity (0.60G FLOPs), making it more suitable for deployment on edge devices.

The authors also address the importance of explainable AI (XAI) techniques in enhancing model transparency and trustworthiness. They compare various XAI methods, including Grad-CAM, LIME, and SHAP, assessing their stability under input perturbations. The results indicate that MobilePlantViT maintains robust interpretability, crucial for practical agricultural applications where images may be affected by noise and lighting changes. Overall, the findings suggest that hybrid CNN-transformer architectures like MobilePlantViT not only achieve high diagnostic accuracy but also offer efficient deployment capabilities in resource-constrained environments, thereby advancing the field of plant disease diagnosis.

Limitations

The section on limitations highlights several critical constraints of the current research. Firstly, the evaluation relied on the PlantVillage dataset, which consists of images captured in controlled laboratory settings. To enhance the robustness of the findings, it is essential to validate the model using datasets acquired from real-world field conditions. Secondly, the latency measurements were derived from CPU-based inference, necessitating further validation across a variety of physical edge devices to ensure applicability in diverse environments.

Additionally, while the proposed PSS metric assesses the stability of explanations, it does not account for fidelity to the actual disease regions, indicating a gap that future research should address. Consequently, upcoming work will prioritize validation in real-world scenarios, the integration of fidelity-based explainability metrics, and optimization for deployment on practical edge computing platforms.