Water conservancy knowledge service system based on knowledge graph technology

By constructing an ontology model and semantic search technology in the field of water conservancy, the problem of traditional water conservancy knowledge service systems being unable to understand user needs has been solved, realizing intelligent water conservancy knowledge retrieval, recommendation, and question-and-answer services, thereby improving the system's intelligence level and user satisfaction.

CN118152525BActive Publication Date: 2026-11-20ZHONGSHUI CULTURE TECH (ZHENGZHOU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311232450.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-22
Publication Date
2026-11-20
Estimated Expiration
2043-09-22

AI Technical Summary

Technical Problem

Traditional water conservancy knowledge service systems fail to effectively understand user needs, resulting in inaccurate search results, untargeted recommended content, an inability to flexibly handle complex and diverse water conservancy issues, and unsatisfactory question-and-answer performance.

Method used

We construct an ontology model for the water conservancy field, forming a large-scale graph database. Through natural language processing and semantic search technologies, we perform semantic understanding and matching to provide intelligent water conservancy knowledge retrieval, recommendation, and question-answering services.

Benefits of technology

This improved the accuracy and credibility of answers to user questions, ensured the quality of water conservancy knowledge services, and enhanced the system's intelligence level and user satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118152525B_ABST
    Figure CN118152525B_ABST
Patent Text Reader

Abstract

The application discloses a water conservancy knowledge service system based on knowledge graph technology, which extracts entities, attributes and relationships from various data sources such as texts, databases and experts in the field of water conservancy, constructs an ontology model in the field of water conservancy, and instantiates the ontology model into a water conservancy knowledge graph to form a large-scale graph database containing rich water conservancy knowledge. In the process of water conservancy knowledge retrieval and question answering, the natural language processing and semantic search technologies are used to perform semantic understanding and matching on the natural language question input by a user and the answer in the knowledge graph, so that the answer semantics with higher matching degree are matched according to the input question of the user. In this way, intelligent water conservancy knowledge retrieval, recommendation and question answering services can be provided for the user, the accuracy and reliability of the question answering of the user are improved, the service quality of the water conservancy knowledge is ensured, and the intelligent level of the water conservancy knowledge service system and the user satisfaction are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of water conservancy, and more specifically, to a water conservancy knowledge service system based on knowledge graph technology. Background Technology

[0002] A knowledge graph is a structured data model used to represent and store knowledge. It can express multi-dimensional information such as entities, attributes, and relationships, and can organize and manage complex knowledge in the form of a graph, thereby improving the understandability and usability of knowledge. The water resources knowledge graph data comes from knowledge bases such as contingency plan databases, business rule databases, expert experience databases, and historical scenario pattern databases. The water resources knowledge service system is an intelligent system based on knowledge graph technology. It can organize, manage, and apply water resources knowledge by constructing a knowledge graph in the water resources field, providing efficient, accurate, and personalized knowledge services to users in the water resources sector.

[0003] However, traditional water resources knowledge service systems primarily rely on keyword matching and rule templates to achieve functions such as water resources knowledge retrieval, recommendation, and question answering. These methods fail to effectively understand users' true needs, leading to inconsistencies or inaccuracies in search results. Furthermore, traditional systems cannot fully utilize professional knowledge and background information in the water resources field, resulting in recommendations lacking relevance and depth. Simultaneously, this approach cannot flexibly handle complex and diverse water resources-related questions, leading to unsatisfactory or unanswerable question-and-answer results.

[0004] Therefore, in order to improve the intelligence level of the water conservancy knowledge service system, an optimized water conservancy knowledge service system based on knowledge graph technology is desired. Summary of the Invention

[0005] To address the aforementioned technical problems, this application is proposed. Embodiments of this application provide a water resources knowledge service system based on knowledge graph technology. This system extracts entities, attributes, and relationships from various data sources in the water resources field, such as text, databases, and experts, to construct an ontology model for the water resources field. This ontology model is then instantiated into a water resources knowledge graph, forming a large-scale graph database containing rich water resources knowledge. In the process of water resources knowledge retrieval and question answering, technologies such as natural language processing and semantic search are used to semantically understand and match the user's input natural language question with the answer in the knowledge graph, thereby matching a more suitable semantic answer based on the user's input question. This provides users with intelligent water resources knowledge retrieval, recommendation, and question answering services, improving the accuracy and credibility of user question answers, ensuring the service quality of water resources knowledge, and enhancing the intelligence level and user satisfaction of the water resources knowledge service system.

[0006] According to one aspect of this application, a water conservancy knowledge service system based on knowledge graph technology is provided, comprising:

[0007] The water conservancy issue collection module is used to collect water conservancy-related issues input by users.

[0008] The semantic understanding module is used to perform semantic refinement and semantic understanding on the water conservancy-related issues to obtain semantic encoding features of the water conservancy-related issues;

[0009] The alternative answer extraction module is used to extract the first alternative answer from the water resources knowledge graph.

[0010] The alternative answer semantic understanding module is used to perform semantic understanding on the first alternative answer to obtain the semantic encoding features of the first alternative answer;

[0011] The question-answer semantic interaction association encoding module is used to perform feature-level attention interaction association encoding on the semantic encoding features of the water conservancy-related questions and the semantic encoding features of the first alternative answers to obtain the semantic interaction features of water conservancy questions-answers.

[0012] The question-answer fit evaluation module is used to determine whether the fit between the water conservancy question and the first alternative answer exceeds a predetermined threshold based on the semantic interaction features of the water conservancy question-answer.

[0013] Compared with existing technologies, this application provides a water resources knowledge service system based on knowledge graph technology. It extracts entities, attributes, and relationships from various data sources in the water resources field, such as text, databases, and experts, to construct an ontology model for the water resources domain. This ontology model is then instantiated into a water resources knowledge graph, forming a large-scale graph database containing rich water resources knowledge. In the process of water resources knowledge retrieval and question answering, technologies such as natural language processing and semantic search are used to semantically understand and match the user's input natural language question with the answer in the knowledge graph, thereby matching a more suitable semantic answer based on the user's input question. This provides users with intelligent water resources knowledge retrieval, recommendation, and question answering services, improving the accuracy and credibility of user question answers, ensuring the service quality of water resources knowledge, and enhancing the intelligence level and user satisfaction of the water resources knowledge service system. Attached Figure Description

[0014] The above and other objects, features, and advantages of this application will become more apparent from the more detailed description of the embodiments of this application in conjunction with the accompanying drawings. The drawings are provided to further illustrate the embodiments of this application and form part of the specification. They are used together with the embodiments of this application to explain this application and do not constitute a limitation thereof. In the drawings, the same reference numerals generally represent the same components or steps.

[0015] Figure 1 This is a block diagram of a water conservancy knowledge service system based on knowledge graph technology according to an embodiment of this application;

[0016] Figure 2 This is a system architecture diagram of a water conservancy knowledge service system based on knowledge graph technology according to an embodiment of this application;

[0017] Figure 3 This is a block diagram of the training phase of a water conservancy knowledge service system based on knowledge graph technology according to an embodiment of this application;

[0018] Figure 4 This is a block diagram of the problem semantic understanding module in a water conservancy knowledge service system based on knowledge graph technology according to an embodiment of this application;

[0019] Figure 5 This is a general framework diagram for smart water conservancy.

[0020] Figure 6 Framework diagram for the construction of digital twin watersheds;

[0021] Figure 7 Framework diagram for the construction of a water conservancy knowledge platform;

[0022] Figure 8 Flowcharts for water resources knowledge graph construction;

[0023] Figure 9 Entity link flowchart;

[0024] Figure 10 This is a graph extracted from unstructured data.

[0025] Figure 11 A flowchart of the overall knowledge integration process;

[0026] Figure 12 The diagram illustrates the triplet representation.

[0027] Figure 13 This is a schematic diagram of the RDFS representation;

[0028] Figure 14 This is a schematic diagram of the content structure of the business rules base. Detailed Implementation

[0029] Hereinafter, exemplary embodiments according to this application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments of this application. It should be understood that this application is not limited to the exemplary embodiments described herein.

[0030] As indicated in this application and claims, unless the context clearly indicates otherwise, the words "a," "an," "an," and / or "the" are not specifically singular and may include plural forms. Generally speaking, the terms "comprising" and "including" only indicate the inclusion of explicitly identified steps and elements, which do not constitute an exclusive list, and the method or apparatus may also include other steps or elements.

[0031] While this application makes various references to certain modules of the systems according to embodiments of this application, any number of different modules can be used and run on user terminals and / or servers. The modules described are merely illustrative, and different aspects of the systems and methods may use different modules.

[0032] Flowcharts are used in this application to illustrate the operations performed by the system according to embodiments of this application. It should be understood that the preceding or following operations are not necessarily performed in exact order. Instead, various steps can be processed in reverse order or simultaneously as needed. Furthermore, other operations can be added to these processes, or one or more steps can be removed from them.

[0033] Hereinafter, exemplary embodiments according to this application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments of this application. It should be understood that this application is not limited to the exemplary embodiments described herein.

[0034] Traditional water resources knowledge service systems primarily rely on keyword matching and rule templates to achieve functions such as water resources knowledge retrieval, recommendation, and question answering. However, these methods fail to effectively understand users' true needs, leading to inconsistencies or inaccuracies in search results. Furthermore, traditional systems cannot fully utilize professional knowledge and background information in the water resources field, resulting in recommendations lacking relevance and depth. Simultaneously, this approach cannot flexibly handle complex and diverse water resources-related questions, leading to unsatisfactory or unanswerable question-and-answer results. Therefore, to improve the intelligence level of water resources knowledge service systems, an optimized water resources knowledge service system based on knowledge graph technology is desired.

[0035] The technical solution of this application proposes a water conservancy knowledge service system based on knowledge graph technology. Figure 1 This is a block diagram of a water conservancy knowledge service system based on knowledge graph technology according to an embodiment of this application. Figure 2 This is a system architecture diagram of a water conservancy knowledge service system based on knowledge graph technology according to an embodiment of this application. Figure 1 and Figure 2As shown, the water conservancy knowledge service system 300 based on knowledge graph technology according to an embodiment of this application includes: a water conservancy problem acquisition module 310, used to acquire water conservancy-related problems input by users; a problem semantic understanding module 320, used to perform semantic improvement and semantic understanding on the water conservancy-related problems to obtain semantic encoding features of the water conservancy-related problems; a candidate answer extraction module 330, used to extract a first candidate answer from the water conservancy knowledge graph; a candidate answer semantic understanding module 340, used to perform semantic understanding on the first candidate answer to obtain semantic encoding features of the first candidate answer; a question-answer semantic interaction association encoding module 350, used to perform feature-level attention interaction association encoding on the semantic encoding features of the water conservancy-related problems and the semantic encoding features of the first candidate answer to obtain water conservancy question-answer semantic interaction features; and a question-answer fit evaluation module 360, used to determine whether the fit between the water conservancy-related problems and the first candidate answers exceeds a predetermined threshold based on the water conservancy question-answer semantic interaction features.

[0036] Specifically, the water resources issue acquisition module 310 is used to acquire water-related issues input by the user. These water resources issues include water resource management issues, hydrological issues, water environment issues, and so on.

[0037] Specifically, the semantic understanding module 320 is used to perform semantic refinement and semantic understanding on the water conservancy-related issues to obtain semantic encoding features of the water conservancy-related issues. In particular, in a specific example of this application, such as... Figure 4 As shown, the problem semantic understanding module 320 includes: a problem semantic improvement unit 321, used to obtain a semantically optimized water conservancy problem by passing the water conservancy problem through a problem semantic improver based on the AIGC model; and a water conservancy problem semantic encoding unit 322, used to perform semantic encoding on the semantically optimized water conservancy problem using a first semantic encoder to obtain a water conservancy problem semantic encoding feature vector as the water conservancy problem semantic encoding feature.

[0038] Specifically, the question semantic improvement unit 321 is used to process the water conservancy-related question through a question semantic improver based on an AIGC model to obtain a semantically optimized water conservancy-related question. Considering that each user's language habits and expression methods may differ, leading to errors, grammatical mistakes, or omissions in the input water conservancy-related question, this application's technical solution further processes the water conservancy-related question through an AIGC model-based question semantic improver to obtain a semantically optimized water conservancy-related question. It should be understood that the AIGC model-based question semantic improver can semantically optimize the water conservancy-related question to obtain a better question expression. That is, through semantic optimization, the system can better understand the user-inputted water conservancy-related question and transform it into a more accurate and expressive question. This helps improve the system's ability to understand user input, thereby improving the accuracy and quality of the system's answers to user questions.

[0039] Specifically, the water conservancy problem semantic encoding unit 322 is used to semantically encode the semantically optimized water conservancy problem using a first semantic encoder to obtain a water conservancy problem semantic encoding feature vector as the water conservancy problem semantic encoding feature. That is, in the technical solution of this application, in order to achieve semantic understanding of the user-inputted semantically optimized water conservancy problem, the technical solution of this application further uses a first semantic encoder to semantically encode the semantically optimized water conservancy problem to obtain a water conservancy problem semantic encoding feature vector. In this way, by semantically encoding the semantically optimized water conservancy problem, the user's question can be transformed into a feature vector form to better represent the semantic understanding feature information of the question, which helps improve the system's semantic understanding ability of the user-input question, thereby improving the accuracy and quality of the system's answers to the user's question. In one example, the semantic optimization problem in water conservancy is segmented into words to transform it into a sequence of words. The embedding layer of the first semantic encoder maps each word in the sequence to a word embedding vector to obtain a sequence of word embedding vectors. The converter of the first semantic encoder performs global context semantic encoding on the sequence of word embedding vectors based on the converter concept to obtain multiple global context semantic feature vectors. Finally, the multiple global context semantic feature vectors are concatenated to obtain the semantic encoding feature vector of the water conservancy problem.

[0040] It is worth mentioning that, in other specific examples of this application, the semantics of the water-related issues can be further refined and understood in other ways to obtain semantic coding features of the water-related issues. For example, this can be achieved by: clarifying the scope of the water-related issues being discussed, such as water resources management, hydrological issues, and water environment issues; defining and explaining each issue concept to ensure an accurate understanding of its meaning and key elements; identifying the sub-concepts covered by each issue concept, i.e., related specific concepts or topics. For example, water resources management may include sub-concepts such as water resources assessment, water resources planning, and water resources allocation; identifying the attributes and characteristics of each issue concept, including key indicators, influencing factors, and relevant data. For example, the attributes of hydrological issues may include precipitation, runoff, and groundwater level; and establishing semantic relationships between issue concepts to determine their hierarchical relationships, dependencies, and interactions. For example, there is a mutually influential relationship between water resource management and water environment issues; by using knowledge graphs or ontology, problem concepts, sub-concepts, attributes and features, as well as semantic associations, can be encoded and organized to form a structured knowledge representation; semantic encoding features can be extracted from knowledge graphs or ontology, which can be feature vectors based on concepts, representations of relational graphs, or other forms of encoding features; semantic encoding features can be used for semantic understanding and reasoning, and methods such as knowledge graph queries and semantic similarity calculations can be used to achieve a deeper understanding and inference of the problem.

[0041] Specifically, the alternative answer extraction module 330 is used to extract a first alternative answer from the water resources knowledge graph. That is, after semantic understanding of the user-input water resources question, semantic understanding of the alternative answers is also required to match alternative answers with high semantic similarity from the water resources knowledge graph. Therefore, in the technical solution of this application, to better represent the semantic feature information of the alternative answers, it is necessary to further extract the first alternative answer from the water resources knowledge graph. It is worth mentioning that a water resources knowledge graph is a data structure specifically designed for representing and organizing knowledge in the water resources field, built based on graph technology. It encodes and links concepts, entities, attributes, and relationships in the water resources field to form a structured knowledge network, facilitating the storage, retrieval, and reasoning of knowledge in the water resources field.

[0042] Specifically, the alternative answer semantic understanding module 340 is used to perform semantic understanding on the first alternative answer to obtain the semantic encoding features of the first alternative answer. In a specific example of this application, a second semantic encoder is used to semantically encode the first alternative answer to obtain a semantic encoding feature vector of the first alternative answer. Thus, by semantically encoding the first alternative answer, the answer can be transformed into a feature vector, which facilitates a more thorough and accurate semantic understanding of the first alternative answer, enabling better semantic comparison and matching with water conservancy-related issues. Specifically, the first alternative answer is segmented to transform it into a word sequence composed of multiple words; the embedding layer of the second semantic encoder maps each word in the word sequence to a word embedding vector to obtain a sequence of word embedding vectors; the converter of the second semantic encoder performs global context semantic encoding on the sequence of word embedding vectors based on the converter idea to obtain multiple global context semantic feature vectors; and the multiple global context semantic feature vectors are concatenated to obtain the semantic encoding feature vector of the first alternative answer.

[0043] It is worth mentioning that, in other specific examples of this application, the first alternative answer can also be semantically understood in other ways to obtain semantic encoding features of the first alternative answer. For example: understanding the user's request to semantically understand the first alternative answer to obtain semantic encoding features; identifying key information in the first alternative answer, such as water resources knowledge graph, construction steps, concepts, entities, attributes, relationships, etc.; extracting concepts and entities from the water resources knowledge graph from the first alternative answer, such as water resources, hydrology, water environment, water disasters, water projects, etc.; extracting attributes and relationships from the water resources knowledge graph from the first alternative answer, such as water resources assessment indicators, hydrological data measurement methods, water environment pollution factors, etc.; constructing semantic encoding features based on the extracted concepts, entities, attributes, and relationships, which can use structured data representation forms, such as graphs, relational databases, or other suitable forms; and organizing the extracted semantic encoding features into a structured data structure to facilitate subsequent applications and analysis.

[0044] Specifically, the question-answer semantic interaction association encoding module 350 is used to perform feature-level attention interaction association encoding on the semantic encoding features of the water conservancy-related questions and the semantic encoding features of the first candidate answers to obtain water conservancy question-answer semantic interaction features. In a specific example of this application, an inter-feature attention layer is used to perform feature-level attention interaction on the semantic encoding feature vectors of the first candidate answers and the semantic encoding feature vectors of the water conservancy-related questions to obtain water conservancy question-answer semantic interaction feature vectors, thereby capturing the association and mutual influence between the semantic understanding features of the first candidate answers and the semantic understanding features of the water conservancy-related questions. It should be understood that the goal of traditional attention mechanisms is to learn an attention weight matrix, assigning larger weights to important features and smaller weights to secondary features, thereby selecting information more critical to the current task objective. This approach focuses more on weighting the importance of each feature, while ignoring the dependencies between features. The attention layer between features can capture the correlation and mutual influence between the semantic understanding features of the first alternative answer and the semantic understanding features of the water conservancy problem through feature interaction based on the attention mechanism. It can learn the dependencies between different features and interact and integrate the features according to these dependencies to obtain the water conservancy problem-answer semantic interaction feature vector.

[0045] It is worth mentioning that, in other specific examples of this application, the semantic encoding features of the water conservancy issue and the semantic encoding features of the first alternative answer can also be correlated with each other through feature-level attention interaction to obtain water conservancy issue-answer semantic interaction features. For example, based on the question and the first alternative answer, they can be converted into corresponding semantic encoding features respectively; the semantic encoding features of the question and the semantic encoding features of the first alternative answer can be correlated with each other through feature-level attention interaction to capture the correlation information between them. An attention mechanism can be used to calculate the attention weight between the question features and the answer features; the attention weight can be applied to the question features and the answer features, and the question features and the answer features can be correlated with each other through weighted summation or other methods to obtain the semantic interaction features of water conservancy issue-answer; the obtained semantic interaction features of water conservancy issue-answer can be organized into a structured data structure for subsequent application and analysis.

[0046] Specifically, the question-answer fit evaluation module 360 ​​is used to determine whether the fit between the water conservancy question and the first candidate answer exceeds a predetermined threshold based on the semantic interaction features of the water conservancy question-answer. In a specific example of this application, the semantic interaction feature vector of the water conservancy question-answer is processed by a classifier to obtain a classification result, which is used to indicate whether the fit between the water conservancy question and the first candidate answer exceeds the predetermined threshold. That is, the semantic interaction association features between the semantic understanding features of the first candidate answer and the semantic understanding features of the water conservancy question are classified to evaluate the fit between the water conservancy question and the first candidate answer. Specifically, if the threshold is exceeded, the first candidate answer is returned to the user; if the threshold is not exceeded, the next candidate answer is extracted from the water conservancy knowledge graph, and the above process is repeated until a suitable answer is found or the maximum number of attempts is reached. In this way, the system can achieve a deep understanding of user questions and accurate responses, improving the intelligence level and user satisfaction of the water conservancy knowledge service system. Specifically, the water conservancy problem-answer semantic interaction feature vector is fully encoded using multiple fully connected layers of the classifier to obtain an encoded classification feature vector; and the encoded classification feature vector is then passed through the classifier's Softmax classification function to obtain the classification result.

[0047] A classifier is a machine learning model or algorithm used to classify input data into different categories or labels. Classifiers are a part of supervised learning; they perform classification tasks by learning a mapping from input data to output categories.

[0048] Fully connected layers are a common type of layer in neural networks. In a fully connected layer, each neuron is connected to all neurons in the previous layer, and each connection has a weight. This means that each neuron in a fully connected layer receives input from all neurons in the previous layer, sums these inputs using weights, and then passes the result to the next layer.

[0049] The Softmax function is a commonly used activation function for multi-class classification problems. It transforms each element of the input vector into a probability value between 0 and 1, and the sum of these probabilities equals 1. The Softmax function is frequently used in the output layer of neural networks, particularly for multi-class problems, because it maps the network output to a probability distribution for each class. During training, the output of the Softmax function can be used to calculate the loss function and update the network parameters through backpropagation. It's important to note that the output of the Softmax function does not change the relative magnitudes of the elements; it merely normalizes them. Therefore, the Softmax function does not alter the characteristics of the input vector; it simply transforms it into a probability distribution.

[0050] It is worth mentioning that, in other specific examples of this application, the suitability between the water resources question and the first alternative answer can also be determined based on the semantic interaction features of the water resources question-answer using other methods. For example, a metric can be determined to measure the suitability between the water resources question and the first alternative answer, such as similarity, relevance, or other appropriate metrics. A suitability metric can be calculated based on the selected metric. This can be accomplished by comparing relevant features, similarity metrics, or other methods in the semantic interaction features of the water resources question-answer; the calculated suitability metric can be compared with a predetermined threshold. If the suitability metric exceeds the predetermined threshold, the water resources question is considered to have a high suitability with the first alternative answer; if the suitability metric is lower than or equal to the predetermined threshold, the suitability is considered to be low. Based on the comparison results, it can be determined whether the suitability between the water resources question and the first alternative answer exceeds the predetermined threshold. If it exceeds the threshold, the first alternative answer can be considered a good match; if it does not exceed the threshold, other alternative answers may need to be considered or the matching method may need to be further improved.

[0051] It should be understood that before using the aforementioned neural network model for inference, the first semantic encoder, the second semantic encoder, the inter-feature attention layer, and the classifier need to be trained. In other words, the water conservancy knowledge service system 300 based on knowledge graph technology in this application also includes a training phase 400 for training the first semantic encoder, the second semantic encoder, the inter-feature attention layer, and the classifier.

[0052] Figure 3 This is a block diagram of the training phase of a water conservancy knowledge service system based on knowledge graph technology according to an embodiment of this application. Figure 3As shown, the water conservancy knowledge service system 300 based on knowledge graph technology according to an embodiment of this application includes: a training phase 400, comprising: a training data acquisition unit 410, used to acquire training data, the training data including user-inputted training water conservancy-related questions, extracting training first alternative answers from the water conservancy knowledge graph, and determining whether the fit between the training water conservancy-related questions and the training first alternative answers exceeds a predetermined threshold; a training question semantic optimization unit 420, used to pass the training water conservancy-related questions through the AIGC model-based question semantic improver to obtain training semantically optimized water conservancy-related questions; a training question semantic encoding unit 430, used to use the first semantic encoder to semantically encode the training semantically optimized water conservancy-related questions to obtain a training water conservancy-related question semantic encoding feature vector; and a training answer semantic encoding unit 440, used to use the second semantic encoder to semantically encode the training answer. The training unit performs semantic encoding on the first alternative answer to obtain a training semantic encoding feature vector for the first alternative answer; a training question-answer semantic feature interaction unit 450 is used to perform feature-level attention interaction on the training semantic encoding feature vector for the first alternative answer and the training semantic encoding feature vector for water conservancy issues using the inter-feature attention layer to obtain a training water conservancy question-answer semantic interaction feature vector; a classification loss unit 460 is used to pass the training water conservancy question-answer semantic interaction feature vector through the classifier to obtain a classification loss function value; a model training unit 470 is used to train the first semantic encoder, the second semantic encoder, the inter-feature attention layer, and the classifier based on the classification loss function value and through directional propagation of gradient descent, wherein, in each iteration of the training, the training water conservancy question-answer semantic interaction feature vector is subjected to weight space iterative recursive directed proposal optimization.

[0053] Specifically, in the technical solution of this application, the semantic encoding feature vector of the first candidate answer and the semantic encoding feature vector of the water conservancy issue respectively express the textual semantic encoding features of the first candidate answer and the water conservancy issue. Therefore, by using an inter-feature attention layer to perform feature-level attention interaction on the semantic encoding feature vector of the first candidate answer and the semantic encoding feature vector of the water conservancy issue, the resulting water conservancy issue-answer semantic interaction feature vector can express the dependency relationship features between the textual semantic encoding features of the first candidate answer and the water conservancy issue. Thus, the water conservancy issue-answer semantic interaction feature vector simultaneously contains textual semantic features and textual semantic relationship features, thereby improving the feature expression effect of the water conservancy issue-answer semantic interaction feature vector at the spatial-spatial interaction scale of the textual semantic space. However, this also makes it difficult for the weight matrix of the classifier to converge relative to the class labels belonging to the predetermined textual semantic space scale when the water conservancy issue-answer semantic interaction feature vector is classified by a classifier, affecting the training effect of the classifier. Therefore, when classifying the semantic interaction feature vector of the water conservancy problem-answer using a classifier, the applicant of this application performs a directional proposal optimization of the semantic interaction feature vector of the water conservancy problem-answer using weight space iterative recursion in each iteration, specifically expressed as follows:

[0054] V' c =[V1⊙exp(V1)]⊕[V2⊙exp(V2)]

[0055]

[0056]

[0057] Where M1 and M2 are the weight matrices of the previous and current iterations, respectively, V c It is the training water conservancy problem-answer semantic interaction feature vector. V' represents matrix multiplication, ⊙ represents positional product, and exp(·) represents vector exponentiation, which calculates the natural exponent function value raised to the power of the eigenvalues ​​at each position in the vector. c Let V represent the optimized training water conservancy problem-answer semantic interaction feature vector. Here, the iterative recursive directed proposal optimization of the weight space can be achieved by using the initial water conservancy problem-answer semantic interaction feature vector V to be classified. c As anchor points, the semantic interaction feature vector V corresponding to the water conservancy problem-answer semantic interaction is iterated within the weight space based on the weight matrix. cAnchor footprints are obtained under different semantic feature distribution dimensions in different text semantic space scales. These footprints serve as oriented proposals for iterative recursion in the weight space. Based on these predicted proposals, the class confidence and local accuracy of the weight matrix convergence are improved, thereby enhancing the training effect of the classifier on the semantic interaction feature vector of the water conservancy question-answer relationship. This enables the provision of intelligent water conservancy knowledge retrieval, recommendation, and question-answering services to users, improving the accuracy and credibility of user question answers. This effectively addresses the problems encountered by users in the water conservancy field in acquiring and using water conservancy knowledge, ensuring the service quality of water conservancy knowledge, and improving the intelligence level and user satisfaction of the water conservancy knowledge service system.

[0058] As described above, the knowledge graph-based water resources knowledge service system 300 according to the embodiments of this application can be implemented in various wireless terminals, such as servers with knowledge graph-based water resources knowledge service algorithms. In one possible implementation, the knowledge graph-based water resources knowledge service system 300 according to the embodiments of this application can be integrated into the wireless terminal as a software module and / or hardware module. For example, the knowledge graph-based water resources knowledge service system 300 can be a software module in the operating system of the wireless terminal, or it can be an application developed for the wireless terminal; of course, the knowledge graph-based water resources knowledge service system 300 can also be one of many hardware modules of the wireless terminal.

[0059] Alternatively, in another example, the knowledge graph-based water conservancy knowledge service system 300 and the wireless terminal can also be separate devices, and the knowledge graph-based water conservancy knowledge service system 300 can connect to the wireless terminal via wired and / or wireless networks and transmit interactive information in accordance with an agreed data format.

[0060] In a specific example Figure 5 This is a general framework diagram for smart water conservancy. (For example...) Figure 5As shown, the implementation plan for smart water conservancy construction clearly proposes to follow the requirements of "demand-driven, application-oriented, digitally empowered, and capability-enhancing," taking digitalization, networking, and intelligence as the main lines, digital scenarios, intelligent simulation, and precise decision-making as the paths, and building a digital twin watershed as the core. It aims to comprehensively promote the construction of data, algorithms, and computing power, and accelerate the construction of a smart water conservancy system with forecasting, early warning, pre-simulation, and contingency planning functions. The digital twin watershed is the core of smart water conservancy construction. It uses the physical watershed as a unit, spatiotemporal data as a foundation, mathematical models as the core, and water conservancy knowledge as the driving force. It digitally maps, intelligently simulates, and pre-simulates all elements of the physical watershed and the entire process of water conservancy governance and management activities. It simulates and operates synchronously with the physical watershed, interacts with the virtual environment, and iteratively optimizes, achieving real-time monitoring, problem detection, and optimized scheduling of the physical watershed—a new type of infrastructure. Figure 6 This diagram illustrates the framework for building a digital twin watershed. The digital twin platform is the foundation for this construction. Based on information infrastructure, it utilizes technologies such as cloud computing, the Internet of Things, big data, artificial intelligence, remote sensing, and digital simulation to digitally map, intelligently simulate, and proactively predict all elements of the physical watershed and the entire process of water conservancy governance and management activities, supporting the realization of the "four predictions" functions of water conservancy operations. The digital twin platform mainly consists of a data platform, a model platform, and a knowledge platform. The service platform, comprised of data, models, knowledge resources, and engines that manage, express, and drive these resources, provides the ability to virtually reproduce real water conservancy projects in cyberspace, supporting business applications such as intelligent analysis and early warning for project safety and intelligent scheduling of flood control and water conservancy benefits. The data platform aggregates various types of data transmitted from the water conservancy information network, processes them, and provides data services to the model and knowledge platforms. The knowledge platform aggregates relevant data generated by the data platform and the analysis and calculation results of the model platform, processes them through the water conservancy knowledge engine to form a knowledge graph serving water conservancy business applications.

[0061] The water resources knowledge platform utilizes technologies such as knowledge graphs and machine learning to extract, manage, and combine knowledge about the relationships between water resources objects and water resources laws, providing an intelligent kernel for digital twin watersheds and supporting forward intelligent reasoning and reverse causal analysis. It mainly comprises water resources knowledge and a water resources knowledge engine. Water resources knowledge provides information describing principles, laws, rules, experiences, skills, and methods. The water resources knowledge engine is a technical tool for organizing knowledge and conducting reasoning. After being organized and reasoned through the knowledge engine, water resources knowledge forms information that supports judgment and decision-making. The knowledge platform should be linked to visualization models and simulation engines to realize the visualization of various types of knowledge and reasoning results. Figure 7 This is a framework diagram for the construction of a water resources knowledge platform. The knowledge platform mainly consists of two parts: water resources knowledge and a water resources knowledge engine.

[0062] (1) Water conservancy knowledge.

[0063] Water resources knowledge provides supporting information for decision analysis, including the relationships between water resources objects, business rules, historical scenarios, expert experience, and forecasting and scheduling schemes.

[0064] The relationship between water conservancy objects is used to describe the entities, concepts, and relationships of rivers, lakes, water conservancy projects, and water conservancy object governance and management activities in a physical watershed. It is the foundation for the integration of other water conservancy knowledge. Data resources are extracted, aligned, and integrated, and then structured, classified, and associated to facilitate the rapid retrieval and location of water conservancy knowledge.

[0065] Business rules describe a set of structured rules that can be combined and applied. They involve structuring relevant laws, regulations, rules, technical standards, management methods, and procedures, and through the extraction, representation, and management of business rules, supporting rule adaptation for new business scenarios and regulating and constraining water conservancy business management behavior. Historical scenarios describe the relevant facts regarding the development process and spatiotemporal characteristics of historical events. By extracting, fusing, mining, and structuring historical scenario data from data tables or text records, they support the review of key processes and major response measures in historical scenarios, and mine the digitization of scheduling execution plans and the characteristics of rainstorms and floods in historical scenarios, providing a knowledge-based basis for accurate decision-making in similar events.

[0066] The forecasting and scheduling scheme is used to store knowledge related to forecasting and scheduling schemes under specific scenarios. Based on the characteristics of the physical watershed, the design parameters of water conservancy projects, the scope of the affected area, etc., and combined with information such as meteorological forecasts, hydrological forecasts, hydrological monitoring, and project safety monitoring, it extracts and integrates knowledge from historical typical flood forecasts, records of water conservancy project scheduling processes, or forecasting and scheduling plans stored in text form to form knowledge such as forecasting model operation settings and water conservancy project scheduling schemes under specific scenarios, supporting intelligent decision-making for forecasting and scheduling schemes.

[0067] Expert experience is used to describe the expert's experience in decision-making for specific business scenarios. Expert experience is solidified through text, formulas, graphics, and other forms, and then extracted, integrated, mined, and structured to support its effective reuse and continuous accumulation.

[0068] (2) Water Conservancy Knowledge Engine.

[0069] The water resources knowledge engine primarily implements functions such as water resources knowledge representation, extraction, fusion, reasoning, and storage. Knowledge representation utilizes a human-computer collaborative approach to construct basic and business ontology within the water resources domain, achieving declarative and procedural knowledge representation. Knowledge extraction employs statistical models and supervised learning methods, combined with scenario configuration requirements and data supply conditions, to construct entity-relationship triples of knowledge and extract attributes from various water resources entities, providing a comprehensive description of entity categories, interrelationships, domain activities, and patterns within the water resources domain. Knowledge fusion addresses the similarities and heterogeneities of multi-source knowledge by constructing fusion capabilities such as entity connections, attribute mapping, and relation mapping. Knowledge reasoning utilizes algorithms such as supervised learning, semi-supervised learning, unsupervised learning, and reinforcement learning to construct reasoning-based water resources knowledge. Knowledge storage employs a graph computing engine to manage and drive water resources knowledge, achieving ultra-large-scale data storage.

[0070] (3) Application of water conservancy knowledge

[0071] By leveraging technologies such as machine learning to perceive water conservancy objects and understand water conservancy patterns, an intelligent kernel is provided for digital twin engineering, supporting forward intelligent reasoning and reverse causal analysis of events. This meets the needs of different application scenarios such as data analysis, professional models, machine vision, and learning algorithms, and develops functions such as knowledge overview, knowledge visualization, intelligent question answering, business rule base, and historical scenarios to support the innovation of next-generation water conservancy business applications.

[0072] Starting from the water resources knowledge base, a series of automatic or semi-automatic technical methods are used to extract water resources knowledge elements from the knowledge base and store them in the data layer and schema layer of the knowledge base for easy viewing and retrieval. Its main tasks should include: water resources knowledge extraction, water resources knowledge fusion, water resources knowledge processing, and water resources knowledge storage. Figure 8 Flowchart for constructing a water resources knowledge graph.

[0073] The sources of water conservancy knowledge include digital twin watershed data base, water conservancy professional model calculation results data, historical data, the Internet, etc. In order to organize knowledge in a reasonable way and better describe the knowledge itself and the relationship between knowledge, it is necessary to define the pattern of knowledge graph well.

[0074] Knowledge modeling typically employs two approaches: one is top-down, which involves first defining a data schema for the knowledge graph. The data schema is built from the top-level concepts and gradually refined downwards to form a well-structured taxonomic hierarchy. Then, entities are added to the concepts. For example, water conservancy knowledge can be divided into water conservancy facilities and water conservancy operations. Water conservancy facilities can be further divided into reservoirs, dams, weirs, hydropower stations, etc., while water conservancy operations can be divided into forecasting, scheduling, inspection, maintenance, etc.

[0075] Another approach is the bottom-up method, which first organizes entities into basic concepts and then gradually abstracts them upwards to form higher-level concepts. This method can be generated based on high-quality water resources data sources. Water resources knowledge modeling uses a combination of top-down and bottom-up approaches to construct a water resources knowledge base.

[0076] Knowledge modeling in knowledge graphs comprises an ontology layer and an instance layer. Ontologies are typically constructed manually, while instance extraction is usually automated. The purpose of building an ontology is to determine the knowledge that the knowledge graph can describe. Currently, the most popular free and open-source modeling tool is Protégé, which can be used to build domain models and knowledge-based ontology. It provides a large number of knowledge model architectures and actions for creating, visualizing, and manipulating various representations of ontology.

[0077] The water resources knowledge graph data comes from knowledge bases such as contingency plan databases, business rule databases, expert experience databases, and historical scenario pattern databases. The water resources-related knowledge in each knowledge base often exists in a scattered, heterogeneous, and autonomous form, and also exhibits characteristics of redundancy, noise, uncertainty, and incompleteness. Cleaning alone cannot solve these problems. Therefore, starting from this knowledge, fusion and verification steps are usually required to integrate data from different sources and with different structures into a unified knowledge graph to ensure knowledge consistency. Data can be categorized into structured data, semi-structured data, and unstructured data based on its data type. Different processing methods are used for different data types.

[0078] 1) Structured data processing

[0079] For structured data, typically data from relational databases, such as business data and vector data, which have a clear data structure, data transformation tools can be used to convert the data in the relational database into RDF triples.

[0080] There are two main methods:

[0081] One method is direct mapping, with the following mapping rules:

[0082] The tables in the database are treated as classes in the ontology.

[0083] Table columns are treated as properties.

[0084] The rows of the table are used as instances / resources.

[0085] The table's cell values ​​are literals.

[0086] If the column containing the cell is a foreign key, then its value is an IRI, or entity / resource.

[0087] In practical applications, we rarely use this method. Although it is the most convenient way, it cannot map the database data to our own defined ontology.

[0088] Another approach is R2RML (RDB to RDF Mapping Language). RDB to RDF mapping tools (such as D2RQ and SPIDER) use a language to provide online mapping from relational databases to RDF, meaning data can be converted to RDF on the fly. Data can be directly converted without any user-defined parameters, or the user should specify columns and mapping predicates accordingly. The former is called directed mapping and is typically used for simple RDB databases, but for relational databases with complex structures, the R2RML language is used for mapping.

[0089] Structured data extraction, based on knowledge modeling results, directly transforms structured data from relational database tables into entities, attributes, and relationships in a knowledge graph. This is primarily achieved using the D2RQ tool to convert it into RDF (Resource Description Framework) format. The Fuseki component in Apache Jena then imports the RDF data directly into Jena's TDB for storage. The specific mapping process is as follows:

