A method, device, electronic device and storage medium for predicting air pressure

Using the improved fish school algorithm to predict the SF6 pressure value in the substation solves the problem of data waste and failure to predict in time, improves equipment safety and operation and maintenance efficiency, achieves accurate prediction of the SF6 pressure in the substation, and improves equipment safety.

CN113656752BActive Publication Date: 2024-09-06GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110917556.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-11
Publication Date
2024-09-06
Estimated Expiration
2041-08-11

AI Technical Summary

Technical Problem

The existing technology fails to effectively utilize the historical pressure data of SF6 gas equipment in substations, resulting in data waste and failure to predict pressure changes in a timely manner, affecting equipment safety and operation and maintenance efficiency.

Method used

The improved fish school algorithm is used to predict the SF6 pressure value of the substation by determining the target pressure value vector, and provide the prediction results to take timely measures to improve equipment safety and operation and maintenance efficiency.

Benefits of technology

It achieves accurate prediction of the SF6 air pressure value in the substation, improves equipment safety and operation and maintenance efficiency, reduces the operation and maintenance cycle and air replenishment cycle, and enhances the reliability of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113656752B
    Figure CN113656752B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, electronic device and storage medium for predicting air pressure. The method includes: determining at least one first air pressure value vector of a target device within a first preset time period, and a second air pressure value vector of a preset number of devices within a second preset time period; determining a target air pressure value vector related to each first air pressure value vector from the second air pressure value vector; determining a prediction vector of the target device within a third time period according to each target air pressure value vector, and obtaining an air pressure prediction result. By executing this scheme, the SF6 air pressure value of the substation can be predicted, and it can help the staff to take necessary measures in time according to the prediction results, which can improve the safety of the substation substation equipment and improve the operation and maintenance efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of data processing, and in particular to a method, device, electronic device and storage medium for predicting air pressure. Background Art

[0002] With the rapid development of the national economy, the demand for electricity in all walks of life has increased dramatically, the load of the power system has increased, and the requirements for power supply reliability have gradually increased. The application of gas-filled electrical equipment has become more and more extensive, and it has become one of the main electrical equipment in substations. SF6 (sulfur hexafluoride) gas is widely used in high-voltage electrical equipment due to its excellent insulation and arc extinguishing characteristics, and the demand for online monitoring of SF6 gas in substations has become increasingly strong. Substations record the SF6 gas pressure of equipment once a week according to inspections, and a large amount of data has been accumulated over the years. In related technologies, these data are only used as historical data for staff to consult, and the characteristics or trends of historical data are not used, resulting in data waste. Summary of the invention

[0003] The embodiments of the present invention provide a method, device, electronic device and storage medium for predicting gas pressure, which can predict the SF6 gas pressure value of a substation, and thus help staff to take necessary measures in a timely manner according to the prediction results, thereby improving the safety of substation substation equipment and improving operation and maintenance efficiency.

[0004] In a first aspect, an embodiment of the present invention provides a method for predicting air pressure, the method comprising:

[0005] Determine at least one first air pressure value vector of a target device within a first preset time period, and a second air pressure value vector of a preset number of devices within a second preset time period;

[0006] determining a target air pressure value vector associated with each of the first air pressure value vectors from the second air pressure value vectors;

[0007] According to each of the target air pressure value vectors, a prediction vector of the target device in a third time period is determined, and an air pressure prediction result is obtained.

[0008] In a second aspect, an embodiment of the present invention further provides a device for predicting air pressure, the device comprising:

[0009] An air pressure value vector determination module, configured to determine at least one first air pressure value vector of a target device within a first preset time period, and a second air pressure value vector of a preset number of devices within a second preset time period;

[0010] a target air pressure value vector determining module, configured to determine, from the second air pressure value vectors, a target air pressure value vector associated with each of the first air pressure value vectors;

[0011] The prediction vector determination module is used to determine the prediction vector of the target device within a third time period according to each of the target air pressure value vectors, and obtain an air pressure prediction result.

[0012] In a third aspect, an embodiment of the present invention further provides an electronic device, the device comprising:

[0013] one or more processors;

[0014] a storage device for storing one or more programs,

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the air pressure prediction method as described in any one of the embodiments of the present invention.

[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for predicting air pressure as described in any one of the embodiments of the present invention.

[0017] The technical solution provided by the embodiment of the present invention determines at least one first air pressure value vector of the target device within the first preset time period, and the second air pressure value vector of the preset number of devices within the second preset time period; from the second air pressure value vector, the target air pressure value vector related to each first air pressure value vector is determined; according to each target air pressure value vector, the prediction vector of the target device within the third time period is determined, and the air pressure prediction result is obtained. By implementing this solution, the SF6 air pressure value of the substation can be predicted, and then it helps the staff to take necessary measures in time according to the prediction results, which can improve the safety of the substation substation equipment and improve the operation and maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flow chart of a method for predicting air pressure provided by an embodiment of the present invention;

[0019] Figure 2 is a schematic diagram of the time series of historical air pressure data provided by an embodiment of the present invention;

[0020] Figure 3 It is a flow chart of the foraging of fish school algorithm in the prior art;

[0021] Figure 4 is a flow chart of searching for a target air pressure value vector based on an improved fish school algorithm provided by an embodiment of the present invention;

[0022] Figure 5 is a foraging flow chart of an improved fish school algorithm provided by an embodiment of the present invention;

[0023] Figure 6is a flow chart of another air pressure prediction method provided by an embodiment of the present invention;

[0024] Figure 7 is a flow chart of another method for predicting air pressure provided by an embodiment of the present invention;

[0025] Figure 8 It is a schematic diagram of the structure of an air pressure prediction device provided by an embodiment of the present invention;

[0026] Fig. 9 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0028] In one application scenario of this solution, in the electric power industry, the usage of SF6 gas is very large. The physical properties of SF6 gas determine its position as the best medium for insulation and arc extinguishing in high-voltage electrical products, and it is widely used in electrical equipment in substations. If the SF6 gas pressure is too low, the arc extinguishing ability of electrical products will be reduced; if the SF6 gas pressure is too high, the mechanical life of electrical products will be shortened, and the SF6 gas may also liquefy. Therefore, it is particularly necessary to monitor the gas pressure of SF6 gas in electrical equipment. During the operation of electrical equipment, it is necessary to pay attention to the SF6 gas pressure value. When the predicted pressure value drops to the alarm pressure, SF6 gas should be replenished in time, and it should be determined whether there are any leaks and take timely countermeasures.

