Intelligent electric meter service life prediction method based on prior feature weight optimization and multilayer LSTM

Through prior feature weight optimization and multi-layer LSTM network, the smart meter life prediction method solves the feature weight allocation problem in high-dimensional data analysis, improves the prediction accuracy and model interpretability, reduces the waste of smart meters, and provides a better Flexible replacement strategy.

CN118760977APending Publication Date: 2024-10-11STATE GRID HUNAN ELECTRIC POWER COMPANY LIMITED +2
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410769979.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing smart meter life prediction methods cannot reasonably allocate feature weights when faced with high-dimensional data, resulting in poor model interpretability and overfitting. In addition, traditional replacement methods lead to early scrapping of smart meters, resulting in waste.

Method used

Using a method based on a priori feature weight optimization and multi-layer LSTM, a standard database is established by obtaining historical meteorological data and smart meter operation and maintenance data, using association rules to mine explicit and implicit elements, dynamically adjusting feature weights, and constructing multi-layer LSTM network is trained to predict life span.

Benefits of technology

It improves the accuracy and running speed of the model, enhances the processing capabilities of high-dimensional data, increases the interpretability and robustness of the model, reduces the waste of smart meters, and provides a more flexible replacement strategy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760977A_ABST
    Figure CN118760977A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent electric meter service life prediction method based on prior feature weight optimization and multilayer LSTM, and the method comprises the steps: obtaining historical meteorological data and historical operation and maintenance data of an intelligent electric meter, fusing the meteorological data and the operation and maintenance data in the same time period, and building a standard database; performing feature mining on the standard database by using an association rule to obtain dominant elements and recessive elements, and correcting the weights of the feature elements according to the weights of the dominant elements and the recessive elements; taking the weight of the feature element as the input of an LSTM network, establishing a multi-layer LSTM network model, and inputting the feature element subjected to weight correction into the multi-layer LSTM network model for training; and inputting historical operation and maintenance data and historical weather information of the intelligent electric meter into the trained multilayer LSTM network model to predict the service life. According to the method, the prior weight of each feature element is defined before the data is input into the LSTM network, so that the subsequent model training accuracy and the operation speed are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a life prediction technology for power system components, and in particular to a smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM. Background Art

[0002] With the vigorous promotion of the construction of smart grids by the country, the power industry has developed rapidly, and the traditional power network has been unable to support the development needs of today's society. Therefore, the construction of smart grids has become the main direction of the development of power systems in my country's modern construction environment. Among them, smart meters are an indispensable part of the smart grid system. Smart meters are developed based on the exploration and improvement of the defects of the original inductive mechanical meters. They are widely used in life and production. Their use enables remote meter reading and remote control, real-time measurement of electric energy, and prevention of electricity theft. They have a very broad development prospect in life and production. Most of the existing research on smart meters focuses on how to use smart meters to monitor abnormal electricity consumption, and there are not many studies on their remaining service life. In addition, the replacement method of smart meters in most areas still follows the fixed replacement period model used when traditional meters are replaced. This means that a large part of smart meters that can still be used normally will be forced to be scrapped in advance because they have reached the prescribed service life, causing great waste.

[0003] Data-driven methods are currently commonly used in the study of the remaining useful life of smart meters, including random forests, support vector machines, recurrent neural networks, etc. However, these existing research methods only analyze data in one dimension when facing high-dimensional data, and cannot make more reasonable weight allocations for features by integrating data information from various dimensions. In addition, the models usually have poor interpretability and are prone to overfitting. In order to enhance the practicality of the model, that is, the ability to adapt to data of various dimensions and meet the needs of improving the interpretability and accuracy of the model, new prediction methods need to be designed. Summary of the invention