[0090] Based on the results of ontology modeling, mapping rules are defined between structured databases and ontology concepts, attributes, and relationships. The main mapping rules include:

[0091] (1) Map the data tables of the structured database to the concepts in the water conservancy ontology.

[0092] (2) Map column data in the data tables of a structured database to attributes and relationships;

[0093] (3) Map the row data in the data table of the structured database to water conservancy object entities;

[0094] (4) Set the cell value of the data table in the structured database to a literal; if the column where the cell is located is a foreign key, then its value is IRI.

[0095] 2) Semi-structured data processing

[0096] Semi-structured data mainly refers to data that has a certain data structure but requires further extraction and processing. Examples include flood-related online public opinion data and historical flood reports. For this type of data, it is necessary to extract the data from HTML web pages and restore it to structured data.

[0097] For pages with a general pattern, we can use regular expressions to write XPath and CSS selector expressions to extract elements from the webpage. For pages without an obvious pattern, we can also use supervised learning methods to automatically learn data extraction rules from a set of labeled training examples, which can then be used to extract target data from other pages with the same tags or the same webpage template.

[0098] A wrapper is a program that can extract data from HTML web pages and restore it to structured data. Its information extraction process is as follows:

[0099] A wrapper is a program that can extract data from HTML web pages and restore it to structured data. Its information extraction process is as follows:

