A landslide hazard semantic information extraction method, device, equipment and medium

By obtaining the semantic relationship between landslide documents and indicators, optimizing the knowledge extraction model, and generating a landslide map database, the problem of difficulty and low accuracy in landslide disaster semantic information extraction is solved, and efficient extraction and in-depth analysis of landslide disaster information are achieved.

CN118469009BActive Publication Date: 2024-10-29CENT SOUTH UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410920430.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-29
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Existing landslide disaster monitoring and early warning methods do not fully consider domain knowledge, resulting in low depth and breadth of knowledge utilization, difficulty in extracting landslide disaster semantic information, and low accuracy.

Method used

By obtaining the semantic relationships of multiple landslide documents and indicators, the knowledge extraction model is used to extract true and false entity relationship triples from the documents, a difference and discrimination loss function is constructed for model optimization, and a landslide map database is generated for semantic information extraction.

Benefits of technology

It improves the comprehensiveness of landslide indicators and the accuracy of the knowledge extraction model, enhances the ability to identify erroneous relationships, and improves the accuracy and depth of landslide disaster semantic information extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118469009B_ABST
    Figure CN118469009B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of landslide monitoring, and provides a method, device, equipment and medium for extracting semantic information of landslide disasters. The method comprises: obtaining landslide literature, landslide indicators, and semantic relations; extracting landslide words from landslide literature, and annotating them to obtain true relation triples; extracting entity relation triples and generating error relation triples using a knowledge extraction model; constructing a difference loss function and a discrimination loss function based on the true relation triples, entity relation triples, and error relation triples, and obtaining a comprehensive loss function; optimizing the knowledge extraction model according to the comprehensive loss function, and obtaining the final relation triples using the optimized knowledge extraction model; constructing a landslide map database using the final relation triples; extracting semantic information from the landslide text to be extracted based on the landslide map database, and obtaining a semantic information extraction result. The method can improve the accuracy of landslide semantic information extraction and reduce the difficulty of extraction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of landslide monitoring, and in particular to a method, device, equipment and medium for extracting semantic information of landslide disasters. Background Art

[0002] Landslides, as a geological disaster with great harm, pose a serious threat to the safety of life and property of the people. Through the comprehensive use of multi-level technical means, the causes and mechanisms of geological disasters such as landslides are studied to answer the three questions of when, where and how they occur, and then assist in the monitoring and early warning of landslide disasters, which is of great significance for promoting disaster prevention and mitigation. In existing studies, data-driven statistical models or machine learning models are most widely used in landslide risk assessment and hazard warning. However, the suddenness, concealment and complexity of the disaster mechanism of landslides make landslide monitoring and early warning extremely difficult. Mathematical statistics methods are highly dependent on historical data and existing models, and the accuracy and generalization ability of the model are limited; complex machine learning models have high requirements for data quality and computing resources, and the efficiency of converting data into knowledge is low. At the same time, black box models lack interpretability.

[0003] With the development of air-space-ground integrated monitoring technology, it has become possible to obtain more comprehensive and detailed landslide information. On this basis, some scholars have proposed introducing prior knowledge into machine learning models. For example, a weighted information volume model is used to fuse the deformation characteristics of interferometric synthetic aperture radar (InSAR) to optimize the landslide susceptibility zoning results; critical rainfall thresholds are taken into account to warn the danger of landslides; consideration of slope instability mechanisms and mechanical mechanisms is added to the landslide stability evaluation model, and the quantitative evaluation of landslide stability is achieved by combining numerical simulation methods. Compared with pure data-driven models, these methods have improved accuracy and interpretability, but the knowledge rules introduced are too complex and usually only applicable to specific research problems. The computational cost of knowledge is high and the reusability is poor. In the context of the big data era, knowledge in different landslide research fields is separated, the existing results of landslide semantic relationship extraction are unclear, and there are still barriers to basic knowledge query, knowledge path extension, and related knowledge association, resulting in insufficient depth and breadth of knowledge use in landslide monitoring and early warning tasks.

[0004] Multi-source heterogeneous knowledge is contained in different data materials, especially scientific and technological literature. Scientific and technological literature is an expression of empirical knowledge obtained by experts and scholars through in-depth research on different types of landslides occurring in different periods and regions, and is an important source of knowledge in the field of landslides. Specifically in the field of landslides, research results based on knowledge extraction from scientific and technological literature are almost blank. Landslide monitoring and early warning require the guidance of credible knowledge, but the relevant knowledge is unclear and difficult to apply. For scientific and technological literature, an important data source, there are currently few results in the field of landslide disasters, and there is insufficient research on the extraction of high-level implicit information such as scientific discoveries and mechanism rules. At the same time, landslides involve multidisciplinary professional terms and domain knowledge, resulting in poor semantic information recognition and generalization capabilities of information knowledge extraction models.

[0005] Existing landslide disaster monitoring and early warning methods do not adequately consider domain knowledge, and the depth and breadth of knowledge utilization are low. Facing complex knowledge covering multiple aspects of information such as geology, topography, and hydrology, there is a lack of effective unified organizational means and easy-to-use high-confidence, deep-level knowledge, which leads to limitations in the accuracy of disaster prediction. In terms of knowledge acquisition, when extracting knowledge based on various forms of landslide scientific and technological literature data, there are problems such as difficult to define extraction rules, difficult to identify professional terms, and low extraction efficiency. It can be seen that there are problems such as difficulty in extracting semantic information of landslide disasters and low extraction accuracy. Summary of the invention

[0006] The present application provides a method, device, equipment and medium for extracting semantic information of landslide disasters, which can solve the problems of difficulty in extracting semantic information of landslide disasters and low extraction accuracy.

[0007] In a first aspect, an embodiment of the present application provides a method for extracting semantic information of a landslide disaster, and the method for extracting semantic information of a landslide disaster comprises:

[0008] Acquire multiple landslide documents, multiple landslide indicators, and the semantic relationship between every two landslide indicators; multiple landslide indicators include landslide event name, basic landslide attributes, landslide hazard factors, landslide disaster-prone environment, and landslide hazard-bearing body;

[0009] For each landslide document, multiple landslide words are extracted from the landslide document, and every two landslide words are labeled based on all landslide indicators and all semantic relations, so as to obtain multiple true relation triplets of the landslide document; the head entity and the tail entity of the true relation triplet are both the landslide words in the landslide document, and the relation of the true relation triplet is the true semantic relation between the head entity and the tail entity;

[0010] Based on all semantic relations, a knowledge extraction model is used to extract multiple entity relation triples from each landslide document, and multiple error relation triples corresponding to each entity relation triple are generated; the head entity and the tail entity of the entity relation triple are both landslide words in the landslide document, the relation of the entity relation triple is the semantic relation extracted by the knowledge extraction model, the head entity and the tail entity of the error relation triple are both landslide words in the landslide document, and the relation of the error relation triple is the wrong semantic relation between the head entity and the tail entity;

[0011] A difference loss function is constructed based on all true relation triplets and all entity relation triplets, and a discrimination loss function is constructed based on all entity relation triplets and all wrong relation triplets; the difference loss function is used to describe the difference between all true relation triplets and all entity relation triplets, and the discrimination loss function is used to describe the degree of discrimination between all entity relation triplets and all wrong relation triplets;

[0012] According to the difference loss function and the distinction loss function, a comprehensive loss function is obtained;

[0013] The knowledge extraction model is optimized according to the comprehensive loss function to obtain the optimized knowledge extraction model, and the optimized knowledge extraction model is used to obtain multiple final relationship triples of each landslide document; the head entity and the tail entity of the final relationship triple are both landslide words in the landslide document, and the relationship of the final relationship triple is the semantic relationship extracted by using the optimized knowledge extraction model;

[0014] A landslide map database is constructed using all final relation triples; multiple nodes of the landslide map database correspond one-to-one to landslide words in multiple final relation triples, and an edge between every two nodes of the landslide map database is a semantic relationship between the corresponding two landslide words;

[0015] The semantic information of the landslide text to be extracted is extracted based on the landslide map database to obtain the semantic information extraction result; the semantic information extraction result is used to describe the association information between the landslide text to be extracted and the landslide disaster.

[0016] Optionally, every two landslide words are labeled based on all landslide indicators and all semantic relations to obtain multiple true relation triplets of landslide literature, including:

[0017] For each landslide word, traverse every other landslide word in the landslide literature and perform the following steps:

[0018] Obtaining landslide indicators corresponding to landslide words, and obtaining landslide indicators corresponding to other landslide words;

[0019] The semantic relationship between the landslide index corresponding to the landslide word and the landslide index corresponding to other landslide words is taken as the target semantic relationship, and a real relationship triple is constructed based on the target semantic relationship;

[0020] The head entity in the true relation triple is a landslide word, the tail entity in the true relation triple is other landslide words, and the relation in the true relation triple is the target semantic relation.

[0021] Optionally, the difference loss function is:

[0022]

[0023] in, represents the value of the difference loss function, represents all true relation triples, Represents the probability that the relations in all entity-relation triples are correct;

[0024] The distinguishing loss function is:

[0025]

[0026]

[0027] in, represents the value of the distinguishing loss function, Represents the number of entity relationship triples, Indicates The weight of the entity relationship triplet, represents the edge threshold, represents the activation function, Indicates The score of the relation triplet, The relation triple is Entity relation triples or One error triplet corresponding to each entity-relation triplet, Indicates Among all the scores corresponding to the entity relationship triples, multiple scores that are greater than the score threshold, Indicates Among all the scores corresponding to the entity relationship triples, multiple scores that are less than or equal to the score threshold, Indicates All the original scores corresponding to the entity relationship triples, Indicates The original score of the relation triples, Indicates The original score of the relation triple, The relation triple is Entity relation triples or One error triplet corresponding to each entity-relation triplet, , Indicates entity relationship triples and The sum of the number of incorrect relation triples corresponding to entity relation triples, Represents a constant.

[0028] Optionally, the comprehensive loss function is:

[0029]

[0030] in, represents the value of the comprehensive loss function, Represents weight.

[0031] Optionally, the knowledge extraction model is optimized according to the comprehensive loss function to obtain an optimized knowledge extraction model, including:

[0032] Determine whether the value of the comprehensive loss function is less than or equal to the preset value of the loss function;

[0033] If so, the knowledge extraction model is used as the optimized knowledge extraction model;

[0034] Otherwise, adjust the parameters in the knowledge extraction model, and return to the step of extracting multiple entity-relationship triples from each landslide document based on all semantic relations using the knowledge extraction model, and generating multiple error-relationship triples corresponding to each entity-relationship triple.

[0035] Optionally, semantic information extraction is performed on the landslide text to be extracted based on the landslide map database to obtain semantic information extraction results, including:

[0036] Calculate the similarity between the landslide text to be extracted and the landslide words corresponding to each node in the landslide map database;

[0037] The landslide word with the greatest similarity is taken as the target landslide word;

[0038] Obtain all adjacent nodes of the node corresponding to the target landslide word in the landslide map database;

[0039] For each landslide indicator, perform the following steps:

[0040] Determine multiple numerical nodes corresponding to the landslide index from all adjacent nodes, and obtain a semantic information extraction result according to the value range of the landslide words corresponding to all numerical nodes and the semantic relationship between each numerical node and the target landslide word; the landslide word corresponding to the numerical node is a numerical value;

[0041] A plurality of text nodes corresponding to the landslide index are determined from all adjacent nodes, and a semantic information extraction result is obtained according to the frequency of occurrence of the landslide word corresponding to each text node in all text nodes, and the semantic relationship between each text node and the target landslide word; the landslide word corresponding to the text node is the text.

[0042] Optionally, calculating the similarity between the landslide text to be extracted and the landslide words corresponding to each node in the landslide map database includes:

[0043] By formula:

[0044]

[0045] Calculate the landslide text to be extracted With The similarity between the landslide words ;

[0046] in, , represents the number of nodes in the landslide map database, Indicates the landslide text to be extracted The word frequency vector of , Indicates the landslide text to be extracted The frequency of the first participle of Indicates the landslide text to be extracted The frequency of the second participle of Indicates the landslide text to be extracted No. The frequency of the word participle, Indicates The frequency vector of the landslide words, Indicates the landslide text to be extracted No. The frequency of the word participle.

[0047] In a second aspect, an embodiment of the present application provides a device for extracting semantic information of landslide disasters, comprising:

[0048] The first acquisition module acquires a plurality of landslide documents, a plurality of landslide indicators, and a semantic relationship between every two landslide indicators; the plurality of landslide indicators include a landslide event name, a landslide basic attribute, a landslide hazard factor, a landslide disaster-pregnant environment, and a landslide hazard-bearing body;

[0049] The annotation module extracts multiple landslide words from each landslide document, and annotates every two landslide words based on all landslide indicators and all semantic relations, thereby obtaining multiple true relation triples of the landslide document; the head entity and the tail entity of the true relation triple are both landslide words in the landslide document, and the relation of the true relation triple is the true semantic relation between the head entity and the tail entity;

[0050] A generation module, based on all semantic relations, uses a knowledge extraction model to extract multiple entity relation triples from each landslide document, and generates multiple error relation triples corresponding to each entity relation triple; the head entity and the tail entity of the entity relation triple are both landslide words in the landslide document, the relationship of the entity relation triple is the semantic relationship extracted by using the knowledge extraction model, the head entity and the tail entity of the error relation triple are both landslide words in the landslide document, and the relationship of the error relation triple is the wrong semantic relationship between the head entity and the tail entity;

[0051] The first construction module constructs a difference loss function based on all true relationship triples and all entity relationship triples, and constructs a discrimination loss function based on all entity relationship triples and all wrong relationship triples; the difference loss function is used to describe the difference between all true relationship triples and all entity relationship triples, and the discrimination loss function is used to describe the degree of discrimination between all entity relationship triples and all wrong relationship triples;

[0052] The second acquisition module acquires the comprehensive loss function according to the difference loss function and the discrimination loss function;

[0053] The optimization module optimizes the knowledge extraction model according to the comprehensive loss function to obtain the optimized knowledge extraction model, and uses the optimized knowledge extraction model to obtain multiple final relationship triples of each landslide document; the head entity and the tail entity of the final relationship triple are both landslide words in the landslide document, and the relationship of the final relationship triple is the semantic relationship extracted by using the optimized knowledge extraction model;

[0054] The second construction module uses all the final relationship triples to construct a landslide map database; multiple nodes of the landslide map database correspond one-to-one to the landslide words in the multiple final relationship triples, and the edge between every two nodes of the landslide map database is the semantic relationship between the corresponding two landslide words;

[0055] The semantic information extraction module extracts semantic information from the landslide text to be extracted based on the landslide map database to obtain the semantic information extraction result; the semantic information extraction result is used to describe the association information between the landslide text to be extracted and the landslide disaster.

[0056] In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for extracting semantic information of landslide disasters when executing the above-mentioned computer program.

