Earth Science Frontiers ›› 2024, Vol. 31 ›› Issue (4): 37-46.DOI: 10.13745/j.esf.sf.2024.5.11

Previous Articles     Next Articles

Mineral question-answering system in Chinese based on multi-hop reasoning in knowledge graphs

JI Xiaohui1(), DONG Yuhang1, YANG Zhongji1, YANG Mei2, HE Mingyue2, WANG Yuzhu1   

  1. 1. School of Information Engineering, China University of Geosciences (Beijing), Beijing 100083, China
    2. National Mineral Rock and Fossil Specimens Resource Center from MOST, China University of Geosciences (Beijing), Beijing 100083, China
  • Received:2024-01-05 Revised:2024-03-27 Online:2024-07-25 Published:2024-07-10

Abstract:

Mineral knowledge is important for geosciences research. Some mineral databases are used for storing and retrieving mineral knowledge, and common search engines can also answer mineral questions. But the mineral databases cannot answer mineral questions in natural language and the answers returned from the common search engines need to be filtered. To solve the above problems knowledge graphs have been used; however, the current mineral question-answering based on knowledge graphs can only answer simple questions involving one triplet, but not complex questions involving multiple triplets and multi-hop reasoning. This paper presents a mineral question-answering system based on multi-hop reasoning in knowledge graphs. The mineral entities, relations and questions are first transformed into vectors of complex domain to obtain their semantic and reasoning relations by using the ComplEx model, and Bert-LSTM-CRF is applied to obtain the head of the question. Candidate entities of the head are then obtained by calculating the edit distance and word segmentation, and a fully connected network is constructed to obtain the most related entity of the head of the question from the candidate entities and the entity is the start of the reasoning. Next, the entity and question vectors are concatenated into an input vector into the fully connected network to get their most related relation; afterward another entity most related to the starting entity/relation can be obtained from the mineral knowledge graph to start the reasoning of the next hop; the question of the next hop is updated by the concatenated vector of this hop to bring the reasoning information of this hop to the next hop. This process continues until the most related relation obtained is the stop sign predefined. The last entity obtained in this process is the answer to the question and the reasoning path is also remembered. This method is implemented using Python under Tensorflow and compared with related methods, which show the effectiveness of the method. Using this method, a question-answering system capable of answering complex mineral questions is developed under the front and back end separation architecture employing RESTful API, React, Ajax, echarts and Flask, which provides a platform for acquiring mineral knowledge and performing geosciences research.

Key words: mineral, question answering, knowledge graph, multi-hop reasoning

CLC Number: