Earth Science Frontiers ›› 2025, Vol. 32 ›› Issue (4): 250-261.DOI: 10.13745/j.esf.sf.2025.4.65

Previous Articles     Next Articles

Few-shot geological relationship extraction based on prompt and metric learning

ZHANG Zhiting1,2,3(), PENG Shuai1,4,*(), QUE Xiang4,5, CHEN Qiyu1,4   

  1. 1. School of Computer Science, China University of Geosciences (Wuhan), Wuhan 430074, China
    2. Technology Innovation Center of Mineral Resources Explorations Engineering in Bedrock Zones, Ministry of Natural Resources, Guiyang 550081, China
    3. Guizhou Key Laboratory for Strategic Mineral Intelligent Exploration, Guiyang 550081, China
    4. Hubei Key Laboratory of Intelligent Geo-Information Processing, Wuhan 430074, China
    5. College of Computer and Information Science, Fujian Agriculture and Forestry University, Fuzhou 350002, China
  • Received:2025-02-26 Revised:2025-04-16 Online:2025-07-25 Published:2025-08-04

Abstract:

The research in the field of geology is undergoing profound transformations, with the construction of a new knowledge system as its core and big data serving as the driving force. The construction of geological knowledge graphs can effectively address the challenge of knowledge discovery and limited reasoning in scenarios characterized by fragmented data. As one of the critical technologies for constructing knowledge graphs, relation extraction technology plays a pivotal role in identifying relationships between geological entities. Traditional relation extraction techniques are intrinsically contingent upon extensive large-scale annotated datasets. However, the intricacy and specificity of entity relationships in the geological domain render manual annotation of data laborious and time-consuming, consequently leading to a paucity of large-scale labeled datasets. Therefore, the effective implementation of traditional relation extraction techniques within the geological domain is significantly circumscribed. Given the above dilemmas, this study proposes a few-shot learning method for geological relation extraction based on the prototypical network, which innovatively introduces an enhanced prompt learning mechanism and optimizes the instance representation and relation description representation through contrastive learning, thereby significantly improving the representativeness of the prototype. Meanwhile, the weighted loss function and difficult task-assisted training strategy are adopted to enhance the model’s focus on difficult tasks, which effectively improves the overall accuracy. The experimental findings demonstrate that our approach achieves an accuracy of 82.16% in the 5-way 1-shot scenario of a geological few-shot relation extracted dataset. This represents an enhancement of 1.94% over the advanced general-domain model, SimpleFSRE, and 9.01% over the prototypical network, Proto-BERT method. These results substantiate the efficacy of our method.

Key words: few-shot learning, relation extraction, geological knowledge graph, prototype network, prompt learning

CLC Number: