A multi-granular urban rainstorm waterlogging knowledge graph construction method based on ontology
Through the ontology-based multi-granularity construction method and deep learning technology, the urban rainstorm and waterlogging knowledge map is extracted and stored in layers, which solves the problem of slow reasoning speed of the knowledge map, achieves fast and accurate disaster information acquisition, and supports emergency rescue decisions.
Patent Information
- Application Number
- CN202210846148.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-04
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-07-04
AI Technical Summary
Existing knowledge graphs have slow reasoning speed and limited accuracy when processing large amounts of public opinion data. Especially in urban rainstorm and waterlogging situations, it is difficult to quickly obtain valuable disaster information to support emergency rescue.
Using ontology-based multi-granularity construction methods, by dividing the ontology system, building multi-granularity knowledge graph pattern layers, performing knowledge extraction and data storage, combined with granular computing theory to stratify the locations of urban heavy rain and waterlogging events, using deep learning and attention The force mechanism extracts entities and relationships and maps them to the Neo4j graph database to achieve rapid reasoning.
While ensuring the accuracy of knowledge graph reasoning, it significantly improves the reasoning speed, solves the limitations of traditional knowledge graphs in global reasoning, and can quickly obtain valuable disaster information to support emergency decision-making.
Smart Images

Figure CN115114455B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of knowledge graph construction, and more specifically, particularly relates to an ontology-based multi-granularity urban rainstorm waterlogging knowledge graph construction method. Background Art
[0002] In summer, torrential rains are prone to cause urban waterlogging in my country, which poses a serious threat to the safety of people and property. It is necessary to quickly obtain valuable disaster information in a short period of time to provide decision-making information support for rapid emergency rescue. Knowledge graphs are a simple and effective way to store knowledge. Geological knowledge graphs have multi-scale spatiotemporal characteristics and geological mechanisms. It is very important to study how to use geological knowledge graphs to quickly mine and infer useful disaster information from rich public opinion data.
[0003] At present, there are two main ways to construct knowledge graphs: top-down and bottom-up. Existing research generally chooses a combination of the two, that is, to construct the model layer of the knowledge graph from top to bottom and to construct the data layer from bottom to top. Ontology mainly explains and summarizes things in the objective world. Ontology construction is a complex process, and there is no unified and universal construction method. Currently, there are mainly:
[0004] (1) Seven-step method: determine scope, consider reuse, list terms, define classes, define attributes, define constraints and create instances, a total of 7 steps. This method is highly versatile, mature and widely used, but there is no evaluation of ontology; (2) IDEF5 method: use diagram language and detailed description language to build an ontology for a certain field. The specific process is organization and scope, data collection, data analysis, initial ontology construction, and ontology improvement. This method complements other methods in the IDEF series, but lacks specific techniques and methods. It is not a relatively complete ontology development method; (3) Skeleton method: a method specifically used to build enterprise ontology; (3) TOVE method: the purpose is to build an ontology for the Toronto Virtual Enterprise; (4) Methontology method: mainly used to create chemical ontology.
[0005] A large amount of public opinion data in a short period of time makes the generated knowledge graph data huge, which poses a challenge to the reasoning speed. After reviewing the literature and summarizing, there are three main directions of existing research: graph shrinking, sparse sampling, and stratification. (1) Graph shrinking: that is, after the graph is formed, the knowledge graph is coarsened. One way to shrink the graph is based on grouping or aggregation; another way is to consider the similarity between nodes with the same central node and perform a neighbor reduction algorithm to reduce the amount of calculation. However, graph coarsening will lose important node information, which is not friendly to reasoning accuracy; (2) Sparse sampling: Graph sampling based on sparsification is applied to the knowledge graph. Specifically, in the process of knowledge extraction, various technologies are used to selectively delete fewer "important" nodes or edges to simplify the input knowledge graph, which will also lose important node information. (3) Hierarchy: Semantic hierarchies are ubiquitous in knowledge graphs. For a given triple, the semantics determines the level of the entity's category. For example, in the semantic hierarchical method based on spherical coordinate modeling, the length part represents different levels, and the angle part represents entities in a parallel relationship at the same level. However, its adaptability is limited, and not all triples are suitable for hierarchicalization. Summary of the invention
[0006] The purpose of the present invention is to solve the shortcomings existing in the prior art. The reasoning process first searches in coarse-grained breadth and then searches in fine-grained depth, thereby effectively improving the speed of reasoning while ensuring the accuracy of knowledge graph reasoning, and solving the problem that traditional knowledge graphs are limited to global reasoning of the entire knowledge graph.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A multi-granularity urban rainstorm waterlogging knowledge graph construction method based on ontology includes the following steps:
[0009] S1. Divide the ontology system, define the concepts and categories of the divided ontology category system, and build the knowledge graph model layer. The ontology is the concept template of the structured knowledge base. Use prior knowledge to divide the ontology system; divide the divided ontology into second and third level categories under the first level category, define the relationship between entities, and form a good concept hierarchy knowledge system;
[0010] S2. Multi-granularity stratification of urban rainstorm waterlogging locations, building a multi-granularity knowledge graph model layer, taking the locations of urban rainstorm waterlogging events as the main nodes, stratifying the locations, and connecting the locations at each layer with relationships;
[0011] S3. Extract knowledge from data. Knowledge extraction is to extract concepts, entities, relationships between them, attributes and other knowledge elements existing in multi-source data. It is divided into named entity recognition and relationship extraction. The extracted entities and relationships are mapped to the pattern layer to form triple data.
[0012] S4. Store the obtained triple data in the Neo4j graph database and construct a multi-granularity urban rainstorm waterlogging knowledge graph based on ontology.
[0013] Preferably, the S1 further includes the following steps:
[0014] S101. Divide the ontology system: Based on the knowledge graph reasoning theory and the characteristics of rainstorm waterlogging warning, the urban rainstorm waterlogging knowledge graph focuses on three core elements: urban waterlogging disaster events, disaster data, and disaster reasoning tasks;
[0015] S102. Subdivide the divided ontology category system into concepts and categories to complete the construction of the entity model layer.
[0016] Preferably, the step S102 includes the following steps:
[0017] S1021. Based on the theory of simple event model, six elements of urban rainstorm waterlogging events are obtained: the six elements of simple event model "5W1H", on the basis of "5W1H" (what, who, when, where, why and how), the "who" element is deleted and the "degree" element is added, that is, the name of waterlogging disaster, time, place, cause, degree of disaster, and warning of the next waterlogging event;
[0018] S1022. With reference to the theory of natural disaster system, five categories of urban rainstorm waterlogging event attribute descriptions are obtained: According to the theory of natural disaster system, disaster-causing factors, disaster-pregnant environment, and disaster-bearing bodies constitute the regional disaster system, and the three interact to produce disasters. Combined with relevant national standards such as natural disaster disaster-bearing body classification and code, natural disaster disaster statistics, etc., the attributes of urban rainstorm waterlogging disaster events are described from five aspects: basic attributes of disaster events, disaster-causing factors, disaster-pregnant environment, disaster-bearing bodies, and disaster information;
[0019] S1023. Subdivide the concepts and categories of entities in the knowledge graph ontology system to complete the construction of the event pattern layer. Based on the six elements of urban rainstorm waterlogging events and five categories of attribute descriptions, subdivide the concepts and categories of the three core elements of urban waterlogging disaster events, disaster data, and disaster reasoning tasks;
[0020] S1024. Define the association relationship between entities, and combine it with the entity pattern layer to complete the construction of the urban rainstorm waterlogging knowledge graph pattern layer: The association relationship between entities mainly includes five types: parallel relationship, hierarchical relationship, whole-part relationship, correlation relationship and causal relationship. Each type contains multiple words to describe the corresponding relationship, so as to extract accurate relationship description based on sentence representation, and combine it with the entity pattern layer in step S1023 to complete the construction of the urban rainstorm waterlogging knowledge graph pattern layer.
[0021] Preferably, the subdivision of the concepts and categories of the three core elements of urban waterlogging disaster events, disaster data, and disaster reasoning tasks in S1023 includes: (1) the urban waterlogging disaster event entity is divided into two levels of categories: location, time, disaster cause, and disaster severity; the time attribute is divided into three levels of categories: start time, duration, end time, and ongoing time; the disaster cause attribute is divided into three levels of categories: topography, meteorology, and hydrology; the disaster severity is divided into three levels of categories: population trapped and casualties, house damage, and road facility damage;
[0022] (2) Disaster data is divided into two categories: Weibo public opinion data, administrative division maps, and regional basic information according to different data sources.
[0023] (3) The disaster situation reasoning task is divided into two levels: the next waterlogging event warning and the secondary disaster prediction in the disaster area. The next waterlogging event warning is divided into three levels: location, occurrence time, and occurrence probability; the secondary disaster prediction in the disaster area is divided into three levels: secondary disaster type, occurrence time, and occurrence probability.
[0024] Preferably, step S2 comprises the following steps:
[0025] S201. The basis for the stratification of multi-granularity knowledge graphs: Based on the spatiotemporal characteristics of the geoscience knowledge graph, the granular computing theory is applied to the geographical locations of the geoscience knowledge graph to stratify the locations of urban rainstorm waterlogging events;
[0026] S202. Based on the stratification basis, the geographical locations are stratified into multiple granularities to construct a multi-granularity urban rainstorm waterlogging knowledge graph pattern layer: Based on the stratification basis described in step S201, the locations of urban waterlogging events are divided into four location sequences of different location granularities: district level, street level, precisely locatable locations, and physical lines. Thus, based on the urban rainstorm waterlogging knowledge graph pattern layer, the geographical locations are stratified to construct a multi-granularity urban rainstorm waterlogging knowledge graph pattern layer.
[0027] Preferably, the stratification of the locations of urban rainstorm waterlogging events in S201 should meet the following stratification criteria: (1) the purpose of improving the reasoning speed is achieved; (2) the granularity space can be switched between multiple granularities; (3) the stratification has practical significance and covers as many real location levels as possible.
[0028] Preferably, step S3 comprises the following steps:
[0029] S301. Entity extraction: Entity extraction mainly involves extracting relevant entity recognition from a data set, which can be used to solve the problem of explosive information overload in Internet text data. Use deep learning for entity extraction;
[0030] S302. Perform relationship extraction based on entity extraction: Perform relationship extraction based on named entity recognition. Use the BiGRU-Attention model to extract the relationship between entities. By learning the degree of emphasis of the human brain on information, the attention mechanism can calculate the corresponding weights for different inputs and dynamically multiply the input value with the weight value;
[0031] S303. Map the extracted entity and relationship data to the knowledge graph model layer: According to the semantic similarity, map the extracted entities and relationships to the entity and relationship types in the multi-granularity knowledge graph ontology concept constructed in step S2 to obtain triple data.
[0032] Preferably, the S301 includes the following steps: S3011, Chinese pre-segmentation: Under the BERT word vector processing based on the entity mask, the sentence level is taken into account on the basis of the word vector. The BERT model is a new language model constructed by combining the advantages of ELMO and GPT. The masked language model and the next step prediction are innovatively used for pre-training. On the basis of BERT, the disaster knowledge graph is added. Due to the prior semantic knowledge of entities, phrases, etc. in the corpus, the prior knowledge is used to perform entity recognition in related fields, and then the identified entities are masked, and the Embedding sequence is generated through operation and sent to the Transformer to extract features. Finally, a semantically rich word vector is obtained, and sentence-level semantic features are obtained;
[0033] S3012. Entity extraction is performed based on Chinese pre-segmentation: the BiLSTM-CRF model is used to further enhance the model's ability to utilize contextual information, and can effectively annotate the relationship between text sequences and labels; CRF can take into account the relationship between adjacent labels, thereby obtaining the global optimal label sequence.
[0034] Preferably, the triple data obtained in S4 is stored in a Neo4j graph database to construct a visualized ontology-based multi-granularity urban rainstorm waterlogging knowledge graph: using the Neo4j graph database, the first and last parts of the entity-relationship-entity and entity-attribute-attribute value triples are stored as corresponding nodes, and the attribute relationship and semantic relationship are stored as edges, thereby realizing the mapping of triple data to nodes and edges in the knowledge graph.
[0035] Technical effects and advantages of the present invention:
[0036] 1. Based on the seven-step method, the present invention constructs an ontology according to prior knowledge, natural disaster system theory and simple event model, combined with the characteristics of rainstorm waterlogging warning. According to the characteristics of the geological knowledge graph, the granular computing theory is introduced. On the basis of semantic stratification, only the occurrence locations of urban rainstorm events are stratified, and the locations are divided into multi-granular locations according to different levels, and a multi-granular urban rainstorm waterlogging knowledge graph based on the ontology is constructed.
[0037] 2. The reasoning process first searches at a coarse-grained breadth and then searches at a fine-grained depth, thereby effectively improving the speed of reasoning while ensuring the accuracy of knowledge graph reasoning, solving the problem that traditional knowledge graphs are limited to global reasoning of the entire knowledge graph. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0040] See also Figure 1 , Example 1 is proposed, comprising the following steps:
[0041] S1. Divide the ontology system, define the concepts and categories of the divided ontology category system, and build the knowledge graph model layer. The ontology is the concept template of the structured knowledge base. Use prior knowledge to divide the ontology system; divide the divided ontology into second and third level categories under the first level category, define the relationship between entities, and form a good concept hierarchy knowledge system;
[0042] S2. Multi-granularity stratification of urban rainstorm waterlogging locations, building a multi-granularity knowledge graph model layer, taking the locations of urban rainstorm waterlogging events as the main nodes, stratifying the locations, and connecting the locations at each layer with relationships;
[0043] S3. Extract knowledge from data. Knowledge extraction is to extract concepts, entities, relationships between them, attributes and other knowledge elements existing in multi-source data. It is divided into named entity recognition and relationship extraction. The extracted entities and relationships are mapped to the pattern layer to form triple data.
[0044] S4. Store the obtained triple data in the Neo4j graph database, and construct a multi-granularity urban rainstorm waterlogging knowledge graph based on ontology. Store the obtained triple data in the Neo4j graph database, and construct a visual multi-granularity urban rainstorm waterlogging knowledge graph based on ontology: Use the Neo4j graph database to store the first and last parts of the entity-relationship-entity and entity-attribute-attribute value triples as corresponding nodes, and store attribute relationships and semantic relationships as edges, thereby realizing the mapping of triple data to nodes and edges in the knowledge graph.
[0045] Wherein, S1 further includes the following steps:
[0046] S101. Divide the ontology system: Based on the knowledge graph reasoning theory and the characteristics of rainstorm waterlogging warning, the urban rainstorm waterlogging knowledge graph focuses on three core elements: urban waterlogging disaster events, disaster data, and disaster reasoning tasks;
[0047] S102. Subdivide the divided ontology category system into concepts and categories to complete the construction of the entity model layer.
[0048] The step S102 includes the following steps:
[0049] S1021. Based on the theory of simple event model, six elements of urban rainstorm waterlogging events are obtained: the six elements of simple event model "5W1H", on the basis of "5W1H" (what, who, when, where, why and how), the "who" element is deleted and the "degree" element is added, that is, the name of waterlogging disaster, time, place, cause, degree of disaster, and warning of the next waterlogging event;
[0050] S1022. With reference to the theory of natural disaster system, five categories of urban rainstorm waterlogging event attribute descriptions are obtained: According to the theory of natural disaster system, disaster-causing factors, disaster-pregnant environment, and disaster-bearing bodies constitute the regional disaster system, and the three interact to produce disasters. Combined with relevant national standards such as natural disaster disaster-bearing body classification and code, natural disaster disaster statistics, etc., the attributes of urban rainstorm waterlogging disaster events are described from five aspects: basic attributes of disaster events, disaster-causing factors, disaster-pregnant environment, disaster-bearing bodies, and disaster information;
[0051] S1023. Subdivide the concepts and categories of entities in the knowledge graph ontology system to complete the construction of the event pattern layer. Based on the six elements of urban rainstorm waterlogging events and five categories of attribute descriptions, subdivide the concepts and categories of the three core elements of urban waterlogging disaster events, disaster data, and disaster reasoning tasks;
[0052] S1024. Define the association relationship between entities, and combine it with the entity pattern layer to complete the construction of the urban rainstorm waterlogging knowledge graph pattern layer: The association relationship between entities mainly includes five types: parallel relationship, hierarchical relationship, whole-part relationship, correlation relationship and causal relationship. Each type contains multiple words to describe the corresponding relationship, so as to extract accurate relationship description based on sentence representation, and combine it with the entity pattern layer in step S1023 to complete the construction of the urban rainstorm waterlogging knowledge graph pattern layer.
[0053] The S1023 includes the following subdivisions of the concepts and categories of the three core elements of urban waterlogging disaster events, disaster data, and disaster reasoning tasks: (1) The urban waterlogging disaster event entity is divided into two levels of categories: location, time, disaster cause, and disaster severity; the time attribute is divided into three levels of categories: start time, duration, end time, and ongoing time; the disaster cause attribute is divided into three levels of categories: topography, meteorology, and hydrology; the disaster severity is divided into three levels of categories: trapped population and casualties, damaged houses, and damaged road facilities;
[0054] (2) Disaster data is divided into two categories: Weibo public opinion data, administrative division maps, and regional basic information according to different data sources.
[0055] (3) The disaster situation reasoning task is divided into two levels: the next waterlogging event warning and the secondary disaster prediction in the disaster area. The next waterlogging event warning is divided into three levels: location, occurrence time, and occurrence probability; the secondary disaster prediction in the disaster area is divided into three levels: secondary disaster type, occurrence time, and occurrence probability.
[0056] The step S2 comprises the following steps:
[0057] S201. The basis for the stratification of multi-granularity knowledge graphs: Based on the spatiotemporal characteristics of the geoscience knowledge graph, the granular computing theory is applied to the geographical locations of the geoscience knowledge graph to stratify the locations of urban rainstorm waterlogging events;
[0058] S202. Based on the stratification basis, the geographical locations are stratified into multiple granularities to construct a multi-granularity urban rainstorm waterlogging knowledge graph pattern layer: Based on the stratification basis described in step S201, the locations of urban waterlogging events are divided into four location sequences of different location granularities: district level, street level, precisely locatable locations, and physical lines. Thus, based on the urban rainstorm waterlogging knowledge graph pattern layer, the geographical locations are stratified to construct a multi-granularity urban rainstorm waterlogging knowledge graph pattern layer.
[0059] The stratification of the locations of urban rainstorm waterlogging events in S201 should meet the following stratification criteria: (1) the purpose of improving the reasoning speed is achieved; (2) the granularity space can be switched between multiple granularities; (3) the stratification has practical significance and covers as many real location levels as possible.
[0060] The step S3 comprises the following steps:
[0061] S301. Entity extraction: Entity extraction mainly involves extracting relevant entity recognition from a data set, which can be used to solve the problem of explosive information overload in Internet text data. Use deep learning for entity extraction;
[0062] S302. Perform relationship extraction based on entity extraction: Perform relationship extraction based on named entity recognition. Use the BiGRU-Attention model to extract the relationship between entities. By learning the degree of emphasis of the human brain on information, the attention mechanism can calculate the corresponding weights for different inputs and dynamically multiply the input value with the weight value;
[0063] S303. Map the extracted entity and relationship data to the knowledge graph model layer: According to the semantic similarity, map the extracted entities and relationships to the entity and relationship types in the multi-granularity knowledge graph ontology concept constructed in step S2 to obtain triple data.
[0064] The S301 includes the following steps: S3011, Chinese pre-segmentation: Based on the BERT word vector processing of the entity mask, the sentence level is taken into account on the basis of the word vector. The BERT model is a new language model constructed by combining the advantages of ELMO and GPT. The masked language model and the next step prediction are innovatively used for pre-training. On the basis of BERT, the disaster knowledge graph is added. Due to the prior semantic knowledge of entities, phrases, etc. in the corpus, the prior knowledge is used to perform entity recognition in related fields, and then the recognized entities are masked. After the operation, the Embedding sequence is generated and sent to the Transformer to extract features, and finally the semantically rich word vector is obtained, and the sentence-level semantic features are obtained;
[0065] S3012. Entity extraction is performed based on Chinese pre-segmentation: the BiLSTM-CRF model is used to further enhance the model's ability to utilize contextual information, and can effectively annotate the relationship between text sequences and labels; CRF can take into account the relationship between adjacent labels, thereby obtaining the global optimal label sequence.
[0066] Finally, it should be noted that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A multi-granular urban rainstorm waterlogging knowledge graph construction method based on ontology, characterized in that: The steps include: S1. Divide the ontology system, define the concepts and categories of the divided ontology category system, and build the knowledge graph model layer. The ontology is the concept template of the structured knowledge base. Use prior knowledge to divide the ontology system; divide the divided ontology into second and third level categories under the first level category, define the relationship between entities, and form a good concept hierarchy knowledge system; S2. Multi-granularity stratification of urban rainstorm waterlogging locations, building a multi-granularity knowledge graph model layer, taking the locations of urban rainstorm waterlogging events as the main nodes, stratifying the locations, and connecting the locations at each layer with relationships; S3. Extract knowledge from the data. Knowledge extraction is to extract concepts, entities, their relationships, and attribute knowledge elements from multi-source data. It is divided into named entity recognition and relationship extraction. The extracted entities and relationships are mapped to the pattern layer to form triples of data. S4. Store the obtained triple data in the Neo4j graph database and construct a multi-granular urban rainstorm waterlogging knowledge graph based on ontology; The S1 also includes the following steps: S101. Divide the ontology system: Based on the knowledge graph reasoning theory and the characteristics of rainstorm waterlogging warning, the urban rainstorm waterlogging knowledge graph focuses on three core elements: urban waterlogging disaster events, disaster data, and disaster reasoning tasks; S102. Perform conceptual and categorical subdivision on the divided ontology category system to complete the construction of the entity model layer; The step S102 includes the following steps: S1021. Based on the theory of simple event model, six elements of urban rainstorm waterlogging events are obtained: the six elements of simple event model "5W1H", What, Who, When, Where, Why and How, delete the "Who" element and add the "How Much" element, that is, the name of waterlogging disaster, time, location, cause, disaster degree, and warning of the next waterlogging event; S1022. With reference to the theory of natural disaster system, five categories of description of urban rainstorm waterlogging event attributes are obtained: According to the theory of natural disaster system, disaster-causing factors, disaster-pregnant environment, and disaster-bearing bodies constitute the regional disaster system, and the three interact to produce disasters. Combined with the classification and code of natural disaster-bearing bodies and the relevant national standards for natural disaster disaster statistics, the attributes of urban rainstorm waterlogging disaster events are described from five aspects: basic attributes of disaster events, disaster-causing factors, disaster-pregnant environment, disaster-bearing bodies, and disaster information; S1023. Segment the concepts and categories of entities in the knowledge graph ontology system, complete the construction of the event pattern layer, and segment the concepts and categories of the three core elements of urban waterlogging disaster events, disaster data, and disaster reasoning tasks according to the six elements of urban rainstorm waterlogging events and five categories of attribute descriptions; S1024. Define the association relationship between entities, and combine it with the entity pattern layer to complete the construction of the urban rainstorm waterlogging knowledge graph pattern layer: the association relationship between entities includes five types: parallel relationship, hierarchical relationship, whole-part relationship, correlation relationship and causal relationship. Each type contains multiple words to describe the corresponding relationship, so as to extract accurate relationship description based on sentence representation, and combine it with the entity pattern layer in step S1023 to complete the construction of the urban rainstorm waterlogging knowledge graph pattern layer; The step S2 comprises the following steps: S201. The basis for the stratification of multi-granularity knowledge graphs: Based on the spatiotemporal characteristics of the geoscience knowledge graph, the granular computing theory is applied to the geographical locations of the geoscience knowledge graph to stratify the locations of urban rainstorm waterlogging events; S202. Based on the stratification basis, the geographical locations are stratified at multiple granularities to construct a multi-granular urban rainstorm waterlogging knowledge graph pattern layer: Based on the stratification basis described in step S201, the locations where urban waterlogging events occur are divided into four location sequences of different location granularities: district level, street level, accurately locatable location, and physical line. Thus, based on the urban rainstorm waterlogging knowledge graph pattern layer, the geographical locations are stratified to construct a multi-granular urban rainstorm waterlogging knowledge graph pattern layer; The step S3 comprises the following steps: S301. Entity extraction: Entity extraction extracts relevant entity recognition from the data set, which can be used to solve the problem of explosive information overload of Internet text data, and uses deep learning for entity extraction; S302. Perform relationship extraction based on entity extraction: Based on named entity recognition, perform relationship extraction, use the BiGRU-Attention model to extract the relationship between entities, and the attention mechanism calculates the corresponding weights for different inputs, and dynamically multiplies the input value and the weight value; S303. Map the extracted entity and relationship data to the knowledge graph model layer: According to the semantic similarity, the extracted entities and relationships are mapped to the entity and relationship types in the multi-granularity knowledge graph ontology concept constructed in step S2 to obtain triple data; The S301 includes the following steps: S3011, Chinese pre-segmentation: Based on the BERT word vector processing of entity mask, the sentence level is taken into account on the basis of the word vector. The BERT model is a new language model constructed by combining the advantages of ELMO and GPT. It innovatively uses the masked language model and the next step prediction two tasks for pre-training, uses prior knowledge to perform entity recognition in related fields, and then masks the recognized entities, generates an Embedding sequence through operation, and sends it to the Transformer to extract features, and finally obtains a semantically rich word vector and sentence-level semantic features; S3012. Entity extraction is performed based on Chinese pre-segmentation: the BiLSTM-CRF model is used to further enhance the model's ability to utilize contextual information, and can effectively annotate the relationship between text sequences and labels; CRF can take into account the relationship between adjacent labels, thereby obtaining the global optimal label sequence.
2. The ontology-based multi-granularity urban rainstorm waterlogging knowledge graph construction method according to claim 1 is characterized by: The S1023 includes the following subdivisions of the concepts and categories of the three core elements of urban waterlogging disaster events, disaster data, and disaster reasoning tasks: (1) The urban waterlogging disaster event entity is divided into two levels of categories: location, time, disaster cause, and disaster severity; the time attribute is divided into three levels of categories: start time, duration, end time, and ongoing time; the disaster cause attribute is divided into three levels of categories: topography, meteorology, and hydrology; the disaster severity is divided into three levels of categories: population trapped and casualties, house damage, and road facility damage; (2) Disaster data is divided into two categories: according to the data source, it is divided into Weibo public opinion data, administrative division map, and regional basic information; (3) The disaster situation reasoning task is divided into two levels: the next waterlogging event warning and the secondary disaster prediction in the disaster area. The next waterlogging event warning is divided into three levels: location, occurrence time, and occurrence probability; the secondary disaster prediction in the disaster area is divided into three levels: secondary disaster type, occurrence time, and occurrence probability.
3. The ontology-based multi-granularity urban rainstorm waterlogging knowledge graph construction method according to claim 1 is characterized by: The triple data obtained in S4 is stored in the Neo4j graph database to construct a visualized ontology-based multi-granularity urban rainstorm waterlogging knowledge graph: using the Neo4j graph database, the first and last parts of the entity-relationship-entity and entity-attribute-attribute value triples are stored as corresponding nodes, and the attribute relationship and semantic relationship are stored as edges, thereby realizing the mapping of triple data to nodes and edges in the knowledge graph.
Citation Information
Patent Citations
Ontology design method of power equipment knowledge graph
CN112115207A
Method for constructing ecological conservation geographic knowledge graph
CN113505234A
Knowledge extraction method, related method, related device, electronic equipment and medium
CN114218405A
Vulnerability utilization relation determination method and device, equipment and storage medium
CN114357189A
Visual editing and persistence implementation method and system for knowledge graph
CN114491073A
