A knowledge reasoning method and device for different natural resources

By combining the knowledge reasoning method of modulus and phase parts, the knowledge graph and reasoning model of natural resources are constructed, which solves the problem that existing technology is difficult to handle complex logical relationships, and achieves high-precision management of natural resource data and improvement of prediction accuracy. promote.

CN118396122BActive Publication Date: 2024-09-03湖南省第二测绘院
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410824440.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-03
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Existing knowledge reasoning methods, such as TransE and RotatE, are difficult to effectively handle complex logical or hierarchical natural resource relationships, resulting in poor prediction results, and low data correlation between different natural resource attribute databases, making it impossible to fully manage resources. .

Method used

A knowledge reasoning method that combines the modulus and phase parts is designed. By building a knowledge graph, using raster points to extract coordinates in the natural resource database, calculating Euclidean distance, building a knowledge graph and displaying it through the Vue.js framework, combined Geographic information builds a knowledge inference model, processes elevation, soil type, vegetation and soil erosion data, and uses a method that combines modulus and phase parts for model construction and training.

Benefits of technology

It achieves high-precision prediction of complex logical or hierarchical relationships, improves the management and utilization of natural resource data, and has higher prediction accuracy than existing methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118396122B
    Figure CN118396122B
Patent Text Reader

Abstract

This application proposes a knowledge reasoning method and device for different natural resources, which associates data in different databases and constructs a knowledge graph, and performs knowledge reasoning on this basis, and then trains the knowledge reasoning model. First, the coordinate points to be measured are uniformly formatted and uniformly converted into longitude and latitude forms; then the prefecture-level city where the uniformly formatted coordinate points are located is determined, and the altitude and the local ethnic group situation are obtained according to the principle of minimum Euclidean distance. Secondly, the altitude and local ethnic group situation are input into the knowledge reasoning model to obtain the vegetation type, and the vegetation type is input into the knowledge reasoning model to obtain the soil erosion type; finally, the training results are evaluated using a test set. This application can solve the problem that the data correlation between different natural resource databases is low and various databases cannot be fully utilized for resource management. Compared with the existing mainstream reasoning schemes, it has higher prediction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of natural resource information science, and specifically relates to a knowledge reasoning method and device for different natural resources. Background Art

[0002] Natural resource data is rich in content and is often stored in different databases in various types. However, the data correlation between different resource attribute databases is low, and the resources in the database cannot be fully managed. The knowledge graph is a networked knowledge base formed by entities with attributes linked by relationships, which can more clearly show the relationship between knowledge. It collects and integrates the concepts, attributes, data and their relationships of relevant natural resources to form a network knowledge structure. Then, based on the natural resource knowledge graph, knowledge reasoning technology is used to supplement and reason the existing knowledge graph, so as to better utilize natural resource data and manage natural resources.

[0003] The current mainstream knowledge reasoning methods are mainly TransE and RotatE. Among them, the first method is relatively simple to implement and has a faster training speed, but it is only suitable for processing one-to-one relationships, not one-to-many and many-to-one relationships. The second method is a new embedding idea that regards entity relationships as rotations from the head entity to the tail entity, but it cannot model relationships with complex logic or hierarchical structures well, and the prediction effect is not very good. Summary of the invention

[0004] The purpose of the present invention is to overcome the above-mentioned shortcomings of the prior art and design a high-precision knowledge graph construction and knowledge reasoning scheme for different natural resources, which can combine natural resource data stored in different databases in various formats and obtain higher prediction accuracy. The knowledge reasoning method for different natural resources includes:

[0005] Construct a knowledge graph, use raster conversion to extract coordinates from different natural resource databases, calculate the Euclidean distance of coordinates in different natural resource databases, set the coordinates with the smallest Euclidean distance to the same position, and obtain the correlation information between soil family, altitude, vegetation type, and soil erosion. Summarize the correlation information and construct a knowledge graph through the Vue.js framework. The Vue.js framework is a JavaScript framework for building user interfaces. The soil family represents the soil type.

[0006] Construct a knowledge reasoning model, use the entities of the knowledge graph as the main body of the knowledge reasoning model, and use a method that combines the modulus part and the phase part to construct the knowledge reasoning model. The entities are the altitude, soil type, vegetation and soil erosion data in the knowledge graph, and the relationship between the entities is determined according to the geographic information.

[0007] The knowledge reasoning model is trained, and the training and testing steps include:

[0008] First, the coordinate points to be measured are uniformly formatted and converted into longitude and latitude forms;

[0009] Then determine the prefecture-level city where the coordinate point after unified formatting is located, and screen it in the prefecture-level city according to the principle of minimum Euclidean distance to obtain the altitude and Tu ethnic situation of the coordinate point to be measured;

[0010] Secondly, the altitude and soil conditions are input into the knowledge reasoning model to obtain the vegetation type of the coordinate point, and the vegetation type of the coordinate point is input into the knowledge reasoning model again to obtain the soil erosion type;

[0011] Finally, the training results are evaluated using the test set.

[0012] Furthermore, the method of using a combination of the modulus part and the phase part to construct a knowledge reasoning model includes: giving different types of entities different moduli, and giving different types of the same type of entity the same modulus and different phases.

[0013] Furthermore, the relationship between the entities also includes two negative correlations, specifically, the altitude has no effect on soil erosion, and there is no direct correlation between the altitude and the soil type.

[0014] Furthermore, the coordinate points to be measured are uniformly formatted, and the conversion formula is as follows:

[0015] ,

[0016] Among them, L and B represent longitude and latitude respectively, and D, M and S represent degrees, minutes and seconds of the coordinate point respectively.

[0017] Furthermore, the Euclidean distance calculation formula is as follows:

[0018] ,

[0019] R represents the radius of the earth. and It represents the longitude and latitude of the coordinate point. and Indicates the longitude and latitude of other points.

[0020] Further, the evaluation includes the evaluation of the modulus part and the phase part, and the evaluation formula of the modulus part is:

[0021] ,

[0022] The phase part evaluation formula is:

[0023] ,

[0024] in, and They represent the embedding vectors of the head entity and the tail entity respectively. and The embedding vectors representing the phases of the head entity and the tail entity respectively, and They represent the embedding vector of the magnitude and the embedding vector of the phase of the entity relationship respectively.

[0025] The present application also provides a knowledge reasoning device for different natural resources, used to implement the above-mentioned method, the device comprising:

[0026] The knowledge graph construction module is used to construct the knowledge graph, use raster conversion to extract coordinates from different natural resource databases, calculate the Euclidean distance of coordinates in different natural resource databases, set the coordinates with the smallest Euclidean distance to the same position, obtain the correlation information between soil ethnic group, altitude, vegetation type, and soil erosion, summarize the correlation information and construct the knowledge graph through the Vue.js framework.

[0027] The knowledge reasoning model construction module is used to construct a knowledge reasoning model. The entities of the knowledge graph are used as the main body of the knowledge reasoning model. The knowledge reasoning model is constructed by combining the modulus part and the phase part. The entities are the altitude, soil type, vegetation and soil erosion data in the knowledge graph. The relationship between the entities is determined according to the geographic information.

[0028] The model training and testing module is used to train the knowledge reasoning model, and the training and testing steps include: first, the coordinate points to be tested are uniformly formatted and uniformly converted into longitude and latitude forms; then, the prefecture-level city where the uniformly formatted coordinate points are located is determined, and the prefecture-level city is screened according to the principle of minimum Euclidean distance to obtain the altitude and ethnic group situation of the coordinate points to be tested; secondly, the altitude and ethnic group situation are input into the knowledge reasoning model to obtain the vegetation type of the coordinate points, and the vegetation type of the coordinate points is input into the knowledge reasoning model again to obtain the soil erosion type; finally, the training results are evaluated using a test set.

[0029] This application can solve the problem of low data correlation between different natural resource attribute databases and inability to fully utilize various databases for resource management. Experimental results show that for some relationships with complex logic or hierarchical structures, this application has higher prediction accuracy than existing mainstream reasoning schemes. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 Flowchart of the knowledge reasoning method for different natural resources in an embodiment.

[0031] Figure 2 Define graphs for entities and relationships in a knowledge graph.

[0032] Figure 3 It is a structural diagram of the knowledge reasoning device for different natural resources in an embodiment.

[0033] Figure 4 This is a comparison chart of the effects of the method described in this application and the RotatE solution. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0035] As attached Figure 1 As shown, the present invention provides a knowledge reasoning method for different natural resources, comprising the following steps:

[0036] The first step is to build a knowledge graph.

[0037] First, the types of natural resource data in different natural resource databases are different, but their geographical locations are the same. Therefore, raster conversion is used to extract and save the coordinates in different natural resource databases respectively.

[0038] Then, the same coordinate position will definitely have some deviations between different natural resource databases due to measurement reasons. The obtained coordinates are used to calculate the Euclidean distance, and the coordinates with the smallest Euclidean distance are set to the same position to obtain the correlation information between the soil ethnic group, altitude, vegetation type, and soil erosion.

[0039] Finally, the related information is summarized and constructed through the Vue.js framework to obtain a knowledge graph.

[0040] The second step is to build a knowledge reasoning model.

[0041] The entities of the knowledge graph are used as the main body of the knowledge reasoning model, and the knowledge reasoning model is constructed by combining the modulus part and the phase part. The entities are the altitude, soil type, vegetation and soil erosion data obtained by the knowledge graph. The relationship between them is defined according to various information in geography, as shown in the attached figure. Figure 2 At the same time, the knowledge graph also contains two negative correlations, namely, altitude has no effect on soil erosion, and there is no direct correlation between altitude and soil type.

[0042] The method of using a combination of a modulus part and a phase part to construct a knowledge reasoning model includes: giving different types of entities different moduli, and giving different types of entities of the same type the same modulus and different phases.

[0043] The model building process can be vividly described as the process of building concentric circles, that is, different types of entities (such as vegetation types and ethnic groups) are given different models and are on different circles, and different types of entities of the same type (such as subtropical evergreen broad-leaved forests and tropical coniferous forests in vegetation types) are given the same model and are on the same circle, but in order to make them easier to distinguish, they are given different phases, that is, different positions on the same circle.

[0044] The third step is to train the knowledge reasoning model.

[0045] The training and testing steps include:

[0046] First, the coordinate points to be measured are uniformly formatted and converted into longitude and latitude. The conversion formula is as follows:

[0047] ,

[0048] Among them, L and B represent longitude and latitude respectively, and D, M and S represent degrees, minutes and seconds of the coordinate point respectively.

[0049] Then determine the prefecture-level city where the coordinate point after unified formatting is located, and screen it in the prefecture-level city according to the principle of minimum Euclidean distance to obtain the altitude and Tu ethnic situation of the coordinate point to be measured. The calculation formula based on Euclidean distance is as follows:

[0050] ,

[0051] R represents the radius of the earth. and It represents the longitude and latitude of the coordinate point. and Indicates the longitude and latitude of other points.

[0052] Secondly, the altitude and soil conditions are input into the knowledge reasoning model to obtain the vegetation type of the coordinate point, and the vegetation type of the coordinate point is input into the knowledge reasoning model again to obtain the soil erosion type;

[0053] Finally, the training results are evaluated using the test set. The evaluation includes the evaluation of the modulus part and the phase part, and the evaluation formula of the modulus part is:

[0054] ,

[0055] The phase part evaluation formula is:

[0056] ,

[0057] in, and They represent the embedding vectors of the head entity and the tail entity respectively. and The embedding vectors representing the phases of the head entity and the tail entity respectively, and They represent the embedding vector of the magnitude and the embedding vector of the phase of the entity relationship respectively.

[0058] The present application also provides a knowledge reasoning device for different natural resources, which is used to implement the above-mentioned method. Figure 3 As shown, the device comprises:

[0059] The knowledge graph construction module is used to construct the knowledge graph, use raster conversion to extract coordinates from different natural resource databases, calculate the Euclidean distance of coordinates in different natural resource databases, set the coordinates with the smallest Euclidean distance to the same position, obtain the correlation information between soil ethnic group, altitude, vegetation type, and soil erosion, summarize the correlation information and construct the knowledge graph through the Vue.js framework.

[0060] The knowledge reasoning model construction module is used to construct a knowledge reasoning model. The entities of the knowledge graph are used as the main body of the knowledge reasoning model. The knowledge reasoning model is constructed by combining the modulus part and the phase part. The entities are the altitude, soil type, vegetation and soil erosion data in the knowledge graph. The relationship between the entities is determined according to the geographic information.

[0061] The model training and testing module is used to train the knowledge reasoning model, and the training and testing steps include: first, the coordinate points to be tested are uniformly formatted and uniformly converted into longitude and latitude forms; then, the prefecture-level city where the uniformly formatted coordinate points are located is determined, and the prefecture-level city is screened according to the principle of minimum Euclidean distance to obtain the altitude and ethnic group situation of the coordinate points to be tested; secondly, the altitude and ethnic group situation are input into the knowledge reasoning model to obtain the vegetation type of the coordinate points, and the vegetation type of the coordinate points is input into the knowledge reasoning model again to obtain the soil erosion type; finally, the training results are evaluated using a test set.

[0062] For a location where specific information (such as coordinates, altitude, soil information, vegetation type, soil erosion type) is known, the specific steps for reasoning using this application are as follows:

