A method and system for remote monitoring and early warning of power load based on the Internet of Things
By combining user power consumption characteristics and long and short-term memory network models on the Internet of Things platform, the sampling frequency and data processing are dynamically adjusted to achieve real-time monitoring and early warning of power loads, solving the problem of slow response of traditional methods and improving the power system. response speed and detection accuracy.
Patent Information
- Application Number
- CN202410980734.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-22
AI Technical Summary
Traditional power load monitoring and early warning methods cannot achieve real-time data updates, resulting in untimely response to sudden abnormal events, and the inability to dynamically monitor data, resulting in slow response.
The power load remote monitoring and early warning method based on the Internet of Things is used to collect power load information by setting the sampling frequency according to the user's power consumption characteristics, and uses the long and short-term memory network model to perform abnormal value analysis and early warning, combined with the sliding window and the abnormal value determination formula , dynamically adjust sampling frequency and data processing to achieve real-time monitoring and early warning.
It improves the response speed, improves the accuracy and reliability of anomaly detection, can promptly identify and respond to potential problems in power use, reduces maintenance costs and risks, and provides more intelligent and automated power monitoring and management.
Smart Images

Figure CN118539616B
Abstract
Description
Technical Field
[0001] The present invention proposes a method and system for remote monitoring and early warning of electric load based on the Internet of Things, and relates to the technical field of electric load early warning. Background Art
[0002] With the rapid development of the economy and the improvement of people's living standards, the demand for electricity is increasing, and the stability and reliability of power supply have become particularly important. However, traditional power load monitoring and early warning methods usually rely on periodic data reading, which cannot achieve real-time data updates, resulting in insufficient response to sudden abnormal events. Even if real-time data updates are achieved, dynamic data supervision cannot be achieved, resulting in slow response to sudden abnormal events of power load. Summary of the invention
[0003] The present invention provides a method and system for remote monitoring and early warning of power load based on the Internet of Things to solve the above-mentioned problems:
[0004] The present invention proposes a method for remote monitoring and early warning of electric load based on the Internet of Things, the method comprising:
[0005] Setting a sampling frequency according to the user's electricity consumption characteristics, and collecting the user's power load information according to the sampling frequency;
[0006] Upload the user's power load information to the database, perform abnormal value analysis on the uploaded user power load information, and issue an early warning if an abnormality is found;
[0007] An outlier case is obtained, a long short-term memory network model is trained according to the outlier case, and whether the power is abnormal is predicted by the long short-term memory network model.
[0008] Furthermore, a sampling frequency is set according to the user's power consumption characteristics, and the user's power load information is collected according to the sampling frequency, including:
[0009] The sampling frequency is set according to the user's electricity consumption characteristics according to the sampling frequency model. Specifically, the sampling frequency model is: in, is the sampling frequency, is the highest frequency in the collected signal, α is the growth factor regulator, which determines the maximum multiple increase of the change response, 0<α≤1, is the change in electricity usage of the current observation value relative to the previous observation period, β is the curvature parameter used to control the growth rate of the function, β ≥ 0, is the basic power consumption value;
[0010] Current, voltage and electric power signal sensors are installed at the user's power interface, and the sensors obtain the user's power load information according to the sampling frequency.
[0011] Furthermore, the user power load information is uploaded to the database, and an abnormal value analysis is performed on the uploaded user power load information, including:
[0012] Upload the user's power load information to the database, and each information record must be accompanied by a corresponding user identifier when uploading;
[0013] Deleting and repairing damaged, lost and abnormal data points in the user power load information, and then eliminating interference signals in the user power load information;
[0014] Obtain a sliding window, calculate positive and negative abnormal values in the sliding window, obtain a power load abnormal value range according to the positive and negative abnormal values, and determine whether the current is abnormal according to the power load abnormal value range.
[0015] Specifically, the positive outlier determination formula is:
[0016] in, represents the positive abnormal cumulative value at time point n, represents the actual current value at time point n, k represents the coefficient, and its value range is (0,1). represents the positive anomaly accumulation value at time point n-1, W represents the sliding window size, which means considering the data of the past W time points, represents the time current value at time point ni;
[0017] The negative outlier determination formula is:
[0018] in, Represents the negative abnormal cumulative value at time point n, represents the actual current value at time point n, k represents the coefficient, and its value range is (0,1). represents the negative anomaly accumulation value at time point n-1, W represents the sliding window size, and means considering the data of the past W time points.
[0019] Furthermore, obtaining the sliding window includes:
[0020] The sliding window is calculated through the sliding window model. Specifically, the sliding window model is:
[0021] Where W is the sliding window size, is the standard rate of change set, used to standardize the effect of the rate of change V, is a small positive number to avoid the denominator being zero. and They are the lower and upper limits of the window size, ensuring that the window size changes within this range;
[0022] The rate of change of the current is calculated by the rate of change model. Specifically, the rate of change model is:
[0023] Where V represents the rate of change, and Represent the current values at two consecutive time points respectively.
[0024] Further, an abnormal value case is obtained, a long short-term memory network model is trained according to the abnormal value case, and whether the power is abnormal is predicted by the long short-term memory network model, including:
[0025] When the power load data is within the abnormal value range, an early warning is issued, and at the same time, the abnormal power load data within the time window when the early warning is issued is obtained, and key features that are helpful for identifying abnormalities in the abnormal power load data are extracted, and the key features include the peak value, mutation point and long-term trend of the power load;
[0026] The abnormal power load data is divided into a training set and a test set, the long short-term memory network model is trained using the data in the training set, and the parameters are adjusted to the optimum;
[0027] Receive new power load data in real time, input the power load data into the pre-trained model, and the long short-term memory network model determines whether there is an abnormal pattern based on the input real-time data, detects the abnormality, and issues an early warning. At the same time, the new power load abnormality data that issues the early warning is used as training data to train the long short-term memory network model.
[0028] The present invention proposes a remote monitoring and early warning system for electric load based on the Internet of Things, the system comprising:
[0029] A power load information acquisition module is used to set a sampling frequency according to the user's power consumption characteristics and collect the user's power load information according to the sampling frequency;
[0030] The abnormality analysis module is used to upload the user's power load information to the database, perform abnormal value analysis on the uploaded user power load information, and issue an early warning if an abnormality is found;
[0031] The abnormal prediction model training module is used to obtain abnormal value cases, train the long short-term memory network model according to the abnormal value cases, and predict whether the power is abnormal through the long short-term memory network model.
[0032] Furthermore, the module for obtaining power load information includes:
[0033] The sampling frequency setting module is used to set the sampling frequency according to the user's power consumption characteristics according to the sampling frequency model. Specifically, the sampling frequency model is:
[0034] in, is the sampling frequency, is the highest frequency in the collected signal, α is the growth factor regulator, which determines the maximum multiple increase of the change response, 0<α≤1, is the change in electricity usage of the current observation value relative to the previous observation period, β is the curvature parameter used to control the growth rate of the function, β ≥ 0, is the basic power consumption value;
[0035] The module for acquiring power load information according to the sampling frequency is used to install current, voltage and power signal sensors at the user's power interface, and the sensors acquire the user's power load information according to the sampling frequency.
[0036] Furthermore, the abnormality analysis module includes:
[0037] The module for uploading the database with user identifier is used to upload the user's power load information to the database. When uploading, each information record must be accompanied by the corresponding user identifier;
[0038] A data preprocessing module, used to delete and repair damaged, lost and abnormal data points in the user power load information, and then eliminate interference signals in the user power load information;
[0039] The data abnormality judgment module is used to obtain a sliding window, calculate positive and negative abnormal values in the sliding window, obtain the power load abnormal value range according to the positive and negative abnormal values, and determine whether the current is abnormal according to the power load abnormal value range.
[0040] Specifically, the positive outlier determination formula is:
[0041] in, represents the abnormal cumulative value of the positive current at time point n, represents the actual current value at time point n, k represents the coefficient, and its value range is (0,1). represents the positive anomaly accumulation value at time point n-1, W represents the sliding window size, which means considering the data of the past W time points, represents the time current value at time point ni;
[0042] The negative outlier determination formula is:
[0043] in, Indicates the abnormal accumulated value of negative current at time point n. represents the actual current value at time point n, k represents the coefficient, and its value range is (0,1). represents the negative anomaly accumulation value at time point n-1, W represents the sliding window size, and means considering the data of the past W time points.
[0044] Furthermore, the data abnormality judgment module includes:
[0045] Get the sliding window module, which is used to calculate the sliding window through the sliding window model. Specifically, the sliding window model is: Where W is the sliding window size, is the standard rate of change set, used to standardize the effect of the rate of change V, is a small positive number to avoid the denominator being zero. and They are the lower and upper limits of the window size, ensuring that the window size changes within this range;
[0046] The change rate acquisition module is used to calculate the change rate of the current through the change rate model. Specifically, the change rate model is:
[0047] Where V represents the rate of change, and Represent the current values at two consecutive time points respectively.
[0048] Furthermore, the training abnormality prediction model module includes:
[0049] An abnormal data acquisition module is used to issue an early warning when the power load data is within the abnormal value range, and at the same time, obtain the abnormal power load data within the time window when the early warning is issued, and extract key features from the abnormal power load data that are helpful for identifying abnormalities, wherein the key features include the peak value, mutation point and long-term trend of the power load;
[0050] A training module, used to divide the abnormal power load data into a training set and a test set, use the data in the training set to train the long short-term memory network model, and adjust the parameters to the optimal level;
[0051] The real-time anomaly prediction module is used to receive new power load data in real time and input the power load data into a pre-trained model. The long short-term memory network model determines whether there is an abnormal pattern based on the input real-time data, detects the anomaly, and issues an early warning. At the same time, the new power load abnormality data that issues an early warning is used as training data to train the long short-term memory network model.
[0052] The beneficial effects of the present invention are as follows: improving the response speed, dynamically adjusting the sampling frequency, being able to respond quickly when important changes occur in electricity use, and recording key data in a timely manner, which helps to identify and respond to potential problems more quickly; improving accuracy and reliability, and combining anomaly detection with the LSTM model to improve the accuracy of predicting and detecting power anomalies; the introduction of LSTM is particularly effective for power consumption patterns with complex periodicity and long-term dependence; reducing maintenance costs and risks, and the early warning system can help to discover and solve problems in a timely manner, and prevent greater property losses or safety accidents caused by failures of power equipment or abnormal operations; data-driven decision support, the detailed data collected and in-depth analysis can provide data support for power system management, and help decision makers perform more accurate maintenance and optimization operations; by introducing time windows and positive and negative outlier models, dynamic supervision of power load data can be achieved to respond to abnormal situations of power load data more quickly. Through this comprehensive technical solution, more intelligent and automated power monitoring and management can be achieved, providing an efficient and safe power use environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 This is a schematic diagram of an Internet of Things-based remote monitoring and early warning method for power loads according to the present invention. DETAILED DESCRIPTION
[0054] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0055] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. The embodiments described are only a part of the embodiments of the present invention, rather than 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.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0057] One embodiment of the present invention provides a method for remote monitoring and early warning of power load based on the Internet of Things, the method comprising:
[0058] Setting a sampling frequency according to the user's electricity consumption characteristics, and collecting the user's power load information according to the sampling frequency;
[0059] Upload the user's power load information to the database, perform abnormal value analysis on the uploaded user power load information, and issue an early warning if an abnormality is found;
[0060] An outlier case is obtained, a long short-term memory network model is trained according to the outlier case, and whether the power is abnormal is predicted by the long short-term memory network model.
[0061] The working principle and effect of the above technical solution are as follows: setting the sampling frequency, according to the user's electricity consumption characteristics, using a model-based method to set the sampling frequency of power data, this model considers the highest frequency, electricity consumption changes and basic power consumption to dynamically adjust the sampling rate, this adjustment ensures that when there is a significant change in electricity use, the system can collect data at a higher frequency, thereby capturing important changes in electricity consumption; data collection and uploading, at the set sampling frequency, the user's power load information is collected in real time and uploaded to the central database, so that the data is not only the latest, but also due to the adjustment of the sampling rate, it can more finely reflect the changes in electricity consumption patterns; outlier analysis, after the data is uploaded, outlier analysis is performed to identify electricity that does not conform to the normal pattern. Power usage, which may include sudden increases or decreases in power usage. These anomalies may indicate equipment failure, illegal access, or other potential problems; Early warning mechanism. Once an abnormal value is detected, the early warning mechanism is activated. The warning can promptly notify the user or maintenance team to conduct inspections and responses to avoid possible equipment damage or safety accidents; Long short-term memory network model training and prediction. Using the long short-term memory network (LSTM) model, it is trained based on historical abnormal value cases. LSTM can process and predict time series data and capture long-term dependencies. Through training, the model learns what kind of power usage pattern may be followed by anomalies. During operation, the model can predict in real time whether abnormal patterns will appear in power data and warn of possible problems in advance. Improve response speed. By dynamically adjusting the sampling frequency, it can respond quickly when there are important changes in power usage and record key data in a timely manner. This helps to identify and respond to potential problems more quickly; Improve accuracy and reliability. The combination of anomaly detection and LSTM model improves the accuracy of predicting and detecting power anomalies. The introduction of LSTM is particularly effective for power usage patterns with complex periodicity and long-term dependencies;
[0062] Reduce maintenance costs and risks. The early warning system can help detect and solve problems in a timely manner, and prevent greater property losses or safety accidents caused by failures or abnormal operations of electrical equipment. Data-driven decision support, the detailed data collected and in-depth analysis can provide data support for power system management, helping decision makers to perform more accurate maintenance and optimize operations. Through this comprehensive technical solution, more intelligent and automated power monitoring and management can be achieved, providing an efficient and safe power use environment.
[0063] One embodiment of the present invention is a method for remote monitoring and early warning of power load based on the Internet of Things, which sets a sampling frequency according to the power consumption characteristics of the user, and collects the power load information of the user according to the sampling frequency, including:
[0064] The sampling frequency is set according to the user's electricity consumption characteristics according to the sampling frequency model. Specifically, the sampling frequency model is: in, is the sampling frequency, is the highest frequency in the collected signal, α is the growth factor regulator, which determines the maximum multiple increase of the change response, 0<α≤1, is the change in electricity usage of the current observation value relative to the previous observation period, β is the curvature parameter used to control the growth rate of the function, β ≥ 0, is the basic power consumption value;
[0065] Current, voltage and electric power signal sensors are installed at the user's power interface, and the sensors obtain the user's power load information according to the sampling frequency.
[0066] The working principle and effect of the above technical solution are as follows: This technical solution uses sensors to collect users' power load information (including current, voltage and power) in real time, and dynamically adjusts the data collection frequency according to a preset digital model. The model is based on the rate of change of current and previous power consumption, and uses a simplified logistic regression model to adjust the sampling frequency to make it more sensitive to sudden changes in power consumption. This method aims to reduce data storage and processing requirements while maintaining high responsiveness and monitoring capabilities to changes in system status; Adaptability: The sampling frequency can be dynamically adjusted according to the immediate changes in power load, which ensures that the system can respond quickly and record events in detail when power consumption increases or decreases sharply; Data optimization reduces the frequency of data collection during stable power usage periods and optimizes the use of data storage and processing resources; Sensitivity and real-time, by adjusting parameters α and β, the system can be tuned for specific monitoring needs to ensure rapid response and high sensitivity to sudden changes; Cost-effectiveness, dynamic adjustment of the sampling frequency can reduce energy consumption and operating costs during low demand periods, while providing high-quality data at critical moments to ensure the economic operation and technical benefits of the system, formula Designed to dynamically adjust sampling frequency based on changes in power usage, This part ensures that the sampling frequency is at least twice, satisfying the Nyquist sampling theorem and preventing aliasing. The entire model is also based on the relative change of power usage. Adjustment, α and β allow the response sensitivity and growth rate to be customized according to different scenarios. It provides a smooth, nonlinear way to respond to changes in power consumption. It can not excessively increase the adjustment frequency when the change is small, and quickly increase the frequency when the change is large, so as to ensure the capture of key data. Taking the maximum value between the calculated sampling frequency and 2000 can ensure that the sampling frequency is not less than 2000HZ. The entire model can ensure that the sampling frequency is not less than 2000HZ. The smaller the change value, the slower the sampling frequency, and the larger the change value, the faster the sampling frequency. Flexible adjustment, the model can flexibly adjust the sampling frequency according to the actual power change, which not only saves resources but also is more economical and efficient. Avoid data loss, by ensuring that the sampling frequency is increased when the power load changes greatly, reduce data loss or delay caused by insufficient sampling rate. Reduce noise and redundancy, reduce the sampling frequency when the power consumption changes little, can reduce data noise and redundancy, improve data quality and processing efficiency. Adjustability, the introduction of α and β allows the system to adjust its sensitivity and response speed according to different application requirements, providing a high degree of customization. In summary, this design method achieves technical flexibility and economic efficiency, effectively balances the relationship between monitoring needs and resource consumption, and is particularly suitable for large-scale power monitoring and management systems.
[0067] An embodiment of the present invention is a method for remote monitoring and early warning of power load based on the Internet of Things, which uploads user power load information to a database and performs abnormal value analysis on the uploaded user power load information, including:
[0068] Upload the user's power load information to the database, and each information record must be accompanied by a corresponding user identifier when uploading;
[0069] Deleting and repairing damaged, lost and abnormal data points in the user power load information, and then eliminating interference signals in the user power load information;
[0070] Obtain a sliding window, calculate positive and negative abnormal values in the sliding window, obtain a power load abnormal value range according to the positive and negative abnormal values, and determine whether the current is abnormal according to the power load abnormal value range.
[0071] Specifically, the positive outlier determination formula is:
[0072] in, represents the positive abnormal cumulative value at time point n, represents the actual current value at time point n, k represents the coefficient, and its value range is (0,1). represents the positive anomaly accumulation value at time point n-1, W represents the sliding window size, which means considering the data of the past W time points, represents the time current value at time point ni;
[0073] The negative outlier determination formula is:
[0074] in, Represents the negative abnormal cumulative value at time point n, represents the actual current value at time point n, k represents the coefficient, and its value range is (0,1). represents the negative anomaly accumulation value at time point n-1, W represents the sliding window size, which means considering the data of the past W time points, , .
[0075] The working principle and effect of the above technical solution are as follows: through the systematic monitoring and analysis of power load information, the detection of current anomalies is realized. The system receives current data from the sensor and uploads this data (with user identifiers) to the database, uses advanced data processing technology to clean the data, eliminate interference signals, and calculates the normal and abnormal ranges of current values through sliding window technology to identify potential abnormal current activities. The positive and negative abnormal value accumulation method is used to identify power anomalies; this method not only detects the magnitude of the anomaly, but also accumulates the frequency and intensity of the anomaly, providing a basis for making more accurate judgments; the calculation within the sliding window Provides a dynamic average of current values over time, which helps track long-term trends; calculation within the sliding window Measures the fluctuation of data. The larger the value, the more drastic the change in current value. and Configurable as positive or negative cumulative anomaly values to help identify persistent abnormal activity rather than occasional fluctuations; can enhance sensitivity and responsiveness. By accumulating anomalies, the system can identify problems when anomalies begin to accumulate, rather than waiting until the anomalies reach a certain high point; reduce false alarms, define normal ranges based on historical data, and help reduce false alarms due to normal fluctuations; dynamic thresholds, dynamically calculate the k-fold value used as the threshold, so that the system can adapt to the natural fluctuations of data under different circumstances, making the system more adaptable. Through such a design, the system can improve the accuracy and efficiency of power load anomaly detection and provide protection for the safe and reliable operation of the power system; by defining positive and negative abnormal accumulation values and ,The formula is able to take into account the persistence and cumulative effects of abnormal events, which means that even if a single data point may not be enough to trigger an abnormal alert, a series of data points that continuously deviate from the normal range may cause the cumulative value to exceed the threshold, thereby triggering anomaly detection; Provides a starting point for the window size. When there are no other external factors such as the rate of change V, the size of the sliding window will be this baseline value. It is an adjustment factor that is related to the rate of change V and the standard rate of change. Working together, dynamically adjusting the window size based on real-time data, this design allows the window size to be adaptively adjusted as the fluctuation of power load increases or decreases; maintaining stability, in this model, It also helps ensure that the window size will not be adjusted drastically due to temporary small fluctuations, thereby maintaining the stability and continuity of the analysis process. When choosing a value for , you should choose an appropriate value based on the characteristics of historical data, analysis requirements, and the magnitude of data changes. , usually this needs to be set through preliminary experiments or based on experience, The choice of has a direct impact on the flexibility and responsiveness of the system, a smaller makes the system more sensitive to changes, while a larger Better suited for smoothing long-term trends in large amounts of data, In the sliding window model, it plays a key role in adjusting the size of the reference window, so that the entire system can be flexibly adjusted according to the changes in actual data, which is particularly important for dynamic and complex data environments, such as power load monitoring and other application scenarios. In summary, the improved formula design improves the accuracy, flexibility and robustness of power load anomaly detection by introducing the concepts of dynamic thresholds and sliding window averages. This method can better adapt to the dynamic characteristics of data, effectively identify abnormal events, and reduce the possibility of false positives and false negatives.
[0076] In one embodiment of the present invention, a method for remote monitoring and early warning of electric load based on the Internet of Things is provided, wherein obtaining a sliding window comprises:
[0077] The sliding window is calculated through the sliding window model. Specifically, the sliding window model is:
[0078] Where W is the sliding window size, is the standard rate of change set, used to standardize the effect of the rate of change V, is a small positive number to avoid the denominator being zero. and They are the lower and upper limits of the window size, ensuring that the window size changes within this range;
[0079] The rate of change of the current is calculated by the rate of change model. Specifically, the rate of change model is:
[0080] Where V represents the rate of change, and Represent the current values at two consecutive time points respectively.
[0081] The working principle and effect of the above technical solution are as follows: Dynamic adjustment, the sliding window model allows the sliding window size W to be dynamically adjusted according to the current change rate V. When the change rate is large, the window will be reduced to more accurately capture the current change; when the change rate is small, the window will be expanded to include more historical data, thereby improving stability and limiting the range. By setting the minimum window size and maximum window size , which can ensure that the sliding window is not too small or too large, thus avoiding misjudgment in extreme cases. The existence of is to prevent the denominator from becoming 0 when V is very close to 0, thereby ensuring the mathematical stability of the formula; the sliding window model can adjust the window size according to the real-time changes of the current data, which improves the flexibility and accuracy of anomaly detection; by limiting the range of the window size, the interference of abnormal data on the calculation of the window size is reduced, and the robustness of the algorithm is enhanced; the rate of change model directly calculates the relative change rate of the current value at two adjacent time points, which can intuitively reflect the change of the current; using the data of two adjacent time points for calculation simplifies the complexity of data processing and calculation; it can quickly reflect the change of current and is suitable for real-time monitoring and anomaly detection scenarios; even small current changes can be captured by the rate of change model, which improves the sensitivity of anomaly detection; in summary, the design of these two models aims to improve the accuracy, sensitivity and robustness of power load anomaly detection. By dynamically adjusting the sliding window size and calculating the current change rate in real time, the system can more effectively identify abnormal current fluctuations, so that corresponding measures can be taken in time to ensure the stable operation of the power system.
[0082] An embodiment of the present invention is a method for remote monitoring and early warning of electric load based on the Internet of Things, which obtains abnormal value cases, trains a long short-term memory network model according to the abnormal value cases, and predicts whether the electric power is abnormal by using the long short-term memory network model, including:
[0083] When the power load data is within the abnormal value range, an early warning is issued, and at the same time, the abnormal power load data within the time window when the early warning is issued is obtained, and key features that are helpful for identifying abnormalities in the abnormal power load data are extracted, and the key features include the peak value, mutation point and long-term trend of the power load;
[0084] The abnormal power load data is divided into a training set and a test set, the long short-term memory network model is trained using the data in the training set, and the parameters are adjusted to the optimum;
[0085] Receive new power load data in real time, input the power load data into the pre-trained model, and the long short-term memory network model determines whether there is an abnormal pattern based on the input real-time data, detects the abnormality, and issues an early warning. At the same time, the new power load abnormality data that issues the early warning is used as training data to train the long short-term memory network model.
[0086] The working principle and effect of the above technical solution are as follows: This technical solution is based on the long short-term memory network (LSTM), a deep learning model particularly suitable for time series data processing, to monitor power load data. LSTM can remember long-term dependent information, which makes it particularly suitable for time series analysis and anomaly detection of power data; data preparation and feature extraction, first extract key features from the power load data, such as peaks, mutation points and long-term trends, these features can help the model identify typical and abnormal patterns of power load; data set segmentation, divide the data into training sets and test sets, the training set is used for model learning and parameter tuning, and the test set is used to verify the generalization ability and accuracy of the model; model training and optimization, use the training set data to train the LSTM model, and adjust the model parameters to achieve optimal performance; during system operation, real-time power load data is input into the pre-trained LSTM model. If the model detects an abnormal pattern, the system will issue an early warning; the detected abnormal data is added to the training set, so that the model can optimize itself by continuously learning new data, thereby improving the accuracy and efficiency of its anomaly detection. Improve recognition accuracy. The LSTM model can learn the complex patterns and long-term dependencies of power load data, so as to accurately identify anomalies in a changing environment. Real-time monitoring and response. The system can process power data in real time and respond to anomalies quickly, which helps to timely discover and solve problems in the power system. Adaptation and self-optimization. By continuously learning the latest anomaly data, the model can adapt to new power load patterns and environmental changes and maintain efficient early warning performance. Through continuous optimization and training, the LSTM model more accurately understands what is a normal mode and an abnormal mode, which helps to reduce the occurrence of false alarms and missed alarms. Through this LSTM-based power load monitoring and anomaly detection system, efficient and accurate monitoring of the operating status of power facilities can be achieved, and the reliability and safety of the power system can be improved.
[0087] One embodiment of the present invention is a remote monitoring and early warning system for electric load based on the Internet of Things, the system comprising:
[0088] A power load information acquisition module is used to set a sampling frequency according to the user's power consumption characteristics and collect the user's power load information according to the sampling frequency;
[0089] The abnormality analysis module is used to upload the user's power load information to the database, perform abnormal value analysis on the uploaded user power load information, and issue an early warning if an abnormality is found;
[0090] The abnormal prediction model training module is used to obtain abnormal value cases, train the long short-term memory network model according to the abnormal value cases, and predict whether the power is abnormal through the long short-term memory network model.
[0091] The working principle and effect of the above technical solution are as follows: setting the sampling frequency, according to the user's electricity consumption characteristics, using a model-based method to set the sampling frequency of power data, this model considers the highest frequency, electricity consumption changes and basic power consumption to dynamically adjust the sampling rate, this adjustment ensures that when there is a significant change in electricity use, the system can collect data at a higher frequency, thereby capturing important changes in electricity consumption; data collection and uploading, at the set sampling frequency, the user's power load information is collected in real time and uploaded to the central database, so that the data is not only the latest, but also due to the adjustment of the sampling rate, it can more finely reflect the changes in electricity consumption patterns; outlier analysis, after the data is uploaded, outlier analysis is performed to identify electricity that does not conform to the normal pattern. Power usage, which may include sudden increases or decreases in power usage. These anomalies may indicate equipment failure, illegal access, or other potential problems; Early warning mechanism. Once an abnormal value is detected, the early warning mechanism is activated. The warning can promptly notify the user or maintenance team to conduct inspections and responses to avoid possible equipment damage or safety accidents; Long short-term memory network model training and prediction. Using the long short-term memory network (LSTM) model, it is trained based on historical abnormal value cases. LSTM can process and predict time series data and capture long-term dependencies. Through training, the model learns what kind of power usage pattern may be followed by anomalies. During operation, the model can predict in real time whether abnormal patterns will appear in power data and warn of possible problems in advance. Improve response speed. By dynamically adjusting the sampling frequency, it can respond quickly when there are important changes in power usage and record key data in a timely manner. This helps to identify and respond to potential problems more quickly; Improve accuracy and reliability. The combination of anomaly detection and LSTM model improves the accuracy of predicting and detecting power anomalies. The introduction of LSTM is particularly effective for power usage patterns with complex periodicity and long-term dependencies;
[0092] Reduce maintenance costs and risks. The early warning system can help detect and solve problems in a timely manner, and prevent greater property losses or safety accidents caused by failures or abnormal operations of electrical equipment. Data-driven decision support, the detailed data collected and in-depth analysis can provide data support for power system management, helping decision makers to perform more accurate maintenance and optimize operations. Through this comprehensive technical solution, more intelligent and automated power monitoring and management can be achieved, providing an efficient and safe power use environment.
[0093] In one embodiment of the present invention, a power load remote monitoring and early warning system based on the Internet of Things, the power load information acquisition module includes:
[0094] The sampling frequency setting module is used to set the sampling frequency according to the user's power consumption characteristics according to the sampling frequency model. Specifically, the sampling frequency model is: in, is the sampling frequency, is the highest frequency in the collected signal, α is the growth factor regulator, which determines the maximum multiple increase of the change response, 0<α≤1, is the change in electricity usage of the current observation value relative to the previous observation period, β is the curvature parameter used to control the growth rate of the function, β ≥ 0, is the basic power consumption value;
[0095] The module for acquiring power load information according to the sampling frequency is used to install current, voltage and power signal sensors at the user's power interface, and the sensors acquire the user's power load information according to the sampling frequency.
[0096] The working principle and effect of the above technical solution are as follows: This technical solution uses sensors to collect users' power load information (including current, voltage and power) in real time, and dynamically adjusts the data collection frequency according to a preset digital model. The model is based on the rate of change of current and previous power consumption, and uses a simplified logistic regression model to adjust the sampling frequency to make it more sensitive to sudden changes in power consumption. This method aims to reduce data storage and processing requirements while maintaining high responsiveness and monitoring capabilities to changes in system status; Adaptability: The sampling frequency can be dynamically adjusted according to the immediate changes in power load, which ensures that the system can respond quickly and record events in detail when power consumption increases or decreases sharply; Data optimization reduces the frequency of data collection during stable power usage periods and optimizes the use of data storage and processing resources; Sensitivity and real-time, by adjusting parameters α and β, the system can be tuned for specific monitoring needs to ensure rapid response and high sensitivity to sudden changes; Cost-effectiveness, dynamic adjustment of the sampling frequency can reduce energy consumption and operating costs during low demand periods, while providing high-quality data at critical moments to ensure the economic operation and technical benefits of the system, formula Designed to dynamically adjust sampling frequency based on changes in power usage, This part ensures that the sampling frequency is at least twice, satisfying the Nyquist sampling theorem and preventing aliasing. The entire model is also based on the relative change of power usage. Adjustment, α and β allow the response sensitivity and growth rate to be customized according to different scenarios. It provides a smooth, nonlinear way to respond to changes in power consumption. It can not excessively increase the adjustment frequency when the change is small, and quickly increase the frequency when the change is large, so as to ensure the capture of key data. Taking the maximum value between the calculated sampling frequency and 2000 can ensure that the sampling frequency is not less than 2000HZ. The entire model can ensure that the sampling frequency is not less than 2000HZ. The smaller the change value, the slower the sampling frequency, and the larger the change value, the faster the sampling frequency. Flexible adjustment, the model can flexibly adjust the sampling frequency according to the actual power change, which not only saves resources but also is more economical and efficient. Avoid data loss, by ensuring that the sampling frequency is increased when the power load changes greatly, reduce data loss or delay caused by insufficient sampling rate. Reduce noise and redundancy, reduce the sampling frequency when the power consumption changes little, can reduce data noise and redundancy, improve data quality and processing efficiency. Adjustability, the introduction of α and β allows the system to adjust its sensitivity and response speed according to different application requirements, providing a high degree of customization. In summary, this design method achieves technical flexibility and economic efficiency, effectively balances the relationship between monitoring needs and resource consumption, and is particularly suitable for large-scale power monitoring and management systems.
[0097] In one embodiment of the present invention, a remote monitoring and early warning system for electric load based on the Internet of Things, the abnormality analysis module includes:
[0098] The module for uploading the database with user identifier is used to upload the user's power load information to the database. When uploading, each information record must be accompanied by the corresponding user identifier;
[0099] A data preprocessing module, used to delete and repair damaged, lost and abnormal data points in the user power load information, and then eliminate interference signals in the user power load information;
[0100] The data abnormality judgment module is used to obtain a sliding window, calculate positive and negative abnormal values in the sliding window, obtain the power load abnormal value range according to the positive and negative abnormal values, and determine whether the current is abnormal according to the power load abnormal value range.
[0101] Specifically, the positive outlier determination formula is:
[0102] in, represents the abnormal cumulative value of the positive current at time point n, represents the actual current value at time point n, k represents the coefficient, and its value range is (0,1). represents the positive anomaly accumulation value at time point n-1, W represents the sliding window size, which means considering the data of the past W time points, represents the time current value at time point ni;
[0103] The negative outlier determination formula is:
[0104] in, Indicates the abnormal accumulated value of negative current at time point n. represents the actual current value at time point n, k represents the coefficient, and its value range is (0,1). represents the negative anomaly accumulation value at time point n-1, W represents the sliding window size, and means considering the data of the past W time points.
[0105] The working principle and effect of the above technical solution are as follows: through the systematic monitoring and analysis of power load information, the detection of current anomalies is realized. The system receives current data from the sensor and uploads this data (with user identifiers) to the database, uses advanced data processing technology to clean the data, eliminate interference signals, and calculates the normal and abnormal ranges of current values through sliding window technology to identify potential abnormal current activities. The positive and negative abnormal value accumulation method is used to identify power anomalies; this method not only detects the magnitude of the anomaly, but also accumulates the frequency and intensity of the anomaly, providing a basis for making more accurate judgments; the calculation within the sliding window Provides a dynamic average of current values over time, which helps track long-term trends; calculation within the sliding window Measures the fluctuation of data. The larger the value, the more drastic the change in current value. and Configurable as positive or negative cumulative anomaly values to help identify persistent abnormal activity rather than occasional fluctuations; can enhance sensitivity and responsiveness. By accumulating anomalies, the system can identify problems when anomalies begin to accumulate, rather than waiting until the anomalies reach a certain high point; reduce false alarms, define normal ranges based on historical data, and help reduce false alarms due to normal fluctuations; dynamic thresholds, dynamically calculate the k-fold value used as the threshold, so that the system can adapt to the natural fluctuations of data under different circumstances, making the system more adaptable. Through such a design, the system can improve the accuracy and efficiency of power load anomaly detection and provide protection for the safe and reliable operation of the power system; by defining positive and negative abnormal accumulation values and , the formula can take into account the persistence and cumulative effects of abnormal events, which means that even if a single data point may not be enough to trigger an abnormal alarm, a series of data points that continuously deviate from the normal range may cause the cumulative value to exceed the threshold, thereby triggering anomaly detection; In summary, the improved formula design improves the accuracy, flexibility and robustness of power load anomaly detection by introducing the concepts of dynamic threshold and sliding window average. This method can better adapt to the dynamic characteristics of data, effectively identify abnormal events, and reduce the possibility of false alarms and missed alarms.
[0106] In one embodiment of the present invention, a remote monitoring and early warning system for electric load based on the Internet of Things, the module for judging data abnormality includes:
[0107] Get the sliding window module, which is used to calculate the sliding window through the sliding window model. Specifically, the sliding window model is: Where W is the sliding window size, is the standard rate of change set, used to standardize the effect of the rate of change V, is a small positive number to avoid the denominator being zero. and They are the lower and upper limits of the window size, ensuring that the window size changes within this range;
[0108] The change rate acquisition module is used to calculate the change rate of the current through the change rate model. Specifically, the change rate model is:
[0109] Where V represents the rate of change, and Represent the current values at two consecutive time points respectively.
[0110] The working principle and effect of the technical solution are as follows: dynamic adjustment, the sliding window model allows the sliding window size W to be dynamically adjusted according to the current change rate V. When the change rate is large, the window will be reduced to more accurately capture the current change; when the change rate is small, the window will be expanded to include more historical data, thereby improving stability and limiting the range. By setting the minimum window size and maximum window size , which can ensure that the sliding window is not too small or too large, thus avoiding misjudgment in extreme cases. The existence of is to prevent the denominator from becoming 0 when V is very close to 0, thereby ensuring the mathematical stability of the formula; the sliding window model can adjust the window size according to the real-time changes of the current data, which improves the flexibility and accuracy of anomaly detection; by limiting the range of the window size, the interference of abnormal data on the calculation of the window size is reduced, and the robustness of the algorithm is enhanced; the rate of change model directly calculates the relative change rate of the current value at two adjacent time points, which can intuitively reflect the change of the current; using the data of two adjacent time points for calculation simplifies the complexity of data processing and calculation; it can quickly reflect the change of current and is suitable for real-time monitoring and anomaly detection scenarios; even small current changes can be captured by the rate of change model, which improves the sensitivity of anomaly detection; in summary, the design of these two models aims to improve the accuracy, sensitivity and robustness of power load anomaly detection. By dynamically adjusting the sliding window size and calculating the current change rate in real time, the system can more effectively identify abnormal current fluctuations, so that corresponding measures can be taken in time to ensure the stable operation of the power system.
[0111] In one embodiment of the present invention, a remote monitoring and early warning system for electric load based on the Internet of Things, the training abnormality prediction model module comprises:
[0112] An abnormal data acquisition module is used to issue an early warning when the power load data is within the abnormal value range, and at the same time, obtain the abnormal power load data within the time window when the early warning is issued, and extract key features from the abnormal power load data that are helpful for identifying abnormalities, wherein the key features include the peak value, mutation point and long-term trend of the power load;
[0113] A training module, used to divide the abnormal power load data into a training set and a test set, use the data in the training set to train the long short-term memory network model, and adjust the parameters to the optimal level;
[0114] The real-time anomaly prediction module is used to receive new power load data in real time and input the power load data into a pre-trained model. The long short-term memory network model determines whether there is an abnormal pattern based on the input real-time data, detects the anomaly, and issues an early warning. At the same time, the new power load abnormality data that issues an early warning is used as training data to train the long short-term memory network model.
[0115] The working principle and effect of the above technical solution are as follows: setting the sampling frequency, according to the user's electricity consumption characteristics, using a model-based method to set the sampling frequency of power data, this model considers the highest frequency, electricity consumption changes and basic power consumption to dynamically adjust the sampling rate, this adjustment ensures that when there is a significant change in electricity use, the system can collect data at a higher frequency, thereby capturing important changes in electricity consumption; data collection and uploading, at the set sampling frequency, the user's power load information is collected in real time and uploaded to the central database, so that the data is not only the latest, but also due to the adjustment of the sampling rate, it can more finely reflect the changes in electricity consumption patterns; outlier analysis, after the data is uploaded, outlier analysis is performed to identify electricity that does not conform to the normal pattern. Power usage, which may include sudden increases or decreases in power usage. These anomalies may indicate equipment failure, illegal access, or other potential problems; Early warning mechanism. Once an abnormal value is detected, the early warning mechanism is activated. The warning can promptly notify the user or maintenance team to conduct inspections and responses to avoid possible equipment damage or safety accidents; Long short-term memory network model training and prediction. Using the long short-term memory network (LSTM) model, it is trained based on historical abnormal value cases. LSTM can process and predict time series data and capture long-term dependencies. Through training, the model learns what kind of power usage pattern may be followed by anomalies. During operation, the model can predict in real time whether abnormal patterns will appear in power data and warn of possible problems in advance. Improve response speed. By dynamically adjusting the sampling frequency, it can respond quickly when there are important changes in power usage and record key data in a timely manner. This helps to identify and respond to potential problems more quickly; Improve accuracy and reliability. The combination of anomaly detection and LSTM model improves the accuracy of predicting and detecting power anomalies. The introduction of LSTM is particularly effective for power usage patterns with complex periodicity and long-term dependencies;
[0116] Reduce maintenance costs and risks. The early warning system can help detect and solve problems in a timely manner, and prevent greater property losses or safety accidents caused by failures or abnormal operations of electrical equipment. Data-driven decision support, the detailed data collected and in-depth analysis can provide data support for power system management, helping decision makers to perform more accurate maintenance and optimize operations. Through this comprehensive technical solution, more intelligent and automated power monitoring and management can be achieved, providing an efficient and safe power use environment.
[0117] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for remote monitoring and early warning of power load based on the Internet of Things, characterized in that: The method comprises: Setting a sampling frequency according to the user's electricity consumption characteristics, and collecting the user's power load information according to the sampling frequency; Upload the user's power load information to the database, perform abnormal value analysis on the uploaded user power load information, and issue an early warning if an abnormality is found; Obtaining an outlier case, training a long short-term memory network model according to the outlier case, and predicting whether the power is abnormal by using the long short-term memory network model; The uploading of the user power load information to the database and performing abnormal value analysis on the uploaded user power load information include: Upload the user's power load information to the database, and each information record must be accompanied by a corresponding user identifier when uploading; Deleting and repairing damaged, lost and abnormal data points in the user power load information, and then eliminating interference signals in the user power load information; Obtain a sliding window, calculate positive and negative abnormal values in the sliding window, obtain a power load abnormal value range according to the positive and negative abnormal values, and determine whether the current is abnormal according to the power load abnormal value range. Specifically, the positive outlier determination formula is: in, represents the positive abnormal cumulative value at time point n, represents the actual current value at time point n, k represents the coefficient, and its value range is (0,1). represents the positive anomaly accumulation value at time point n-1, W represents the sliding window size, which means considering the data of the past W time points, represents the time current value at time point ni; The negative outlier determination formula is: in, Represents the negative abnormal cumulative value at time point n, represents the actual current value at time point n, k represents the coefficient, and its value range is (0,1). represents the negative anomaly accumulation value at time point n-1, W represents the sliding window size, which means considering the data of the past W time points; Wherein, obtaining the sliding window includes: The sliding window is calculated through the sliding window model. Specifically, the sliding window model is: Where W is the sliding window size, Represents the benchmark size of the sliding window, which is a preset value. V0 is the set standard change rate, which is used to standardize the influence of the change rate V. is a small positive number to avoid the denominator being zero. and They are the lower and upper limits of the window size, ensuring that the window size changes within this range; The rate of change of the current is calculated by the rate of change model. Specifically, the rate of change model is: Where V represents the rate of change, and Represent the current values at two consecutive time points respectively.
2. According to the method of remote monitoring and early warning of power load based on the Internet of Things in claim 1, it is characterized in that: The sampling frequency is set according to the user's power consumption characteristics, and the user's power load information is collected according to the sampling frequency, including: The sampling frequency is set according to the user's electricity consumption characteristics according to the sampling frequency model. Specifically, the sampling frequency model is: in, is the sampling frequency, is the highest frequency in the collected signal, α is the growth factor regulator, which determines the maximum multiple increase of the change response, 0<α≤1, is the change in electricity usage of the current observation value relative to the previous observation period, β is the curvature parameter used to control the growth rate of the function, β ≥ 0, is the basic power consumption value; Current, voltage and electric power signal sensors are installed at the user's power interface, and the sensors obtain the user's power load information according to the sampling frequency.
3. According to the method of remote monitoring and early warning of power load based on the Internet of Things in claim 1, it is characterized in that: Obtaining an abnormal value case, training a long short-term memory network model according to the abnormal value case, and predicting whether the power is abnormal by using the long short-term memory network model, including: When the power load data is within the abnormal value range, an early warning is issued, and at the same time, the abnormal power load data within the time window when the early warning is issued is obtained, and key features that are helpful for identifying abnormalities in the abnormal power load data are extracted, and the key features include the peak value, mutation point and long-term trend of the power load; The abnormal power load data is divided into a training set and a test set, the long short-term memory network model is trained using the data in the training set, and the parameters are adjusted to the optimum; Receive new power load data in real time, input the power load data into the pre-trained model, and the long short-term memory network model determines whether there is an abnormal pattern based on the input real-time data, detects the abnormality, and issues an early warning. At the same time, the new power load abnormality data that issues the early warning is used as training data to train the long short-term memory network model.
4. A remote monitoring and early warning system for power load based on the Internet of Things, characterized in that: The system comprises: A power load information acquisition module is used to set a sampling frequency according to the user's power consumption characteristics and collect the user's power load information according to the sampling frequency; The abnormality analysis module is used to upload the user's power load information to the database, perform abnormal value analysis on the uploaded user power load information, and issue an early warning if an abnormality is found; A training abnormality prediction model module is used to obtain abnormal value cases, train a long short-term memory network model according to the abnormal value cases, and predict whether the power is abnormal through the long short-term memory network model; Wherein, the abnormality analysis module includes: The module for uploading the database with user identifier is used to upload the user's power load information to the database. When uploading, each information record must be accompanied by the corresponding user identifier; A data preprocessing module, used to delete and repair damaged, lost and abnormal data points in the user power load information, and then eliminate interference signals in the user power load information; The data abnormality judgment module is used to obtain a sliding window, calculate positive and negative abnormal values in the sliding window, obtain the power load abnormal value range according to the positive and negative abnormal values, and determine whether the current is abnormal according to the power load abnormal value range. Specifically, the positive outlier determination formula is: in, represents the positive abnormal cumulative value at time point n, represents the actual current value at time point n, k represents the coefficient, and its value range is (0,1). represents the positive anomaly accumulation value at time point n-1, W represents the sliding window size, which means considering the data of the past W time points, Represents the time current value at time point ni; the negative outlier determination formula is: in, Indicates the abnormal accumulated value of negative current at time point n. represents the actual current value at time point n, k represents the coefficient, and its value range is (0,1). represents the negative anomaly accumulation value at time point n-1, W represents the sliding window size, which means considering the data of the past W time points; The data abnormality judgment module includes: Get the sliding window module, which is used to calculate the sliding window through the sliding window model. Specifically, the sliding window model is: Where W is the sliding window size, V0 is the set standard change rate, which is used to standardize the impact of the change rate V. is a small positive number to avoid the denominator being zero. and They are the lower and upper limits of the window size, ensuring that the window size changes within this range; The change rate acquisition module is used to calculate the change rate of the current through the change rate model. Specifically, the change rate model is: Where V represents the rate of change, and Represent the current values at two consecutive time points respectively.
5. According to claim 4, a remote monitoring and early warning system for electric load based on the Internet of Things is characterized in that: The module for obtaining power load information includes: The sampling frequency setting module is used to set the sampling frequency according to the user's power consumption characteristics according to the sampling frequency model. Specifically, the sampling frequency model is: in, is the sampling frequency, is the highest frequency in the collected signal, α is the growth factor regulator, which determines the maximum multiple increase of the change response, 0<α≤1, is the change in electricity usage of the current observation value relative to the previous observation period, β is the curvature parameter used to control the growth rate of the function, β ≥ 0, is the basic power consumption value; The module for acquiring power load information according to the sampling frequency is used to install current, voltage and power signal sensors at the user's power interface, and the sensors acquire the user's power load information according to the sampling frequency.
6. According to claim 4, a remote monitoring and early warning system for electric load based on the Internet of Things is characterized in that: The training abnormal prediction model module includes: An abnormal data acquisition module is used to issue an early warning when the power load data is within the abnormal value range, and at the same time, obtain the abnormal power load data within the time window when the early warning is issued, and extract key features from the abnormal power load data that are helpful for identifying abnormalities, wherein the key features include the peak value, mutation point and long-term trend of the power load; A training module, used to divide the abnormal power load data into a training set and a test set, use the data in the training set to train the long short-term memory network model, and adjust the parameters to the optimal level; The real-time anomaly prediction module is used to receive new power load data in real time and input the power load data into a pre-trained model. The long short-term memory network model determines whether there is an abnormal pattern based on the input real-time data, detects the anomaly, and issues an early warning. At the same time, the new power load abnormality data that issues an early warning is used as training data to train the long short-term memory network model.