[0100] 3) Unstructured data processing

[0101] For unstructured data, such as documents and images, the extracted knowledge includes entities, relationships, and attributes. Entity extraction, also known as named entity recognition, involves entities such as concepts, people, organizations, places, and times. Relationship extraction refers to the relationships between entities, which are also important knowledge in the text and require specific techniques to extract this information. Attribute extraction extracts the attribute information of entities, similar to relationships; relationships reflect the external connections of entities, while attributes reflect their internal characteristics. Entity recognition identifies entities in sentences or text, while linking connects the entity to the corresponding entity in the knowledge base. This involves entity recognition and disambiguation techniques.

[0102] The process of entity linking is as follows Figure 9 As shown, the initial input is unstructured text data, which is then used to identify entity references using named entity recognition or dictionary matching techniques. Since the identified entities may be partial or alternative representations, techniques such as surface name expansion, search engines, and building a query entity reference table are needed to generate candidate entities. The entities generated in this step may have multiple candidates, so disambiguation is required. This can be achieved using graph-based methods, probabilistic generative models, topic-based models, or deep learning-based methods. After entity disambiguation, the unique entity candidates can be linked to entities in the knowledge base.

[0103] Techniques for extracting unstructured data vary, primarily including template-based and machine learning methods. Template-based methods include trigger word / string-based and dependency syntax-based methods. Template-based methods are generally easy to implement and build on small datasets, but their disadvantages include difficulty in maintenance, poor portability, and the potential need for expert-created templates. Deep learning methods are more flexible. They use two entities, their relationship, and the source sentence as training data to train a model. Then, they extract relationships from test data, which requires two entities and the source sentence. The model searches the known relationships obtained during training to derive the relationship between the two entities in the test data. Relation extraction using deep learning has two main branches: the Pipeline method, which requires entity recognition first, followed by relation extraction; and the Joint Model method, which models entity recognition and relation extraction simultaneously, optimizing them during training.