[0029] Figure 1 This is a flow chart of a method for predicting air pressure provided by an embodiment of the present invention. The method can be executed by an air pressure prediction device, which can be implemented by software and / or hardware, and can be configured in an electronic device for predicting air pressure. The method is applied to the scenario of monitoring air pressure in a substation. Figure 1 As shown, the technical solution provided by the embodiment of the present invention specifically includes:

[0030] S110: Determine at least one first air pressure value vector of a target device within a first preset time period, and a second air pressure value vector of a preset number of devices within a second preset time period.

[0031] Wherein, the target device may be a monitored electrical device. The first preset time period may be one month or two months, and the first preset time period may be set according to actual needs. The second preset time period may be one year or two years, and the second preset time period may be set according to actual needs. The length of the first preset time period needs to be less than the length of the second preset time period. Each device generates a corresponding air pressure value per week, and the air pressure values ​​of multiple consecutive times of each device constitute an air pressure value vector. The first air pressure value vector may be a pressure recording data matrix of the target device for four weeks in the first preset time period, or a pressure recording data matrix of the target device for 8 weeks in the first preset time period, and the first air pressure value vector may be set according to actual needs. The preset number may be 1000, the preset number may be 500, or the preset number may be the number of all electrical devices. The preset number may be set according to actual needs. The second air pressure value vector may be a pressure recording data matrix of a preset number of devices in the second preset time period with the same dimension as the first air pressure value vector, and the second air pressure value vector may be set according to actual needs. This solution can determine at least one first pressure value vector of the target device within a first preset time period and a second pressure value vector of all devices within a second preset time period from the historical SF6 pressure record data.

[0032] For example, Figure 2 As shown, taking the number of all electrical equipment as 1000 as an example, the first equipment is taken as the target equipment, the first 50 weeks to the first 26 weeks are taken as the first preset time period, and the air pressure recording data of the first preset time period is taken as the matrix to be compared B. The first 550 weeks to the first 51 weeks are taken as the second preset time period, and the air pressure recording data of the second preset time period is taken as the source matrix A. The SF6 air pressure recording data matrix b4 of the first equipment from the first 29 weeks to the first 26 weeks, the SF6 air pressure recording data matrix b8 from the first 33 weeks to the first 26 weeks, the SF6 air pressure recording data matrix b12 from the first 37 weeks to the first 26 weeks, and the SF6 air pressure recording data matrix b25 from the first 50 weeks to the first 26 weeks are taken as the first air pressure value vectors. The first air pressure value vectors are 4-dimensional column vectors, 8-dimensional column vectors, 12-dimensional column vectors, and 25-dimensional column vectors, respectively. The generation process of the second air pressure value vector is similar to that of the first air pressure value vector: for the air pressure value corresponding to each electrical device in the second preset time period, starting from the first air pressure value (the air pressure value of the first device in the 550th week), 4-dimensional, 8-dimensional, 12-dimensional and 25-dimensional second air pressure value vectors are generated in sequence.

[0033] S120: Determine a target air pressure value vector associated with each of the first air pressure value vectors from the second air pressure value vectors.

[0034] For each first pressure value vector, a vector with the largest correlation coefficient with the first pressure value vector is determined from the second pressure value vectors of the same dimension, that is, the target pressure value vector. This solution can use an improved artificial fish swarm algorithm to determine the target pressure value vector.

[0035] In a feasible embodiment, optionally, a target air pressure value vector related to each of the first air pressure value vectors is determined from the second air pressure value vector, including: establishing an artificial fish school model, and determining the initial parameters of each artificial fish in the artificial fish school model based on each of the first air pressure value vectors; based on the artificial fish school model and each of the initial parameters, determining the target air pressure value vector related to each of the first air pressure value vectors from the second air pressure value vector.

[0036] Specifically, an artificial fish school model can be established according to the first air pressure value vector. The artificial fish school model can include the number of artificial fish, that is, the number of first air pressure value vectors. The artificial fish school model can include the length of the artificial fish, that is, the dimension of the first air pressure value vector. The artificial fish school model can also include the position of the artificial fish, the perception distance of the artificial fish, the moving step length of the artificial fish, the crowding degree of the artificial fish, the maximum number of times the artificial fish forages, and the maximum number of iterations of the artificial fish. The artificial fish school model can also include other information. The initial parameter can be the perception distance of the artificial fish, the initial parameter can be the initial position of the artificial fish, and the initial parameter can also be the initial moving step length of the artificial fish. The initial parameter can also be other parameters. This solution can determine the initial parameters of each artificial fish in the artificial fish school model according to the first air pressure value vector, and based on the artificial fish school model and each initial parameter, determine the target air pressure value vector related to each first air pressure value vector from the second air pressure value vector.

