Zhixin Gu , Ting Long , Shuairan Wang , Xiaowei Shang , Weizheng Shen , Xiaoli Wei , Kaihong Xu
{"title":"Construction of Q&A methods based on knowledge graphs and large language models-improving the accuracy of landscape pest and disease Q&A","authors":"Zhixin Gu , Ting Long , Shuairan Wang , Xiaowei Shang , Weizheng Shen , Xiaoli Wei , Kaihong Xu","doi":"10.1016/j.atech.2025.101094","DOIUrl":null,"url":null,"abstract":"<div><div>With the development of urban landscaping, the problem of garden diseases and pests is becoming increasingly severe. Large language models have garnered significant attention for their ability to understand user intent and provide answers. The introduction of knowledge graphs has provided a high quality knowledge base for large language models. This study combines knowledge graphs (KGs), large language models (LLMs) and other technologies to design an intelligent question-answering (Q&A) model for garden pests and diseases. The main work carried out is as follows:</div><div>Build a knowledge graph for garden diseases and pests by collecting high-quality data through web crawling and literature analysis. Identify key entities and relationships to construct a conceptual pattern layer. Applying the ERNIE-BiLSTM-CRF model to extract knowledge from unstructured data. Through experiments, it is found that the accuracy, recall and F1 value of the knowledge extraction model proposed in this study are all more than 92%, superior to other models.</div><div>Propose a Q&A method that integrates the garden pest and disease KG with the ERNIE-Bot-turbo model. By vectorizing the knowledge and using similarity matching, the most relevant data is retrieved, combined with the question to form prompts, and input into the language model to generate natural language answers. Experiments comparing our method with ERNIE-Bot-turbo and ChatGLM-6B showed that our approach performs well on simple, moderate, and complex problems, avoiding misleading answers for irrelevant questions. It outperforms both models in accuracy, achieving a 90% accuracy rate for simple questions.</div></div>","PeriodicalId":74813,"journal":{"name":"Smart agricultural technology","volume":"12 ","pages":"Article 101094"},"PeriodicalIF":5.7000,"publicationDate":"2025-06-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Smart agricultural technology","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2772375525003272","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURAL ENGINEERING","Score":null,"Total":0}
引用次数: 0
Abstract
With the development of urban landscaping, the problem of garden diseases and pests is becoming increasingly severe. Large language models have garnered significant attention for their ability to understand user intent and provide answers. The introduction of knowledge graphs has provided a high quality knowledge base for large language models. This study combines knowledge graphs (KGs), large language models (LLMs) and other technologies to design an intelligent question-answering (Q&A) model for garden pests and diseases. The main work carried out is as follows:
Build a knowledge graph for garden diseases and pests by collecting high-quality data through web crawling and literature analysis. Identify key entities and relationships to construct a conceptual pattern layer. Applying the ERNIE-BiLSTM-CRF model to extract knowledge from unstructured data. Through experiments, it is found that the accuracy, recall and F1 value of the knowledge extraction model proposed in this study are all more than 92%, superior to other models.
Propose a Q&A method that integrates the garden pest and disease KG with the ERNIE-Bot-turbo model. By vectorizing the knowledge and using similarity matching, the most relevant data is retrieved, combined with the question to form prompts, and input into the language model to generate natural language answers. Experiments comparing our method with ERNIE-Bot-turbo and ChatGLM-6B showed that our approach performs well on simple, moderate, and complex problems, avoiding misleading answers for irrelevant questions. It outperforms both models in accuracy, achieving a 90% accuracy rate for simple questions.