[0104] like Figure 10 As shown. For unstructured text data such as flood control plans, dispatching rules, and historical scenarios, a deep learning-based extraction method is adopted. Entities, relationships between entities, and source sentences from relevant text data such as flood control dispatching plans, regional planning, and historical experience within the XX watershed are used as training data. After deep learning training based on the BERT framework, a BERT model for water conservancy scenarios is output. Then, entity and relationship extraction is performed on the unstructured text data. The unstructured text data requires two entities and the source sentence. The model searches within the known relationships obtained during training to derive the relationship between the two entities in the unstructured text data.

[0105] In addition, the system supports assisted annotation of knowledge units based on artificial intelligence algorithms. By combining technologies such as automatic text segmentation, dependency parsing, information extraction, and automatic classification, it automatically annotates entities in sentences and the relationships between entities, and provides the ability to manually adjust the annotation information based on the ontology model. This helps business annotators to achieve fast and efficient knowledge annotation and provides strong monitoring and assurance of knowledge quality.

[0106] like Figure 11As shown, knowledge extraction aims to obtain entity, relation, and entity attribute information from unstructured, semi-structured, and structured data. However, knowledge extraction sources are multi-channeled, and each system defines and builds its database according to its own business needs. This can lead to different business knowledge systems within the same knowledge domain, as well as problems such as missing, conflicting, and ambiguous knowledge systems and instances. For example, the dimensions and granularity of data descriptions may differ, data from different sources may contain a large amount of redundant and erroneous information, and the relationships between data are often flat, lacking hierarchy and logic. Therefore, it is necessary to clean and integrate this data. Semantic fusion and structural fusion algorithms are employed to address the similarities and heterogeneities of multi-source knowledge, constructing fusion capabilities such as entity connections, attribute mapping, and relation mapping. This efficiently and accurately solves the mismatch problem between the knowledge language layer, model layer, and instance layer, promoting the fusion of knowledge from multiple sources.