[0037] In another feasible implementation, optionally, the initial parameters include perception distance; accordingly, the initial parameters of each artificial fish in the artificial fish school model are determined based on each first air pressure value vector, including: determining the perception distance of the artificial fish corresponding to each first air pressure value vector according to the dimension of each first air pressure value vector.

[0038] Specifically, the perception distance can be the perception range of the artificial fish. If the dimension of the first air pressure value vector is four-dimensional, the length of the corresponding artificial fish is 4, and the perception distance of the artificial fish is determined to be 6 times the length, that is, 24; if the dimension of the first air pressure value vector is 8-dimensional, the length of the corresponding artificial fish is 8, and the perception distance of the artificial fish is determined to be 5 times the length, that is, 40; if the dimension of the first air pressure value vector is twelve-dimensional, the length of the corresponding artificial fish is 12, and the perception distance of the artificial fish is determined to be 4 times the length, that is, 48; if the dimension of the first air pressure value vector is 25-dimensional, the length of the corresponding artificial fish is 25, and the perception distance of the artificial fish is determined to be 3 times the length, that is, 75. The perception distance of the artificial fish can be set according to actual needs.

[0039] Therefore, by determining the perception distance of the artificial fish corresponding to each first air pressure value vector according to the dimension of each first air pressure value vector, it is possible to achieve adaptive adjustment of different perception distances according to different lengths of the artificial fish. Compared with the technical solution in the prior art that the perception distances of artificial fish of all lengths are the same, thus resulting in local extreme values, the problem of local extreme values ​​is overcome and the global nature of optimization is ensured.

[0040] In this embodiment, optionally, the initial parameters include a moving step length; accordingly, determining the initial parameters of each artificial fish in the artificial fish school model based on each first air pressure value vector includes: determining the moving step length based on the following formula:

[0041] Where k is the step size adjustment factor, Q V is the correlation coefficient between the target second air pressure value vector and the first air pressure value vector, Q is the correlation coefficient between the current second air pressure value vector and the first air pressure value vector; the target second air pressure value vector is the second air pressure value vector corresponding to the target position determined by the first air pressure value vector based on the perceived distance, and the current second air pressure value vector is the second air pressure value vector corresponding to the position where the first air pressure value vector is located.

[0042] Among them, the moving step length is the moving length of the artificial fish in the process of foraging. This scheme can determine the moving step length of each artificial fish according to the dimension of the first air pressure value vector. First, the initial moving step lengths of artificial fish with lengths of 4, 8, 12, and 25 can be set to 8, 12, 18, and 32 respectively. Then, in the process of searching for the optimal vector using the artificial fish school model, the moving step length of each artificial fish is dynamically adjusted: determine the correlation coefficient Q between the second air pressure value vector and the first air pressure value vector at the current position of the artificial fish, and determine the correlation coefficient Q between the second air pressure value vector and the first air pressure value vector at the target position determined by the foraging function, clustering function, or chasing function in the artificial fish school algorithm within the perception distance. V ,based on Determine the step adjustment coefficient during the search process, and the specific moving step is adaptively adjusted according to the value of k. Among them, the food concentration Q is the correlation coefficient between the first air pressure value vector and the second air pressure value vector of the same dimension, and its solution formula is shown in the following formula:

[0043]

[0044] Among them, X and Y represent the same or different vectors respectively. The larger the Q is, the higher the linear positive correlation between the two vectors is.

[0045] Therefore, by dynamically adjusting the moving step length of each artificial fish based on the artificial fish school algorithm according to the dimension of each first air pressure value vector, the moving step length can be adaptively adjusted according to the correlation coefficient. Compared with the technical solution in the prior art in which the moving step length is a random number, resulting in slow convergence speed and wasting a lot of random movement time, the convergence speed of the search algorithm can be accelerated and the search time can be saved.

[0046] The fish school algorithm simulates the fish predation activities to search for data, which is divided into foraging behavior, grouping behavior, tailing behavior and random behavior. Among them, the foraging behavior process is as follows Figure 3 As shown, fish perceive the food concentration around them through vision. Suppose a fish is now in M 1 point, its perceived distance is V. At a certain moment, its viewpoint is M V , when M V The food concentration at point is higher than M 1 When the fish moves to M V Go one step forward in the direction of point and reach position M next ; When M V The food concentration at the point is equal to or lower than M 1 When the fish reaches the point, it will continue to patrol other locations within the sensing distance; after multiple patrols, it can find the point with the highest food concentration in the global position. 1 ,m 2 ,…,m n ],Location Then the foraging process of a fish can be expressed as Where r is a random number between -1 and 1, ST is the moving step, ||M V -M|| is M V The distance between M and M. When there are other fish within the fish's perception distance, the method of sensing the positions of other fish and approaching them is also based on this formula.

[0047] Grouping behavior: When fish are foraging, they often gather in groups in places with high food concentrations. This is a group foraging behavior of fish. Fish search for the number of companions within the sensing distance and the food concentration at the center of the companions, and judge whether there are many companions in places with high food concentrations. If not, they move one step toward the center of the companions. Otherwise, they perform foraging behavior.

[0048] Tail-chasing behavior: When a fish finds food, the fish near it will follow it, which in turn causes more fish to swim over from a distance. The fish locates the position of its companions within the sensing distance, and if it senses the companion with the highest food concentration and is not too crowded, it will move forward in the direction of that companion; otherwise, it will perform foraging behavior.