[0004] The technical problem to be solved by the present invention is as follows: In view of the above problems in the prior art, a method for predicting the life of a smart meter based on prior feature weight optimization and multi-layer LSTM is provided. Relying on the daily operation and maintenance data of smart meters and public meteorological data, the association rule algorithm for mining data information based on a fixed threshold is improved to dynamically mine important information in the data. Before the data is input into the LSTM network, the prior weights of each feature element are defined to improve the accuracy and operation rate of subsequent model training.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] A smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM includes the following steps:

[0007] Obtain historical meteorological data and historical operation and maintenance data of smart meters, and integrate meteorological data and operation and maintenance data of the same period to establish a standard database;

[0008] Use association rules to mine the features of the standard database to obtain explicit elements and implicit elements, and according to the weights of the explicit elements and implicit elements, correct the weights of the feature elements in the standard database;

[0009] The weights of the feature elements are used as the input of the LSTM network to establish a multi-layer LSTM network model, and the feature elements with corrected weights in the standard database are input into the multi-layer LSTM network model for training;

[0010] The historical operation and maintenance data and historical weather information of the smart meter to be predicted are input into the trained multi-layer LSTM network model to obtain the predicted life of the smart meter to be predicted.

[0011] Furthermore, integrating the meteorological data and operation and maintenance data of the same time period specifically refers to dividing the data into units of 1 hour according to the time difference in the update time between the historical operation and maintenance data and the meteorological data, and integrating the meteorological data and operation and maintenance data of the same time period in the Spark parallel architecture.

[0012] Furthermore, establishing a standard database specifically refers to establishing a standard database M to place the fused data in a unified space. The database M is as follows:

[0013]

[0014] Among them, h n Represents a relevant feature in the database. Each feature h n are composed of a set of elements a n,1 ,a n,2 ,...,a n,k Composition, a n,k It is equivalent to any variable in the set J = {v1, v2, ...} containing all input variables. Y represents the age of the smart meter, F represents the fault type of the smart meter, and the database M starts from the second row. Each row represents a piece of historical data of the smart meter.

[0015] Furthermore, when using association rules to perform feature mining on the standard database to obtain explicit elements and implicit elements, it includes: setting a dynamic association rule threshold, using the high-frequency variable set mined from the standard database using the dynamic association rule threshold as explicit elements, and using the remaining elements of the standard database as implicit elements.

[0016] Furthermore, the expression of the dynamic association rule threshold is as follows:

[0017]

[0018] conf d =conf0

[0019]

[0020] Among them, sup d is the support threshold, conf d is the confidence threshold, conv d is the conviction threshold, lift d is the lifting threshold, level d is the leverage ratio threshold, sup0 is the support initial threshold, conf0 is the confidence initial threshold, conv0 is the conviction initial threshold, lift0 is the lift initial threshold, leve0 is the leverage ratio initial threshold, Y(x) represents the age of the smart meter, F(t max ) represents the fault category with the largest number of faulty meters in the standard database, F(t) represents the fault type, and f i represents the i-th row of smart meter historical data in the standard database, M(x,1) represents the x-th row and first column of smart meter historical data in the standard database, M(x,n+1) represents the x-th row and n+1 column of smart meter historical data in the standard database, and M(x,n+2) represents the x-th row and n+2 column of smart meter historical data in the standard database. x is between 1 and i, and i represents the number of rows of smart meter historical data in the standard database.

[0021] Furthermore, the weight expression of the characteristic elements in the standard database is as follows:

[0022]

[0023] in, is the weight of the hidden element, The characteristic h n The weight of is the weight of the explicit element, M(x,1) represents the historical data of the smart meter in the first column of the xth row in the standard database, and f i represents the historical data of smart meters in the i-th row in the standard database, a n,k The characteristic h n The kth element of .

[0024] Furthermore, when building a multi-layer LSTM network model, it includes:

[0025] Establish a 3-layer LSTM parallel network to process the input data, perform linear transformation on the output of each LSTM layer, and use the ReLU activation function to add nonlinear features;

[0026] Add a fully connected layer to perform weighted averaging on the weighted outputs of each layer to obtain the final fused output.

