Parameter sampling method and device of lightning arrester and electronic equipment
Through non-uniform data sampling and fish school optimization algorithm, the problems of large information uncertainty and low fitting accuracy in the lightning arrester sampling method are solved, and the determination of lightning arrester parameters and the fitting accuracy of volt-ampere characteristic curves are improved.
Patent Information
- Application Number
- CN202410963445.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-07-18
AI Technical Summary
The sampling method of existing lightning arresters leads to high information uncertainty, low fitting accuracy of voltammetric characteristic parameters, and increasing the number of sampling points will lead to an increase in sampling time and the operation of the fitting algorithm, affecting efficiency.
The non-uniform data sampling strategy and fish school optimization algorithm are used to determine the target sampling coefficient and sequence through initial sampling and information entropy optimization, and the sample determination and fitting accuracy are improved.
The determination of the lightning arrester parameter sampling samples is improved, the fitting accuracy of the volt-ampere characteristic curve is optimized, and the problems of large information uncertainty and low efficiency are solved.
Smart Images

Figure CN118914652A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of nonlinear characteristic parameter identification of lightning arresters, and in particular to a parameter sampling method, device and electronic equipment for lightning arresters. Background Art
[0002] Metal Oxide Surge Arrester (MOA) is a device used to protect power equipment. Due to the nonlinear characteristics of MOA resistance, the current flowing through the arrester is extremely small under normal voltage. Under overvoltage, MOA resistance decreases rapidly, and energy is released quickly, which plays a role in protecting power equipment. MOA has a simple structure, small size, and strong current-carrying capacity, and has been widely used in power systems.
[0003] When the arrester is operating normally, the nonlinearity of its volt-ampere characteristic curve is very large due to the excellent nonlinear characteristics of the metal oxide valve plate. As the operating years increase, the arrester will inevitably receive a large voltage shock, causing the Schottky barrier of its metal oxide valve plate to migrate, resulting in a decrease in nonlinearity. This will cause the leakage current of the arrester to increase during operation, and the increased power consumption will accelerate the degradation of the arrester. The traditional arrester power failure test is the arrester DC 1mA test, that is, when the arrester DC is 1mA, its DC voltage value is measured and recorded as U 1mA , and record the leakage current value when the DC voltage is 75% 1mA as I 75%U1mA However, this method is easily affected by the external environment and the degree of contamination on the surface of the arrester.
[0004] In order to eliminate the influence of surface contamination and external environment on the DC 1mA test. In recent years, an expert in the industry has proposed to identify the parameters that characterize the arrester's volt-ampere characteristics through the arrester's DC 1mA test volt-ampere characteristic curve, and judge the degree of arrester degradation based on the parameters. Since the arrester's volt-ampere curve has a large nonlinearity, the arrester leakage current changes little when the terminal voltage is small, and the leakage current changes dramatically as the terminal voltage rises.
[0005] Therefore, if the uniform linear sampling method is used when the number of sampling points is constant, the information uncertainty contained in the final sampling sequence will be huge, so that the fitting accuracy of the volt-ampere characteristic parameters is not high. Although increasing the number of sampling points can reduce information entropy, it will also lead to excessive sample redundancy. On the other hand, increasing the number of sampling points will increase the sampling time and the running amount of the fitting algorithm. Summary of the invention
[0006] The present invention provides a method, device and electronic equipment for sampling parameters of a lightning arrester, so as to improve the certainty of sampling samples of lightning arrester parameters and optimize the fitting accuracy of the volt-ampere characteristic curve of the lightning arrester.
[0007] According to one aspect of the present invention, a parameter sampling method for a lightning arrester is provided, comprising:
[0008] Performing initial sampling on the parameters of the arrester according to the number of sampling points and the sampling value range to obtain an initial sample set, and determining the information entropy of the initial sample set, wherein the parameters of the arrester include a leakage current value;
[0009] When the information entropy is greater than a preset threshold, a sampling coefficient set is initialized, and a fish school optimization algorithm is used to optimize the sampling coefficients in the initialized sampling coefficient set to obtain a target sampling coefficient;
[0010] A target sampling sequence is determined based on the target sampling coefficient, and the parameters of the arrester are sampled based on the target sampling sequence to obtain a target sample set corresponding to the arrester parameters.
[0011] According to another aspect of the present invention, a parameter sampling device for a lightning arrester is provided, comprising:
[0012] An initial sample sampling module performs initial sampling on the parameters of the arrester according to the number of sampling points and the sampling value range to obtain an initial sample set, and determines the information entropy of the initial sample set, wherein the parameters of the arrester include a leakage current value;
[0013] A target coefficient determination module is used to initialize a sampling coefficient set when the information entropy is greater than a preset threshold, and optimize the sampling coefficients in the initialized sampling coefficient set using a fish school optimization algorithm to obtain a target sampling coefficient;
[0014] The target sample acquisition module is used to determine a target sampling sequence based on the target sampling coefficient, sample the parameters of the arrester based on the target sampling sequence, and obtain a target sample set corresponding to the arrester parameters.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] at least one processor; and
[0017] a memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the parameter sampling method for the lightning arrester described in any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the parameter sampling method for the lightning arrester described in any embodiment of the present invention when executed by a processor.
[0020] The technical solution of the embodiment of the present invention is to obtain an initial sample set by initially sampling the parameters of the arrester according to the number of sampling points and the sampling value range, and determine the information entropy of the initial sample set, wherein the parameters of the arrester include the leakage current value; when the information entropy is greater than the preset threshold, initialize the sampling coefficient set, and use the fish school optimization algorithm to optimize the sampling coefficients in the initialized sampling coefficient set to obtain the target sampling coefficient; determine the target sampling sequence based on the target sampling coefficient, sample the parameters of the arrester based on the target sampling sequence, and obtain the target sample set corresponding to the arrester parameters. The technical solution of the present invention solves the problem that the existing sampling method will cause the information uncertainty contained in the final sampling sequence to be huge, so that the fitting accuracy of the volt-ampere characteristic parameters is not high. Alternatively, increasing the number of sampling points will increase the sampling time and increase the running amount of the fitting algorithm. The technical problem of the adverse effect is that the sample certainty is improved and the fitting accuracy is optimized through the non-uniform data sampling strategy and the fish school optimization algorithm.
[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 A flow chart of a parameter sampling method for a lightning arrester provided in Embodiment 1 of the present invention;
[0024] Figure 2 A frequency diagram of the value distribution of the sampling point current provided by an embodiment of the present invention;
[0025] Figure 3 A flow chart of a parameter sampling method for a lightning arrester provided in Embodiment 2 of the present invention;
[0026] Figure 4 This is a flowchart of an algorithm provided in Embodiment 2 of the present invention;
[0027] Figure 5A schematic diagram of the structure of a parameter sampling device for a lightning arrester provided in Embodiment 3 of the present invention;
[0028] Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] In order to further clarify the technical effects of the present invention, the relevant technologies are described before introducing specific embodiments:
[0032] 1. Arrester DC 1mA test volt-ampere characteristic model
[0033] The expression for the DC leakage of the arrester is shown in formula (1):
[0034]
[0035] Among them, a and k represent the nonlinear parameters of the valve plate and the constant coefficient of the leakage current flowing through the valve plate respectively. Due to the excellent nonlinear characteristics of the metal oxide valve plate, the nonlinear coefficient a of the valve plate in good condition is relatively large, generally not less than 15, and can reach more than 30 for good performance.
[0036] 2. Definition of Information Entropy
[0037] Information entropy is a commonly used indicator to measure sample uncertainty. The smaller the information entropy value, the higher the certainty of the sample, that is, the clearer the information it contains, the lower the sample redundancy, and the more effective information the sample set contains. Information entropy is defined as:
[0038]
[0039] Where x is the sample set, xi is the sample value, and p(xi) is the probability of the sample taking xi.
[0040] 3. Uniform sampling of linear signals
[0041] Assume that the volt-ampere characteristic of a material can be expressed as a linear function of I = U × K, the value range of I is [0,1000], and the sampling accuracy is 1. If the principle of uniform sampling is adopted and the number of sampling points is set to 1000, the sampling points can be set to So the obtained sampling sequence is That is, each sampling point has a unique corresponding current I value. Then the value of p(xi) is always 1, so the information entropy H(X) = 0; where p(xi) represents the probability that the current I at the i-th sampling point takes the value xi, and H(X) represents the certainty of this sampling sequence.
[0042] 4. Uniform sampling of nonlinear signals
[0043] Assume that the volt-ampere characteristic of a material can be expressed as I = KU 2 The quadratic function of I is still in the range of [0,1000], and the sampling precision is 1. If the principle of uniform sampling is adopted and the number of sampling points is set to 1000, the sampling points can be set to So the obtained sampling sequence is In the statistical sampling sequence, the frequency of occurrence of values of I within its value range is as follows: Figure 2 shown.
[0044] As can be seen from the figure, in the sampling results, the frequency distribution of I values is uneven (compared to the example of uniform sampling of linear signals, each sampling point has a unique corresponding I value). That is, in the uniform sampling of nonlinear signals, there are several sampling points corresponding to the same I value. The sampling results are calculated using formula (2) to obtain H(X) = 61.92.
[0045] 5. Uneven sampling of nonlinear signals
[0046] Assume that the volt-ampere characteristic of a material can be expressed as I = KU 2The quadratic function of I is still in the range of [0,1000], and the sampling precision is 1. If the principle of uneven sampling is adopted, the number of sampling points is set to 1000, and the sampling points are set to u represents the uth sampling point. h is defined as the non-uniform sampling coefficient, and when h is 1, it is uniform sampling. When h is 1, 1.5, 1.7, 1.9, 2, 2.2, and 2.5, the information entropy H(X) of the sampling result is calculated, as shown in Table 1 below.
[0047] Table 1
[0048] h 1 1.5 1.7 1.9 2 2.2 2.5 H(X) 61.92 41.20 18 9.5 0 17.5 41
[0049] According to the table above, the information entropy H(X) is related to the value of h. The closer h is to the power of the volt-ampere characteristic curve, the lower the information entropy is, which means that the sampling sequence can contain the most effective information. Therefore, in order to make the sampling sequence contain as much effective information as possible, the information entropy value of the sampling sequence must be reduced.
[0050] Embodiment 1
[0051] Figure 1 This is a flow chart of a parameter sampling method for a lightning arrester provided in the first embodiment of the present invention. This embodiment can be applied to sampling the volt-ampere characteristic curve of a metal oxide lightning arrester to determine the degradation maturity of the metal oxide lightning arrester. The method can be executed by a parameter sampling device for the lightning arrester. The device can be implemented in the form of hardware and / or software, and the device can be configured in an electronic device. Figure 1 As shown, the method includes:
[0052] S110, performing initial sampling on the parameters of the arrester according to the number of sampling points and the sampling value range to obtain an initial sample set, and determining the information entropy of the initial sample set.
[0053] The number of sampling points may be the total number of sampling points set when sampling the parameters of the arrester; the sampling value range may be the value range of the sampling points when sampling the parameters; and the parameters of the arrester include the leakage current value.
[0054] Specifically, the number of sampling points is set according to the sampling performance and requirements of the device. The number of sampling points can affect the final fitting accuracy. In theory, the more sampling points the better, but at the same time, the accuracy and storage performance of the instrument also limit the number of sampling points. Suppose the set number of sampling points is N.
[0055] In an embodiment of the present invention, the parameters of the arrester are initially sampled according to the number of sampling points and the sampling value range to obtain an initial sample set, including:
[0056] Within the sampling value range, at least two sampling points to be used are calculated by a sampling point calculation function according to the number of sampling points and the historical sampling coefficient; voltage is applied to the lightning arrester according to the at least two sampling points to be used to obtain the leakage current value to be used corresponding to each sampling point to be used; and the initial sample set is formed based on at least two leakage current values to be used.
[0057] Among them, the historical sampling coefficient can be the sampling coefficient used in the historical sampling process, that is, the uneven sampling coefficient h mentioned above. The sampling coefficient can be understood as the coefficient that affects the distribution of sampling points. The distribution of sampling points corresponding to different sampling coefficients is different; the sampling point calculation function can be a function specifically used to calculate the sampling point; the sampling point to be used can be the sampling point calculated by the number of sampling points; the leakage current to be used can be the arrester leakage current value obtained by sampling the sampling point to be used.
[0058] The sampling point to be used corresponds to the voltage value applied to the arrester. Preferably, the sampling point is the voltage value U applied to the arrester and U 1mA The ratio of , accordingly, the leakage current value to be used is the leakage current value corresponding to the ratio.
[0059] Specifically, the historical sampling coefficient refers to the historical best sampling coefficient of the arrester or the same model. If the arrester is tested for the first time, the value of the sampling coefficient h is randomly set, generally 10-30. The number of sampling points and the historical sampling coefficient can be substituted into the sampling point calculation function to calculate multiple sampling points to be used. For each sampling point to be used, a voltage is applied to the arrester according to the sampling point to be used, and then the corresponding leakage current value is collected. Multiple leakage current values constitute the initial sample set.
[0060] The sampling point calculation function is as follows:
[0061]
[0062] Si is the i-th sampling point. After setting the number of sampling points, the arrester volt-ampere characteristic curve is sampled for the first time. The sampling coefficient h of this sampling can be set to the best historical sampling coefficient of the arrester or the same model. If the arrester is tested for the first time, the value of the sampling coefficient h is randomly set, generally 10 to 30. The sampling sequence X = [(s1, x1), (s2, x2) ..., (si, xi) ... (sN, xN)] is obtained, where si is the sampling point and xi is the sampling value.
[0063] In the embodiment of the present invention, the determining the information entropy of the initial sample set includes: calculating the information entropy of the initial sample set by using an information entropy calculation function, and the information entropy calculation function is as follows:
[0064]
[0065] Among them, x is the initial sample set, xi is the leakage current value to be used, and p(xi) is the probability of obtaining xi.
[0066] It is understandable that after obtaining the initial sample set, in order to determine whether the initial sample set includes more valid information, the information entropy of the initial sample set can be calculated by the information entropy calculation function, and the information entropy obtained can be used to determine whether the initial sample set can be used as a basis for reflecting the basic performance and insulation condition of the arrester and determining the characteristic parameters. For example, the information entropy is less than the preset threshold, and the preset threshold is a small value. This situation represents that the information entropy is small enough, the sample certainty is high, the information contained is clear, the sample redundancy is low, and the sample set contains a lot of valid information. That is, the initial sample set can be used as a basis for reflecting the basic performance and insulation condition of the arrester and determining the characteristic parameters.
[0067] S120. When the information entropy is greater than a preset threshold, initialize a sampling coefficient set, and use a fish swarm optimization algorithm to optimize the sampling coefficients in the initialized sampling coefficient set to obtain a target sampling coefficient.
[0068] Among them, the preset threshold can be a pre-set information entropy threshold used to judge the uncertainty of the initial sample set; the sampling coefficient set refers to a set including at least two sampling coefficients; the target sampling coefficient can be the optimal sampling coefficient determined by the fish school optimization algorithm, and the target sampling coefficient can minimize the information entropy of the sample set.
[0069] Specifically, when the information entropy of the initial sample set is greater than a preset threshold, it indicates that the uncertainty of the initial sample set is high and the priority information included is small. It is necessary to initialize the sampling coefficient set, and then optimize the sampling coefficient set through the fish school optimization algorithm to obtain the optimal target sampling coefficient.
[0070] Initializing the sampling coefficient set means assigning an initial value to each sampling coefficient in the sampling coefficient set, and the initial value can be historical experience data. The sampling coefficient set is the starting point for the subsequent optimization process. The fish school optimization algorithm is an optimization algorithm that simulates the behavior of fish schools. It finds the optimal solution by simulating the foraging, clustering and chasing behaviors of fish schools. The optimization goal is to find the target sampling coefficient so that the information entropy of the sample set is minimized.
[0071] S130. Determine a target sampling sequence based on the target sampling coefficient, sample the parameters of the arrester based on the target sampling sequence, and obtain a target sample set corresponding to the arrester parameters.
[0072] The target sampling sequence refers to a series of sampling points arranged in a specific order.
[0073] Specifically, after the target sampling coefficient is determined, a target sampling sequence may be determined based on the target sampling coefficient, and the parameters of the arrester may be sampled using the sequence to obtain a target sample set corresponding to the arrester parameters.
[0074] It can be understood that the target sampling coefficient is the optimal sampling coefficient, and the information entropy of the target sample set collected by the target sampling sequence is also the smallest, so the target sample set can accurately reflect the performance of the arrester.
[0075] In an embodiment of the present invention, the target sampling sequence is determined based on the target sampling coefficient, and the parameters of the lightning arrester are sampled based on the target sampling sequence to obtain a target sample set corresponding to the parameters of the lightning arrester, including: substituting the target sampling coefficient into a sampling point determination function to obtain at least two target sampling points; based on the at least two target sampling points, the leakage current of the lightning arrester is collected to obtain at least two leakage currents.
[0076] Among them, at least two target sampling points constitute the target sampling sequence; at least two leakage currents constitute the target sample set.
[0077] Specifically, the target sampling coefficient obtained by the optimization algorithm is substituted into the sampling point determination function. The function calculates at least two target sampling points according to the target sampling coefficient, and the calculated target sampling points are arranged in order to form a target sampling sequence.
[0078] Next, the arrester leakage current is sampled according to the sampling points specified in the target sampling sequence. At each target sampling point, the arrester leakage current value is measured and recorded. Through this process, at least two leakage current values can be obtained, which reflect the parameter status of the arrester at different sampling points. Construct a target sample set. Finally, these leakage current values measured at different target sampling points are combined together to form a target sample set corresponding to the arrester parameters.
[0079] The above process determines the sampling sequence by using the target sampling coefficient and accurately samples the parameters of the lightning arrester, and finally obtains a target sample set containing the lightning arrester parameter information, which provides important data support for the performance evaluation, fault diagnosis or parameter optimization of the lightning arrester.
[0080] The technical solution of the embodiment of the present invention performs initial sampling of the parameters of the arrester according to the number of sampling points and the sampling value range to obtain an initial sample set, and determines the information entropy of the initial sample set; when the information entropy is greater than a preset threshold, initializes the sampling coefficient set, and uses the fish school optimization algorithm to optimize the sampling coefficients in the initialized sampling coefficient set to obtain the target sampling coefficient; determines the target sampling sequence based on the target sampling coefficient, samples the parameters of the arrester based on the target sampling sequence, and obtains the target sample set corresponding to the arrester parameters. The technical solution of the present invention solves the problem that the existing sampling method will cause the information uncertainty contained in the final sampling sequence to be huge, so that the fitting accuracy of the volt-ampere characteristic parameters is not high. Alternatively, increasing the number of sampling points will lead to the adverse technical problems of increased sampling time and increased running amount of the fitting algorithm. The non-uniform data sampling strategy and the fish school optimization algorithm are used to improve the certainty of the sample and optimize the fitting accuracy.
[0081] Embodiment 2
[0082] Figure 3 This is a flow chart of a parameter sampling method for a lightning arrester provided in the second embodiment of the present invention. This embodiment further refines the process of optimizing the sampling coefficient by the fish school optimization algorithm based on the above embodiment. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here. Figure 3 As shown, the method includes:
[0083] S210. Perform initial sampling on the parameters of the arrester according to the number of sampling points and the sampling value range to obtain an initial sample set, and determine the information entropy of the initial sample set.
[0084] S220. When the information entropy is greater than a preset threshold, at least two sampling coefficients are initialized according to the number of sampling points and the sampling value range, and the initialized sampling coefficient set is formed based on the at least two sampling coefficients.
[0085] In a preferred embodiment, since the value of the sampling coefficient h in the first sampling, i.e., the initial sampling, is arbitrary, the sampled samples will be unevenly distributed. Therefore, the synthetic minority over-sampling technique (SMOTE) algorithm is used to interpolate and expand the sparsely distributed part of the sample in the sampling sequence, and artificially add new samples.
[0086] Initializing to obtain at least two sampling coefficients may be to define a value set of the sampling coefficient h as X=(h1, h2...hi...hn), where hi represents the position of the fish and is also a variable to be optimized, and the number of fish is selected as n.
[0087] S230, using the initialized sampling coefficient set as a fish school corresponding to the fish school optimization algorithm, and using the sampling coefficients in the initialized sampling coefficient set as individuals in the fish school;
[0088] Specifically, the set X is regarded as a school of fish, and h in the set is regarded as an individual.
[0089] S240, defining the objective function of the fish school optimization algorithm,
[0090] The objective function is composed of a sampling point determination function and an information entropy calculation function, and the sampling point determination function is a function of the sampling coefficient.
[0091] Specifically, the objective function can be defined as Y=H(f(hi)), where Y is the objective function value, the objective function H is the information entropy calculation function, that is, formula (4), and the function f is the function that determines the sampling sequence according to the sampling coefficient hi, that is, the function corresponding to formula (3).
[0092] S250, optimizing the individuals in the fish school by means of a fish school optimization algorithm to minimize the value of the objective function, and taking the individual corresponding to the minimum value of the objective function as the target sampling coefficient.
[0093] It should also be noted that when calculating through the fish school optimization algorithm, the distance between individual fish schools dij = |hi-hj| needs to be set in advance; Visual represents the visual distance of the fish school; step represents the maximum moving distance of the fish school during a single iteration; δ is the crowding factor of the fish school; try-num is the maximum number of repetitions of the fish school in the foraging behavior.
[0094] On the basis of the above technical solution, the individuals in the fish school are optimized by a fish school optimization algorithm to minimize the value of the objective function, and the individual corresponding to the minimum value of the objective function is used as the target sampling coefficient, including: for each individual in the fish school, executing algorithms corresponding to foraging behavior, grouping behavior and tail-chasing behavior to obtain individuals to be used corresponding to each behavior; determining candidate individuals from at least two individuals to be used, and updating each individual in the fish school based on the candidate individuals; repeating the determination and update process of candidate individuals until a preset condition is met, and obtaining a target individual, and using the target individual as the target sampling coefficient.
[0095] Specifically, first, let each individual of the fish school perform foraging behavior, grouping behavior, and tail-chasing behavior separately.
[0096] A. Foraging behavior:
[0097] Foraging behavior simulates the behavior of fish moving purposefully to places where food is more likely to appear when foraging. In this case, it specifically refers to the h value corresponding to a smaller objective function value Y. It can be expressed by the following formula:
[0098]
[0099] Among them, rand is a random number between 0 and 1, hi represents the action of the fish with serial number i moving to the fish with serial number j in a better position. The objective function value Y is calculated once for each move. If the Y value still does not decrease after try-num times, then move one step randomly, which is expressed as the following formula:
[0100] h next =h i +r*visual (6)
[0102] The value range of r is [-1, 1];
[0103] B. Grouping behavior:
[0104] The schooling behavior simulates the fish avoiding danger or increasing the chance of obtaining food by staying in a group. Because the fish school has no leader, the behavior of individual fish in the school has the following two rules: 1. The individual fish in the school will search for the center of the school in the field of vision and move towards it; 2. If the individual fish in the school finds that the school in the field of vision is too crowded, it will not move towards it.
[0105] In specific operation, define the current fish school individual as hi; its visual field as visual; the number of fish schools in the visual field as nf; the center position of the fish school as hc, the corresponding objective function value as Yc; δ is the set crowding factor. Then first make the following judgment, if Y i >δn f Y c If true, the individual fish in position hi performs grouping behavior, otherwise it keeps the same position. Grouping behavior is defined as:
[0106]
[0107] C. Rear-end collision:
[0108] The tail-chasing behavior simulates the tendency of fish to follow fish that have already obtained food in order to improve their foraging efficiency. This process is also similar to the flocking behavior. If the fish being followed is in a crowded position, the tail-chasing behavior will stop.
[0109] In specific operation, define the current fish individual as hi; its visual field is visual; find a partner hmax in the visual field, which can obtain the optimal objective function value Ymax. The number of fish in the visual field of partner hmax is nf; δ is still the set crowding factor. Then make the following judgment first, if Y i >δn f Y max If true, the fish individual at position hi performs tail-chasing behavior, otherwise it keeps its position unchanged. Tail-chasing behavior is defined as:
[0110]
[0111] Then, update the next position of the fish school
[0112] Compare the objective function value Yc corresponding to the position hnext obtained by the fish foraging behavior, grouping behavior, and tail-chasing behavior in the above process, and take the hnext corresponding to the value with the smallest objective function value as the final position of the individual fish school in the next step.
[0113] In an optional embodiment, the process of determining and updating candidate individuals is repeatedly executed until a preset condition is met, and a target individual is obtained, and the target individual is used as the target sampling coefficient, including: when the number of updates is greater than a preset update number threshold or the value of the objective function calculated based on the individuals in the fish school is less than a preset entropy threshold, the repetition is stopped, and the best individual in the fish school is used as the target individual.
[0114] Repeat the above steps until the number of iterations or the objective function value is less than the set value (preset entropy threshold), and the optimal sampling coefficient value h can be obtained.
[0115] S260: Determine a target sampling sequence based on the target sampling coefficient, sample the parameters of the arrester based on the target sampling sequence, and obtain a target sample set corresponding to the arrester parameters.
[0116] Specifically, re-pressurized sampling. After obtaining the optimal sampling coefficient h, the sampling point distribution can be calculated according to the optimal sampling coefficient h and formula (3), and re-pressurized sampling is performed according to the calculated sampling points to obtain the target sample set.
[0117] In a preferred embodiment, in order to solve the problem of poor fitting accuracy of the volt-ampere characteristic curve caused by uniform sampling of the existing arrester DC 1mA test, an embodiment of the present invention proposes a non-uniform data sampling strategy, which proposes the principle of minimum sample information entropy to determine the sampling points of the sampling sequence, aiming to improve the certainty of the sample and optimize the fitting accuracy when the number of sampling points is certain. The fish school optimization algorithm is used to optimize the sampling parameters with the information entropy of the sample as the optimization target until the sample information entropy meets the requirements, and finally the volt-ampere characteristic curve is resampled. This strategy is applicable to the sampling of the volt-ampere characteristic curves of all metal oxide arresters. The algorithm flow chart provided in the second embodiment of the present invention is as follows: Figure 4 shown.
[0118] The technical solution of the embodiment of the present invention performs initial sampling of the parameters of the arrester according to the number of sampling points and the sampling value range to obtain an initial sample set, and determines the information entropy of the initial sample set; when the information entropy is greater than a preset threshold, initializes the sampling coefficient set, and uses the fish school optimization algorithm to optimize the sampling coefficients in the initialized sampling coefficient set to obtain the target sampling coefficient; determines the target sampling sequence based on the target sampling coefficient, samples the parameters of the arrester based on the target sampling sequence, and obtains the target sample set corresponding to the arrester parameters. The technical solution of the present invention solves the problem that the existing sampling method will cause the information uncertainty contained in the final sampling sequence to be huge, so that the fitting accuracy of the volt-ampere characteristic parameters is not high. Alternatively, increasing the number of sampling points will lead to the adverse technical problems of increased sampling time and increased running amount of the fitting algorithm. The non-uniform data sampling strategy and the fish school optimization algorithm are used to improve the certainty of the sample and optimize the fitting accuracy.
[0119] Embodiment 3
[0120] Figure 5 This is a schematic diagram of the structure of a parameter sampling device for a lightning arrester provided in the third embodiment of the present invention. Figure 5 As shown, the device comprises:
[0121] The initial sample sampling module 310 performs initial sampling on the parameters of the arrester according to the number of sampling points and the sampling value range to obtain an initial sample set, and determines the information entropy of the initial sample set, wherein the parameters of the arrester include a leakage current value;
[0122] A target coefficient determination module 320 is used to initialize a sampling coefficient set when the information entropy is greater than a preset threshold, and optimize the sampling coefficients in the initialized sampling coefficient set using a fish school optimization algorithm to obtain a target sampling coefficient;
[0123] The target sample acquisition module 330 is used to determine a target sampling sequence based on the target sampling coefficient, sample the parameters of the arrester based on the target sampling sequence, and obtain a target sample set corresponding to the arrester parameters.
[0124] Optionally, the initial sample sampling module 310 includes:
[0125] A sampling point determination submodule to be used, used to obtain at least two sampling points to be used within the sampling value range, according to the number of sampling points and the historical sampling coefficient, by using a sampling point calculation function, wherein the sampling points to be used correspond to the voltage value applied to the arrester;
[0126] A leakage current value determination submodule, used for applying voltage to the arrester according to at least two sampling points to be used, to obtain a leakage current value to be used corresponding to each sampling point to be used;
[0127] The initial sample set construction submodule is used to construct the initial sample set based on at least two leakage current values to be used.
[0128] Optionally, the initial sample sampling module 310 includes:
[0129] The information entropy calculation submodule is used to calculate the information entropy of the initial sample set through an information entropy calculation function, and the information entropy calculation function is as follows:
[0130]
[0131] Among them, x is the initial sample set, xi is the leakage current value to be used, and p(xi) is the probability of obtaining xi.
[0132] Optionally, the target coefficient determination module 320 includes:
[0133] The sampling coefficient initialization submodule is used to initialize at least two sampling coefficients according to the number of sampling points and the sampling value range, and form the initialized sampling coefficient set based on the at least two sampling coefficients.
[0134] Optionally, the target coefficient determination module 320 includes:
[0135] A fish school determination submodule, used to use the initialization sampling coefficient set as the fish school corresponding to the fish school optimization algorithm, and use the sampling coefficients in the initialization sampling coefficient set as individuals in the fish school;
[0136] An objective function definition submodule, used to define the objective function of the fish school optimization algorithm, wherein the objective function is composed of a sampling point determination function and an information entropy calculation function, and the sampling point determination function is a function of the sampling coefficient;
[0137] The target sampling coefficient determination submodule is used to optimize the individuals in the fish school through a fish school optimization algorithm to minimize the value of the objective function, and use the individual corresponding to the minimum value of the objective function as the target sampling coefficient.
[0138] Optionally, the target sampling coefficient determination submodule includes:
[0139] The unit for determining the individual to be used executes algorithms corresponding to the foraging behavior, the grouping behavior and the tail-chasing behavior for each individual in the school of fish to obtain the individual to be used corresponding to each behavior;
[0140] A candidate individual determination unit, used to determine a candidate individual from at least two of the individuals to be used, and update each individual in the school of fish based on the candidate individual;
[0141] The repeat stop judgment unit is used to repeatedly execute the determination and update process of the candidate individuals until a preset condition is met, and a target individual is obtained, and the target individual is used as the target sampling coefficient.
[0142] Optionally, the repetition stop determination unit is specifically configured to:
[0143] When the number of updates is greater than a preset update number threshold or the value of the objective function calculated based on the individuals in the fish school is less than a preset entropy threshold, the repetition is stopped and the best individual in the fish school is used as the target individual.
[0144] Optionally, the target sample collection module 330 is specifically used to:
[0145] Substituting the target sampling coefficient into a sampling point determination function to obtain at least two target sampling points; wherein at least two target sampling points constitute the target sampling sequence;
[0146] Based on at least two of the target sampling points, the leakage current of the arrester is collected to obtain at least two leakage currents, wherein at least two leakage currents constitute the target sample set.
[0147] The parameter sampling device for the lightning arrester provided in the embodiment of the present invention can execute the parameter sampling method for the lightning arrester provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.
[0148] Embodiment 4
[0149] Figure 6 A schematic diagram of the structure of an electronic device provided for Embodiment 4 of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0150] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0151] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0152] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 performs the various methods and processes described above, such as a parameter sampling method for a lightning arrester.
[0153] In some embodiments, the parameter sampling method of the lightning arrester can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the parameter sampling method of the lightning arrester described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the parameter sampling method of the lightning arrester in any other appropriate manner (for example, by means of firmware).
[0154] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0155] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0156] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0157] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0158] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0159] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0160] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0161] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A parameter sampling method for a lightning arrester, characterized in that: include: Performing initial sampling on the parameters of the arrester according to the number of sampling points and the sampling value range to obtain an initial sample set, and determining the information entropy of the initial sample set, wherein the parameters of the arrester include a leakage current value; When the information entropy is greater than a preset threshold, a sampling coefficient set is initialized, and a fish school optimization algorithm is used to optimize the sampling coefficients in the initialized sampling coefficient set to obtain a target sampling coefficient; A target sampling sequence is determined based on the target sampling coefficient, and the parameters of the arrester are sampled based on the target sampling sequence to obtain a target sample set corresponding to the arrester parameters.
2. The method according to claim 1, characterized in that The initial sampling of the parameters of the arrester according to the number of sampling points and the sampling value range to obtain an initial sample set includes: Within the sampling value range, at least two sampling points to be used are calculated by a sampling point calculation function according to the number of sampling points and the historical sampling coefficient, wherein the sampling points to be used correspond to the voltage value applied to the arrester; Applying voltage to the arrester according to at least two of the sampling points to be used, to obtain a leakage current value to be used corresponding to each of the sampling points to be used; The initial sample set is formed based on at least two leakage current values to be used.
3. The method according to claim 2, characterized in that The determining the information entropy of the initial sample set includes: The information entropy of the initial sample set is calculated by using an information entropy calculation function, and the information entropy calculation function is as follows: Among them, x is the initial sample set, xi is the leakage current value to be used, and p(xi) is the probability of obtaining xi.
4. The method according to claim 1, characterized in that When the information entropy is greater than a preset threshold, initializing a sampling coefficient set includes: At least two sampling coefficients are initialized according to the number of sampling points and the sampling value range, and the initialized sampling coefficient set is formed based on the at least two sampling coefficients.
5. The method according to claim 1, characterized in that The method of optimizing the sampling coefficients in the initialization sampling coefficient set by using a fish school optimization algorithm to obtain a target sampling coefficient includes: Using the set of initialized sampling coefficients as the fish school corresponding to the fish school optimization algorithm, and using the sampling coefficients in the set of initialized sampling coefficients as individuals in the fish school; Defining an objective function of the fish school optimization algorithm, wherein the objective function is composed of a sampling point determination function and an information entropy calculation function, and the sampling point determination function is a function of the sampling coefficient; The individuals in the fish school are optimized by a fish school optimization algorithm to minimize the value of the objective function, and the individual corresponding to the minimum value of the objective function is used as the target sampling coefficient.
6. The method according to claim 5, characterized in that The method of optimizing the individuals in the fish school by using a fish school optimization algorithm to minimize the value of the objective function, and using the individuals corresponding to the minimum value of the objective function as the target sampling coefficient, includes: For each individual in the school of fish, executing algorithms corresponding to foraging behavior, grouping behavior and tail-chasing behavior to obtain individuals to be used corresponding to each behavior; Determine a candidate individual from at least two of the individuals to be used, and update each individual in the school of fish based on the candidate individual; The process of determining and updating the candidate individuals is repeated until a preset condition is met, and a target individual is obtained, and the target individual is used as the target sampling coefficient.
7. The method according to claim 6, characterized in that The process of repeatedly performing the determination and updating of candidate individuals until a preset condition is met, obtaining a target individual, and using the target individual as the target sampling coefficient, comprises: When the number of updates is greater than a preset update number threshold or the value of the objective function calculated based on the individuals in the fish school is less than a preset entropy threshold, the repetition is stopped and the best individual in the fish school is used as the target individual.
8. The method according to claim 1, characterized in that The step of determining a target sampling sequence based on the target sampling coefficient, sampling the parameters of the arrester based on the target sampling sequence, and obtaining a target sample set corresponding to the arrester parameters includes: Substituting the target sampling coefficient into a sampling point determination function to obtain at least two target sampling points; wherein at least two target sampling points constitute the target sampling sequence; Based on at least two of the target sampling points, the leakage current of the arrester is collected to obtain at least two leakage currents, wherein at least two leakage currents constitute the target sample set.
9. A parameter sampling device for a lightning arrester, characterized in that: include: An initial sample sampling module performs initial sampling on the parameters of the arrester according to the number of sampling points and the sampling value range to obtain an initial sample set, and determines the information entropy of the initial sample set, wherein the parameters of the arrester include a leakage current value; A target coefficient determination module is used to initialize a sampling coefficient set when the information entropy is greater than a preset threshold, and optimize the sampling coefficients in the initialized sampling coefficient set using a fish school optimization algorithm to obtain a target sampling coefficient; The target sample acquisition module is used to determine a target sampling sequence based on the target sampling coefficient, sample the parameters of the arrester based on the target sampling sequence, and obtain a target sample set corresponding to the arrester parameters.
10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the parameter sampling method for the lightning arrester according to any one of claims 1 to 8.
Citation Information
Patent Citations
On-line monitoring method, device and equipment for aging of lightning arrester based on BTO algorithm and medium
CN116500361A
Aging detection method, device and equipment of lightning arrester and storage medium
CN116840588A
Parameter determination method and device, electronic equipment and storage medium
CN117725756A
Method for measuring transient values of resistive current and capacitive current of lightning arrester
WO2014139381A1