[0049] Random behavior: Fish swim randomly to search for food in a wider range. Random behavior is a default treatment in algorithm calculation when other conditions are not met.

[0050] In the related art, when the lengths of fish in a school are inconsistent, a unified perception distance V is selected, which has the following problems: when V is large, the shorter fish are prone to fall into local extremes during the optimization process; when V is small, the longer fish converge more slowly during the optimization process. Because r is a random number between -1 and 1, the moving step length of the traditional fish school algorithm is also random, and a lot of computing time is wasted in random movement.

[0051] The embodiment of the present invention overcomes the problem of local extreme values ​​by adaptively adjusting different perception distances according to different lengths of fish, thereby ensuring the global nature of optimization; and adaptively adjusting the moving step length according to the correlation coefficient, thereby accelerating the convergence speed of the search algorithm and shortening the search time. The specific reasons can be referred to in the following introduction.

[0052] The first pressure value vector of one device is selected from the matrix B to be compared of 1000 electrical devices. Taking the first device as an example, b4, b8, b12, and b25 are selected. The dimensions of the four vectors are 4, 8, 12, and 25, respectively, that is, the lengths of the four fish are 4, 8, 12, and 25, respectively. Each time, four fish are input into the improved fish school algorithm for comparison. After the algorithm is finished, four related target pressure value vectors a4, a8, a12, and a25 with the same length as the four fish in the source matrix A are output. First, initialize the variables in the artificial fish school model:

[0053] The position of the fish is M = [m 1 ,m 2 ]. Among them, m1 and m2 are variables to be optimized. The initial positions of the four fishes b4, b8, b12, and b25 are initialized to M1 = [250, 125], M2 = [250, 375], M3 = [750, 125], and M4 = [750, 375] respectively.

[0054] The perception distance V of the four fishes b4, b8, b12 and b25 are set to 6 times, 5 times, 4 times and 3 times of the length of the fish respectively, that is, the perception distance V of the four fishes are 24, 40, 48 and 75 respectively.

[0055] The food concentration function Q is the correlation coefficient between the first air pressure value vector and the second air pressure value vector of the same dimension, as shown in the following formula:

[0056]

[0057] Among them, X and Y represent the same or different vectors respectively. The larger the Q is, the higher the linear positive correlation between the two vectors is.

[0058] The initial step sizes ST of the four fishes b4, b8, b12, and b25 are set to 8, 12, 18, and 32, respectively. The specific moving step sizes ST in the iteration process are adaptively adjusted according to the value of k, where Q V is the correlation coefficient between the second air pressure value vector corresponding to the target position of the first air pressure value vector and the first air pressure value vector of the same dimension, and Q is the correlation coefficient between the current second air pressure value vector corresponding to the position of the first air pressure value vector and the first air pressure value vector of the same dimension.

[0059] The crowding θ is set to 1.8, the maximum number of foraging times MAXNUM is set to 200, and the maximum number of iterations MAXGEN is set to 100.

[0060] Figure 4 is a flow chart of searching for a target air pressure value vector based on an improved fish school algorithm provided by an embodiment of the present invention, wherein n f is the number of partners within the perceived distance V, Q J is the food concentration at the center of the cluster, Q Z is the maximum food concentration at the partner's location within the sensing distance.

[0061] like Figure 4 As shown in the figure, after initialization of each fish, optimization starts from b4. The fish first cluster and chase each other. When it is determined that the location with high food concentration is too crowded, it will start foraging. When b4 completes one optimization, b8 will perform optimization... until all the fish in the school have completed one optimization, and one round of optimization ends. The next round of optimization is performed in sequence until the maximum number of foraging times MAXNUM of the school reaches 200, or the maximum number of iterations MAXGEN reaches 100, the school optimization ends, and finally the target pressure value vectors a4, a8, a12, a25 are obtained. Figure 4 The introduction of foraging behavior, herding behavior and tail-chasing behavior is as follows:

[0062] Foraging behavior: The current position of the fish is M i, randomly select a position M in its perception range V j , if Q j >Q i , then to M j The direction moves one step, and the moving step length is adaptively adjusted according to the step length adjustment coefficient k. The process of the improved foraging behavior algorithm Figure 5 shown.

[0063] Grouping behavior: The current position of the fish is M i , search for the number of partners n in its perception distance V f and center position M J , if Q J >θ×n f ×Q i , it means that there are few fish and much food in the partner center, so go to M J The direction moves one step, and the moving step length is adaptively adjusted according to the step length adjustment coefficient k.

[0064] Tail-chasing behavior: The current position of the fish is M i , search for the number of partners n in its perception distance V f and the partner position M with the highest food concentration Z , if Q Z >θ×n f ×Q i , it means that the partner has less fish and more food, so he should go to M Z The direction moves one step, and the moving step length is adaptively adjusted according to the step length adjustment coefficient k.

[0065] At the end of each foraging, the four fish move closer to a better food location. When the maximum number of foraging times or the maximum number of iterations is reached, the four target pressure value vectors a4, a8, a12, and a25 that are most relevant to b4, b8, b12, and b25 in the source matrix A are finally output.

[0066] S130: Determine a prediction vector of the target device within a third time period according to each of the target air pressure value vectors, and obtain an air pressure prediction result.