[0027] Furthermore, the multi-layer LSTM network model is expressed as follows:

[0028]

[0029] A i =ReLU(Z i )

[0030]

[0031] Among them, z i is the i-th LSTM layer network, is the weight matrix of the i-th LSTM layer, O i is the output of the i-th LSTM layer, is the bias term, A i is the output after activation, P i is the weight of the i-th LSTM layer, and F is the weighted output.

[0032] The present invention also proposes a smart meter life prediction system based on prior feature weight optimization and multi-layer LSTM, comprising a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to execute any one of the smart meter life prediction methods based on prior feature weight optimization and multi-layer LSTM.

[0033] The present invention also proposes a computer-readable storage medium, in which a computer program is stored. The computer program is used to be programmed or configured by a microprocessor to execute any one of the smart meter life prediction methods based on prior feature weight optimization and multi-layer LSTM.

[0034] Compared with the prior art, the advantages of the present invention are:

[0035] The present invention enables the neural network to have the ability to quickly process high-dimensional data. Compared with the existing association rule mining methods, they do not take into account that even the same element will have different influencing factors under different fault conditions. Therefore, establishing a standard database can store the meter data and environmental information in the same data space to establish a connection. Using a dynamic importance diagnosis threshold setting method for different fault conditions can dig out the hidden elements that have important influences in specific situations but account for a small proportion of the overall data and are ignored when using fixed thresholds for data analysis. The weight definition algorithm constructed based on the characteristics of hidden elements and explicit elements can accurately quantify the importance of elements in the whole and increase the interpretability of the model. Using the data set corrected based on the weight as the input data of the LSTM network effectively improves the accuracy of the model prediction. In addition, compared with the use of a single-layer LSTM network, the parallel 3-layer LSTM network can improve the representation ability of the model, and each layer can capture patterns and dependencies on different time scales, effectively improving the operating efficiency of the model while better understanding and predicting the complex relationships in time series data. Multi-layer LSTM network parallelism can also better handle the long-term dependency of noise in time series, thereby improving the robustness of the model and enabling the model to more robustly cope with time series data of different types and lengths. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 Schematic diagram of a flow chart of an embodiment of the present invention. DETAILED DESCRIPTION

[0037] 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.

[0038] This embodiment proposes a smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM, which mines the potential small-proportion features in the data information that are not easily discovered by conventional association rules but are important according to the dynamic threshold. The use of multiple LSTM networks in parallel reduces the computational overhead of the neural network in processing complex high-dimensional data and improves the model operation rate and accuracy. This model can improve the current widespread waste of smart meters and provide a theoretical basis for providing a more flexible and effective scientific management strategy for meter replacement.

[0039] like Figure 1 As shown, the method of this embodiment includes the following steps:

[0040] Step 1: Data fusion and database establishment: Obtain historical meteorological data and historical operation and maintenance data of smart meters, and establish a standard database by integrating meteorological data and operation and maintenance data of the same period;

[0041] Step 2: Process the data into a normalized sample set and use association rules to perform feature mining on the smart meter data: Use association rules to perform feature mining on the standard database to obtain explicit elements and implicit elements;

[0042] Step 3: Define feature weights using the improved association rule algorithm: modify the weights of feature elements in the standard database based on the weights of explicit elements and implicit elements;

[0043] Step 4: Integrate the feature matrix to obtain data feature information with strong overall expressiveness: use the weights of the feature elements as the input of the LSTM network;

[0044] Step 5: Use the multi-layer LSTM network as a model, input the multi-scale feature data into it, and conduct training and modeling: Establish a multi-layer LSTM network model, and input the feature elements after weight correction as a data set into the multi-layer LSTM network model for training;

[0045] Through the above steps, a trained multi-layer LSTM network model is obtained, and the historical operation and maintenance data and historical weather information of the smart meter to be predicted are input into the trained multi-layer LSTM network model to obtain the predicted life of the smart meter to be predicted.