[0057] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the above-mentioned method for extracting semantic information of landslide hazard is implemented.

[0058] The above solution of the present application has the following beneficial effects:

[0059] In an embodiment of the present application, a plurality of landslide documents, a plurality of landslide indicators, and a semantic relationship between every two landslide indicators are obtained, and then for each landslide document, a plurality of landslide words are extracted from the landslide document respectively, and every two landslide words are labeled based on all landslide indicators and all semantic relationships, so as to obtain a plurality of true relationship triples of the landslide document, and then based on all semantic relationships, a plurality of entity relationship triples are extracted from each landslide document using a knowledge extraction model, and a plurality of error relationship triples corresponding to each entity relationship triple are generated, and then based on all true relationship triples, all entity relationship triples are labeled, and the error relationship triples corresponding to each entity relationship triple are generated. A difference loss function is constructed based on all entity relationship triplets, and a discrimination loss function is constructed based on all entity relationship triplets and all error relationship triplets. Then, a comprehensive loss function is obtained according to the difference loss function and the discrimination loss function. Then, the knowledge extraction model is optimized according to the comprehensive loss function to obtain the optimized knowledge extraction model. The optimized knowledge extraction model is used to obtain multiple final relationship triplets of each landslide document. Then, all the final relationship triplets are used to construct a landslide map database. Finally, semantic information is extracted from the landslide text to be extracted based on the landslide map database to obtain the semantic information extraction result. Among them, obtaining five aspects of landslide indicators, including landslide event name, basic properties of landslide, landslide hazard factors, landslide disaster-pregnant environment, and landslide hazard-bearing body, can improve the comprehensiveness of landslide indicators and provide a comprehensive and detailed landslide knowledge system. Optimizing the knowledge extraction model based on the difference loss function and the discrimination loss function can simultaneously improve the accuracy of the knowledge extraction model in extracting entity relationship triples and the ability to distinguish erroneous relationships, thereby improving the accuracy of the final relationship triples. The semantic information extraction results obtained based on the final relationship triples with high accuracy can carefully and accurately reflect the correlation information between the landslide text to be extracted and the landslide disaster, reducing the difficulty of extraction while effectively improving the accuracy of semantic information extraction of landslide disasters.

[0060] Other beneficial effects of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0062] Figure 1 A flow chart of a method for extracting semantic information of landslide disasters provided in one embodiment of the present application;

[0063] Figure 2 A schematic diagram of a landslide indicator provided in an embodiment of the present application;

[0064] Figure 3 A schematic diagram of numerical nodes of slope provided in one embodiment of the present application;

[0065] Figure 4 A schematic diagram of a numerical curve of a slope provided in an embodiment of the present application;

[0066] Figure 5 A schematic diagram of the structure of a device for extracting semantic information of landslide disasters provided in one embodiment of the present application;

[0067] Figure 6 A schematic diagram of the structure of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0068] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0069] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0070] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0071] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0072] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0073] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0074] In view of the problems that the existing landslide disaster semantic information extraction is difficult and the extraction accuracy is low, the embodiment of the present application provides a landslide disaster semantic information extraction method, the landslide disaster semantic information extraction method obtains multiple landslide documents, multiple landslide indicators, and the semantic relationship between every two landslide indicators, and then respectively for each landslide document, extracts multiple landslide words in the landslide document, and annotates every two landslide words based on all landslide indicators and all semantic relationships to obtain multiple real relationship triples of the landslide document, and then based on all semantic relationships, uses a knowledge extraction model to extract multiple entity relationship triples from each landslide document, and generates a corresponding entity relationship triple for each entity relationship triple. Then, a difference loss function is constructed based on all true relationship triplets and all entity relationship triplets, and a discrimination loss function is constructed based on all entity relationship triplets and all error relationship triplets. Then, a comprehensive loss function is obtained according to the difference loss function and the discrimination loss function. Then, the knowledge extraction model is optimized according to the comprehensive loss function to obtain the optimized knowledge extraction model. The optimized knowledge extraction model is used to obtain multiple final relationship triplets of each landslide document. Then, all the final relationship triplets are used to construct a landslide map database. Finally, semantic information is extracted from the landslide text to be extracted based on the landslide map database to obtain the semantic information extraction result. Among them, obtaining five aspects of landslide indicators, including landslide event name, basic properties of landslide, landslide hazard factors, landslide disaster-pregnant environment, and landslide hazard-bearing body, can improve the comprehensiveness of landslide indicators and provide a comprehensive and detailed landslide knowledge system. Optimizing the knowledge extraction model based on the difference loss function and the discrimination loss function can simultaneously improve the accuracy of the knowledge extraction model in extracting entity relationship triples and the ability to distinguish erroneous relationships, thereby improving the accuracy of the final relationship triples. The semantic information extraction results obtained based on the final relationship triples with high accuracy can carefully and accurately reflect the correlation information between the landslide text to be extracted and the landslide disaster, reducing the difficulty of extraction while effectively improving the accuracy of semantic information extraction of landslide disasters.

[0075] Next, the landslide hazard semantic information extraction method provided in this application is exemplified.

[0076] like Figure 1 As shown, the landslide hazard semantic information extraction method provided in this application includes the following steps:

[0077] Step 11, obtaining a plurality of landslide documents, a plurality of landslide indicators, and a semantic relationship between every two landslide indicators.

[0078] The above-mentioned multiple landslide indicators include the name of the landslide event, the basic properties of the landslide, the landslide hazard factors, the landslide disaster-pregnant environment, and the landslide hazard-bearing body. The above-mentioned landslide literature can be literature related to landslides, such as news about landslide events, papers related to landslide disasters, etc.

[0079] In some embodiments of the present application, multiple landslide documents can be obtained by accessing a public website with landslide documents, and the landslide documents can be analyzed based on existing landslide knowledge to obtain multiple landslide indicators and the semantic relationship between every two landslide indicators.

[0080] For example, the name of a landslide event includes the name of a specific disaster event (such as a mountain landslide, submarine landslide, etc.); basic attributes include event attributes, landslide body attributes, landslide indicators such as time and space elements; landslide disaster factors include natural factors and human factors. Natural factors include landslide indicators such as rainfall and earthquakes, and human factors include landslide indicators such as excavation and unloading; landslide disaster-prone environments include four categories: shallow surface topography, deep underground geological conditions, meteorological water patterns, and social economy. The shallow surface topography includes landslide indicators such as elevation and slope, the deep underground geological conditions include landslide indicators such as mineral veins and porosity, the meteorological water patterns include landslide indicators such as soil moisture content, and the social economy includes landslide indicators such as road networks; landslide disaster-bearing bodies include landslide indicators such as the affected population, economic losses, and resource losses. Semantic relationships can be external, internal, threatening, similar, and coordinated.

[0081] Each landslide event name can be expressed as:

[0082]

[0083] in, Indicates the name of the landslide event. Indicates the basic properties of the landslide event corresponding to the landslide event name. Indicates the landslide hazard factor of the landslide event corresponding to the landslide event name, Indicates the landslide disaster-prone environment of the landslide event corresponding to the landslide event name. Indicates the landslide hazard-bearing body of the landslide event corresponding to the landslide event name.

[0084] In order to analyze the semantic relationship between every two landslide indicators, we can first analyze the impact of each landslide indicator on the occurrence of landslide disasters, such as landslide-cause-rainfall. Secondly, we can analyze the subordinate relationship of landslide indicators, such as landslide event name-basic attributes-occurrence time. Combining the two, we can get the accurate semantic relationship between the two landslide indicators. For example, rainfall as an external cause causes the landslide event corresponding to the landslide event name, and the basic attributes of the landslide event include the occurrence time. Then the semantic relationship between rainfall and occurrence time is an external cause.

