CN110781206A - Method for predicting whether electric energy meter in operation fails or not by learning meter-dismantling and returning failure characteristic rule - Google Patents

Method for predicting whether electric energy meter in operation fails or not by learning meter-dismantling and returning failure characteristic rule Download PDF

Info

Publication number
CN110781206A
CN110781206A CN201911216756.9A CN201911216756A CN110781206A CN 110781206 A CN110781206 A CN 110781206A CN 201911216756 A CN201911216756 A CN 201911216756A CN 110781206 A CN110781206 A CN 110781206A
Authority
CN
China
Prior art keywords
data
electric energy
energy meter
meter
fault
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911216756.9A
Other languages
Chinese (zh)
Inventor
李翀
李兵
申洪涛
吴一敌
陶鹏
李鹏
韩桂楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Hebei Electric Power Co Ltd
Marketing Service Center of State Grid Hebei Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Hebei Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Hebei Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201911216756.9A priority Critical patent/CN110781206A/en
Publication of CN110781206A publication Critical patent/CN110781206A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a method for predicting whether an electric energy meter in operation fails by learning a rule of disassembling fault characteristics of the meter, which uses an XGboost model to learn a rule of disassembling sorting results and whether the electric energy meter in the data of historical operation events of the electric energy meter fails or not, and predicts whether the electric energy meter in operation fails or not by using the learned rule. The invention can reduce the risk of concentrated explosion of batch faults of the electric energy meters in operation and has high working efficiency.

Description