[0046] Each step is described in detail below.

[0047] Step 1 of this embodiment integrates the historical operation and maintenance data of the smart meter recorded by the manufacturer's terminal and the historical weather information recorded by China Meteorological Data, and then establishes a standard database.

[0048] The characteristics recorded by the manufacturer's terminal equipment include: meter status, wiring method, version, disassembly fault reason, disassembly date, disassembly month, installation time, user category, voltage, current, meter disassembly code, metering point number, metering direction, and manufacturer;

[0049] The historical weather information recorded in China's meteorological data includes weather conditions, ambient temperature and ambient humidity.

[0050] In step 1, the fusion of meteorological data and operation and maintenance data of the same time period specifically refers to dividing the data into units of 1 hour according to the time difference between the update time of historical operation and maintenance data and meteorological data, and fusion of meteorological data and operation and maintenance data of the same time period in the Spark parallel architecture.

[0051] In step 1, establishing a standard database specifically means establishing a standard database M to place the fused data in a unified space. The database M is as follows:

[0052]

[0053] The set of all features contained in the database M is denoted by H = {h1,h2,…,h n} means, where h n Represents a relevant feature in the database. Each feature h n are composed of a set of elements a n,1 ,a n,2 ,...,a n,k Composition, let J = {v1, v2, ...} be a set containing all input variables, then a n,k is equivalent to any variable in J, Y represents the age of the smart meter, F represents the fault type of the smart meter, F(t)∈[F1,F2,F3,F4,F5] represents any of the five fault types (communication fault, metering fault, storage fault, display fault and clock unit fault), and the database M starts from the second row, and each row represents a piece of historical data of the smart meter.

[0054] In step 2 of this embodiment, a dynamic association rule threshold setting algorithm is constructed. There are five importance diagnosis methods in association rule mining: support (sup), confidence (conf), lift (lift), conviction (conv) and leverage (leve). Traditional association rules use fixed manually set thresholds for data mining, which often ignore the importance of elements with a small proportion. However, due to the randomness of fault occurrence, there is an imbalance in the fault meter data. Considering that the quality of smart meters is a key factor in determining their lifespan, even the same element will have different degrees of influence in different fault causes. Using dynamic thresholds can specifically mine elements that have a small overall proportion but have an important impact on the fault results in specific cases, thereby improving the accuracy of life prediction results.

[0055] Therefore, in step 2, when using association rules to perform feature mining on the standard database to obtain explicit elements and implicit elements, it includes: setting a dynamic association rule threshold, using a dynamic association rule threshold formula based on the traditional association rule algorithm to mine a high-frequency variable set that can change with the external environment in the standard database, so that elements can be classified into explicit elements and implicit elements according to different usage conditions, that is, elements with scores higher than the set threshold are judged as explicit elements, and the remaining elements are regarded as implicit elements. Dynamic support threshold (sup d ), confidence threshold (conf d ), Conviction threshold (conv d ), lift threshold d ) and leverage ratio threshold (leve d ) is as follows,

[0056]

[0057] Wherein, T<…> represents the fault records in the database M that simultaneously meet all the conditions in the brackets. For example, M(x,1) represents the first column of the xth row, which is used to determine the row number of the meter data in the database M. M(x,n+2) represents the xth row and the n+2th column, which is the fault type in the database M. <f x ∈M(x,1);M(x,n+2)=F(t max )> represents the sum of the meter data that meets the largest number of meter faults in the database, sup0 is the initial threshold of support, conf0 is the initial threshold of confidence, conv0 is the initial threshold of conviction, lift0 is the initial threshold of lift, leve0 is the initial threshold of leverage, Y(x) represents the age of the smart meter, F(t max ) represents the fault category with the largest number of faulty meters in the standard database, F(t) represents the fault type, and f i represents the i-th row of smart meter historical data in the standard database, M(x,1) represents the x-th row and first column of smart meter historical data in the standard database, M(x,n+1) represents the x-th row and n+1 column of smart meter historical data in the standard database, and M(x,n+2) represents the x-th row and n+2 column of smart meter historical data in the standard database. x is between 1 and i, and i represents the number of rows of smart meter historical data in the standard database.

