A power grid engineering operation and maintenance method and system based on artificial intelligence
By sampling the voltage data and reactive power data in the power grid and using the LOF algorithm for anomaly detection, combined with feature weights and distances, abnormal voltages are identified, solving the problem of grid operation and maintenance lag in the existing technology and achieving a more efficient power grid. Exception identification and handling.
Patent Information
- Application Number
- CN202410918638.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-10
AI Technical Summary
In the existing technology, when using the voltage normal operation threshold to identify abnormal voltage, potential anomalies cannot be discovered in time, resulting in hysteresis in power grid operation and maintenance, affecting the safety and quality of power consumption for users.
Using an artificial intelligence-based method, by sampling voltage data and reactive power data, using the LOF algorithm to detect local outlier factor anomalies, determine the abnormal voltage, and determine the neighborhood side length and K based on the characteristic weight and distance of the data points value to improve the accuracy and real-time performance of abnormal voltage identification.
It can detect potential anomalies earlier, improve the real-time and accuracy of power grid operation and maintenance, ensure users' power safety and quality, and reduce the amount of data and processing time for abnormal voltage identification.
Smart Images

Figure CN118468195B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power grid operation and maintenance, and in particular to a power grid engineering operation and maintenance method and system based on artificial intelligence. Background Art
[0002] With the development of the times, people's lives have become increasingly inseparable from electricity. For ordinary users, voltage stability is an important factor affecting the quality of their electricity use. However, for power grid projects, the load often changes, so failures are inevitable, which in turn affects the safety and quality of users' electricity use. Therefore, in order to ensure the safety and quality of users' electricity use, it is necessary to control the grid voltage in real time, and dispatch special staff to operate and maintain the grid project when the grid voltage is abnormal.
[0003] The patent document with the publication number "CN105305637B" and the name "A distributed power grid-connected alarm system and its operation method" discloses that: the alarm device includes a main control MCU and an information acquisition module connected to the main control MCU, a voltage abnormality alarm module, a frequency change alarm module, a display module, an uplink communication module, a storage module and a power module. When the present invention is in operation, the leakage protection circuit breaker is connected to the power grid side. When the power grid side loses voltage or the frequency changes beyond a certain range, the alarm device can send an alarm message to notify the management personnel to check the operation of the distributed power grid-connected system equipment, thereby improving the safety of the power grid, equipment and operation and maintenance management personnel to a greater extent.
[0004] The above scheme is to determine whether the voltage value exceeds the voltage normal operation threshold by setting the voltage normal operation threshold. When the voltage exceeds the voltage normal operation threshold, an alarm command is sent to the voltage abnormality alarm module. This scheme cannot timely detect potential abnormalities that have not exceeded the voltage normal operation threshold. Only when the potential abnormality develops into an obvious abnormality that exceeds the voltage normal operation threshold can the alarm be triggered, resulting in a certain lag in power grid operation and maintenance. Summary of the invention
[0005] In order to solve the problem that the use of normal voltage operation thresholds to identify abnormal voltages cannot detect potential abnormalities, resulting in a certain lag in power grid operation and maintenance, the present invention provides an artificial intelligence-based power grid engineering operation and maintenance method and system.
[0006] In a first aspect, the present invention provides a power grid engineering operation and maintenance method based on artificial intelligence, which adopts the following technical solutions:
[0007] A power grid engineering operation and maintenance method based on artificial intelligence, comprising the steps of:
[0008] Every The data points consisting of voltage data and reactive power data are sampled once in a period of time to obtain a data set, where Represents the sampling interval; according to the data set before and after each data point The voltage data and reactive power data of the data points are standardized respectively, and the feature weights of the data points are determined according to the standardized voltage data and reactive power data of the data points, and the feature weights are negatively correlated with the absolute values of the standardized voltage data and the standardized reactive power data of the data points; the neighborhood side lengths are determined according to the distances between the data points in the data set and the feature weights of the data points, and the neighborhood side lengths are positively correlated with the distances and the feature weights; the K value is determined according to the number of data points in the data set, the neighborhood side lengths, the range of the voltage data of all the data points in the data set, and the range of the reactive power data, and the K value is positively correlated with the number of data points in the data set and the neighborhood side lengths, and negatively correlated with the range of the voltage data and the range of the reactive power data; the data set is subjected to local outlier factor anomaly detection according to the K value to determine the abnormal voltage, so that the staff can adjust the abnormal voltage and realize the operation and maintenance of the power grid project.
[0009] The effect is as follows: the present invention can identify abnormal voltage through LOF algorithm and find potential abnormalities. Compared with the use of voltage normal operation threshold to identify abnormal voltage, it cannot find potential abnormalities, which makes the power grid operation and maintenance have a certain lag. The present invention can find potential abnormalities earlier and handle them, which improves the real-time performance of power grid operation and maintenance and ensures the power safety and quality of users. The present invention reduces the amount of data set processed by the LOF algorithm by sampling the data points composed of voltage data and reactive power data, improves the recognition efficiency of abnormal voltage, and thus improves the real-time performance of voltage operation and maintenance. The present invention samples the data points before and after each data point in the data set, The voltage data and reactive power data within a period of time determine the feature weight of the data point, and use the feature weight to represent the data point to its previous and next The degree of characterization of data within a period of time makes the neighborhood radius obtained based on the feature weight more representative of the distribution of all data points before sampling, and then makes the obtained K value more adaptable to the distribution of data points, so that the obtained abnormal voltage is more accurate, ensuring the safety and quality of electricity use for users.
[0010] Preferably, the method for obtaining the sampling interval is: each time the voltage data of the current power grid node fluctuates, the average value of the two voltage data before and after the fluctuation is obtained as the representative voltage at each fluctuation; the time length between the moment of each fluctuation of the voltage data and the moment of the last fluctuation is used as the fluctuation interval of each fluctuation; the fluctuation refers to a change in the changing trend of the voltage data; the sampling interval is determined based on the difference between the average value of all representative voltages and the representative voltage at each fluctuation and the fluctuation interval of each fluctuation, and the sampling interval is negatively correlated with the difference and positively correlated with the fluctuation interval.
[0011] The effect is that the present invention performs data sampling according to the fluctuation law of voltage data, and can also reflect the fluctuation law in the sampled data set, so that the recognition accuracy of abnormal voltage is higher.
[0012] Preferably, the sampling interval satisfies the expression:
[0013] ;in, is the sampling interval, is the number of fluctuations of voltage data in the historical period, The voltage data in the historical period The representative voltage of the first fluctuation is The voltage data in the historical period The fluctuation interval of the sub-waves, is a hyperparameter, The natural constant The exponential function with base ; Indicates the absolute value symbol; is a linear normalization function.
[0014] Preferably, the feature weight satisfies the expression:
[0015] ;in, For the data set The feature weight of each data point; For the data set The voltage data corresponding to each data point is standardized; For the data set The reactive power data corresponding to each data point is normalized; The natural constant The exponential function with base ; is a linear normalization function; Represents the absolute value symbol.
[0016] The effect is that the feature weight reflects the degree of characterization of the data point within the D period before and after it, so that the neighborhood radius subsequently obtained according to the feature weight can better represent the distribution of all data points before sampling, thereby improving the accuracy of abnormal voltage recognition.
[0017] Preferably, the feature weight satisfies the expression:
[0018] ;in, For the data set The feature weight of each data point; For the data set The voltage data corresponding to each data point is standardized; For the data set The reactive power data corresponding to each data point is normalized; For the data set Data points before and after The number of fluctuations in voltage data within a period of time; For the data set Data points before and after The number of fluctuations in reactive power data within a period of time; is a linear normalization function.
[0019] Preferably, the method for obtaining the neighborhood edge length is: for each data point in the data set, obtain the distance between the data point with the shortest distance to the data point in the data set and the data point, as the minimum distance of the data point; use the feature weight of the data point as the weight, perform weighted summation of the minimum distances of all data points in the data set, round up the result, and obtain the neighborhood edge length.
[0020] The effect is that the distance between data points in the data set can reflect the density of the data points to a certain extent. The present invention determines the neighborhood edge length based on the feature weights of the data points and the distance between the data points, so that the neighborhood edge length can reflect the distribution of all data points before sampling.
[0021] Preferably, the K value satisfies the expression:
[0022] ;in, The K value used by the LOF algorithm; is the neighborhood edge length; is the number of data points in the data set; is the maximum value of the voltage data of all data points in the data set; is the minimum value of the voltage data of all data points in the data set; is the maximum value of the reactive power data of all data points in the data set; It is the minimum value of reactive power data of all data points in the data set; is the ceiling function, is a hyperparameter.
[0023] The effect is that the present invention combines the neighborhood side length to obtain the K value, so that the obtained K value can adapt to the distribution of data points, thereby making the subsequent abnormal data points obtained based on the K value more accurate.
[0024] In a second aspect, the present invention provides an artificial intelligence-based power grid engineering operation and maintenance system, which adopts the following technical solutions:
[0025] A power grid engineering operation and maintenance system based on artificial intelligence includes: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned power grid engineering operation and maintenance method based on artificial intelligence is implemented.
[0026] By adopting the above technical solution, the above-mentioned artificial intelligence-based power grid engineering operation and maintenance method is generated into a computer program and stored in a memory to be loaded and executed by a processor, so that a terminal device is made according to the memory and the processor for easy use.
[0027] The present invention has the following technical effects: the present invention can detect potential anomalies in the power grid earlier and handle them, thereby improving the real-time performance of power grid operation and maintenance and ensuring the safety and quality of electricity use by users; the present invention ensures the accuracy of abnormal voltage recognition while improving the efficiency of abnormal voltage recognition, thereby improving the accuracy and real-time performance of power grid operation and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts.
[0029] Figure 1 It is a flow chart of an artificial intelligence-based power grid engineering operation and maintenance method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0031] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.
[0032] The embodiment of the present invention discloses a power grid engineering operation and maintenance method based on artificial intelligence, referring to Figure 1 , comprising steps S1 to S6:
[0033] S1: Collect voltage data and reactive power data generated during the operation of the current power grid node.
[0034] Affected by many factors, if the voltage value is controlled only according to the change of real-time voltage, it may not be possible to respond to the change of voltage in time, resulting in unsatisfactory voltage control effect. The distribution of reactive power plays a decisive role in the magnitude of voltage. Therefore, the present invention uses a data acquisition and monitoring control system (Supervisory Control and Data Acquisition, SCADA) to collect the voltage data and reactive power data generated during the operation of the current power grid node in real time, so as to control the power grid voltage through the voltage data and reactive power data in the future.
[0035] S2: Sample the data points consisting of voltage data and reactive power data to obtain a data set.
[0036] Local Outlier Factor (LOF) is an abnormal monitoring algorithm that can be used to identify abnormal voltages during the operation of a power grid. Since voltage data is generated all the time during the operation of a power grid, the amount of data collected by the SCADA system is very large, and the LOF algorithm requires a large amount of distance calculations to be performed on the data points in the data set. If the amount of data in the data set used by the LOF algorithm is too large, the efficiency of identifying abnormal voltages will be affected. Therefore, the present invention samples the collected data to form a data set so that the LOF algorithm can be used to identify abnormal voltages during the operation of a power grid.
[0037] In one embodiment, a sampling interval D is preset, and the voltage data and reactive power data at each moment in the historical period are combined into a two-dimensional data point. Sampling is performed once in a certain period of time to obtain a data set. The implementer can set the sampling interval according to the actual implementation situation, for example The historical period in the present invention is the 7 days before the current time, and the real-time personnel can set the historical period according to the actual situation.
[0038] It should be noted that the fluctuation of voltage data has a certain regularity. Data sampling is performed according to the fluctuation law of voltage data, and the fluctuation law can also be reflected in the sampled data set. Therefore, in another embodiment of the present invention, the data set used by the LOF algorithm is determined according to the changes in the collected voltage data, thereby improving the efficiency of identifying abnormal voltage.
[0039] In another embodiment, the number of fluctuations of all voltage data generated by the current power grid node in the historical period is counted, and the number of fluctuations refers to the number of times the change trend of the voltage data changes, for example, when the voltage data changes from increasing to decreasing or unchanged, the change trend of the voltage data changes once, when the voltage data changes from decreasing to increasing or unchanged, the change trend of the voltage data changes once, and when the voltage data changes from unchanged to increasing or decreasing, the change trend of the voltage data changes once. Specifically, for example, the voltage data {220, 220, 202, 201, 203} is unchanged from 220 to 220, decreasing from 220 to 202, and the change trend changes once, decreasing from 220 to 202 and then to 201, increasing from 201 to 203, and the change trend changes once, so the number of fluctuations of the voltage data {220, 220, 202, 201, 203} is 2.
[0040] Get the average value of the two voltage data before and after the fluctuation of all voltage data generated by the current grid node in the historical period as the representative voltage of each fluctuation. For example, for the voltage data {220, 220, 202, 201, 203}, there is a fluctuation between 220 and 202, then the representative voltage at this time is , a fluctuation occurs between 201 and 203, then the representative voltage at this time is .
[0041] The time length between each fluctuation of all voltage data generated by the current grid node in the historical period and the time of the last fluctuation is taken as the fluctuation interval of each fluctuation. For example, if the current fluctuation time is 12:00 and the last fluctuation time is 11:55, then the fluctuation interval of the current fluctuation is 5 minutes. It should be noted that if there is no last fluctuation before the first fluctuation, the time length between the time corresponding to the first voltage data in the historical period and the time of the first fluctuation is taken as the fluctuation interval of the first fluctuation.
[0042] Determine the sampling interval based on the number of fluctuations of all voltage data in the historical period, the representative voltage at each fluctuation, and the fluctuation interval:
[0043] ;
[0044] in, is the sampling interval, is the number of fluctuations of voltage data in the historical period, The voltage data in the historical period The representative voltage of the first fluctuation is The voltage data in the historical period The fluctuation interval of the sub-waves, is a hyperparameter used to adjust The impact on the sampling interval can be set by the implementer according to the actual implementation situation, for example , The natural constant The exponential function with base ; is a linear normalization function.
[0045] When the fluctuation interval The smaller the voltage fluctuation, the more frequent it is. The sampling interval should be reduced to better capture the data characteristics. The larger it is, the less frequent the voltage fluctuation is. In this case, the sampling interval should be increased to capture data features while reducing the amount of data in the data set and improving the operational efficiency of the LOF algorithm.
[0046] Represents the average level of normalized voltage value when voltage data fluctuates. The difference between the normalized value of the representative voltage at the time of the fluctuation and the average level The larger the value, the more abnormal the voltage may be. The sampling interval needs to be reduced to better capture the data characteristics. The smaller the difference between the normalized value of the representative voltage during the fluctuation and the average level, the more likely the voltage change is to be in a relatively stable state, and the possibility of abnormal conditions is relatively low. Therefore, it is necessary to increase the sampling interval to reduce the amount of data in the data set and improve the computational efficiency of the LOF algorithm.
[0047] The voltage data and reactive power data at each moment in the historical period form a two-dimensional data point. Sampling is performed once in a period of time to form a data set.
[0048] At this point, the data set has been obtained.
[0049] S3: Based on the data before and after each data point in the data set The voltage data and reactive power data within a period of time determine the feature weights of the data points.
[0050] Since the sampling interval The selected data points can only represent the independent characteristics of the data points, but cannot represent the characteristics of the voltage data and reactive power data in the vicinity of a period of time. The voltage data and reactive power data within a period of time determine the feature weight of each data point in the data set, and use the feature weight to reflect the influence of each data point on its previous and next data points. The degree of characterization of voltage data and reactive power data within a period of time. A period of time is centered at the time of the data point and lasts for for a period of time.
[0051] In one embodiment, the data before and after each data point in the data set are The voltage data and reactive power data within a period of time are used to determine the feature weight of each data point in the data set:
[0052] ;
[0053] in, For the data set The feature weight of each data point; For the data set The voltage data corresponding to each data point; For the data set Data points before and after The average value of all voltage data within a period of time; For the data set Data points before and after The variance of all voltage data within a period of time; For the data set Reactive power data corresponding to each data point; For the data set Data points before and after The average value of all reactive power data within a period of time; For the data set Data points before and after The variance of all reactive power data within a period of time; The natural constant The exponential function with base ; is a linear normalization function; Represents the absolute value symbol.
[0054] Express Standardization reflects the The voltage data corresponding to the data points before and after The difference between the mean values of all voltage data within a period of time. The larger the value, the more Data points before and after The weaker the expressive power of the data features of the voltage data within a period of time, the smaller the feature weight of the data point; conversely, The smaller the value, the more Data points before and after The stronger the expressive power of the data features of the voltage data within a period of time, the greater the feature weight of the data point. In the process of calculating the feature weight of the data point, the reactive power data part The principle of the voltage data part The same is not repeated here.
[0055] In another embodiment, based on the data before and after each data point in the data set The voltage data and reactive power data within a period of time are used to determine the feature weight of each data point in the data set:
[0056] ;
[0057] in, For the data set The feature weight of each data point; For the data set The voltage data corresponding to each data point; For the data set Data points before and after The average value of all voltage data within a period of time; For the data set Data points before and after The variance of all voltage data within a period of time; For the data set Data points before and after The number of fluctuations in voltage data within a period of time; For the data set Reactive power data corresponding to each data point; For the data set Data points before and after The average value of all reactive power data within a period of time; For the data set Data points before and after The variance of all reactive power data within a period of time; For the data set Data points before and after The number of fluctuations in reactive power data within a period of time; The natural constant The exponential function with base ; is a linear normalization function.
[0058] To some extent, it represents the Data points before and after The complexity of the characteristics of voltage data within a period of time is Adding 1 is to prevent When it is 0, it leads to is 1. The larger the value, the more Data points before and after The more frequently the voltage data changes within a period of time, the more likely the voltage data corresponding to the data point is to deviate from the previous and next data points. The characteristics of the voltage data within a period of time. Data points before and after The weaker the ability to express the data characteristics of the voltage data within a period of time, the weaker the ability to express the data characteristics of the voltage data within a period of time. right Make corrections when The bigger the The greater the degree of correction, the On the contrary, when The smaller the time, the The smaller the correction, the The smaller the reduction, the The feature weight of a data point depends more on .
[0059] In the process of calculating the characteristic weight, the reactive power data part The principle of the voltage data part The same is not repeated here.
[0060] At this point, the feature weights of each data point in the data set are obtained.
[0061] S4: Determine the neighborhood edge length based on the distance between data points in the data set and the feature weights of the data points.
[0062] The distance between data points in a data set can reflect the density of data points to a certain extent. Therefore, the present invention determines the neighborhood edge length based on the feature weights of the data points and the distance between the data points, so that the neighborhood edge length can reflect the distribution of all data points before sampling, so as to subsequently determine the K value of the LOF algorithm based on the distribution of the data points.
[0063] Specifically, the neighborhood edge length is determined based on the distance between data points in the data set and the feature weights of the data points:
[0064] ;
[0065] in, is the neighborhood edge length; For the data set The feature weight of each data point; For the data set to The data point with the smallest distance to the first data point The distance between data points, is the number of data points in the data set, The present invention uses Euclidean distance to calculate the distance between data points, and implementers may also use other distance calculation methods, such as Manhattan distance.
[0066] To a certain extent, it can reflect the The distribution distance feature of each data point relative to other data points, feature weight Reflects the data set Data points before and after The ability to express the data characteristics of voltage data within a period of time. The larger the value, the The more data points represent the The data characteristics of the voltage data within a period of time, on the contrary, when The smaller the data set, the The more data points, the less they can represent the past and the present The data features of the voltage data within a period of time. Therefore, the feature weight As the data set The weight of each data point is used to perform a weighted summation of the distribution distance characteristics of all data points in the data set. Reflects the distribution density of all data points. The larger the value, the larger the distance between data points. A larger neighborhood edge length should be selected to adapt to the data. The smaller the value, the smaller the distance between data points and the denser the distribution of data points. In order to avoid identifying abnormal points as normal data points, a smaller neighborhood edge length should be selected.
[0067] At this point, the neighborhood edge length is obtained.
[0068] S5: Determine the K value according to the number of data points in the data set, the length of the neighborhood edge, the range of the voltage data of all data points in the data set, and the range of the reactive power data.
[0069] The K value in the LOF algorithm is usually set by the implementer based on experience. When the K value is set too small, normal data points may be mistakenly identified as abnormal data points. When the K value is set too large, the real abnormal data points may be missed. The neighborhood side length reflects the distribution of data points to a certain extent. Therefore, the present invention combines the neighborhood side length to obtain the K value, so that the obtained K value can adapt to the distribution of data points, thereby making the subsequent abnormal data points obtained based on the K value more accurate.
[0070] Specifically, the K value is determined based on the number of data points in the data set, the length of the neighborhood edge, the range of voltage data of all data points in the data set, and the range of reactive power data:
[0071] ;
[0072] in, The K value used by the LOF algorithm; is the neighborhood edge length; is the number of data points in the data set; is the maximum value of the voltage data of all data points in the data set; is the minimum value of the voltage data of all data points in the data set; is the maximum value of the reactive power data of all data points in the data set; It is the minimum value of reactive power data of all data points in the data set; is the ceiling function, is a hyperparameter used to adjust The impact of the K value can be set by the implementer according to the actual implementation situation, for example .
[0073] is the range of the voltage data of all data points in the data set, is the range of reactive power data of all data points in the data set; reflects the distribution range of data points in the data set. As a unit range, It reflects the theoretical distribution number of data points in the data set within a unit range. When the theoretical distribution number is larger, the data points are distributed more densely. At this time, a larger K value should be set to avoid normal data points being mistakenly identified as abnormal data points. When the theoretical distribution number is smaller, the data points are distributed more sparsely. At this time, a smaller K value should be set to avoid truly abnormal data points from being missed.
[0074] At this point, the K value of the LOF algorithm is obtained.
[0075] S6: Perform local outlier factor anomaly detection on the data set according to the size of K value and determine the abnormal voltage so that the staff can adjust the abnormal voltage and realize the operation and maintenance of the power grid project.
[0076] The data set is detected for anomalies through the LOF algorithm to obtain the Kth local outlier factor of the data point at the current moment in the data set. If the Kth local outlier factor of the data point at the current moment is greater than 1, it means that the density of the data point at the current moment is less than the density of its neighborhood data points. The data point at the current moment is an abnormal data point, and the voltage at the current moment is in an abnormal state. At this time, the relevant staff is notified to control the voltage by adjusting the power grid-related equipment so that the voltage data returns to normal.
[0077] An embodiment of the present invention further discloses an artificial intelligence-based power grid engineering operation and maintenance system, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, an artificial intelligence-based power grid engineering operation and maintenance method according to the present invention is implemented.
[0078] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and their configuration and functions are known in the art, so they will not be described in detail here.
[0079] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
[0080] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A power grid engineering operation and maintenance method based on artificial intelligence, characterized in that: include: Every The data points consisting of voltage data and reactive power data are sampled once in a period of time to obtain a data set, where represents the sampling interval; According to the data set before and after each data point The voltage data and reactive power data of the data points are standardized respectively according to the voltage data and reactive power data of the data points after the standardization, and the feature weight of the data points is determined according to the standardized voltage data and reactive power data of the data points, and the feature weight is negatively correlated with the absolute value of the standardized voltage data and the absolute value of the standardized reactive power data of the data points; the neighborhood side length is determined according to the distance between the data points in the data set and the feature weight of the data points, and the acquisition method is: for each data point in the data set, the distance between the data point with the smallest distance to the data point in the data set and the data point is obtained as the minimum distance of the data point; the feature weight of the data point is used as the weight, and the minimum distance of all data points in the data set is weighted summed, and the result is rounded up to obtain the neighborhood side length; the neighborhood side length is positively correlated with the distance and the feature weight; According to the number of data points in the data set, the length of the neighborhood edge, the range of the voltage data of all data points in the data set, and the range of the reactive power data, the K value is determined to satisfy the expression: ; in, The K value used by the LOF algorithm; is the neighborhood edge length; is the number of data points in the data set; is the maximum value of the voltage data of all data points in the data set; is the minimum value of the voltage data of all data points in the data set; is the maximum value of the reactive power data of all data points in the data set; It is the minimum value of reactive power data of all data points in the data set; is the ceiling function, is a hyperparameter; the K value is positively correlated with the number of data points in the data set and the length of the neighborhood edge, and is negatively correlated with the range of the voltage data and the range of the reactive power data; According to the K value, the data set is subjected to local outlier factor anomaly detection to determine the abnormal voltage so that the staff can adjust the abnormal voltage and realize the operation and maintenance of the power grid project.
2. According to the artificial intelligence-based power grid engineering operation and maintenance method of claim 1, it is characterized in that: The method for obtaining the sampling interval is: Obtain the average value of the two voltage data before and after the fluctuation of the voltage data of the current power grid node each time as the representative voltage of each fluctuation; take the time length between the moment of each fluctuation of the voltage data and the moment of the last fluctuation as the fluctuation interval of each fluctuation; the fluctuation refers to the change trend of the voltage data; The sampling interval is determined according to the difference between the average value of all representative voltages and the representative voltage at each fluctuation and the fluctuation interval of each fluctuation, wherein the sampling interval is negatively correlated with the difference and positively correlated with the fluctuation interval.
3. The power grid engineering operation and maintenance method based on artificial intelligence according to claim 2 is characterized in that: The sampling interval satisfies the expression: ; in, is the sampling interval, is the number of fluctuations of voltage data in the historical period, The voltage data in the historical period The representative voltage of the first fluctuation is The voltage data in the historical period The fluctuation interval of the sub-waves, is a hyperparameter, The natural constant The exponential function with base ; Indicates the absolute value symbol; is a linear normalization function.
4. The power grid engineering operation and maintenance method based on artificial intelligence according to claim 1 is characterized in that: The feature weights satisfy the expression: ; in, For the data set The feature weight of each data point; For the data set The voltage data corresponding to each data point is standardized; For the data set The reactive power data corresponding to each data point is normalized; The natural constant The exponential function with base ; is a linear normalization function; Represents the absolute value symbol.
5. The power grid engineering operation and maintenance method based on artificial intelligence according to claim 3 is characterized in that: The feature weights satisfy the expression: ; in, For the data set The feature weight of each data point; For the data set The voltage data corresponding to each data point is standardized; For the data set The reactive power data corresponding to each data point is normalized; For the data set Data points before and after The number of fluctuations in voltage data within a period of time; For the data set Data points before and after The number of fluctuations in reactive power data within a period of time; is a linear normalization function.
6. An artificial intelligence-based power grid engineering operation and maintenance system, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, an artificial intelligence-based power grid engineering operation and maintenance method according to any one of claims 1 to 5 is implemented.
