Design and implementation of an intelligent question answering system for Macrobrachium rosenbergii aquaculture based on knowledge graph and large language model
Papers and Reports|更新时间:2025-11-18
|
Design and implementation of an intelligent question answering system for Macrobrachium rosenbergii aquaculture based on knowledge graph and large language model
Chinese Journal of Intelligent Science and TechnologyVol. 7, Issue 3, Pages: 361-369(2025)
作者机构:
1.杭州电子科技大学通信工程学院,浙江 杭州 310018
2.浙江省淡水水产研究所,浙江 湖州 313001
作者简介:
基金信息:
"Three Rural and Nine Party" Science and Technology Cooperation Plan of Zhejiang Province(2023SNJF073)
ZHENG Hao,YANG Guowei,LI Fei,et al.Design and implementation of an intelligent question answering system for Macrobrachium rosenbergii aquaculture based on knowledge graph and large language model[J].Chinese Journal of Intelligent Science and Technology,2025,07(03):361-369.
ZHENG Hao,YANG Guowei,LI Fei,et al.Design and implementation of an intelligent question answering system for Macrobrachium rosenbergii aquaculture based on knowledge graph and large language model[J].Chinese Journal of Intelligent Science and Technology,2025,07(03):361-369. DOI: 10.11959/j.issn.2096-6652.202532.
Design and implementation of an intelligent question answering system for Macrobrachium rosenbergii aquaculture based on knowledge graph and large language model
互联网存储着大量罗氏沼虾的相关信息,借助网络搜索、大语言模型(large language model,LLM)很难高效获取养殖问题的准确解答。基于实体粒度的属性拼接向量检索策略,设计并实现了一个面向罗氏沼虾养殖行业的智能问答系统。该系统主要通过融合知识图谱和大语言模型来实现罗氏沼虾养殖领域的友好问答。首先,借助LLM来完成知识抽取功能,将收集到的原始数据转化为结构化数据,构建一个罗氏沼虾养殖相关的知识图谱,将图谱中实体名称与其属性拼接形成语义丰富的描述文本,进行向量化表示并导入Neo4j。然后,通过LLM搭建一个问题过滤模块,对用户提出的问题先进行语义优化和分类后进行向量化处理,从而提升噪声环境下的问答鲁棒性。最后,通过语义向量检索方式,将检索到的知识传递给LLM进行专业回答,从而实现融合知识图谱和LLM的智能问答系统。实验测试展示了所提方法可以有效提高回答的准确性和鲁棒性。该系统有望助力于提供高效、准确、友好的罗氏沼虾专业信息检索,以期提升养殖决策效率和增加养殖生产效益。
Abstract
As a vast amount of information about Macrobrachium rosenbergii is available on the Internet
it makes the use of web searches or general-purpose large language model (LLM) inefficient to obtain accurate answers to aquaculture-specific questions. An intelligent question answering (QA) system for the Macrobrachium rosenbergii aquaculture field based on an entity-level attribute-concatenated vector retrieval strategy was proposed and implemented. A knowledge graph with LLM was integrated to support professional
user-friendly QA. Firstly
raw
unstructured aquaculture data was transformed into structured triples by an LLM-based knowledge extraction module to construct a knowledge graph. The entity names and their attributes were concatenated into semantically rich textual descriptions
which were vectorized and stored in a Neo4j database for similarity-based retrieval. Then
a question filtering module based on an LLM was introduced to optimize and classify user queries before vectorization
thereby enhancing answer robustness in noisy or ambiguous input environments. Finally
semantic vector retrieval was performed over the knowledge graph
and the retrieved knowledge was passed to an LLM for generating professional
context-aware responses. Experimental results demonstrate that the proposed approach effectively improves response accuracy and robustness. The system shows promise in enabling efficient
accurate
and user-friendly knowledge access in aquaculture
potentially improving decision-making and enhancing production outcomes.
关键词
Keywords
references
黄玉玲. 我国虾类淡水养殖概述[J]. 水利渔业, 2003, 24(1): 1-3.
HUANG Y L. Summary of freshwater shrimp culture in China[J]. Reservoir Fisheries, 2003, 24(1): 1-3.
YANG G L, CHEN X F, WANG J Y, et al. Social and economical factors of sustained growth of macrobrachium rosenbergii industry in China's mainland[J]. Journal of Zhejiang Ocean University (Natural Science), 2011, 30(5): 450-457.
GAO R T, LIN D W, GUO L, et al. Design and implementation of rice planting intelligent question-answering system based on knowledge graph[J]. Computer Engineering, 2024, 50(12): 133-141.
YANI M, KRISNADHI A A. Challenges, techniques, and trends of simple knowledge graph question answering: a survey[J]. Information, 2021, 12(7): 271.
LI Y Y, WANG X Y, WANG X, et al. Traffic anomaly event detection and auxiliary decision-making based on large language models[J]. Chinese Journal of Intelligent Science and Technology, 2024, 6(3): 347-355.
ZHANG Z C, WANG J, ZHANG Y, et al. OrthoGPT: multimodal generative pre-trained transformer models for precise diagnosis and treatment of orthopedics[J]. Chinese Journal of Intelligent Science and Technology, 2024, 6(3): 338-346.
LING C, ZHAO X J, LU J Y, et al. Domain specialization as the key to make large language models disruptive: a comprehensive survey[EB]. 2023.
LEWIS P, PEREZ E, PIKTUS A, et al. Retrieval-augmented generation for knowledge-intensive NLP tasks[J]. Advances in Neural Information Processing Systems, 2020, 33: 9459-9474.
CHEN T, WANG H W, CHEN S H, et al. Dense X retrieval: what retrieval granularity should we use?[C]//Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing. Stroudsburg: ACL Press, 2024:15159-15177.
SOMAN K, ROSE P W, MORRIS J H, et al. Biomedical knowledge graph-optimized prompt generation for large language models[J]. Bioinformatics, 2024, 40(9): btae560.
SANMARTIN D. KG-RAG: bridging the gap between knowledge and creativity[EB]. 2024.
ZENG A H, XU B, WANG B W, et al. ChatGLM: a family of large language models from GLM-130B to GLM-4 all tools[EB]. 2024.
LI B L, CHEN Y Z, YU S W. Research on information extraction: a survey[J]. Computer Engineering and Applications, 2003, 39(10): 1-5.
ZHANG N Y, XU X, TAO L K, et al. DeepKE: a deep learning based knowledge extraction toolkit for knowledge base population[C ] //Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, December 2022 , Abu Dhabi, UAE. Stroudsburg: Association for Computational Linguistics, 2022: 98-108.
HOGAN A, BLOMQVIST E, COCHEZ M, et al. Knowledge graphs[J]. ACM Computing Surveys (CSUR), 2021, 54(4): 1-37.
WANG Q, MAO Z D, WANG B, et al. Knowledge graph embedding: a survey of approaches and applications[J]. IEEE Transactions on Knowledge and Data Engineering, 2017, 29(12): 2724-2743.
CHURCH K W. Word2Vec[J]. Natural Language Engineering, 2017, 23(1): 155-162.
PENNINGTON J, SOCHER R, MANNING C. Glove: global vectors for word representation[C]//Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). Stroudsburg: ACL Press, 2014: 1532-1543.
REIMERS N, GUREVYCH I. Sentence-BERT: sentence embeddings using Siamese BERT-networks[C]//Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 2019, Hong Kong, China. Stroudsburg: Association for Computational Linguistics, 2019: 3982-3992.
STURUA S, MOHR I, AKRAM M K, et al. Jina-embeddings-v3: multilingual embeddings with task LoRA[EB]. 2024.
ZHANG H Y, WANG X, HAN L F, et al. Research on question answering system on joint of knowledge graph and large language models[J]. Journal of Frontiers of Computer Science and Technology, 2023, 17(10): 2377-2388.
DEVLIN J, CHANG M W, LEE K, et al. Bert: pre-training of deep bidirectional transformers for language understanding[C]//Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). Stroudsburg: ACL Press, 2019: 4171-4186.
QIU Y F, LI H Y, QU Y Q, et al. DuReader-retrieval: a large-scale chinese benchmark for passage retrieval from web search engine[C]//Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, 2022, Abu Dhabi, United Arab Emirates. Stroudsburg: Association for Computational Linguistics, 2022: 5326-5338.