Automatic matching method and system for constant value checking of secondary equipment of power system
By using the fixed value name similarity model for automatic matching of secondary equipment settings in the power system, the problem of low matching accuracy caused by differences in the fixed value names of equipment from different manufacturers is solved, and efficient fixed value matching and system management are achieved.
Patent Information
- Application Number
- CN202410747277.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-11
Smart Images

Figure CN118760903A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to secondary equipment fixed value management, and in particular to an automatic matching method and system for checking fixed values of secondary equipment in a power system. Background Art
[0002] Since the primary equipment in the power system is usually high-voltage, high-current equipment, such as 500kV, 1000kV, etc., it is not convenient to directly observe its operating status. Therefore, it is necessary to observe, control and protect the power system through secondary equipment. Reasonable setting of the constant value parameters of the secondary equipment has naturally become the top priority to ensure the stable operation of the power system.
[0003] Generally speaking, the process of changing the set value of secondary equipment is as follows: first, the set value list is generated through the setting system calculation, and then the set value list is submitted to the management department for approval. After the approval is completed, the operation and maintenance personnel adjust the set value of the equipment according to the set value list. This manual method of modifying the set value is not only inefficient, but also prone to errors. On this basis, an automatic set value change system with string matching as the core has been developed. In theory, this system is sufficient to meet the needs, but in the secondary equipment actually operated on site, there are the following three problems:
[0004] 1. Equipment produced by different manufacturers or even equipment of different models by the same manufacturer may have the same function but different names.
[0005] 2. The same equipment in different plants and stations may have the same function but different names due to the irregular construction of substations.
[0006] 3. Fixed value items with the same function have different sources and names.
[0007] The above problems result in low matching accuracy of the automatic setting change system, requiring multiple manual reworks and low overall work efficiency. Summary of the invention
[0008] The technical problem to be solved by the present invention is as follows: In view of the above-mentioned problems in the prior art, a method and system for automatic matching of set value verification of secondary equipment in an electric power system is provided, which uses a trained set value name similarity model to complete set value matching and effectively improve the matching accuracy.
[0009] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0010] A method for automatically matching the setting value of secondary equipment in a power system, comprising the following steps:
[0011] S1. Obtain a setting value list and a trustworthy setting value list, wherein the setting value list includes all setting items of the target equipment in the setting value list of the setting system, and the trustworthy setting value list includes all setting items of the target equipment in the trustworthy system database;
[0012] S2, traverse the first fixed value item in the adjustment fixed value list and the second fixed value item in the guarantee fixed value list, if the matching relationship between the first fixed value item and the second fixed value item is in the manual intervention table, generate a corresponding matching pair, if the matching relationship between the first fixed value item and the second fixed value item is not in the manual intervention table, input the first fixed value item and the second fixed value item into the fixed value name similarity model to obtain the corresponding similarity; if the maximum similarity corresponding to the first fixed value item or the second fixed value item is greater than the first threshold, generate a matching pair of the first fixed value item or the second fixed value item and the second fixed value item or the first fixed value item with the maximum similarity;
[0013] S3. If the maximum similarity corresponding to the first fixed value item or the second fixed value item is less than the first threshold value, or the generated matching pair is a wrong match, correct the matching relationship between the corresponding first fixed value item and the second fixed value item and record the correct matching relationship in the manual intervention table; use the matching relationship data in the manual intervention table to update the model data set and retrain the fixed value name similarity model.
[0014] Furthermore, step S2 specifically includes:
[0015] S21, traverse and select the current first fixed value item in the setting fixed value list;
[0016] S22, traverse and select the current second fixed value item in the trust-guaranteeing fixed value list;
[0017] S23, if the matching relationship between the current first fixed value item and the current second fixed value item already exists in the manual intervention table, jump to step S27, otherwise jump to step S24;
[0018] S24, inputting the current first fixed value item and the current second fixed value item into the trained fixed value name similarity model to obtain corresponding similarities;
[0019] S25, return to step S22, until the list of guaranteed values is traversed;
[0020] S26, if the maximum similarity corresponding to the current first fixed value item is less than the first threshold, jump to step S3; if the maximum similarity corresponding to the current first fixed value item is greater than the first threshold, jump to step S27;
[0021] S27, forming a matching pair of the current first fixed value item and the target second fixed value item, and deleting the current first fixed value item and the target second fixed value item from the adjustment fixed value list and the trust guarantee fixed value list respectively, wherein the target second fixed value item is a second fixed value item with a matching relationship in the manual intervention table for the current first fixed value item, or a second fixed value item corresponding to the maximum similarity of the current first fixed value item;
[0022] S28, checking whether the matching pair formed by the current first fixed value item and the target second fixed value item is correct, if yes, jump to step S29, otherwise jump to step S3;
[0023] S29. Return to step S21 until the set value list is traversed.
[0024] Furthermore, in step S3, correcting the matching relationship between the corresponding first fixed value item and the second fixed value item and recording the correct matching relationship in the manual intervention table specifically includes:
[0025] Obtaining the first fixed value item and the second fixed value item in the correct matching relationship after correction;
[0026] The first fixed value item is associated with the second fixed value item and the same standard template fixed value item, and the corresponding relationship between the first fixed value item and the index of the standard template fixed value item is stored as the newly added matching relationship data of the adjustment fixed value item and the standard template fixed value item, and the corresponding relationship between the second fixed value item and the index of the standard template fixed value item is stored as the newly added matching relationship data of the trust guarantee fixed value item and the standard template fixed value item.
[0027] Furthermore, when the matching relationship data in the manual intervention table is used to update the model data set and retrain the fixed value name similarity model, it includes:
[0028] If the matching relationship data in the current manual intervention table is less than the second threshold, return to step S2;
[0029] If the matching relationship data in the current manual intervention table is greater than the second threshold, the matching relationship data in the current manual intervention table is added to the model data set, and the fixed value name similarity model is retrained using the model data set, and the process returns to step S2.
[0030] Further, after retraining the fixed value name similarity model with the model data set, it also includes:
[0031] Convert the current manual intervention table into a historical backup table, create a new manual intervention table, traverse the first fixed value item and the second fixed value item in the historical backup table, input the trained fixed value name similarity model, and obtain the corresponding similarity;
[0032] If the maximum similarity corresponding to the first fixed value item or the second fixed value item is greater than the first threshold, generate a matching pair of the first fixed value item or the second fixed value item and the second fixed value item or the first fixed value item with the maximum similarity and verify whether the matching pair is correct; if the maximum similarity corresponding to the first fixed value item or the second fixed value item is less than the first threshold, or the matching pair is a wrong match, correct the matching relationship between the corresponding first fixed value item and the second fixed value item and record the correct matching relationship in a new manual intervention table.
[0033] Furthermore, when the first fixed value item and the second fixed value item are input into the trained fixed value name similarity model in step S2, the following steps are included:
[0034] S201, preprocessing the texts of the first fixed value item and the second fixed value item to obtain a first input text and a second input text;
[0035] S202, encoding the first input text and the second input text to obtain a first word vector and a second word vector;
[0036] S203, inputting the first word vector and the second word vector into the attention model respectively to calculate the corresponding weights, so as to obtain the weighted first word vector and the second word vector;
[0037] S204, respectively inputting the weighted first word vector and the second word vector into the twin bidirectional GUA neural network of the fixed-value name similarity model to obtain a feature vector;
[0038] S205 , inputting the feature vector into a similarity calculation neural network of a fixed-value name similarity model to obtain the similarity between the first fixed-value item and the second fixed-value item.
[0039] Furthermore, the text preprocessing in step S201 includes: converting Roman numerals, pseudo-Roman numerals and Chinese numerals into Arabic numerals; replacing non-standard keywords with standard keywords; converting all letters into uppercase; and performing word segmentation using a Chinese lexical analysis toolkit.
[0040] Furthermore, the similarity calculation neural network in step S204 includes two fully connected layers and one normalization layer, and the similarity calculation formula is as follows:
[0041] S = sigmoid(F2(F1(X1;X2)))
[0042] Among them, sigmoid is a normalization function, F1 and F2 represent the output vector of each fully connected layer, X1 and X2 represent the input vector of each fully connected layer, and for the fully connected layer, there are:
[0043] F(X)=relu(wX+b)
[0044] Among them, relu is the activation function, w is the weight matrix, b is the bias, and X is the input vector.
[0045] The present invention also proposes an automatic matching system for checking and verifying the setting value of secondary equipment in a power system, comprising:
[0046] The setting value list acquisition unit is used to obtain the setting setting value list and the guarantee setting value list of the same equipment;
[0047] The automatic matching unit traverses the first fixed value item in the setting fixed value list and the second fixed value item in the guarantee fixed value list, and if the matching relationship between the first fixed value item and the second fixed value item is in the manual intervention table, generates a corresponding matching pair; if the matching relationship between the first fixed value item and the second fixed value item is not in the manual intervention table, inputs the first fixed value item and the second fixed value item into the fixed value name similarity model to obtain the corresponding similarity; if the maximum similarity corresponding to the first fixed value item or the second fixed value item is greater than a first threshold, generates a matching pair of the first fixed value item or the second fixed value item and the second fixed value item or the first fixed value item with the maximum similarity; if the maximum similarity corresponding to the first fixed value item or the second fixed value item is less than the first threshold, generates a setting fixed value item matching failure log;
[0048] The manual intervention table update unit is used to obtain the log of failed matching of the set value item, or when the matching pair is a wrong match, correct the matching relationship between the corresponding first set value item and the second set value item and record the correct matching relationship in the manual intervention table. The composition of the manual intervention table can be divided into two parts: the standard template set value index table and the non-standard set value associated data table. Among them, the standard template set value index table pre-stores the template set value items that have been standardized according to the specifications and the indexes that uniquely correspond to them, and the non-standard set value associated data table is used to store the corresponding relationship between the indexes of non-standard items and standard template set value items. When processing the set value items that fail to match or are incorrectly matched, it is essentially to associate the set value item and the trustworthy set value item with the same standard template set value item, thereby achieving matching between the two. The advantage of introducing standard template values is that if the adjustment value item is directly associated with the trustworthy value item, a manual intervention will only generate one matching relationship data. However, after the introduction, two matching relationship data will be generated, namely, the adjustment value item and the standard template value item, and the trustworthy value item and the standard template value item. Sufficient data will help to obtain a more complete set value name similarity model in the model training unit.
[0049] Furthermore, it also includes a model training unit, which is used to update the model data set and retrain the fixed value name similarity model using the matching relationship data in the manual intervention table.
[0050] Furthermore, the manual intervention table update unit is also used to convert the current manual intervention table into a historical backup table and create a new manual intervention table when the matching relationship data in the current manual intervention table is greater than a second threshold. The automatic matching unit is also used to input the first fixed value item and the second fixed value item in the historical backup table into a trained fixed value name similarity model to obtain the corresponding similarity.
[0051] Compared with the prior art, the present invention has the following advantages:
[0052] The present invention first reads the setting value and the trust-guaranteed value; then pre-processes the name of the value item; then converts it into a word vector; finally inputs it into a trained value name similarity model to obtain the value name similarity and complete the value matching. During the value matching process, check for matching failures, wrong matches, missed matches, etc., correct the errors manually, update the manual intervention records in the manual intervention table, and retrain the value name similarity model when the manual intervention records reach a threshold. The present invention can keep learning during operation to ensure a high accuracy of value matching. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 is a flow chart of an embodiment of the present invention.
[0054] Figure 2 It is a flow chart of a fixed value name similarity algorithm according to an embodiment of the present invention.
[0055] Figure 3 4 is a flow chart of input data preprocessing according to an embodiment of the present invention.
[0056] Figure 4 It is a structural diagram of a fixed value name similarity model according to an embodiment of the present invention.
[0057] Figure 5 It is a bidirectional GUA neural network structure diagram of the present invention.
[0058] Figure 6 It is the GRU neuron structure topology diagram of the present invention.
[0059] Figure 7 It is a flowchart of retraining the fixed value name similarity model in an embodiment of the present invention.
[0060] Figure 8 It is a comparison of error indicators between the algorithm of the present invention and the conventional algorithm embodiment. DETAILED DESCRIPTION
[0061] The present invention is further described below in conjunction with the accompanying drawings and specific preferred embodiments, but the protection scope of the present invention is not limited thereby.
[0062] Embodiment 1
[0063] This embodiment proposes an automatic matching method for setting value verification of secondary equipment in a power system. Compared with the traditional method, it has high matching accuracy and wide adaptability, and is helpful to establish a more complete secondary equipment management system for the power system, such as Figure 1 As shown, the following steps are included:
[0064] S1. Obtain the setting value list and trustworthy setting value list of the same equipment. In this embodiment, all setting items of the target equipment are read from the setting value list of the setting system, recorded as the setting value list, and all setting items of the target equipment are searched from the trustworthy system database, recorded as the trustworthy setting value list;
[0065] S2, traverse the first fixed value item in the adjustment fixed value list and the second fixed value item in the guarantee fixed value list, if the matching relationship between the first fixed value item and the second fixed value item is in the manual intervention table, generate a corresponding matching pair, if the matching relationship between the first fixed value item and the second fixed value item is not in the manual intervention table, input the first fixed value item and the second fixed value item into the fixed value name similarity model to obtain the corresponding similarity; if the maximum similarity corresponding to the first fixed value item or the second fixed value item is greater than the first threshold, generate a matching pair of the first fixed value item or the second fixed value item and the second fixed value item or the first fixed value item with the maximum similarity;
[0066] S3. If the maximum similarity corresponding to the first fixed value item or the second fixed value item is less than the first threshold value, or the generated matching pair is a wrong match, correct the matching relationship between the corresponding first fixed value item and the second fixed value item and record the correct matching relationship in the manual intervention table; use the matching relationship data in the manual intervention table to update the model data set and retrain the fixed value name similarity model.
[0067] Each step is described in detail below.
[0068] like Figure 1 As shown, step S2 of this embodiment specifically includes:
[0069] S21, selecting the current first fixed value item in the set value list, and using the name of the current first fixed value item as input one of the fixed value name similarity algorithm;
[0070] S22, selecting the current second fixed value item in the trustworthy fixed value list, and using the name of the current second fixed value item as the second input of the fixed value name similarity algorithm;
[0071] S23, if the matching relationship between the current first fixed value item and the current second fixed value item already exists in the manual intervention table, jump to step S27, otherwise jump to step S24;
[0072] S24, inputting the current first fixed value item and the current second fixed value item into the trained fixed value name similarity model, and the fixed value name similarity model executes the fixed value name similarity algorithm to obtain the corresponding similarity;
[0073] S25, return to step S22, until the list of guaranteed values is traversed;
[0074] S26, if the maximum similarity of the current first fixed value item is less than the first threshold, it is considered that the setting fixed value item of the current first fixed value item fails to match, the setting fixed value item matching failure log is output and the process jumps to step S3; if the maximum similarity of the current first fixed value item is greater than the first threshold, the match is successful, and the process jumps to step S27; in this embodiment, the first threshold is 0.5;
[0075] S27, forming a matching pair between the current first fixed value item and the target second fixed value item, and deleting the two from the adjustment fixed value list and the trust guarantee fixed value list, wherein the target second fixed value item is the second fixed value item corresponding to the current first fixed value item in the manual intervention table, or the second fixed value item corresponding to the maximum similarity of the current first fixed value item;
[0076] S28, checking whether the matching pair formed by the current first fixed value item and the target second fixed value item is correct, if yes, jump to step S29, otherwise jump to step S3. In this embodiment, when checking whether the matching pair is correct, a manual verification method is adopted;
[0077] S29. Return to step S21 until the set value list is traversed.
[0078] In this embodiment, while executing step S2, step S3 is also executed to correct errors in a timely manner manually. Whenever a wrong match or missed match occurs, a correct fixed value item name matching pair is manually specified, and the matching pair is saved in the database to update the manual intervention table. Therefore, in step S3 of this embodiment, when correcting the matching relationship between the corresponding first fixed value item and the second fixed value item and recording the correct matching relationship in the manual intervention table, it specifically includes:
[0079] A1. If the setting value item matching failure log is obtained, or the matching pair is a wrong match, jump to step A2;
[0080] A2. Obtain the corrected matching pair and update the corrected matching pair in the current manual intervention table, specifically including:
[0081] Obtaining the first fixed value item and the second fixed value item in the correct matching relationship after correction;
[0082] The first fixed value item is associated with the second fixed value item and the same standard template fixed value item, and the corresponding relationship between the first fixed value item and the index of the standard template fixed value item is stored as the newly added matching relationship data of the adjustment fixed value item and the standard template fixed value item, and the corresponding relationship between the second fixed value item and the index of the standard template fixed value item is stored as the newly added matching relationship data of the trust guarantee fixed value item and the standard template fixed value item.
[0083] In this embodiment, the composition of the manual intervention table can be divided into two parts: a standard template fixed value index table and a non-standard fixed value associated data table. Among them, the standard template fixed value index table pre-stores the template fixed value items that have been standardized according to the specifications and the indexes that uniquely correspond to them, and the non-standard fixed value associated data table is used to store the corresponding relationship between the indexes of the non-standard items and the standard template fixed value items. When dealing with fixed value items that fail to match or match incorrectly, it is essentially to associate the setting fixed value item and the trustworthy fixed value item with the same standard template fixed value item, thereby achieving matching between the two parties. The advantage of introducing standard template fixed values is that if the setting fixed value item is directly associated with the trustworthy fixed value item, only one matching relationship data will be generated for one manual intervention, and after the introduction, two matching relationship data will be generated between the setting fixed value item and the standard template fixed value item, and the trustworthy fixed value item and the standard template fixed value item. Sufficient data helps to obtain a more complete fixed value name similarity model in model training.
[0084] like Figure 7 As shown, whenever the number of matching pairs of the fixed value item names in the manual intervention table accumulates to a certain number, these matching pairs are added to the model data set as new data, and the model data set with the new data added is used to retrain and update the fixed value name similarity model to improve the matching success rate. Therefore, in step S3 of this embodiment, when the matching relationship data in the manual intervention table is used to update the model data set and retrain the fixed value name similarity model, it includes:
[0085] B1. If the matching relationship data in the current manual intervention table is less than the second threshold, return to step S2; if the matching relationship data in the current manual intervention table is greater than the second threshold, add the matching relationship data in the current manual intervention table to the model data set, and use the model data set to retrain the fixed value name similarity model. In this embodiment, the fixed value name similarity model belongs to a neural network model. The specific training process of the neural network model using the data set is well known to those skilled in the art and will not be repeated here.
[0086] B2. Convert the current manual intervention table into a historical backup table and create a new manual intervention table. The historical backup table is obtained by adding the model update time to the table name of the current manual intervention table.
[0087] B3. Input the fixed value items in the historical backup table as the data to be matched into the model to obtain the matching result. Specifically, traverse the first fixed value item and the second fixed value item in the historical backup table and input the trained fixed value name similarity model to obtain the corresponding similarity. If the maximum similarity corresponding to the first fixed value item or the second fixed value item is greater than the first threshold, generate a matching pair of the first fixed value item or the second fixed value item and the second fixed value item or the first fixed value item with the maximum similarity. The specific process is basically the same as steps S21 to S29, except that it is not necessary to determine whether the matching relationship between the first fixed value item and the second fixed value item already exists in the manual intervention table.
[0088] B4. For the fixed-value items that are still incorrectly matched in step B3, the associated correct matching pairs are recorded in the manual intervention table. Specifically, verify whether the matching pairs are correct; if the maximum similarity corresponding to the first fixed-value item or the second fixed-value item is less than the first threshold, or the matching pair is a wrong match, correct the corresponding matching relationship between the first fixed-value item and the second fixed-value item and record the correct matching relationship in a new manual intervention table.
[0089] like Figure 2 As shown, when the first fixed value item and the second fixed value item are input into the trained fixed value name similarity model in step S2, the fixed value name similarity algorithm executed by the fixed value name similarity model includes the following steps:
[0090] S201, preprocessing the texts of the first fixed value item and the second fixed value item to obtain a first input text and a second input text;
[0091] S202, encoding the first input text and the second input text to obtain a first word vector and a second word vector;
[0092] S203, in this embodiment, after obtaining the first word vector and the second word vector, the corresponding weight vector is calculated through the attention model to obtain the weighted first word vector and the second word vector;
[0093] S204, respectively inputting the weighted first word vector and the second word vector into the twin bidirectional GUA neural network of the fixed-value name similarity model to obtain a feature vector;
[0094] S205 , inputting the feature vector into a similarity calculation neural network of a fixed-value name similarity model to obtain the similarity between the first fixed-value item and the second fixed-value item.
[0095] like Figure 3As shown in the figure, in step S201, the text preprocessing includes: converting Roman numerals, pseudo-Roman numerals, and Chinese numerals into Arabic numerals; replacing non-standard keywords with standard keywords; converting all letters into uppercase; and performing word segmentation using a lexical analysis toolkit. In this embodiment, the lexical analysis toolkit uses the THULAC word segmentation toolkit, which is a Chinese lexical analysis toolkit constructed by Tsinghua University and has the largest existing Chinese manual word segmentation and part-of-speech tagging database, and its word segmentation performance is outstanding.
[0096] It should be noted that generally, in the Chinese phrase matching task, a stop word removal operation also needs to be performed in the preprocessing stage, that is, removing function words such as "de" and "le" in the text. However, in this embodiment, such function words basically do not appear, so this operation can be omitted to speed up the matching speed.
[0097] In step S202, the RoBERTa-wwm-ext model is used to encode the text. The RoBERTa-wwm-ext model is released by the Joint Laboratory of Harbin Institute of Technology and iFlytek, adopts the whole-word Mask technology, and is trained with a large amount of word data such as Wikipedia. It is an excellent phrase encoding method at present.
[0098] In step S203, different from the conventional phrase matching task, in the application scenario of this embodiment, there are widely phrases that differ by one or two characters but have completely different actual meanings, such as: "High-voltage side PT disconnection" and "High-voltage side CT disconnection", "Section I is effective" and "Section III is effective", etc. The existence of these phrases greatly affects the calculation of the similarity of subsequent setting names. In response to this situation, the weight is calculated through the attention model, and higher weights are given to the key characters in the phrase to obtain the weighted word vectors.
[0099] In step S204, a twin bidirectional GUA neural network is used to better learn the correlation information between data, making the matching speed and accuracy better. As Figure 4 shown, the bidirectional GUA neural network has two inputs. The weighted word vectors are respectively input into the left and right bidirectional GUA neural networks. The parameters of these two neural networks are shared, so the two word vectors can be mapped into the same dimensional space to form two new feature vectors.
[0100] As Figure 5 shown, the bidirectional GUA neural network is specifically composed of two GUA neural networks with opposite directions superimposed, namely the forward GUA network and the backward GUA network. Its output y is the sum of the outputs h (1) and h (2) of the two networks. This structure enables it to better learn the correlation information between data.
[0101] Inside the GUA neural network, as Figure 6As shown, it is composed of GRU neurons stacked in a certain direction. The GRU neurons are composed of a reset gate and an update gate. The specific principles are as follows:
[0102] (1) Reset gate and update gate:
[0103] r t =σ(W xr x t +W hr h t-1 +b r )
[0104] z t =σ(W xz x t +W hz h t-1 +b z )
[0105] Among them, σ is the activation function, W is the weight matrix, b is the bias, x t is the input of the tth neuron, h t-1 is the output of the t-1th neuron, r is the reset gate, which is used to decide which information needs to be retained, z t It is the update gate used to decide what information needs to be passed.
[0106] (2)Hidden status update:
[0107]
[0108] in, is the combination of the new information at the current moment and the hidden information at the previous moment, h t is the hidden state at the current moment, which is also the output of the neuron.
[0109] The similarity calculation neural network in step S204 of this embodiment includes two fully connected layers and one normalization layer. The similarity calculation formula is as follows:
[0110] S = sigmoid(F2(F1(X1;X2)))
[0111] Among them, sigmoid is a normalization function, F1 and F2 represent the output vector of each fully connected layer, X1 and X2 represent the input vector of each fully connected layer, and for the fully connected layer, there are:
[0112] F(X)=relu(wX+b)
[0113] Among them, relu is the activation function, w is the weight matrix, b is the bias, X is the input vector, and in this embodiment, it is the original fixed value name of the matching parties, that is, the original name of the first fixed value item and the second fixed value item.
[0114] Through the above steps, this embodiment first reads the setting value and the trust-guaranteed value; then pre-processes the name of the value item; then converts it into a word vector; finally inputs it into the value name similarity algorithm to obtain the value name similarity and complete the value matching. In addition, during the operation of this method, whenever the manual intervention record reaches the threshold, the model will be retrained to improve the accuracy of the value matching, which effectively solves the problem of low matching accuracy and narrow adaptability in the prior art.
[0115] Embodiment 2
[0116] The setting value list acquisition unit is used to obtain the setting setting value list and the guarantee setting value list of the same equipment;
[0117] The automatic matching unit traverses the first fixed value item in the setting fixed value list and the second fixed value item in the guarantee fixed value list, and if the matching relationship between the first fixed value item and the second fixed value item is in the manual intervention table, generates a corresponding matching pair; if the matching relationship between the first fixed value item and the second fixed value item is not in the manual intervention table, inputs the first fixed value item and the second fixed value item into the fixed value name similarity model to obtain the corresponding similarity; if the maximum similarity corresponding to the first fixed value item or the second fixed value item is greater than a first threshold, generates a matching pair of the first fixed value item or the second fixed value item and the second fixed value item or the first fixed value item with the maximum similarity; if the maximum similarity corresponding to the first fixed value item or the second fixed value item is less than the first threshold, generates a setting fixed value item matching failure log;
[0118] The manual intervention table updating unit is used to obtain the setting value item matching failure log, or when the matching pair is a wrong match, correct the matching relationship between the corresponding first set value item and the second set value item and record the correct matching relationship in the manual intervention table. The structure of the manual intervention table can be divided into two parts: a standard template set value index table and a non-standard set value associated data table. The standard template set value index table pre-stores the template set value items that have been standardized according to the specification and the indexes that uniquely correspond to them. The non-standard set value associated data table is used to store the corresponding relationship between the indexes of the non-standard items and the standard template set value items. When the operation and maintenance personnel deal with the value items that fail to match or are incorrectly matched, they essentially associate the setting value items and the trust-guaranteeing value items with the same standard template value items to achieve matching between the two. The advantage of introducing the standard template value items is that if the setting value items are directly associated with the trust-guaranteeing value items, only one matching relationship data will be generated for one manual intervention, while after the introduction, two matching relationship data will be generated, namely, the setting value items and the standard template value items, and the trust-guaranteeing value items and the standard template value items. Sufficient data helps to obtain a more complete value name similarity model in the model training unit;
[0119] In addition, the manual intervention table update unit is also used to convert the current manual intervention table into a historical backup table and create a new manual intervention table when the number of matching pairs in the current manual intervention table exceeds a second threshold value; the fixed value items in the historical backup table are used as the to-be-matched data again to obtain a matching result; the automatic matching unit is also used to input the first fixed value item and the second fixed value item in the historical backup table into a trained fixed value name similarity model to obtain the corresponding similarity, and generate a matching pair or a fixed value item matching failure log according to the relationship between the maximum similarity and the first threshold value, and after waiting for manual verification and correction, the manual intervention table update unit records the correct matching pair associated with the wrongly matched fixed value item in the new manual intervention table;
[0120] The model training unit is used to add the matching relationship data in the current manual intervention table to the model data set to update the model data set when the matching relationship data in the current manual intervention table exceeds the second threshold, that is, the number of matching pairs exceeds the second threshold, and retrain the fixed value name similarity model with the updated model data set.
[0121] In summary, the present invention discloses an automatic matching method for setting value verification of secondary equipment in a power system, and also discloses an automatic matching system for setting value verification of secondary equipment in a power system. The automatic matching method and system for setting value verification of secondary equipment in a power system of the present invention first obtain a setting value list and a trust-keeping value list of the same equipment; then traverse the fixed value items in the two lists, if the matching relationship of the fixed value items is in the manual intervention table, generate a corresponding matching pair, if the matching relationship of the fixed value items is not in the manual intervention table, input the fixed value items into the trained model to obtain the corresponding similarity; if the similarity is large, generate a corresponding matching pair; if the similarity is small or the generated matching pair is wrong, correct the matching relationship of the corresponding fixed value items and record it in the manual intervention table; finally, add the matching relationship data in the manual intervention table to the model data set to retrain the model. The present invention can adapt to the on-site environment during operation, continuously learn matching relationships, and maintain a high matching accuracy for a long time. Compared with the prior art, the matching accuracy is high and the adaptability range is wide, which is helpful to establish a complete power system secondary equipment management system.
[0122] like Figure 8 As shown, it is a comparison of error indicators between the algorithm of the present invention and the conventional algorithm embodiment. The other algorithms involved in the comparison are the LSTM algorithm and the GRU algorithm. The evaluation indicators are the mean absolute error ratio (MAPE) and the root mean square error (RMSE). It can be seen that the matching accuracy of the algorithm of the present invention is higher.
[0123] The above is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment, it is not intended to limit the present invention. Therefore, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the scope of protection of the technical solution of the present invention.
Claims
1. A method for automatic matching of setting value verification of secondary equipment in a power system, characterized in that: The following steps are involved: S1. Obtain a setting value list and a trustworthy setting value list, wherein the setting value list includes all setting items of the target equipment in the setting value list of the setting system, and the trustworthy setting value list includes all setting items of the target equipment in the trustworthy system database; S2, traverse the first fixed value item in the adjustment fixed value list and the second fixed value item in the guarantee fixed value list, if the matching relationship between the first fixed value item and the second fixed value item is in the manual intervention table, generate a corresponding matching pair, if the matching relationship between the first fixed value item and the second fixed value item is not in the manual intervention table, input the first fixed value item and the second fixed value item into the fixed value name similarity model to obtain the corresponding similarity; if the maximum similarity corresponding to the first fixed value item or the second fixed value item is greater than the first threshold, generate a matching pair of the first fixed value item or the second fixed value item and the second fixed value item or the first fixed value item with the maximum similarity; S3. If the maximum similarity corresponding to the first fixed value item or the second fixed value item is less than the first threshold value, or the generated matching pair is a wrong match, correct the matching relationship between the corresponding first fixed value item and the second fixed value item and record the correct matching relationship in the manual intervention table; use the matching relationship data in the manual intervention table to update the model data set and retrain the fixed value name similarity model.
2. The automatic matching method for setting value verification of secondary equipment in a power system according to claim 1 is characterized in that: Step S2 specifically includes: S21, traverse and select the current first fixed value item in the setting fixed value list; S22, traverse and select the current second fixed value item in the trust-guaranteeing fixed value list; S23, if the matching relationship between the current first fixed value item and the current second fixed value item already exists in the manual intervention table, jump to step S27, otherwise jump to step S24; S24, inputting the current first fixed value item and the current second fixed value item into the trained fixed value name similarity model to obtain corresponding similarities; S25, return to step S22, until the list of guaranteed values is traversed; S26, if the maximum similarity corresponding to the current first fixed value item is less than the first threshold, jump to step S3; if the maximum similarity corresponding to the current first fixed value item is greater than the first threshold, jump to step S27; S27, forming a matching pair of the current first fixed value item and the target second fixed value item, and deleting the current first fixed value item and the target second fixed value item from the adjustment fixed value list and the trust guarantee fixed value list respectively, wherein the target second fixed value item is a second fixed value item with a matching relationship in the manual intervention table for the current first fixed value item, or a second fixed value item corresponding to the maximum similarity of the current first fixed value item; S28, checking whether the matching pair formed by the current first fixed value item and the target second fixed value item is correct, if yes, jump to step S29, otherwise jump to step S3; S29. Return to step S21 until the set value list is traversed.
3. The automatic matching method for setting value verification of secondary equipment in a power system according to claim 1 is characterized in that: In step S3, correcting the matching relationship between the corresponding first fixed value item and the second fixed value item and recording the correct matching relationship in the manual intervention table specifically includes: Obtaining the first fixed value item and the second fixed value item in the correct matching relationship after correction; The first fixed value item is associated with the second fixed value item and the same standard template fixed value item, and the corresponding relationship between the first fixed value item and the index of the standard template fixed value item is stored as the newly added matching relationship data of the adjustment fixed value item and the standard template fixed value item, and the corresponding relationship between the second fixed value item and the index of the standard template fixed value item is stored as the newly added matching relationship data of the trust guarantee fixed value item and the standard template fixed value item.
4. The automatic matching method for setting value verification of secondary equipment in a power system according to claim 1 is characterized in that: In step S3, when the matching relationship data in the manual intervention table is used to update the model data set and retrain the fixed value name similarity model, it includes: If the matching relationship data in the current manual intervention table is less than the second threshold, return to step S2; If the matching relationship data in the current manual intervention table is greater than the second threshold, the matching relationship data in the current manual intervention table is added to the model data set, and the fixed value name similarity model is retrained using the model data set, and the process returns to step S2.
5. The automatic matching method for setting value verification of secondary equipment in a power system according to claim 4 is characterized in that: After retraining the fixed value name similarity model with the model data set, the method further includes: Convert the current manual intervention table into a historical backup table, create a new manual intervention table, traverse the first fixed value item and the second fixed value item in the historical backup table, input the trained fixed value name similarity model, and obtain the corresponding similarity; If the maximum similarity corresponding to the first fixed value item or the second fixed value item is greater than the first threshold, generate a matching pair of the first fixed value item or the second fixed value item and the second fixed value item or the first fixed value item with the maximum similarity and verify whether the matching pair is correct; if the maximum similarity corresponding to the first fixed value item or the second fixed value item is less than the first threshold, or the matching pair is a wrong match, correct the matching relationship between the corresponding first fixed value item and the second fixed value item and record the correct matching relationship in a new manual intervention table.
6. The automatic matching method for setting value verification of secondary equipment in a power system according to claim 1 is characterized in that: When the first fixed value item and the second fixed value item are input into the trained fixed value name similarity model in step S2, the following steps are included: S201, preprocessing the texts of the first fixed value item and the second fixed value item to obtain a first input text and a second input text; S202, encoding the first input text and the second input text to obtain a first word vector and a second word vector; S203, inputting the first word vector and the second word vector into the attention model respectively to calculate the corresponding weights, so as to obtain the weighted first word vector and the second word vector; S204, respectively inputting the weighted first word vector and the second word vector into the twin bidirectional GUA neural network of the fixed-value name similarity model to obtain a feature vector; S205 , inputting the feature vector into a similarity calculation neural network of a fixed-value name similarity model to obtain the similarity between the first fixed-value item and the second fixed-value item.
7. The automatic matching method for setting value verification of secondary equipment in a power system according to claim 6 is characterized in that: The text preprocessing in step S201 includes: converting Roman numerals, pseudo-Roman numerals and Chinese numerals into Arabic numerals; replacing non-standard keywords with standard keywords; converting all letters into uppercase; and performing word segmentation using a Chinese lexical analysis toolkit.
8. The automatic matching method for setting value verification of secondary equipment in a power system according to claim 6 is characterized in that: The similarity calculation neural network in step S204 includes two fully connected layers and one normalization layer. The similarity calculation formula is as follows: S = sigmoid(F2(F1(X1;X2))) Among them, sigmoid is a normalization function, F1 and F2 represent the output vector of each fully connected layer, X1 and X2 represent the input vector of each fully connected layer, and for the fully connected layer, there are: F(X)=relu(wX+b) Among them, relu is the activation function, w is the weight matrix, b is the bias, and X is the input vector.
9. An automatic matching system for setting value verification of secondary equipment in a power system, characterized in that: include: The setting value list acquisition unit is used to obtain the setting setting value list and the guarantee setting value list of the same equipment; The automatic matching unit traverses the first fixed value item in the adjustment fixed value list and the second fixed value item in the trust guarantee fixed value list, and generates a corresponding matching pair if the matching relationship between the first fixed value item and the second fixed value item is in the manual intervention table; if the matching relationship between the first fixed value item and the second fixed value item is not in the manual intervention table, the first fixed value item and the second fixed value item are input into the fixed value name similarity model to obtain the corresponding similarity; if the maximum similarity corresponding to the first fixed value item or the second fixed value item is greater than the first threshold, a matching pair of the first fixed value item or the second fixed value item and the second fixed value item or the first fixed value item with the maximum similarity is generated; If the maximum similarity corresponding to the first fixed value item or the second fixed value item is less than the first threshold, a fixed value item matching failure log is generated; A manual intervention table updating unit, used for obtaining a log of a failed match of a setting fixed value item, or when the matching pair is a wrong match, correcting the matching relationship between the corresponding first fixed value item and the second fixed value item and recording the correct matching relationship in the manual intervention table; The model training unit is used to update the model data set and retrain the fixed value name similarity model using the matching relationship data in the manual intervention table.
10. The automatic matching system for checking the setting value of secondary equipment in the power system according to claim 9 is characterized in that: The manual intervention table update unit is also used to convert the current manual intervention table into a historical backup table and create a new manual intervention table when the matching relationship data in the current manual intervention table is greater than a second threshold. The automatic matching unit is also used to input the first fixed value item and the second fixed value item in the historical backup table into a trained fixed value name similarity model to obtain the corresponding similarity.
Citation Information
Patent Citations
Relay protection constant value automatic checking system
CN110932226A
Constant value item matching method and device
CN113849708A
Relay protection setting value intelligent comparison method and system
CN114491014A
