SheepDoctor: A knowledge graph enhanced large language model for sheep disease diagnosis
Traditional methods for diagnosing sheep diseases often fail to provide timely and accurate results, particularly in emergency situations, and public awareness of these diseases remains limited. This hinders effective prevention and control efforts. To address these challenges, a domain-specific large language model, SheepDoctor, was developed for sheep disease diagnosis. A comprehensive question-and-answer (Q&A) dataset was constructed using prompt techniques, resulting in 5,987 samples covering 207 sheep diseases. This dataset included detailed symptom descriptions, treatments, and related information, which were also structured into a knowledge graph. The pre-trained LLaMA2-13B-Chinese model was fine-tuned using Low-Rank Adaptation (LoRA), with integration of the knowledge graph to enhance its diagnostic capabilities and response accuracy. Evaluation using BLEU, ROUGE, and BERTScore metrics demonstrates that SheepDoctor outperforms general-purpose models such as GPT-4o and Kimi on sheep-related diagnostic tasks. The proposed method exhibits strong domain expertise and holds significant potential for improving the efficiency and reliability of sheep disease diagnosis.
Authors
- Jing Xiong (ORCID: https://orcid.org/0000-0002-9712-6771)
- Yong Zhou (ORCID: https://orcid.org/0000-0003-1850-4058)
- Fuchuan Ni (ORCID: https://orcid.org/0000-0002-4942-6171)
- Fang Tian (ORCID: https://orcid.org/0000-0002-5881-6155)
- Liang Zhao (ORCID: https://orcid.org/0000-0002-8014-2716)
Institutions
- Huazhong Agricultural University (CN)
- Jinchuan (China) (CN)
- Ministry of Agriculture and Rural Affairs (CN)
- Hubei University of Technology (CN)
Publication Details
- Journal
- Smart Agricultural Technology
- Published
- 2025-05-10
- DOI
- https://doi.org/10.1016/j.atech.2025.101001
- Citations
- 3
- Primary Topic
- Plant and Fungal Interactions Research
- Type
- article
- Field-Weighted Citation Impact
- 5.39