Photovoltaic power station safety early warning method based on signal processing
By obtaining current sequence data and weight coefficients in photovoltaic power plants, weighted moving average filtering and anomaly detection are performed to solve the problem of noise interference and improve the accuracy and robustness of safety warnings for photovoltaic power plants.
Patent Information
- Application Number
- CN202410596479.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-27
AI Technical Summary
There is noise and interference in existing photovoltaic power plant data, which affects the accuracy of safety warning results.
By obtaining the current sequence data and the optimal weight coefficient sequence within a set time period, weighted moving average filtering is performed to obtain the optimal current sequence, and abnormality detection is performed on it to achieve safety early warning of photovoltaic power plants.
It improves the early warning capability of photovoltaic power stations, enhances the accuracy of real-time data monitoring and early warning, reduces the impact of noise and interference on detection results, and improves robustness and adaptability.
Smart Images

Figure CN118554877A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electrical digital data processing, and in particular to a photovoltaic power station safety early warning method based on signal processing. Background Art
[0002] Photovoltaic power stations are facilities that use solar energy to generate electricity. They play an important role in providing clean energy, reducing dependence on traditional energy, and promoting sustainable development. In order to achieve comprehensive real-time monitoring and early warning of photovoltaic power station systems, improve the accuracy and efficiency of monitoring, reduce accident risks, and ensure the safe operation of photovoltaic power stations, artificial intelligence algorithms are used to achieve safety detection and early warning of photovoltaic power stations.
[0003] The Chinese patent, application publication number CN111010083A, the invention name of the patent application document is "A comprehensive early warning system for photovoltaic power station faults", which discloses that the on-site equipment and environmental parameters of the photovoltaic power station are collected, the health of the photovoltaic power station is measured, and the fault early warning is achieved through historical fault information and fault detection; however, the collected data contains noise and interference, which will affect the accuracy of the safety warning results. Summary of the invention
[0004] The purpose of the present invention is to address the problem that the data collected from photovoltaic power stations in the prior art contain noise and interference that will affect the accuracy of safety warning results. A photovoltaic power station safety warning method based on signal processing is proposed, which obtains current sequence data and an optimal weight coefficient sequence within a set time period, performs weighted moving average filtering on the current sequence data to obtain an optimal current sequence, performs anomaly detection on the optimal current sequence, and obtains anomaly results to achieve photovoltaic power station safety warning; the early warning capability of the photovoltaic power station is improved, and the real-time data of the photovoltaic power station system can be pre-processed to perform real-time monitoring and early warning, thereby improving the accuracy of anomaly detection.
[0005] In order to solve the above technical problems, the present invention provides a photovoltaic power station safety early warning method based on signal processing, comprising the following steps:
[0006] S1. Obtaining current sequence data and optimal weight coefficient sequence within a set time period;
[0007] S2. Performing weighted moving average filtering on the current sequence data based on the optimal weight coefficient sequence to obtain an optimal current sequence;
[0008] S3. Perform abnormality detection on the optimal current sequence to obtain abnormal results, so as to achieve safety early warning of the photovoltaic power station.
[0009] Preferably, the step of obtaining the optimal weight coefficient sequence comprises the following steps:
[0010] Sa, setting an initial weight coefficient sequence, wherein each initial weight coefficient in the initial weight coefficient sequence corresponds one-to-one to each current data in the current sequence data;
[0011] Sb, performing weighted moving average filtering on the current sequence data through the initial weight coefficient sequence to obtain an initial filtered current sequence;
[0012] Sc, obtaining the average error of the absolute value of the difference between the current sequence data and the initial filtered current sequence and obtaining the variance data according to the initial filtered current sequence;
[0013] Sd, constructing an objective function based on the mean error and variance data;
[0014] Se. Adjust the initial weight coefficient. When the value of the objective function is the maximum, the initial weight coefficient sequence corresponding to the maximum value of the objective function is used as the optimal weight coefficient sequence.
[0015] Preferably, the Sb comprises the following steps:
[0016] Sb1, set sliding empty window;
[0017] Sb2, based on the sliding empty window, adjusting the size of the sliding empty window, selecting the initial weight coefficient, and filtering the corresponding current data based on the initial weight coefficient to obtain initial filtered current data;
[0018] Sb3. Based on the initial filtered current data, an initial filtered current sequence is obtained.
[0019] Preferably, the variance data includes within-group variance and between-group variance.
[0020] As a preference, the process of obtaining the within-group variance and the between-group variance is as follows:
[0021] Sa, dividing the initial filtered current sequence to obtain at least two groups of local current sequences;
[0022] Sb, take the sum of the variances of the local current series as the within-group variance and calculate the mean of the local current series of each group, and take the variance of all means as the between-group variance.
[0023] Preferably, the objective function is:
[0024]
[0025] Among them, S is the mean error, Ln is the within-group variance, and Lj is the between-group variance.
[0026] Preferably, the method for dividing the initial filtered current sequence is a K-means clustering algorithm.
[0027] Preferably, the process of performing abnormality detection on the optimal current sequence to obtain an abnormality result is:
[0028] S31, taking each current data in the optimal current sequence as a current data point, screening the current data points to obtain core current data points;
[0029] S32, obtaining the reachable distance of each core current data point;
[0030] S33, based on the reachable distance, obtaining the local reachable density of each current data point, and then obtaining the local outlier factor of each current data point;
[0031] S34. Based on the local outlier factor, determine whether the current data point is an abnormal point, thereby obtaining an abnormality detection result.
[0032] Preferably, if the local outlier factor of the current data point is greater than a preset value, the current data point is an abnormal point; if the local outlier factor of the current data point is less than or equal to the preset value, the current data point is a normal point.
[0033] Preferably, before obtaining the optimal current sequence, the optimal weight coefficients are screened to obtain a valid optimal weight coefficient sequence.
[0034] Beneficial effects of the present invention:
[0035] 1. The present invention obtains current sequence data and optimal weight coefficient sequence within a set time period, performs weighted moving average filtering on the current sequence data to obtain the optimal current sequence, performs abnormality detection on the optimal current sequence, and obtains abnormal results to achieve safety early warning of photovoltaic power stations; it improves the early warning capability of photovoltaic power stations, can pre-process real-time data of photovoltaic power station systems, perform real-time monitoring and early warning, and thus improve the accuracy of abnormality detection.
[0036] 2. The present invention pre-sets initial weight coefficients that correspond one-to-one to the collected current data, thereby obtaining an initial weight coefficient sequence corresponding to the current sequence. When filtering, it can ensure that each current data corresponds to an initial weight coefficient to achieve filtering of each current data, and in the process of weighted moving average filtering, by analyzing the data before and after filtering, the average error and variance data are obtained to construct the objective function; the initial weight coefficient sequence is adjusted according to the value feedback of the objective function to obtain the optimal weight coefficient sequence, and the optimal weight coefficient sequence is used to filter and denoise the current sequence of each photovoltaic panel detected in the photovoltaic power station, thereby improving the accuracy of the current data, and further improving the accuracy of abnormal classification of the current data in the filtered optimal current sequence.
[0037] 3. The objective function in the present invention may be affected by noise, measurement error or other uncertain factors. By adjusting the initial weight coefficient sequence according to the value feedback of the objective function and dynamically adjusting the weight coefficient according to the feedback of the objective function, the algorithm can better cope with these uncertain factors, thereby improving robustness and adaptability.
[0038] 4. When filtering the collected current sequence, the present invention can determine the validity of each current data during the filtering process by setting the initial weight coefficient corresponding to each current data, thereby avoiding the problem of information loss caused by the rigid filtering effect brought about by the use of fixed weight coefficients. After filtering, it is possible to construct an objective function based on the current data before and after filtering, adjust the initial weight coefficient corresponding to the filtering, and obtain the optimal weight coefficient, so as to filter the current sequence using the optimal weight coefficient, accurately denoise the current sequence, and improve the accuracy of subsequent abnormal detection of the denoised current sequence.
[0039] 5. The present invention can remove some noise components that have little effect on the results by eliminating the optimal weight coefficients that are less than the weight coefficient threshold in the optimal weight coefficient sequence, so that the final result is more focused on the current data that has a significant impact on the overall trend, thereby improving the stability and efficiency of the filtering process and preventing problems such as numerical overflow caused by some smaller weights. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating preferred embodiments and are not to be considered as limiting the present invention. Also, the same reference symbols are used throughout the drawings to represent the same parts.
[0041] Figure 1 It is a flow chart of the photovoltaic power station safety early warning method based on signal processing of the present invention;
[0042] Figure 2 It is a schematic diagram of the present invention. DETAILED DESCRIPTION
[0043] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation method described herein is only an optimal embodiment of the present invention, which is only used to explain the present invention and does not limit the scope of protection of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0044] The present invention aims at the problem that when performing abnormal warning of current data of a photovoltaic power station, the collected current data may contain noise and interference, which may cause inaccuracy in the subsequent abnormal warning detection process. Therefore, a photovoltaic power station safety warning method and system based on artificial intelligence is proposed, that is, the collected current data is denoised in advance, and abnormal data can be more accurately identified in subsequent abnormal detection to achieve safety warning of the photovoltaic power station.
[0045] Example 1: Figure 1 As shown, the photovoltaic power station safety early warning method based on signal processing includes the following steps:
[0046] S1. Obtain current sequence data and optimal weight coefficient sequence within a set time period.
[0047] Specifically, obtaining the optimal weight coefficient sequence includes the following steps:
[0048] Sa, setting an initial weight coefficient sequence, wherein each initial weight coefficient in the initial weight coefficient sequence corresponds one-to-one to each current data in the current sequence data;
[0049] Sb, performing weighted moving average filtering on the current sequence data through the initial weight coefficient sequence to obtain an initial filtered current sequence;
[0050] Sc, obtaining the average error of the absolute value of the difference between the current sequence data and the initial filtered current sequence and obtaining the variance data according to the initial filtered current sequence;
[0051] Sd, constructing an objective function based on the mean error and variance data;
[0052] Se. Adjust the initial weight coefficient. When the value of the objective function is the maximum, the initial weight coefficient sequence corresponding to the maximum value of the objective function is used as the optimal weight coefficient sequence.
[0053] This embodiment obtains current sequence data and optimal weight coefficient sequence within a set time period, performs weighted moving average filtering on the current sequence data to obtain the optimal current sequence, performs abnormality detection on the optimal current sequence, and obtains abnormal results to achieve safety early warning of the photovoltaic power station; it improves the early warning capability of the photovoltaic power station, can pre-process the real-time data of the photovoltaic power station system, and perform real-time monitoring and early warning, thereby improving the accuracy of abnormality detection.
[0054] Specifically, Sb includes the following steps:
[0055] Sb1, set sliding empty window;
[0056] Sb2, based on the sliding empty window, adjusting the size of the sliding empty window, selecting the initial weight coefficient, and filtering the corresponding current data based on the initial weight coefficient to obtain initial filtered current data;
[0057] Sb3. Based on the initial filtered current data, an initial filtered current sequence is obtained.
[0058] Specifically, variance data includes within-group variance and between-group variance.
[0059] Specifically, the process of obtaining the within-group variance and between-group variance is:
[0060] Sa, dividing the initial filtered current sequence to obtain at least two groups of local current sequences;
[0061] Sb, take the sum of the variances of the local current series as the within-group variance and calculate the mean of the local current series of each group, and take the variance of all means as the between-group variance.
[0062] Specifically, the objective function is:
[0063] Among them, S is the mean error, Ln is the within-group variance, and Lj is the between-group variance.
[0064] In this embodiment, the objective function may be affected by noise, measurement error or other uncertain factors. By adjusting the initial weight coefficient sequence according to the value feedback of the objective function and dynamically adjusting the weight coefficient according to the feedback of the objective function, the algorithm can better cope with these uncertain factors, thereby improving robustness and adaptability.
[0065] Specifically, the method for dividing the initial filtered current sequence is a K-means clustering algorithm.
[0066] Specifically, before obtaining the optimal current sequence, the optimal weight coefficients are screened to obtain a valid optimal weight coefficient sequence.
[0067] S2. Perform weighted moving average filtering on the current sequence data based on the optimal weight coefficient sequence to obtain an optimal current sequence.
[0068] S3. Perform abnormality detection on the optimal current sequence to obtain abnormal results, so as to achieve safety early warning of the photovoltaic power station.
[0069] Specifically, the process of performing abnormal detection on the optimal current sequence to obtain abnormal results is as follows:
[0070] S31, taking each current data in the optimal current sequence as a current data point, screening the current data points to obtain core current data points;
[0071] S32, obtaining the reachable distance of each core current data point;
[0072] S33, based on the reachable distance, obtaining the local reachable density of each current data point, and then obtaining the local outlier factor of each current data point;
[0073] S34. Based on the local outlier factor, determine whether the current data point is an abnormal point, thereby obtaining an abnormality detection result.
[0074] Specifically, if the local outlier factor of the current data point is greater than a preset value, the current data point is an abnormal point; if the local outlier factor of the current data point is less than or equal to the preset value, the current data point is a normal point.
[0075] Specifically, before obtaining the optimal current sequence, the optimal weight coefficients are screened to obtain a valid optimal weight coefficient sequence.
[0076] This embodiment pre-sets initial weight coefficients that correspond one-to-one to the collected current data, thereby obtaining an initial weight coefficient sequence corresponding to the current sequence. When filtering, it can ensure that each current data corresponds to an initial weight coefficient to achieve filtering of each current data, and in the process of weighted moving average filtering, by analyzing the data before and after filtering, the average error and variance data are obtained to construct the objective function; the initial weight coefficient sequence is adjusted according to the value feedback of the objective function to obtain the optimal weight coefficient sequence, and the optimal weight coefficient sequence is used to filter and denoise the current sequence of each photovoltaic panel detected in the photovoltaic power station, thereby improving the accuracy of the current data, and further improving the accuracy of abnormal classification of the current data in the filtered optimal current sequence.
[0077] Furthermore, Example 2 is an extension of Example 1, and is specifically as follows: Figure 1 As shown, this embodiment provides a photovoltaic power station safety early warning method based on signal processing, including:
[0078] Specifically, Figure 1 As shown, a photovoltaic power station safety early warning method based on artificial intelligence in this embodiment includes the following steps:
[0079] At step S1, the current sequence within the set time period is collected. Specifically, a current sensor is installed on each photovoltaic panel in the photovoltaic power station, and the current data of each photovoltaic panel in the photovoltaic power station is collected for the set time period, wherein the current data is collected at a set time interval and a current sequence is obtained. It can be understood that within one hour, the current data of the current photovoltaic panel is collected at a set time interval of 1 minute, and a current sequence containing 60 current data is obtained. If there are 100 photovoltaic panels in the photovoltaic power station, 100 current sequences can be obtained.
[0080] In step S2, a pre-acquired optimal weight coefficient sequence is used to perform weighted moving average filtering on the current sequence to obtain a filtered optimal current sequence.
[0081] It should be noted that for a photovoltaic panel in a photovoltaic power station, the detection of the current sensor may be affected by various environmental factors and cause fluctuations, which may lead to false alarms or missed alarms. In order to improve the reliability of the data and facilitate more accurate monitoring and analysis of the working status of the photovoltaic panel, weighted moving average filtering of the collected current sequence can effectively smooth out these fluctuations, thereby obtaining more stable and reliable current data.
[0082] In this embodiment, when performing weighted moving average filtering, it is necessary to determine the optimal weight coefficient sequence to obtain more stable and reliable current data. Specifically, the process of obtaining the optimal weight coefficient sequence in this embodiment is:
[0083] Step S21, setting an initial weight coefficient sequence, wherein each initial weight coefficient in the initial weight coefficient sequence corresponds one-to-one to each current data in the current sequence; using the initial weight coefficient sequence to perform weighted moving average filtering on the current sequence to obtain an initial filtered current sequence.
[0084] The initial weight coefficients in the initial weight coefficient sequence in this embodiment are randomly set, and the initial weight ordinal numbers in the initial weight coefficient sequence correspond one-to-one to the current data in the current sequence.
[0085] In this embodiment, when performing weighted moving average filtering, a sliding empty window is set, and based on the size of the sliding empty window, the initial weight coefficient in the initial weight coefficient sequence is selected, and the corresponding current data is filtered based on the selected initial weight coefficient to obtain the filtered current data, and then the current sequence after the initial filtering is obtained.
[0086] It can be understood that, assuming that the collected current sequence is C1 (A1, A2, ..., A N ), the initialization weight coefficient sequence is Q1(a1, a2, ..., a N), where: the number of initial weight coefficients in the initial weight coefficient sequence is consistent with the number of current data in the current sequence, both of which are N. Then the size of the sliding empty window can be adjusted according to the actual situation on site. The value range of the initial weight coefficient is 0<a i <1, where a i is the i-th initial weight coefficient. When the sliding empty window size is 1×m (m=3), then when filtering the i-th data point in the current sequence, the corresponding initial weight coefficient involved in the calculation is (a i-1 、a i 、a i+1 ), when filtering the i+1th data point in the current sequence, the initial weight coefficient corresponding to the calculation is (a i 、a i+1 、a i+2 ).
[0087] The size of the sliding window may be set according to actual conditions.
[0088] In this embodiment, an initial weight coefficient sequence is obtained by assigning an initial weight coefficient to each current data in the current sequence. When performing weighted moving average filtering, the initial weight coefficient and the corresponding current data in the sliding empty window can be obtained according to the size of the sliding empty window, that is, each sliding empty window has a corresponding initial weight coefficient, and the initial weight coefficient changes with the movement of the sliding empty window. In this way, when filtering, compared with the window with weight coefficient in the prior art (when filtering, the weight coefficient in the window is unchanged from beginning to end), this embodiment can improve the accuracy of subsequent abnormal classification while retaining valid data because the initial weight coefficient in the sliding empty window is constantly changing.
[0089] Step S22, obtaining the average error of the absolute value of the difference between the current sequence and the current sequence after initial filtering; and obtaining variance data according to the current sequence after initial filtering.
[0090] The variance data in this embodiment includes intra-group variance and inter-group variance. Specifically, the process of obtaining the intra-group variance and inter-group variance is as follows:
[0091] The current sequence after the initial filtering is divided to obtain at least two groups of local current sequences; the sum of the variances of all groups of local current sequences is used as the intra-group variance; the mean of each group of local current sequences is calculated, and the variance of all means is used as the inter-group variance.
[0092] Specifically, the K-means clustering algorithm is used to cluster the current sequence after the initial filtering to obtain different groups; the variance of all current data in each group of local current sequences is calculated, and the variances corresponding to all groups of local current sequences are summed, and this sum is the intra-group variance; for each group of local current sequences, the mean of all current data in any group of local current sequences is calculated, and the variance of all groups of local current sequences is calculated, and the variance is used as the inter-group variance of the current sequence after the initial filtering.
[0093] It can be understood that, assuming that there are 5 groups of local current sequences, each group of local current sequences contains multiple current data. At this time, the means of the multiple current data in each group of local current sequences are calculated to obtain the means corresponding to the 5 groups of local current sequences, and the variance of the 5 means is calculated, and the variance is used as the inter-group variance.
[0094] Step S23, constructing an objective function based on the mean error and variance data. Specifically, the objective function is: Among them, S is the mean error, Ln is the within-group variance, and Lj is the between-group variance.
[0095] Among them, the average error is:
[0096] Where N is the total number of data points in the current series; F i is the i-th current data in the current sequence after initial filtering; A i is the i-th current data in the current sequence; |·| is the absolute value operation.
[0097] The purpose of selecting the average error in the above is that when the error is smaller, it means that the filtered current sequence is closer to the initial current sequence, the filter better retains the information of the original signal, and effectively eliminates the noise; if the error is large, it indicates that the weight coefficient needs further adjustment or improvement.
[0098] Step S24, adjusting the initial weight coefficients in the initial weight coefficient sequence, when the value of the objective function is the maximum, the initial weight coefficient sequence corresponding to the maximum value of the objective function is used as the optimal weight coefficient sequence. Specifically, by changing the initial weight coefficients in the initial weight coefficient sequence to obtain an updated filtered current sequence, the value of the objective function is determined based on the average error and variance data of the current sequence and the filtered current sequence, and when the value of the objective function is the maximum, the initial weight coefficient sequence corresponding to the maximum value is used as the optimal weight coefficient sequence to obtain the filtered optimal current sequence.
[0099] It should be noted that the adjustment of each initial weight coefficient in the initial weight coefficient sequence can be random, as long as the maximum value of the objective function is satisfied. Of course, it can also be adjusted according to certain rules, such as setting the adjustment step size, and adjusting the initial weight coefficients in sequence.
[0100] It can be understood that when the initial weight coefficient sequence is (0.5, 0.3, 0.7, 0.2, 0.4, 0.1), one of the initial weight coefficients in the initial weight coefficient sequence is adjusted according to the set adjustment step to obtain (0.4, 0.3, 0.7, 0.2, 0.4, 0.1). The set adjustment step at this time is 0.1, which can of course be set according to actual conditions. It should be noted that the setting of the initial weight coefficient sequence is not limited to the above specific values, and it can be determined according to actual conditions.
[0101] Furthermore, before obtaining the filtered optimal current sequence, the optimal weight coefficients in the optimal weight coefficient sequence are screened to obtain a valid optimal weight coefficient sequence. Specifically, a weight coefficient threshold is set, and the optimal weight coefficients in the optimal weight coefficient sequence that are less than the weight coefficient threshold are eliminated, and the eliminated optimal weight coefficient sequence is used as a valid optimal weight coefficient sequence.
[0102] In this embodiment, the weight coefficients in the effective optimal weight coefficient sequence are multiplied by the current data in the current sequence to obtain the filtered current sequence. It can be understood that when the optimal weight coefficient sequence is (0.6, 0.3, 0.7, 0.2, 0.3, 0.5), the weight coefficient threshold is 0.4, the coefficients below the weight coefficient threshold in the obtained optimal weight coefficient sequence are eliminated to obtain the optimal weight coefficient series after elimination (0.6, 0, 0.7, 0, 0, 0.5), and then the optimal weight coefficient sequence after elimination is used to perform weighted moving average filtering on the current data sequence.
[0103] The purpose of removing the optimal weight coefficients in the optimal weight coefficient sequence in the above is to reduce noise and interference, improve the quality of data and the accuracy of subsequent analysis. This is because when the current sequence is subjected to weighted moving average filtering, the weight coefficient determines the degree of influence of historical data on the current prediction value. If some weight coefficients are too small, their contribution to the final result is also correspondingly small, or even negligible. In this case, these smaller weight coefficients may not affect the filtering result, but they may introduce additional numerical instability or computational redundancy. Therefore, in this embodiment, by removing some weight coefficients of the optimal weight coefficient sequence (changing unimportant weight coefficients to 0), some noise components that have little effect on the result can be removed, so that the final result is more focused on the current data that has a significant impact on the overall trend, thereby improving the stability and efficiency of the filtering process, and preventing problems such as numerical overflow caused by some smaller weights.
[0104] Of course, the weight coefficient threshold in this embodiment can also be set based on experience.
[0105] In step S3, the filtered optimal current sequence is subjected to abnormality detection to obtain abnormal results to achieve safety warning of the photovoltaic power station. Specifically, in this embodiment, the current data in the filtered current sequence is subjected to abnormal data identification using a local outlier factor detection algorithm (LOF) to achieve safety warning of the photovoltaic power station.
[0106] Specifically, the specific process of using the LOF algorithm to identify abnormal data is as follows:
[0107] First, each current data in the optimal current sequence is taken as a current data point, and the current data point screened out from all current data points is taken as a core current data point.
[0108] The specific screening process is as follows: the radius of the circular range centered on any current data point is the neighborhood radius, and any current data point within the circular range whose number of current data points is greater than the minimum sample number threshold is taken as the core current data point. The neighborhood radius and the minimum sample number threshold set above can be set according to actual conditions. In this implementation, they can of course be 5 and 3 respectively.
[0109] The selection of the core current data points mentioned above can improve the accuracy of anomaly detection and simplify the complexity of anomaly detection.
[0110] Secondly, the reachable distance of each core current data point is obtained.
[0111] Then, characteristic data of each current data point in the filtered optimal current sequence is obtained, wherein the characteristic data includes the time and current value corresponding to each current data point, and the distance between any two current data points is calculated based on the characteristic data of each current data point; it can be understood that, taking the current data point p as the core current data, the distance from the current data point p to the current data point o is calculated as d(p, o).
[0112] The larger one of the core distance of the current data point p and d(p, o) is selected as the reachable distance of the core current data point.
[0113] Secondly, based on the reachable distance, the local reachable density of the corresponding current data point is obtained; and then the local outlier factor of each current data point is obtained. In this embodiment, when the current data point p is a core current data point, according to the reachable distance and the neighborhood N of the current data point p, k (p), and calculate the kth local reachable density Ird of the current data point p k (p):
[0114] Among them, reach_dist k (o, p) is the kth reachable distance from current data point o to current data point p, N k (p) is the kth distance neighborhood of the current data point p.
[0115] Furthermore, the local outlier factor LOF in this embodiment k (p) is:
[0116] Among them, lrd k (o) is the kth local reachable density of current data point o. It should be noted that LOF k The larger the ratio (p), the smaller the density of point p is, the smaller the density of point p is, and the more likely point p is an outlier. The smaller the ratio, the larger the density of point p is, the greater the density of point p is, and the more likely point p is a normal point.
[0117] Then, when the local outlier factor of any current data point is greater than the set value, the current data point is an abnormal point; when the local outlier factor of any current data point is less than or equal to the set value, the current data point is a normal point, and then all abnormal points are obtained, thus obtaining the abnormal result of abnormal detection.
[0118] The set value in this embodiment can be 1, and of course it can also be set according to the actual situation. Among them, when the outlier factor of any current data in the filtered optimal current sequence data is greater than 1, the any current data is considered to be abnormal data, and an early warning is issued to remind relevant staff to deal with it; otherwise, it is considered to be normal data. As other implementation methods, when the LOF algorithm is used to detect anomalies in sequence data, the selection of core data points is not a necessary operation step. The neighborhood points of each current data point can also be directly determined, and the reachable distance of each current data point is calculated in combination with the neighborhood points of the current data points, thereby obtaining the local outlier factor of each current data point.
[0119] In this embodiment, when filtering the collected current sequence, the initial weight coefficient corresponding to each current data can be set. During the filtering process, the validity of each current data can be determined based on the initial weight coefficient corresponding to each current data, thereby avoiding the problem of information loss caused by the rigid filtering effect brought about by the use of fixed weight coefficients. After filtering, the objective function can be constructed based on the current data before and after filtering, and the initial weight coefficient corresponding to the filtering can be adjusted to obtain the optimal weight coefficient, so that the current sequence can be filtered using the optimal weight coefficient, which can accurately denoise the current sequence and improve the accuracy of subsequent abnormality detection of the denoised current sequence.
[0120] This embodiment also provides a photovoltaic power station safety early warning system based on artificial intelligence. Figure 2 As shown, the safety warning system includes a processor and a memory, and the memory stores computer program instructions. When the computer program instructions are executed by the processor, the above-mentioned photovoltaic power station safety warning method based on artificial intelligence according to the present invention is implemented.
[0121] The safety warning system also includes other components familiar to those skilled in the art, such as a communication bus and a communication interface, whose settings and functions are known in the art and will not be described in detail here.
[0122] In this embodiment, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. For example, a computer-readable storage medium may be any suitable magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in the present invention may be implemented using computer-readable / executable instructions that may be stored or otherwise maintained by such a computer-readable medium.
[0123] The above specific embodiments are preferred embodiments of the present invention, and are not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to the present specific embodiments. All equivalent changes made in accordance with the shape, structure, and method of the present invention are within the protection scope of the present invention.
Claims
1. A photovoltaic power station safety early warning method based on signal processing, characterized in that: The steps include: S1. Obtaining current sequence data and optimal weight coefficient sequence within a set time period; S2. Performing weighted moving average filtering on the current sequence data based on the optimal weight coefficient sequence to obtain an optimal current sequence; S3. Perform an abnormality detection on the optimal current sequence to obtain an abnormality detection result.
2. The photovoltaic power station safety early warning method based on signal processing according to claim 1 is characterized in that: Obtaining the optimal weight coefficient sequence includes the following steps: Sa, setting an initial weight coefficient sequence, wherein each initial weight coefficient in the initial weight coefficient sequence corresponds one-to-one to each current data in the current sequence data; Sb, performing weighted moving average filtering on the current sequence data through the initial weight coefficient sequence to obtain an initial filtered current sequence; Sc, obtaining the average error of the absolute value of the difference between the current sequence data and the initial filtered current sequence, and obtaining the variance data according to the initial filtered current sequence; Sd, constructing an objective function based on the mean error and variance data; Se, adjust the initial weight coefficient. When the value of the objective function is the largest, the initial weight coefficient sequence corresponding to the maximum value of the objective function is used as the optimal weight coefficient sequence.
3. The photovoltaic power station safety early warning method based on signal processing according to claim 2 is characterized in that: The Sb comprises the following steps: Sb1, set sliding empty window; Sb2, based on the sliding empty window, adjusting the size of the sliding empty window, selecting the initial weight coefficient, and filtering the corresponding current data based on the initial weight coefficient to obtain initial filtered current data; Sb3. Based on the initial filtered current data, an initial filtered current sequence is obtained.
4. The photovoltaic power station safety early warning method based on signal processing according to claim 2 is characterized by: The variance data includes within-group variance and between-group variance.
5. The photovoltaic power station safety early warning method based on signal processing according to claim 4 is characterized in that: The process of obtaining the within-group variance and between-group variance is: Sa, dividing the initial filtered current sequence to obtain a plurality of groups of local current sequences; Sb, the sum of the variances of the local current series is taken as the within-group variance, and the mean of the local current series of each group is calculated, and the variance of all means is taken as the between-group variance.
6. The photovoltaic power station safety early warning method based on signal processing according to claim 2 is characterized by: The objective function is: Among them, S is the mean error, Ln is the within-group variance, and Lj is the between-group variance.
7. The photovoltaic power station safety early warning method based on signal processing according to claim 5 is characterized by: The method for dividing the initial filtered current sequence is a K-means clustering algorithm.
8. The photovoltaic power station safety early warning method based on signal processing according to claim 1 is characterized by: Before obtaining the optimal current sequence, it also includes setting a weight coefficient threshold, eliminating the optimal weight coefficients in the optimal weight coefficient sequence that are less than the weight coefficient threshold, and obtaining a valid optimal weight coefficient sequence.
9. The photovoltaic power station safety early warning method based on signal processing according to claim 1 is characterized by: The process of performing abnormal detection on the optimal current sequence and obtaining abnormal results is as follows: S31, taking each current data in the optimal current sequence as a current data point, screening the current data points to obtain core current data points; S32, obtaining the reachable distance of each core current data point; S33, based on the reachable distance, obtaining the local reachable density of each current data point, and then obtaining the local outlier factor of each current data point; S34. Based on the local outlier factor, determine whether the current data point is an abnormal point, thereby obtaining an abnormality detection result.
10. The photovoltaic power station safety early warning method based on signal processing according to claim 9, characterized in that: The step of determining whether a current data point is an abnormal point comprises: If the local outlier factor of the current data point is greater than the preset value, the current data point is an abnormal point; if the local outlier factor of the current data point is less than or equal to the preset value, the current data point is a normal point.
Citation Information
Cited By
Intelligent early warning method and system for crystal bar quality
CN119026998A