[0085] It is worth mentioning that obtaining five aspects of landslide indicators, including landslide event name, basic properties of landslide, landslide hazard factors, landslide disaster-pregnant environment, and landslide hazard-bearing body, comprehensively considers the knowledge related to landslides, which can improve the comprehensiveness of landslide indicators and provide a comprehensive and detailed landslide knowledge system.

[0086] The above-mentioned landslide index is exemplified below with reference to a specific example.

[0087] like Figure 2 As shown in the figure, the landslide hazard factor related to landslide A is rainfall, the related landslide disaster-pregnant environment is groundwater, the related landslide hazard-bearing body is resource loss, the basic landslide attributes of the landslide event corresponding to landslide A include occurrence time and landslide type, the semantic relationship between rainfall and groundwater is change, and the arrows in the figure represent the types of semantic relationships or landslide indicators.

[0088] Step 12: for each landslide document, extract multiple landslide words from the landslide document, and annotate every two landslide words based on all landslide indicators and all semantic relations to obtain multiple true relation triplets of the landslide document.

[0089] The head entity and the tail entity of the above true relation triple are both landslide words in landslide literature, and the relationship of the true relation triple is the true semantic relationship between the head entity and the tail entity.

[0090] For each landslide document, the steps of extracting multiple landslide words from the landslide document and labeling every two landslide words based on all landslide indicators and all semantic relations to obtain multiple true relation triplets of the landslide document are as follows:

[0091] The first step is to extract multiple landslide words from landslide literature.

[0092] In some embodiments of the present application, the text and table in the landslide document can be extracted by tools such as PDF parsing library, optical character recognition technology and Tabula, and the landslide document can be converted into an operable text form. Due to the rich and diverse internal structure of the landslide document, different sections contain different information, and not all information is related to the landslide theme. Regular expression positioning, rule matching and other methods can be used to delete the invalid content in the landslide document, such as the title, English abstract, citation, etc. of the component aspect, the abstract formula, the picture of the expression of simplicity, the model method construction process, etc. of the content aspect. After screening out the effective content, the text of the effective content is split into single sentence forms, and the format, symbols, etc. are unified. At the same time, the name of the landslide event in the landslide document can be extracted by methods such as text analysis and keyword recognition, and added to the specified position of the effective content to obtain the landslide document after pretreatment.

[0093] Then, keyword extraction algorithms such as KeyBert can be used to extract multiple landslide words from the preprocessed landslide literature.

[0094] In the second step, every two landslide words are labeled based on all landslide indicators and all semantic relations to obtain multiple true relation triplets of landslide literature.

[0095] Specifically, for each landslide word, traverse each other landslide word in the landslide literature and perform the following steps:

[0096] First, the landslide index corresponding to the landslide word is obtained, and the landslide index corresponding to other landslide words is obtained.

[0097] Specifically, the landslide index corresponding to the landslide word can be obtained by analyzing the landslide word, and the landslide index corresponding to the landslide word can be obtained by analyzing other landslide words. For example, if the landslide word is "landslide A", which belongs to the name of the landslide event, then the landslide index corresponding to the landslide word is the name of the landslide event, and the other landslide word is "continuous heavy rain", which belongs to rainfall, then the landslide index corresponding to the other landslide word is rainfall.

[0098] Then, the semantic relationship between the landslide indicators corresponding to the landslide words and the landslide indicators corresponding to other landslide words is taken as the target semantic relationship, and a real relationship triple is constructed based on the target semantic relationship.

[0099] The head entity in the true relation triple is a landslide word, the tail entity in the true relation triple is other landslide words, and the relation in the true relation triple is the target semantic relation.

[0100] For example, open source data annotation tools such as Label-Studio can be used to annotate every two landslide words to obtain a true relationship triple. For example, in a single sentence "The cause of landslide A is rainfall", under the guidance of all landslide indicators and all semantic relationships, "landslide A" can be labeled as "landslide event name", "rainfall" can be labeled as "rainfall", and the semantic relationship between the landslide event name and rainfall is "disaster-causing", then the true relationship triple of <landslide A, disaster-causing, rainfall> is obtained.

[0101] It should be noted that, in order to solve the problems of semantic drift, missing extraction, and inaccurate noun position when extracting landslide words and obtaining real relation triples using algorithms and models due to insensitivity to the proper nouns in the landslide field, the synonym replacement method and part-of-speech transformation method can be used to replace the synonyms of the proper nouns in the landslide field. At the same time, in order to solve the problem that the number of real relation triples obtained may not meet the expectations due to the insufficient number of landslide documents, the sentence reorganization method can be used to reorganize the sentences in the preprocessed landslide documents to increase the amount of text when extracting landslide words and obtaining real relation triples.

[0102] It is worth mentioning that preprocessing of landslide literature can extract effective content from landslide literature and facilitate the acquisition of multiple landslide terms. At the same time, the real relationship triples obtained based on detailed and comprehensive landslide indicators and semantic relationships can accurately describe the relationship between landslide terms.

[0103] Step 13, based on all semantic relations, a knowledge extraction model is used to extract multiple entity relation triples from each landslide document, and multiple error relation triples corresponding to each entity relation triple are generated.

[0104] The head entity and tail entity of the above entity relationship triples are both landslide words in landslide literature, and the relationship of the entity relationship triples is the semantic relationship extracted by using the knowledge extraction model, such as: landslide A-disaster-rainfall. The head entity and tail entity of the error relationship triples are both landslide words in landslide literature, and the relationship of the error relationship triples is the wrong semantic relationship between the head entity and the tail entity, such as: landslide A-assistance-rainfall.

[0105] In some embodiments of the present application, the above-mentioned knowledge extraction model may be an improved Cascade Binary Relational Framework (CasRel) model. The improved CasRel model refers to a model obtained by replacing the semantic preprocessing module in the traditional CasRel model with an Enhanced Representation through kNowledge IntEgration (ERNIE) module for knowledge integration.

[0106] It should be noted that when the improved CasRel model is extracting, it first identifies the head entity in the landslide literature, and then obtains the tail entity related to the head entity according to the semantic relationship to be extracted. Specifically, the improved CasRel model divides the text into multiple vocabulary units and uses the formula:

[0107]

[0108]

[0109] Calculate the The probability that a word unit is the starting word of the head entity and The probability that a word unit is the end word of the head entity .

[0110] in, , and are training parameters, and are all bias terms, Indicates The encoding representation of vocabulary units, , Indicates the number of vocabulary units.

[0111] Then, using the nearest matching principle, the probability of each vocabulary unit being the start word of the head entity and the probability of each vocabulary unit being the end word of the head entity are matched to obtain multiple head entities.

[0112] Then through the formula:

[0113]

[0114]

[0115] Calculate the The probability that the word unit is the start word of the tail entity and The probability that the word unit is the end word of the tail entity .

[0116] in, and are training parameters, Indicates The average of the vectors of all vocabulary units in the head entity, and Both represent bias, , Indicates the number of header entities.

[0117] Then, using the nearest matching principle, the probability of each vocabulary unit being the start vocabulary of the tail entity and the probability of each vocabulary unit being the end vocabulary of the tail entity are matched to obtain multiple tail entities.