[0067] The third time period does not fall within the first preset time period, nor does it fall within the second preset time period. Figure 2 As shown, the third time period can be the time period from the previous 25 weeks to the present, and the air pressure record data of the third time period is used as the supervision matrix C. The third time period can be set according to actual needs. The prediction function of the target device in a specific time period can be determined according to the target air pressure value vector related to the first air pressure value vector, and then the prediction vector of the third time period can be determined according to the prediction function, and then the air pressure prediction result of the target device in each week in the third time period can be obtained.

[0068] In this embodiment, optionally, a prediction vector of the target device within the third time period is determined based on each of the target air pressure value vectors, including: generating at least one simulation function based on each of the target air pressure value vectors; and determining the prediction vector of the target device within the third time period based on each of the simulation functions.

[0069] Specifically, the target pressure value vectors a4, a8, a12, and a25 can be simultaneously input into the cubic spline interpolation Spline function of Matlab to respectively determine the simulation functions f4(x), f8(x), f12(x), and f25(x) corresponding to the four target pressure value vectors in different time periods. This solution can determine the prediction vector of the target device in the third time period based on each simulation function.

[0070] Thus, by generating at least one simulation function according to each target air pressure value vector and determining the prediction vector of the target device in the third time period based on each simulation function, it is possible to predict the future air pressure value of the electrical device according to each target air pressure value vector, thereby improving the operation and maintenance efficiency.

[0071] In this embodiment, optionally, based on each of the simulation functions, a prediction vector of the target device in a third time period is determined, including: if there are at least two target air pressure value vectors, averaging the simulation functions corresponding to the at least two target air pressure value vectors to obtain an average simulation function; based on the average simulation function, determining the prediction vector for the third time period.

[0072] Exemplarily, the number of target air pressure value vectors determines the number of simulation functions. If there are at least two target air pressure value vectors, for example, for target air pressure value vectors a4, a8, a12, and a25, the simulation functions determined by the target air pressure value vectors can be averaged to obtain an average simulation function, that is:

[0073]

[0074] Among them, f4(x), f8(x), f12(x), and f25(x) are simulation functions corresponding to the four target air pressure value vectors a4, a8, a12, and a25, respectively. Then, according to the average simulation function, the prediction vector of the third time period is determined. For example, the air pressure value vector d4 that will appear in the first 25 weeks to the first 22 weeks can be determined according to the average simulation function. The air pressure value vector d8 that will appear in the first 25 weeks to the first 18 weeks can also be determined according to the average simulation function. The air pressure value vector d12 that will appear in the first 25 weeks to the first 14 weeks can also be determined according to the average simulation function. The air pressure value vector d25 that will appear in the first 25 weeks to the present can also be determined according to the average simulation function.

[0075] Therefore, if there are at least two target air pressure value vectors, the simulation functions corresponding to the at least two target air pressure value vectors are averaged to obtain an average simulation function; based on the average simulation function, the prediction vector for the third time period is determined. This can make the prediction vector of the determined target device more accurate, avoid the generation of extreme values ​​of the prediction results, and reduce the fitting error caused by the small dimension of the prediction vector.

[0076] The technical solution provided by the embodiment of the present invention determines at least one first air pressure value vector of the target device within the first preset time period, and the second air pressure value vector of the preset number of devices within the second preset time period; from the second air pressure value vector, the target air pressure value vector related to each first air pressure value vector is determined; according to each target air pressure value vector, the prediction vector of the target device within the third time period is determined, and the air pressure prediction result is obtained. By implementing this solution, the SF6 air pressure value of the substation can be predicted, and then it helps the staff to take necessary measures in time according to the prediction results, which can improve the safety of the substation substation equipment and improve the operation and maintenance efficiency.

[0077] Figure 6 is a flow chart of the air pressure prediction method provided by an embodiment of the present invention. This solution is optimized on the basis of the above embodiment. Specifically, the optimization is as follows: Optionally, after obtaining the air pressure prediction result, the method further includes: obtaining the actual air pressure value of the target device in the third time period; determining the prediction accuracy based on the air pressure prediction result and the actual air pressure value. Figure 6 As shown, the technical solution provided by the embodiment of the present invention specifically includes:

[0078] S210: Determine at least one first air pressure value vector of a target device within a first preset time period, and a second air pressure value vector of a preset number of devices within a second preset time period.

[0079] S220: Determine a target air pressure value vector associated with each of the first air pressure value vectors from the second air pressure value vectors.

[0080] S230: Determine a prediction vector of the target device within a third time period according to each of the target air pressure value vectors, and obtain an air pressure prediction result.

[0081] S240: Obtain the actual air pressure value of the target device in the third time period.

[0082] Since this solution stores the air pressure value data of all electrical devices in the historical time period, this solution can obtain the actual air pressure value of the target device in the third time period from the historical air pressure record data, such as the historical air pressure record data of the first device from the first 25 weeks to the present.

[0083] S250: Determine the prediction accuracy based on the air pressure prediction result and the actual air pressure value.

[0084] The actual pressure value of the corresponding device and the corresponding time is subtracted from the predicted pressure result, and the difference is recorded for each device at each time point. A difference less than 0.01 is considered accurate prediction. The prediction accuracy of the improved artificial fish swarm algorithm for the target device can be determined. This solution can also further determine the prediction accuracy of the improved artificial fish swarm algorithm for all electrical equipment.

