基于BiLSTM-CRF和Neo4j的脾胃病知识图谱构建

谭平 ,  刘惠娜 ,  韦昌法

科学技术与工程 ›› 2025, Vol. 25 ›› Issue (22) :9436-9444

PDF (9895KB)
科学技术与工程 ›› 2025, Vol. 25 ›› Issue (22) :9436-9444 DOI: 10.12404/j.issn.1671-1815.2404910
自动化技术、计算机技术

基于BiLSTM-CRF和Neo4j的脾胃病知识图谱构建

作者信息 +

Spleen and Stomach Disease Knowledge Graph Construction Based on BiLSTM-CRF and Neo4j

Author information +
文章历史 +

摘要

为了推动中医药文本数据的分析和挖掘,实现知识的智能化提取和处理。通过采用BIO(begin, inside, outside)序列标记法、BiLSTM-CRF模型和人工定义规则的方法完成知识抽取任务。利用Python3.6中Py2neo库与Neo4j数据库等技术,构建了基于Neo4j的脾胃病知识图谱,并使用Flask框架开发了中医药脾胃病命名实体识别系统。结果表明:模型(BiLSTM-CRF)在测试集上取得了高性能和良好的泛化能力,其准确率、精确率、查全率和F1分数分别为96.19%、86.64%、88.82%和87.71%。构建出的知识图谱包含了方剂或中成药、中药、临床表现等8种节点标签以及10种关系类型,可支持中医药治疗脾胃病西医诊断、中医证候、中医治则等节点及各节点之间关系的查询与发现。可见BiLSTM-CRF模型在中医药脾胃病命名实体识别方面展现出了良好的通用性,它在处理复杂文本结构和领域术语上表现出了出色的能力,为中医药脾胃病知识提取和知识图谱构建研究提供了有力支持。

Abstract

In order to advance the analysis and mining of TCM (traditional Chinese medicine) text data and achieve intelligent extraction and processing of knowledge, the BIO(begin, inside, outside) sequence labeling method, the BiLSTM-CRF model, and manually defined rules were adopted to complete the knowledge extraction task. Utilizing the Py2neo library in Python 3.6 and the Neo4j database, a spleen and stomach disease knowledge graph was constructed based on Neo4j, and a TCM spleen and stomach disease named entity recognition system was developed using the Flask framework. The results show that the BiLSTM-CRF model achieves high performance and good generalization ability on the test set, with accuracy, precision, recall, and F1 scores of 96.19%, 86.64%, 88.82%, and 87.71%, respectively. The constructed knowledge graph includes eight types of node labels, such as prescriptions or patent medicines, Chinese medicines, and clinical manifestations, as well as ten types of relationships. It supports the querying and discovery of nodes and relationships among Western medical diagnosis, TCM syndromes, and TCM treatment principles for spleen and stomach diseases. It is concluded that the BiLSTM-CRF model demonstrates excellent generalizability in named entity recognition of TCM spleen and stomach disease. It exhibits outstanding performance in handling complex text structures and domain-specific terminology, providing strong support for the research on knowledge extraction and knowledge graph construction in Traditional Chinese Medicine for spleen and stomach diseases.

关键词

中医药 / 脾胃病 / BIO序列标记法 / 人工定义规则 / BiLSTM-CRF模型 / 知识图谱

Key words

traditional chinese medicine / spleen and stomach diseases / BIO sequence tagging method / manually defined rules / BiLSTM-CRF model / knowledge graph

引用本文

引用格式 ▾
谭平, 刘惠娜, 韦昌法. 基于BiLSTM-CRF和Neo4j的脾胃病知识图谱构建[J]. 科学技术与工程, 2025, 25(22): 9436-9444 DOI:10.12404/j.issn.1671-1815.2404910
TAN Ping, LIU Hui-na, WEI Chang-fa. Spleen and Stomach Disease Knowledge Graph Construction Based on BiLSTM-CRF and Neo4j[J]. Science Technology and Engineering, 2025, 25(22): 9436-9444 DOI:10.12404/j.issn.1671-1815.2404910

登录浏览全文

4963

注册一个新账户 忘记密码

参考文献

基金资助

湖南省自然科学基金(2025JJ90089)

湖南省研究生科研创新立项不资助项目(LXBZZ2024175)

湖南中医药大学信息科学与工程学院科研资助专项(DK2023KY05)

PDF (9895KB)

39

访问

0

被引

详细

导航
相关文章

/

〈 〉