[0118] After obtaining the entity relationship triples, the improved CasRel model generates multiple error relationship triples corresponding to each entity relationship triplet. The number of error relationship triples is set according to the number of semantic relations. For example, the semantic relations include disaster-causing, assistance, internal cause, and external cause. The entity relationship triplet is landslide A-disaster-rainfall, and the corresponding three error relationship triplets are landslide A-assistance-rainfall, landslide A-internal cause-rainfall, and landslide A-external cause-rainfall.

[0119] Exemplarily, the improved CasRel model can be run on computer software to obtain multiple entity relationship triples and multiple error relationship triples.

[0120] It is worth mentioning that the ERNIE module helps to process long text sequences. Compared with the original language preprocessing module in the CasRel model, it is easier to capture long-distance semantic relations and is more adaptable to the actual situation in landslide-related literature. At the same time, using detailed and comprehensive semantic relations as the input of the improved CasRel model can effectively improve the comprehensiveness and accuracy of entity relationship triples.

[0121] Step 14: construct a difference loss function based on all true relation triplets and all entity relation triplets, and construct a discrimination loss function based on all entity relation triplets and all false relation triplets.

[0122] The above difference loss function is used to describe the difference between all true relation triplets and all entity relation triplets, and the discrimination loss function is used to describe the degree of distinction between all entity relation triplets and all incorrect relation triplets.

[0123] Specifically, the above difference loss function is:

[0124]

[0125] in, represents the value of the difference loss function, represents all true relation triples, Represents the probability that the relations in all entity-relation triples are correct.

[0126] It should be noted that the probability that the relationships in all the above entity relationship triples are correct can be obtained by analyzing whether the relationship in each entity relationship triple is correct, and calculating the proportion of entity relationship triples with correct relationships, and using the proportion as the above probability.

[0127] The above discrimination loss function is:

[0128]

[0129]

[0130] in, represents the value of the distinguishing loss function, Represents the number of entity relationship triples, Indicates The weight of the entity relationship triplet, represents the edge threshold, represents the activation function, Indicates The score of the relation triplet, The relation triple is Entity relation triples or One error triplet corresponding to each entity-relation triplet, Indicates Among all the scores corresponding to the entity relationship triples, multiple scores that are greater than the score threshold, Indicates Among all the scores corresponding to the entity relationship triples, multiple scores that are less than or equal to the score threshold, Indicates All the original scores corresponding to the entity relationship triples, Indicates The original score of the relation triples, Indicates The original score of the relation triple, The relation triple is Entity relation triples or One error triplet corresponding to each entity-relation triplet, , Indicates entity relationship triples and The sum of the number of incorrect relation triples corresponding to entity relation triples, Represents a constant.

[0131] It should be noted that the original scores of the above entity-relationship triples and wrong relationship triples are generated by the knowledge extraction model. For example, if the entity-relationship triple is <landslide, disaster, rainfall>, the knowledge extraction model generates an original score for the entity-relationship triple, indicating that the knowledge extraction model believes that the relationship "disaster" in the entity-relationship triple is correct. Then the score of the entity-relationship triple is calculated by the above calculation formula, and the output is a probability distribution value between 0 and 1. The above scoring threshold is a numerical value. For example, if the scoring threshold is 6, the corresponding relationship triple with a score greater than the scoring threshold can be considered to have a high probability of the relationship in the relationship triple being correct, and the relationship triple with a score less than or equal to the scoring threshold can be considered to have a low probability of the relationship in the relationship triple being correct.

[0132] Exemplarily, the difference loss function and the discrimination loss function can be constructed using computer software such as python.

[0133] It is worth mentioning that the difference loss function can describe the difference between true relation triples and entity relation triples, and the discrimination loss function can describe the degree of distinction between entity relation triples and incorrect relation triples, which is convenient for evaluating the performance of the knowledge extraction model in these two aspects.

[0134] Step 15: Obtain a comprehensive loss function based on the difference loss function and the discrimination loss function.

[0135] Specifically, the above comprehensive loss function is:

[0136]

[0137] in, represents the value of the comprehensive loss function, represents the weight, represents the value of the difference loss function, Represents the value of the discriminative loss function.

[0138] For example, the comprehensive loss function can be obtained using computer software such as python.

[0139] It is worth mentioning that the comprehensive loss function obtained based on the difference loss function and the discrimination loss function can simultaneously evaluate the discrimination ability of the knowledge extraction model and the authenticity of the entity relationship triples.

[0140] Step 16, optimizing the knowledge extraction model according to the comprehensive loss function to obtain an optimized knowledge extraction model, and using the optimized knowledge extraction model to obtain multiple final relationship triplets of each landslide document.

[0141] The head entity and the tail entity of the above-mentioned final relation triplet are both landslide words in the landslide literature, and the relationship of the final relation triplet is the semantic relationship extracted by using the optimized knowledge extraction model.

[0142] In some embodiments of the present application, the above steps of optimizing the knowledge extraction model according to the comprehensive loss function to obtain the optimized knowledge extraction model, and using the optimized knowledge extraction model to obtain multiple final relationship triples of each landslide document are specifically as follows:

[0143] The first step is to determine whether the value of the comprehensive loss function is less than or equal to the preset value of the loss function.

[0144] If so, the knowledge extraction model is used as the optimized knowledge extraction model.

[0145] Otherwise, adjust the parameters in the knowledge extraction model, and return to the step of extracting multiple entity-relationship triples from each landslide document based on all semantic relations using the knowledge extraction model, and generating multiple error-relationship triples corresponding to each entity-relationship triple.

[0146] Exemplarily, the value of the comprehensive loss function is 2.5, which is greater than the preset value of the loss function of 2, indicating that the performance of the knowledge extraction model at this time does not meet expectations. The parameters of the knowledge extraction model are adjusted, and multiple entity relationship triples and multiple error relationship triples are reacquired. At this time, the value of the comprehensive loss function is 1.8, which is less than the preset value of the loss function, indicating that the performance of the knowledge extraction model at this time meets expectations and is an optimized knowledge extraction model.

[0147] In the second step, the optimized knowledge extraction model is used to obtain multiple final relation triplets of each landslide document.

[0148] Specifically, for each landslide document, the optimized knowledge extraction model is used to identify multiple head entities in the landslide document. Then, for each head entity, the tail entity related to the head entity is obtained according to the semantic relationship to be extracted, and the corresponding semantic relationship is used as the final extracted semantic relationship to obtain the final relationship triple.

[0149] It is worth mentioning that optimizing the knowledge extraction model based on the difference loss function and the discrimination loss function can simultaneously improve the accuracy of the knowledge extraction model in extracting entity relationship triples and its ability to distinguish erroneous relationships, so that the performance of the knowledge extraction model meets expectations.

[0150] Step 17, construct a landslide map database using all final relation triples.

[0151] The multiple nodes of the landslide map database correspond one-to-one to the landslide words in the multiple final relationship triples, and the edge between every two nodes of the landslide map database is the semantic relationship between the corresponding two landslide words.

[0152] Exemplarily, a landslide map database may be constructed using computer software such as neo4j.

[0153] It is worth mentioning that the landslide map database constructed using all the final relationship triplets contains rich and comprehensive landslide words, and the semantic relationship information contained is accurate and realistic. At the same time, the construction of the landslide map database makes the information of landslide words and semantic relationships clear, which is easy to identify and study, thereby reducing the difficulty of semantic information extraction in subsequent steps.

[0154] Step 18, extracting semantic information from the landslide text to be extracted based on the landslide map database to obtain multiple semantic information extraction results.