[0085] The technical solution provided by the embodiment of the present invention determines at least one first air pressure value vector of the target device within the first preset time period, and the second air pressure value vector of the preset number of devices within the second preset time period; from the second air pressure value vector, determine the target air pressure value vector related to each first air pressure value vector; according to each target air pressure value vector, determine the prediction vector of the target device within the third time period, and obtain the air pressure prediction result. The actual air pressure value of the target device in the third time period is obtained; the prediction accuracy is determined based on the air pressure prediction result and the actual air pressure value. By executing this solution, the SF6 air pressure value of the substation can be predicted, and it can help the staff to take necessary measures in time according to the prediction results, which can improve the safety of the substation substation equipment, improve the operation and maintenance efficiency, and verify the accuracy of the prediction results.

[0086] In order to more clearly describe the technical solution of the present invention, Figure 7 is a flow chart of a method for predicting air pressure provided by an embodiment of the present invention, such as Figure 7 As shown, the technical solution provided by the embodiment of the present invention may include the following steps:

[0087] Step 1: Form the source matrix A, the matrix to be compared B and the supervision matrix C.

[0088] ① Source matrix A: Collect SF6 gas pressure record data from the first 550 weeks to the first 51 weeks of 1000 devices to form source matrix A ij . Wherein, i=1...1000, j=1...500.

[0089] ② Matrix to be compared B: Collect the SF6 gas pressure record data of 1000 devices from the first 50 weeks to the first 26 weeks to form a matrix to be compared. Among them, the SF6 gas pressure record data matrix of 1000 devices from the first 29 weeks to the first 26 weeks is B4 ij , where i = 1...1000, j = 1...4; the SF6 gas pressure record data matrix of 1000 devices from the first 33 weeks to the first 26 weeks is B8 ij , where i = 1...1000, j = 1...8; the SF6 gas pressure record data matrix of 1000 devices from the first 37 weeks to the first 26 weeks is B12 ij, where i = 1...1000, j = 1...12; the SF6 gas pressure record data matrix of 1000 equipment from the first 50 weeks to the first 26 weeks is B25 ij , where i=1...1000, j=1...25.

[0090] ③ Supervision matrix C: Collect SF6 gas pressure record data of 1,000 devices from the previous 25 weeks to the present to form supervision matrix C ij . Where i=1...1000, j=1...25.

[0091] The three matrices divided over time are as follows Figure 2 As shown, combined Figure 2 The experimental steps are described again. That is, if you want to know the development trend of the data in the comparison matrix B, you need to find the development rules in the source matrix A, predict the data after t=0, and then compare it with the real data (supervision matrix C) to verify the experimental results.

[0092] Step 2: Determine the target air pressure value vectors a4, a8, a12, and a25.

[0093] The introduction of this step is detailed in the above embodiment.

[0094] Since the source matrix A is large in dimension, the comparison process will take a long time. In the search process, the artificial fish school algorithm is introduced, and some improvements are made to the traditional fish school algorithm: the different perception distance ranges are adaptively adjusted according to the length of the fish, which overcomes the problem of local extreme values ​​and ensures the global nature of the optimization; at the same time, the moving step size is adaptively adjusted according to the food concentration, which speeds up the convergence of the search algorithm and shortens the search time.

[0095] Step 3: Generation of prediction vector.

[0096] Firstly, the simulation function of the target pressure value vector is obtained by using the cubic spline method, then the average simulation function is obtained from the simulation function, and finally the prediction vector is obtained from the average simulation function.

[0097] Generation of simulation functions: The four simulation functions f4(x), f8(x), f12(x), and f25(x) of the four target pressure value vectors a4, a8, a12, and a25 are simulated using the cubic spline interpolation method, which is specifically implemented by the Matlab7.10 cubic spline interpolation Spline function.

[0098] Among them, the cubic spline method simulates the phenomenon that the bamboo strips automatically deform when the builders use thin and soft bamboo strips to pass through several fixed points to solve the curve function. The curve between every two points can be represented by a cubic polynomial, and any two adjacent cubic polynomials and their derivatives are continuous at the connection point. Based on the continuity, the approximate values ​​of other points on the curve can be estimated. The formula of cubic spline is expressed as follows:

[0099] f i (x) = u i x 3 +v i x 2 +w i x+z,

[0100] Among them, f i (x) is a stage function with n segments; i is an integer between 1 and n; u i 、v i 、w i is the coefficient to be determined of the ith cubic spline; z is the constant to be determined.

[0101] Solution of prediction vector: According to different prediction periods, the average simulation functions f4'(x), f8'(x), f12'(x), and f25'(x) used when the prediction is 4 weeks, 8 weeks, 12 weeks, and 25 weeks are calculated respectively. In order to reduce the fitting error caused by the small dimension of the prediction vector, the average value of the simulation functions of different dimensions is taken in the 4-dimensional, 8-dimensional, and 12-dimensional cases. The expression is as follows:

[0102]

[0103] Finally, the four average simulation functions f4'(x), f8'(x), f12'(x), and f25'(x) are used to predict the pressure value vectors of the equipment 4 weeks, 8 weeks, 12 weeks, and 25 weeks after t=0, namely the prediction vectors d4, d8, d12, and d25.

[0104] Step 4: Verify the experimental results.

[0105] Extract the actual pressure value vectors c4, c8, c12, c25 of the device, time, and length corresponding to the predicted vectors d4, d8, d12, d25 from the supervision matrix C. Subtract the predicted vector from the actual vector and record the difference for each device at each time point. The difference less than 0.01 is considered accurate.