[0058] Step 3 of this embodiment is based on the mining of implicit elements and explicit elements, creating an implicit element space R to store implicit elements and an explicit element space Z to store explicit elements. In view of the different influences of the same element in different fault types, the weight of the characteristic element can be divided into two parts: implicit and explicit. The weight expression of the characteristic element in the standard database is as follows:

[0059]

[0060] in, is the weight of the hidden element, The characteristic h n The weight of is the common part of the results obtained when the dynamic threshold and the fixed threshold are used to mine the data. is the weight of the explicit element, M(x,1) represents the historical data of the smart meter in the first column of the xth row in the standard database, and f i represents the historical data of smart meters in the i-th row in the standard database, a n,k The characteristic h n The kth element of .

[0061] In step 4 of this embodiment, the feature matrix is ​​integrated, specifically, the feature weights obtained after correction based on the dynamic association rule are combined into a vector matrix as the input of the LSTM network, and the expression is as follows:

[0062]

[0063] in, Represents feature h in database M n The weight of .

[0064] In step 5 of this embodiment, when establishing a multi-layer LSTM network model, a 3-layer LSTM parallel network is established to process input data and a fully connected layer is added to weightedly fuse the output results of each layer, specifically including:

[0065] Establish a 3-layer LSTM parallel network to process the input data, perform linear transformation on the output of each LSTM layer, and use the ReLU activation function to add nonlinear features;

[0066] Add a fully connected layer to perform weighted averaging on the weighted outputs of each layer to obtain the final fused output.

[0067] Therefore, the multi-layer LSTM network model expression in step 5 is as follows:

[0068]

[0069] Among them, z i is the i-th LSTM layer network, is the weight matrix of the i-th LSTM layer, O i is the output of the i-th LSTM layer, is the bias term, A i is the output after activation, P i is the weight of the i-th LSTM layer, and F is the weighted output.

[0070] This embodiment also proposes a smart meter life prediction system based on prior feature weight optimization and multi-layer LSTM, including a microprocessor and a memory connected to each other, and the microprocessor is programmed or configured to execute the aforementioned smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM.

[0071] This embodiment also proposes a computer-readable storage medium, in which a computer program is stored. The computer program is used to be programmed or configured by a microprocessor to execute the aforementioned smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM.

[0072] In summary, the present invention proposes a smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM, which performs fusion analysis on the multi-scale features that affect the service life of smart meter data, extracts important features and defines their weights according to the improved association rule algorithm, and uses a multi-layer LSTM network to comprehensively capture the sequence data characteristics, improve the prediction accuracy and the generalization ability of the model, and provide a more reliable prediction method for meter life prediction.

[0073] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM, characterized in that: The following steps are involved: Obtain historical meteorological data and historical operation and maintenance data of smart meters, and integrate meteorological data and operation and maintenance data of the same period to establish a standard database; Use association rules to mine the features of the standard database to obtain explicit elements and implicit elements, and according to the weights of the explicit elements and implicit elements, correct the weights of the feature elements in the standard database; The weights of the feature elements are used as the input of the LSTM network to establish a multi-layer LSTM network model, and the feature elements with corrected weights in the standard database are input into the multi-layer LSTM network model for training; The historical operation and maintenance data and historical weather information of the smart meter to be predicted are input into the trained multi-layer LSTM network model to obtain the predicted life of the smart meter to be predicted.

2. According to claim 1, the smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM is characterized in that: The fusion of meteorological data and operation and maintenance data of the same time period specifically refers to dividing the data into units of 1 hour according to the time difference in the update time of historical operation and maintenance data and meteorological data, and fusion of meteorological data and operation and maintenance data of the same time period in the Spark parallel architecture.