Method for predicting whether electric energy meter in operation fails or not by learning meter-dismantling and returning failure characteristic rule
Technical Field
The invention relates to the field of management of a disassembled electric energy meter in the electric power metering industry, in particular to a method for predicting whether an in-service electric energy meter fails or not by learning a disassembled electric energy meter failure characteristic rule.
Background
Along with the implementation of the construction of a national network 'big marketing' system, each network province company basically forms the management of electric energy metering appliances, realizes the centralized verification and unified distribution mode, and is applied to a full-automatic verification assembly line. However, companies in various provinces are generally weak in meter-dismantling asset management, intelligent electric energy meter fault libraries are not complete enough, fault data in verification and detection business and field investigation links are not brought in, and effective data management, monitoring and statistics means for electric energy meter fault information are lacked. And the failure forecasting mechanism of the electric energy meter is lacked.
In order to standardize the sorting management mode and the business process of the disassembled electric energy meter, relevant regulations are managed by combining the whole life cycle of the measured assets of the company according to the management principle of 'timely sorting, full old utilization and standardized disposal'. According to the information of the arrival batch, the installation time, the installation area, the operation spot check, the user correction detection and the like of the fault data, the occurrence rule and the characteristics of the typical fault are searched by combining the state data information of the electric energy meter, the fault of the electric energy meter is forecasted, the worker can predict the future occurrence condition of the fault in advance, the risk precaution measures are enhanced, and the concentrated explosion risk of the batch faults of the electric energy meter is reduced.
Disclosure of Invention
The invention aims to provide a method for predicting whether an in-service electric energy meter fails or not by learning a meter-detaching fault characteristic rule, which can reduce the risk of concentrated explosion of batch faults of the in-service electric energy meter and has high working efficiency.
The invention adopts the following technical scheme:
a method for predicting whether an electric energy meter in operation fails or not by learning a rule of disassembling fault characteristics of the meter uses an XGboost model to learn a rule of whether the electric energy meter fails or not in data of a sorting result and historical operation events of the electric energy meter, and predicts whether the electric energy meter in operation fails or not by using the learned rule.
The method specifically comprises the following steps:
step one, data acquisition: collecting data of the disassembled sorting table;
step two, data preprocessing: processing the acquired data into data which can be used by a model;
step three, modeling analysis: analyzing the preprocessed data in the second step by using the XGboost model, and learning a rule for judging whether the electric energy meter is in fault;
step four, falling the data result to the ground: and D, judging whether the in-service electric energy meter fails or not by using the data of the in-service electric energy meter processed in the step two according to the learned rule.
In the method, the data source of the step one is an ORACLE database system.
In the method, data are collected in an MDS system contained in an ORACLE database system.
In the method, the data of the sorting table is disassembled in the step one, and the data comprises collected abnormal data, metering abnormal data, disassembled sorting data and archive data.
In the method, the data which can be used by the model in the step two comprises data used for learning and data used for predicting.
In the method, the processing of the data in the step two is completed by the database storage process.
In the method, the XGboost model in the third step is trained and predicted by Python.
In the fourth step, the meter-detaching fault rule obtained by the XGboost model is compared with the data of the electric energy meter in operation, and whether the electric energy meter in operation has faults or not is judged.
In the method, it further comprises: step five, visualization operation: and visually displaying the result.
The invention has the beneficial effects that:
1. the invention finds the rule for judging whether the electric energy meter has faults or not by learning the historical data, and can automatically learn the latest judgment rule according to the latest data.
2. The invention realizes the forecasting of the faults of the electric energy meter, leads the working personnel to predict the future occurrence condition of the faults in advance, strengthens the risk precautionary measures, and reduces the risk of concentrated outbreak of the batch faults of the electric energy meter
3. The whole analysis process of the invention does not need manual intervention, and the working efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart of the present invention.
Fig. 2 is a block diagram of an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A method for predicting whether an electric energy meter in operation fails or not by learning a rule of disassembling fault characteristics of the meter uses an XGboost model to learn a rule of whether the electric energy meter fails or not in data of a sorting result and historical operation events of the electric energy meter, and predicts whether the electric energy meter in operation fails or not by using the learned rule.
The method specifically comprises the following steps:
step one, data acquisition.
Collecting data of the disassembled sorting table; the data source is an ORACLE database system. Data is collected using an MDS system contained within an ORACLE database system. The data of the disassembled sorting table comprises collected abnormal data, metering abnormal data, disassembled sorting data and archive data.
And step two, preprocessing data.
Processing the acquired data into data which can be used by a model; the processing of the data is completed by a database storage process. The data that the model can use includes data used for learning and data used for predicting needs.
And step three, modeling analysis.
Analyzing the preprocessed data in the second step by using the XGboost model, and learning a rule for judging whether the electric energy meter is in fault; the XGboost model is trained and predicted by Python.
The XGboost model used by the invention has the following principle:
XGboost is one of boosting algorithms. The idea of Boosting is to integrate many weak classifiers together to form one strong classifier. Because the XGboost is a lifting tree model, a plurality of tree models are integrated together to form a strong classifier. The tree model used is the CART regression tree model. The idea of the XGboost algorithm is to continuously add trees, continuously perform feature splitting to grow a tree, and each time a tree is added, actually learn a new function to fit the residual error predicted last time. When training is completed to obtain k trees, a score of a sample is predicted, namely, according to the characteristics of the sample, a corresponding leaf node is fallen in each tree, each leaf node corresponds to a score, and finally, the predicted value of the sample is obtained by only adding the scores corresponding to each tree.
The CART regression tree is a binary tree assumed by continuously splitting features. For example, the current tree node is split based on the jth eigenvalue, and the samples with eigenvalues smaller than s are divided into left subtrees, and the samples with eigenvalues larger than s are divided into right subtrees.
R 1(j,s)={x|x (j)≤s}and R 2(j,s)={x|x (j)>s}。
The CART regression tree essentially divides the sample space in the feature dimension, and the optimization of the space division is an NP-hard problem, so that a heuristic method is used for solving the problem in the decision tree model. The objective function generated by a typical CART regression tree is:
Figure BDA0002298957320000041
therefore, when we solve the optimal segmentation feature j and the optimal segmentation point s, we turn to solve such an objective function:
Figure BDA0002298957320000042
therefore, the optimal segmentation feature and segmentation point can be found by only traversing all segmentation points of all features. Finally, a regression tree is obtained.
The XGboost objective function is defined as:
Figure BDA0002298957320000043
the objective function is composed of two parts, the first part is used for measuring the difference between the prediction score and the real score, and the other part is a regularization term. The regularization term also comprises two parts, wherein T represents the number of leaf nodes, and w represents the scores of the leaf nodes. Gamma can control the number of leaf nodes, and lambda can control the fraction of the leaf nodes not to be too large, thereby preventing overfitting.
The newly generated tree is to be fitted to the residual of the last prediction, i.e. after t trees are generated, the prediction score can be written as:
meanwhile, the objective function may be rewritten as:
Figure BDA0002298957320000045
it is obvious that we want to find f next tThe objective function can be minimized. The idea behind XGboost is to use it at f tThe taylor second order expansion at 0 approximates it. Therefore, the objective function is approximated as:
Figure BDA0002298957320000051
wherein g is iIs the first derivative, h iAs second derivative:
Figure BDA0002298957320000052
the residual error between the prediction score of the first t-1 tree and y does not influence the optimization of the objective function, and can be directly removed. The simplified objective function is:
Figure BDA0002298957320000053
the above equation is the sum of the loss function values for each sample, and we know that each sample will eventually fall into one leaf node, so we can recombine all samples of the same leaf node, as follows:
Figure BDA0002298957320000054
therefore, through the rewriting of the above formula, the objective function can be rewritten into a unitary quadratic function about the leaf node fraction w, and the solution of the optimal w and the objective function value becomes simple, and the vertex formula is directly used. Thus, the optimal w and objective function are formulated as
Figure BDA0002298957320000055
XGboost modeling flow:
(1) this portion of the data is first trained. After training a result, a less accurate tree is obtained. After the evaluation function evaluates the error, the process of generating the second tree is entered.
(2) The target of the second tree is not the original target but the residual of the target and the predicted value of the last tree.
(3) The learning goal of the third tree is the total residual learned by the first two trees, so that the learning, in theory, reduces the total error step by step.
(4) After repeating the iteration n times, stopping the iteration after reaching the maximum iteration number set by us.
(5) And finally, adding the values of the trees trained in each time before as the final training result.
The invention uses a historical returned sorting data training model to obtain the optimal parameters of the XGboost model as follows:
learning rate-learning _ rate 0.247061
Minimum data quantity-min _ data in one leaf 50
Minimum of leaf node sample weight sum-min-hessian 0.409273
Maximum number of leaves-num _ leaves of a tree 92
Using the scaled sub _ feature of a feature in each iteration 0.814067
And step four, falling the data result to the ground.
And D, judging whether the in-service electric energy meter fails or not by using the data of the in-service electric energy meter processed in the step two according to the learned rule. Namely, comparing the meter-dismantling fault rule obtained by the XGboost model with the data of the running electric energy meter, and judging whether the running electric energy meter is in fault.
And fifthly, performing visualization operation.
And visually displaying the result.
The technical solution of the present invention will be further described below by using examples. The calculation process is as shown in fig. 1, firstly, the characteristics of each electric energy meter are obtained through data preprocessing, the characteristics of the disassembled sorting meter and the disassembled sorting result are input into the model, the model learns the rule of whether the electric energy meter has faults in the data, and the model parameters are adjusted to obtain the optimal parameters.
Table 1 model input data example
Figure BDA0002298957320000071
Figure BDA0002298957320000091
Figure BDA0002298957320000101
Figure BDA0002298957320000111
And selecting some electric energy meters from the production scheduling platform system, inputting the characteristics of the electric energy meters into the XGboost model, and predicting whether the electric energy meters are in fault. The model is trained by using the returned sorting data before 2018 in a province, and the accuracy of model prediction is checked by using the returned sorting data 03 months in 2019, wherein the accuracy is 0.72. Some of the results are shown in table 2 below.
Table 2 partial electric energy meter prediction results
BAR_CODE Sorting result Predicted results
1 4130001000000043518932 Fault of Fault of
2 4130001000000021844800 Fault of Fault of
3 4130001000000021891170 Fault of Fault of
4 4130001000000044700794 Fault of Fault of
5 4130001000000030078616 Fault of Fault of
6 4130001000000044705775 Fault of Fault of
7 4130001000000043607117 Fault of Fault of
8 4130001000000080078642 Fault of Fault of
9 4130001000000044700725 Fault of Fault of
10 4130001000000105076240 Without failure Without failure
11 4130001000000081833844 Without failure Without failure
12 4130001000000064720529 Without failure Without failure
13 4130001000000064770579 Without failure Without failure
14 4130001000000077398777 Without failure Without failure
15 4130001000000178304530 Without failure Without failure
16 4130001000000188326645 Without failure Without failure
17 4130001000000041703781 Without failure Without failure
18 4130001000000098329927 Without failure Without failure
19 4130001000000044769258 Without failure Fault of
20 4130001000000044864540 Without failure Fault of
The invention can be used as a functional module, a computer program is compiled according to the principle and the flow chart of the invention, then the computer program is deployed on the operation server, and the related data is calculated to obtain the result. The specific implementation framework of which is shown in fig. 2.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents or improvements made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for predicting whether an electric energy meter in operation fails or not by learning a rule of disassembling fault characteristics of the meter is characterized in that an XGboost model is used for learning a rule of disassembling a sorting result and whether the electric energy meter fails or not in data of historical operation events of the electric energy meter, and the learned rule is used for predicting whether the electric energy meter in operation fails or not.
2. The method for predicting whether an operating energy meter has a fault according to the learning and recovering meter fault feature rule of claim 1, which is characterized by comprising the following steps:
step one, data acquisition: collecting data of the disassembled sorting table;
step two, data preprocessing: processing the acquired data into data which can be used by a model;
step three, modeling analysis: analyzing the preprocessed data in the second step by using the XGboost model, and learning a rule for judging whether the electric energy meter is in fault;
step four, falling the data result to the ground: and D, judging whether the in-service electric energy meter fails or not by using the data of the in-service electric energy meter processed in the step two according to the learned rule.
3. The method for learning the tear-back table fault signature rule to predict whether an operating energy meter is faulty or not according to claim 2, wherein the data source of the step one is an ORACLE database system.
4. The method of learning the tear-back table fault signature rule to predict whether an energy meter is faulty or not of claim 2, wherein the data is collected using an MDS system included in an ORACLE database system.
5. The method for learning the rules of characteristics of fault recovery of meters to predict whether an electric energy meter is faulty or not according to claim 2, wherein the recovery of sorting meter data in the first step comprises collecting abnormal data, metering abnormal data, recovering sorting data and archive data.
6. The method for predicting whether the electric energy meter is in fault according to the learning and recovering meter fault feature rule of claim 2, wherein the data which can be used by the model in the step two comprises data used for learning and data needed for prediction.
7. The method for predicting whether the power meter is in operation according to the learning and recovering rule of the fault characteristics of the meter as claimed in claim 2, wherein the processing of the data in the second step is completed by a database storage process.
8. The method for learning the rule of characteristics of the fault of the detached meter to predict whether the electric energy meter is in fault or not according to claim 2, wherein the training and prediction of the XGboost model in the third step are completed by Python.
9. The method for predicting whether the electric energy meter in operation fails according to the learning meter-detaching fault feature rule of claim 2, wherein in the fourth step, the meter-detaching fault rule obtained by the XGboost model is compared with the data of the electric energy meter in operation to judge whether the electric energy meter in operation fails.
10. The method for learning the tear-back table fault signature rule to predict whether an energy meter is faulty or not in operation according to claim 2, further comprising: step five, visualization operation: and visually displaying the result.
CN201911216756.9A 2019-12-02 2019-12-02 Method for predicting whether electric energy meter in operation fails or not by learning meter-dismantling and returning failure characteristic rule Pending CN110781206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911216756.9A CN110781206A (en) 2019-12-02 2019-12-02 Method for predicting whether electric energy meter in operation fails or not by learning meter-dismantling and returning failure characteristic rule

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911216756.9A CN110781206A (en) 2019-12-02 2019-12-02 Method for predicting whether electric energy meter in operation fails or not by learning meter-dismantling and returning failure characteristic rule