[0106] According to the algorithm using random step size (random ST, RAST) or adaptive step size (self-adapting ST, SAST) in the parameter setting link, using random visual distance (random visual, RAV) or adaptive visual distance (self-adapting visual, SAV) in the algorithm iteration link, and using simulation function (fitting function, FF) or average simulation function (group function, GF) in the prediction vector production link, experiments were conducted under 8 different settings. Each experiment predicted the SF6 gas pressure of 1000 devices for 4 weeks, 8 weeks, 12 weeks, and 25 weeks, and counted the number of accurate predictions of 2500 prediction points corresponding to the supervision matrix C to obtain the prediction accuracy. At the same time, the duration of each experiment was recorded to obtain the average time consumption of a single prediction. The accuracy and time consumption comparison of the adaptive fish swarm algorithm under different settings are shown in Table 1:

[0107] Table 1

[0108]

[0109]

[0110] As can be seen from the table, in terms of step size selection, the use of random step size RAST and adaptive step size SAST has little effect on the accuracy, but SAST reduces the algorithm time by 76.1% compared with the RAST method; in terms of perception distance selection, the use of random perception distance RAV and adaptive perception distance SAV has little effect on the algorithm time, but the accuracy of the SAV method is significantly improved. It can be seen that the SAV method avoids local extreme values ​​in the calculation and obtains higher accuracy; in terms of prediction function selection, the use of simulation function FF and average simulation function GF has little effect on the algorithm time, but the GF method has a higher accuracy. In summary, the SAST+SAV+GF algorithm with adaptive step size, adaptive perception distance, and average simulation function has the highest overall accuracy and low average algorithm time, which proves the effect of the algorithm improvement in this paper.

[0111] The technical solution provided by the embodiment of the present invention performs data mining in a large amount of SF6 pressure data recorded in the substation history. The pressure value vectors of the recent weeks are compared with the pressure in the historical database, and the vector segment most similar to the pressure value vector to be compared is found from the historical database, and the function is fitted to the found vector segment, so as to predict the pressure value that will appear. Based on the traditional fish school algorithm, adaptive perception distance and step size optimization are performed, and the pressure value vector is predicted using the average simulation function. The experimental results show that the adaptive fish school algorithm can predict the SF6 pressure value that will appear in the target equipment in the next 25 weeks, and the comprehensive prediction accuracy rate reaches 99.2%. The operation speed is reduced by 76.1% compared with the traditional fish school algorithm. If it is close to the pressure alarm value, preventive safety pre-control measures such as shortening the equipment operation and maintenance cycle and replenishing gas are taken in advance. It provides an effective reference for the equipment operation and maintenance cycle, gas replenishment cycle, status inspection and power outage plan preparation.

[0112] Figure 8 FIG. 1 is a schematic diagram of the structure of a device for predicting air pressure provided by an embodiment of the present invention. The device may be implemented by software and / or hardware, and the device may be configured in an electronic device for predicting air pressure. Figure 8 As shown, the device comprises:

[0113] The air pressure value vector determination module 410 is used to determine at least one first air pressure value vector of a target device within a first preset time period, and a second air pressure value vector of a preset number of devices within a second preset time period;

[0114] a target air pressure value vector determining module 420, configured to determine, from the second air pressure value vectors, a target air pressure value vector associated with each of the first air pressure value vectors;

[0115] The prediction vector determination module 430 is used to determine the prediction vector of the target device in the third time period according to each of the target air pressure value vectors, and obtain an air pressure prediction result.

[0116] Optionally, the target air pressure value vector determination module 420 is specifically used to: establish an artificial fish school model, and determine the initial parameters of each artificial fish in the artificial fish school model according to each first air pressure value vector; based on the artificial fish school model and each initial parameter, determine the target air pressure value vector related to each first air pressure value vector from the second air pressure value vector.

[0117] Optionally, the initial parameters include the perception distance; accordingly, the target air pressure value vector determination module 420 is specifically used to determine the perception distance of the artificial fish corresponding to each of the first air pressure value vectors according to the dimensions of each of the first air pressure value vectors.

[0118] Optionally, the initial parameters include a moving step length; accordingly, the target air pressure value vector determination module 420 is specifically configured to determine the moving step length based on the following formula:

[0119]

[0120] Where k is the step size adjustment factor, Q V is the correlation coefficient between the target second air pressure value vector and the first air pressure value vector, Q is the correlation coefficient between the current second air pressure value vector and the first air pressure value vector; the target second air pressure value vector is the second air pressure value vector corresponding to the target position determined by the first air pressure value vector based on the perceived distance, and the current second air pressure value vector is the second air pressure value vector corresponding to the position where the first air pressure value vector is located.

[0121] Optionally, the device also includes a prediction accuracy determination module, which is used to obtain the actual air pressure value of the target device in a third time period after obtaining the air pressure prediction result; and determine the prediction accuracy based on the air pressure prediction result and the actual air pressure value.

[0122] Optionally, the prediction vector determination module 430 is specifically used to: generate at least one simulation function according to each of the target air pressure value vectors; and determine the prediction vector of the target device within a third time period based on each of the simulation functions.

[0123] Optionally, the prediction vector determination module 430 is specifically used to: if there are at least two target air pressure value vectors, average the simulation functions corresponding to the at least two target air pressure value vectors to obtain an average simulation function; and determine the prediction vector for the third time period based on the average simulation function.

[0124] The device provided in the above-mentioned embodiments can execute the air pressure prediction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0125] Fig. 9 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Fig. 9 As shown, the device includes:

[0126] one or more processors 510, Figure 5 A processor 510 is taken as an example;

[0127] Memory 520;

[0128] The device may further include: an input device 530 and an output device 440 .

[0129] The processor 510, memory 520, input device 530 and output device 540 in the device may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.