3. The smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM according to claim 1 is characterized in that: Establishing a standard database specifically means establishing a standard database M to place the fused data in a unified space. The database M is as follows: Among them, h n Represents a relevant feature in the database. Each feature h n are composed of a set of elements a n,1 ,a n,2 ,...,a n,k Composition, a n,k It is equivalent to any variable in the set J = {v1, v2, ...} containing all input variables. Y represents the age of the smart meter, F represents the fault type of the smart meter, and the database M starts from the second row. Each row represents a piece of historical data of the smart meter.

4. The smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM according to claim 1 is characterized in that: When using association rules to perform feature mining on a standard database to obtain explicit elements and implicit elements, it includes: setting a dynamic association rule threshold, using the high-frequency variable set mined from the standard database using the dynamic association rule threshold as explicit elements, and using the remaining elements of the standard database as implicit elements.

5. The smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM according to claim 4 is characterized in that: The expression of the dynamic association rule threshold is as follows: conf d =conf0 Among them, sup d is the support threshold, conf d is the confidence threshold, conv d is the conviction threshold, lift d is the lifting threshold, level d is the leverage ratio threshold, sup0 is the support initial threshold, conf0 is the confidence initial threshold, conv0 is the conviction initial threshold, lift0 is the lift initial threshold, leve0 is the leverage ratio initial threshold, Y(x) represents the age of the smart meter, F(t max ) represents the fault category with the largest number of faulty meters in the standard database, F(t) represents the fault type, and f i represents the i-th row of smart meter historical data in the standard database, M(x,1) represents the x-th row and first column of smart meter historical data in the standard database, M(x,n+1) represents the x-th row and n+1 column of smart meter historical data in the standard database, and M(x,n+2) represents the x-th row and n+2 column of smart meter historical data in the standard database. x is between 1 and i, and i represents the number of rows of smart meter historical data in the standard database.

6. The method for predicting the life of a smart meter based on prior feature weight optimization and multi-layer LSTM according to claim 1 is characterized in that: The weight expression of the characteristic elements in the standard database is as follows: in, is the weight of the hidden element, The characteristic h n The weight of is the weight of the explicit element, M(x,1) represents the historical data of the smart meter in the first column of the xth row in the standard database, and f i represents the historical data of smart meters in the i-th row in the standard database, a n,k The characteristic h n The kth element of .

7. The method for predicting the life of a smart meter based on prior feature weight optimization and multi-layer LSTM according to claim 1 is characterized in that: When building a multi-layer LSTM network model, include: Establish a 3-layer LSTM parallel network to process the input data, perform linear transformation on the output of each LSTM layer, and use the ReLU activation function to add nonlinear features; Add a fully connected layer to perform weighted averaging on the weighted outputs of each layer to obtain the final fused output.

8. The method for predicting the life of a smart meter based on prior feature weight optimization and multi-layer LSTM according to claim 1 is characterized in that: The multi-layer LSTM network model expression is as follows: AND i =ReLU(Z i ) Among them, z i is the i-th LSTM layer network, is the weight matrix of the i-th LSTM layer, O i is the output of the i-th LSTM layer, is the bias term, A i is the output after activation, P i is the weight of the i-th LSTM layer, and F is the weighted output.

9. A smart meter life prediction system based on prior feature weight optimization and multi-layer LSTM, comprising a microprocessor and a memory connected to each other, characterized in that: The microprocessor is programmed or configured to execute the smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM as described in any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored therein, characterized in that: The computer program is used to be programmed or configured by a microprocessor to execute the smart meter life prediction method based on prior feature weight optimization and multi-layer LSTM as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Residual service life prediction method based on MLP-LSTM supervised joint model

    CN114282443A

  • Residual life prediction method for intelligent electric meters under different subsystems

    CN115358347A

  • Method and system for predicting residual service life of intelligent electric meter

    CN117892259A