[0155] The above semantic information extraction result is used to describe the association information between the landslide text to be extracted and the landslide disaster. The above landslide text to be extracted is the landslide text that needs to be extracted with relevant semantic information, such as "loess landslide".

[0156] In some embodiments of the present application, the steps of extracting semantic information from the landslide text to be extracted based on the landslide map database to obtain multiple semantic information extraction results are specifically as follows:

[0157] The first step is to calculate the similarity between the landslide text to be extracted and the landslide words corresponding to each node in the landslide map database.

[0158] Specifically, through the formula:

[0159]

[0160] Calculate the landslide text to be extracted With The similarity between the landslide words .

[0161] in, , represents the number of nodes in the landslide map database, Indicates the landslide text to be extracted The word frequency vector of , Indicates the landslide text to be extracted The frequency of the first participle of Indicates the landslide text to be extracted The frequency of the second participle of Indicates the landslide text to be extracted No. The frequency of the word participle, Indicates The frequency vector of the landslide words, Indicates the landslide text to be extracted No. The frequency of the word participle.

[0162] In the second step, the landslide words with the greatest similarity are taken as target landslide words.

[0163] The third step is to obtain all adjacent nodes of the node corresponding to the target landslide word in the landslide map database.

[0164] Step 4: For each landslide indicator, perform the following steps:

[0165] Multiple numerical nodes corresponding to the landslide index are determined from all adjacent nodes, and a semantic information extraction result is obtained according to the value range of the landslide words corresponding to all numerical nodes and the semantic relationship between each numerical node and the target landslide word. The landslide words corresponding to the numerical nodes are numerical values.

[0166] A plurality of text nodes corresponding to the landslide index are determined from all adjacent nodes, and a semantic information extraction result is obtained according to the frequency of occurrence of the landslide word corresponding to each text node in all text nodes, and the semantic relationship between each text node and the target landslide word. The landslide word corresponding to the above text node is text.

[0167] Exemplarily, the target landslide word is landslide, the landslide indicator is slope, and the multiple numerical nodes corresponding to the slope are "10°~50°", "5°~40°", and "20° to 45°", and the semantic relationships between the numerical nodes "10°~50°", "5°~40°", and "20° to 45°" and the target landslide word are all internal causes. The interval length is set to 30, and the interval interval is 10°, then it is divided into multiple value intervals such as "0°~30°", "10°~40°", etc. Among the multiple value intervals, the value interval with the most overlap among the above three numerical nodes is "10°~40°". According to the semantic relationship and the value interval with the most overlap, the semantic information extraction result is: the internal cause that easily causes landslide is the slope "10°~40°".

[0168] When the landslide indicator is land use type, the multiple text nodes corresponding to the land use type are "wasteland and forest land", "construction land", "grassland", "wasteland", "forest land", and "wasteland", and the semantic relationship between "wasteland and forest land", "grassland", "wasteland", "forest land", and "wasteland" and the target landslide words is disaster-causing. After word segmentation processing of the text nodes with the above semantic relationship of disaster-causing, the frequency of occurrence of each landslide word is counted, among which "wasteland" has the highest frequency of occurrence. The semantic information extraction result is: the land use type that is prone to landslide is wasteland.

[0169] It should be noted that the above semantic information extraction results can be used to analyze landslide disasters, facilitate the prediction and prevention of landslide disasters, and reduce social losses.

[0170] The above numerical nodes are exemplarily described below with reference to a specific example.

[0171] The slopes are screened in the landslide map database to obtain numerical nodes containing multiple slopes, such as Figure 3As shown, including "15°~22°", "40°~80°", "0~20", "<5°", "10°~45°", "15°~30°", "6°" and "25°~30°". The arrows in the figure indicate the relationship between the slope and each numerical node.

[0172] The slope value curve is as follows Figure 4 As shown in the figure, the horizontal axis represents the number of the numerical node of the slope, the vertical axis represents the slope value, and the vertical line represents the value range described by each numerical node.

[0173] It is worth mentioning that the semantic information extraction results obtained based on the information-rich and accurate landslide map database can carefully and accurately reflect the correlation information between the landslide text to be extracted and the landslide disaster, which reduces the extraction difficulty and effectively improves the accuracy of landslide disaster semantic information extraction.

[0174] The landslide hazard semantic information extraction method of the present application is exemplified below with reference to a specific experiment.

[0175] Multiple landslide literatures were obtained, and the landslide dataset constructed based on all the landslide literatures is shown in Table 1:

[0176] Table 1

[0177]

[0178] Among them, text represents text and label represents label.

[0179] According to the data set in Table 1, the landslide disaster semantic information extraction method of this application is used to obtain multiple final relationship triples and construct a landslide map database. Based on the Cypher query language, the nodes, edges and attributes in the landslide map database are queried. The event nodes, factor nodes, attribute nodes, and semantic relationships in the landslide map database are queried and matched through pattern matching, node and edge exact matching, attribute query and filtering syntax, and then the rules and knowledge contained in the landslide text are summarized. The query example is shown in Table 2:

[0180] Table 2

[0181]

[0182] Using the query statement in Table 2, we can obtain "loess landslide", "hydrodynamic landslide", "slope" related nodes, nodes connected to the "internal cause" relationship, etc., and use the landslide disaster semantic information extraction method of the present application to obtain multiple semantic information extraction results. After polishing each semantic information extraction result, the multiple semantic information extraction results obtained are:

[0183] Landslide disasters are basically distributed in areas with [slopes of 10° to 45°]; [rainfall] is the main factor causing landslides. [Short-term] and [high-intensity] rainfall will destroy the slope in a short period of time, leading to instability and landslides; the occurrence of [loess landslides] is usually related to [water infiltration], [groundwater changes], etc.; [hydrodynamic landslides] are usually related to [rainfall], [water level changes], [freeze-thaw action], [runoff erosion], etc.; [land use types] such as [bare land], [wasteland], and [grassland] are prone to causing landslides.

[0184] It can be seen from this that the landslide hazard semantic information extraction method of the present application can improve the accuracy of landslide hazard semantic information extraction and obtain accurate semantic information extraction results.

[0185] The landslide hazard semantic information extraction device provided in the present application is exemplarily described below.

[0186] like Figure 5 As shown, the embodiment of the present application provides a device for extracting semantic information of landslide disasters, and the device 500 for extracting semantic information of landslide disasters includes:

[0187] The first acquisition module 501 acquires a plurality of landslide documents, a plurality of landslide indicators, and a semantic relationship between every two landslide indicators; the plurality of landslide indicators include a landslide event name, a landslide basic attribute, a landslide hazard factor, a landslide disaster-pregnant environment, and a landslide hazard-bearing body;

[0188] The annotation module 502 extracts a plurality of landslide words from each landslide document, and annotates every two landslide words based on all landslide indicators and all semantic relations, thereby obtaining a plurality of true relation triples of the landslide document; the head entity and the tail entity of the true relation triple are both landslide words in the landslide document, and the relation of the true relation triple is the true semantic relation between the head entity and the tail entity;

[0189] Generating module 503, based on all semantic relations, extracts multiple entity relation triples from each landslide document using a knowledge extraction model, and generates multiple error relation triples corresponding to each entity relation triple; the head entity and the tail entity of the entity relation triple are both landslide words in the landslide document, the relation of the entity relation triple is the semantic relation extracted using the knowledge extraction model, the head entity and the tail entity of the error relation triple are both landslide words in the landslide document, and the relation of the error relation triple is the error semantic relation between the head entity and the tail entity;