[0130] The memory 520, as a non-transitory computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to a method for predicting air pressure in an embodiment of the present invention. The processor 510 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the memory 520, that is, to implement a method for predicting air pressure in the above method embodiment, namely:

[0131] Determine at least one first air pressure value vector of a target device within a first preset time period, and a second air pressure value vector of a preset number of devices within a second preset time period;

[0132] determining a target air pressure value vector associated with each of the first air pressure value vectors from the second air pressure value vectors;

[0133] According to each of the target air pressure value vectors, a prediction vector of the target device in a third time period is determined, and an air pressure prediction result is obtained.

[0134] The memory 520 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 520 may optionally include a memory remotely arranged relative to the processor 510, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0135] The input device 530 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the computer device. The output device 540 may include a display device such as a display screen.

[0136] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, a method for predicting air pressure provided in an embodiment of the present invention is implemented, that is,

[0137] Determine at least one first air pressure value vector of a target device within a first preset time period, and a second air pressure value vector of a preset number of devices within a second preset time period;

[0138] determining a target air pressure value vector associated with each of the first air pressure value vectors from the second air pressure value vectors;

[0139] According to each of the target air pressure value vectors, a prediction vector of the target device in a third time period is determined, and an air pressure prediction result is obtained.

[0140] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, 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 thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0141] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0142] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0143] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0144] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for predicting air pressure, characterized in that: include: Determine at least one first air pressure value vector of a target device within a first preset time period, and a second air pressure value vector of a preset number of devices within a second preset time period; determining a target air pressure value vector associated with each of the first air pressure value vectors from the second air pressure value vectors; Determine a prediction vector of the target device in a third time period according to each of the target air pressure value vectors, and obtain an air pressure prediction result; The step of determining a target air pressure value vector associated with each of the first air pressure value vectors from the second air pressure value vectors includes: Establishing an artificial fish school model, and determining initial parameters of each artificial fish in the artificial fish school model according to each of the first air pressure value vectors; Based on the artificial fish school model and each of the initial parameters, determining a target air pressure value vector associated with each of the first air pressure value vectors from the second air pressure value vectors; Wherein, the initial parameters include the perception distance; Correspondingly, determining the initial parameters of each artificial fish in the artificial fish school model based on each of the first air pressure value vectors includes: Determining, according to the dimensions of each of the first air pressure value vectors, a perception distance of the artificial fish corresponding to each of the first air pressure value vectors; Wherein, the initial parameters include the moving step length; Correspondingly, determining the initial parameters of each artificial fish in the artificial fish school model based on each of the first air pressure value vectors includes: The moving step length is determined based on the following formula: Where k is the step size adjustment factor, Q V is the correlation coefficient between the target second air pressure value vector and the first air pressure value vector, Q is the correlation coefficient between the current second air pressure value vector and the first air pressure value vector; the target second air pressure value vector is the second air pressure value vector corresponding to the target position determined by the first air pressure value vector based on the perceived distance, and the current second air pressure value vector is the second air pressure value vector corresponding to the position where the first air pressure value vector is located.

2. The method according to claim 1, characterized in that After obtaining the air pressure forecast results, it also includes: Acquiring an actual value of the air pressure of the target device in a third time period; The prediction accuracy is determined based on the air pressure prediction result and the actual air pressure value.

3. The method according to claim 1, characterized in that Determining a prediction vector of the target device in a third time period according to each of the target air pressure value vectors includes: generating at least one simulation function according to each of the target air pressure value vectors; Based on each of the simulation functions, a prediction vector of the target device in a third time period is determined.

4. The method according to claim 3, characterized in that Determining a prediction vector of the target device in a third time period based on each of the simulation functions includes: If there are at least two target air pressure value vectors, averaging the simulation functions corresponding to the at least two target air pressure value vectors to obtain an average simulation function; Based on the average simulation function, a prediction vector for a third time period is determined.

5. A device for predicting air pressure, characterized in that: include: An air pressure value vector determination module, configured to determine at least one first air pressure value vector of a target device within a first preset time period, and a second air pressure value vector of a preset number of devices within a second preset time period; a target air pressure value vector determining module, configured to determine, from the second air pressure value vectors, a target air pressure value vector associated with each of the first air pressure value vectors; A prediction vector determination module, used to determine the prediction vector of the target device in a third time period according to each of the target air pressure value vectors, and obtain an air pressure prediction result; Among them, the target air pressure value vector determination module is specifically used for: Establishing an artificial fish school model, and determining initial parameters of each artificial fish in the artificial fish school model according to each of the first air pressure value vectors; Based on the artificial fish school model and each of the initial parameters, determining a target air pressure value vector associated with each of the first air pressure value vectors from the second air pressure value vectors; Wherein, the initial parameters include the perception distance; Accordingly, the target air pressure value vector determination module is specifically used for: Determining, according to the dimensions of each of the first air pressure value vectors, a perception distance of the artificial fish corresponding to each of the first air pressure value vectors; Wherein, the initial parameters include the moving step length; Accordingly, the target air pressure value vector determination module is specifically used for: The moving step length is determined based on the following formula: Where k is the step size adjustment factor, Q V is the correlation coefficient between the target second air pressure value vector and the first air pressure value vector, Q is the correlation coefficient between the current second air pressure value vector and the first air pressure value vector; the target second air pressure value vector is the second air pressure value vector corresponding to the target position determined by the first air pressure value vector based on the perceived distance, and the current second air pressure value vector is the second air pressure value vector corresponding to the position where the first air pressure value vector is located.

6. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.