Multi-source heterogeneous quality information fusion processing method and system for power grid main equipment
By building a data extraction, cleaning, conversion and fusion model, the problem of data redundancy and inconsistency of multi-source heterogeneous quality information of main equipment of the power grid is solved, and the data quality and shareability are improved, which is suitable for the fusion of massive information in smart grids. .
Patent Information
- Application Number
- CN202210722110.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-24
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-06-24
AI Technical Summary
Data redundancy and inconsistency in multi-source heterogeneous quality information of main equipment in the power grid lead to low data sharing and availability, affecting the development of smart grids.
Construct data extraction model, data cleaning model, data conversion model and data fusion model to extract entities, relationships and attributes respectively, clean erroneous data, convert data with inconsistent formats, and remove redundant information to form easy-to-process triples form to improve data quality and shareability.
It effectively reduces data redundancy, improves data quality and analysis and processing efficiency, enhances the sharing and availability of multi-source heterogeneous quality information, and is suitable for massive information fusion in the context of power big data.
Smart Images

Figure CN115099338B
Abstract
Description
Technical Field
[0001] The present invention relates to a method and system for fusion processing of multi-source heterogeneous quality information of power grid main equipment, and belongs to the technical field of power grid main equipment. Background Art
[0002] With the rapid development of smart grids, a large amount of quality information data generated by main grid equipment in materials, infrastructure, operation and maintenance can be quickly captured by power data acquisition equipment such as sensors, audio and video monitoring and communication equipment, and intelligent sensing equipment. The quality information data of main grid equipment shows an explosive growth trend, and its data structure also shows the characteristics of coexistence of multiple forms. It contains a large amount of structured data, such as voltage, current, power loss, power quality information database, etc., and a large amount of unstructured data, such as fault cases, disposal plans, specifications, guidelines, standards, scientific research papers and other texts. However, the multi-source heterogeneity of the quality information of main grid equipment seriously affects the sharing and availability of data, which is not conducive to mining potential valuable information from it, and seriously affects the interconnection, sharing, openness and intelligent development of the grid. It is urgent to adopt an effective data fusion method to uniformly process multi-source heterogeneous data to help the safe, reliable and stable operation of smart grids.
[0003] The existing multi-source heterogeneous data fusion system is mainly based on the power enterprise data warehouse model, the traditional BP back propagation network, RNN recurrent neural network, Bayesian estimation method, DS evidence theory and other algorithms. These systems have low data analysis and processing efficiency and poor feature fusion effect when performing data fusion, and are not suitable for the fusion of massive information in the context of power big data. Summary of the invention
[0004] In view of the defects of the prior art, the first object of the present invention is to provide a method for constructing a data extraction model for extracting entities, relationships, attributes, and attribute values from multi-source heterogeneous data to form a triple form that is easy for computer processing; construct a data cleaning model for screening, eliminating, and repairing erroneous, redundant, and non-compliant data from numerous data sources to achieve the purpose of improving data quality; construct a data conversion model for converting multi-source heterogeneous data with inconsistent formats into a unified target data format to achieve indiscriminate access by users; construct a data fusion model for eliminating and complementing redundant and insufficient information between multi-source heterogeneous data to improve the sharing and availability of data; and thus the present invention can effectively reduce data redundancy, improve data quality and data analysis and processing efficiency, and enhance the sharing and availability of multi-source heterogeneous quality information between power grid main equipment, which is a multi-source heterogeneous quality information fusion processing method for power grid main equipment.
[0005] In view of the defects of the prior art, the second object of the present invention is to provide a multi-source heterogeneous quality information fusion system for power grid main equipment, which can effectively reduce data redundancy, improve data quality and data analysis and processing efficiency, and enhance the sharing and availability of multi-source heterogeneous quality information of power grid main equipment.
[0006] To achieve one of the above purposes, the first technical solution of the present invention is:
[0007] The method for fusion processing of multi-source heterogeneous quality information of power grid main equipment includes the following steps:
[0008] Step 1: Obtain structured quality information and unstructured quality information from an online monitoring device;
[0009] Step 2: Clean the structured quality information and the unstructured quality information in step 1 to obtain structured cleaned data and unstructured cleaned data;
[0010] Step 3: Use the pre-built data extraction model to map the structured clean data in step 2 using the mapping language R2RML to obtain triple data; use the data extraction model and triple data to perform relationship recognition on the unstructured clean data in step 2 to obtain relationship recognition data;
[0011] Step 4: According to the pre-built data conversion model, the data format of the relationship identification data is converted to obtain the exchange string data;
[0012] Step 5: Based on the pre-built data fusion model, the exchange string data is processed to obtain the quality event recognition result.
[0013] After continuous exploration and experimentation, the present invention constructs a data extraction model for extracting entities, relationships, attributes, and attribute values from multi-source heterogeneous data to form a triple form that is easy for computers to process; constructs a data cleaning model for screening, eliminating, and repairing erroneous, redundant, and non-compliant data from numerous data sources to achieve the purpose of improving data quality; constructs a data conversion model for converting multi-source heterogeneous data with inconsistent formats into a unified target data format to achieve indiscriminate access by users; constructs a data fusion model for eliminating and complementing redundant and insufficient information between multi-source heterogeneous data to improve the sharing and availability of data; and thus the present invention can effectively reduce data redundancy, improve data quality and data analysis and processing efficiency, and enhance the sharing and availability of multi-source heterogeneous quality information between power grid main equipment.
[0014] Furthermore, the present invention can shorten the time of data fusion, improve the effect of feature fusion, and realize the function of real-time reception and centralized processing and analysis of multi-source heterogeneous data, filling the gap of multi-source heterogeneous quality information fusion of power grid main equipment in the power field, and providing strong support for quality event identification, which is particularly suitable for massive information fusion in the context of power big data.
[0015] As the preferred technical measures:
[0016] In the step 1, the structured quality information includes voltage, current, power loss, and power quality database;
[0017] The unstructured quality information includes fault reports, fault handling solutions, and standard guidelines sent by user mobile terminals.
[0018] As a preferred technical measure: the triple data includes entity-relationship-entity, entity-attribute-attribute value;
[0019] Use the data extraction model and triple data to identify the relationship of the unstructured cleaned data in step 2, and obtain the relationship identification data, including:
[0020] The data extraction model is used to clean the unstructured data and perform initial vectorization processing. The word vector is optimized by the pre-trained model BERT, and then enters the semantic encoding layer of the neural network structure BiLSTM. The forward neural network LSTM learns the previous context information, and the backward neural network LSTM learns the subsequent context information. The neural network LSTM chooses to abandon the information that needs to be forgotten in the previous cell through the forget gate, and receives the output of the previous moment and the input of the current moment;
[0021] Then input the text sequence X and entity pair E, use the syntactic dependency analysis method to analyze the text grammar and extract the related words in the text;
[0022] The entity pair E and the relational word are used as the input of the pre-trained model to obtain a vector representation. Then, a weight is assigned to each word vector through the attention mechanism. The weighted sum of all vectors is used to obtain a feature vector. The logical classification function softmax is used to classify the feature vector to obtain the relation recognition data.
[0023] As the preferred technical measures:
[0024] In step 2, the method for structured cleaning data is as follows:
[0025] First, check whether the structured quality information is missing based on the overall structure of the database, and identify whether it is text-based or numeric-based. If it is text-based, automatically add a blank string at the missing position.
[0026] If the numeric value is missing, 0 or NaN value is automatically added at the missing position; set to delete the row or column when the number of empty values in a row or column is greater than or equal to 4;
[0027] If there is a problem with data duplication, use the drop_duplicates() function in the data analysis package Pandas to delete the duplicate data.
[0028] As a preferred technical measure: the method of cleaning unstructured data is as follows:
[0029] First, the received unstructured quality information is normalized. The character normalization model CharTable in the natural language processing package HanLP is used to convert the full-width characters in the unstructured quality information into half-width characters and unify the upper and lower case of English. Then, the word segmentation library jieba is used to perform word segmentation and stop word removal, and uncommon words and symbols in the unstructured quality information are deleted.
[0030] As the preferred technical measures:
[0031] In the step 2, the structured cleansing data is a two-dimensional table, the header of the two-dimensional table includes all data types, names, and remark information of online monitoring, and the table rows of the two-dimensional table correspond to corresponding measurement values and fields;
[0032] Data is extracted from two-dimensional tables using a rule-based approach. Each two-dimensional table is regarded as a type of ontology, the columns of the two-dimensional table are regarded as attributes / relations, and the rows of the two-dimensional table are entities / attribute values.
[0033] As the preferred technical measures:
[0034] The calculation formula of the result of the forget gate at time t is as follows:
[0035] f t =σ(W f [h(t-1),X t ]+b f )
[0036] Where W f represents the weight matrix of the forget gate, b is the bias matrix of the three gates, 1 means completely retained, and 0 means completely discarded;
[0037] The input gate controls the information that this cell needs to input, and the calculation formula is as follows:
[0038] i t =σ(W i [h(t-1),X t ]+b i )
[0039] C t =f tC(t-1)+i t tanh(W f [h(t-1),X t ]+b c )
[0040] Where X t is the input at time t, h t-1 is the output at time t-1, i t is the n-dimensional vector at time t in the input gate, C t is the cell state of the neural network LSTM at time t, W i represents the weight matrix of the input gate, W o represents the weight matrix of the output gate, σ and tanh are activation functions;
[0041] The information controlled by the output gate is used as the output at the current moment, and its calculation formula is as follows:
[0042] Q t =σ(W o [h(t-1),X t ]+b o )
[0043] H t =O t tanh(C t )
[0044] Where Q t is the generator matrix of logistic regression after the fully connected layer, H t is the output at time t;
[0045] The forward hidden layer vector and the backward hidden layer vector are concatenated and summed through the output layer to obtain the semantic encoding vector, and finally output through the CRF layer to obtain the entity sequence.
[0046] As the preferred technical measures:
[0047] The calculation formula of the entity sequence is as follows:
[0048]
[0049]
[0050]
[0051]
[0052] Where S is the score of the input sentence sequence x and its predicted sequence y, B represents the entity state feature in the predicted sequence, and P(y|x) is the probability distribution of the normalized output sequence y. represents the set of all possible tags, lg(p(y*|S)) is the likelihood function of the tag sequence, and y* is the prediction result, that is, the final entity sequence.
[0053] As a preferred technical measure: the pre-built data fusion model includes an entity linking unit and a decision fusion unit;
[0054] Based on the pre-built data fusion model, the exchange string data is processed to obtain the quality event recognition results, including:
[0055] The exchanged string data is processed based on the entity linking unit to obtain the linked entities; the linked entities are fused based on the decision fusion unit, and the decision information between multi-source heterogeneous data is combined to obtain the quality event recognition result.
[0056] As the preferred technical measures:
[0057] The exchange string data is processed based on the entity linking unit to obtain link entities, including:
[0058] First, the exchange string data is vectorized, and then the pre-trained model BERT semantic encoding is used to obtain the character-level embedding representation v in units of single characters. k , and then processed by the forward neural network LSTM and backward neural network LSTM of the neural network structure BiLSTM to obtain the context-rich word vector embedding representation x k ; Then enter the candidate word fixed size representation layer, each candidate word is represented as m = w q , ..., w r , the starting position x q 、The last digit x r And soft words Embed and splice to get g m , g m Through shallow feedforward neural network FFNN 1 Mapping to get x m , the specific calculation formula is as follows:
[0059]
[0060] x m =FFNN 1 (g m )
[0061] x m With the previously trained continuous entity x w Embed j <e 0 , e 1 , ..., e n> Do similarity calculations and at the same time calculate entity word distribution and candidate word context y e Similarity with continuous entities, all calculation results are passed through the second layer of feedforward neural FFNN 2 The local similarity calculation result is obtained by combining the two methods, and the calculation formula is as follows:
[0062]
[0063] ψ(e j , m) = FFNN 2 ([log(E j |m); <x m ,y j >])
[0064] Then the entity relationship, candidate words, and entity splicing are embedded, and the relationship is weighted and matched to enter the last layer of feedforward neural network FFNN 3 The final global similarity calculation result is obtained, and the one with the highest similarity calculation result is returned as the linked entity. The specific calculation formula is as follows:
[0065] φ(e j , m) = FFNN 3 ([ψ(e j , m); G(e j ,m)])
[0066] The processing method of the decision fusion unit is as follows:
[0067] The linked entities are subjected to feature extraction through the neural network structure BiLSTM, and then the feature vector is obtained through the attention mechanism Attention. Finally, the classification probability is calculated through the logistic regression function softmax, and the comprehensive decision probability of each type of quality event is calculated through weighted summation. The one with the highest probability value is output as the quality event recognition result.
[0068] As the preferred technical measures:
[0069] Also includes step six,
[0070] Utilizing the pre-built data storage model, the graph database Neo4j is used to store the quality event recognition results, and a knowledge graph of the quality information of the main power grid equipment consisting of nodes: entities / attribute values and edges: relationships / attributes is formed, and the quality information knowledge graph is stored in the system's hard disk.
[0071] As the preferred technical measures:
[0072] It also includes step seven, building a data output model to output the quality event identification results;
[0073] The data output model is built based on the network transmission protocol UDP, and the quality event identification results after data fusion are fed back to the system's display device / mobile phone user end via wireless communication.
[0074] To achieve one of the above purposes, the second technical solution of the present invention is:
[0075] A multi-source heterogeneous quality information fusion system for power grid main equipment is provided, and the multi-source heterogeneous quality information fusion processing method for power grid main equipment is applied;
[0076] It includes a keyboard, a display screen with a touch screen function, a processor, an online monitoring device, a power module, a main memory, a data receiving unit, a data cleaning unit, a data extraction unit, a data conversion unit, a data fusion module, a data storage unit, and a data output unit;
[0077] The data receiving unit, data cleaning unit, data extraction unit, data conversion unit, data fusion module, data storage unit, and data output unit are all encapsulated and stored in the main memory;
[0078] The user transmits multi-source heterogeneous data to the processor through manual keyboard or touch screen input or online monitoring device or mobile phone client by wireless communication. After being processed in sequence by the data receiving unit, data cleaning unit, data extraction unit, data conversion unit, data fusion module, data storage unit, and data output unit, the quality event identification result after data fusion is obtained and displayed on the display screen.
[0079] Aiming at the problem of multi-source heterogeneity of quality information of main power grid equipment, the present invention studies and designs a multi-source heterogeneous quality information fusion system for main power grid equipment, and its specific innovations are as follows:
[0080] 1) The data extraction unit in the system of the present invention adopts BERT-BiLSTM-CRF and a method based on ALBERT and dependency analysis to extract entities and relationships from unstructured text information. BiLSTM undergoes more activation functions than RNN, which alleviates the gradient diffusion problem to a certain extent. BERT and ALBERT support parallel computing, have fast weight update speed, high model learning efficiency, and improve the operating speed of the system.
[0081] 2) The system of the present invention uses json as middleware to unify the format of multi-source heterogeneous data, eliminating the differences in structure of multi-source heterogeneous data.
[0082] 3) The system of the present invention adopts an end-to-end approach to entity linking. On the basis of calculating the local similarity between entities and candidate words, it adds the calculation of global similarity, effectively solving the problem of different entities with the same name and the same entities with different names, eliminating redundant information, forming complete, comprehensive and accurate entity information, and improving data quality.
[0083] 4) The decision fusion unit in the system of the present invention obtains the decision information of the quality information of the main equipment of the multi-source heterogeneous power grid through BiLSTM+Attention+softmax fusion, which improves the accuracy of the quality event recognition results.
[0084] 5) The system provided by the present invention provides an environment for real-time centralized processing and analysis of the quality information of multi-source heterogeneous power grid main equipment under the background of power big data, which can adapt to the rapid development of smart grids.
[0085] To achieve one of the above purposes, the third technical solution of the present invention is:
[0086] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for fusion processing of multi-source heterogeneous quality information of power grid main equipment. Compared with the prior art, the present invention has the following beneficial effects:
[0087] The present invention constructs a data extraction model for extracting entities, relationships, attributes, and attribute values from multi-source heterogeneous data to form a triple form that is easy for computers to process; constructs a data cleaning model for screening, eliminating, and repairing erroneous, redundant, and non-standard data from a large number of data sources to achieve the purpose of improving data quality; constructs a data conversion model for converting multi-source heterogeneous data with inconsistent formats into a unified target data format to achieve non-discriminatory access by users; constructs a data fusion model for eliminating and complementing redundant and insufficient information between multi-source heterogeneous data to improve the sharing and availability of data; and thus the present invention can effectively reduce data redundancy, improve data quality and data analysis and processing efficiency, and enhance the sharing and availability of multi-source heterogeneous quality information between power grid main equipment.
[0088] Furthermore, the present invention constructs a data extraction unit to extract entities and relationships from unstructured text information. BiLSTM undergoes more activation functions than RNN, which alleviates the gradient diffusion problem to a certain extent, supports parallel computing, has a fast weight update speed, high model learning efficiency, and improves the operating speed of the system.
[0089] At the same time, json is used as the middleware to unify the format of multi-source heterogeneous data, eliminating the structural differences among multi-source heterogeneous data.
[0090] Furthermore, the present invention adopts an end-to-end approach to entity linking, and adds the calculation of global similarity on the basis of calculating the local similarity between entities and candidate words, effectively solving the problem of different entities with the same name or the same entities with different names, eliminating redundant information, forming complete, comprehensive and accurate entity information, and improving data quality.
[0091] Furthermore, the decision fusion unit of the present invention obtains the decision information of the quality information of the main equipment of the multi-source heterogeneous power grid through BiLSTM+Attention+softmax fusion, thereby improving the accuracy of the quality event recognition results. BRIEF DESCRIPTION OF THE DRAWINGS
[0092] Figure 1 Construct a flow chart for the data extraction model of the present invention;
[0093] Figure 2 Constructing a flow chart for the data fusion model of the present invention;
[0094] Figure 3 Constructing a flow chart for the entity linking unit of the present invention;
[0095] Figure 4 Constructing a flow chart for the decision fusion unit of the present invention;
[0096] Figure 5 This is a hardware structure diagram of the multi-source heterogeneous quality information fusion system for power grid main equipment of the present invention. DETAILED DESCRIPTION
[0097] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0098] On the contrary, the present invention covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present invention as defined by the claims. Further, in order to make the public have a better understanding of the present invention, some specific details are described in detail in the detailed description of the present invention below. Those skilled in the art can fully understand the present invention without the description of these details.
[0099] A specific embodiment of the method for fusion processing of multi-source heterogeneous quality information of power grid main equipment of the present invention is as follows:
[0100] A fusion processing method for multi-source heterogeneous quality information of power grid main equipment.
[0101] The following steps are involved:
[0102] Step 1: Obtain structured quality information and unstructured quality information from an online monitoring device;
[0103] Step 2: Perform data cleaning on the structured quality information and unstructured quality information in step 1 respectively to obtain structured cleaned data and unstructured cleaned data to solve the problems of whether the data is missing, repeated, wrong, or complete;
[0104] Step 3: construct a data extraction model to map the structured cleansed data in step 2 using the mapping language R2RML to obtain triple data;
[0105] The triple data includes entity-relationship-entity, entity-attribute-attribute value;
[0106] The data extraction model performs initial vectorization processing on the unstructured cleaned data in step 2, optimizes the word vector through the pre-trained model BERT, and then enters the semantic encoding layer of the neural network structure BiLSTM. The forward neural network LSTM learns the previous context information, and the backward neural network LSTM learns the subsequent context information. The neural network LSTM chooses to abandon the information that needs to be forgotten in the previous cell through the forget gate, and receives the output of the previous moment and the input of the current moment;
[0107] Next, we perform relation extraction. We input the text sequence X and the entity pairs E extracted above, analyze the text grammar using syntactic dependency analysis, and extract relational words in the text.
[0108] The entity pair E and the relation word are used as the input of the pre-trained model to obtain a vector representation. Then, the attention mechanism is used to assign a weight to each word vector. All vectors are weighted and summed to obtain a feature vector. Finally, the relation recognition data is obtained through the logical classification function softmax classification.
[0109] Step 4: Build a data conversion model based on the data exchange language json;
[0110] The data conversion model uses the data exchange language json as middleware to convert the data format of the relationship identification data, and maps all the relationship identification data into exchange string data through the data exchange language json, so as to eliminate the differences in the structure of multi-source heterogeneous data;
[0111] Step 5: construct a data fusion model to improve the sharing and availability of exchanged string data, and eliminate and supplement duplicate and insufficient information between multi-source heterogeneous data. The model includes an entity linking unit and a decision fusion unit.
[0112] The entity linking unit processes the exchange character string data to obtain a linking entity, thereby solving the problem of different entities with the same name or the same entity with different names;
[0113] After returning the linked entity, it is fused at the decision layer through the decision fusion unit, and the final quality event recognition result is obtained by combining the decision information between multi-source heterogeneous data.
[0114] A specific embodiment of the present invention is a system for fusion of multi-source heterogeneous quality information of power grid main equipment:
[0115] The multi-source heterogeneous quality information fusion system for power grid main equipment includes a data receiving unit, a data extraction unit, a data cleaning unit, a data conversion unit, a data fusion module, a data storage unit, and a data output unit.
[0116] The data receiving unit is used to receive data transmitted to the system from the outside in a wireless communication manner.
[0117] The data extraction unit is used to extract entities, relations, attributes, and attribute values from multi-source heterogeneous data to form triples that are easy for computers to process.
[0118] The data cleaning unit is used to screen, remove, and repair erroneous, redundant, and non-compliant data from numerous data sources to improve data quality.
[0119] The data conversion unit is used to convert multi-source heterogeneous data with inconsistent formats into a unified target data format to achieve non-discriminatory access by users.
[0120] The data fusion module is used to eliminate and complement redundant and insufficient information between multi-source heterogeneous data, and improve the sharing and availability of data.
[0121] The data storage unit is used to store data.
[0122] The data output unit is used to output the quality event recognition results after data fusion.
[0123] A specific embodiment of the data receiving unit of the present invention:
[0124] The data receiving unit receives structured quality information such as voltage, current, power loss, power quality database from online monitoring devices or unstructured quality information such as fault reports, fault handling plans, standard guidelines, etc. sent by user mobile terminals through wireless communication. Through the data receiving unit, the multi-source heterogeneous quality information of the main equipment of the power grid is entered into the system, and after the entry is completed, the data is transmitted to the data cleaning unit.
[0125] A specific embodiment of the data cleaning unit of the present invention:
[0126] The data cleaning unit mainly solves the problems of whether the data is missing, whether the data is repeated, whether the data is wrong, and whether the data is complete. Unstructured text quality information mainly includes fault reports, fault handling plans, standard guidelines, etc. The system first normalizes the received text content, uses the CharTable in HanLP to convert the full-width characters in the text into half-width characters, unifies the uppercase and lowercase English, and then performs Jieba word segmentation and stop word processing to delete uncommon words and symbols in the text. Structured quality information mainly includes databases of voltage, current, power loss, etc. Missing data will cause subsequent analysis errors. The system first checks whether the data is missing based on the overall structure of the database, and identifies whether it is missing text or numeric. If it is missing text, a blank string is automatically added to the missing position. If it is missing numeric, a 0 or NaN value is automatically added to the missing position. Set to delete the incomplete row or column when 4 or more null values appear in a row or column. If there is a problem of data duplication, use the drop_duplicates() function in Pandas to delete duplicate data.
[0127] like Figure 1 As shown, a specific embodiment of the data extraction unit of the present invention:
[0128] The data extraction unit formulates different data extraction methods according to the structure of heterogeneous data.
[0129] First, the unstructured quality information of the main power grid equipment is initially vectorized, and the word vector is optimized by the BERT pre-training model. Then it enters the BiLSTM semantic encoding layer. The forward LSTM can learn the previous information, and the backward LSTM can learn the subsequent information. The LSTM model chooses to abandon the information that needs to be forgotten in the previous cell through the forget gate, receives the output of the previous moment and the input of the current moment, and the result of the forget gate at time t is as follows:
[0130] f t =σ(W f [h(t-1),X t ]+b f )
[0131] Where W f represents the weight matrix of the forget gate, b is the bias matrix of the three gates, 1 means complete retention, and 0 means complete abandonment.
[0132] The input gate controls the information that needs to be input to this cell. The calculation process is as follows:
[0133] i t =σ(W i [h(t-1),X t ]+b i )
[0134] C t =f t C(t-1)+i t tanh(W f [h(t-1),X t ]+b c )
[0135] Where X t is the input at time t, h t-1 is the output at time t-1, i t is the n-dimensional vector at time t in the input gate, C t is the cell state of LSTM at time t, W i represents the weight matrix of the input gate, W o represents the weight matrix of the output gate, σ and tanh are the activation functions.
[0136] The output gate controls which information is used as the output at the current moment. The calculation process is as follows:
[0137] Q t =σ(W o [h(t-1),X t ]+b o )
[0138] H t =O t tanh(C t )
[0139] Where Q t is the generator matrix of logistic regression after the fully connected layer, H t is the output at time t.
[0140] The forward hidden layer vector and the backward hidden layer vector are concatenated and summed through the output layer to obtain the semantic encoding vector, and finally the entity sequence is output through the CRF layer. The calculation process is as follows:
[0141]
[0142]
[0143]
[0144]
[0145] Where S is the score of the input sentence sequence x and its predicted sequence y, B represents the entity state feature in the predicted sequence, and P(y|x) is the probability distribution of the normalized output sequence y. represents the set of all possible tags, lg(p(y*|S)) is the likelihood function of the tag sequence, and y* is the prediction result, that is, the final entity sequence.
[0146] Next, we perform relation extraction, input the text sequence X and the entity pair E, use the syntactic dependency analysis method to analyze the text grammar, and extract the relation words in the text, which are generally verbs in the sentence. The entity pair E and the relation words are used as the input of the ALBERT pre-trained model to obtain vector representation, and then the Attention mechanism is used to assign weights to each word vector, and all vectors are weighted and summed to obtain the feature vector. Finally, the relation recognition result is obtained through softmax classification.
[0147] The structured quality information of the main equipment of the power grid is relatively standardized, usually in the form of a two-dimensional table. The table header contains all the data types, names, notes and other information of online monitoring, such as voltage, current, power loss, etc. The table rows correspond to the corresponding measurement values and fields. The system uses a rule-based approach to extract data, taking each table as a type of ontology, the columns of the table as attributes / relationships, and the rows of the table as entities / attribute values. The W3C R2RML mapping language is used to directly map the entity-relationship-entity, entity-attribute-attribute value triples.
[0148] A specific embodiment of the data conversion unit of the present invention:
[0149] JSON is a lightweight data exchange format that is superior to the traditional XML format in terms of comprehensive readability, scalability, encoding and decoding difficulty, and transmission efficiency. The data conversion unit for the multi-source heterogeneous quality information fusion system for power grid main equipment provided by the present invention uses JSON as middleware to convert the cleaned data into a data format, and maps all data into a JSON string through JSON, eliminating the differences in the structure of multi-source heterogeneous data.
[0150] like Figure 2 As shown, a specific embodiment of the data fusion module of the present invention:
[0151] The data fusion module is used to improve the sharing and availability of data, and to eliminate and supplement the repeated and insufficient information between multi-source heterogeneous data. It consists of an entity linking unit and a decision fusion unit. Multi-source heterogeneous data first solves the problem of different entities with the same name and the same entity with different names through the entity linking unit. After returning the linked entity, it is fused at the decision layer through the decision fusion unit, and the final quality event recognition result is obtained by combining the decision information between multi-source heterogeneous data.
[0152] like Figure 3 As shown, a specific embodiment of the entity link unit of the present invention is:
[0153] Since the data in various data sources have multiple descriptions of the same entity, there are cases where there are entities with the same name but different entities, or entities with different names but the same entity, the present invention uses the power dictionary as the basic knowledge base of the system. The entity linking unit first vectorizes the data after data conversion, and then obtains the character-level embedding representation v by BERT semantic encoding in units of single characters. k , and then processed by BiLSTM’s forward LSTM and backward LSTM to obtain the context-rich word vector embedding representation x k Then it enters the fixed-size representation layer of candidate words, where each candidate word is represented by m=w q , ..., w r , the starting position x q 、The last digit x r And soft words Embed and splice to get g m , g m Through shallow feedforward neural network FFNN 1 Mapping to get x m .
[0154]
[0155] x m =FFNN 1 (g m )
[0156] x m With the previously trained continuous entity x w Embed j <e 0 , e 1 , ..., e n > Do similarity calculations and at the same time calculate entity word distribution and candidate word context y e Similarity with continuous entities, all calculation results are passed through the second layer of feedforward neural FFNN 2 The local similarity calculation results are obtained by combining.
[0157]
[0158] ψ(e j , m) = FFNN 2 ([log(E j |m); <x m ,y j >])
[0159] Then the entity relationship, candidate words, and entity splicing are embedded, and the relationship is weighted and matched to enter the last layer of feedforward neural network FFNN 3The final global similarity calculation result is obtained, and the one with the highest similarity calculation result is returned as the linked entity.
[0160] φ(e j , m) = FFNN 3 ([ψ(e j , m); G(e j ,m)])
[0161] like Figure 4 As shown, a specific embodiment of the decision fusion unit of the present invention:
[0162] Based on the principle of transformer oil gas chromatography analysis, when the transformer is operating normally, as the oil and solid insulation gradually age and deteriorate, they will decompose into gases such as hydrogen, methane, ethane, and ethylene. When local discharge occurs inside the transformer and the temperature gradually rises, the hydrocarbon gas content in the oil increases. When the temperature rises sharply, acetylene gas will also be produced. Although structured data can reflect certain fault information, it does not contain enough information to distinguish the fault location, defect level, etc. It is very limited to rely solely on structured data for quality event identification. The quality information of unstructured power grid main equipment provides a wealth of quality criteria such as defects and faults as support, which can be an important supplement to the quality information of structured digital power grid main equipment. The system extracts features from the quality information of unstructured power grid main equipment and structured power grid main equipment through BiLSTM, and then obtains feature vectors through the Attention calculation mechanism. Finally, the comprehensive decision probability of various quality events is calculated through the weighted summation of softmax classification probability, and the highest probability value is output as the quality event identification result.
[0163] A specific embodiment of the data storage unit of the present invention:
[0164] The data storage unit uses Neo4j graph database to store data. The multi-source heterogeneous quality information of the main power grid equipment is processed by the data extraction unit, data cleaning unit, data conversion unit, and data fusion module and stored in the Neo4j graph database to form a knowledge graph of the main power grid equipment quality information consisting of nodes (entities / attribute values) and edges (relationships / attributes), which is stored in the hard disk of the system.
[0165] A specific embodiment of the data output unit of the present invention:
[0166] The data output unit follows the UDP network transmission protocol and feeds back the quality event identification results after data fusion to the system's display device / mobile phone user end via wireless communication, consuming little resources and with extremely high communication efficiency.
[0167] like Figure 5 As shown, a specific embodiment of the present invention is a system for fusion of multi-source heterogeneous quality information of power grid main equipment:
[0168] The multi-source heterogeneous quality information fusion system for power grid main equipment is used to integrate data groups from multiple data sources with different structures to achieve unified data management. Users can achieve non-discriminatory access and fully explore the value of data.
[0169] The hardware configuration of the system of the present invention includes a keyboard, a 10.1-inch 1080P display with a touch screen function, an Intel Xeon E5-2680 V4 processor, and a power module. The system includes a data receiving unit, a data cleaning unit, a data extraction unit, a data conversion unit, a data fusion module, a data storage unit, and a data output unit, all of which are encapsulated and stored in the main memory of the system. Users can transmit multi-source heterogeneous data to the system through manual keyboard / touch screen input, online monitoring devices, and Android / ios / Harmony os mobile client wireless communication methods, and the quality event identification results after data fusion can be obtained through processing by a series of units in the system.
[0170] Explanation of terms in this application:
[0171] Multi-source heterogeneous data
[0172] Multi-source heterogeneous data refers to data integrated from multiple data sources with different structures, access, and formats, and is often stored in heterogeneous distributed databases.
[0173] Quality Information
[0174] Quality information refers to information such as failures, shutdowns, defects caused by equipment quality problems during professional management and technical supervision work such as materials, construction, operation and inspection, as well as unreasonable design, unqualified installation technology, and failure to meet random inspection or supervision standards.
[0175] Structured Data
[0176] Structured data, also known as row data, is data that is logically expressed and implemented by a two-dimensional table structure. It strictly follows data format and length specifications and is mainly stored and managed through relational databases.
[0177] Unstructured Data
[0178] Unstructured data is data with irregular or incomplete structure, no predefined data model, and is not convenient to be represented by a two-dimensional logical table in a database. It includes office documents of all formats, text, pictures, XML, HTML, various reports, images, and audio / video information, etc.
[0179] BP Neural Network
[0180] The full name is back propagation neural network, a concept proposed by scientists led by Rumelhart and McClelland in 1986. It is a multi-layer feedforward neural network trained according to the error back propagation algorithm and is one of the most widely used neural network models.
[0181] RNN
[0182] The full name is Recurrent Neural Network, which is a type of recursive neural network that takes sequence data as input, recursively in the direction of sequence evolution, and all nodes are connected in a chain.
[0183] Bayesian Estimation
[0184] Bayesian estimation is the basis of Bayesian learning. It provides a method to calculate the probability of a hypothesis based on the prior probability of the hypothesis, the probability of observing different data under the given hypothesis, and the observed data itself. The method is to combine the prior information about the unknown parameters with the sample information, and then obtain the posterior information according to the Bayesian formula, and then infer the unknown parameters based on the posterior information.
[0185] DS Evidence Theory
[0186] The full name is Dempster / Shafer evidence theory, which belongs to the category of artificial intelligence. It was first applied in expert systems and has the ability to process uncertain information. As an uncertain reasoning method, the main characteristics of evidence theory are: it meets weaker conditions than Bayesian probability theory; it has the ability to directly express "uncertainty" and "unknown".
[0187] Gradient Diffusion
[0188] In a neural network, when the learning rate of the previous hidden layer is lower than that of the subsequent hidden layer, that is, as the number of hidden layers increases, the classification accuracy decreases. This phenomenon is called gradient diffusion.
[0189] Partial Discharge
[0190] Discharge that occurs only in a local area of the insulator without penetrating between the conductors to which the voltage is applied can occur near the conductor or elsewhere. This phenomenon is called partial discharge.
[0191] Gas chromatography analysis
[0192] Gas chromatography is a chromatographic analysis method in which the mobile phase is gas. Gases and volatile liquids or solids can be separated and measured using gas chromatography.
[0193] Quality incidents
[0194] A quality incident refers to an incident in which the relevant parties violate relevant standards, specifications, management systems or countermeasures in the materials, construction, operation and inspection of specific equipment such as transmission, substation, distribution, DC, system, materials, auxiliary materials and instruments, resulting in the equipment quality failing to meet the requirements, causing certain losses, harm or impacts on the construction of the power grid, safe operation and reliable power supply.
[0195] UDP
[0196] The full name is User Datagram Protocol, which is a connectionless transmission protocol supported by the Internet protocol suite. This protocol is called User Datagram Protocol. UDP provides a method for applications to send encapsulated IP data packets without establishing a connection.
[0197] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0198] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A system that specifies the functions of a box or multiple boxes.
[0199] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A fusion processing method for multi-source heterogeneous quality information of power grid main equipment, It is characterized in that The following steps are involved: Step 1: Obtain structured quality information and unstructured quality information from an online monitoring device; Step 2: Clean the structured quality information and the unstructured quality information in step 1 to obtain structured cleaned data and unstructured cleaned data; Step 3: Use the pre-built data extraction model to map the structured clean data in step 2 using the mapping language R2RML to obtain triple data; use the data extraction model and triple data to perform relationship recognition on the unstructured clean data in step 2 to obtain relationship recognition data; The triple data includes entity-relationship-entity, entity-attribute-attribute value; Use the data extraction model and triple data to identify the relationship of the unstructured cleaned data in step 2, and obtain the relationship identification data, including: The data extraction model is used to clean the unstructured data and perform initial vectorization processing. The word vector is optimized by the pre-trained model BERT, and then enters the semantic encoding layer of the neural network structure BiLSTM. The forward neural network LSTM learns the previous context information, and the backward neural network LSTM learns the subsequent context information. The neural network LSTM chooses to abandon the information that needs to be forgotten in the previous cell through the forget gate, and receives the output of the previous moment and the input of the current moment; Then, the text sequence X in the unstructured cleaned data and the entity pair E in the entity sequence are input, and the grammar of the text is analyzed using the syntactic dependency analysis method to extract the relational words in the text; The entity pair E and the relation word are used as the input of the pre-trained model ALBERT to obtain a vector representation. Then, the attention mechanism is used to assign a weight to each word vector. All vectors are weighted and summed to obtain a feature vector. The logical classification function softmax is used to classify the feature vector to obtain the relation recognition data. The pre-trained model ALBERT supports parallel computing and fast weight update speed; The calculation formula of the result of the forget gate at time t is as follows: Where Wf represents the weight matrix of the forget gate, b is the bias matrix of the three gates, 1 means completely retained, and 0 means completely discarded; The input gate controls the information that this cell needs to input, and the calculation formula is as follows: Where Xt is the input at time t, ht-1 is the output at time t-1, it is the n-dimensional vector in the input gate at time t, Ct is the cell state of the neural network LSTM at time t, Wi represents the weight matrix of the input gate, and Wo represents the weight matrix of the output gate. and tanh are activation functions; The information controlled by the output gate is used as the output at the current moment, and its calculation formula is as follows: Where Qt is the generator matrix of logistic regression after the fully connected layer, and Ht is the output at time t; The forward hidden layer vector and the backward hidden layer vector are concatenated and summed up through the output layer to obtain the semantic encoding vector, and finally output through the CRF layer to obtain the entity sequence; The calculation formula of the entity sequence is as follows: Where S is the score of the input sentence sequence x and its predicted sequence y, B represents the entity state feature in the predicted sequence, and P(y|x) is the probability distribution of the normalized output sequence y. represents the set of all possible tags, lg(p(y*|S)) is the likelihood function of the tag sequence, and y* is the prediction result, that is, the final entity sequence; Step 4: According to the pre-built data conversion model, the data format of the relationship recognition data and the structured cleansing data is converted to obtain the exchange string data; The data conversion model uses the data exchange language json as middleware to convert the data format of the relationship identification data, and maps all the relationship identification data into exchange string data through the data exchange language json, so as to eliminate the differences in the structure of multi-source heterogeneous data; Step 5: Based on the pre-built data fusion model, the exchange string data is processed to obtain the quality event recognition result; The pre-built data fusion model includes entity linking unit and decision fusion unit; Based on the pre-built data fusion model, the exchange string data is processed to obtain the quality event recognition results, including: The exchange string data is processed based on the entity linking unit to obtain the link entity; the link entity is fused based on the decision fusion unit, and the decision information between multi-source heterogeneous data is combined to obtain the quality event recognition result; The exchange string data is processed based on the entity linking unit to obtain link entities, including: First, the exchange string data is vectorized, and then the pre-trained model BERT semantic encoding is used for single character units to obtain the character-level embedding representation vk, and then processed by the forward neural network LSTM and backward neural network LSTM of the neural network structure BiLSTM to obtain the context-rich word vector embedding representation xk; then it enters the candidate word fixed size representation layer, each candidate word is represented as m=wq,...,wr, and the starting position is x q , last x r And soft words Embed and splice to get g m , g m After being mapped by the shallow feedforward neural network FFNN1, x m , the specific calculation formula is as follows: x m With the previously trained continuous entity x w Embed y j <e 0 ,e 1 ,...,e n > Do similarity calculation, and at the same time calculate the entity word distribution and candidate word context y e The similarity with the continuous entity, all the calculation results are combined by the second layer of feedforward neural FFNN2 to obtain the local similarity calculation result, and the calculation formula is as follows: Then, the entity relationship, candidate words, and entity splicing are embedded, and the relationship is weighted and matched to enter the last layer of feedforward neural network FFNN3 to obtain the final global similarity calculation result. The one with the highest similarity calculation result is returned as the linked entity. The specific calculation formula is as follows: The processing method of the decision fusion unit is as follows: The linked entities are subjected to feature extraction through the neural network structure BiLSTM, and then the feature vector is obtained through the attention mechanism Attention. Finally, the classification probability is calculated through the logistic regression function softmax, and the comprehensive decision probability of each type of quality event is calculated through weighted summation. The one with the highest probability value is output as the quality event recognition result.
2. The method for fusion processing of multi-source heterogeneous quality information of power grid main equipment according to claim 1, It is characterized in that In the step 1, the structured quality information includes voltage, current, power loss, and power quality database; The unstructured quality information includes fault reports, fault handling solutions, and standard guidelines sent by user mobile terminals.
3. The method for fusion processing of multi-source heterogeneous quality information for power grid main equipment according to claim 1, It is characterized in that In step 2, the method for structured cleaning data is as follows: First, check whether the structured quality information is missing based on the overall structure of the database, and identify whether it is text-based or numeric-based. If it is text-based, automatically add a blank string at the missing position. If the numeric value is missing, 0 or NaN value is automatically added at the missing position; set to delete the row or column when the number of empty values in a row or column is greater than or equal to 4; If there is a problem with data duplication, use the drop_duplicates() function in the data analysis package Pandas to delete the duplicate data.
4. The method for fusion processing of multi-source heterogeneous quality information for power grid main equipment according to claim 1, It is characterized in that The methods for cleaning unstructured data are as follows: First, the received unstructured quality information is normalized. The character normalization model CharTable in the natural language processing package HanLP is used to convert the full-width characters in the unstructured quality information into half-width characters and unify the upper and lower case of English. Then, the word segmentation library jieba is used to perform word segmentation and stop word removal, and uncommon words and symbols in the unstructured quality information are deleted.
5. The method for fusion processing of multi-source heterogeneous quality information for power grid main equipment according to claim 1, It is characterized in that In the step 2, the structured cleansing data is a two-dimensional table, the header of the two-dimensional table includes all data types, names, and remark information of online monitoring, and the table rows of the two-dimensional table correspond to corresponding measurement values and fields; Data is extracted from two-dimensional tables using a rule-based approach, with each two-dimensional table being treated as a type of ontology, the columns of the two-dimensional table being used as attributes / relations, and the rows of the two-dimensional table being used as entities / attribute values.
6. The method for fusion processing of multi-source heterogeneous quality information of power grid main equipment according to any one of claims 1 to 5, It is characterized in that Also includes: Step 6: Using the pre-built data storage model, the graph database Neo4j is used to store the quality event recognition results, and a knowledge graph of the quality information of the main equipment of the power grid is formed, which is composed of nodes: entities / attribute values and edges: relationships / attributes. The quality information knowledge graph is stored in the hard disk of the system; Step 7: Build a data output model to output the quality event identification results; The data output model is built based on the network transmission protocol UDP, and the quality event identification results after data fusion are fed back to the system's display device / mobile phone user end via wireless communication.
7. Multi-source heterogeneous quality information fusion system for power grid main equipment, It is characterized in that Apply the method for fusion processing of multi-source heterogeneous quality information of power grid main equipment as described in any one of claims 1 to 6; It includes a keyboard, a display screen with a touch screen function, a processor, an online monitoring device, a power module, a main memory, a data receiving unit, a data cleaning unit, a data extraction unit, a data conversion unit, a data fusion module, a data storage unit, and a data output unit; The data receiving unit, data cleaning unit, data extraction unit, data conversion unit, data fusion module, data storage unit, and data output unit are all encapsulated and stored in the main memory; The user transmits multi-source heterogeneous data to the processor through manual keyboard or touch screen input or online monitoring device or mobile phone client by wireless communication. After being processed in sequence by the data receiving unit, data cleaning unit, data extraction unit, data conversion unit, data fusion module, data storage unit, and data output unit, the quality event identification result after data fusion is obtained and displayed on the display screen.
Citation Information
Patent Citations
Knowledge graph construction method for ethylene oxide derivatives production process
US20230169309A1
