Water affairs data collection method and system
Through the event involvement relationship analysis algorithm, the physical and semantic elements in water affairs events are identified and extracted, which solves the problem of low efficiency and accuracy of water affairs event analysis in the existing technology, and achieves higher event processing accuracy and real-time performance.
Patent Information
- Application Number
- CN202410280855.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-03-12
AI Technical Summary
Existing water incident analysis methods rely on manual experience and rules, making it difficult to fully utilize the information in water incident data, resulting in limitations in the efficiency and accuracy of event processing, especially in terms of complexity and diversity. There are many challenges.
The event involvement relationship analysis algorithm is adopted, including event verification operator, element carrier extraction operator, event semantic representation operator and involvement verification operator, and through transfer learning and linkage pre-training algorithm, the physical and semantic elements in water affairs events are identified and extracted. , improve the accuracy of matching testing between events.
It improves the accuracy of the representation of physical and semantic elements of water incident data, enhances the matching of physical and semantic elements involved between water incident groups to be analyzed, and improves the accuracy and real-time performance of water incident processing.
Smart Images

Figure CN118228735B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of water management, and in particular to a water management data collection method and system. Background Art
[0002] In the field of water management, with the continuous development of Internet of Things technology, a large amount of water event data can be collected and monitored in real time. These data contain rich information and are of great value for predicting, analyzing and processing water events. In the process of water data collection, identifying the information involved between the data will help subsequent data analysis applications, such as building event knowledge graphs.
[0003] Traditional water incident analysis methods often rely on manual experience and rules, which makes it difficult to fully utilize the information in these data, resulting in limited efficiency and accuracy in event processing. In recent years, machine learning algorithms and neural network models have achieved remarkable results in many fields, providing new ideas for the processing and analysis of complex data.
[0004] In the field of water management, some studies have also attempted to apply these algorithms and models to analyze water event data. However, due to the complexity and diversity of water events, existing analysis methods still face many challenges in terms of accuracy and real-time performance. Therefore, how to effectively use machine learning algorithms and neural network models to analyze water event data and improve the accuracy of event processing is an urgent problem to be solved in the current water management field. Summary of the invention
[0005] The purpose of the present disclosure is to provide a water affairs data collection method and system to improve the above-mentioned problems.
[0006] The present disclosure is implemented as follows:
[0007] In a first aspect, an embodiment of the present disclosure provides a method for collecting water affairs data, the method comprising: performing water affairs event verification on target water affairs Internet of Things data according to an event verification operator of an event involvement relationship analysis algorithm, and obtaining a plurality of water affairs events to be analyzed in the target water affairs Internet of Things data and a plurality of first event physical element representations corresponding to the plurality of water affairs events to be analyzed; the event verification operator is obtained by transfer learning based on a data representation operator of a linkage pre-training algorithm and a training example of water affairs Internet of Things data; performing involved element expression extraction on the first event physical element representation corresponding to a water affairs event group to be analyzed consisting of two water affairs events to be analyzed among the plurality of water affairs events to be analyzed according to an element carrier extraction operator of the event involvement relationship analysis algorithm, and obtaining the first involved physical element representation of the water affairs event group to be analyzed; and performing extraction on the first event physical element representation corresponding to the water affairs event group to be analyzed according to the event involvement relationship analysis algorithm. The event semantic representation operator of the algorithm combines multiple preset water event involvement information to perform involvement semantic representation on the water event characterization information group to be analyzed corresponding to the water event group to be analyzed, and obtains multiple first involvement semantic element representations corresponding to the water event group to be analyzed; the event semantic representation operator belongs to the linkage pre-training algorithm, and during the iterative optimization process, the algorithm configuration parameters remain unchanged, and the multiple preset water event involvement information includes multiple example water event involvement information and added water event involvement information; according to the involvement verification operator of the event involvement relationship analysis algorithm, the multiple first involvement semantic element representations are each checked for matching with the first involvement physical element representation, and the target water event involvement information corresponding to the water event group to be analyzed is determined from the multiple example water event involvement information and the added water event involvement information.
[0008] Optionally, the event semantic representation operator based on the event involvement relationship analysis algorithm performs involvement semantic representation on the water event characterization information group to be analyzed corresponding to the water event group to be analyzed in combination with multiple preset water event involvement information, and obtains multiple first involvement semantic element representations corresponding to the water event group to be analyzed, including: dividing the water event characterization information group to be analyzed into cause event characterization information to be analyzed and effect event characterization information to be analyzed in order of position; using the multiple preset water event involvement information as multiple process event characterization information to be analyzed; for each process event characterization information to be analyzed, performing semantic representation on the cause event characterization information to be analyzed, the process event characterization information to be analyzed and the effect event characterization information to be analyzed according to the event semantic representation operator, and obtaining the first involvement semantic element representation.
[0009] Optionally, the involvement check operator according to the event involvement relationship analysis algorithm performs a matching check on each of the multiple first involved semantic element representations and the first involved physical element representation, and determines the target water event involvement information corresponding to the water event group to be analyzed from the multiple example water event involvement information and the added water event involvement information, including: performing a matching check on each of the multiple first involved semantic element representations and the first involved physical element representation according to the involvement check operator to obtain multiple first matching check values; among the multiple first matching check values, taking the preset water event involvement information corresponding to the first matching check value corresponding to the maximum matching check value as the target water event involvement information.
[0010] Optionally, the event involvement relationship analysis algorithm also includes a type transition representation operator, and the method also includes: according to the type transition representation operator in the event involvement relationship analysis algorithm, performing involvement element representation on the first local data corresponding to the water event group to be analyzed in the target water Internet of Things data, and obtaining the first involvement guiding element representation corresponding to the water event group to be analyzed; performing element representation interaction between the multiple first involvement semantic element representations and the first involvement guiding element representation, and obtaining multiple first interactive semantic element representations; according to the involvement verification operator of the event involvement relationship analysis algorithm, performing a matching check between the multiple first involvement semantic element representations and the first involvement physical element representation, and determining the target water event involvement information corresponding to the water event group to be analyzed from the multiple example water event involvement information and the added water event involvement information, including: performing a matching check between the multiple first interactive semantic element representations and the first involvement physical element representation according to the involvement verification operator, and determining the target water event involvement information from the multiple example water event involvement information and the added water event involvement information.
[0011] Optionally, the iterative optimization step of the event involvement relationship analysis algorithm includes: performing water event verification on the water affairs Internet of Things data training example according to the event verification operator of the initial event involvement relationship analysis algorithm to obtain multiple water affairs event examples in the water affairs Internet of Things data training example and multiple second event physical element representations corresponding to the multiple water affairs event examples; performing involved element expression extraction on the second event physical element representation corresponding to the water affairs event example group composed of two water affairs event examples in the multiple water affairs event examples according to the element carrier extraction operator of the initial event involvement relationship analysis algorithm to obtain the second involved physical element representation of the water affairs event example group; performing involved semantic representation on the water affairs event characterization information example corresponding to the water affairs event example group based on the multiple example water affairs event involvement information according to the event semantic representation operator of the initial event involvement relationship analysis algorithm to obtain multiple second involved semantic element representations corresponding to the water affairs event example group; performing the involved verification operator according to the initial event involvement relationship analysis algorithm , perform a matching check on each of the multiple second semantic element representations and the second physical element representation, obtain multiple second matching check values, and form a second matching check sequence for the water event example group; according to the multiple second event physical element representations, the multiple water event element representations corresponding to the multiple second event physical element representations, the second matching check sequence, the water event involvement information sequence corresponding to the water event example group, and the normalized error function of the initial event involvement relationship analysis algorithm, perform algorithm configuration parameter correction on the model algorithm configuration parameters of the initial event involvement relationship analysis algorithm to obtain the event involvement relationship analysis algorithm; the water event involvement information sequence represents the real water event involvement information between two water event examples in the water event example group, the multiple water event element representations are obtained by performing data element representation on the multiple water event local data corresponding to the multiple water event examples according to the data representation operator, and the algorithm configuration parameters of the event semantic representation operator remain unchanged.
[0012] Optionally, the event semantic representation operator according to the initial event involvement relationship analysis algorithm performs involvement semantic representation on the water event characterization information examples corresponding to the water event example group based on the multiple example water event involvement information, and obtains multiple second involvement semantic element representations corresponding to the water event example group, including: dividing the water event characterization information examples into cause event characterization information examples and effect event characterization information examples according to their positions; using the multiple example water event involvement information as multiple process event characterization information examples; for each process event characterization information example, performing semantic representation on the cause event characterization information example, the process event characterization information example and the effect event characterization information example according to the event semantic representation operator, and obtaining the second involvement semantic element representation.
[0013] Optionally, the initial event involvement relationship analysis algorithm also includes a type transition representation operator, and the method also includes: according to the type transition representation operator in the initial event involvement relationship analysis algorithm, performing involvement element representation on the second local data corresponding to the water event example group in the water Internet of Things data training example, to obtain a second involvement guiding element representation; performing element representation interaction between the multiple second involvement semantic element representations and the second involvement guiding element representation, to obtain multiple second interactive semantic element representations; according to the involvement check operator of the initial event involvement relationship analysis algorithm, performing a matching check between the multiple second involvement semantic element representations and the second involvement physical element representation, to obtain multiple second matching check values to form a second matching check sequence for the water event example group, including: according to the involvement check operator of the initial event involvement relationship analysis algorithm, performing a matching check between the multiple second interactive semantic element representations and the second involvement physical element representation, to obtain the second matching check sequence.
[0014] Optionally, the normalized error function includes a data element representation error function and an involvement check error function, and the normalized error function of the initial event involvement relationship analysis algorithm is used to correct the algorithm configuration parameters of the model algorithm configuration parameters of the initial event involvement relationship analysis algorithm to obtain the event involvement relationship analysis algorithm, including: obtaining error according to the multiple second event physical element representations, the multiple water event element representations and the data element representation error function to obtain a data element representation error; obtaining error according to the second matching check sequence, the water event involvement information sequence and the involvement check error function to obtain an involvement check error; and correcting the algorithm configuration parameters of the initial event involvement relationship analysis algorithm according to the data element representation error and the involvement check error to obtain the event involvement relationship analysis algorithm.
[0015] Optionally, the algorithm configuration parameters of the initial event involvement relationship analysis algorithm are corrected according to the data element representation error and the involvement check error to obtain the event involvement relationship analysis algorithm, including: correcting the algorithm configuration parameters of the event check operator of the initial event involvement relationship analysis algorithm according to the data element representation error; correcting the algorithm configuration parameters of the element carrier extraction operator and the involvement check operator of the initial event involvement relationship analysis algorithm according to the involvement check error; and using the initial event involvement relationship analysis algorithm after the algorithm configuration parameter correction as the event involvement relationship analysis algorithm.
[0016] Optionally, the normalized error function also includes a water event verification error function, and the method also includes: performing error acquisition based on the multiple water event examples, the multiple water event markers in the water Internet of Things data training examples and the water event verification error function to obtain a water event verification error; performing algorithm configuration parameter correction on the algorithm configuration parameters of the initial event involvement relationship analysis algorithm based on the data element representation error and the involvement verification error to obtain the event involvement relationship analysis algorithm, including: performing algorithm configuration parameter correction on the algorithm configuration parameters of the initial event involvement relationship analysis algorithm based on the water event verification error, the data element representation error and the involvement verification error to obtain the event involvement relationship analysis algorithm.
[0017] On the other hand, the present disclosure provides a water data collection system, comprising: one or more processors; a memory; one or more computer programs; wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and when the one or more computer programs are executed by the processors, the above-mentioned method is implemented.
[0018] The present disclosure at least includes the following technical effects: In the water affairs data collection method and system provided by the present disclosure, the event involvement relationship analysis algorithm includes an event verification operator, an element carrier extraction operator, an event semantic representation operator and an involvement verification operator. First, the target water affairs IoT data is input into the event verification operator for water affairs event verification, and multiple water affairs events to be analyzed and multiple first event physical element representations corresponding to the multiple water affairs events to be analyzed in the target water affairs IoT data are output. Among them, the event verification operator is obtained by transfer learning based on the data representation operator of the water affairs IoT data training examples and the linkage pre-training algorithm, so that the physical element representation and the semantic element representation in the water affairs IoT data have similarities, and the multiple water affairs events to be analyzed and the multiple first event physical element representations checked are more accurate. Then, the first event physical element representation corresponding to the water affairs event group to be analyzed composed of two water affairs events to be analyzed in the multiple water affairs events to be analyzed is input into the element carrier extraction operator for extraction of the involved element expression, and the first involved physical element representation of the water affairs event group to be analyzed is output. Among them, the multiple first event physical element representations with higher accuracy make the extracted first involved physical element representations more accurate. In addition, the water affairs event characterization information group to be analyzed corresponding to the water affairs event group to be analyzed is input into the event semantic representation operator, and the semantic representation is performed based on multiple preset water affairs event involved information including multiple example water affairs event involved information and added water affairs event involved information, and multiple first involved semantic element representations corresponding to the water affairs event group to be analyzed are output. Among them, the event semantic representation operator belongs to the linkage pre-training algorithm. During the iterative optimization process, the algorithm configuration parameters remain unchanged, so that the semantic element representation and the physical element representation in the water affairs Internet of Things data have similarities, and the multiple first involved semantic element representations tested are more accurate. Furthermore, adding the added water affairs event involved information does not have a negative impact on the original algorithm architecture. Finally, the multiple first involved semantic element representations and the first involved physical element representations are input into the involvement verification operator, and the matching test is performed on each of the multiple first involved semantic element representations and the first involved physical element representation, and the target water affairs event involved information corresponding to the water affairs event group to be analyzed is determined in the multiple example water affairs event involved information and the added water affairs event involved information. Among them, the first involved physical element representation with higher accuracy and the multiple first involved semantic element representations with higher accuracy, so that on the basis of adding the additional water event involved information, the detected target water event involved information has higher accuracy.
[0019] In summary, the method provided by the present disclosure is based on the event verification operator in the event involvement relationship analysis algorithm that makes the physical element representation and the semantic element representation in the water affairs Internet of Things data have similarities, and based on the element carrier extraction operator to improve the accuracy of the physical element representation between the two water affairs events to be analyzed in the target water affairs Internet of Things data. Based on the event semantic representation operator that makes the semantic element representation and the physical element representation in the water affairs Internet of Things data have similarities, based on multiple example water affairs event involvement information and added water affairs event involvement information, based on the prerequisite of not adversely affecting the architecture of the original algorithm, not only the added water affairs event involvement information is integrated, but also the accuracy of the multiple semantic element representations between the two water affairs events to be analyzed is improved. In this way, the matching test accuracy of the physical element representation and the multiple semantic element representations is improved, so as to improve the quality of the water affairs event involvement information inspection based on the water affairs Internet of Things data on the basis of adding the added water affairs event involvement information.
[0020] Other features will be described in part in the following description. Those skilled in the art will discover these features in part upon inspection of the following content and drawings, or may learn these features through production or use. The features of the present application may be implemented and obtained by practicing or using various aspects of the methods, tools, and combinations listed in the detailed examples described below. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for describing the embodiments of the present disclosure are briefly introduced below.
[0022] Figure 1 It is a flow chart of a water affairs data collection method provided by an embodiment of the present disclosure.
[0023] Figure 2 It is a schematic diagram of the composition of a water affairs data collection system provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] The following describes the embodiments of the present disclosure in conjunction with the drawings in the embodiments of the present disclosure. The terms used in the implementation method part of the embodiments of the present disclosure are only used to explain the specific embodiments of the present disclosure, and are not intended to limit the present disclosure.
[0025] The executor of the water affairs data collection method in the embodiment of the present disclosure is a water affairs data collection system, including but not limited to servers, personal computers, laptops, tablet computers, smart phones, etc. For example, a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of computers or network servers in cloud computing, wherein cloud computing is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computer sets. Among them, the water affairs data collection system can be operated alone to implement the present disclosure, and can also be connected to the network and implement the present disclosure through interactive operations with other water affairs data collection systems in the network. Among them, the network where the water affairs data collection system is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, VPN network, etc.
[0026] The present disclosure provides a water affairs data collection method, which is applied to a server, such as Figure 1 As shown, the method includes:
[0027] Operation 100: Perform water affairs event verification on target water affairs IoT data according to the event verification operator of the event involvement relationship analysis algorithm to obtain multiple water affairs events to be analyzed in the target water affairs IoT data and multiple first event physical element representations corresponding to the multiple water affairs events to be analyzed. The event verification operator is obtained by transfer learning based on the water affairs IoT data training examples and the data representation operator of the linkage pre-training algorithm.
[0028] In the disclosed embodiment, the target water IoT data is based on a sensor cluster (such as multiple pressure sensors, flow sensors, water quality sensors, etc.) deployed in the water network, and real-time measurements are collected of parameters such as water pressure, flow, water quality (such as pH value, turbidity, residual chlorine, etc.). After the data received from the sensor is stored by the data logger, the data is sent to the data center server for storage and data processing using a communication device. The data center server can perform pre-processing such as data cleaning, data conversion, feature engineering, and standardization on the acquired data, and finally obtain the target water IoT data. Among them, data cleaning can be the removal of duplicate, erroneous or incomplete data. Data conversion can be the conversion of data from the original format to the format required by the machine learning algorithm. Feature engineering can be the extraction of meaningful features, which may involve time series analysis, frequency domain conversion, etc. Data normalization / standardization can be to ensure that the data is within the same range for easy algorithm processing.
[0029] The data input into the target water affairs IoT data for water affairs event verification may be data in matrix form or sequence data form. For example, the following is an example of target water affairs IoT data in matrix form.
[0030]
[0031]
[0032] In operation 100, the event-involved relationship analysis algorithm is an algorithm for analyzing the association relationship between different events, and can be used to identify and analyze the mutual influence between various water affairs events. The event-involved relationship analysis algorithm can predict and explain new events by learning from historical data based on a machine learning model. For example, when the water pressure suddenly drops, the algorithm can help analyze whether this is related to a nearby water pipe rupture event. The event verification operator is a component in the event-involved relationship analysis algorithm that is used to verify events in water affairs IoT data. It can be viewed as a filter that can identify specific patterns or anomalies in the data that may represent the occurrence of water affairs events. For example, if the water pressure and flow data suddenly change dramatically, the event verification operator may identify that this is a potential water pipe leak event.
[0033] The target water IoT data refers to various data collected from the water system, such as water pressure, temperature, flow, etc. These data are usually collected by sensors installed in the water system and transmitted to the data center in real time for analysis. For example, a city's water system may collect water pressure and flow data in various areas to ensure the stability and safety of water supply. The water events to be analyzed refer to potential water events identified from the target water IoT data after being processed by the event verification operator. These events may require further analysis and confirmation. For example, the event verification operator may identify multiple areas with abnormal water pressure, where events such as water pipe leakage or blockage may have occurred. The first event physical element representation refers to the way to quantitatively express the characteristics of the water event to be analyzed. These characteristics can include physical parameters such as water pressure, temperature, flow, etc. This representation is usually in the form of vectors, matrices, or tensors, which is convenient for computer processing and analysis. For example, the first event physical element representation of a water pipe leakage event may include information such as the location of the leakage point, the leakage flow, and the duration of the leakage. The water IoT data training examples refer to the historical water data samples used to train the event verification operator. These samples contain instances of various water affairs events, as well as the features and labels corresponding to each event. By learning from these samples, the event verification operator is able to identify new water affairs events. For example, the training examples can include data on all water pipe leaks that occurred in the past year, as well as detailed information about each event. The linkage pre-training algorithm is a cross-modal neural network algorithm used to pre-train water affairs IoT data. Cross-modality here means that the algorithm can handle different types of data modalities, such as water affairs data modalities and characterization information modalities (such as text descriptions or labels). Through this algorithm, different types of data can be fused together for training to improve the accuracy and generalization ability of the event verification operator. For example, during training, the algorithm can simultaneously consider numerical data of water pressure and flow, as well as text description information about water pipe leaks. The data representation operator refers to the component that encodes the water affairs IoT data, which can convert the raw data into a format suitable for computer processing. The data representation operator plays a key role in the transfer learning process of the event verification operator. It can map data of different types and sizes into a unified feature space for subsequent analysis and processing. For example, for water pressure and flow data, a data representation operator might convert them into standardized numerical representations for subsequent comparison and analysis.
[0034] In operation 100, an event verification operator in the event involvement relationship analysis algorithm is used to perform an in-depth water affairs event verification on the target water affairs IoT data. This process aims to identify multiple water affairs events to be analyzed from the massive water affairs data and generate a corresponding first event physical element representation for each event.
[0035] The event verification operator is the core component of this step. It is based on a large number of water IoT data training examples and linkage pre-training algorithms. The linkage pre-training algorithm here is a cross-modal neural network algorithm that can process data of different modalities, such as water data modality and characterization information modality. Through this algorithm, the event verification operator can effectively encode water IoT data and identify key information in the data. In specific implementation, the event verification operator will scan and analyze the target water IoT data one by one. It will determine which data belongs to the same water event based on pre-set rules and algorithm models, such as classification algorithms or clustering algorithms in machine learning models. These rules may be based on thresholds or change patterns of physical parameters such as water pressure, temperature, and flow. Once a water event is identified, the event verification operator will generate a first event physical element representation for each event. These representations can be in the form of vectors, matrices, or tensors, which contain physical feature information of the event, such as the specific value of water pressure, the range of temperature changes, etc. These element representations are not only a direct description of the event characteristics, but also important input data in the subsequent analysis steps. To illustrate this process more specifically, for example, a city’s water system is equipped with a large number of sensors that continuously collect data such as water pressure, temperature, and flow. The task of the event verification operator is to identify possible water events from these data, such as pipe ruptures and water pollution. It determines which data combinations may represent an event based on historical data and preset rules, and generates a feature representation containing key physical features for each event.
[0036] Operation 200: Based on the element carrier extraction operator of the event involvement relationship analysis algorithm, the involved element expression is extracted from the first event physical element representation corresponding to the water event group to be analyzed consisting of two water events to be analyzed among multiple water events to be analyzed, so as to obtain the first involved physical element representation of the water event group to be analyzed.
[0037] Among them, the element carrier extraction operator is a component of the event involvement relationship analysis algorithm, which is responsible for extracting key features from the data. It can be regarded as a feature extraction tool that can identify and extract the most representative information in the data. For example, the convolutional neural network (CNN) is a common element carrier extraction operator that can extract key features that can characterize water events from data such as water pressure and flow. The water event group to be analyzed is a set of two or more events selected from multiple water events to be analyzed. These events are combined together for more in-depth analysis and comparison. For example, assume that five different water pressure abnormality events are initially identified as water events to be analyzed. In operation 200, the computer may select two of the events (such as event A and event B) to form a water event group to be analyzed in order to further analyze the correlation and common characteristics between them. The first event physical element representation is a data form that quantitatively describes the physical characteristics of a single water event to be analyzed. These physical characteristics can include the values or change patterns of parameters such as water pressure, temperature, and flow. For example, for a water pipe leakage event, the first event physical element representation may include the location coordinates of the leakage point, the water pressure value at the time of leakage, the flow rate change rate, etc. These data exist in the form of numerical values, vectors or matrices, which are convenient for computer processing and analysis.
[0038] The extraction of involved element expression refers to the process of extracting feature information related to the event involvement relationship from the first event physical element representation corresponding to the event in the water event group to be analyzed. This process aims to identify and quantify the mutual connection and influence between events. For example, when analyzing two water pressure abnormality events that occur simultaneously, the extraction of involved element expression may involve extracting the temporal and spatial correlation characteristics of the two events, such as whether they occur in the same area, whether the water pressure drops at the same time, and other common features. The first involved physical element representation is obtained after the extraction of involved element expression, which describes the feature representation of the mutual relationship between the events in the water event group to be analyzed. It contains the correlation information between events and is an important basis for further event analysis and decision-making. For example, for the water event group to be analyzed consisting of the two water pressure abnormality events mentioned above, its first involved physical element representation may include information such as the spatial distance between the two events, the time delay, and the similarity of their water pressure change patterns. These data exist in the form of numerical values, vectors, or matrices for subsequent analysis and comparison.
[0039] Operation 200 uses the element carrier extraction operator in the event involvement relationship analysis algorithm to perform more detailed feature extraction on the identified water affairs events to be analyzed. In specific implementation, the computer device will first select two water affairs events to be analyzed and combine them into a water affairs event group to be analyzed. The water affairs events to be analyzed here are preliminarily identified by the event verification operator in operation 100, and they each have a corresponding first event physical element representation, such as the value or change pattern of physical parameters such as water pressure and flow.
[0040] The element carrier extraction operator is an algorithmic structure specifically used to extract key information from these first event physical element representations. It can be a complex machine learning model, such as a convolutional neural network (CNN), which is particularly good at processing data with a grid structure, such as data collected by a sensor grid in the water Internet of Things. Through the operation of the convolution layer, the CNN can effectively extract local features in the data, and integrate and reduce these features through the pooling layer, and finally generate a compact and information-rich feature representation. In this operation 200, the element carrier extraction operator processes the first event physical element representations of two events in the water event group to be analyzed. It deeply analyzes each feature in these element representations, extracts the part that is most relevant to the event involvement relationship, and generates the first involved physical element representation of the water event group to be analyzed. This first involved physical element representation not only contains the physical feature information of each of the two events, but also contains the information about the relationship between them, which is an important basis for subsequent event association analysis and decision-making. For example, consider two simultaneous abnormal water pressure events in a city's water system. Operation 200 will conduct an in-depth analysis of the first event physical element representations of the two events through the element carrier extraction operator to extract their common and different features in terms of water pressure change patterns, abnormal occurrence time, etc. These feature information will be integrated into the first involved physical element representation to provide strong support for subsequent analysis and decision-making.
[0041] Operation 300: Based on the event semantic representation operator of the event involvement relationship analysis algorithm, a plurality of preset water event involvement information are combined to perform involvement semantic representation on the water event characterization information group to be analyzed corresponding to the water event group to be analyzed, and obtain a plurality of first involvement semantic element representations corresponding to the water event group to be analyzed; the event semantic representation operator belongs to the linkage pre-training algorithm, and during the iterative optimization process, the algorithm configuration parameters remain unchanged, and the plurality of preset water event involvement information includes a plurality of example water event involvement information and added water event involvement information.
[0042] Among them, the event semantic representation operator is a key component in the event involvement relationship analysis algorithm, which is responsible for converting unstructured water event description information (such as text or tags) into structured semantic representation. This conversion enables the computer to more accurately understand and analyze the content of water events and their relationship with other events. For example, assuming that there is a water event description of "a sharp drop in water pressure in a certain area", the event semantic representation operator can identify the key information of "water pressure drop" and encode it into a semantic form that can be understood by the computer, such as a vector or embedded representation. The preset water event involvement information is information about the water event involvement relationship that has been prepared before the analysis. This information may include historical water event data, known event patterns or rules, etc., which are used to assist the semantic representation process of the current water event group to be analyzed. For example, historical data shows that under similar weather conditions in the past, there was a certain correlation between the water pipe burst event in a certain area and the water pressure drop event. This correlation information can be used as the preset water event involvement information for the analysis of the current event group. The water event characterization information group to be analyzed refers to the event description information set corresponding to the water event group to be analyzed. Each water event has its own characterization information, which can be text descriptions, tags or other forms of metadata to provide detailed content and context of the event. For example, for two events in the water event group to be analyzed: water pressure drop and water pipe burst, their characterization information may be "water pressure drop of 50%" and "main water pipe burst causing water supply interruption" respectively. This information constitutes the water event characterization information group to be analyzed. Involvement semantic representation refers to the process of converting the information in the water event characterization information group to be analyzed, combined with the preset water event involvement information, into a structured representation that can express the semantic relationship between events. This process can be understood as encoding event information to reveal the intrinsic connection between them. For example, in the above example of water pressure drop and water pipe burst, the involvement semantic representation may include identifying the causal relationship between the two events and encoding this relationship into a computer-processable form, such as a vector or graph structure representing the causal relationship. The first involvement semantic element representation is obtained after processing by the event semantic representation operator, and describes the structured representation result of the semantic relationship between events in the water event group to be analyzed. It contains the key semantic connections between events and is an important basis for subsequent event association analysis and decision support. For example, in the above example, the first involved semantic element representation may be a vector set, each of which represents a certain semantic relationship between the water pressure drop event and the water pipe burst event, such as causal, temporal or spatial relationship.
[0043] The linkage pre-training algorithm is a training method for machine learning algorithms. It emphasizes the use of known event-related information and prior knowledge to optimize the performance of event semantic representation operators during the training process. Unlike traditional iterative optimization algorithms, it keeps the configuration parameters of the algorithm unchanged during the training process to ensure the consistency and stability of the training. For example, when training the event semantic representation operator, historical water affairs event data can be used as a training set, and the known event-related relationships in these data can be used to supervise the learning process of the operator. In this way, the operator can learn an effective method to extract key semantic features from water affairs event descriptions.
[0044] Example water incident-related information refers to existing water incident-related information that serves as training samples or references, and is usually derived from historical data or expert knowledge. Additional water incident-related information refers to new water incident-related information that is not in the training samples. They may be recent events or data collected in real time. For example, suppose there is a historical data set that contains relevant information on all water pipe bursts in the past 10 years. This information can be used as example water incident-related information. A new water pipe burst that occurred recently and its related data belong to the additional water incident-related information. Together, this information constitutes part of the preset water incident-related information, which is used to assist the semantic representation process of the current water incident group to be analyzed.
[0045] In operation 300, the computer device uses the event semantic representation operator of the event involvement relationship analysis algorithm to perform in-depth processing and analysis on the identified and grouped water affairs events to be analyzed (i.e., the water affairs event group to be analyzed). The core goal of this operation is to extract the semantic features of the events from the descriptive information of the water affairs events, and then understand the intrinsic connection between the events. The water affairs event characterization information group to be analyzed is a specific description of the water affairs events to be analyzed, and these descriptions can be in text form or in label form. For example, a water affairs event may be described as "a sudden drop in water pressure", while another event may be labeled as "a water pipe rupture". These descriptions and labels provide the computer device with a basis for understanding the content of the event. The event semantic representation operator is an algorithm component specially designed to parse these water affairs event characterization information. It can be regarded as a special encoder that can convert the original text or label information into a semantic encoding that can be understood by the computer. This encoding captures the essential characteristics of the event, making similar events closer in the semantic space.
[0046] When performing semantic representation of involvement, the computer device will combine multiple preset water affairs event involvement information. This information includes existing prior water affairs event involvement information (i.e., sample water affairs event involvement information) and new water affairs event involvement information (i.e., added water affairs event involvement information). This preset information provides background knowledge and reference framework for the algorithm, helping the algorithm to better understand the current water affairs event group to be analyzed.
[0047] It is worth noting that the event semantic representation operator is trained by linking the pre-training algorithm. During the training process, the configuration parameters of the algorithm remain unchanged to ensure the consistency and stability of the training. Through this training method, the event semantic representation operator can learn an effective method to extract key semantic features from the water affairs event characterization information.
[0048] Finally, the output of operation 300 is a plurality of first involved semantic element representations corresponding to the water affairs event group to be analyzed. These representations capture the semantic connections and mutual influences between the events in the event group, and provide an important basis for subsequent decision support. For example, by analyzing these semantic element representations, the system may be able to automatically identify the causal relationship between certain types of water affairs events, thereby providing early warnings and taking corresponding countermeasures.
[0049] In a feasible design, the operation 300 is to perform semantic representation of the water event characterization information group to be analyzed corresponding to the water event group to be analyzed according to the event semantic representation operator of the event involvement relationship analysis algorithm and in combination with multiple preset water event involvement information, and obtain multiple first semantic element representations corresponding to the water event group to be analyzed, including:
[0050] Operation 310: Divide the to-be-analyzed water affairs event characterization information group into to-be-analyzed cause event characterization information and to-be-analyzed effect event characterization information according to their positions.
[0051] The core task of operation 310 is to divide the water affairs event characterization information group to be analyzed into the cause event characterization information to be analyzed and the effect event characterization information to be analyzed according to the position sequence (for example, according to the time sequence). The purpose is to more clearly understand the cause-effect relationship between water affairs events, so as to more accurately analyze the involvement relationship between events. In the specific implementation, the computer device first identifies each event description information in the water affairs event characterization information group to be analyzed. This information can be a description in the form of text, or it can be metadata in the form of tags or other forms. Then, the computer device will divide these event description information into two categories according to their position in the time series: cause event characterization information to be analyzed and effect event characterization information to be analyzed.
[0052] For example, suppose there is a water event characterization information group to be analyzed, which contains two event description information: Event A is described as "a sharp drop in water pressure in a certain area", and Event B is described as "subsequently, a water pipe burst in the area, resulting in water outage". According to the temporal sequence of these two events, the computer device will identify Event A as the cause event characterization information to be analyzed, because it occurred first and may be the cause of the subsequent event; and identify Event B as the effect event characterization information to be analyzed, because it occurred later and was the result of the preceding event. Through such classification, operation 310 provides a basis for subsequent involvement relationship analysis. In the following operations, the computer device will combine the preset water event involvement information to further semantically represent and analyze these cause events and effect events to reveal the internal connections and influences between them. This is of great significance for decision support of smart water management systems and early warning and response to water events.
[0053] Operation 320: Using a plurality of preset water affairs event-related information as a plurality of process event characterization information to be analyzed.
[0054] Specifically, the preset water affairs event-related information includes prior knowledge or assumptions about water affairs events, which may come from historical data, expert judgment or other reliable sources. This information itself describes a certain relationship between water affairs events, such as causal relationship, temporal relationship or spatial relationship. In operation 320, the computer device regards the preset water affairs event-related information as the process event characterization information to be analyzed, that is, these relationships are regarded as important factors to be considered in the process of analyzing water affairs events.
[0055] Let's take an example to illustrate the implementation of operation 320. Assume that in a smart water management system, there is a preset water event involvement information that describes the cause-effect relationship of "a sharp drop in water pressure usually leads to a burst water pipe." This information is based on historical data and describes the common connection between a drop in water pressure and a burst water pipe. In operation 320, the computer device will use this preset cause-effect relationship as one of the process event characterization information to be analyzed. In this way, operation 320 provides richer background information and a reference framework for subsequent involvement relationship analysis. In subsequent operations, these process event characterization information to be analyzed will be used together with the cause event characterization information to be analyzed and the effect event characterization information to be analyzed to reveal the intrinsic connection and influence between water events. This is of great significance for improving the decision-making support capabilities and the ability to respond to water events of the smart water management system.
[0056] Operation 330: for each process event characterization information to be analyzed, semantically represent the cause event characterization information to be analyzed, the process event characterization information to be analyzed, and the result event characterization information to be analyzed according to the event semantic representation operator to obtain a first involved semantic element representation.
[0057] The goal of operation 330 is to use the event semantic representation operator to semantically represent the cause event characterization information to be analyzed, the process event characterization information to be analyzed, and the effect event characterization information to be analyzed for each process event characterization information to be analyzed, so as to obtain the first involved semantic element representation. The implementation of this step helps to deeply understand the complex relationship between water affairs events and provide strong support for subsequent event analysis and decision-making.
[0058] In the specific execution process, the computer device will first select a process event characterization information to be analyzed. This information describes a certain preset relationship between water affairs events, such as cause-effect relationship, time sequence relationship, etc. Then, the computer device will use the event semantic representation operator to semantically represent the cause event characterization information to be analyzed, the process event characterization information to be analyzed, and the result event characterization information to be analyzed.
[0059] The event semantic representation operator is used to convert the unstructured water affairs event description information into a structured semantic representation. This conversion enables the computer to more accurately understand and analyze the content of the water affairs event and its relationship with other events. In the implementation process, the event semantic representation operator can adopt a variety of machine learning algorithms or neural network models, such as recurrent neural network (RNN), convolutional neural network (CNN) or Transformer model. These models can capture the temporal features and semantic relationships in the event description information, thereby generating effective semantic representations. Take a specific example to illustrate the implementation process of operation 330: Assume that there is a process event characterization information to be analyzed that describes the causal relationship of "after a period of time after the water pressure drops, the water pipe will burst". At the same time, there is a cause event characterization information to be analyzed "the water pressure in a certain area drops sharply" and a result event characterization information to be analyzed "the water pipe burst in the area caused the water outage". The computer device will use the event semantic representation operator to semantically represent these three event characterization information. This may involve extracting key features in the event description, such as event type, time, location, etc., and generating corresponding vectors or embedded representations. These representations are then combined to form the first semantic element representation, which is used to describe the key semantic elements and relationships in this causal relationship. Through this processing, the key semantic connections between water affairs events can be extracted, providing an important basis for subsequent event correlation analysis and decision support.
[0060] Operation 400: Based on the involvement check operator of the event involvement relationship analysis algorithm, each of the multiple first involved semantic element representations is checked for matching with the first involved physical element representation, and the target water event involvement information corresponding to the water event group to be analyzed is determined from the multiple example water event involvement information and the added water event involvement information.
[0061] Among them, the involvement check operator is a component of the event involvement relationship analysis algorithm, which is used to check the matching between different elements. It can be regarded as a classification and recognition tool to determine whether different information belongs to the same category or has similarities. For example, the involvement check operator compares the first involved semantic element representation and the first involved physical element representation to see whether they match or are similar. For example, in a water incident, if the semantic representation of "sharp drop in water pressure" and the physical representation of "water pipe burst" are highly consistent in time, place and impact, then the involvement check operator will believe that there is a strong involvement relationship between them.
[0062] The first-involved semantic element representation is extracted through the aforementioned analysis steps (such as operation 300 and its derivative solutions), and represents the key features of the water incident at the semantic level. These features may include the type of event, the time of occurrence, the location, the objects involved, etc. For example, for the water incident of "water pressure drop", its first-involved semantic element representation may include key information such as event type (water pressure change), time (specific moment), location (a certain area), etc. The first-involved physical element representation refers to the representation of the physical state or physical change related to the water incident. It may include specific physical quantities or physical phenomena such as water pressure, water flow, and water quality. For example, in a water incident, the physical element representation of "water pipe burst" may include specific physical state changes such as the location of the burst, the change in water flow caused by the burst, and the drop in water pressure.
[0063] The matching test is to compare the similarity between two or more elements through a certain algorithm or method. In operation 400, this test is used to determine the matching degree between the first semantic element representation and the first physical element representation. For example, the computer device compares various aspects of the semantic element and the physical element, such as whether the time is consistent, whether the location is consistent, whether the affected objects are the same, etc., to determine whether they match or are similar. The example water event involvement information is pre-defined and represents the involvement relationship between known water events. This information is used as a reference to help determine the events in the water event group to be analyzed and the involvement relationship between them. For example, in the smart water management system, an example information describes the causal relationship that "a sharp drop in water pressure usually leads to a burst of water pipes." When the system detects a similar water pressure drop event, it will refer to this example information to determine whether a burst of water pipes may occur. Adding water event involvement information is dynamically added during the analysis process, which may be based on new observation data, user feedback or information from other sources. This information is also used to assist in determining the target water event involvement information of the water event group to be analyzed. For example, suppose during the analysis process, the system receives a new report indicating that a water pipe burst occurred shortly after a drop in water pressure in a certain area. This new information can be added to the additional water incident information as a reference for subsequent analysis.
[0064] The target water affairs event involvement information is the water affairs event involvement relationship that is finally determined through the aforementioned analysis steps and is the water affairs event involvement relationship that best matches the water affairs event group to be analyzed. It is the output result of operation 400 and provides a decision basis for subsequent water affairs event processing and management. For example, after analyzing multiple water affairs events, the system may determine that there is a strong involvement relationship between "water pressure drop" and "water pipe burst", and mark this relationship as the target water affairs event involvement information so that corresponding processing measures can be taken later.
[0065] Operation 400 uses the involvement check operator in the event involvement relationship analysis algorithm to perform a matching check on the relevant information of the water event group to be analyzed. The purpose is to accurately determine the target water event involvement information corresponding to the water event group to be analyzed from multiple example water event involvement information and added water event involvement information. Specifically, when the computer device executes operation 400, it first uses the involvement check operator to perform a matching check on multiple first involvement semantic element representations and first involvement physical element representations. The first involvement semantic element representation and the first involvement physical element representation here are obtained by performing the aforementioned analysis on the water event group to be analyzed, and they represent the key features of water events at the semantic and physical levels, respectively.
[0066] The matching test process can be understood as the process of measuring the similarity of these features. The computer device will use the similarity calculation method defined in the involvement test operator, such as cosine similarity, Euclidean distance, etc., to measure the similarity between the first involved semantic element representation and the first involved physical element representation. After completing the matching test, the computer device will select the target water event involvement information that best matches the water event group to be analyzed from multiple example water event involvement information and added water event involvement information. This selection process can select the information with the highest similarity or exceeding the preset threshold as the target water event involvement information based on the result of the similarity calculation. It should be noted that the example water event involvement information and the added water event involvement information are pre-defined or dynamically added, and they represent the involvement relationship between known water events. By matching this information with the water event group to be analyzed, the events in the water event group to be analyzed and the involvement relationship between them can be effectively identified.
[0067] For example, suppose there is a water event group to be analyzed that includes two events, "water pressure drop" and "water pipe burst". The computer device will first use the above operations to obtain the first involved semantic element representation and the first involved physical element representation of the two events. Then, it will use the involvement check operator to check the matching of these representations with the "water pressure drop leads to water pipe burst" in the example water event involvement information. If the test result shows a high degree of similarity, the computer device will determine this example information as the target water event involvement information of the water event group to be analyzed.
[0068] Through such processing, the events in the water affairs event group to be analyzed and the relationships between them can be accurately determined, providing strong support for subsequent water affairs event processing and management.
[0069] In a feasible design, operation 400, according to the involvement check operator in the event involvement relationship analysis algorithm, each of the plurality of first involved semantic element representations is checked for matching with the first involved physical element representation, and the target water event involvement information corresponding to the water event group to be analyzed is determined from the plurality of example water event involvement information and the added water event involvement information, including:
[0070] Operation 410: Perform a matching check on each of the plurality of first semantic element representations and the first physical element representation according to an involvement check operator to obtain a plurality of first matching check values.
[0071] Operation 420: Among the plurality of first matching check values, use the preset water event-related information corresponding to the first matching check value corresponding to the maximum matching check value as the target water event-related information.
[0072] In operation 410, the computer device uses the involvement check operator in the event involvement relationship analysis algorithm to perform a matching check on multiple first involved semantic element representations and first involved physical element representations. In this process, each first involved semantic element representation will be compared with the first involved physical element representation. This comparison is based on the similarity between semantic and physical features, and the purpose is to find event representations that are highly similar or related at both the semantic and physical levels. In order to perform this matching test, the involvement check operator will use a specific algorithm to calculate the similarity value, which is also called the first matching test value. The size of this value reflects the degree of matching between the first involved semantic element representation and the first involved physical element representation. The higher the similarity value, the better the matching between the two.
[0073] Next, when executing operation 420, the computer device will find the one corresponding to the maximum matching test value among multiple first matching test values. This maximum matching test value means that among all the comparisons, there is one or more pairs of first involved semantic element representations and first involved physical element representations with the highest similarity. Once the maximum matching test value is found, the computer device will further search for the preset water event involvement information corresponding to this value. This preset water event involvement information has been defined in previous analysis or experience, and it represents a specific involvement relationship between known water events. By associating the found maximum matching test value with these preset information, the computer device can determine the target water event involvement information that best matches the water event group to be analyzed.
[0074] For example, suppose there is a water affairs event group to be analyzed that includes two events, "a sharp drop in water pressure" and "a burst water pipe". When the computer device executes operation 410, it will perform a matching check on the first involved semantic element representation and the first involved physical element representation of the two events, and calculate the similarity value between them (for example, calculate the vector distance between the two to obtain the corresponding similarity value). Then, when executing operation 420, it will find the maximum value in the similarity value, and use the preset water affairs event involved information corresponding to the maximum value, such as "a sharp drop in water pressure causing a burst water pipe", as the target water affairs event involved information.
[0075] Through such a processing flow, it is possible to accurately find the one that best matches the water event group to be analyzed from multiple possible water event-related information, providing strong support for subsequent water event processing and management.
[0076] In a feasible design, the event involvement relationship analysis algorithm further includes a type transition representation operator. In this case, the method provided by the present disclosure may further include:
[0077] Operation a: Based on the type transition representation operator of the event involvement relationship analysis algorithm, the first local data corresponding to the water affairs event group to be analyzed in the target water affairs Internet of Things data is represented by the involvement elements to obtain the first involvement guiding element representation corresponding to the water affairs event group to be analyzed.
[0078] In this design, the event involvement relationship analysis algorithm is further expanded, and a type transition representation operator is introduced. This operator plays the role of cross-modal coding in the algorithm and can process different modal data from water affairs IoT data and characterization information. This cross-modal coding capability enables the algorithm to effectively convert and represent different types of data, thereby achieving more accurate event analysis. Specifically for operation a, the computer device processes the first local data corresponding to the water affairs event group to be analyzed in the target water affairs IoT data based on the type transition representation operator in the event involvement relationship analysis algorithm. The first local data here refers to the part of the data that is directly related to the water affairs event group to be analyzed, which may contain key information about the event.
[0079] The main task of the type transition representation operator is to represent the involved elements of these first local data, that is, to encode the involved features. This process can be understood as extracting key features from the data, which can reflect the involved relationship of the event. Through encoding, the algorithm can convert the original data into a form that is easier to analyze and process. The result of the encoding is called the first involved guiding element representation. This representation is actually a data structure containing key involved features, which can be used for subsequent analysis and processing. This representation is called a guiding element because it can provide important clues about the involved relationship of the event, thereby guiding the subsequent analysis process.
[0080] For example, suppose there is a group of water affairs events to be analyzed that includes two events: "water pressure drop" and "water pipe burst". When the computer device performs operation a, it will first extract the first local data directly related to the two events, such as real-time monitoring data of water pressure and status information of water pipes. Then, it will use the type transition representation operator to represent these data as involved elements and extract key features that can reflect the event involvement relationship, such as the speed and amplitude of the water pressure drop, the time and location of the water pipe burst, etc. These features will be encoded into a data structure as the first involved guiding element representation for subsequent analysis and processing.
[0081] Through such a processing flow, operation a can effectively extract the key involved features in the water affairs event group to be analyzed, providing strong support for subsequent event analysis and processing.
[0082] Operation b: performing element representation interaction between each of the plurality of first involved semantic element representations and the first involved guiding element representation to obtain a plurality of first interactive semantic element representations.
[0083] Among them, element representation interaction refers to the fusion of element representations from different sources to produce new and richer semantic element representations. Specifically, the first-involved semantic element representation is the key semantic features extracted from water affairs events through the analysis steps mentioned above, which represent the important information of the events at the semantic level. The first-involved guiding element representation is obtained by encoding the local data in the target water affairs IoT data through the type transition representation operator, which contains the key involved features that can guide subsequent analysis.
[0084] In operation b, the computer device implements the element representation interaction by means of feature fusion, which is a commonly used machine learning technique that can combine features from different feature spaces to generate a more distinguishing feature representation. In this scenario, feature fusion is used to combine the first involved semantic element representation and the first involved guiding element representation to generate a new first interactive semantic element representation.
[0085] For example, suppose there are two first-involved semantic element representations that describe the semantic features of the events "sharp drop in water pressure" and "burst of water pipes", respectively, while the first-involved guiding element representation contains the key involved features of the two events in terms of time, location and impact. Through feature fusion, the computer device can combine these features to generate new first-interactive semantic element representations, which contain both the semantic information of the event and the involved features of the event, thereby being able to more comprehensively describe the nature and relationship of the event.
[0086] In practical applications, feature fusion can be achieved through a variety of algorithms or models, such as concatenation operations in neural networks, weighted summation, etc. By selecting the appropriate fusion method, computer equipment can effectively interact with feature representations from different sources to improve the accuracy and reliability of event analysis.
[0087] Based on the above operations a and b, operation 400, according to the involvement check operator in the event involvement relationship analysis algorithm, each of the multiple first involved semantic element representations is checked for matching with the first involved physical element representation, and the target water event involvement information corresponding to the water event group to be analyzed is determined from multiple example water event involvement information and added water event involvement information. It can include: according to the involvement check operator, each of the multiple first interactive semantic element representations is checked for matching with the first involved physical element representation, and the target water event involvement information is determined from multiple example water event involvement information and added water event involvement information.
[0088] Specifically, the computer device first relies on the first interactive semantic element representations previously generated by operation a and operation b. These representations not only integrate the semantic features of the event, but also incorporate the key involvement features that guide subsequent analysis, thereby providing more comprehensive and richer information. The computer device uses the involvement test operator in the event involvement relationship analysis algorithm to perform a matching test on these first interactive semantic element representations and the first involved physical element representation. The matching test here refers to comparing and analyzing the similarity and consistency between the semantic element representation and the physical element representation to determine whether they are associated or matched.
[0089] During the matching check, the computer device uses a specific algorithm or model to calculate the similarity or matching degree. These algorithms or models may be based on machine learning methods, such as cosine similarity, Euclidean distance, etc., to quantify the similarity between the representations. By comparing the calculated similarity values, the computer device can evaluate which first interaction semantic element representations are more matched with the first involved physical element representations.
[0090] Finally, the computer device selects the water event involving information corresponding to the most matching first interactive semantic element representation from the multiple example water event involving information and the added water event involving information as the target water event involving information. This target water event involving information is the most relevant and most likely water event involving situation to be analyzed for the water event group.
[0091] For example, consider a water event group to be analyzed that includes two events: "water pressure drop" and "water pipe burst". Through operations a and b, the computer device has generated a first interactive semantic element representation that integrates semantics and key involvement features. Now, it will match these representations with the first involved physical element representation (such as the status of the water pipe, real-time monitoring data of water pressure, etc.). Through comparison and analysis, the computer device can determine the water event involvement information that best matches these representations, such as "water pipe burst due to a sharp drop in water pressure." This information will be regarded as the target water event involvement information and used for subsequent water event processing and management.
[0092] It can be understood that the event involvement relationship analysis algorithm is an important basis for the implementation of the present disclosure. Before obtaining the event involvement relationship analysis algorithm, it is necessary to optimize the initialization algorithm through continuous iteration to complete the algorithm tuning so that it meets the application conditions.
[0093] Next is an introduction to the iterative optimization process of the event involvement relationship analysis algorithm. Specifically, the method provided by the present disclosure also includes the following operations:
[0094] Operation 1: Perform water event verification on the water affairs IoT data training examples according to the event verification operator of the initial event involvement relationship analysis algorithm (i.e., the basic algorithm for completing parameter initialization), and obtain multiple water affairs event examples within the water affairs IoT data training examples and multiple second event physical element representations corresponding to the multiple water affairs event examples.
[0095] The event-involved relationship analysis algorithm is gradually adjusted from the initial state to meet the application conditions through a series of iterative optimization steps. The core goal of the optimization process is to improve the accuracy of the event verification and involvement relationship analysis of the algorithm when processing water IoT data. Operation 1 uses the event verification operator in the initial event-involved relationship analysis algorithm to verify the water IoT data training examples (i.e., sample data for training). The event verification operator here is a component in the algorithm used to identify and verify the occurrence of water events. By applying the training examples, this operator can identify the actual water events in the water IoT data and generate the corresponding event representation. Specifically, the computer device will process the collected water IoT data training examples based on the initial event-involved relationship analysis algorithm. These training examples contain various possible water event scenarios, such as abnormal water pressure, water quality changes, etc. The task of the event verification operator is to accurately identify the actual water events, such as "water pressure drop" or "water quality pollution", from these complex data.
[0096] After identifying water events, operation 1 will also generate a "second event physical element representation" for each identified event. This representation contains information about the physical characteristics of the event, such as the speed of water pressure drop, the degree of water pollution, etc. This information is crucial for the subsequent analysis of the involvement of the event.
[0097] For example, consider a water IoT data training example, which contains water pressure data within a certain period of time. The event verification operator identifies an event of "sharp drop in water pressure" by analyzing the changing trend of these data. Subsequently, it generates a second event physical element representation for this event, which may contain key information such as the speed and duration of the water pressure drop. Through operation 1, the initial event involvement relationship analysis algorithm can initially understand and represent the events and their physical characteristics in the water IoT data, laying the foundation for subsequent more in-depth event involvement relationship analysis.
[0098] Operation 2: Based on the element carrier extraction operator of the initial event involvement relationship analysis algorithm, the involved element expression is extracted for the second event physical element representation corresponding to the water event example group consisting of two water event examples among multiple water event examples to obtain the second involved physical element representation of the water event example group.
[0099] In operation 2, the computer device performs a deeper level of element extraction on the identified water event examples based on the element carrier extraction operator in the initial event involvement relationship analysis algorithm. The goal of this step is to extract the physical element information that is most critical to the event involvement relationship from the physical element representation of the event, namely the so-called involved elements. Specifically, the element carrier extraction operator is a tool specially designed to analyze and extract event elements. During the processing, the operator receives multiple second event physical element representations generated from operation 1 as input. These representations contain physical characteristic information of water events, such as changes in parameters such as water pressure, flow, and water quality.
[0100] The working principle of the element carrier extraction operator is based on the in-depth understanding and pattern recognition of the physical characteristics of water affairs events. It identifies the key elements that are most closely related to the events by analyzing the changing trends, rates, amplitudes and other characteristics of these physical characteristic parameters. These key elements may be the main factors that cause the events to occur, affect the development of the events or are associated with other events. To illustrate this process more clearly, assume that in operation 1, the computer equipment identified two examples of water affairs events: one is "a sharp drop in water pressure" and the other is "a burst water pipe". There is a high probability that there is a causal relationship between the two events, that is, the sharp drop in water pressure may be the cause of the burst water pipe.
[0101] In operation 2, the element carrier extraction operator analyzes the second event physical element representation of the two events. It may focus on key physical parameters such as the speed of water pressure drop and the water pressure threshold before the water pipe bursts. By analyzing these parameters, the operator can extract the physical elements that are most closely related to the event, such as "the speed of water pressure drop exceeds the threshold" as the key involved physical element causing the water pipe burst. Finally, operation 2 outputs the second involved physical element representation of each water event example group. These representations not only contain the physical characteristic information of the event itself, but also highlight the most critical physical elements involved in the event, providing an important basis for subsequent event relationship analysis and algorithm optimization.
[0102] Operation 3: According to the event semantic representation operator of the initial event involvement relationship analysis algorithm, based on multiple example water event involvement information, the water event characterization information examples corresponding to the water event example group are represented by involvement semantics to obtain multiple second involvement semantic element representations corresponding to the water event example group.
[0103] In operation 3, the computer device uses the event semantic representation operator in the initial event involvement relationship analysis algorithm to further parse and process the information in the water affairs event example group. The core is to transform the physical characteristics of water affairs events into more semantically meaningful element representations, so as to more accurately describe and understand the involvement relationship between events. The event semantic representation operator is a tool specially designed to extract semantic elements from the description information of water affairs events. This description information may include descriptive content such as the type of event, time of occurrence, location, and scope of impact. The operator extracts semantic elements closely related to the event involvement relationship through in-depth analysis and understanding of this information.
[0104] In specific operations, the event semantic representation operator will first receive the water event example group and its corresponding water event characterization information examples from the previous operation. These information examples may exist in text, data or mixed forms, describing the occurrence and impact of water events. The operator then uses natural language processing, pattern recognition and other technical means to parse and process this information and extract key semantic elements.
[0105] For example, suppose a water incident example group includes two events, "water pressure drop" and "water pipe burst". The description information of these two events may include: "During a certain period of time, the water pressure in a certain area continued to drop, and then a water pipe burst, causing a large amount of water to gush out." The event semantic representation operator will analyze this description and extract semantic elements closely related to the event involvement relationship, such as the causal relationship between "water pressure continued to drop" and "water pipe burst", the spatial location information of "a certain area", etc. Through the processing of operation 3, the computer device can generate multiple second involved semantic element representations corresponding to the water incident example group. These representations not only contain the physical characteristic information of the event, but also incorporate the semantic features of the event, providing a richer information basis for subsequent event relationship analysis and algorithm optimization. At the same time, this also provides better feature input for machine learning models when processing similar events, which helps to further improve model performance.
[0106] In a feasible design, operation 3, according to the event semantic representation operator of the initial event involvement relationship analysis algorithm, based on multiple example water affairs event involvement information, the water affairs event characterization information examples corresponding to the water affairs event example group are represented by involvement semantics, and multiple second involvement semantic element representations corresponding to the water affairs event example group are obtained, which may specifically include:
[0107] Operation 31: Divide the water affairs event characterization information examples into cause event characterization information examples and effect event characterization information examples according to their locations.
[0108] Operation 31 is used to divide the water affairs event description information examples into cause event description information examples and effect event description information examples according to the order of their positions. Here, "cause" and "effect" refer to the cause and effect in the cause-effect relationship, respectively. Through this step, the computer device can more clearly understand the logical relationship and occurrence order between water affairs events.
[0109] For example, consider an example of water affairs event description information: "Due to the aging of water pipes, the water pressure dropped, which eventually caused the water pipe to burst." In this example, "aging of water pipes" is the cause, and "drop in water pressure" and "burst of water pipes" are the results. Operation 31 will split this example into three parts: an example of cause event description information ("aging of water pipes"), an example of process event description information (information describing the "cause" leading to the "effect", which may include intermediate processes such as "gradual drop in water pressure"), and an example of effect event description information ("burst of water pipes"). It should be noted that the segmentation here is based on the logical order and causal relationship of the occurrence of events, rather than simply dividing according to the location of text or data. This segmentation method helps computer equipment to more accurately understand and represent the involvement relationship between water affairs events. Through the processing of operation 31, each water affairs event example group will be segmented into a clear causal chain, providing a more accurate information basis for subsequent event relationship analysis and algorithm optimization. At the same time, this also provides better feature input for machine learning models when processing similar events, which helps to further improve model performance.
[0110] Operation 32: Taking a plurality of water affairs event-related information as a plurality of process event characterization information examples.
[0111] Operation 33: For each process event characterization information example, semantic representation is performed on the cause event characterization information example, the process event characterization information example and the effect event characterization information example according to the event semantic representation operator to obtain a second involved semantic element representation.
[0112] In the derivative scheme of operation 3, the computer device will perform a series of detailed steps to more deeply analyze and represent the relationship between water affairs events. Among them, operation 32 and operation 33 are key links, which are jointly responsible for extracting more semantically meaningful information from the description of water affairs events and generating corresponding semantic element representations.
[0113] Operation 32 converts multiple examples of water affairs event-related information into multiple process event characterization information examples. These information examples describe the intermediate process from the cause event to the result event, that is, the development context and evolution process of the event. Through this step, the computer device can more comprehensively understand the integrity and dynamics of the water affairs event. For example, suppose there is a water affairs event description: "Due to the aging of the water supply pipeline, the water pressure gradually decreased, and finally caused the water pipe to burst." In operation 32, the computer device will split this description into multiple process event characterization information examples, such as "aging of the water supply pipeline", "gradual decrease in water pressure" and "water pipe burst". These examples correspond to the cause event, the intermediate process and the result event, respectively, forming a complete chain of events. Next, operation 33 will use the event semantic representation operator to perform semantic representation for each process event characterization information example. This operator has the ability to parse and represent event semantics, can extract key information in the event description, and convert it into a more semantically meaningful element representation. In this process, the computer device will simultaneously consider the cause event characterization information examples, the process event characterization information examples and the result event characterization information examples to ensure that the generated semantic element representation can fully reflect the involvement relationship of the event.
[0114] Continuing with the above example, in operation 33, the computer device will use the event semantic representation operator to semantically represent the process event characterization information examples such as "aging of water supply pipeline", "gradual decline in water pressure" and "burst of water pipe". By extracting key semantic elements such as "aging", "drop in water pressure" and "burst", the device can generate corresponding second involved semantic element representations. These representations not only contain the physical characteristic information of the event, but also incorporate the semantic features of the event, providing a richer information basis for subsequent event relationship analysis and algorithm optimization.
[0115] It should be noted that in practical applications, the specific implementation of the event semantic representation operator may vary depending on the application scenario and requirements. It can be a rule-based method, or a machine learning model or a deep learning network. For example, models such as recurrent neural networks (RNNs) or long short-term memory networks (LSTMs) can be used to capture the temporal dependencies in event descriptions and generate corresponding semantic element representations. These models have powerful sequence modeling capabilities and can effectively process variable-length event description sequences and extract key semantic information.
[0116] Operation 4: According to the involvement check operator of the initial event involvement relationship analysis algorithm, each of the multiple second involved semantic element representations is checked for matching with the second involved physical element representation to obtain multiple second matching check values to form a second matching check sequence for the water event example group.
[0117] In operation 4, the computer device uses the involvement check operator in the initial event involvement relationship analysis algorithm to perform a matching check on the multiple second involved semantic element representations and the second involved physical element representations generated in the previous step. The purpose of this step is to verify the consistency and mutual correlation between these element representations, so as to further confirm the involvement relationship between water affairs events. Specifically, the involvement check operator is a tool specially designed to compare and evaluate the degree of matching between different element representations. It receives multiple second involved semantic element representations from operation 3 and the second involved physical element representation obtained in operation 2 as input. Then, through a series of complex calculations and comparison processes, the operator evaluates the similarity and consistency of these element representations at the semantic and physical levels. Various machine learning models or algorithms may be used in this process, such as similarity calculation methods based on vector space models, semantic matching networks in deep learning, etc. These models or algorithms can help computer devices more accurately understand the intrinsic connections between different element representations and give corresponding matching test values.
[0118] For example, suppose that in a certain water event example group, the second involved semantic element representation describes the event of "a sharp drop in water pressure", while the second involved physical element representation contains information about physical parameters such as the speed and amplitude of the water pressure drop. The involvement check operator compares the similarity and consistency between the two representations, for example, by calculating their distance in the vector space or using a deep learning model to evaluate their semantic matching degree. Finally, operation 4 outputs a plurality of second matching test values, which constitute the second matching test sequence of the water event example group (in other words, the second matching test sequence is a one-bit array, i.e., a vector). This sequence not only reflects the matching degree between each second involved semantic element representation and the second involved physical element representation, but also provides an important basis for subsequent event relationship analysis and algorithm optimization. By continuously iterating and optimizing these matching test values, the computer device can more accurately identify and understand the involved relationships between water events, thereby improving the performance and accuracy of the entire system.
[0119] In a feasible design, the initial event involvement relationship analysis algorithm also includes a type transition representation operator. Based on this, the method provided by the present disclosure also includes:
[0120] Operation a': Based on the type transition representation operator in the initial event involvement relationship analysis algorithm, the second local data corresponding to the water affairs event example group in the water affairs Internet of Things data training example is represented by the involvement elements to obtain the second involvement guide element representation.
[0121] Operation b': performing element representation interaction between each of the plurality of second involved semantic element representations and the second involved guiding element representation to obtain a plurality of second interactive semantic element representations.
[0122] Operation a' and operation b' may refer to the description of operation a and operation b in the aforementioned embodiment, and will not be described in detail here.
[0123] Based on the above operations a' and b', optionally, operation 4, according to the involvement check operator of the initial event involvement relationship analysis algorithm, each of the multiple second involved semantic element representations and the second involved physical element representation is checked for matching, and multiple second matching check values are obtained to form a second matching check sequence of the water event example group, including: according to the involvement check operator of the initial event involvement relationship analysis algorithm, each of the multiple second interactive semantic element representations and the second involved physical element representation is checked for matching, and a second matching check sequence is obtained.
[0124] Among them, the computer device uses the involvement check operator in the initial event involvement relationship analysis algorithm to perform a key task: to check the matching of the previously generated multiple second involved semantic element representations with the corresponding second involved physical element representations. The purpose of this operation is to verify the consistency and correlation between the semantic and physical elements, so as to more accurately judge the actual involvement relationship between water affairs events. Specifically, the involvement check operator is a specially designed tool for comparing and evaluating the degree of matching between different types of element representations. In this scenario, it receives two sets of inputs: one set is the second involved semantic element representation, which captures the semantic meaning of the water affairs event; the other set is the second involved physical element representation, which describes the physical characteristics and parameters of the event. The matching check process involves multiple steps. First, the involvement check operator compares each second involved semantic element representation with the second involved physical element representation one by one. This comparison may be based on similarity calculation, pattern matching or more complex machine learning models, such as deep neural networks, to evaluate the correlation and consistency between the two. For example, consider a water incident, where the second semantic element describes "water pressure drop caused by water pipe rupture", while the second physical element contains physical information about the diameter of the ruptured water pipe, the specific value of the water pressure drop, etc. The involvement check operator analyzes this information to evaluate the degree of match between the semantic description and the physical parameters.
[0125] Next, for each pair of matching element representations, the involvement check operator will output a second matching test value, which quantifies the closeness of the match. Ultimately, all these test values will be combined into a sequence, called the second matching test sequence. This sequence not only reflects the degree of matching between each second involved semantic element representation and the corresponding physical element representation, but also provides an important basis for subsequent event relationship analysis and algorithm optimization. In this way, the ability of computer equipment to understand the complex involvement relationships between water events is enhanced. By combining semantic and physical information and performing precise matching tests, this solution helps to improve the accuracy and reliability of event analysis, thereby supporting more effective water management and emergency response.
[0126] Operation 5: According to the multiple second event physical element representations, the multiple water event element representations corresponding to the multiple second event physical element representations, the second matching check sequence, the water event involvement information sequence corresponding to the water event example group, and the normalized error function of the initial event involvement relationship analysis algorithm, the model algorithm configuration parameters of the initial event involvement relationship analysis algorithm are corrected to obtain the event involvement relationship analysis algorithm; wherein, the water event involvement information sequence represents the real water event involvement information between two water event examples in the water event example group, the multiple water event element representations are obtained by performing data element representation on the multiple water event local data corresponding to the multiple water event examples based on the data representation operator, and the algorithm configuration parameters of the event semantic representation operator remain unchanged.
[0127] Operation 5 is intended to improve the accuracy and performance of the event-involved relationship analysis algorithm. It involves multiple input data, including multiple second event physical element representations, their corresponding water event element representations, a second matching test sequence, and a water event-involved information sequence corresponding to the water event example group. At the same time, this step also depends on the normalized error function (i.e., the total error function) of the initial event-involved relationship analysis algorithm and the model algorithm configuration parameters.
[0128] Specifically, the computer device first uses a water event involvement information sequence, which represents the real involvement information between two water event examples in the water event example group, and can be a vector that represents the involvement information. Next, the computer device refers to multiple water event element representations, which are obtained by processing the local data of the water event through the data representation operator, and they capture the essential characteristics and key information of the water event. Then, combined with the second matching test sequence, the sequence is generated in operation 4, which reflects the degree of matching between the second involved semantic element representation and the second involved physical element representation. By analyzing these matching test values, the device can identify potential deficiencies and areas for improvement in the algorithm in understanding event involvement relationships.
[0129] When optimizing the algorithm, the normalized error function of the initial event-involved relationship analysis algorithm will play a key role. This function is used to quantify the difference between the algorithm prediction results and the actual results, thereby guiding the direction of the correction of the algorithm configuration parameters. Importantly, although the algorithm is being optimized, the algorithm configuration parameters of the event semantic representation operator remain unchanged during this process. This means that operation 5 mainly focuses on adjusting other parameters related to the representation of event physical elements and matching verification. Finally, by correcting the model algorithm configuration parameters, the computer device will obtain an updated event-involved relationship analysis algorithm. This optimized algorithm will be able to better understand and analyze the involvement relationship between water affairs events, thereby providing more accurate event prediction and response support. It should be emphasized that operation 5 is an iterative process and may need to be executed multiple times to achieve optimal performance. After each iteration, the configuration parameters of the algorithm will be updated, thereby continuously improving the algorithm's ability to understand and analyze the involvement relationship of water affairs events.
[0130] In a feasible design, the normalized error function includes a data element representation error function and an involvement check error function. In this design, step 5, based on multiple second event physical element representations, multiple water event element representations corresponding to the multiple second event physical element representations, the second matching check sequence, the water event involvement information sequence corresponding to the water event example group, and the normalized error function of the initial event involvement relationship analysis algorithm, the algorithm configuration parameter modification of the model algorithm configuration parameters of the initial event involvement relationship analysis algorithm is performed to obtain the event involvement relationship analysis algorithm, which may include the following operations:
[0131] Operation 51: performing error acquisition according to a plurality of second event physical element representations, a plurality of water event element representations and a data element representation error function to obtain a data element representation error.
[0132] Operation 52: performing error acquisition according to the second matching check sequence, the water affairs event involvement information sequence and the involvement check error function to obtain an involvement check error.
[0133] Operation 53: According to the data element representation error and the involvement check error, the algorithm configuration parameters of the initial event involvement relationship analysis algorithm are modified to obtain the event involvement relationship analysis algorithm.
[0134] In the above operations 51 to 53, the computer device will use a specific normalized error function to optimize the configuration parameters of the event involvement relationship analysis algorithm. This normalized error function consists of two parts: a data element representation error function and an involvement verification error function.
[0135] For the data element representation error, the computer device will use multiple second event physical element representations and their corresponding multiple water event element representations to calculate the data element representation error. The data element representation error reflects the difference or inconsistency between the physical element representation and the water event element representation. The computer device can calculate the difference between them. This difference can be measured by various distance metrics (such as Euclidean distance, cosine similarity, etc.) or a custom error function. All these difference values will be aggregated to form a total data element representation error. This total error can be a simple summation, average, or more complex aggregation method of the differences, depending on the design of the error function.
[0136] For the involvement check error, the computer device may calculate the involvement check error using the second matching check sequence and the water affairs event involvement information sequence. The involvement check error reflects the accuracy of the algorithm in matching and checking the water affairs event involvement relationship. For each value in the second matching check sequence, the computer device evaluates its consistency with the corresponding water affairs event involvement information. This consistency can be measured by comparing the difference between the matching check value and the actual involvement information. All these difference values will be aggregated to form a total involvement check error. Similar to the data element representation error, this total error can also be calculated by various aggregation methods.
[0137] When correcting the algorithm configuration parameters, the computer device may correct the algorithm configuration parameters of the initial event involvement relationship analysis algorithm based on the data element representation error and the involvement verification error calculated previously.
[0138] For example, the computer device first determines which configuration parameters have an impact on the error and evaluates their sensitivity to the error. Then, an optimization algorithm (such as gradient descent, genetic algorithm, etc.) is used to adjust these parameters to minimize the weighted sum of the data element representation error and the involvement test error or other forms of combined error. After multiple iterations and optimizations, the computer device will obtain a set of revised algorithm configuration parameters, which will be used to construct the final event involvement relationship analysis algorithm. In this way, the performance of the event involvement relationship analysis algorithm can be more comprehensively evaluated and optimized, thereby improving its accuracy and reliability in handling actual water affairs events.
[0139] The following is an example of the specific calculation formula for the data element representation error and the involved inspection error:
[0140] The data elements represent the error function:
[0141]
[0142] Among them, E data represents the data element representation error, N is the number of event element pairs, and P iis the physical element representation of the i-th second event, W i is with P i The corresponding water affairs event element is represented by ||P i -W i | 2 Represents the squared Euclidean distance between vectors.
[0143] Involves the test error function:
[0144]
[0145] Among them, E involve represents the involved test error, M is the number of matching test values, S j is the jth second matching test value, I j Yes and S j The corresponding actual water incident involved information, |S j -I j | indicates an absolute value.
[0146] As a feasible design, operation 53, according to the data element representation error and the involvement check error, the algorithm configuration parameters of the initial event involvement relationship analysis algorithm are corrected to obtain the event involvement relationship analysis algorithm, including:
[0147] Operation 531: Modify the algorithm configuration parameters of the event verification operator of the initial event involvement relationship analysis algorithm according to the data element representation error.
[0148] Operation 532: modifying the algorithm configuration parameters of the element carrier extraction operator and the involvement check operator of the initial event involvement relationship analysis algorithm according to the involvement check error.
[0149] Operation 533: using the initial event-involvement relationship analysis algorithm after the algorithm configuration parameters are modified as the event-involvement relationship analysis algorithm.
[0150] In the above operations 531 to 533, the computer device corrects the specific configuration parameters of the initial event involvement relationship analysis algorithm according to the previously calculated data element representation error and the involvement check error to obtain an optimized event involvement relationship analysis algorithm. Specifically, the computer device will modify the configuration parameters of the event check operator in the initial event involvement relationship analysis algorithm specifically according to the data element representation error. The event check operator is responsible for verifying and analyzing the semantic and physical elements of the water affairs event to ensure its accuracy and consistency.
[0151] The correction process may involve adjusting weights, thresholds, or other related parameters in the event check operator to better address the problem reflected by the data element representation error. For example, if the data element representation error indicates that there is a large difference between the physical element representation and the water event element representation, the computer device may adjust the similarity metric function or distance threshold in the event check operator to improve the accuracy of the element matching.
[0152] Then, the computer device will correct the configuration parameters of the element carrier extraction operator and the involvement verification operator in the initial event involvement relationship analysis algorithm according to the involvement verification error. The element carrier extraction operator is responsible for extracting key elements from the water affairs event data, while the involvement verification operator is responsible for verifying the involvement relationship between these elements.
[0153] The correction process may involve adjusting the feature selection strategy, extraction rules or model parameters in the feature carrier extraction operator, and adjusting the matching algorithm, weight distribution or decision threshold in the involvement test operator. These adjustments are aimed at reducing the error of involvement test and improving the accuracy of the algorithm in identifying and analyzing the involvement relationship of water affairs events.
[0154] For example, if the involvement check error indicates that the algorithm has difficulty identifying certain specific types of involvement relationships, the computer device may optimize the feature carrier extraction operator to better capture the key features of these relationships and adjust the matching algorithm in the involvement check operator to more accurately identify the associations between these features.
[0155] After completing the parameter correction in the above two steps, the computer equipment will obtain a set of optimized algorithm configuration parameters. These parameters will be applied to the initial event involvement relationship analysis algorithm to obtain the optimized event involvement relationship analysis algorithm. The optimized algorithm will be able to better process water incident data and provide more accurate event involvement relationship analysis and prediction. Through continuous iteration and optimization, this process helps to improve the efficiency and response speed of event management and provide more reliable support for the water industry.
[0156] It should be noted that these operations are based on the automatic processing and analysis capabilities of computer equipment, without the need for human intervention. At the same time, the specific implementation of the correction process may vary depending on the machine learning model or algorithm used. For example, if the initial event-involved relationship analysis algorithm is based on a neural network model, then parameter correction may involve adjusting parameters such as the weight, bias or activation function of the neural network.
[0157] Optionally, in an optional design scheme, the normalized error function also includes a water event verification error function. Based on this, the method provided by the present disclosure also includes: obtaining errors according to multiple water event examples, multiple water event markers in water Internet of Things data training examples, and a water event verification error function to obtain a water event verification error.
[0158] Based on this, operation 53, according to the data element representation error and the involvement verification error, the algorithm configuration parameters of the initial event involvement relationship analysis algorithm are corrected to obtain the event involvement relationship analysis algorithm, specifically including: according to the water event verification error, the data element representation error and the involvement verification error, the algorithm configuration parameters of the initial event involvement relationship analysis algorithm are corrected to obtain the event involvement relationship analysis algorithm.
[0159] In this optional design, the normalized error function further incorporates a water event verification error function to enhance the accuracy of water event analysis. First, the computer device uses multiple water event examples, multiple water event tags in the water IoT data training examples, and the water event verification error function to obtain errors. This process is to obtain a water event verification error.
[0160] Specifically, water incident examples are pre-defined or collected water incident cases, which contain various characteristics and attributes of water incidents. Water IoT data training examples are data samples collected from the water IoT system for training or validating algorithms. Water incident tags are labels related to water IoT data training examples, which represent the true attributes or classifications of the data. The water incident verification error function is a specific function used to measure the error of the algorithm in processing and analyzing water incidents. The function may be calculated based on the difference between the actual label and the label predicted by the algorithm.
[0161] To explain this process more specifically, we can assume that the initial event-involved relationship analysis algorithm is a classification algorithm based on machine learning, such as a support vector machine (SVM) or a neural network. Under this assumption, the algorithm configuration parameters may include the kernel function type and penalty coefficient of the SVM, or the number of layers, number of neurons, and learning rate of the neural network. When it is found that the algorithm has a large error when processing certain types of water affairs events, the computer equipment will automatically adjust these parameters to reduce the error and improve the overall performance of the algorithm.
[0162] Finally, the calculation formula for the water incident inspection error can be expressed as:
[0163]
[0164] Where N is the number of water incident examples, is the probability that the algorithm predicts that the i-th water incident example belongs to the l-th category.
[0165] So, in summary, the normalized error function E t Can be:
[0166] E t =E data +E involve +E exam
[0167] The present disclosure provides a water affairs data collection system. Figure 2 As shown, the water affairs data collection system 100 includes: a processor 101 and a memory 103. The processor 101 and the memory 103 are connected, such as through a bus 102. Optionally, the water affairs data collection system 100 may also include a transceiver 104. It should be noted that in actual applications, the transceiver 104 is not limited to one, and the structure of the water affairs data collection system 100 does not constitute a limitation on the embodiments of the present disclosure.
[0168] Processor 101 may be a CPU, a general-purpose processor, a GPU, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the contents disclosed in this disclosure. Processor 101 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc. Bus 102 may include a path to transmit information between the above components. Bus 102 may be a PCI bus or an EISA bus, etc. Bus 102 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0169] The memory 103 may be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 103 is used to store the application code for executing the scheme of the present disclosure, and is controlled by the processor 101 for execution. The processor 101 is used to execute the application code stored in the memory 103 to implement the content shown in any of the aforementioned method embodiments.
[0170] An embodiment of the present disclosure provides a water affairs data collection system. The water affairs data collection system in the embodiment of the present disclosure includes: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and when the one or more programs are executed by the processor, the method provided above is implemented.
[0171] An embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program runs on a processor, the processor can execute corresponding contents in the aforementioned method embodiment.
[0172] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0173] The above description is only a partial implementation mode of the present disclosure. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present disclosure. These improvements and modifications should also be regarded as the protection scope of the present disclosure.
Claims
1. A water affairs data collection method, characterized in that: The method comprises: Performing water affairs event inspection on target water affairs IoT data according to the event inspection operator of the event involvement relationship analysis algorithm, obtaining multiple water affairs events to be analyzed in the target water affairs IoT data and multiple first event physical element representations corresponding to the multiple water affairs events to be analyzed; the event inspection operator is obtained based on the water affairs IoT data training examples and the data representation operator transfer learning of the linkage pre-training algorithm; According to the element carrier extraction operator of the event involvement relationship analysis algorithm, extract the involved element expression corresponding to the first event physical element representation of the water affairs event group to be analyzed consisting of two water affairs events to be analyzed among the multiple water affairs events to be analyzed, so as to obtain the first involved physical element representation of the water affairs event group to be analyzed; According to the event semantic representation operator of the event involvement relationship analysis algorithm, the water affairs event characterization information group to be analyzed corresponding to the water affairs event group to be analyzed is represented by involvement semantics in combination with multiple preset water affairs event involvement information, and multiple first involvement semantic element representations corresponding to the water affairs event group to be analyzed are obtained; the event semantic representation operator belongs to the linkage pre-training algorithm, and in the iterative optimization process, the algorithm configuration parameters remain unchanged, and the multiple preset water affairs event involvement information includes multiple example water affairs event involvement information and additional water affairs event involvement information; According to the involvement check operator of the event involvement relationship analysis algorithm, each of the plurality of first involved semantic element representations is checked for matching with the first involved physical element representation, and the target water event involvement information corresponding to the water event group to be analyzed is determined from the plurality of example water event involvement information and the added water event involvement information; Among them, the event semantic representation operator according to the event involvement relationship analysis algorithm performs involvement semantic representation on the water affairs event characterization information group to be analyzed corresponding to the water affairs event group to be analyzed in combination with multiple preset water affairs event involvement information, and obtains multiple first involvement semantic element representations corresponding to the water affairs event group to be analyzed, including: Dividing the water affairs event characterization information group to be analyzed into the cause event characterization information to be analyzed and the effect event characterization information to be analyzed according to the positions; Using the plurality of preset water affairs event-related information as a plurality of process event characterization information to be analyzed; For each process event characterization information to be analyzed, semantic representation is performed on the cause event characterization information to be analyzed, the process event characterization information to be analyzed, and the result event characterization information to be analyzed according to the event semantic representation operator to obtain the first involved semantic element representation.
2. The method according to claim 1, characterized in that The involvement check operator according to the event involvement relationship analysis algorithm performs a matching check on each of the plurality of first involved semantic element representations and the first involved physical element representation, and determines the target water event involvement information corresponding to the water event group to be analyzed from the plurality of example water event involvement information and the added water event involvement information, including: Performing a matching check on each of the plurality of first semantic element representations and the first physical element representation according to the involvement check operator to obtain a plurality of first matching check values; Among the plurality of first matching check values, the preset water event-related information corresponding to the first matching check value corresponding to the maximum matching check value is used as the target water event-related information.
3. The method according to claim 1, characterized in that The event-involved relationship analysis algorithm further includes a type transition representation operator, and the method further includes: According to the type transition representation operator in the event involvement relationship analysis algorithm, the first local data corresponding to the to-be-analyzed water affairs event group in the target water affairs IoT data is represented by the involvement element, so as to obtain the first involvement guide element representation corresponding to the to-be-analyzed water affairs event group; Performing element representation interaction between each of the plurality of first involved semantic element representations and the first involved guiding element representation to obtain a plurality of first interactive semantic element representations; The involvement check operator according to the event involvement relationship analysis algorithm performs a matching check on each of the plurality of first involved semantic element representations and the first involved physical element representation, and determines the target water event involvement information corresponding to the water event group to be analyzed from the plurality of example water event involvement information and the added water event involvement information, including: According to the involvement check operator, each of the multiple first interactive semantic element representations is checked for matching with the first involved physical element representation, and the target water event involvement information is determined from the multiple example water event involvement information and the added water event involvement information.
4. The method according to any one of claims 1 to 3, characterized in that: The event involves iterative optimization of the relationship analysis algorithm, including: Performing a water affairs event check on the water affairs IoT data training example according to the event check operator of the initial event involvement relationship analysis algorithm to obtain a plurality of water affairs event examples in the water affairs IoT data training example and a plurality of second event physical element representations corresponding to the plurality of water affairs event examples; According to the element carrier extraction operator of the initial event involvement relationship analysis algorithm, extract the involved element expression of the second event physical element representation corresponding to the water event example group consisting of two water event examples in the multiple water event examples to obtain the second involved physical element representation of the water event example group; According to the event semantic representation operator of the initial event involvement relationship analysis algorithm, based on the multiple example water affairs event involvement information, the water affairs event characterization information examples corresponding to the water affairs event example group are subjected to involvement semantic representation, so as to obtain multiple second involvement semantic element representations corresponding to the water affairs event example group; According to the involvement check operator of the initial event involvement relationship analysis algorithm, each of the plurality of second involved semantic element representations is subjected to a matching check with the second involved physical element representation to obtain a plurality of second matching check values, which constitute a second matching check sequence of the water affairs event example group; According to the multiple second event physical element representations, the multiple water event element representations corresponding to the multiple second event physical element representations, the second matching verification sequence, the water event involvement information sequence corresponding to the water event example group, and the normalized error function of the initial event involvement relationship analysis algorithm, the model algorithm configuration parameters of the initial event involvement relationship analysis algorithm are modified to obtain the event involvement relationship analysis algorithm; The water event involvement information sequence represents the real water event involvement information between two water event examples in the water event example group, and the multiple water event element representations are obtained by performing data element representation on the multiple water event local data corresponding to the multiple water event examples based on the data representation operator, and the algorithm configuration parameters of the event semantic representation operator remain unchanged.
5. The method according to claim 4, characterized in that The event semantic representation operator according to the initial event involvement relationship analysis algorithm performs involvement semantic representation on the water event characterization information examples corresponding to the water event example group based on the multiple example water event involvement information to obtain multiple second involvement semantic element representations corresponding to the water event example group, including: Divide the water affairs event description information examples into cause event description information examples and effect event description information examples according to their positions; Taking the multiple water affairs event-related information as multiple process event description information examples; For each process event characterization information example, semantic representation is performed on the cause event characterization information example, the process event characterization information example and the result event characterization information example according to the event semantic representation operator to obtain the second involved semantic element representation.
6. The method according to claim 4, characterized in that The initial event involvement relationship analysis algorithm further includes a type transition representation operator, and the method further includes: According to the type transition representation operator in the initial event involvement relationship analysis algorithm, the second local data corresponding to the water affairs event example group in the water affairs IoT data training example is represented by the involvement element to obtain the second involvement guide element representation; Performing element representation interaction between each of the plurality of second involved semantic element representations and the second involved guiding element representation to obtain a plurality of second interactive semantic element representations; The method of performing a matching check on each of the plurality of second semantic element representations and the second physical element representation according to the initial event involvement relation analysis algorithm to obtain a plurality of second matching check values to form a second matching check sequence of the water affairs event example group includes: According to the involvement check operator of the initial event involvement relationship analysis algorithm, each of the plurality of second interactive semantic element representations is checked for matching with the second involved physical element representation to obtain the second matching check sequence.
7. The method according to claim 4, characterized in that The normalized error function includes a data element representation error function and an involvement check error function. The algorithm configuration parameter correction is performed on the model algorithm configuration parameters of the initial event involvement relationship analysis algorithm according to the multiple second event physical element representations, the multiple water event element representations corresponding to the multiple second event physical element representations, the second matching check sequence, the water event involvement information sequence corresponding to the water event example group, and the normalized error function of the initial event involvement relationship analysis algorithm to obtain the event involvement relationship analysis algorithm, including: Obtaining errors according to the plurality of second event physical element representations, the plurality of water event element representations and the data element representation error function to obtain a data element representation error; Perform error acquisition according to the second matching check sequence, the water affairs event involved information sequence and the involved check error function to obtain an involved check error; According to the data element representation error and the involvement verification error, the algorithm configuration parameters of the initial event involvement relationship analysis algorithm are corrected to obtain the event involvement relationship analysis algorithm.
8. The method according to claim 7, characterized in that The method of modifying the algorithm configuration parameters of the initial event involvement relationship analysis algorithm according to the data element representation error and the involvement verification error to obtain the event involvement relationship analysis algorithm includes: Modifying the algorithm configuration parameters of the event verification operator of the initial event involvement relationship analysis algorithm according to the data element representation error; Modify the algorithm configuration parameters of the element carrier extraction operator and the involvement check operator of the initial event involvement relationship analysis algorithm according to the involvement check error; The initial event involvement relationship analysis algorithm after the algorithm configuration parameters are modified is used as the event involvement relationship analysis algorithm.
9. The method according to claim 7, characterized in that The normalized error function also includes a water affairs event verification error function, and the method further includes: Error acquisition is performed according to the multiple water affairs event examples, the multiple water affairs event tags in the water affairs IoT data training example, and the water affairs event verification error function to obtain a water affairs event verification error; The method of modifying the algorithm configuration parameters of the initial event involvement relationship analysis algorithm according to the data element representation error and the involvement verification error to obtain the event involvement relationship analysis algorithm includes: According to the water event verification error, the data element representation error and the involvement verification error, the algorithm configuration parameters of the initial event involvement relationship analysis algorithm are corrected to obtain the event involvement relationship analysis algorithm.
10. A water affairs data collection system, characterized in that: include: one or more processors; Memory; one or more computer programs; The one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and when the one or more computer programs are executed by the processors, the method according to any one of claims 1 to 9 is implemented.
