Computers and Electronics in AgricultureBioengineeringPeer-reviewed journal article
Towards an AI-based knowledge assistant for goat farmers based on Retrieval-Augmented Generation
Abstract
Large language models (LLMs) are increasingly being recognised as valuable knowledge communication tools in many industries. However, their application in livestock farming remains limited, being constrained by several factors not least the availability, diversity and complexity of knowledge sources. This study introduces an intelligent knowledge assistant system designed to support health management in farmed goats. Leveraging the Retrieval-Augmented Generation (RAG), two structured knowledge processing methods - table textualization and decision-tree textualization - were proposed to enhance large language models (LLMs) understanding of heterogeneous data formats. Based on these methods, a domain-specific goat farming knowledge base was established to improve LLMs capacity for cross-scenario generalization. The knowledge base spans five key domains: Disease Prevention and Treatment, Nutrition Management, Rearing Management, Goat Milk Management, and Basic Farming Knowledge. Additionally, an online search module is integrated to enable real-time retrieval of up-to-date information. To evaluate system performance, six ablation experiments were conducted to examine the contribution of each component. The results demonstrated that heterogeneous knowledge fusion method achieved the best results, with mean accuracies of 87.90% on the validation set and 84.22% on the test set. Across the text-based, table-based, decision-tree based Q&A tasks, accuracy consistently exceeded 85%, validating the effectiveness of structured knowledge fusion within a modular design. Error analysis identified omission as the predominant error category, highlighting opportunities to further improve retrieval coverage and context integration. In conclusion, the results highlight the robustness and reliability of the proposed system for practical applications in goat farming.
- Citations
- 2
- FWCI
- 7.51
- Field percentile
- top 5%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Decoding Bovine Communication with AI and Multimodal Systems ~ Advancing Sustainable Livestock Management and Precision Agriculture
Mayuri Kate, Suresh Raja Neethirajan·bioRxiv·Mar 3, 2025
- Opportunities to improve goat production and food security in Botswana through forage nutrition and the use of supplemental feeds
A. S. Cooke, H. Machekano, … C. Nyamukondiwa·bioRxiv·Dec 4, 2023
- Development of a Cloud-Based IoT System for Livestock Health Monitoring Using AWS and Python
Harini Shree Bhaskaran, Miriam Gordon, Suresh Raja Neethirajan·Smart Agricultural TechnologyPeer-reviewed·Aug 7, 2024
- Nutritional characterisation and seasonal variation of goat forages in Central Malawi
A. S. Cooke, W. Mvula, … A. Safalaoh·bioRxiv·Dec 22, 2023
- Intake, performance, and feeding behavior of Holstein and Holstein x Gyr heifers grazing intensive managed tropical grasses during the rainy season
D. F. Quirino, M. I. Marcondes, … P. P. Rotta·bioRxiv·Jul 13, 2021
- Daylong Acoustic Recordings of Grazing and Rumination Activities in Dairy Cows
L. S. Martinez Rau, J. O. Chelotti, … H. L. Rufiner·bioRxiv·Oct 18, 2023