[0190] The first construction module 504 constructs a difference loss function based on all true relationship triples and all entity relationship triples, and constructs a discrimination loss function based on all entity relationship triples and all erroneous relationship triples; the difference loss function is used to describe the difference between all true relationship triples and all entity relationship triples, and the discrimination loss function is used to describe the degree of discrimination between all entity relationship triples and all erroneous relationship triples;

[0191] A second acquisition module 505 acquires a comprehensive loss function according to the difference loss function and the distinction loss function;

[0192] The optimization module 506 optimizes the knowledge extraction model according to the comprehensive loss function to obtain an optimized knowledge extraction model, and uses the optimized knowledge extraction model to obtain multiple final relationship triples of each landslide document; the head entity and the tail entity of the final relationship triple are both landslide words in the landslide document, and the relationship of the final relationship triple is the semantic relationship extracted by using the optimized knowledge extraction model;

[0193] The second construction module 507 constructs a landslide map database using all the final relationship triples; the multiple nodes of the landslide map database correspond one-to-one to the landslide words in the multiple final relationship triples, and the edge between every two nodes of the landslide map database is the semantic relationship between the corresponding two landslide words;

[0194] The semantic information extraction module 508 extracts semantic information from the landslide text to be extracted based on the landslide map database to obtain a plurality of semantic information extraction results; the semantic information extraction results are used to describe the association information between the landslide text to be extracted and the landslide disaster.

[0195] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0196] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0197] like Figure 6 As shown, an embodiment of the present application provides a terminal device. The terminal device D10 of this embodiment includes: at least one processor D100 ( Figure 6 Only one processor is shown in the figure), a memory D101, and a computer program D102 stored in the memory D101 and executable on the at least one processor D100, wherein the processor D100 implements the steps of any of the above-mentioned method embodiments when executing the computer program D102.

[0198] Specifically, when the processor D100 executes the computer program D102, a plurality of landslide documents, a plurality of landslide indicators, and a semantic relationship between every two landslide indicators are obtained, and then for each landslide document, a plurality of landslide words are extracted from the landslide document, and every two landslide words are labeled based on all landslide indicators and all semantic relationships to obtain a plurality of true relationship triples of the landslide document, and then based on all semantic relationships, a plurality of entity relationship triples are extracted from each landslide document using a knowledge extraction model, and a plurality of error relationship triples corresponding to each entity relationship triple are generated, and then based on all true relationship triples, a plurality of error relationship triples are generated corresponding to each entity relationship triple. A difference loss function is constructed based on relation triples and all entity relation triples, and a discrimination loss function is constructed based on all entity relation triples and all error relation triples. Then, a comprehensive loss function is obtained based on the difference loss function and the discrimination loss function. Then, the knowledge extraction model is optimized based on the comprehensive loss function to obtain the optimized knowledge extraction model. The optimized knowledge extraction model is used to obtain multiple final relation triples of each landslide document, and then all the final relation triplets are used to construct a landslide map database. Finally, semantic information is extracted from the landslide text to be extracted based on the landslide map database to obtain the semantic information extraction result. Among them, obtaining five aspects of landslide indicators, including landslide event name, basic properties of landslide, landslide hazard factors, landslide disaster-pregnant environment, and landslide hazard-bearing body, can improve the comprehensiveness of landslide indicators and provide a comprehensive and detailed landslide knowledge system. Optimizing the knowledge extraction model based on the difference loss function and the discrimination loss function can simultaneously improve the accuracy of the knowledge extraction model in extracting entity relationship triples and the ability to distinguish erroneous relationships, thereby improving the accuracy of the final relationship triples. The semantic information extraction results obtained based on the final relationship triples with high accuracy can carefully and accurately reflect the correlation information between the landslide text to be extracted and the landslide disaster, reducing the difficulty of extraction while effectively improving the accuracy of semantic information extraction of landslide disasters.

[0199] The processor D100 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 any conventional processor, etc.

[0200] In some embodiments, the memory D101 may be an internal storage unit of the terminal device D10, such as a hard disk or memory of the terminal device D10. In other embodiments, the memory D101 may also be an external storage device of the terminal device D10, such as a plug-in hard disk, a smart memory card (SMC, SmartMedia Card), a secure digital (SD, Secure Digital) card, a flash card (Flash Card), etc. equipped on the terminal device D10. Further, the memory D101 may also include both an internal storage unit of the terminal device D10 and an external storage device. The memory D101 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory D101 may also be used to temporarily store data that has been output or is to be output.

[0201] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0202] An embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0203] If the integrated unit 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 application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. 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. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the landslide hazard semantic information extraction method device / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0204] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0205] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0206] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for extracting semantic information of landslide disasters, characterized in that: include: Acquire multiple landslide documents, multiple landslide indicators, and semantic relations between every two landslide indicators; the multiple landslide indicators include landslide event name, landslide basic attributes, landslide hazard factors, landslide disaster-pregnant environment, and landslide hazard-bearing body; For each landslide document, extract multiple landslide words from the landslide document, and annotate every two landslide words based on all landslide indicators and all semantic relations to obtain multiple true relation triplets of the landslide document; The head entity and the tail entity of the real relationship triple are both landslide words in the landslide literature, and the relationship of the real relationship triple is the real semantic relationship between the head entity and the tail entity; Based on all semantic relations, a knowledge extraction model is used to extract a plurality of entity relation triples from each of the landslide documents, and a plurality of error relation triples corresponding to each entity relation triple is generated; The head entity and the tail entity of the entity relationship triplet are both landslide words in landslide literature, the relationship of the entity relationship triplet is a semantic relationship extracted by using a knowledge extraction model, the head entity and the tail entity of the error relationship triplet are both landslide words in landslide literature, and the relationship of the error relationship triplet is an erroneous semantic relationship between the head entity and the tail entity; A difference loss function is constructed based on all true relationship triples and all entity relationship triples, and a discrimination loss function is constructed based on all entity relationship triples and all erroneous relationship triples; the difference loss function is used to describe the difference between all true relationship triples and all entity relationship triples, and the discrimination loss function is used to describe the degree of discrimination between all entity relationship triples and all erroneous relationship triples; Obtaining a comprehensive loss function according to the difference loss function and the discrimination loss function; The knowledge extraction model is optimized according to a comprehensive loss function to obtain an optimized knowledge extraction model, and a plurality of final relationship triplets of each landslide document are obtained by using the optimized knowledge extraction model; The head entity and the tail entity of the final relationship triplet are both landslide words in landslide literature, and the relationship of the final relationship triplet is a semantic relationship extracted by using the optimized knowledge extraction model; The landslide map database is constructed using all the final relationship triplets; The multiple nodes of the landslide map database correspond one-to-one to the landslide words in the multiple final relationship triples, and the edge between every two nodes of the landslide map database is the semantic relationship between the corresponding two landslide words; Extracting semantic information from the landslide text to be extracted based on the landslide map database to obtain a plurality of semantic information extraction results; the semantic information extraction results are used to describe the association information between the landslide text to be extracted and the landslide disaster; Among them, the difference loss function is: in, represents the value of the difference loss function, represents all true relation triples, Represents the probability that the relations in all entity-relation triples are correct; The discrimination loss function is: ; in, represents the value of the distinguishing loss function, Represents the number of entity relationship triples, Indicates The weight of the entity relationship triplet, represents the edge threshold, represents the activation function, Indicates The score of the relation triplet, The relation triple is the entity relationship triples or the One error triplet corresponding to each entity-relation triplet, Indicates the Among all the scores corresponding to the entity relationship triples, multiple scores that are greater than the score threshold, Indicates the Among all the scores corresponding to the entity relationship triples, multiple scores that are less than or equal to the score threshold, Indicates the All the original scores corresponding to the entity relationship triples, Indicates the The original score of the relation triples, Indicates the The original score of the relation triplet, The relation triple is the entity relationship triples or the One error triplet corresponding to each entity-relation triplet, , Indicates the entity relationship triples and the The sum of the number of incorrect relation triples corresponding to entity relation triples, Represents a constant.

