A method and device for acquiring key information of scientific and technological literature in the field of earth environment
By using the GEO-DACM model, combined with BERT, BiLSTM, and CRF models, the problems of high data quality requirements and limited pattern matching generalization ability in existing technologies are solved, enabling efficient and accurate acquisition and inference of key information from scientific and technological literature in the field of Earth environment.
Patent Information
- Application Number
- CN202410409886.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-07
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-04-07
AI Technical Summary
Existing knowledge extraction and reasoning technologies in the field of Earth environment suffer from problems such as high data quality requirements, difficulty in constructing knowledge graphs, limited generalization ability of pattern matching methods, and the inability of bibliometric methods to deeply understand text content.
We employ the GEO-DACM language model for the Earth environment field, combined with BERT, BiLSTM, and CRF models, to acquire and standardize key information in scientific and technological literature in the Earth environment field through data collection, filtering, corpus construction, and normalization.
It improves the efficiency and accuracy of knowledge extraction, enables better understanding of text semantics and capture of contextual information, and realizes intelligent knowledge acquisition of scientific and technological literature in the field of Earth environment.
Smart Images

Figure CN118194995B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of knowledge extraction technology, and specifically to a method for acquiring key information of scientific and technological documents in the field of earth environment and a device for acquiring key information of scientific and technological documents in the field of earth environment. Background Art
[0002] Knowledge extraction and reasoning is a complex process, including raw data collection and cleaning, preliminary knowledge extraction, knowledge aggregation and analysis, reasoning and result generation, etc. For scientific and technological literature in the field of earth environment, the commonly used knowledge extraction and reasoning technology solutions mainly include the following three types.
[0003] (1) Bibliometric methods
[0004] Bibliometrics is a scientific literature analysis method that studies the quantity, quality, and citation relationships of academic literature, and aims to quantitatively analyze and evaluate scientific research activities. Bibliometrics is widely used in citation analysis, scientific research network analysis, spatiotemporal analysis, and topic modeling.
[0005] In the field of earth environment, bibliometrics is often used to analyze the development of research fields. The basic process of this method is: ① Construct a keyword search formula to search and download relevant documents from document databases such as CNKI and Web of Science. ② Use analysis software such as CiteSpace to perform statistical analysis on metadata such as publication time, country, institution, and keywords of downloaded documents. ③ Generate citation networks, author cooperation networks, and keyword clustering results based on information such as citations and authors in downloaded documents. ④ Analyze research hotspots and development trends in research fields based on the results.
[0006] However, the object of analysis of bibliometric methods is mainly the metadata of scientific and technological literature, rather than the content of the literature itself, which makes this method unable to extract "knowledge" from the text of scientific and technological literature in the field of earth environment. Therefore, bibliometric methods are basic literature statistics methods, which can only be used to analyze current research hotspots, author relationships between papers, etc., but have poor understanding of transaction relationships in the original text, and it is difficult to produce information recognition effects close to human thinking, and it is impossible to extract detailed information in the literature at the sentence level.
[0007] (2) Pattern matching method
[0008] Pattern matching method refers to the process of searching for a certain pattern or rule in a text. Specific methods include basic string matching algorithms, regular expressions, finite automata, etc.
[0009] With the development of natural language processing technology, pattern matching methods have begun to be used for knowledge extraction and reasoning in the field of earth environment and scientific literature in the field of earth environment. In the scientific literature in the field of earth environment, there is generally a conventional format for describing the evolution process of scientific phenomena, the causes and results of scientific events, etc., which allows researchers to extract knowledge from the literature by establishing text matching patterns. For example, for texts describing climate change, a chronological matching pattern can be established to extract the age information involved in the paper, thereby inferring the occurrence period and duration of some climate events. In addition, by establishing a corresponding trigger word list, sentences about earth environment evolution events in the text can also be intercepted, thereby narrowing the text scope of knowledge extraction and helping to convert unstructured information into structured information.
[0010] Using pattern matching methods to process text data such as papers can not only save researchers’ reading and summarizing time, but also use the matched and extracted structured knowledge information for data mining, which helps to obtain new scientific conclusions. Taking paleoclimate change reconstruction as an example, information extraction technology is mainly used to automatically identify and extract key information (including geographic information, time information, meteorological events, meteorological parameters, etc.) from meteorological literature or historical data, and establish a structured paleoclimate database to support subsequent quantitative reconstruction and analysis of paleoclimate change.
[0011] (3) Knowledge Graph Method
[0012] On May 17, 2012, Google formally proposed the concept of Knowledge Graph, with the original intention of optimizing the results returned by the search engine and enhancing the quality and experience of user searches. It is essentially a semantic network that reveals the relationships between entities. Using the knowledge graph, information from a large amount of data can be extracted, integrated and structured to form a dedicated knowledge base to solve search and reasoning problems. The basic concepts of the knowledge graph include: ① Triple: The basic unit in the knowledge graph, consisting of a subject, a predicate and an object. For example, "(Albert Einstein, bornIn, Germany)" is a triple. ② Ontology: Defines the conceptual system and hierarchical structure of entities, relationships and attributes in the knowledge graph. Ontology helps to represent and organize knowledge in a more standardized way. ③ Entity: In the knowledge graph, it represents things that can be identified individually in the real world, such as people, places, events, etc. ④ Relationship: Describes the connection or connection between entities, and is the representation of edges in the knowledge graph. ⑤ Attribute: Describes the characteristics or properties of an entity, usually associated with the entity in the form of a key-value pair. ⑥Graph database: A database used to store and query knowledge graph data, which uses a graph structure to organize triples.
[0013] Using knowledge graphs is a common way to extract and reason about knowledge. The bibliometrics method mentioned above also belongs to the general category of knowledge graphs. The basic process of using knowledge graphs for knowledge extraction is as follows: ① Data collection: Collect and obtain data related to the knowledge graph, which can be structured data, semi-structured data or unstructured data. Data sources include text, databases, networks, etc. ② Data cleaning: Clean and preprocess the collected data, including deduplication, error correction, standardization and other operations to ensure data quality and consistency. ③ Entity recognition and relationship extraction: Use natural language processing and information extraction technology to extract entity and relationship information from text and construct it into triples. ④ Knowledge representation: Represent entities, relationships and attributes in the form of triples, and construct an ontology to define the conceptual system of entities, relationships and attributes. ⑤ Graph database storage: Select an appropriate graph database to store knowledge graph data as a graph structure. Commonly used graph databases include Neo4j, Amazon Neptune, etc. ⑥ Query and reasoning: Design and implement query interfaces to allow users to retrieve information in knowledge graphs through query languages. Inference engines can be used to derive new knowledge from known facts.
[0014] Existing technologies can complete knowledge extraction and reasoning tasks in some scenarios, but there are still objective defects. The following is an analysis and summary of each item.
[0015] (1) Technical defects of bibliometric methods.
[0016] Bibliometric methods can be used to summarize the development trends of disciplines, but when used for knowledge extraction, they mainly rely on the citation relationship between papers and the keywords set by the papers themselves, which is subjective and limited. Bibliometric methods cannot be applied to non-documentary knowledge, such as text information such as patents, technical reports, and blog posts. These forms of knowledge are easily overlooked in bibliometric methods and cannot be used for knowledge extraction. Bibliometric methods cannot obtain deep knowledge, such as experimental results and research data, which are crucial for research in the field of earth environment. In short, the main defect of bibliometrics comes from the fact that the underlying method is still a basic statistical method, which cannot perceive and understand the knowledge itself.
[0017] (2) Technical defects of the pattern matching method.
[0018] Although the pattern matching method is efficient, it still has serious defects in many scenarios. For example: ① It cannot handle ambiguous sentences. The pattern matching method often faces ambiguity when processing natural language text. The same pattern may match different entities or relationships, resulting in uncertainty in the extraction results. ② This method is limited by the setting of the template. The template matching method usually relies on fixed templates, while the actual text may show diversity and changes, which forces researchers to build a large number of matching patterns in advance for knowledge extraction. ③ Limited understanding of the text context. The pattern matching method is usually based on local patterns and has limited understanding of the overall context of the text. This makes the pattern matching method not effective for some knowledge that requires global information to be correctly extracted. ④ Limited generalization ability of entities and relationships. When dealing with some novel entities and relationships, the pattern matching method usually needs to manually design new patterns and lacks good generalization ability for unknown entities and relationships.
[0019] (3) Deficiencies of the knowledge graph approach.
[0020] The knowledge graph method can have many advantages in knowledge extraction, but it also has certain defects, mainly: ① The construction of knowledge graphs has a high data threshold, and it is necessary to generate knowledge networks when the data is complete. The iteration and update capabilities are weak, which requires users to ensure the quality of collected data and increase the difficulty of constructing knowledge graphs. ② The construction of knowledge graphs requires high data quality. If there are errors, noise or inconsistencies in the original data, the constructed knowledge graph will also be affected by these problems. Therefore, this will increase the cost of knowledge extraction and reduce efficiency. ③ The knowledge graph is mainly constructed based on known relationships and entities, but the relationships between many entities are implicit and difficult to extract directly from structured data. This causes some potentially useful information to be ignored.
[0021] Therefore, it is desired to have a technical solution to overcome or at least alleviate at least one of the above-mentioned defects of the prior art. Summary of the invention
[0022] The object of the present invention is to provide a method for obtaining key information of scientific and technological literature in the field of earth environment to overcome or at least alleviate at least one of the above-mentioned defects of the prior art.
[0023] One aspect of the present invention provides a method for obtaining key information of scientific and technological documents in the field of earth environment, the method comprising:
[0024] Acquire a text corpus, wherein the text corpus includes at least one scientific and technological document text information in the field of earth environment;
[0025] Obtain a language model trained for the earth environment domain;
[0026] Inputting the text information of each of the scientific and technological literature in the field of earth environment into the language model oriented to the field of earth environment respectively, so as to obtain knowledge information;
[0027] The knowledge information is normalized to obtain normalized knowledge information.
[0028] Optionally, acquiring a text corpus includes:
[0029] Construct data collection tasks;
[0030] Perform parallel collection according to the collection tasks, obtain the URL of each scientific and technological literature in the field of earth environment and send HTTP request to obtain the text content of the scientific and technological literature page in the field of earth environment and store it in memory;
[0031] Analyze the basic information of scientific and technological literature in various fields of earth environment;
[0032] Filter the stored scientific and technological literature in various fields of earth environment, so as to obtain filtered scientific and technological literature data in the field of earth environment;
[0033] A text corpus is constructed based on filtered scientific and technological literature data in the field of earth environment.
[0034] Optionally, constructing a text corpus based on filtered scientific and technological literature data in the field of earth environment includes:
[0035] Use a random forest machine learning model to perform binary classification on each filtered scientific and technological literature data in the field of earth environment, wherein the classification results output by the random forest machine learning model include high knowledge density, and select texts with high knowledge density as the extracted data set;
[0036] For some scientific and technological literature data in the field of earth environment in the extracted data set, entity categories for knowledge extraction are set and corpus annotation is performed.
[0037] Optionally, obtaining a trained language model for the earth environment field includes:
[0038] Obtain a GEO-DACM model, wherein the GEO-DACM model includes a BERT model, a bidirectional long short-term memory network model, and a conditional random field model;
[0039] Get training data;
[0040] The GEO-DACM model is trained using training data.
[0041] Optionally, the training of the GEO-DACM model using training data includes:
[0042] Using the common input form of the BERT model, add a [CLS] label to the beginning of each sentence, then convert it into a word number through a vocabulary comparison table, and input it into BERT in the form of a tensor for training;
[0043] Get the output tensor of the last hidden layer of BERT, which will be saved for use in downstream tasks;
[0044] Acquire a semantic feature matrix, wherein the semantic feature matrix includes a mean matrix;
[0045] Performing data dimensionality reduction processing on the tensor through a mean matrix, thereby obtaining a tensor after dimensionality reduction processing;
[0046] The tensor after dimension reduction is input into the BiLSTM-CRF combined model for training.
[0047] Optionally, the basic setting parameters of the BERT model include:
[0048] Network layers: 12;
[0049] Vector dimension: 768;
[0050] Optimizer: Adam;
[0051] Network parameter quantity: 110 million;
[0052] Initial learning rate: 5×10 -5 ;
[0053] Input text length: 512;
[0054] batch_size: 64;
[0055] The number of iterations is 30;
[0056] Blank data accounts for 30% of the total data;
[0057] Epochs: 30:
[0058] Dropout: 0.2.
[0059] Optionally, the normalizing the knowledge information to obtain normalized knowledge information includes:
[0060] The knowledge information is subjected to normalization processing of spatial information and normalization processing of temporal information.
[0061] Optionally, the normalizing of the spatial information of the knowledge information includes:
[0062] For the geographic information list in the knowledge information (LOC = [l1, l2, ..., ln ]) Call the acrgis interface in sequence to obtain l i The search result ANS = [A1, A2, ... A n ];
[0063] Let the current best result be Temp;
[0064] Traverse ANS, when Temp is empty, if A i If confidence ≤ 3 and the length of the bbox diagonal is less than 1000 km, then set Temp = A i ;
[0065] Continue to traverse ANS. When Temp is not empty, if there is A k Satisfy confidence_A k ≤3, and the length of the bbox diagonal is less than 1000km, then compare Temp with A k score value, if score_A k > score_Temp or confidence-A k <confidence-Temp, then let Temp=A k ;
[0066] When the traversal is completed, Temp is output as the best geographic information encoding result.
[0067] Optionally, the normalizing of the time information of the knowledge information includes:
[0068] By matching the dictionary of chronological marker words, the chronological unit of the knowledge information is determined and saved as Flag.
[0069] By matching the time unit dictionary, the time magnitude unit of the knowledge information is determined and saved as Dim.
[0070] For the time markers AD and CE in the knowledge information, regular expressions are used to match them in order according to the principle of priority of the AD calendar to obtain the starting year start and the ending year end of the period range;
[0071] For the time markers BP and BCE in the knowledge information, regular expressions are used to match them according to the principle of carbon 14 dating priority to obtain the time range endpoint values point1 and point2 of the original result;
[0072] If Flag = 'BP', the starting year of the period range is start = Dim*(1950-point1), and the ending year is end = Dim*(1950-point2); if Flag = 'BCE', the starting year of the period range is start = -Dim*point1, and the ending year is end = -Dim*point2;
[0073] Flag, start, and end are stored as normalized time information.
[0074] The present application also provides a device for acquiring key information of scientific and technological documents in the field of earth environment, and the device for acquiring key information of scientific and technological documents in the field of earth environment comprises:
[0075] A text corpus acquisition module, the text corpus acquisition module is used to acquire a text corpus, the text corpus includes at least one scientific and technological literature text information in the field of earth environment;
[0076] A language model acquisition module, wherein the language model acquisition module is used to acquire a trained language model for the earth environment field;
[0077] A knowledge information acquisition module, wherein the knowledge information acquisition module is used to input the text information of each of the scientific and technological literature in the field of earth environment into the language model oriented to the field of earth environment, so as to acquire knowledge information;
[0078] The standardized knowledge information acquisition module is used to perform standardized processing on the knowledge information, thereby acquiring standardized knowledge information.
[0079] The key information acquisition method of scientific and technological literature in the field of earth environment in this application establishes a set of intelligent knowledge acquisition method processes for scientific and technological literature in the field of earth environment, thereby improving the efficiency and accuracy of knowledge extraction. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] Figure 1 A flowchart of a method for acquiring key information from scientific and technological literature in the field of earth environment according to an embodiment of the present application.
[0081] Figure 2 An electronic device used to implement Figure 1 The method for obtaining key information from scientific and technological literature in the field of earth environment is shown.
[0082] Figure 3 yes Figure 1 The data acquisition diagram of the key information acquisition method of scientific and technological literature in the field of earth environment is shown.
[0083] Figure 4It is a schematic diagram of the process of simplifying ordinary entity relationship categories to attribute-based entity categories.
[0084] Figure 5 This is a schematic diagram of the GEO-DACM model structure.
[0085] Figure 6 It is the data flow diagram of model operation.
[0086] Figure 7 This is a diagram showing the effect of batch size on the F1 value of the model (iteration number 10).
[0087] Figure 8 This is a diagram showing the effect of batch size on the F1 value of the model (iteration number 20).
[0088] Fig. 9 This is a diagram showing the effect of batch size on the F1 value of the model (iteration number 30).
[0089] Fig.10 This is a schematic diagram of the relationship between the model F1 value and the number of iterations.
[0090] Fig.11 This is a schematic diagram of the impact of the blank data ratio on the model F1 value.
[0091] Fig.12 This is a schematic diagram of the results of global temperature change knowledge extraction.
[0092] Fig.13 This is a schematic diagram of the global warm period percentage sequence and Wilson confidence interval (confidence level 80%).
[0093] Fig.14 This is a schematic diagram of the knowledge extraction and reasoning results of global temperature changes from 1500 to 2000 AD. DETAILED DESCRIPTION
[0094] In order to make the purpose, technical scheme and advantages of the implementation of this application clearer, the technical scheme in the embodiment of this application will be described in more detail below in conjunction with the drawings in the embodiment of this application. In the drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The described embodiments are part of the embodiments of this application, not all of them. The embodiments described below with reference to the drawings are exemplary and are intended to be used to explain this application, and should not be construed as limitations on this application. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. The embodiments of this application are described in detail below in conjunction with the drawings.
[0095] It should be noted that, in the description of the present invention, the terms “first” and “second” are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0096] Figure 1 A flowchart of a method for acquiring key information from scientific and technological literature in the field of earth environment according to an embodiment of the present application.
[0097] like Figure 1 The key information acquisition method of the scientific and technological literature in the field of earth environment shown includes:
[0098] Step 1: obtaining a text corpus, wherein the text corpus includes at least one scientific and technological document text information in the field of earth environment;
[0099] Step 2: Obtain a trained language model for the earth environment field;
[0100] Step 3: Inputting the text information of each of the scientific and technological literature in the field of earth environment into the language model oriented to the field of earth environment respectively, so as to obtain knowledge information;
[0101] Step 4: Normalize the knowledge information to obtain normalized knowledge information.
[0102] The key information acquisition method of scientific and technological literature in the field of earth environment in this application establishes a set of intelligent knowledge acquisition method processes for scientific and technological literature in the field of earth environment, thereby improving the efficiency and accuracy of knowledge extraction.
[0103] In this embodiment, obtaining a text corpus includes:
[0104] Construct data collection tasks;
[0105] Perform parallel collection according to the collection tasks, obtain the URL of each scientific and technological literature in the field of earth environment and send HTTP request to obtain the text content of the scientific and technological literature page in the field of earth environment and store it in memory;
[0106] Analyze the basic information of scientific and technological literature in various fields of earth environment;
[0107] Filter the stored scientific and technological literature in various fields of earth environment, so as to obtain filtered scientific and technological literature data in the field of earth environment;
[0108] A text corpus is constructed based on filtered scientific and technological literature data in the field of earth environment.
[0109] For knowledge extraction tasks, the quantity and quality of data sets will have a profound impact on the final extraction results. Currently, most knowledge extraction methods focus on the organization and extraction of existing data, ignoring the important step of acquiring data, which leads to deviation from the goal and failure to grasp the core content. Therefore, in the data acquisition stage, the present invention specifically designs a data acquisition method for the earth environment field, which effectively solves the problems of incomplete and inaccurate data collection.
[0110] The data acquisition method implemented by the present invention has basic functions such as data location, data retrieval, data analysis, format conversion and storage. Specifically, it includes: real-time, stable and efficient collection of data from a specific source; analysis of the collected data and data format conversion; at the same time, the system has good portability, security, scalability, load balancing capability and easy maintenance. The logical flow chart of the acquisition method is shown in Figure 3 .
[0111] In this embodiment, it is necessary to construct a data collection task first. This part is implemented through a keyword combination algorithm. Taking the climate reconstruction in the field of earth environment as an example, this method constructs two types of keyword tables (A: theme class, B: time and space and data class) to form a collection task pool, and a screening word table as output control. The theme class keywords include 12 keywords with higher frequency of occurrence, namely temperature, precipitation, rainfall, drought, flood, dryness / wetness index, Palmer Drought Severity Index, monsoon, ice, snow, glacier, glacial. The time and space and data class keywords include 290 keywords with higher frequency of occurrence. When in use, it is necessary to combine the keywords in class A with the keywords in class B one by one to form 12 keyword matching groups characterized by the keywords in class A.
[0112] In this embodiment, parallel collection is performed according to the collection task, the URL of each scientific and technological document in the field of earth environment is obtained and an HTTP request is sent to obtain the text content of the scientific and technological document page in the field of earth environment and store it in the memory as follows:
[0113] Combined with the requests library in Python, the requests.get() function is used to first obtain the URL (Uniform Resource Locator) set of the webpage directory corresponding to the collection task and store it in the memory. Then, 12 collectors corresponding to the keyword matching group (Class A + Class B) are started respectively to obtain the URLs of all scientific and technological documents in the field of earth environment under the webpage directory and send HTTP requests to obtain the text content of the paper page and store it in the memory. In addition, the URLs and sequence identifiers of the acquired data are saved at the same time to prevent the collection from being interrupted due to network disconnection.
[0114] In this embodiment, the basic information of the works of various earth environment field scientific and technological literature obtained by parsing includes:
[0115] Use the BeautifulSoup module of python to parse out the basic information of each collected scientific paper. In this embodiment, the basic information of the work may include the author, DOI number, title, abstract, uniform resource locator, journal name, and publication date information.
[0116] In this embodiment, the basic information of the work can also be saved in a MySQL database. This step uses the pymysql module in Python. The columns of the established MySQL table are consistent with the data key names obtained by the parsing module.
[0117] Due to a few non-standard information in ResearchGate and network delays, some of the collected texts have problems. For example, some front-end codes were not removed, content other than the abstract was included, resulting in the text being too long, garbled characters, mixed languages, repeated content, etc. To address these issues, data cleaning was performed on the original data set and the extracted data set.
[0118] In this embodiment, data filtering is performed on each stored scientific and technological literature in the field of earth environment, so as to obtain filtered scientific and technological literature data in the field of earth environment, including:
[0119] ① Special symbol cleaning. Use regular expressions to clean the front-end tags (such as , b>) and other meaningless characters are removed.
[0120] ② Character encoding unification and language type screening. First, convert the text to "UTF-8" encoding, then traverse the text and remove the text summaries containing non-English characters.
[0121] ③ Limit the length of text. There may be an irregularity in the ResearchGate website that places the full text information in the abstract information, which will cause the abstract to contain the full text information, making the text too long. Therefore, texts with more than 2,000 words will also be removed.
[0122] ④ Screening for duplicate content. When crawling the web, using a uniform resource locator (URL) as a unique identifier for a text can prevent duplicate collection to a certain extent. However, this method cannot screen the literature information submitted repeatedly in ResearchGate. Therefore, it is necessary to traverse and screen the corpus to extract data with duplicate abstracts.
[0123] After data cleaning and processing, corpus construction is required to provide support for subsequent model layers.
[0124] In this embodiment, constructing a text corpus based on each filtered scientific and technological literature data in the field of earth environment includes:
[0125] The random forest machine learning model is used to classify the filtered scientific and technological literature data in the field of earth environment, and the text with higher knowledge density is obtained as the extracted data set.
[0126] In this embodiment, a random forest machine learning model is used to perform binary classification on each filtered scientific and technological literature data in the field of earth environment. The classification results output by the random forest machine learning model include high knowledge density, and the texts with high knowledge density are selected as the extracted data set. Taking the climate change theme as an example, the comparison between the original data set and the extracted data set is shown in Table 1.
[0127] Table 1 Statistical results of the data set
[0128]
[0129] Next, we will carry out the core part of corpus construction, corpus annotation. Corpus annotation is the basis for obtaining model training data. The main method is to select a small amount of text data, set the entity category for knowledge extraction, and then manually mark the text. The marked data will be stored in the format of "text unit-entity category". For scientific papers on the theme of climate change, the "location-period-climate characteristics" information contained in the abstract is the main conclusion of the article and the knowledge information that needs to be extracted. In order to improve the accuracy of time information extraction of different climate characteristics and simplify the process of extracting the corresponding relationship between time information and climate characteristics, combined with the characteristics of the text, this study proposes an attribute-based time entity classification method. The specific form is: based on climate characteristics as the classification basis, the internal structure of the time information entity is subdivided, so that the entity relationship is contained in the entity classification. This method can simplify the extraction process and is more targeted, thereby improving the efficiency of model training and extraction. Figure 4 The process of simplifying ordinary entity relationship categories to attribute-based entity categories is demonstrated.
[0130] Based on the analysis of research objectives and data characteristics, combined with the needs of important information integration in the field of earth environment, this method sets five categories of named entities, see Table 2. The last four period entities are consistent in their expression, and are mainly distinguished based on contextual relationships during data annotation.
[0131] Table 2 Five entity categories and their meanings
[0132]
[0133]
[0134] This method uses BIO tagging for corpus tagging. BIO tagging is a common method for sequence tagging. Its principle and form are relatively simple and can meet the requirements of most sequence annotations. BIO tagging divides the characters in each text into three categories: B-indicates the starting position of the named entity, I-indicates the inside or end of the named entity, and O-indicates non-entity characters. At the same time, according to the entity classification for different tasks, B- and I-labels will also indicate the entity category to which they belong. Taking this study as an example, using BIO tagging will have 11 label categories, including "B-DOC", "I-DOC", "B-COLD", "I-COLD", "B-WARM", "I-WARM", "B-DRY", "I-DRY", "B-WET", "I-WET", and "O". Table 3 shows the entity label categories and examples, and Table 4 shows an example of a text tagging result.
[0135] Table 3 Named entity categories and their corresponding labels
[0136]
[0137]
[0138] In order to improve the accuracy of data labeling, labeling principles are specified for each entity category to prevent inconsistent labeling standards, multiple labeling, or missing labeling.
[0139] In this embodiment, setting entity categories for knowledge extraction and performing corpus annotation on some scientific and technological literature data in the field of earth environment in the extracted data set includes:
[0140] ① For geographic location (LOC) entities, the target of labeling is the research area of this text. If there are geographic adjectives that are not related to the research area, they will not be labeled. If there are multiple levels of nested regional names, they need to be labeled separately. For example: "Siguniang Mountains of West Sichuan Plateau, China" should be labeled as "Siguniang Mountains", "Sichuan Plateau", "China". For non-research area information that appears in the text, it will not be labeled. If there are repeated geographic entities, they will all be labeled.
[0141] ② If the text contains the following descriptions of a time range, mark this time period as a cold period (COLD): it is clearly stated that the time range is cold, the temperature of the time range is lower than the average value of the research period, the time range has a cold winter or a cold spring, and other descriptions that can be classified as a cold period based on the context.
[0142] ③ If the text contains the following descriptions of a time range, mark this time period as a warm period (WARM): it clearly states that the time range is warm, the temperature in the time range is higher than the average value of the study period, the time range has a warm winter or warm spring, and other descriptions that can be classified as a warm period based on the context.
[0143] ④ If the text contains the following descriptions of a time range, mark this time period as a dry period (DRY): clearly indicating that the time range is dry or has reduced precipitation, the precipitation in this period is lower than the average of the study period, the water level in this time range drops, and other descriptions that can be classified as a dry period based on the context.
[0144] ⑤ If the text contains the following descriptions of a time range, mark this time period as a wet period (WET): clearly indicating that the time range is wet or precipitation increases, the precipitation in this period is higher than the average of the study period, the time range has a higher frequency of floods, and others that can be classified as a wet period based on the context.
[0145] ⑥ When marking the four types of period entities, it should be ensured that the marked four types of periods directly reflect the characteristics of the research area. For other information cited in the article, or proper noun information involving dryness, wetness, coldness and warmth, no marking is done.
[0146] In the example operation, 850 texts were randomly selected from the 5976 climate change texts in the extracted data set for annotation, and a total of 5379 entities were obtained. Among them, the number of geographic location (LOC) entities is the largest, reaching 1749. The number of entities for cold period (COLD) and warm period (WARM) are 879 and 844 respectively, and the number of dry period (DRY) and wet period (WET) are 1027 and 880 respectively. So far, all stages of the operation of building a text corpus have been completed.
[0147] In this embodiment, obtaining a trained language model for the earth environment field includes:
[0148] Obtain a GEO-DACM model, wherein the GEO-DACM model includes a BERT model, a bidirectional long short-term memory network model, and a conditional random field model;
[0149] Get training data;
[0150] The GEO-DACM model is trained using training data.
[0151] The model layer implemented by this method mainly builds a language combination model for the earth environment field: GEO-DACM based on the BERT pre-training model and the classic neural network model BiLSTM and CRF model. The structure of the model is as follows Figure 5 shown.
[0152] The GEO-DACM proposed in the present invention is a sequence annotation model that combines three models: BERT, bidirectional long short-term memory network (BiLSTM) and conditional random field (CRF). It is an improvement on the BERT-CRF model and can better capture the semantic and contextual information in the sequence. The main idea of the GEO-DACM model is to use the BERT model to extract the contextual feature representation of each word in the sentence, but in this part, the complete BERT output tensor is not used. Instead, the data dimension reduction is performed on the output tensor of the last layer of the model, and then the bidirectional LSTM is used to model the reduced context feature tensor, and finally the CRF model is used to annotate the sequence.
[0153] In the feature extraction part, similar to the BERT-CRF model, each word in the input sentence is first converted to its word vector representation, and then the BERT model is used to extract the context feature representation of each word. In the context modeling part, a bidirectional LSTM is used to encode each position in the sequence and model the previous and next context information, thereby better capturing the semantic and contextual information in the sequence.
[0154] The bidirectional LSTM can take the feature vector of each word as input, encode the front and back context information through the forward LSTM and the reverse LSTM respectively, and finally concatenate the outputs of the two directions to obtain the final output features. In the annotation prediction part, the CRF model is used to annotate the sequence, which can use context information and annotation constraints to improve the accuracy of sequence annotation.
[0155] In the GEO-DACM model, the CRF model takes the feature representation output by BiLSTM as input, uses multiple hidden states to model the labeling probability distribution of the sequence, and uses the back-propagation algorithm to train the model. In the prediction stage, the model labels the sequence based on the CRF model and outputs the labeling results for each word.
[0156] Compared with the BERT-CRF model, the GEO-DACM model models context information through bidirectional LSTM, which can better capture the semantic and context information in the sequence. Therefore, in various natural language processing tasks, the GEO-DACM model can have better performance, especially for tasks that require processing long texts. Compared with the commonly used knowledge extraction models, the model used in this method has a higher knowledge extraction accuracy.
[0157] In this embodiment, the training of the GEO-DACM model using training data includes:
[0158] The commonly used input form of the BERT model is adopted, and the [CLS] label is added to the beginning of each sentence, and then converted into a word number through a vocabulary comparison table, and input into BERT in the form of a tensor for training; specifically, this application still adopts the commonly used input form of the BERT model, and adds a [CLS] label to the beginning of each sentence, and then converts it into a word number through a vocabulary comparison table, and inputs it into BERT in the form of a tensor for training.
[0159] In this embodiment, the output tensor of the last hidden layer of BERT is obtained, and the tensor is saved for use in downstream tasks; specifically, a semantic feature matrix is obtained, and the semantic feature matrix includes a mean matrix; in a common BERT model, the output tensor is subjected to an Encoder operation to ultimately implement a text prediction or classification task. However, in order to continue to improve the model recognition efficiency, this method does not apply the direct output of BERT, but obtains the output of the last hidden layer of BERT. After being processed by the 12-layer Transformer architecture of the BERT model, the last output of the hidden layer is a high-dimensional tensor of shape (batch_size, sequence_length, hidden_size). This method will save the tensor for use in downstream tasks.
[0160] In this embodiment, the tensor is subjected to data dimensionality reduction processing through the mean matrix, thereby obtaining the tensor after dimensionality reduction processing; specifically, according to the characteristics of text features and model performance, the knowledge expression in the field of earth environment has a relatively clustered feature and has a certain correlation in semantic features, which makes it possible that the information contained in the high-dimensional tensor output by the hidden layer of the BERT model cannot be extracted in the downstream tasks. Therefore, when the BERT model and the BiLSTM model are combined, this method improves the efficiency of "semantic segmentation" and better preserves semantic information. In addition, after data dimensionality reduction, the model data input length of the downstream task will be reduced, thereby increasing the training speed of the model. The basic calculation process of this part using labeled data is as follows:
[0161] Prediction stage - semantic extraction of annotated data: Through multiple rounds of comparative training in the early stage, a model with high accuracy can be obtained for prediction in this stage. However, in order to further improve the prediction efficiency and enhance the model's grasp of text features, semantic extraction of annotated data is required in this stage, and a semantic feature matrix is generated for subsequent model prediction.
[0162] The calculation method is shown in Table 5:
[0163] Table 5
[0164]
[0165]
[0166] Prediction stage - Data dimensionality reduction combined with domain knowledge: This part combines the mean matrix obtained in the previous step to perform improved PCA dimensionality reduction on the text to be predicted, thereby reducing the dimension of the BERT output tensor and retaining the semantic features before data dimensionality reduction as much as possible. The main idea is: use Tmeans obtained in the previous step as a matrix containing semantic features, and each row represents a set of semantic features. Under this premise, when the model predicts a single text, the output tensor of the last hidden layer of BERT can be considered to represent the semantic features of this text to be predicted. By comparing and comparing the projection length of Tmeans, the similarity between the semantic features of the text and the domain knowledge can be obtained, thereby affecting the judgment criteria for data dimensionality reduction, so that its prediction results can better reflect the basic characteristics of domain knowledge. The specific operations are shown in Table 6:
[0167] Table 6:
[0168]
[0169]
[0170] The reduced-dimensional tensor is input into the BiLSTM-CRF combined model for training. Specifically, the reduced-dimensional data tensor is input into the BiLSTM-CRF combined model for training. After the operation of each hidden layer of the BiLSTM model and the constrained output of the CRF, a predicted sequence of the text is generated as the output of the entire GEO-DACM model.
[0171] The complete data flow when the model performs text prediction is as follows Figure 6 shown.
[0172] In this embodiment, the basic setting parameters of the BERT model include:
[0173] Network layers: 12;
[0174] Vector dimension: 768;
[0175] Optimizer: Adam;
[0176] Network parameter quantity: 110 million;
[0177] Initial learning rate: 5×10 -5 ;
[0178] Input text length: 512;
[0179] batch_size: 64;
[0180] The number of iterations is 30;
[0181] Blank data accounts for 30% of the total data;
[0182] Epochs: 30;
[0183] Dropout: 0.2.
[0184] The following is a detailed explanation of how to obtain each parameter:
[0185] This application uses Python language and PyTorch deep learning framework to configure and train the model. The experimental configuration such as server system environment and software version is shown in Table 7.
[0186] Table 7 Basic environment configuration
[0187]
[0188]
[0189] For the BERT part in the model, the basic network parameters and the parameters set by this method are shown in Table 8.
[0190] Table 8:
[0191]
[0192] After the model parameters and the hardware and software environment are set, the corpus data created in the input layer is passed to the model layer to train the model. After 30 epochs of training, the model reaches convergence.
[0193] In order to evaluate the quality of the model, this method uses precision, recall, and the comprehensive index F1 score that combines the two as experimental evaluation indicators. When calculating these evaluation indicators, it is necessary to calculate the confusion matrix. The specific calculation method is as follows:
[0194] ① Confusion matrix
[0195] The confusion matrix is a contingency table that describes the classification results. Each column represents the prediction of a category, and the total number of each column represents the total number of entities predicted to be of that category; each row represents the classification of the same entity, and the total number of each row represents the total number of entities of that category. Table 9 is an example of a confusion matrix for a multi-classification problem. The meaning of the first column is: There are a total of x1+y1+z1 A-class entities in the predicted results, and the number of entities whose true values are also category A (correct prediction) is x1. The meaning of the first row is: The number of data of category A entities in the true value is x1+x2+x3, of which x1 are correctly classified as category A.
[0196] Table 9 Confusion matrix for multi-classification problems
[0197]
[0198] ②Accuracy
[0199] Precision refers to the ratio of the number of entities correctly identified for a certain category to the total number of results identified as that category. A high precision means that the method has a strong ability to identify wrong samples, that is, it can prevent class B samples from being classified as A. The calculation method is:
[0200]
[0201] TP represents the number of correct recognitions, and FP represents the number of incorrect recognitions. Taking category A in Table 5.7 as an example, TP A =x1,FP A =y1+Z1.
[0202] ③Recall rate
[0203] The recall rate is also called the recall rate, which indicates the ratio of the number of entities of a certain category that are successfully identified to the total number in the actual data. A high recall rate means that the method has a strong ability to identify the correct samples and can effectively classify the correct samples. The calculation method is:
[0204]
[0205] Where FN represents the number of incorrect classifications of a category. Taking category A in Table 9 as an example, TP A =X1,FN A =x2+x3.
[0206] ④F1 value
[0207] The F1 value is the harmonic mean of the accuracy and recall. In actual calculations, there is a certain opposition between precision and recall, and they often affect each other. When the accuracy is high, the recall may be low, and vice versa. Therefore, the F1 value is used to indicate the robustness of the method. The higher the F1 value, the more robust the method, and the smaller the difference between the accuracy and recall. The F1 value in the named entity recognition task will directly reflect the quality of the model. The calculation methods of the single category and the overall F1 value are as follows:
[0208]
[0209]
[0210] In order to obtain the best model performance, this application conducted comparative experiments on multiple parameters and selected the best parameters as the final saved parameters of the model. In addition, in order to verify the quality of the model used by this method, this stage will simultaneously build a BERT-CRF model and a BERT-base model, use the same data for training and evaluation, and conduct a horizontal comparison. The following introduces the results of the comparative experiments conducted during the parameter adjustment process of this method.
[0211] ①The impact of batch size on the model
[0212] Batch size, or batch_size, refers to the number of samples used in each model training. Before model training, the data set is divided into multiple batches. During the training process, the samples of each batch will be input into the model for forward calculation and back propagation to update parameters, and the accuracy of the model will be improved through multiple iterations of training. The value of the batch size will affect the training speed and training effect of the model. A smaller batch_size will slow down the training speed, but it can make better use of the GPU's computing resources and better avoid overfitting. A larger batch_size can increase the training speed, but it may occupy a larger GPU memory and easily lead to insufficient memory problems. In order to explore the impact of batch size on the model, this section of the experiment selected different batch sizes for experiments while keeping other parameters unchanged. At the same time, considering the impact of the number of iterations (epochs) on the model, this section selected multiple combinations of batch sizes and iterations to determine the optimal batch size. The batch size is 16, 32, 64, 128, and 256 respectively, and group experiments are carried out when the number of iterations is 10, 20, and 30 respectively. The accuracy statistics of the three models are as follows: Figures 7 to 9 shown.
[0213] According to the results, it can be seen that when the number of iterations is 10, 20, and 30, the effect of setting the batch size to 64 is slightly better than other values. During the experiment, it was also found that when the batch_size value is too small, the training time will increase sharply, while the accuracy will decrease. After increasing the batch_size, a certain overfitting phenomenon occurred, that is, the accuracy on the training set is very high, but the accuracy on the test set is low. Analysis shows that these results are not only related to the properties of the model itself, but also to the training data used in this experiment: the training data used in this experiment is small in scale, and there is a shortcoming in supporting large-scale training. After comprehensively analyzing the various statistical results, it can be considered that when the batch_size value is 64, it can better balance the training speed and memory requirements, and can prevent the occurrence of overfitting to a certain extent.
[0214] The impact of the number of iterations on the model
[0215] The number of iterations (epochs) refers to the number of times the model iterates on the entire training dataset. Each iteration includes the training of one or more batches until the model learns the features and labels of all samples in the dataset. Such an iteration is called an epoch. If the number of iterations is too small, the model may not be able to fully learn the features in the training dataset, resulting in underfitting problems; if the number of iterations is too large, it may cause overfitting problems. Generally speaking, in the early epochs, the accuracy of the model will gradually increase, and will stabilize near a certain value as the number of iterations increases. Through the previous batch size comparison experiment, the value of batch_size is determined to be 64. On this basis, the number of iterations is set to 5, 10, 15, 20, 25, 30, 35, 40, 45, and 50 for training, and the results of the three models are recorded.
[0216] After experiments, different models all have an increasing accuracy trend in the first 20 epochs, and then fluctuate slightly within a certain range. Therefore, the optimal number of iterations for model training is 30. The changing trend of the F1 value of different models with the increase of iteration number is as follows: Fig.10 shown.
[0217] The impact of "blank data" on the model
[0218] After a preliminary inspection of the data to be annotated, it was found that a large part of the text did not contain the four period entity categories of cold, warm, dry, and wet, and even some texts did not contain any entity categories. This situation is more in line with the writing characteristics of scientific papers, because the text data used in this method are all paper abstracts, which mainly introduce the research location, research methods and overall results, and generally do not contain exact time information. Therefore, whether it is data annotation or later model application, there will be a large amount of text that does not contain any entity or only contains geographic location entities. This method calls this part of the text "blank data". For the field of climate change knowledge, extracting the specific period range with climate characteristics is the main task. The research value of blank data is low, but because blank data accounts for a high proportion of all data, it is necessary to add blank data during training to simulate the data composition of all data and improve the accuracy of the model.
[0219] After manually screening out a certain amount of blank data, we constructed training data sets with different blank data ratios and conducted multiple trainings with other parameters fixed. We set the batch size to 64 and the number of iterations to 30 for testing. The results showed that when the blank data set ratio was about 30%, the model accuracy was generally better. Therefore, we added 30% blank data when training the model. The impact of different blank data ratios on the F1 value of the model is shown in the figure below. Fig.11 shown.
[0220] After multiple rounds of comparative experiments on the model, the parameters of the BERT model are finally determined as shown in Table 10. The parameters in the table will be used when the model is saved later.
[0221] Table 10 Final model parameters
[0222]
[0223] After a series of parameter optimizations, the best model training results of the three models were finally obtained, as shown in Table 11.
[0224] Table 11:
[0225]
[0226] According to the experimental results, the BERT-BiLSTM-CRF model used in this method is superior to the other two models in terms of accuracy, recall and F1 value. Its F-1 value is 5.44% and 3.76% higher than that of BERT-base and BERT-CRF, respectively. After analysis, the reason is that the bidirectional long short-term memory network used can enhance the contextual connection on the basis of BERT, use the correlation of adjacent labels for entity recognition, and have better recognition performance for the cold and warm, dry and wet features and date information in some texts that belong to different sentences or are far apart, thereby improving various indicators to a certain extent.
[0227] After the model training is completed, it needs to be stored in the local hard disk for subsequent calls. The storage of the model is mainly to save the network parameters. Combined with the save function that comes with the PyTorch framework, the model parameters can be saved as a .pt format file, and then loaded through the load function when used. The space required for model storage in this method is about 500MB.
[0228] For example, the main function of the GEO-DACM model is to obtain the text sequence containing knowledge information extracted by the model layer, and then process it into information in a standard data format through post-processing, and then summarize and reason according to user needs. Here, this method is still explained using scientific papers related to climate change as an example. For scientific papers in the field of earth environment on topics such as climate change, after being processed by the model layer, the geographical location information, climate change period, and change characteristics will be intercepted. Table 12 shows the knowledge information extracted from a text after being processed by the model layer.
[0229] Table: 12 Example of model processing results:
[0230]
[0231] As can be seen from the above table, in this embodiment, after being processed by the GEO-DACM model, the knowledge information in the document is intercepted, but from the perspective of the underlying data format, the results currently obtained still have problems. The main ones are: ① The knowledge information of the extracted geographical location is still mainly administrative district names or geographical names. For subsequent analysis and research, it is necessary to convert it into spatial coordinate information. ② For the four characteristic period entities of warm, cold, dry, and humid, the extraction results of the model are only equivalent to intercepting part of the original text. Although the exact time range can be quickly obtained through manual interpretation, for large-scale data sets, intelligent and automated extraction methods are still needed to improve the efficiency of extracting normalized data from text. Therefore, in response to these problems, the output layer starts from both spatial information and temporal information and establishes an efficient data normalization method.
[0232] In this embodiment, the step of normalizing the knowledge information to obtain normalized knowledge information includes:
[0233] The knowledge information is subjected to normalization processing of spatial information and normalization processing of temporal information.
[0234] In this embodiment, the normalization of spatial information of the knowledge information refers to the location information obtained by the model. This method obtains information such as longitude and latitude by calling an open source geographic interface. At the same time, a data screening method is set in combination with the interface return data, so as to balance accuracy and ease of use. This method uses the ArcGis interface service to normalize spatial information. The use of this type of interface is to send the name of the geographical location to be queried to the interface server via an http request to obtain the parsing result. The return result of the ArcGis interface is shown in Table 13.
[0235] Table 13 ArcGIS interface return content:
[0236]
[0237] The geographic location information obtained by the output layer may have multiple results, so this method sets a data screening method to comprehensively evaluate the return value of each result to obtain the best result. In this embodiment, the spatial information normalization processing of the knowledge information includes:
[0238] For the geographic information list in the knowledge information (LOC = [l1, l2, ..., l n ]) Call the acrgis interface in sequence to obtain l i The search result ANS = [A1, A2, ... A n ];
[0239] Let the current best result be Temp;
[0240] Traverse ANS, when Temp is empty, if A i If confidence ≤ 3 and the length of the bbox diagonal is less than 1000 km, then set Temp = A i ;
[0241] Continue to traverse ANS. When Temp is not empty, if there is A k Satisfy confidence_A k ≤3, and the length of the bbox diagonal is less than 1000km, then compare Temp with A k score value, if score_A k > score_Temp or confidence_A k <confidence_Temp, then let Temp=A k ;
[0242] When the traversal is completed, Temp is output as the best geographic information encoding result.
[0243] In the processing flow, confidence is the confidence of the result. The smaller the value, the more accurate the result. Here, data not higher than 3 is taken as a reliable result. The value of score indicates the query matching degree in the database. This score has an important reference significance for the results of fuzzy search. After processing the above steps, the most representative longitude and latitude coordinates and the scope of the study area can be obtained.
[0244] In this embodiment, the model can extract the time information containing specific climate characteristics from the text, but because there are many ways to express time information in the original text, the time entity obtained only by the model cannot be directly converted into standard year information. This method creates a time information normalization processing flow to process the preliminary results of model layer recognition into normal year range information.
[0245] Specifically, after analyzing the extraction results of some texts, the following problems were summarized in the normalization of time information: (1) There are various ways to represent time information: for example, there are digital intervals, years, and centuries. (2) Different chronological units require specific conversion methods: the extraction results involving the time range after AD are generally expressed in AD (AD, CE), but there are also many results involving the time range before BC. Some of these results use BC and BCE as chronological markers, while others use the carbon 14 chronology (BP). If the time data format is to be unified, they need to be converted separately. (3) Diversity of symbol representation: Different papers have different descriptions of digital intervals. For example, there are tilde connectors (~) and dash connectors (-). (4) Differences in the format of time ranges: For time ranges expressed in numbers, some documents will abbreviate the year information, such as abbreviating 1965-1970 as 1965-70. At the same time, some documents abbreviate the period of two years with a backslash, such as writing 1965-1966 as 1965 / 66. (5) Diversity in numerical formats: In view of the writing habits of different researchers, there are multiple forms for writing numbers with more digits. For example, "11000BP" may have multiple forms such as "11000BP", "11,000BP", and "11'000BP". (6) Differences in the writing of chronological markers: For common chronological markers such as AD, BP, and BC, there are multiple ways of writing them due to reasons such as uppercase and lowercase letters, whether or not to add abbreviation periods (.), and spaces.
[0246] Based on the above analysis and combined with the model extraction result samples, this method summarizes the common year information expression paradigms and regular blocks in the text. The details are shown in Table 14.
[0247] Table 14 Common period expression patterns and corresponding regular expression blocks in this study:
[0248]
[0249]
[0250] In this embodiment, the normalization of the time information of the knowledge information includes: determining the year unit of the knowledge information by matching the year flag word dictionary and saving it as Flag. Determining the time magnitude unit of the knowledge information by matching the time unit dictionary and saving it as Dim.
[0251] For the time markers AD and CE in the knowledge information, regular expressions are used to match them in order according to the principle of priority of the AD calendar to obtain the starting year start and the ending year end of the period range;
[0252] For the time markers BP and BCE in the knowledge information, regular expressions are used to match them according to the principle of carbon 14 dating priority to obtain the time range endpoint values point1 and point2 of the original result;
[0253] If Flag = 'BP', the starting year of the period range is start = Dim*(1950-point1), and the ending year is end = Dim*(1950-point2); if Flag = 'BCE', the starting year of the period range is start = -Dim*point1, and the ending year is end = -Dim*point2;
[0254] Flag, start, and end are stored as normalized time information.
[0255] In this embodiment, after the normalized knowledge information is obtained in the above manner, the corresponding calculation method can be used for reasoning. Taking the climate change paper as an example, this method can distribute knowledge integration and reasoning in time and space dimensions.
[0256] ①Time dimension
[0257] After using this method to extract knowledge from papers on the topic of climate change, the main results obtained are the climate characteristics of different years. Therefore, this method uses a voting mechanism and combines Python's matplotlib module for knowledge integration and reasoning. By counting the number of climate characteristic results obtained in different years, a sequence of temperature and dry-wet changes can be generated. The results obtained in the example of this method are as follows Fig.12 shown.
[0258] Fig.12 The results of knowledge extraction of global temperature change (Figure a: resolution 10 years; Figure b: resolution 50 years).
[0259] In order to enhance the credibility of knowledge integration and reasoning, this method uses the Wilson confidence interval as a result evaluation method. The Wilson algorithm is a statistical method used to calculate the confidence interval of the binomial distribution. It is mainly used to estimate the confidence interval of the success rate when the sample size is small. The advantage of the Wilson confidence interval is that the confidence interval estimation for small samples is more accurate than the traditional method. In addition, the Wilson confidence interval does not require special processing of the number of successes or failures, so reasonable results can be obtained even in extreme cases. The Wilson algorithm is often used to calculate product evaluation scores, recommendation content relevance scores, etc.
[0260] ②Spatial Dimension
[0261] After the spatial information is normalized, this method can generate spatial dimension change information by combining information such as longitude and latitude coordinates with corresponding knowledge content. Taking the paper on climate change as an example, this method can use the extracted and processed information at this stage to generate spatial rows of temperature and precipitation changes, such as Fig.14 shown.
[0262] The present application also provides a key information acquisition device for scientific and technological literature in the field of earth environment, which comprises a text corpus acquisition module, a language model acquisition module, a knowledge information acquisition module and a normalized knowledge information acquisition module, wherein:
[0263] The text corpus acquisition module is used to acquire a text corpus, wherein the text corpus includes at least one scientific and technological document text information in the field of earth environment;
[0264] The language model acquisition module is used to obtain a trained language model for the earth environment field;
[0265] The knowledge information acquisition module is used to input the text information of each of the scientific and technological literature in the field of earth environment into the language model oriented to the field of earth environment, so as to acquire knowledge information;
[0266] The normalized knowledge information acquisition module is used to normalize the knowledge information, thereby acquiring normalized knowledge information.
[0267] Based on the existing methods, this application introduces the idea of "pre-trained model + pattern matching" for knowledge extraction and reasoning, which can not only improve the level of text understanding under complex semantics, but also take into account the speed of knowledge extraction and reasoning. Specifically, this method combines the advantages of different methods: using a pre-trained model can effectively reduce the cost of corpus construction, so that better model performance can be obtained with a small amount of annotated data; applying the pattern matching method to the output layer can hand over the task of identifying semantic rules to the pre-trained model, which can greatly reduce the number of preset patterns, save manual labor, and improve recognition efficiency.
[0268] In the model of this application, combined with the characteristics of scientific papers in the field of earth environment, a professional field paper collection process is constructed, including a field keyword table, an automated collection module, etc., which improves the hit rate of the knowledge collection stage and reduces manual labor. In addition, an attribute-based data annotation method is created. This method simplifies the more complicated standardized annotation steps in the past, is more targeted, and has the advantages of being easy to operate and reducing time and labor costs.
[0269] For the structure of the pre-trained model, this application combines the BERT, BiLSTM and CRF models through data processing, tensor dimensionality reduction and other means, and proposes a pre-trained model structure GEO-DACM for the earth environment field. After comparative experiments, the GEO-DACM model structure used in this method has better performance in the same data set and improves the accuracy of knowledge extraction.
[0270] In the corpus construction stage, the data collection method and mechanism created by this application, especially the keyword table, are original. In addition, this method proposes an attribute-based temporal entity classification method. For text data of various characteristic periods in the field of earth science, this model can be used to annotate data, thereby improving the efficiency of corpus construction.
[0271] In the stage of normalization of spatial and temporal information, this application has created normalization processes. Through the screening process created by this application, the best research scale and center position in a scientific paper can be screened out by combining multiple indicators at the spatial level. At the temporal level, this application has created a text matching mode that can efficiently extract data from the output layer results.
[0272] The GEO-DACM proposed in this application is superior to existing models in terms of efficiency and accuracy.
[0273] This application enhances the ability to understand text semantics during the knowledge extraction process. Existing solutions including bibliometrics, pattern matching and knowledge graphs can only obtain shallow semantics through methods such as text statistics or regularized extraction. However, there are various ways to describe text, and the meaning of the same text unit may be very different through different combinations. Therefore, the existing technical solutions may not only cause ambiguous understandings, but also fail to exhaust all text expression methods, which ultimately greatly affects the efficiency and accuracy of knowledge extraction. The present invention combines a powerful pre-trained language model to transfer the workload of deep semantic understanding to a large language model with billions of parameters, effectively reducing the user's workload.
[0274] Regarding the structure of the pre-trained model, this application finally established the BERT-BiLSTM-CRF model structure through comparative experiments. The performance of the method adopted by the present invention is better than that of the existing solutions in different evaluation indicators.
[0275] Overall, this application realizes a complete and efficient knowledge extraction and reasoning process for scientific papers in the field of earth science. It not only solves the problem of text semantic understanding in the knowledge extraction stage and improves the efficiency of use, but also realizes the extraction and standardized processing of data-based knowledge information, which is of great significance for the establishment of a more comprehensive earth science knowledge information database.
[0276] This application aims to establish a set of intelligent knowledge extraction and reasoning methods for scientific and technological literature in the field of earth environment to improve the efficiency and accuracy of knowledge extraction. The content includes: efficient construction method of scientific and technological corpus in the field of earth environment, knowledge extraction model GEO-DACM for the field of earth environment, and processing and reasoning methods of spatiotemporal data. The specific technical problems solved are:
[0277] (1) In current knowledge extraction methods, the impact of the quality of databases in specific fields on knowledge extraction results is often ignored. This method provides a new method for knowledge retrieval and corpus construction in the field of earth environment, thereby improving the accuracy and efficiency of data collection.
[0278] (2) In the knowledge extraction stage, existing methods are unable to capture the contextual relationship between text sentences. The present invention combines the existing models, and proposes a language model GEO-DACM (Data alignment composite model) for the earth environment field through model compounding and structural improvement, as well as the aforementioned corpus construction method, so as to improve the ability to understand text language in the process of knowledge extraction in this field and ensure the extraction quality in various complex situations.
[0279] (3) With existing technologies, the extracted information is often an "entity-relationship-entity" structure, and it is impossible to accurately obtain numerical information. To address this problem, the present invention combines operation processes such as pattern matching to achieve the acquisition, processing and reasoning of numerical information, thereby promoting the efficiency of multimodal knowledge extraction.
[0280] Figure 2 It is an exemplary structural diagram of an electronic device that can implement a method for acquiring key information of scientific and technological literature in the field of earth environment provided in accordance with an embodiment of the present application.
[0281] like Figure 2 As shown, the electronic device includes an input device 501, an input interface 502, a central processor 503, a memory 504, an output interface 505, and an output device 506. The input interface 502, the central processor 503, the memory 504, and the output interface 505 are interconnected through a bus 507, and the input device 501 and the output device 506 are connected to the bus 507 through the input interface 502 and the output interface 505, respectively, and then connected to other components of the electronic device. Specifically, the input device 501 receives input information from the outside, and transmits the input information to the central processor 503 through the input interface 502; the central processor 503 processes the input information based on the computer executable instructions stored in the memory 504 to generate output information, temporarily or permanently stores the output information in the memory 504, and then transmits the output information to the output device 506 through the output interface 505; the output device 506 outputs the output information to the outside of the electronic device for use by the user.
[0282] That is to say, Figure 2 The electronic device shown can also be implemented as comprising: a memory storing computer executable instructions; and one or more processors, which can implement the combination when executing the computer executable instructions. Figure 1 Describes a method for obtaining key information from scientific and technological literature in the field of earth environment.
[0283] In one embodiment, Figure 2 The electronic device shown can be implemented to include: a memory 504 configured to store executable program code; one or more processors 503 configured to run the executable program code stored in the memory 504 to execute the key information acquisition method of scientific and technological literature in the field of earth environment in the above-mentioned embodiment.
[0284] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0285] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0286] Computer readable media include permanent and non-permanent, removable and non-removable, and the media can be implemented by any method or technology to store information. The information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), data versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0287] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0288] In addition, it is clear that the word "comprising" does not exclude other units or steps. Multiple units, modules or devices stated in the device claim can also be implemented by one unit or the overall device through software or hardware. The words first, second, etc. are used to identify the name, not any specific order.
[0289] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes identified in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or the total flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0290] The processor referred to in this embodiment may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0291] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the device / terminal equipment by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0292] In this embodiment, if the module / unit integrated in the device / terminal equipment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by hardware related to computer program instructions. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device that can carry computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0293] It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. Although the present application is disclosed as above with preferred embodiments, it is not intended to limit the present application. Any person skilled in the art may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
[0294] Although the present invention has been described in detail above with general descriptions and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements may be made thereto based on the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all fall within the scope of protection claimed by the present invention.
Claims
1. A method for obtaining key information of scientific and technological literature in the field of earth environment, characterized in that: The key information acquisition method of the scientific and technological literature in the field of earth environment includes: Acquire a text corpus, wherein the text corpus includes at least one scientific and technological document text information in the field of earth environment; Obtain a language model trained for the earth environment domain; Inputting the text information of each of the scientific and technological literature in the field of earth environment into the language model oriented to the field of earth environment respectively, so as to obtain knowledge information; Normalizing the knowledge information to obtain normalized knowledge information; The obtaining of the text corpus comprises: Construct data collection tasks; Perform parallel collection according to the collection tasks, obtain the URL of each scientific and technological literature in the field of earth environment and send HTTP request to obtain the text content of the scientific and technological literature page in the field of earth environment and store it in memory; Analyze the basic information of scientific and technological literature in various fields of earth environment; Filter the stored scientific and technological literature in various fields of earth environment, so as to obtain filtered scientific and technological literature data in the field of earth environment; Construct a text corpus based on the filtered scientific and technological literature data in the field of earth environment; The step of constructing a text corpus based on filtered scientific and technological literature data in the field of earth environment includes: Use a random forest machine learning model to perform binary classification on each filtered scientific and technological literature data in the field of earth environment, wherein the classification results output by the random forest machine learning model include high knowledge density, and select texts with high knowledge density as the extracted data set; Set entity categories for knowledge extraction and perform corpus annotation for some scientific and technological literature data in the field of earth environment in the extracted data set; The step of obtaining a trained language model for the earth environment field includes: Obtain a GEO-DACM model, wherein the GEO-DACM model includes a BERT model, a bidirectional long short-term memory network model, and a conditional random field model; Get training data; Training the GEO-DACM model using training data; The training of the GEO-DACM model using training data includes: The commonly used input form of the BERT model is used. The [CLS] label is added to the beginning of each sentence, and then converted into word numbers through the vocabulary comparison table, and input into BERT in the form of tensors for training; Get the output tensor of the last hidden layer of BERT, which will be saved for use in downstream tasks; Acquire a semantic feature matrix, wherein the semantic feature matrix includes a mean matrix; Performing data dimensionality reduction processing on the tensor through a mean matrix, thereby obtaining a tensor after dimensionality reduction processing; The tensor after dimension reduction is input into the BiLSTM-CRF combined model for training; The basic setting parameters of the BERT model include: Network layers: 12; Vector dimension: 768; Optimizer: Adam; Network parameter quantity: 110 million; Initial learning rate: 5×10 -5 ; Input text length: 512; batch_size: 64; The number of iterations is 30; Blank data accounts for 30% of the total data; Epochs: 30; dropout: 0.2; The step of normalizing the knowledge information to obtain normalized knowledge information includes: Performing normalization processing of spatial information and normalization processing of temporal information on the knowledge information; The normalization processing of the spatial information of the knowledge information comprises: For the geographic information list LOC in the knowledge information, LOC = [l1, l2, ..., l n ] Call the acrgis interface in sequence to obtain l i The search result ANS = [A1, A2, ... A n ]; Let the current best result be Temp; Traverse ANS, when Temp is empty, if A i If the connection of the bbox is less than 3 and the length of the bbox diagonal is less than 1000 km, then set Temp = A i ; Continue to traverse ANS. When Temp is not empty, if there is A k Satisfy confidence_A k ≤3, and the length of the bbox diagonal is less than 1000km, then compare Temp with A k score value, if score_A k > score_Temp or connection_A k <confidence_Temp, then let Temp=A k ; When the traversal is completed, Temp is output as the best geographic information encoding result; In the processing flow, confidence is the confidence of the result. The smaller the value, the more accurate the result. Here, data not higher than 3 is taken as a reliable result. The score value indicates the query matching degree in the database.
2. The method for obtaining key information of scientific and technological literature in the field of earth environment according to claim 1, characterized in that: The normalization processing of the time information of the knowledge information includes: By matching the dictionary of chronological marker words, determine the chronological unit of knowledge information and save it as Flag; By matching the time unit dictionary, the time magnitude unit of the knowledge information is determined and saved as Dim; For the time markers AD and CE in the knowledge information, regular expressions are used to match them in order according to the principle of priority of the AD calendar to obtain the starting year start and the ending year end of the period range; For the time markers BP and BCE in the knowledge information, regular expressions are used to match them according to the principle of carbon 14 dating priority to obtain the time range endpoint values point1 and point2 of the original result; If Flag = 'BP', the starting year of the period range is start = Dim*(1950-point1), and the ending year is end = Dim*(1950-point2); if Flag = 'BCE', the starting year of the period range is start = -Dim*point1, and the ending year is end = -Dim*point2; Flag, start, and end are stored as normalized time information.
3. A device for acquiring key information of scientific and technological literature in the field of earth environment, characterized in that: The key information acquisition device of the scientific and technological literature in the field of earth environment includes: A text corpus acquisition module, the text corpus acquisition module is used to acquire a text corpus, the text corpus includes at least one scientific and technological literature text information in the field of earth environment; A language model acquisition module, wherein the language model acquisition module is used to acquire a trained language model for the earth environment field; A knowledge information acquisition module, wherein the knowledge information acquisition module is used to input the text information of each of the scientific and technological literature in the field of earth environment into the language model oriented to the field of earth environment, so as to acquire knowledge information; A normalized knowledge information acquisition module, wherein the normalized knowledge information acquisition module is used to normalize the knowledge information, thereby acquiring normalized knowledge information; The obtaining of the text corpus comprises: Construct data collection tasks; Perform parallel collection according to the collection tasks, obtain the URL of each scientific and technological literature in the field of earth environment and send HTTP request to obtain the text content of the scientific and technological literature page in the field of earth environment and store it in memory; Analyze the basic information of scientific and technological literature in various fields of earth environment; Filter the stored scientific and technological literature in various fields of earth environment, so as to obtain filtered scientific and technological literature data in the field of earth environment; Construct a text corpus based on the filtered scientific and technological literature data in the field of earth environment; The step of constructing a text corpus based on filtered scientific and technological literature data in the field of earth environment includes: Use a random forest machine learning model to perform binary classification on each filtered scientific and technological literature data in the field of earth environment, wherein the classification results output by the random forest machine learning model include high knowledge density, and select texts with high knowledge density as the extracted data set; Set entity categories for knowledge extraction and perform corpus annotation for some scientific and technological literature data in the field of earth environment in the extracted data set; The step of obtaining a trained language model for the earth environment field includes: Obtain a GEO-DACM model, wherein the GEO-DACM model includes a BERT model, a bidirectional long short-term memory network model, and a conditional random field model; Get training data; Training the GEO-DACM model using training data; The training of the GEO-DACM model using training data includes: The commonly used input form of the BERT model is used. The [CLS] label is added to the beginning of each sentence, and then converted into word numbers through the vocabulary comparison table, and input into BERT in the form of tensors for training; Get the output tensor of the last hidden layer of BERT, which will be saved for use in downstream tasks; Acquire a semantic feature matrix, wherein the semantic feature matrix includes a mean matrix; Performing data dimensionality reduction processing on the tensor through a mean matrix, thereby obtaining a tensor after dimensionality reduction processing; The tensor after dimension reduction is input into the BiLSTM-CRF combined model for training; The basic setting parameters of the BERT model include: Network layers: 12; Vector dimension: 768; Optimizer: Adam; Network parameter quantity: 110 million; Initial learning rate: 5×10 -5 ; Input text length: 512; batch_size: 64; The number of iterations is 30; Blank data accounts for 30% of the total data; Epochs: 30; dropout: 0.2; The step of normalizing the knowledge information to obtain normalized knowledge information includes: Performing normalization processing of spatial information and normalization processing of temporal information on the knowledge information; The normalization processing of the spatial information of the knowledge information comprises: For the geographic information list LOC in the knowledge information, LOC = [l1, l2, ..., l n ] Call the acrgis interface in sequence to obtain l i The search result ANS = [A1, A2, ... A n ]; Let the current best result be Temp; Traverse ANS, when Temp is empty, if A i If the connection of the bbox is less than 3 and the length of the bbox diagonal is less than 1000 km, then set Temp = A i ; Continue to traverse ANS. When Temp is not empty, if there is A k Satisfy confidence_A k ≤3, and the length of the bbox diagonal is less than 1000km, then compare Temp with A k score value, if score_A k > score_Temp or confidence_A k <confidence_Temp, then let Temp=A k ; When the traversal is completed, Temp is output as the best geographic information encoding result; In the processing flow, confidence is the confidence of the result. The smaller the value, the more accurate the result. Here, data not higher than 3 is taken as a reliable result. The score value indicates the query matching degree in the database.
Citation Information
Patent Citations
Domain term identification system and method used for electric power 95598 work order
CN108363691A
Text abstract automatic generation method and system oriented to field of geosciences
CN113935308A
Core personnel mining method and device based on information processing method and storage medium
CN115269816A
Knowledge extraction method for wide-area geographic information knowledge graph construction
CN115965020A
Key information extraction method based on fine annotation text, and apparatus and storage medium
WO2021203581A1
