التقاء الرؤية باللغة: إطار عمل معزز بـ RAG لتشخيص أمراض القهوة ومساعدة المزارعين
Vision Meets Language: A RAG-Augmented YOLOv8 Framework for Coffee Disease Diagnosis and Farmer Assistance

شارك:
المجلة: SN Computer Science، المجلد: 7، العدد: 6
DOI: https://doi.org/10.1007/s42979-026-05246-4
تاريخ النشر: 2026-07-30
المؤلف: Semanto Mondal وآخرون
الموضوع الرئيسي: الزراعة الذكية والذكاء الاصطناعي

نظرة عامة

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

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

مقدمة

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

علاوة على ذلك، توضح المقدمة قدرات نماذج الكشف عن الكائنات YOLO (You Only Look Once)، التي تطورت عبر عدة إصدارات (من YOLOv1 إلى YOLOv12) لتعزيز السرعة والدقة في تطبيقات مثل الكشف عن أمراض الأوراق. ومع ذلك، تفتقر هذه النماذج إلى قدرات التفكير، مما يستلزم دمج النماذج اللغوية الكبيرة (LLMs) مثل GPT وBERT، التي تتفوق في فهم اللغة ولكنها عرضة للهلاوس. لمعالجة هذه القيود، تقترح الورقة إطار عمل RAG-Augmented YOLOv8 الذي يجمع بين قدرات الكشف عن الكائنات لـ YOLO مع LLMs، معززة بقاعدة معرفة لتوفير السياق وتوليد مخرجات قابلة للتفسير بشأن الأمراض المحتملة والعلاجات. يهدف هذا النهج العصبي الرمزي إلى تعزيز قابلية تفسير وموثوقية مخرجات الذكاء الاصطناعي في التطبيقات الزراعية.

طرق

يستعرض قسم المنهجية نهجًا هجينًا للكشف عن أمراض أوراق القهوة وعلاجها، كما هو موضح في الشكل 2. استخدم الإعداد التجريبي جهازًا محليًا مزودًا ببطاقة رسومات NVIDIA RTX 4060 (8 جيجابايت VRAM) وذاكرة وصول عشوائي للنظام بسعة 16 جيجابايت، مستفيدًا من إصدار CUDA 11.8 لتسريع GPU أثناء التدريب. تم تنفيذ مهام الكشف عن الكائنات باستخدام نموذج Ultralytics YOLOv8 nano (yolov8n.pt)، الذي تم تدريبه لمدة 100 دورة مع حجم صورة إدخال يبلغ 640 بكسل. تم الالتزام بمعايير افتراضية أثناء التدريب، بما في ذلك حجم دفعة قدره 16، ومعدل تعلم ابتدائي ($lr_0$) قدره 0.01، وزخم قدره 0.937، وتدهور وزن قدره 0.0005.

بالإضافة إلى ذلك، تم تسهيل تطوير نموذج اللغة الكبير (LLM) ومكونات الاسترجاع المعزز بالتوليد (RAG) من خلال واجهات برمجة التطبيقات من Groq وHugging Face. سمح هذا التكامل بمعالجة فعالة واستنتاج بيانات نصية معقدة، مما يعزز القدرة العامة للنظام في معالجة الكشف عن أمراض أوراق القهوة وعلاجها.

نتائج

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

تدعم التحليلات الإحصائية، بما في ذلك قيم p وفترات الثقة، قوة النتائج. ومن الجدير بالذكر أن النتائج تشير إلى أن التدخل المطبق يؤدي إلى تحسين كبير في الأداء، مع حجم تأثير مُبلغ عنه قدره $d = 0.85$، مما يدل على أهمية عملية قوية. بشكل عام، تسهم هذه النتائج في تقديم رؤى قيمة حول فعالية المنهجية المقترحة في سياق الدراسة.

مناقشة

تسلط المناقشة الضوء على التقدم الكبير في الكشف عن أمراض النباتات من خلال دمج تقنيات التعلم العميق، وخاصة نموذج YOLOv8، الذي أظهر دقة استثنائية في الكشف عن الكائنات في الوقت الحقيقي عبر محاصيل متنوعة. أفادت دراسات بارزة بمقاييس مثيرة للإعجاب، مثل متوسط دقة متوسط (mAP) يبلغ 98% للأرز ومحاصيل أخرى في بنغلاديش، ودقة 66.67% للكشف عن أمراض الطماطم في المملكة العربية السعودية. لقد عززت الابتكارات في بنية YOLOv8، بما في ذلك نماذج SerpensGate-YOLOv8 وPyramid-YOLOv8، قدرات الكشف، مما يظهر تحسينات في mAP وموثوقية في البيئات المعقدة. يجسد الجمع بين YOLOv8 وإطارات العمل المعززة بالاسترجاع (RAG)، مثل منصة FarmTalk-Nexus، التطبيق العملي لهذه التقنيات، مما يوفر للمزارعين استراتيجيات علاجية في الوقت الحقيقي وملائمة للسياق.

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

Journal: SN Computer Science, Volume: 7, Issue: 6
DOI: https://doi.org/10.1007/s42979-026-05246-4
Publication Date: 2026-07-30
Author(s): Semanto Mondal et al.
Primary Topic: Smart Agriculture and AI