2. The method for extracting semantic information of landslide disaster according to claim 1, characterized in that: The method labels every two landslide words based on all landslide indicators and all semantic relations to obtain multiple true relation triplets of the landslide literature, including: For each landslide word, traverse each other landslide word in the landslide literature and perform the following steps: Obtaining the landslide index corresponding to the landslide word, and obtaining the landslide index corresponding to the other landslide words; taking the semantic relationship between the landslide indicator corresponding to the landslide word and the landslide indicator corresponding to the other landslide words as the target semantic relationship, and constructing a real relationship triple based on the target semantic relationship; The head entity in the real relationship triple is the landslide word, the tail entity in the real relationship triple is the other landslide word, and the relationship in the real relationship triple is the target semantic relationship.

3. The method for extracting semantic information of landslide disaster according to claim 1, characterized in that: The comprehensive loss function is: in, represents the value of the comprehensive loss function, Represents weight.

4. The method for extracting semantic information of landslide disaster according to claim 1, characterized in that: The step of optimizing the knowledge extraction model according to the comprehensive loss function to obtain an optimized knowledge extraction model includes: Determine whether the value of the comprehensive loss function is less than or equal to a preset value of the loss function; If yes, the knowledge extraction model is used as the optimized knowledge extraction model; Otherwise, adjust the parameters in the knowledge extraction model, and return to the step of extracting multiple entity relationship triples from each of the landslide documents based on all semantic relations using the knowledge extraction model, and generating multiple error relationship triples corresponding to each entity relationship triple.

5. The method for extracting semantic information of landslide disaster according to claim 1, characterized in that: The semantic information extraction is performed on the landslide text to be extracted based on the landslide map database to obtain multiple semantic information extraction results, including: Calculating the similarity between the landslide text to be extracted and the landslide words corresponding to each node in the landslide map database; The landslide word with the greatest similarity is taken as the target landslide word; Acquire all adjacent nodes of the node corresponding to the target landslide term in the landslide map database; For each of the landslide indicators, the following steps are performed: Determine multiple numerical nodes corresponding to the landslide index from all adjacent nodes, and obtain a semantic information extraction result according to the value range of the landslide words corresponding to all numerical nodes and the semantic relationship between each numerical node and the target landslide word; the landslide word corresponding to the numerical node is a numerical value; A plurality of text nodes corresponding to the landslide indicator are determined from all adjacent nodes, and a semantic information extraction result is obtained according to the frequency of occurrence of the landslide word corresponding to each text node in all text nodes, and the semantic relationship between each text node and the target landslide word; the landslide word corresponding to the text node is a text.

6. The method for extracting semantic information of landslide disaster according to claim 5, characterized in that: The calculating the similarity between the landslide text to be extracted and the landslide words corresponding to each node in the landslide map database includes: By formula: Calculate the landslide text to be extracted With The similarity between the landslide words ; in, , represents the number of nodes in the landslide map database, Indicates the landslide text to be extracted The word frequency vector of , Indicates the landslide text to be extracted The frequency of the first participle of Indicates the landslide text to be extracted The frequency of the second participle of Indicates the landslide text to be extracted No. The frequency of the word participle, Indicates the The frequency vector of the landslide words, Indicates the landslide text to be extracted No. The frequency of the word participle.

7. A device for extracting semantic information of landslide disasters, characterized in that: include: The first acquisition module acquires a plurality of landslide documents, a plurality of landslide indicators, and a semantic relationship between every two landslide indicators; the plurality of landslide indicators include a name of a landslide event related to the landslide, basic attributes of the landslide, landslide hazard factors, landslide disaster-pregnant environment, and a landslide hazard-bearing body; A labeling module extracts a plurality of landslide words from each landslide document, and labels every two landslide words based on all landslide indicators and all semantic relations to obtain a plurality of true relation triplets of the landslide document; The head entity and the tail entity of the real relationship triple are both landslide words in the landslide literature, and the relationship of the real relationship triple is the real semantic relationship between the head entity and the tail entity; A generation module, based on all semantic relations, uses a knowledge extraction model to extract multiple entity relation triples from each of the landslide documents, and generates multiple error relation triples corresponding to each entity relation triple; The head entity and the tail entity of the entity relationship triplet are both landslide words in landslide literature, the relationship of the entity relationship triplet is a semantic relationship extracted by using a knowledge extraction model, the head entity and the tail entity of the error relationship triplet are both landslide words in landslide literature, and the relationship of the error relationship triplet is an erroneous semantic relationship between the head entity and the tail entity; The first construction module constructs a difference loss function based on all true relationship triples and all entity relationship triples, and constructs a discrimination loss function based on all entity relationship triples and all wrong relationship triples; the difference loss function is used to describe the difference between all true relationship triples and all entity relationship triples, and the discrimination loss function is used to describe the degree of discrimination between all entity relationship triples and all wrong relationship triples; A second acquisition module acquires a comprehensive loss function according to the difference loss function and the distinction loss function; An optimization module optimizes the knowledge extraction model according to a comprehensive loss function to obtain an optimized knowledge extraction model, and uses the optimized knowledge extraction model to obtain a plurality of final relationship triplets of each landslide document; The head entity and the tail entity of the final relationship triplet are both landslide words in landslide literature, and the relationship of the final relationship triplet is a semantic relationship extracted by using the optimized knowledge extraction model; The second building module uses all the final relationship triples to build the landslide map database; The multiple nodes of the landslide map database correspond one-to-one to the landslide words in the multiple final relationship triples, and the edge between every two nodes of the landslide map database is the semantic relationship between the corresponding two landslide words; A semantic information extraction module extracts semantic information from the landslide text to be extracted based on the landslide map database to obtain a semantic information extraction result; the semantic information extraction result is used to describe the association information between the landslide text to be extracted and the landslide disaster; The difference loss function is: in, represents the value of the difference loss function, represents all true relation triples, Represents the probability that the relations in all entity-relation triples are correct; The discrimination loss function is: ; in, represents the value of the distinguishing loss function, Represents the number of entity relationship triples, Indicates The weight of the entity relationship triplet, represents the edge threshold, represents the activation function, Indicates The score of the relation triplet, The relation triple is the entity relationship triples or the One error triplet corresponding to each entity-relation triplet, Indicates the Among all the scores corresponding to the entity relationship triples, multiple scores that are greater than the score threshold, Indicates the Among all the scores corresponding to the entity relationship triples, multiple scores that are less than or equal to the score threshold, Indicates the All the original scores corresponding to the entity relationship triples, Indicates the The original score of the relation triples, Indicates the The original score of the relation triplet, The relation triple is the entity relationship triples or the One error triplet corresponding to each entity-relation triplet, , Indicates the entity relationship triples and the The sum of the number of incorrect relation triples corresponding to entity relation triples, Represents a constant.

8. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for extracting semantic information of landslide hazard according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for extracting semantic information of landslide hazard according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Joint entity relationship extraction method and device and storage medium

    CN110598001A

  • Data verification method and device, electronic equipment and computer readable medium

    CN113127648A