[0107] The overall process of knowledge fusion includes initial fusion, incremental fusion, fusion filtering, and knowledge verification.

[0108] (1) Initialization fusion: refers to building a fusion library of entities through clustering.

[0109] (2) Incremental fusion: refers to calculating the similarity between new entities and already fused entities.

[0110] (3) Fusion filtering: refers to the review, filtering and repair of existing fusion libraries.

[0111] (4) Knowledge verification: refers to evaluating and scoring based on the credibility of the knowledge source.

[0112] Knowledge fusion requires iterative alignment of knowledge patterns and instances during the initial fusion and incremental fusion processes before it can enter the fusion filtering process.

[0113] like Figure 12 and Figure 13As shown, knowledge bases are typically represented as networks, with nodes representing entities and edges representing relationships between entities. RDF (Resource Description Framework) provides a flexible data model, its basic building blocks being (resource, attribute, attribute value) triples. A resource can be considered an object or entity, attributes describe relationships between resources, and an attribute value can be a resource or a literal, such as `<Yi River, originates from, Tianzhuang Reservoir>` which means "The Yi River originates from Tianzhuang Reservoir". RDF uses entities and attributes to describe relationships between individuals. These entities and attributes are defined by a schema. RDFS (RDF Schema) provides the most basic meta-expressions for describing classes and attributes, such as specifying the parent class of a class (rdfs:subClassOf), specifying the parent attribute of an attribute (rdfs:subPropertyOf), and specifying the domain of an attribute (rdfs:domain). While RDF(S) can represent some simple semantics, it lacks commonly used features in more complex scenarios. OWL is a richer lexical description language that can characterize relationships between classes (such as disjointness), cardinality of classes (such as "exactly one"), equality, richer attribute types, attribute characteristics (such as symmetry), and enumerated classes. For example, the classes River and Reservoir are disjoint, and a certain reservoir has only one main dam and three secondary dams.

