CN112598163B - Grounding grid trenchless corrosion prediction model based on comparison learning and measurement learning - Google Patents
Grounding grid trenchless corrosion prediction model based on comparison learning and measurement learning Download PDFInfo
- Publication number
- CN112598163B CN112598163B CN202011421900.5A CN202011421900A CN112598163B CN 112598163 B CN112598163 B CN 112598163B CN 202011421900 A CN202011421900 A CN 202011421900A CN 112598163 B CN112598163 B CN 112598163B
- Authority
- CN
- China
- Prior art keywords
- learning
- sample
- corrosion
- alpha
- data
- 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.)
- Active
Links
- 230000007797 corrosion Effects 0.000 title claims abstract description 64
- 238000005260 corrosion Methods 0.000 title claims abstract description 64
- 238000005259 measurement Methods 0.000 title claims abstract description 8
- 238000005070 sampling Methods 0.000 claims abstract description 45
- 238000000034 method Methods 0.000 claims abstract description 38
- 238000013528 artificial neural network Methods 0.000 claims abstract description 35
- 230000006870 function Effects 0.000 claims abstract description 18
- 239000000523 sample Substances 0.000 claims description 65
- 239000002689 soil Substances 0.000 claims description 27
- 238000012549 training Methods 0.000 claims description 21
- 239000004020 conductor Substances 0.000 claims description 16
- 239000002184 metal Substances 0.000 claims description 9
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 7
- 241000027294 Fusi Species 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000000052 comparative effect Effects 0.000 claims description 3
- 239000000126 substance Substances 0.000 claims description 3
- 230000004580 weight loss Effects 0.000 claims description 3
- 102000012000 CXCR4 Receptors Human genes 0.000 claims description 2
- 108010061299 CXCR4 Receptors Proteins 0.000 claims description 2
- 230000007774 longterm Effects 0.000 description 4
- 239000000463 material Substances 0.000 description 3
- 229910001335 Galvanized steel Inorganic materials 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 239000008397 galvanized steel Substances 0.000 description 2
- 238000005065 mining Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 229910000975 Carbon steel Inorganic materials 0.000 description 1
- 244000292071 Scorzonera hispanica Species 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 239000010962 carbon steel Substances 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003628 erosive effect Effects 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000035515 penetration Effects 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Economics (AREA)
- Health & Medical Sciences (AREA)
- Strategic Management (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Human Resources & Organizations (AREA)
- Life Sciences & Earth Sciences (AREA)
- Marketing (AREA)
- Computational Linguistics (AREA)
- Biophysics (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Biomedical Technology (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Development Economics (AREA)
- Game Theory and Decision Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Entrepreneurship & Innovation (AREA)
- Bioinformatics & Computational Biology (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- Primary Health Care (AREA)
- Testing Resistance To Weather, Investigating Materials By Mechanical Methods (AREA)
Abstract
The invention provides a grounding grid trenchless corrosion prediction model based on comparison learning and measurement learning, which comprises the following steps of (1) selecting a data sampling area and a data sampling point thereof for the prediction model, and establishing a sampling point sample library; (2) Establishing a neural network by combining contrast learning and metric learning to form a prediction model; and (3) verifying the prediction model formed in the step (2). The method obviously reduces the pressure and complexity of the fitting function and improves the prediction precision.
Description
Technical Field
The invention relates to the technical field of power systems, in particular to a grounding grid trenchless corrosion prediction model based on comparison learning and measurement learning.
Background
With the development of higher voltage and larger capacity of electric power systems in China, higher and higher requirements are put forward on the safety and reliability of system operation. The grounding grid is a device which is necessary to be arranged in order to ensure personal safety and equipment safety of a power grid, and at present, galvanized steel and carbon steel are generally adopted as grounding grid conductors in China. Along with the deterioration of the ecological environment and the improvement of the line voltage grade in China, the corrosion degree of the surface of the grounding grid material is continuously intensified and even broken, and the safe operation of a power grid is seriously influenced.
Since the grounding grid is buried underground throughout the year, the grounding performance of the grounding grid is deteriorated due to corrosion of the grounding grid caused by the complex underground soil environment, and the normal operation of the whole power grid is further influenced. Therefore, it is very important to explore the corrosion rule of the grounding grid.
Patent No. 201510170082.9 entitled "a method for diagnosing and preventing corrosion state of grounding grid", proposes data processing for grounding grid water quality information, relative humidity information and grounding grid material, but does not propose a clear data processing method.
The patent number of 201610053843.7, entitled "method for predicting corrosion rate of transformer substation Q235 galvanized steel grounding grid", adopts a neural network to predict the corrosion rate of the grounding grid, but because corrosion is a long-term and gradual-change process, the number of samples is usually small when the actual power station grounding grid is dynamically monitored, and under the condition of too few samples, the neural network or the fitting method is directly adopted, so that the problem of overfitting is easily caused.
Disclosure of Invention
The invention aims to provide a grounding grid corrosion-free prediction model based on comparison learning and measurement learning, so that the pressure and complexity of a fitting function are obviously reduced, and the prediction precision is improved. In order to achieve the purpose, the technical scheme of the invention comprises the following steps:
which comprises the following steps of,
(1) Selecting a data sampling area for a prediction model and a data sampling point thereof, and establishing a sampling point sample library;
(2) Establishing a neural network by combining contrast learning and metric learning to form a prediction model;
(3) And (3) verifying the prediction model formed in the step (2).
Further, in the step (1), selecting 2-4 corrosion branches in the grounding grid in the data sampling area, and taking the area where the corrosion branches are located as the data sampling area; and the data sampling points are grounding grid corrosion sample points in the data sampling area.
Further, the step (2) includes the steps of,
(2-1) determining input data and output data:
inputting data which are soil physicochemical properties corresponding to the data sampling area in the step (1);
outputting data as the corrosion rate of the grounding conductor corresponding to the data sampling area;
(2-2) fitting the input and output data of the step (2-1) through metric learning and contrast learning.
Further, in the step (2-1), the corrosion rate of the grounding conductor is obtained by intercepting a part of the grounding conductor corresponding to the corroded branch at a corrosion sample point of the grounding grid in the data sampling area as a sample, and calculating the corrosion rate of the corresponding grounding conductor by using a weight loss method.
Further, in the step (2-1), the soil physical and chemical properties comprise soil resistivity, water content, porosity and SO 4 2- And Cl - The content of (A);
the method for obtaining the soil resistivity comprises the following steps: in the data sampling region, 4 underground metal probes are vertically and equidistantly embedded, the distance between the probes is a, and the embedding depth of the metal probes is not more than 5% of a;
the calculation formula of the soil resistivity is as follows:
ρ=2πaR (1);
in the formula, rho is the resistivity of the soil, a is the distance between two adjacent metal probes, and R is the reading of a grounding resistance measuring instrument.
Further, the step (2-2) includes the steps of,
(2-2-1) determining a virtual metric index α through metric learning;
(2-2-2) training the virtual metric alpha, performing self-supervision contrast learning on a fitting error of the virtual metric alpha through contrast learning, and optimizing the virtual metric alpha according to a contrast learning algorithm;
and (3) if the result of the step (2-2-2) is not converged, returning to the step (2-2-1), and re-determining the value of the virtual metric index alpha until the result is converged.
Further, in the step (2-2-1), the method for determining the virtual metric index α comprises:
the loss function for the neural network is defined as follows:
wherein I represents a training set; its K queries are R = { i = } k ,j k ,r k K =1,. K; wherein i k Virtual metric index j for a sample in the kth query k A metric generated for another sample, and r k E { +1, -1,0} is i k And j k Comparison of the actual corrosion rates between the two points, small, large and equal are denoted by +1, -1 and 0, respectively, psi k (I,i k ,j k R, z) is the penalty value for the kth query, expressed as:
z is a predicted value, z ik And z jk Is at point i k And j k A predicted value of time; the resulting z is α.
Further, in the step (2-2-2), the process of training the virtual metric index α is as follows: and training the sample set through a multilayer neural network, and determining a virtual metric index a through a loss function on the basis.
Further, in the step (2-2-2), the process of optimizing the virtual metric index α according to the comparative learning algorithm is as follows:
in contrast learning, the data itself provides the supervision for the learning algorithm, and for the virtual metric index α, the purpose of the contrast method is to learn the encoder f, and the format is described in the following text:
score(f(α),f(α + ))>>score(f(α),f(α - )) (4);
wherein alpha is + Is a data point similar or equal to α, called a positive sample; α -is a different data point from α, called the negative sample; the score function is used to measure the similarity between two features and is expressed as:
score(f(a),f(a + ))=f(a) T f(a + ) (5);
as the sample input, α is called the anchor point, a softmax classifier is constructed to correctly classify the positive and negative sample pairs, this classifier encourages f to make the positive sample pairs similar, the negative sample pairs differenced:
further, if the result of the step (2-2-2) is not converged, returning to the step (2-2-1) to re-determine the value of the virtual metric index alpha;
after the value of the virtual measurement index alpha is determined, predicting the corrosion rate Y of the unknown sample;
Y=a1×fushi1+a2×fushi2+…an×fushin (8);
where Y is the combined output, a1, a2, \ 8230, an is the coefficient to be fitted, and fushi1, fushi2, \ 8230, fushin is the corrosion rate of the ground conductor. n is the total number of data samples.
In the process of a1, a2, \8230, an fitting, on the basis of a multilayer neural network, an input initial solution stage also uses SE _ Block, three layer blocks at the bottom layer share the same parameters, then the importance of characteristic overall judgment proposed for adjacent samples is judged through a global compression-expansion module Dul _ Block, and finally coefficients of the adjacent samples are output through a full connection layer so as to predict the corrosion rate of unknown samples.
Further, in the step (3), a Generalized Regression Neural Network (GRNN) and a BP neural network are adopted to train, fit and predict the data sampling points, and the obtained result is compared with the result of the prediction model in the step (2).
The invention has the following positive effects:
1. the invention combines the comparison learning (CL-ML) and the measurement learning, takes the sampled data sampling points as anchor points, and obviously reduces the pressure and the complexity of a fitting function by fully mining the intrinsic correlation of the data sampling points.
2. The prediction accuracy of the model is far higher than that of a Generalized Regression Neural Network (GRNN) and a BP neural network.
Drawings
FIG. 1 is a diagram of a neural network during training of a virtual metric α;
FIG. 2 is a diagram of a neural network used in the present invention to predict the erosion rate Y of an unknown sample.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The invention provides a grounding grid trenchless corrosion prediction model based on comparison learning and metric learning, which comprises the following steps,
(1) Selecting a data sampling area for a prediction model and data sampling points thereof, and establishing a sampling point sample library;
(2) Establishing a neural network by combining contrast learning and metric learning to form a prediction model;
(3) And (3) verifying the prediction model formed in the step (2).
After the grounding grid is connected with soil, corrosion can occur along with the prolonging of the service time, in the step (1), 2-4 corrosion branches in the grounding grid are selected as a data sampling area in the data sampling area, and the area where the corrosion branches are located is used as the data sampling area; when selecting a corroded branch, it is preferred to select a severely corroded branch.
And the data sampling points are grounding grid corrosion sample points in the data sampling area.
The step (2) comprises the following steps of,
(2-1) determining input data and output data:
inputting data, namely the physicochemical property of soil corresponding to the data sampling area in the step (1);
outputting data as the corrosion rate of the grounding conductor corresponding to the data sampling area;
(2-2) fitting the input and output data of the step (2-1) through metric learning and contrast learning.
In the step (2-1), the corrosion rate of the grounding conductor is that a part of the grounding conductor corresponding to the corrosion branch is intercepted from the corrosion sample point of the grounding grid in the data sampling area and is used as a sample, and the corrosion rate of the corresponding grounding conductor is calculated by using a conventional weight loss method.
In the step (2-1), the soil physical and chemical properties comprise soil resistivity, water content, porosity and SO 4 2- And Cl - The content of (A);
the method for obtaining the soil resistivity comprises the following steps: in the data sampling region, 4 underground metal probes are vertically and equidistantly embedded, the distance between the probes is a, and the embedding depth of the metal probes is not more than 5% of a;
the calculation formula of the soil resistivity is as follows:
ρ=2πaR (1);
where ρ is the soil resistivity, a is the distance between two adjacent metal probes, and R is the ground resistance meter reading.
Water content, porosity, SO 4 2- And Cl - The content of (b) can be obtained by a conventional measurement method in the prior art.
Because the corrosion of the grounding net material in the soil is influenced by various parameters, the invention selects the resistivity, the water content, the porosity and the SO of the soil 4 2- And Cl - Content of (a) these soil physicochemical properties. However, the physical dimensions of the above parameters are very different, and the corrosion rate is not good enough to be directly fitted by the parameters. In particular, corrosion is a long-term, complex, time-integrated, nonlinear electrochemical process, and the listed parameters are clearly found in research studies, so that it is necessary to make appropriate dimensionless measures of the physical parameters. This is achieved by the step (2-2) fitting the input and output data of the step (2-1) through metric learning and contrast learning.
The step (2-2) includes the steps of,
(2-2-1) determining a virtual metric index α through metric learning;
(2-2-2) training the virtual metric index alpha, performing self-supervision contrast learning on a fitting error of the virtual metric index alpha through contrast learning, and optimizing the virtual metric index alpha according to a contrast learning algorithm;
and (4) if the result of the step (2-2-2) is not converged, returning to the step (2-2-1) to re-determine the value of the virtual metric index alpha until the result is converged.
In mathematics, a metric (or distance function) is a function that defines the distance between elements in a set. And the metric learning is to learn a distance function for measuring similarity, namely similar objects are close to each other and dissimilar objects are far away from each other. The basic steps of Metric Learning (ML) are: a, calculating shallow penetration distance measurement; b. treating each sample as an anchor point; c. root of herbaceous plantSelecting a part of the same classes as positive samples according to the distance, and selecting another part of the same classes as negative samples to form a subset; d. the inclusion of substantially the entire mini-batch (N samples) in each of either a large subset is simply weighted differently, or N smaller data pairs. Based on metric learning, each data sampling point is used as an anchor point, and a virtual metric index alpha is learned and trained; the training method comprises the steps that a sample point library comprises m data sampling points, namely training samples, n training samples are extracted from m training samples to formFor example, 5 training "sample pairs" are selected from 60 training "sample pairs" to generate C (60,5) =5461512 samples.
In the step (2-2-1), the method for determining the virtual metric index α comprises the following steps:
the loss function for the neural network is defined as follows:
wherein I represents a training set; its K queries are R = { i = { i = k ,j k ,r k K = 1.; wherein i k Virtual metric index j for a sample in the kth query k A metric generated for another sample, and r k E { +1, -1,0} is i k And j k Comparison of the actual corrosion rates between the two points, small, large and equal are denoted by +1, -1 and 0, respectively, psi k (I,i k ,j k R, z) is the penalty value for the kth query, expressed as:
z is a predicted value, z ik And z jk Is at point i k And j k A predicted value of time; the resulting z is α.
It means that the corresponding reward points can only be obtained if the virtual metric α is predicted at the same time. By the training, when a similar new sample is encountered, the difference between the two anchor points can be judged by comparing the m groups of anchor points.
In the step (2-2-2), the process of training the virtual metric index α is as follows: fig. 1 shows a neural network used in a training process, wherein a sample set is trained by the multi-layer neural network of fig. 1, and a virtual metric index a is determined by a loss function on the basis of the training.
And then, self-supervision optimization of the difference between anchor points is realized through comparison learning. In contrast learning, the data itself will provide supervision for the learning algorithm. Therefore, in the step (2-2-2), the virtual metric index α is optimized according to a contrast learning algorithm, and the process is as follows:
in contrast learning, the data itself provides the supervision for the learning algorithm, and for the virtual metric index α, the purpose of the contrast method is to learn the encoder f, and the format is described in the following text:
score(f(α),f(α + ))>>score(f(α),f(α - )) (4);
wherein alpha is + Is a data point similar or equal to α, called a positive sample; alpha is alpha - Is a data point different from α, called the negative sample; the score function is used to measure the similarity between two features and is expressed as:
score(f(a),f(a + ))=f(a) T f(a + ) (5);
as the sample input, α is called the anchor point, a softmax classifier is constructed to correctly classify the positive and negative sample pairs, this classifier encourages f to make the positive sample pairs similar, the negative sample pairs differenced:
the score function described above is indeed a cross-entropy penalty common to N-way softmax classifiers, commonly referred to in the prior art literature as InfonCE penalty. Infonce also has a relationship with mutual information, minimizing the Infonce loss allows f (α)) And f (alpha) + ) The lower bound of mutual information between them is maximized. Alpha as a sample input may also be referred to as an anchor point. To optimize this property, the present invention constructs a softmax classifier to correctly classify pairs of positive and negative examples. This classifier encourages f to make positive pairs similar and negative pairs differentiated.
If the result of the step (2-2-2) is not converged, returning to the step (2-2-1), and re-determining the value of the virtual metric index alpha;
after the value of the virtual measurement index alpha is determined, predicting the corrosion rate Y of an unknown sample;
using two or more anchor points in close proximity, the invention adopts k-proximity method to carry out fitting, and uses the neural network as an improved neural network graph, namely the neural network shown in figure 2, and the output result is the coefficient of the corrosion rate of the anchor points participating in fitting, namely
Y=a1×fushi1+a2×fushi2+…an×fushin (8);
Wherein Y is the combined output result, a1, a2, \ 8230;, a n Is the coefficient that needs to be fitted and fusi 1, fusi 2, \ 8230, fusin is the corrosion rate of the ground conductor. n is the total number of data samples.
a1、a2、…、a n In the fitting process, the neural network shown in the attached figure 2 is utilized, namely on the basis of a multi-layer neural network, the SE _ Block is used in the input initial solution stage, the three layer blocks at the bottom layer share the same parameters, then the importance of the overall judgment of the characteristics proposed for the adjacent samples is judged through the global compression-expansion module Dul _ Block, and finally the coefficients of the adjacent samples are output through the full connection layer so as to predict the corrosion rate of the unknown samples.
Taking 2-adjacent prediction with k =2 as an example, the input initial solution stage also uses SE _ Block, and three layer blocks at the bottom layer share the same parameters, then the importance of the overall judgment of the characteristics proposed for the adjacent samples is judged through a global compression-expansion module (Dul _ Block), and finally the coefficients of the adjacent samples are output through a full connection layer, so as to predict the corrosion rate of the unknown samples, and the loss uses L2 loss.
In the step (3), a Generalized Regression Neural Network (GRNN) and a BP neural network are adopted to train, fit and predict the data sampling points, and the obtained result is compared with the result of the prediction model in the step (2). The different algorithms have different convergence rates, and the modeling is considered to be successful when the error convergence is stable based on the fitting of the sample point algorithm (the convergence error is the error of the sample point and is not the error of the predicted point). But whether the original algorithm fits well depends on whether the prediction capability is good.
In the step (3), a Generalized Regression Neural Network (GRNN) and a BP neural network are adopted to train, fit and predict the data sampling points, and the obtained result is compared with the result of the prediction model in the step (2).
In the embodiment, observation data of 25 substations from a rocky village, a reservation and the like are selected as samples. The corrosion of the grounding grid in the soil is influenced by various factors, and 5 representative soil physicochemical properties are selected as influencing factors including soil resistivity, water content, porosity and SO 4 2- And Cl - The content of (a).
For comparison with the method of the present invention (CL-ML), the Generalized Regression Neural Network (GRNN) and the BP neural network were used together to train, fit and predict the samples. The three models are applied to predict the test sample, and the related test results are shown in table 1.
TABLE 1 comparison of actual values with predicted values for 3 models
As can be seen from Table 1, the prediction accuracy of the model is much higher than that of the Generalized Regression Neural Network (GRNN) and the BP neural network.
Since corrosion is a long-term and gradual process, a month is usually selected as a time interval when dynamically monitoring an actual power station grounding grid, which results in that the number of corrosion data samples is usually less than 100, which is a typical small sample case. And under the condition that the sample condition is too few, the problem of overfitting is easily caused by directly adopting a neural network or fitting method. Even because there are too few samples, there is a great uncertainty in the analysis of the overfitting. In addition, although the corrosion rate is related to various indexes in soil, the corrosion rate is not good enough to be fitted directly according to the parameters with large differences of the physical dimensions. In particular, corrosion is a long-term, complex, time-integrated, nonlinear electrochemical process, and the listed parameters are also clearly more important parameters found in research studies, and the trends in corrosion rates according to these parameters have natural contrast and correlation, so the samples are also clearly of value beyond mere fitting.
The invention provides a CL-ML method by combining contrast learning (CL-ML) and metric learning. The method takes the sampled precious samples as anchor points, and the pressure and complexity of the fitting function are obviously reduced by fully mining the inherent correlation of the precious samples.
The invention provides a trenchless grounding grid corrosion prediction method combining comparative learning and metric learning, aiming at the problems of small grounding grid corrosion samples and strong nonlinearity. The method is based on the ideas of contrast Learning (contrast Learning) and Metric Learning (Metric Learning), samples which are sampled are used as anchor points, the relation between the corrosion rate of new data and the corrosion rate of the existing samples is predicted, the pressure and the complexity of a fitting function are obviously reduced, and the intrinsic correlation of data sampling points is fully mined.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (1)
1. The utility model provides a ground net does not excavate corruption prediction model based on contrast study and measurement study which characterized in that: selecting a data sampling area for a prediction model and a data sampling point thereof, and establishing a sampling point sample library; (2) Establishing a neural network by combining contrast learning and metric learning to form a prediction model; (3) verifying the prediction model formed in the step (2);
selecting 2-4 corrosion branches in a grounding grid in the data sampling area in the step (1), and taking the area where the corrosion branches are located as the data sampling area; the data sampling points are grounding grid corrosion sample points in the data sampling area;
the step (2) comprises the following steps of (2-1) determining input data and output data: inputting data, namely the physicochemical property of soil corresponding to the data sampling area in the step (1); outputting data as the corrosion rate of the grounding conductor corresponding to the data sampling area; (2-2) fitting the input and output data of the step (2-1) through metric learning and contrast learning;
in the step (2-1), the corrosion rate of the grounding conductor is that a part of the grounding conductor corresponding to the corrosion branch is intercepted at a corrosion sample point of the grounding grid of the data sampling area to be used as a sample, and the corrosion rate of the corresponding grounding conductor is calculated by utilizing a weight loss method;
in the step (2-1), the soil physical and chemical properties comprise soil resistivity, water content, porosity, S04 & lt- & gt and Cl & lt- & gt content; the method for obtaining the soil resistivity comprises the following steps: in the data sampling region, 4 underground metal probes are vertically and equidistantly embedded, the distance between the probes is a, and the embedding depth of the metal probes is not more than 5% of a; the calculation formula of the soil resistivity is as follows: ρ =2 π aR (1); in the formula, rho is the resistivity of the soil, a is the distance between two adjacent metal probes, and R is the reading of a grounding resistance measuring instrument;
the step (2-2) comprises the steps of (2-2-1) determining a virtual metric index alpha through metric learning; (2-2-2) training the virtual metric alpha, performing self-supervision contrast learning on a fitting error of the virtual metric alpha through contrast learning, and optimizing the virtual metric alpha according to a contrast learning algorithm; if the result of the step (2-2-2) is not converged, returning to the step (2-2-1), and re-determining the value of the virtual metric index alpha until the result is converged;
in the step (2-2-1), the method for determining the virtual metric index alpha comprises the following steps:
the loss function defining the neural network is as follows:
wherein I represents a training set; its K queries are R = { i = } k ,j k ,r k K =1,. K; wherein i k Virtual metric for a sample in the kth query, j k A metric generated for another sample, and r k E { +1, -1,0} is i k And j k Comparison of the actual corrosion rates between the two points, small, large and equal are denoted by +1, -1 and 0, respectively, psi k (I,i k ,j k R, z) is the penalty value for the kth query, expressed as:
z is a predicted value, z ik And z jk Is at point i k And j k A predicted value of time; the obtained z is alpha;
in the step (2-2-2), the process of training the virtual metric index α is as follows: training the sample set through a multilayer neural network, and determining a virtual measurement index a through a loss function on the basis;
in the step (22-2), the process of optimizing the virtual metric index α according to the comparative learning algorithm is as follows:
in contrast learning, the data itself provides the supervision for the learning algorithm, and for the virtual metric index α, the purpose of the contrast method is to learn the encoder f, and the format is described in the following text:
score(f(α),f(α + ))>>score(f(α),f(α - )) (4);
wherein alpha is + Is a data point similar or equal to alphaReferred to as positive samples; alpha is alpha - Is a data point different from α, called the negative sample; the score function is used to measure the similarity between two features and is expressed as:
score(f(a),f(a + ))=f(a) T f(a + ) (5);
as the sample input, α is called the anchor point, a soffmax classifier is constructed to correctly classify the positive and negative sample pairs, this classifier encourages f to make the positive sample pairs similar, the negative sample pairs differencing:
if the result of the step (2-2-2) is not converged, returning to the step (2-2-1) to re-determine the value of the virtual metric index alpha;
after the value of the virtual measurement index alpha is determined, predicting the corrosion rate Y of an unknown sample;
Y=a1×fushi1+a2×fushi2+...an×fushin (7);
wherein Y is the combined output, a1, a2, a, an are coefficients to be fitted, and fusi 1, fusi 2, a, fusin are corrosion rates of the ground conductor;
in the a1, a2, an and an fitting process, on the basis of a multilayer neural network, an input initial solution stage also uses SE _ Block, three layer blocks at the bottom layer share the same parameters, then the importance of characteristic planning proposed for adjacent samples is judged through a global compression-expansion module Dul _ Block, and finally coefficients of the adjacent samples are output through a full connection layer so as to predict the corrosion rate of unknown samples.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011421900.5A CN112598163B (en) | 2020-12-08 | 2020-12-08 | Grounding grid trenchless corrosion prediction model based on comparison learning and measurement learning |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011421900.5A CN112598163B (en) | 2020-12-08 | 2020-12-08 | Grounding grid trenchless corrosion prediction model based on comparison learning and measurement learning |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112598163A CN112598163A (en) | 2021-04-02 |
CN112598163B true CN112598163B (en) | 2022-11-22 |
Family
ID=75188765
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011421900.5A Active CN112598163B (en) | 2020-12-08 | 2020-12-08 | Grounding grid trenchless corrosion prediction model based on comparison learning and measurement learning |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112598163B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115860009B (en) * | 2023-02-27 | 2023-05-16 | 佛山科学技术学院 | Sentence embedding method and system for contrast learning by introducing auxiliary sample |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103136539A (en) * | 2013-03-08 | 2013-06-05 | 西安科技大学 | Grounding grid corrosion rate level prediction method |
CN104299032A (en) * | 2014-08-25 | 2015-01-21 | 国家电网公司 | Method for predicating corrosion rate of soil of transformer substation grounding grid |
CN105719025A (en) * | 2016-01-26 | 2016-06-29 | 华北电力大学(保定) | Prediction method for corrosion rate of Q235 galvanized steel grounding net of transformer station |
WO2018137357A1 (en) * | 2017-01-24 | 2018-08-02 | 北京大学 | Target detection performance optimization method |
CN109885482A (en) * | 2019-01-16 | 2019-06-14 | 重庆大学 | Software Defects Predict Methods based on the study of few sample data |
CN111610406A (en) * | 2020-04-24 | 2020-09-01 | 国网河北省电力有限公司电力科学研究院 | Grounding grid corrosion prediction method based on deep learning |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109284876A (en) * | 2018-11-19 | 2019-01-29 | 福州大学 | Based on PCA-RBF Buried Pipeline rate prediction method |
CN110516640B (en) * | 2019-08-30 | 2022-09-30 | 华侨大学 | Vehicle re-identification method based on feature pyramid joint representation |
-
2020
- 2020-12-08 CN CN202011421900.5A patent/CN112598163B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103136539A (en) * | 2013-03-08 | 2013-06-05 | 西安科技大学 | Grounding grid corrosion rate level prediction method |
CN104299032A (en) * | 2014-08-25 | 2015-01-21 | 国家电网公司 | Method for predicating corrosion rate of soil of transformer substation grounding grid |
CN105719025A (en) * | 2016-01-26 | 2016-06-29 | 华北电力大学(保定) | Prediction method for corrosion rate of Q235 galvanized steel grounding net of transformer station |
WO2018137357A1 (en) * | 2017-01-24 | 2018-08-02 | 北京大学 | Target detection performance optimization method |
CN109885482A (en) * | 2019-01-16 | 2019-06-14 | 重庆大学 | Software Defects Predict Methods based on the study of few sample data |
CN111610406A (en) * | 2020-04-24 | 2020-09-01 | 国网河北省电力有限公司电力科学研究院 | Grounding grid corrosion prediction method based on deep learning |
Non-Patent Citations (3)
Title |
---|
Supporting analysis of dimensionality reduction results with contrastive;Takanor i Fujiwar;《IEEE Transactions on Visualization and Computer Graphics》;20190819;第1-12页 * |
When Deep Learning Meets Metric Learning:Remote Sensing Image Scene Classification via Learning Discriminative CNNs;Gong Chen等;《IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING》;20181231;第1-11页 * |
接地网腐蚀速率预测方法研究;陈超;《万方数据》;20201113;第2-4章 * |
Also Published As
Publication number | Publication date |
---|---|
CN112598163A (en) | 2021-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110263866B (en) | Power consumer load interval prediction method based on deep learning | |
CN110082640B (en) | Distribution network single-phase earth fault identification method based on long-time memory network | |
CN107991873B (en) | Subway stray current leakage grade prediction method based on convolutional neural network and BP neural network | |
CN108133225A (en) | A kind of icing flashover fault early warning method based on support vector machines | |
CN103245861A (en) | Transformer fault diagnosis method based on Bayesian network | |
CN106529124A (en) | A transformer insulation state assessment method based on principal component analysis and support vector machines | |
Mandal et al. | Quantification of uncertainty in the assessment of future streamflow under changing climate conditions | |
CN114167180B (en) | Oil-filled electrical equipment fault diagnosis method based on graph attention neural network | |
CN112598163B (en) | Grounding grid trenchless corrosion prediction model based on comparison learning and measurement learning | |
CN113792754A (en) | Method for processing DGA (differential global alignment) online monitoring data of converter transformer by removing different elements and then repairing | |
Cohen et al. | Dynamic adaptation of water resources systems under uncertainty by learning policy structure and indicators | |
Dong | Combining unsupervised and supervised learning for asset class failure prediction in power systems | |
Jahangir et al. | A quantile-based encoder-decoder framework for multi-step ahead runoff forecasting | |
Samiran Das et al. | Assessment of uncertainty in flood flows under climate change impacts in the Upper Thames River basin, Canada. | |
Qie et al. | Comparison of machine learning models performance on simulating reservoir outflow: A case study of two reservoirs in Illinois, USA | |
CN105069027A (en) | Method used for calculating actual tower material strength of power transmission pole tower and capable of simplifying indexes | |
CN114818817A (en) | Weak fault recognition system and method for capacitive voltage transformer | |
CN105064993A (en) | Vertical well water-content measurement method based on conductivity probe array information fusion | |
CN112801426A (en) | Industrial process fault fusion prediction method based on correlation parameter mining | |
Li et al. | Quantifying uncertainty in extreme values of design parameters with resampling techniques | |
CN117171128A (en) | Aquatic organism protection threshold identification method based on four-water coupling model | |
CN115017828A (en) | Power cable fault identification method and system based on bidirectional long-short-time memory network | |
CN113887750A (en) | Switch cabinet state evaluation method based on improved long-term and short-term memory network | |
CN111008779A (en) | Transformer health state assessment method based on multi-factor assessment model | |
Li et al. | Prediction Algorithm of Wind Waterlogging Disaster in Distribution Network Based on Multi‐Source Data Fusion |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |