Electricity stealing prevention online intelligent monitoring method based on electricity utilization abnormal data
By collecting and analyzing electricity consumption data in real time, reconstructing the baseline and evaluating its accuracy using a time series analysis algorithm, dynamically adjusting the power stolen detection threshold, solving the decrease in monitoring accuracy and false alarms and missed reports caused by untimely adjustment of the baseline in the power system. The problem has improved the monitoring capability and safety of the power system.
Patent Information
- Application Number
- CN202411098989.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-15
AI Technical Summary
In the prior art, the power system cannot flexibly adjust the power reference line dynamically, resulting in a decrease in the monitoring accuracy of illegal power theft behavior, a high rate of false alarms and missed reports, which increases operating costs and economic losses.
By collecting electricity consumption data in real time, reconstructing a new baseline using a time series analysis algorithm, and evaluating the accuracy of the baseline based on the change rate of electricity consumption mode and deviation distribution characteristics, dynamically adjusting the detection rate threshold of power stolen abnormality to reduce false alarms and missed reports Probability.
It improves the monitoring accuracy and reliability of the power system for power consumption modes, reduces false alarms and missed reports, promptly detects and prevents power theft, and reduces the economic losses and operating costs of power companies.
Smart Images

Figure CN118965171A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electricity consumption data monitoring, and in particular to an anti-electricity theft online intelligent monitoring method based on abnormal electricity consumption data. Background Art
[0002] Online intelligent monitoring of abnormal power consumption data against power theft refers to the use of advanced technical means, such as the Internet of Things, artificial intelligence, and big data analysis, to monitor and analyze power users' power consumption data in real time to identify and detect illegal power theft, and to help power companies and relevant management departments take prompt measures to prevent waste of power resources and damage to the power system by timely discovering and reporting these abnormal behaviors. Specifically, the power system will continuously collect and analyze the power consumption data of each user to establish a baseline for normal power consumption patterns. When power consumption data that deviates from the normal pattern is detected, such as a sudden surge in power consumption or power consumption at abnormal times, illegal power theft may occur. The power system will automatically trigger an alarm and generate a detailed analysis report for reference by power companies or management departments to quickly locate and solve the problem, thereby ensuring the stability and safety of the power system.
[0003] The prior art has the following deficiencies: In the prior art, the power system continuously collects the power consumption data of each user. By collecting and analyzing a large amount of historical data, the system can understand the normal power consumption mode of each user in different time periods. By establishing a baseline, when the power consumption data deviates from the normal mode is detected, the system predicts that there may be illegal power theft and then triggers an alarm. However, due to changes in the user's power consumption pattern, the baseline needs to be updated and adjusted regularly. If the system cannot flexibly and dynamically adjust the baseline, the old baseline will soon lose its reference value, resulting in a decrease in the accuracy of its monitoring of illegal power theft. At the same time, if the baseline is no longer accurate, the system may frequently issue false alarms (mistaking normal power consumption for abnormality) or miss alarms (fail to detect actual abnormal power consumption). A high false alarm rate will cause power companies and management departments to spend a lot of manpower, material resources and time to investigate and handle these invalid alarms, increasing operating costs. And a high miss alarm rate will prevent the real power theft from being discovered and stopped in time, causing economic losses to the power company. Summary of the invention
[0004] The purpose of the present invention is to provide an online intelligent monitoring method for anti-electricity theft based on abnormal electricity consumption data to solve the shortcomings of the background technology.
[0005] In order to achieve the above object, the present invention provides the following technical solution: an online intelligent monitoring method for anti-electricity theft based on abnormal electricity consumption data, comprising the following steps: S1: Collect the user's electricity consumption data in real time through the power system, detect the user's real-time electricity consumption data through the existing baseline, calculate the power theft anomaly detection rate in the T time period, compare it with the power theft anomaly detection rate threshold, and determine whether to adjust the baseline; S2: After determining to adjust the baseline, obtain the real-time power consumption data of users in the T+1 period and preprocess it, extract features from the preprocessed power consumption data, and reconstruct a new power consumption baseline through a time series analysis algorithm based on the extracted features; S3: After the baseline is established, it is applied to the real-time monitoring system to evaluate the accuracy of the new baseline based on the deviation distribution characteristics of the actual power consumption data and the new baseline and the abnormal change rate of the user's power consumption pattern; S4: Based on the evaluation results, the new baseline is divided into an accuracy baseline, a possible accuracy baseline, and an inaccuracy baseline, and managed accordingly; S5: When the new baseline is of possible accuracy, further analyze the accuracy of the new baseline within a fixed time period, and dynamically adjust the power theft anomaly detection rate threshold according to the analysis results to reduce the probability of false alarms and missed alarms in the system.
[0006] Preferably, in S1, the user's electricity consumption data is collected in real time, and the collected electricity consumption data is stored in a database. After preliminary processing of the data, the user's real-time electricity consumption data is detected using an existing baseline model, the difference between the predicted value and the actual value at each time point is calculated, and the detected abnormal data is marked according to the set abnormal detection standard, and the timestamp and electricity consumption information of each abnormal data point are recorded; a fixed time period T is defined as the period for calculating the electricity theft abnormal detection rate, the number of abnormal data points detected within the T time period is counted, and the electricity theft abnormal detection rate is calculated, and the expression is: electricity theft abnormal detection rate = the number of abnormal data points within the T time period / the total number of data points within the T time period; the electricity theft abnormal detection rate threshold is set according to historical data, the calculated electricity theft abnormal detection rate is compared with the set electricity theft abnormal detection rate threshold, and it is determined whether to adjust the baseline; if the electricity theft abnormal detection rate is greater than or equal to the electricity theft abnormal detection rate threshold for kT consecutive time periods, the baseline is adjusted, and k is a multiple of the time period T.
[0007] Preferably, in S3, the power consumption data deviation index is generated according to the deviation distribution characteristics of the actual power consumption data and the new baseline, and the method for obtaining the power consumption data deviation index is: Collect the user's actual electricity consumption data Yt and the baseline prediction value Y^t, and calculate the deviation Dt at each time point: Dt=Yt−Y^t; use the prior distribution to initially represent the deviation. If the deviation Dt obeys the normal distribution, the likelihood function is: ; where μ is the mean of the deviation, is the variance of the deviation; according to Bayes' theorem, combining the prior distribution and the likelihood function, the posterior distribution is calculated: ; In the formula, are the parameters μ and The posterior distribution of is the likelihood function, given the parameters μ and The probability of observing data, P(μ) is the prior distribution of parameter μ, For parameters The prior distribution of the observed data Dt is used to update the posterior distribution parameters. The deviation index is calculated based on the posterior distribution parameters. The calculation expression is: DI = μ + m Dt; where m is the adjustment coefficient and DI is the electricity consumption data deviation index.
[0008] Preferably, in S3, a power consumption pattern change rate abnormality index is generated according to the abnormal situation of the user's power consumption pattern change rate, and the method for obtaining the power consumption pattern change rate abnormality index is: Collect the user's actual electricity consumption data sequence Yt and benchmark electricity consumption data sequence Y^t; where Yt={y1,y2,...,yi,...,yT} represents the actual electricity consumption data in time period T, and Y^t={y^1,y^2,...,y^j,...,y^T} represents the benchmark electricity consumption data in time period T; Calculate the dynamic time warping distance and create a distance matrix D of size T×T, where D(i,j) represents the cumulative minimum distance between the i-th point in the actual power consumption data Yt and the j-th point in the benchmark power consumption data Y^t. Calculate the local distance matrix δ(i,j), which represents the Euclidean distance between the actual power consumption data yi and the benchmark power consumption data y^j. The expression is: ; yi is the i-th data point in the actual power consumption data sequence, y^j is the j-th data point in the benchmark power consumption data sequence, and the distance matrix is filled according to the recursive formula, and the expression is: ; The boundary condition is D(0,0)=δ(0,0); The final DTW distance calculation expression is: DTW(Yt,Y^t)=D(T,T); DTW(Yt,Y^t) represents the cumulative minimum distance between the actual power consumption data sequence and the benchmark power consumption data sequence, and the power consumption mode change rate abnormality index is calculated as follows: ; In the formula, It is the abnormal index of the change rate of power consumption pattern.
[0009] Preferably, in S3, the power consumption data deviation index and the power consumption pattern change rate abnormality index are normalized, and the accuracy coefficient of the new baseline is calculated based on the normalized power data deviation index and the power consumption pattern change rate abnormality index.
[0010] Preferably, in S4, according to the evaluation result, the new baseline is divided into an accuracy baseline, a possible accuracy baseline and an inaccuracy baseline, specifically: Comparing the accuracy coefficient of the acquired new baseline with a gradient standard threshold, the gradient standard threshold includes a first standard threshold and a second standard threshold, and the first standard threshold is less than the second standard threshold, and comparing the accuracy coefficient of the new baseline with the first standard threshold and the second standard threshold respectively; If the accuracy coefficient of the new baseline is greater than the second standard threshold, the new baseline is classified as an accuracy baseline and continues to be used for real-time monitoring; if the accuracy coefficient of the new baseline is greater than or equal to the first standard threshold and less than or equal to the second standard threshold, the new baseline is classified as a possible accuracy baseline and is monitored in a focused manner; if the accuracy coefficient of the new baseline is less than the first standard threshold, the new baseline is classified as an inaccuracy baseline and stops being used immediately.
[0011] Preferably, in S5, when the new baseline is of possible accuracy, further analysis is performed on the accuracy of the new baseline within a fixed time period, specifically: When the new baseline is of possible accuracy, that is, the accuracy coefficient of the new baseline generated within a fixed time period is greater than or equal to the first standard threshold and less than or equal to the second standard threshold, the accuracy of the new baseline in the subsequent fixed time period is further analyzed, and the accuracy coefficients of the new baselines generated within the subsequent fixed time period that are greater than or equal to the first standard threshold and less than or equal to the second standard threshold are collected, and a data set is established, and the mean μS and standard deviation σS of the data set are calculated.
[0012] Preferably, after analyzing the mean and standard deviation of the data set, the power theft abnormal detection rate threshold is dynamically adjusted according to the analysis results to reduce the probability of false alarms and missed alarms, specifically: a new power theft abnormal detection rate threshold θnew is set, expressed as: θnew=μS±b×σS; wherein b is an adjustment coefficient, and the dynamically adjusted power theft abnormal detection rate threshold θnew is applied to the system, and abnormal conditions of power consumption data are detected according to the new threshold.
[0013] In the above technical solution, the technical effects and advantages provided by the present invention are: 1. The present invention collects the user's electricity consumption data in real time and uses the existing baseline model for detection and analysis, which can dynamically calculate the abnormal detection rate of electricity theft and adjust the baseline in time. A new baseline is rebuilt through a time series analysis algorithm, and the accuracy of the baseline is evaluated based on the actual electricity consumption data and deviation distribution characteristics, and abnormal changes in the electricity consumption pattern rate, effectively reducing false alarms and missed alarms and improving monitoring accuracy. This method ensures that the baseline can reflect the user's actual electricity consumption pattern in a timely manner, thereby enhancing the monitoring capability and reliability of the power system.
[0014] 2. The present invention further analyzes the accuracy of the possible accuracy baseline within a fixed time period and dynamically adjusts the threshold of the abnormal detection rate of electricity theft, so that the system can flexibly respond to changes in the user's electricity usage pattern and reduce the probability of false alarms and missed reports. At the same time, the normalized electricity data deviation index and the abnormal index of the electricity usage pattern change rate further improve the accuracy assessment of the new baseline. Ultimately, the system can continuously optimize the baseline to timely discover and prevent electricity theft, reduce the economic losses of power companies caused by electricity theft, save operating costs, and improve the safety and stability of power supply. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0016] Figure 1 The present invention is a flow chart of the method. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] For examples, see Figure 1 As shown, the anti-electricity theft online intelligent monitoring method based on abnormal electricity consumption data described in this embodiment includes the following steps: S1: Collect the user's electricity consumption data in real time through the power system, detect the user's real-time electricity consumption data through the existing baseline, calculate the power theft anomaly detection rate in the T time period, compare it with the power theft anomaly detection rate threshold, and determine whether to adjust the baseline; S2: After determining to adjust the baseline, obtain the real-time power consumption data of users in the T+1 period and preprocess it, extract features from the preprocessed power consumption data, and reconstruct a new power consumption baseline through a time series analysis algorithm based on the extracted features; S3: After the baseline is established, it is applied to the real-time monitoring system to evaluate the accuracy of the new baseline based on the deviation distribution characteristics of the actual power consumption data and the new baseline and the abnormal change rate of the user's power consumption pattern; S4: Based on the evaluation results, the new baseline is divided into an accuracy baseline, a possible accuracy baseline, and an inaccuracy baseline, and managed accordingly; S5: When the new baseline is of possible accuracy, further analyze the accuracy of the new baseline within a fixed time period, and dynamically adjust the power theft anomaly detection rate threshold according to the analysis results to reduce the probability of false alarms and missed alarms in the system.
[0019] Among them, in S1, the user's electricity consumption data is collected in real time through the power system, and the user's real-time electricity consumption data is detected through the existing baseline, the power theft abnormal detection rate in the T time period is calculated, and it is compared with the power theft abnormal detection rate threshold to determine whether to adjust the baseline.
[0020] Install smart meters and data collection equipment to collect users' electricity consumption data in real time. Transmit the data to the data processing center through the IoT network. Store the collected electricity consumption data in the database. Perform preliminary data processing, including removing obvious outliers and noise, to ensure data accuracy.
[0021] Use the existing baseline model to detect the user's real-time electricity consumption data and calculate the difference between the predicted value and the actual value at each time point.
[0022] According to the set anomaly detection criteria, the detected abnormal data is marked. The timestamp and power consumption information of each abnormal data point are recorded.
[0023] Define a fixed time period T as the period for calculating the power theft anomaly detection rate. Count the number of abnormal data points detected within the T time period.
[0024] Calculate the power theft anomaly detection rate, the expression is: power theft anomaly detection rate = number of abnormal data points in time period T / total number of data points in time period T; According to historical data, a threshold value (such as 5%) of abnormal electricity theft detection rate is set, and the calculated abnormal electricity theft detection rate is compared with the set abnormal electricity theft detection rate threshold to determine whether to adjust the baseline; If the abnormal electricity theft detection rate is greater than or equal to the abnormal electricity theft detection rate threshold for kT consecutive time periods (such as 3 T time periods), it is determined that the baseline is adjusted. k is a multiple of the time period T, and the specific value is set by relevant personnel.
[0025] S2: After determining to adjust the baseline, obtain the real-time electricity consumption data of users in the T+1 time period and preprocess it, extract features from the preprocessed electricity consumption data, and reconstruct a new electricity consumption baseline through a time series analysis algorithm based on the extracted features.
[0026] Obtain user electricity consumption data in the T+1 period from smart meters and data acquisition devices. Clean the collected electricity consumption data to remove noise and outliers to ensure data accuracy.
[0027] Perform feature extraction on the preprocessed power consumption data, group the data by day, and calculate the average power consumption for each time period (such as each hour) of each day. Group the data by week, calculate the average power consumption for each day of the week, and identify the difference in power consumption between weekdays and weekends.
[0028] Cluster analysis: Use K-means clustering algorithm to cluster the weekly electricity consumption patterns. Seasonal change analysis: Analyze the seasonal changes in the data and identify the electricity consumption characteristics of different seasons, such as the peak electricity consumption in summer and winter.
[0029] Based on the extracted features, a new electricity consumption baseline is reconstructed through the ARIMA model, specifically: The electricity consumption data is standardized to make it suitable for subsequent analysis and modeling. The data is differentiated to make the time series stable. The number of differences d depends on the trend characteristics of the data. The autocorrelation function (ACF) and partial autocorrelation function (PACF) graphs are plotted to identify the orders p and q of the AR and MA parts. According to the ACF and PACF graphs, the optimal parameters p, d, and q of the ARIMA model are selected. The ARIMA model calculation expression is: ;in, is the observed value at time c, k is a constant term, is the coefficient of the autoregressive part, is the coefficient of the sliding average part, is the white noise error term; use historical data to fit the ARMA model and get the parameters and ,Use the fitted ARMA model to predict future electricity consumption and generate a new electricity consumption baseline.,The new electricity consumption baseline is applied to the real-time monitoring system and a new monitoring cycle begins.
[0030] S3: After the baseline is established, it is applied to the real-time monitoring system to evaluate the accuracy of the new baseline based on the deviation distribution characteristics of the actual power consumption data and the new baseline and the abnormal change rate of the user's power consumption pattern.
[0031] The new power consumption baseline reconstructed by the ARIMA model is loaded into the algorithm module of the real-time monitoring system, and the user's power consumption data is collected in real time and compared with the baseline. The system continuously monitors the user's power consumption to detect whether it deviates from the baseline and whether there is an abnormality in the user's power consumption pattern change rate. When the power consumption data that deviates significantly from the baseline is monitored, the system will automatically trigger an alarm and record relevant information so that the power company can take timely measures. This dynamic monitoring ensures that power consumption anomalies can be quickly discovered and handled, improving the safety and reliability of the power system.
[0032] The power consumption data deviation index is generated according to the deviation distribution characteristics of the actual power consumption data and the new baseline. The method for obtaining the power consumption data deviation index is: Collect the user's actual electricity consumption data Yt and the baseline prediction value Y^t, and calculate the deviation Dt at each time point: Dt=Yt−Y^t; the deviation is initially represented by the prior distribution. Commonly used prior distributions include normal distribution and uniform distribution. If the deviation Dt obeys the normal distribution, the likelihood function is: Dt~N( , ), where μ is the mean of the deviations, is the variance of the deviation; according to Bayes' theorem, combining the prior distribution and the likelihood function, the posterior distribution is calculated: ; In the formula, are the parameters μ and The posterior distribution of is the likelihood function, given the parameters μ and The probability of observing data, P(μ) is the prior distribution of parameter μ, P( ) is the parameter The prior distribution of the observed data Dt is used to update the posterior distribution parameters. The deviation index is calculated based on the posterior distribution parameters. The calculation expression is: DI = μ + m Dt; where m is the adjustment coefficient, which is selected according to the actual application scenario and is usually 1 or 2, and DI is the power consumption data deviation index.
[0033] The larger the deviation index of electricity consumption data, the lower the accuracy of the new baseline. The deviation index is an indicator to measure the deviation between the actual electricity consumption data and the baseline forecast value. The larger the value, the greater the deviation, which means that the baseline fails to accurately reflect the actual electricity consumption pattern. Therefore, a high deviation index implies that the baseline has weak predictive ability and needs further adjustment and optimization.
[0034] Specifically, when the power consumption data deviation index is large, the difference between the actual power consumption data and the baseline increases significantly, reflecting that the baseline cannot effectively capture the user's power consumption behavior and changing trends. This may be due to the significant changes in the user's power consumption pattern, and the baseline has not been updated in time, resulting in an increase in prediction error. Therefore, when the deviation index is large, the baseline needs to be re-evaluated and adjusted to improve its adaptability to the actual power consumption data and prediction accuracy.
[0035] The abnormal power consumption pattern change rate index is generated according to the abnormal power consumption pattern change rate of the user. The method for obtaining the abnormal power consumption pattern change rate index is as follows: Collect the user's actual electricity consumption data sequence Yt and benchmark electricity consumption data sequence Y^t; where Yt={y1,y2,...,yi,...,yT} represents the actual electricity consumption data in time period T, and Y^t={y^1,y^2,...,y^j,...,y^T} represents the benchmark electricity consumption data in time period T; Calculate the dynamic time warping distance and create a distance matrix D of size T×T, where D(i,j) represents the cumulative minimum distance between the i-th point in the actual power consumption data Yt and the j-th point in the benchmark power consumption data Y^t. Calculate the local distance matrix δ(i,j), which represents the Euclidean distance between the actual power consumption data yi and the benchmark power consumption data y^j. The expression is: ; yi is the i-th data point in the actual power consumption data sequence, y^j is the j-th data point in the benchmark power consumption data sequence, and the distance matrix is filled according to the recursive formula, and the expression is: ; The boundary condition is D(0,0)=δ(0,0); The final DTW distance calculation expression is: DTW(Yt,Y^t)=D(T,T); DTW(Yt,Y^t) represents the cumulative minimum distance between the actual power consumption data sequence and the benchmark power consumption data sequence, and the power consumption mode change rate abnormality index is calculated as follows: ; In the formula, It is the abnormal index of the change rate of power consumption pattern.
[0036] The larger the power consumption pattern change rate anomaly index is, the lower the accuracy of the new baseline is. A larger value indicates that there is a large deviation between the actual power consumption data and the baseline power consumption data, which means that the new baseline fails to accurately capture the user's actual power consumption pattern. This situation usually reflects that the baseline is not fully responsive to changes in user power consumption behavior, resulting in increased prediction errors.
[0037] Specifically, when the power consumption pattern change rate abnormality index is large, it indicates that the user's actual power consumption pattern is significantly different from the expected baseline pattern. This may be due to sudden changes in user behavior, such as seasonal changes, emergencies, or changes in equipment usage patterns, and the baseline has not been adjusted in time to reflect these changes. The baseline accuracy is reduced, resulting in an increase in the frequency of false alarms and missed alarms, affecting the overall reliability and effectiveness of the power monitoring system.
[0038] Therefore, a high abnormal index of power consumption pattern change rate reminds us that we need to re-evaluate and adjust the baseline model to better adapt to the actual power consumption of users. By regularly updating and optimizing the baseline, we can improve its ability to capture user power consumption patterns, reduce deviations, and improve the accuracy and stability of the monitoring system.
[0039] The power consumption data deviation index and the power consumption pattern change rate abnormality index are normalized, and the accuracy coefficient of the new baseline is calculated based on the normalized power data deviation index and the power consumption pattern change rate abnormality index.
[0040] For example, the present invention can use the following formula to calculate the accuracy coefficient of the new baseline, and the calculation expression is: ; In the formula, is the accuracy coefficient of the new baseline, DI is the power consumption data deviation index, is the abnormal index of power consumption pattern change rate, is the proportional coefficient of the power consumption data deviation index and the power consumption pattern change rate abnormality index, and 0.
[0041] S4: Based on the evaluation results, the new baseline is divided into accuracy baseline, possible accuracy baseline and inaccuracy baseline, and managed accordingly.
[0042] Comparing the accuracy coefficient of the acquired new baseline with a gradient standard threshold, the gradient standard threshold includes a first standard threshold and a second standard threshold, and the first standard threshold is less than the second standard threshold, and comparing the accuracy coefficient of the new baseline with the first standard threshold and the second standard threshold respectively; If the accuracy coefficient of the new baseline is greater than the second standard threshold, the new baseline is classified as the accuracy baseline and continues to be used for real-time monitoring. If there are slight changes, fine-tuning can be performed for further optimization, but no major changes are required.
[0043] If the accuracy coefficient of the new baseline is greater than or equal to the first standard threshold and less than or equal to the second standard threshold, the new baseline is classified as a possible accuracy baseline, and the baseline is monitored intensively to closely monitor its performance in actual applications.
[0044] If the accuracy coefficient of the new baseline is less than the first standard threshold, the new baseline is classified as an inaccurate baseline, and the use of the baseline is immediately stopped, and a comprehensive re-evaluation and adjustment is carried out.
[0045] In this application, by comparing the accuracy coefficient with the gradient standard threshold, the new baseline is divided into an accuracy baseline, a possible accuracy baseline, and an inaccuracy baseline, and different management measures are taken according to the classification results. For the accuracy baseline, the status quo is maintained and regularly evaluated; for the possible accuracy baseline, key monitoring and frequent evaluation are performed; for the inaccuracy baseline, immediate adjustment and remodeling are performed. Through these management methods, the efficiency and reliability of the power consumption monitoring system are ensured.
[0046] S5: When the new baseline is of possible accuracy, further analyze the accuracy of the new baseline within a fixed time period, and dynamically adjust the power theft anomaly detection rate threshold according to the analysis results to reduce the probability of false alarms and missed alarms in the system.
[0047] When the new baseline is of possible accuracy, that is, the accuracy coefficient of the new baseline generated within a fixed time period is greater than or equal to the first standard threshold and less than or equal to the second standard threshold, the accuracy of the new baseline in the subsequent fixed time period is further analyzed, and the accuracy coefficients of the new baselines generated within the subsequent fixed time period that are greater than or equal to the first standard threshold and less than or equal to the second standard threshold are collected, and a data set is established, and the mean μS and standard deviation σS of the data set are calculated.
[0048] After analyzing the mean and standard deviation of the data set, the threshold of the abnormal detection rate of electricity theft is dynamically adjusted according to the analysis results to reduce the probability of false alarms and missed alarms. Specifically, a new abnormal detection rate threshold of electricity theft θnew is set, expressed as: θnew=μS±b×σS; where b is an adjustment coefficient, which is often selected according to actual conditions, such as 1 or 2, representing a standard deviation range. The dynamically adjusted abnormal detection rate threshold of electricity theft θnew is applied to the system to replace the old threshold. The abnormal situation of electricity consumption data is re-evaluated and detected according to the new threshold. After applying the new threshold, the system is continuously monitored for false alarms and missed alarms, feedback data is collected, and the threshold is further optimized and adjusted to ensure the efficiency and accuracy of the system.
[0049] In this embodiment, the power system collects the user's power consumption data in real time, and detects the user's real-time power consumption data through the existing baseline, calculates the power theft anomaly detection rate in the T time period, compares it with the power theft anomaly detection rate threshold, and determines whether to adjust the baseline; after determining to adjust the baseline, obtain the user's real-time power consumption data in the T+1 time period and preprocess it, extract features from the preprocessed power consumption data, and reconstruct a new power consumption baseline through a time series analysis algorithm based on the extracted features; after the baseline is established, apply it to the real-time monitoring system, and The accuracy of the new baseline is evaluated based on the deviation distribution characteristics of the data and the new baseline, as well as the abnormal change rate of the user's electricity consumption pattern. According to the evaluation results, the new baseline is divided into an accuracy baseline, a possible accuracy baseline and an inaccuracy baseline, and corresponding management is performed. When the new baseline is of possible accuracy, the accuracy of the new baseline within a fixed time period is further analyzed, and the power theft anomaly detection rate threshold is dynamically adjusted according to the analysis results to reduce the probability of false alarms and missed alarms in the system, ensuring that the baseline can timely reflect the user's actual electricity consumption, thereby effectively preventing electricity theft and improving the reliability and safety of the power system.
[0050] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0051] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0052] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0053] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. Anti-electricity theft online intelligent monitoring method based on abnormal electricity consumption data, Features: The steps include: S1: Collect the user's electricity consumption data in real time through the power system, detect the user's real-time electricity consumption data through the existing baseline, calculate the power theft anomaly detection rate in the T time period, compare it with the power theft anomaly detection rate threshold, and determine whether to adjust the baseline; S2: After determining to adjust the baseline, obtain the real-time power consumption data of users in the T+1 period and preprocess it, extract features from the preprocessed power consumption data, and reconstruct a new power consumption baseline through a time series analysis algorithm based on the extracted features; S3: After the baseline is established, it is applied to the real-time monitoring system to evaluate the accuracy of the new baseline based on the deviation distribution characteristics of the actual power consumption data and the new baseline and the abnormal change rate of the user's power consumption pattern; S4: Based on the evaluation results, the new baseline is divided into an accuracy baseline, a possible accuracy baseline, and an inaccuracy baseline, and managed accordingly; S5: When the new baseline is of possible accuracy, further analyze the accuracy of the new baseline within a fixed time period, and dynamically adjust the power theft anomaly detection rate threshold according to the analysis results to reduce the probability of false alarms and missed alarms in the system.
2. According to claim 1, the anti-electricity theft online intelligent monitoring method based on abnormal electricity consumption data, Features: In S1, the user's electricity consumption data is collected in real time and stored in the database. After preliminary processing of the data, the existing baseline model is used to detect the user's real-time electricity consumption data, and the difference between the predicted value and the actual value at each time point is calculated. According to the set abnormal detection standard, the detected abnormal data is marked, and the timestamp and electricity consumption information of each abnormal data point are recorded; a fixed time period T is defined as the period for calculating the abnormal detection rate of electricity theft, and the number of abnormal data points detected in the T time period is counted to calculate the abnormal detection rate of electricity theft, and the expression is: abnormal detection rate of electricity theft = the number of abnormal data points in the T time period / the total number of data points in the T time period; the threshold of the abnormal detection rate of electricity theft is set according to historical data, and the calculated abnormal detection rate of electricity theft is compared with the set threshold of the abnormal detection rate of electricity theft to determine whether to adjust the baseline; if the abnormal detection rate of electricity theft is greater than or equal to the threshold of the abnormal detection rate of electricity theft for kT consecutive time periods, the baseline is adjusted, and k is a multiple of the time period T.
3. According to claim 2, the anti-electricity theft online intelligent monitoring method based on abnormal electricity consumption data, Features: In S3, the power consumption data deviation index is generated according to the deviation distribution characteristics of the actual power consumption data and the new baseline. The method for obtaining the power consumption data deviation index is: Collect the user's actual electricity consumption data Yt and the baseline prediction value Y^t, and calculate the deviation Dt at each time point: Dt=Yt−Y^t; use the prior distribution to initially represent the deviation. If the deviation Dt obeys the normal distribution, the likelihood function is: ; where μ is the mean of the deviation, is the variance of the deviation; according to Bayes' theorem, combining the prior distribution and the likelihood function, the posterior distribution is calculated: ; In the formula, are the parameters μ and The posterior distribution of is the likelihood function, given the parameters μ and The probability of observing data, P(μ) is the prior distribution of parameter μ, For parameters The prior distribution of the observed data Dt is used to update the posterior distribution parameters. The deviation index is calculated based on the posterior distribution parameters. The calculation expression is: DI = μ + m Dt; where m is the adjustment coefficient and DI is the electricity consumption data deviation index.
4. According to claim 3, the anti-electricity theft online intelligent monitoring method based on abnormal electricity consumption data, Features: In S3, an abnormal power consumption pattern change rate index is generated according to the abnormal power consumption pattern change rate of the user. The method for obtaining the abnormal power consumption pattern change rate index is: Collect the user's actual electricity consumption data sequence Yt and benchmark electricity consumption data sequence Y^t; where Yt={y1,y2,...,yi,...,yT} represents the actual electricity consumption data in time period T, and Y^t={y^1,y^2,...,y^j,...,y^T} represents the benchmark electricity consumption data in time period T; Calculate the dynamic time warping distance and create a distance matrix D of size T×T, where D(i,j) represents the cumulative minimum distance between the i-th point in the actual power consumption data Yt and the j-th point in the benchmark power consumption data Y^t. Calculate the local distance matrix δ(i,j), which represents the Euclidean distance between the actual power consumption data yi and the benchmark power consumption data y^j. The expression is: ; yi is the i-th data point in the actual power consumption data sequence, y^j is the j-th data point in the benchmark power consumption data sequence, and the distance matrix is filled according to the recursive formula, and the expression is: ; The boundary condition is D(0,0)=δ(0,0); The final DTW distance calculation expression is: DTW(Yt,Y^t)=D(T,T); DTW(Yt,Y^t) represents the cumulative minimum distance between the actual power consumption data sequence and the benchmark power consumption data sequence, and the power consumption mode change rate abnormality index is calculated as follows: ; In the formula, It is the abnormal index of the change rate of power consumption pattern.
5. According to claim 4, the anti-electricity theft online intelligent monitoring method based on abnormal electricity consumption data, Features: In S3, the power consumption data deviation index and the power consumption pattern change rate abnormality index are normalized, and the accuracy coefficient of the new baseline is calculated based on the normalized power consumption data deviation index and the power consumption pattern change rate abnormality index.
6. The online intelligent monitoring method for anti-electricity theft based on abnormal electricity consumption data according to claim 5, Features: In S4, according to the evaluation results, the new baseline is divided into an accuracy baseline, a possible accuracy baseline and an inaccuracy baseline, specifically: Comparing the accuracy coefficient of the acquired new baseline with a gradient standard threshold, the gradient standard threshold includes a first standard threshold and a second standard threshold, and the first standard threshold is less than the second standard threshold, and comparing the accuracy coefficient of the new baseline with the first standard threshold and the second standard threshold respectively; If the accuracy coefficient of the new baseline is greater than the second standard threshold, the new baseline is classified as an accuracy baseline and continues to be used for real-time monitoring; if the accuracy coefficient of the new baseline is greater than or equal to the first standard threshold and less than or equal to the second standard threshold, the new baseline is classified as a possible accuracy baseline and is monitored in a focused manner; if the accuracy coefficient of the new baseline is less than the first standard threshold, the new baseline is classified as an inaccuracy baseline and stops being used immediately.
7. The online intelligent monitoring method for anti-electricity theft based on abnormal electricity consumption data according to claim 1, Features: In S5, when the new baseline is of possible accuracy, the accuracy of the new baseline within the fixed time period is further analyzed, specifically: When the new baseline is of possible accuracy, that is, the accuracy coefficient of the new baseline generated within a fixed time period is greater than or equal to the first standard threshold and less than or equal to the second standard threshold, the accuracy of the new baseline in the subsequent fixed time period is further analyzed, and the accuracy coefficients of the new baselines generated within the subsequent fixed time period that are greater than or equal to the first standard threshold and less than or equal to the second standard threshold are collected, and a data set is established, and the mean μS and standard deviation σS of the data set are calculated.
8. The online intelligent monitoring method for anti-electricity theft based on abnormal electricity consumption data according to claim 7, Features: After analyzing the mean and standard deviation of the data set, the power theft anomaly detection rate threshold is dynamically adjusted according to the analysis results to reduce the probability of false alarms and missed alarms. Specifically, a new power theft anomaly detection rate threshold θnew is set, expressed as: θnew=μS±b×σS; where b is the adjustment coefficient, and the dynamically adjusted power theft anomaly detection rate threshold θnew is applied to the system, and the abnormal situation of electricity consumption data is detected according to the new threshold.
Citation Information
Cited By
Industrial control network threat trend detection method and system based on time sequence characteristics
CN119210897A
Electricity stealing behavior identification method and system
CN119397463A
A method and system for identifying electricity theft behavior
CN119397463B
Intelligent cable detection system and method
CN119575069A
Electric power and electric quantity anomaly detection method based on big data
CN120296640A