Publications (1)

Publication Number Publication Date
CN110781206A true CN110781206A (en) 2020-02-11

Family

ID=69393549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911216756.9A Pending CN110781206A (en) 2019-12-02 2019-12-02 Method for predicting whether electric energy meter in operation fails or not by learning meter-dismantling and returning failure characteristic rule

Country Status (1)

Country Link
CN (1) CN110781206A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112036725A (en) * 2020-08-24 2020-12-04 国网河北省电力有限公司营销服务中心 Electric energy meter fault identification method
CN113176530A (en) * 2020-08-25 2021-07-27 北京合众伟奇科技有限公司 On-service electric energy meter batch fault diagnosis method based on meter-dismantling operation characteristics
CN114252794A (en) * 2021-11-24 2022-03-29 国电南瑞科技股份有限公司 Method and device for predicting residual life of disassembled intelligent electric energy meter

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106154209A (en) * 2016-07-29 2016-11-23 国电南瑞科技股份有限公司 Electrical energy meter fault Forecasting Methodology based on decision Tree algorithms
CN109829236A (en) * 2019-01-31 2019-05-31 浙江工业大学 A kind of Compressor Fault Diagnosis method based on XGBoost feature extraction
CN109840541A (en) * 2018-12-05 2019-06-04 国网辽宁省电力有限公司信息通信分公司 A kind of network transformer Fault Classification based on XGBoost

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106154209A (en) * 2016-07-29 2016-11-23 国电南瑞科技股份有限公司 Electrical energy meter fault Forecasting Methodology based on decision Tree algorithms
CN109840541A (en) * 2018-12-05 2019-06-04 国网辽宁省电力有限公司信息通信分公司 A kind of network transformer Fault Classification based on XGBoost
CN109829236A (en) * 2019-01-31 2019-05-31 浙江工业大学 A kind of Compressor Fault Diagnosis method based on XGBoost feature extraction

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112036725A (en) * 2020-08-24 2020-12-04 国网河北省电力有限公司营销服务中心 Electric energy meter fault identification method
CN112036725B (en) * 2020-08-24 2024-04-30 国网河北省电力有限公司营销服务中心 Fault identification method for electric energy meter
CN113176530A (en) * 2020-08-25 2021-07-27 北京合众伟奇科技有限公司 On-service electric energy meter batch fault diagnosis method based on meter-dismantling operation characteristics
CN113176530B (en) * 2020-08-25 2023-05-05 北京合众伟奇科技股份有限公司 On-line electricity meter batch fault diagnosis method based on operation characteristics of dismantling meter
CN114252794A (en) * 2021-11-24 2022-03-29 国电南瑞科技股份有限公司 Method and device for predicting residual life of disassembled intelligent electric energy meter
CN114252794B (en) * 2021-11-24 2024-04-09 国电南瑞科技股份有限公司 Method and device for predicting residual life of disassembled intelligent ammeter