[0114] Information extraction extracts knowledge elements such as entities, relationships, and attributes from the original corpus. Through knowledge fusion, ambiguity between entity referents and entity objects is eliminated, resulting in a series of basic factual expressions. However, facts themselves are not equivalent to knowledge. To ultimately obtain a structured, networked knowledge system, a knowledge processing process is still required. Knowledge processing mainly includes three aspects: knowledge reasoning, knowledge maintenance, and quality assessment.

[0115] Reasoning in water resources knowledge graphs primarily revolves around relational reasoning, that is, inferring unknown facts or relationships based on existing water resources facts or relationships within the graph. It generally focuses on examining the characteristics of entities, relationships, and graph structure. Specifically, knowledge graph reasoning can assist in reasoning out new facts, new relationships, new axioms, and new rules. Reasoning tasks mainly include: knowledge base completion (KBC) and quality verification of the knowledge graph through rule mining, link prediction, relational reasoning, and conflict detection. The main methods include logical rule-based reasoning, graph structure-based reasoning, distributed representation learning-based reasoning, neural network-based reasoning, and hybrid reasoning.

[0116] Knowledge graphs are stored in two forms depending on the use case: one is RDF-based storage, represented by Jena; the other is graph database-based storage, represented by Neo4j. A key design principle of RDF is the ease of data publication and sharing, while graph databases focus on efficient graph querying and searching. Ontology construction includes several standard semantic representation languages ​​such as RDF, RDFS, and OWL. These languages ​​have a logical hierarchy, with RDF being the most fundamental representation, representing knowledge as SPO triples. Additionally, there is a native representation method: the graph, which can be categorized into directed graphs, attribute graphs, tree graphs, etc. Since the SPO representation in RDF is naturally equivalent to an edge in a directed graph, the RDF representation is also naturally equivalent to the directed graph representation. Attribute graphs are a widely adopted graph data model in graph databases. They consist of a set of nodes and a set of edges, and satisfy the following properties: 1) Each node has a unique ID; 2) Each node has a set of attributes, each attribute being a key-value pair; 3) Each edge has a unique ID; 4) Each edge has a label indicating the relationship; 5) Each edge has a set of attributes, each attribute being a key-value pair. By comprehensively using RDF and graph database technologies, this approach manages and drives water conservancy knowledge, achieving ultra-large-scale data storage, providing high-performance native query interfaces, and seamlessly connecting to upper-layer business applications.