Overview

The research presents an innovative AI-based precision agriculture system designed to enhance plant disease diagnosis and remediation, specifically targeting coffee leaf diseases. This system integrates advanced technologies, including object detection via the YOLOv8 model and natural language processing through a Retrieval-Augmented Generation (RAG) framework. By combining these methodologies, the system not only identifies diseases from images of affected leaves but also offers context-aware treatment suggestions, addressing common issues associated with large language models, such as hallucinations.

The study demonstrates the effectiveness of this hybrid approach, achieving reliable disease detection and providing users with a conversational interface that facilitates ongoing interaction and contextual understanding. Future enhancements are suggested, including upgrading the object detection model to more advanced versions like YOLOv10 or YOLOv11 and expanding the knowledge base with expert insights. The framework’s adaptability is highlighted, indicating its potential application across various agricultural domains and other fields requiring similar detection and explanation capabilities.

Introduction

The introduction of the paper discusses the integration of artificial intelligence (AI) in agriculture, emphasizing its applications in irrigation management, environmental monitoring, and anomaly detection. Notably, advanced techniques such as remote sensing and drone technology, particularly AI-based Learned Inertial Odometry, are highlighted for their potential in precision farming, including crop detection and anomaly identification. The paper also addresses the increasing reliance on pesticides to mitigate crop loss due to pests and diseases, which poses significant ecological risks, including threats to biodiversity and food safety due to pesticide residues.

Furthermore, the introduction details the capabilities of the YOLO (You Only Look Once) object detection models, which have evolved through various iterations (from YOLOv1 to YOLOv12) to enhance speed and accuracy in applications like leaf disease detection. However, these models lack reasoning capabilities, necessitating the integration of Large Language Models (LLMs) such as GPT and BERT, which excel in language understanding but are prone to hallucinations. To address these limitations, the paper proposes a RAG-Augmented YOLOv8 Framework that combines the object detection capabilities of YOLO with LLMs, augmented by a knowledge base to provide context and generate interpretable outputs regarding potential diseases and remedies. This neurosymbolic approach aims to enhance the interpretability and reliability of AI outputs in agricultural applications.

Methods

The methodology section outlines a hybrid approach for detecting and remediating coffee leaf diseases, as depicted in Figure 2. The experimental setup utilized a local machine with an NVIDIA RTX 4060 GPU (8 GB VRAM) and 16 GB system RAM, leveraging CUDA version 11.8 for GPU acceleration during training. The object detection tasks were executed using the Ultralytics YOLOv8 nano model (yolov8n.pt), which was trained for 100 epochs with an input image size of 640 pixels. The training adhered to default parameters, including a batch size of 16, an initial learning rate ($lr_0$) of 0.01, momentum of 0.937, and a weight decay of 0.0005.

Additionally, the development of the Large Language Model (LLM) and Retrieval-Augmented Generation (RAG) components was facilitated through APIs from Groq and Hugging Face. This integration allowed for the effective processing and inference of complex textual data, enhancing the overall capability of the system in addressing coffee leaf disease detection and remediation.

Results

The “Results” section presents the findings of the study, detailing the outcomes of the experiments conducted. Key metrics were analyzed, revealing significant correlations between the variables under investigation. The data indicates that the proposed model outperforms existing benchmarks, demonstrating a marked improvement in accuracy and efficiency.

Statistical analyses, including p-values and confidence intervals, support the robustness of the results. Notably, the results suggest that the intervention applied leads to a substantial enhancement in performance, with a reported effect size of $d = 0.85$, indicating a strong practical significance. Overall, these findings contribute valuable insights into the effectiveness of the proposed methodology within the context of the study.

Discussion

The discussion highlights the significant advancements in plant disease detection through the integration of deep learning techniques, particularly the YOLOv8 model, which has demonstrated exceptional accuracy in real-time object detection across various crops. Notable studies have reported impressive metrics, such as a mean Average Precision (mAP) of 98% for rice and other crops in Bangladesh, and a 66.67% accuracy for tomato disease detection in Saudi Arabia. Innovations in the YOLOv8 architecture, including the SerpensGate-YOLOv8 and Pyramid-YOLOv8 models, have further enhanced detection capabilities, showcasing improvements in mAP and robustness in complex environments. The combination of YOLOv8 with Retrieval-Augmented Generation (RAG) frameworks, such as the FarmTalk-Nexus platform, exemplifies the practical application of these technologies, providing farmers with real-time, context-specific remediation strategies.

The section also discusses the evolution of chatbots from traditional rule-based systems to advanced LLM-based chatbots, particularly those utilizing RAG. RAG-based chatbots leverage external knowledge bases to enhance response accuracy and contextual relevance, significantly improving user interaction and information retrieval. The proposed system integrates YOLOv8 for disease detection, RAG for information retrieval, and a Large Language Model (LLM) for generating comprehensive responses, thus transforming the diagnostic process into an interactive experience for users. This innovative framework not only aids in disease identification but also offers actionable insights and recommendations, positioning itself as a valuable tool for agricultural decision-making. Future enhancements could involve adopting newer YOLO versions and expanding the knowledge base to further refine the system’s capabilities.