Similar Documents

Publication Publication Date Title
CN111105332B (en) Highway intelligent pre-maintenance method and system based on artificial neural network
CN107967485B (en) Fault analysis method and device for electricity metering equipment
CN105117602B (en) A kind of metering device running status method for early warning
CN112508053A (en) Intelligent diagnosis method, device, equipment and medium based on integrated learning framework
US20230213895A1 (en) Method for Predicting Benchmark Value of Unit Equipment Based on XGBoost Algorithm and System thereof
CN106483947A (en) Distribution Running State assessment based on big data and method for early warning
CN110571792A (en) Analysis and evaluation method and system for operation state of power grid regulation and control system
CN108694470B (en) Data prediction method and device based on artificial intelligence
CN110335168B (en) Method and system for optimizing power utilization information acquisition terminal fault prediction model based on GRU
CN110781206A (en) Method for predicting whether electric energy meter in operation fails or not by learning meter-dismantling and returning failure characteristic rule
CN109919489B (en) Enterprise asset management system and GA-BP-based enterprise equipment life prediction method
CN110826237B (en) Wind power equipment reliability analysis method and device based on Bayesian belief network
CN107644297B (en) Energy-saving calculation and verification method for motor system
CN112819107B (en) Artificial intelligence-based fault prediction method for gas pressure regulating equipment
CN115508672B (en) Power grid main equipment fault tracing reasoning method, system, equipment and medium
CN114035468B (en) Method and system for predictively monitoring overhaul flow of fan based on XGBoost algorithm
CN111552843A (en) Fault prediction method based on weighted causal dependency graph
CN114065605A (en) Intelligent electric energy meter running state detection and evaluation system and method
CN114155072A (en) Financial prediction model construction method and system based on big data analysis
CN114548494B (en) Visual cost data prediction intelligent analysis system
CN116467658A (en) Equipment fault tracing method based on Markov chain
CN114118524A (en) Knowledge reasoning-based equipment state comprehensive analysis method
CN116432123A (en) Electric energy meter fault early warning method based on CART decision tree algorithm
CN111612149A (en) Main network line state detection method, system and medium based on decision tree
CN114548493A (en) Method and system for predicting current overload of electric energy meter

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211221

Address after: 050021 No. 238 South Sports street, Hebei, Shijiazhuang

Applicant after: STATE GRID HEBEI ELECTRIC POWER Research Institute

Applicant after: Marketing service center of State Grid Hebei Electric Power Co.,Ltd.

Applicant after: STATE GRID CORPORATION OF CHINA

Address before: No.238, TIYU South Street, Shijiazhuang, Hebei 050000

Applicant before: STATE GRID HEBEI ELECTRIC POWER Research Institute

Applicant before: STATE GRID CORPORATION OF CHINA

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200211