[0117] Business rules describe a set of structured rules that can be combined and applied. They involve structuring relevant laws, regulations, rules, technical standards, management methods, and procedures, and through the extraction, representation, and management of business rules, supporting rule adaptation for new business scenarios and regulating and constraining water conservancy business management behavior. The construction of the business rule library focuses on collecting, storing, and managing early warning and judgment rules for major business operations. This provides support for early warning and judgment in complex scenarios and under multi-objective control, such as flood control, water intake and total water consumption monitoring, and river and lake ecology and groundwater protection and restoration, thus supporting the intelligentization of water conservancy management early warning.

[0118] (1) Content of Business Rule Base Construction

[0119] like Figure 14 As shown, the main contents of the business rule base construction in this project include: building a knowledge ontology for the business rule knowledge base; extracting, storing, and managing relevant knowledge of business rules, including: flood control safety early warning and judgment rules, water intake and total water consumption supervision early warning and judgment rules, water resource protection early warning and judgment rules, etc. This provides support for early warning and judgment in complex scenarios and under multi-objective control, such as flood control, water intake and total water consumption supervision, and river and lake ecology and groundwater protection and restoration.

[0120] 1) Rules for Flood Control Safety Early Warning and Judgment

[0121] This includes flood risk warning and assessment rules for flood protection targets corresponding to certain monitoring or forecasting conditions. The data is extracted from flood control plan documents.

[0122] 2) Rules for the assessment and judgment of water intake and total water consumption

[0123] This includes monitoring and analysis of water use behavior corresponding to inflow and demand forecasts, and rules for monitoring, assessing, and warning about total regional water consumption. Data is derived from water use management regulations, water allocation plans, and converted data from water withdrawal permit procedures.

[0124] 3) Water Resources Protection Early Warning and Judgment Rules

[0125] This includes water resource protection early warning and judgment rules corresponding to certain monitoring or forecasting scenarios. The data is extracted and entered from ecological flow supervision system documents and ecological flow control plan documents.

[0126] 4) Project scheduling rules

[0127] The scheduling rules for each project are extracted, including tables corresponding to characteristic water levels and scheduling instructions, water level differences between gates and upstream / downstream areas and scheduling instructions, and operational status and scheduling instructions. Historical scheduling and operational data, annual water volume scheduling plans, and real-time project scheduling instructions for each gate and pumping station are analyzed to extract general rule forms for project scheduling and operation. A general description method for the scheduling rules of the project gates and pumping stations is constructed, and based on this, an project scheduling rule engine is built to enable the configuration and verification of arbitrary project scheduling rules.

[0128] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A water conservancy knowledge service system based on knowledge graph technology, characterized in that, include: The water conservancy issue collection module is used to collect water conservancy-related issues input by users. The semantic understanding module is used to perform semantic refinement and semantic understanding on the water conservancy-related issues to obtain semantic encoding features of the water conservancy-related issues; The alternative answer extraction module is used to extract the first alternative answer from the water resources knowledge graph. The alternative answer semantic understanding module is used to perform semantic understanding on the first alternative answer to obtain the semantic encoding features of the first alternative answer; The question-answer semantic interaction association encoding module is used to perform feature-level attention interaction association encoding on the semantic encoding features of the water conservancy-related questions and the semantic encoding features of the first alternative answers to obtain the semantic interaction features of water conservancy questions-answers. The question-answer fit evaluation module is used to determine whether the fit between the water conservancy question and the first alternative answer exceeds a predetermined threshold based on the semantic interaction features of the water conservancy question-answer. The semantic understanding module for the problem includes: The problem semantic improvement unit is used to pass the water conservancy problem through a problem semantic improver based on the AIGC model to obtain a semantically optimized water conservancy problem. A water conservancy problem semantic coding unit is used to perform semantic coding on the semantically optimized water conservancy problem using a first semantic encoder to obtain a water conservancy problem semantic coding feature vector as the water conservancy problem semantic coding feature; The alternative answer semantic understanding module is used to: use a second semantic encoder to semantically encode the first alternative answer to obtain a first alternative answer semantic encoding feature vector as the first alternative answer semantic encoding feature; The question-answer semantic interaction association encoding module is used to: use an inter-feature attention layer to perform feature-level attention interaction on the first candidate answer semantic encoding feature vector and the water conservancy question semantic encoding feature vector to obtain the water conservancy question-answer semantic interaction feature vector as the water conservancy question-answer semantic interaction feature; The question-answer fit evaluation module is used to: pass the semantic interaction feature vector of the water conservancy question-answer to a classifier to obtain a classification result, and the classification result is used to indicate whether the fit between the water conservancy question and the first candidate answer exceeds a predetermined threshold.

2. The water conservancy knowledge service system based on knowledge graph technology according to claim 1, characterized in that, It also includes a training module for training the first semantic encoder, the second semantic encoder, the inter-feature attention layer, and the classifier.

3. The water conservancy knowledge service system based on knowledge graph technology according to claim 2, characterized in that, The training module includes: The training data acquisition unit is used to acquire training data, which includes user-inputted training questions on water conservancy, extraction of training first alternative answers from the water conservancy knowledge graph, and whether the fit between the training water conservancy questions and the training first alternative answers exceeds a predetermined threshold. The training problem semantic optimization unit is used to pass the training water conservancy problem through the AIGC model-based problem semantic improver to obtain the training semantically optimized water conservancy problem. The training problem semantic encoding unit is used to perform semantic encoding on the training semantic optimization water conservancy problem using the first semantic encoder to obtain the training water conservancy problem semantic encoding feature vector; The training answer semantic encoding unit is used to perform semantic encoding on the training first candidate answer using the second semantic encoder to obtain the training first candidate answer semantic encoding feature vector; The training question-answer semantic feature interaction unit is used to perform feature-level attention interaction on the training first candidate answer semantic encoding feature vector and the training water conservancy question semantic encoding feature vector using the inter-feature attention layer to obtain the training water conservancy question-answer semantic interaction feature vector. A classification loss unit is used to pass the training water conservancy problem-answer semantic interaction feature vector through the classifier to obtain a classification loss function value; The model training unit is used to train the first semantic encoder, the second semantic encoder, the feature attention layer, and the classifier based on the classification loss function value and through directional propagation of gradient descent. In each iteration of the training, the training hydraulic problem-answer semantic interaction feature vector is subjected to weight space iterative recursive directed proposal optimization.

4. The water conservancy knowledge service system based on knowledge graph technology according to claim 3, characterized in that, In each iteration of the training, the training water conservancy problem-answer semantic interaction feature vector is subjected to weight space iterative recursive directed proposal optimization using the following optimization formula to obtain the optimized training water conservancy problem-answer semantic interaction feature vector; The optimization formula is as follows: ; ; ; in and These are the weight matrices from the previous and current iterations, respectively. It is the training water conservancy problem-answer semantic interaction feature vector. Represents matrix multiplication. This indicates dot product by position. The vector exponentiation operation represents calculating the value of a natural exponential function raised to the power of the eigenvalues ​​at each position in the vector. This represents the semantic interaction feature vector of the optimized training water conservancy problem-answer.

Citation Information

Patent Citations

  • Method for answering questions in petrochemical field based on knowledge map

    CN109492077A

  • Automatic question and answer generation method and system, terminal and readable storage medium

    CN113157886A