[0063] Step 1: Convert the input coordinates from degrees, minutes, seconds to longitude and latitude coordinates through the conversion formula. For example, if the input degrees, minutes, seconds coordinates are (109°15'11.001600", 28°50'20.000400"), the corresponding degrees, minutes, seconds, and minutes can be converted into the final longitude and latitude coordinates (109.253056, 28.838889).

[0064] Step 2: Determine the prefecture-level city where the input coordinate point is located based on the latitude and longitude information of the coordinate point and the inclusion relationship between the prefecture-level city area and the coordinate point.

[0065] Step 3: Based on the minimum Euclidean distance theory, filter the local ethnic group and altitude of the input coordinates in the prefecture-level city, and insert the longitude and latitude coordinates (109.253056, 28.838889) of the coordinate points into and , other coordinate points in the area are brought in and , and it can be obtained that the altitude of the input coordinate point is 1235.5 meters, and the soil condition is humus simple fertile ever-wet eluvial soil.

[0066] Step 4: Call the knowledge reasoning model based on the obtained altitude and soil conditions, and it can be obtained that the vegetation at the coordinate point is tropical evergreen broad-leaved. Call the knowledge reasoning model again to obtain that the soil erosion at this coordinate point is mild hydraulic erosion.

[0067] The predicted vegetation and soil erosion conditions are consistent with the actual conditions. The high-precision knowledge reasoning scheme designed by the present invention is compared with the RotatE scheme for the three evaluation indicators MRR (Mean Reciprocal Ranking, the average of the sum of the reciprocal predicted rankings of all triples), Hits@1 (the average proportion of triples ranked less than 1 in the prediction), and Hits@3 (the average proportion of triples ranked less than 3 in the prediction). The comparison results are shown in the attached figure. Figure 4 shown.

[0068] The above experimental results show that for some relationships with complex logic or hierarchical structures, this application has higher prediction accuracy than existing mainstream reasoning solutions.

[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described with reference to the preferred embodiments of the present invention, it should be understood by those skilled in the art that various changes may be made in form and details without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims

1. A knowledge reasoning method for different natural resources, characterized in that: The method comprises: Construct a knowledge graph, use raster conversion to extract coordinates from different natural resource databases, calculate the Euclidean distance of coordinates in different natural resource databases, set the coordinates with the smallest Euclidean distance to the same position, obtain the association information between ethnic groups, altitude, vegetation type, and soil erosion, summarize the association information and construct a knowledge graph through the Vue.js framework; Constructing a knowledge reasoning model, taking the entities of the knowledge graph as the main body of the knowledge reasoning model, and using a method combining the modulus part and the phase part to construct the knowledge reasoning model, the entities are the altitude, soil type, vegetation and soil erosion data in the knowledge graph, and the relationship between the entities is determined according to the geographic information, and the soil family represents the soil type; The knowledge reasoning model is trained, and the training and testing steps include: First, the coordinate points to be measured are uniformly formatted and converted into longitude and latitude forms; Then determine the prefecture-level city where the uniformly formatted coordinate point is located, and screen it in the prefecture-level city according to the principle of minimum Euclidean distance to obtain the altitude and Tu ethnic situation of the coordinate point to be measured; Secondly, the altitude and soil conditions are input into the knowledge reasoning model to obtain the vegetation type of the coordinate point, and the vegetation type of the coordinate point is input into the knowledge reasoning model again to obtain the soil erosion type; Finally, the training results are evaluated using the test set; The method of using a combination of a modulus part and a phase part to construct a knowledge reasoning model includes: giving different types of entities different moduli, and giving different types of entities of the same type the same modulus and different phases.

2. The knowledge reasoning method according to claim 1, characterized in that: The relationships between the entities also include two negative correlations, specifically, the altitude has no effect on soil erosion, and there is no direct correlation between the altitude and the soil type.

3. The knowledge reasoning method according to claim 1, characterized in that: The coordinate points to be measured are uniformly formatted, and the conversion formula is as follows: , Among them, L and B represent longitude and latitude respectively, and D, M and S represent degrees, minutes and seconds of the coordinate point respectively.

4. The knowledge reasoning method according to claim 1, characterized in that: The Euclidean distance calculation formula is as follows: , R represents the radius of the earth. and It represents the longitude and latitude of the coordinate point. and Indicates the longitude and latitude of other points.

5. The knowledge reasoning method according to claim 1, characterized in that: The evaluation includes the evaluation of the modulus part and the phase part, and the evaluation formula of the modulus part is: , The phase part evaluation formula is: , in, and They represent the embedding vectors of the head entity and the tail entity respectively. and The embedding vectors representing the phases of the head entity and the tail entity respectively, and They represent the embedding vector of the magnitude and the embedding vector of the phase of the entity relationship respectively.

6. A knowledge reasoning device for different natural resources, characterized in that: For implementing the method according to any one of claims 1 to 5, the device comprises: The knowledge graph construction module is used to construct the knowledge graph, extract the coordinates in different natural resource databases using raster transformation, calculate the Euclidean distance of the coordinates in different natural resource databases, set the coordinates with the smallest Euclidean distance to the same position, obtain the association information between soil family, altitude, vegetation type, and soil erosion, summarize the association information and construct the knowledge graph through the Vue.js framework, where the soil family represents the soil type; A knowledge reasoning model construction module is used to construct a knowledge reasoning model, taking the entities of the knowledge graph as the main body of the knowledge reasoning model, and using a method combining a modulus part and a phase part to construct the knowledge reasoning model, wherein the entities are altitude, soil type, vegetation and soil erosion data in the knowledge graph, and the relationship between the entities is determined according to geographic information; the method of using a method combining a modulus part and a phase part to construct the knowledge reasoning model includes: giving different types of entities different moduli, and giving different types of entities of the same type the same modulus and different phases; The model training and testing module is used to train the knowledge reasoning model, and the training and testing steps include: first, the coordinate points to be tested are uniformly formatted and uniformly converted into longitude and latitude forms; then, the prefecture-level city where the uniformly formatted coordinate points are located is determined, and the prefecture-level city is screened according to the principle of minimum Euclidean distance to obtain the altitude and ethnic group situation of the coordinate points to be tested; secondly, the altitude and ethnic group situation are input into the knowledge reasoning model to obtain the vegetation type of the coordinate points, and the vegetation type of the coordinate points is input into the knowledge reasoning model again to obtain the soil erosion type; finally, the training results are evaluated using a test set.