User power consumption data detection method, device and system, medium and equipment
By configuring and debugging the parameters of the power consumption data collection equipment, and combining machine learning technology to identify abnormal data, the problem of insufficient data analysis and exception handling capabilities of the power consumption data collection system in the existing technology has been solved, and the accuracy of data collection has been improved. and power system operation and maintenance efficiency.
Patent Information
- Application Number
- CN202411033251.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, the user electricity data collection system has limited comparative analysis capabilities between historical data and real-time data. It is difficult to quickly identify changes in data patterns and process abnormal data, which affects billing accuracy and refinement of power grid management.
Through fine parameter configuration, comprehensive debugging and real-time data collection of power consumption data collection equipment, combined with expert systems and machine learning technology, abnormal data can be efficiently identified and classified for differentiated processing.
It improves the accuracy of power consumption data collection and the operation and maintenance efficiency of the power system, ensuring the stable operation and optimized management of the power system.
Smart Images

Figure CN118820901A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electric power information collection, and specifically relates to a method, device, system, medium and equipment for detecting user electricity consumption data. Background Art
[0002] In the existing technology, the collection of user electricity consumption data mainly relies on various smart meters and data collection terminals. These devices are connected to the central management system through a preset communication protocol to continuously monitor and report the user's electricity consumption. Although these systems have achieved automation and remote monitoring to a certain extent, they still face some challenges, such as limited ability to compare and analyze historical data with real-time data, difficulty in quickly identifying changes in data patterns, and insufficient classification and processing of abnormal data, which affects billing accuracy and refined management of the power grid. Summary of the invention
[0003] In view of the deficiencies in the prior art, the purpose of this application is to provide a user electricity consumption data detection method, device, system, medium and equipment. This application aims to improve the accuracy of user electricity consumption data collection and the operation and maintenance efficiency of the power system.
[0004] To achieve the above objectives, this application provides the following technical solutions: A method for detecting user electricity consumption data, the method comprising: configuring online parameters of an electricity consumption data collection device; debugging the electricity consumption data collection device after completing the online parameter configuration; sending instructions to the debugged electricity consumption data collection device to collect user electricity consumption data; comparing the user electricity consumption data with stored historical electricity consumption data, and during the data comparison process, if there is abnormal data, identifying and classifying the abnormal data, and performing differential processing on the electricity consumption data collection device.
[0005] Optionally, the online parameters include but are not limited to: communication parameters, all event parameters and power-off parameters.
[0006] In addition, the present application also provides a user electricity consumption data detection device, which includes: a parameter configuration module, which is used to perform online parameter configuration on the electricity consumption data collection device; a debugging module, which is used to debug the electricity consumption data collection device that has completed the online parameter configuration; a data collection module, which is used to send instructions to the debugged electricity consumption data collection device to collect user electricity consumption data; a data comparison module, which is used to compare the user electricity consumption data with the stored historical electricity consumption data. During the data comparison process, if there is abnormal data, the abnormal data is identified and classified, and the electricity consumption data collection device is differentiated.
[0007] In addition, the present application also provides a user electricity consumption data detection system, which includes the device as described above.
[0008] In addition, the present application also provides a user electricity consumption data detection device, which applies the method described above.
[0009] In addition, the present application also provides a storage medium, which includes instructions, and when the instructions are executed on a computer, the computer executes the method as described above.
[0010] In addition, the present application also provides an electronic device, the electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the above method is implemented.
[0011] Compared with the prior art, the present invention has the following beneficial effects: This application conducts fine parameter configuration, comprehensive debugging, real-time data collection and processing of electric data acquisition equipment, and uses expert systems and machine learning technology to efficiently identify and classify abnormal data, thereby guiding differentiated processing and ensuring stable operation and optimized management of the power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a flowchart of a method for detecting user power consumption data provided by an embodiment of the present application; Figure 2 is a schematic diagram of the structure of a prediction network in an abnormal data detection model provided by another embodiment of the present application; Figure 3 It is a structural schematic diagram of a user electricity consumption data detection device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0013] The specific embodiments of the present application will be described in detail below with reference to the accompanying drawings. Although the specific embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0014] It should be noted that certain words are used in the specification and claims to refer to specific components. Those skilled in the art should understand that technicians may use different nouns to refer to the same component. This specification and claims do not use the difference in nouns as a way to distinguish components, but use the difference in the functions of the components as the criterion for distinction. As mentioned throughout the specification and claims, "including" or "comprising" is an open term, so it should be interpreted as "including but not limited to". The subsequent description of the specification is a preferred embodiment of the implementation of the present application, but the description is based on the general principles of the specification and is not used to limit the scope of the present application. The scope of protection of the present application shall be determined by the attached claims.
[0015] To facilitate understanding of the embodiments of the present application, further explanation will be given below using specific embodiments as examples in conjunction with the accompanying drawings, and the various drawings do not constitute a limitation on the embodiments of the present application.
[0016] Figure 1 This is a flow chart of a method for detecting user electricity consumption data proposed in this application. The execution subject of the method is an electronic device, which may be, for example, a mobile terminal, a computer, a server, etc. with computing capabilities. Figure 1 As shown, the method comprises the following steps: S100: Perform online parameter configuration on the power consumption data collection device; In this step, the online parameters of the power consumption data collection device include communication parameters, all event parameters and power-off parameters.
[0017] First, the communication parameters need to be configured, including: 1) Communication channel: For example, GPRS, 4G, NB-IoT or local area network, etc., which needs to be determined based on the network environment and device support.
[0018] 2) Communication address: Enter or select a unique communication address to ensure that the electricity consumption data collection device is uniquely identified in the system.
[0019] 3) Serial number of energy meter / AC sampling device: Enter the serial number of the energy meter or AC sampling device corresponding to the electricity consumption data collection device to establish the association between the device and the energy meter.
[0020] 4) Communication rate and port number: Set the data transmission rate (such as 9600bps) and port to ensure the efficiency and direction of data transmission.
[0021] 5) Communication protocol type: Select the appropriate communication protocol according to the equipment standard, such as DLMS / COSEM, Modbus, etc.
[0022] 6) Communication password: Enter the access password of the electricity consumption data collection device to ensure secure data transmission.
[0023] Secondly, the full event parameters need to be configured. The full event parameter configuration refers to configuring the full event recording function of the electric energy meter according to the needs, such as event type, reading time interval, reading time limit, etc. The specific configuration process includes: 1) Clarify all event types that need to be recorded by the energy meter, such as cover opening events, pressure loss events, overcurrent events, etc.
[0024] 2) Determine the reading time interval for each event. For example, the electricity meter needs to read the full event record at least once every 24 hours to detect possible abnormal situations in time.
[0025] 3) Data classification setting: Set different data classifications according to the importance of the event. For example, set the cover opening event to a high level to increase the reading frequency to quickly respond to potential security risks.
[0026] Finally, configure the power-off parameters, which refer to the collection rules for power-off data, including the reading interval, time limit, and identification limit of power-off events. The specific configuration process includes: 1) Set the reading interval. For example, if you set it to "10 minutes", it means that you will try to read the data every 10 minutes during the power outage.
[0027] 2) Set the time limit for copying and reading. According to needs, you can set the maximum time length for copying and reading attempts, for example, set it to "2 hours".
[0028] 3) Set the "Minimum effective interval of power outage time" to "5 minutes" and the "Maximum effective interval of power outage time" to "2 hours" to filter out abnormal records of short-term fluctuations or extremely long power outages.
[0029] 4) Setting a "power outage event active reporting flag" to ensure that the power consumption data collection device immediately reports a power outage event to the master station upon detecting the power outage event.
[0030] In addition, you may need to configure other online parameters, such as: Number of electricity rates: Configure the number of rate levels supported by the electricity meter.
[0031] The number of integer and decimal places for active energy indication: set the accuracy of the energy meter reading.
[0032] Communication address of the collector: If the collection device is managed by a concentrator, the communication address of the concentrator needs to be set.
[0033] User major category number and user minor category number: identifiers to distinguish different user types.
[0034] By configuring the online parameters of the power consumption data collection device in step S100, it can be ensured that the power consumption data collection device can be successfully connected to the background data collection system and work normally.
[0035] S200: Debugging the power consumption data acquisition device after completing the online parameter configuration, this step may specifically include: 1) Communication test: remotely send a test instruction to the power consumption data collection device to detect whether the power consumption data collection device can respond normally, so as to verify the stability of the communication connection of the power consumption data collection device.
[0036] Specifically, the present application proposes a communication test method to improve test efficiency and accuracy while reducing manual intervention, and the method is as follows: 1.1) First, before sending the test command, automatically detect the communication protocol version and optimal parameters of the acquisition device, such as automatically adjusting the communication frequency and data packet size according to the device model to optimize communication efficiency and stability.
[0037] Secondly, a database containing multiple communication protocol versions and their compatibility is established, and the most suitable communication protocol is automatically matched and applied during the test process to ensure seamless connection even if the software of the power consumption data acquisition device is upgraded. Specifically, the automatic matching and application of the most suitable communication protocol is implemented based on the following steps: before starting the communication test, first query the database through the serial number, model and other information of the power consumption data acquisition device to obtain detailed information of the power consumption data acquisition device and a list of known compatible communication protocols. In addition, factors such as the current network environment and equipment health status, such as signal strength, bandwidth availability, historical communication quality records, etc., need to be considered. Based on these real-time information, an algorithm (such as a weighted scoring method) is used to select the most suitable communication protocol version from the compatible protocols. For example, in a low-signal environment, a protocol version with strong anti-interference and small data packets is selected. After the initial connection or device software update, a detection instruction is sent to the power consumption data acquisition device to negotiate a protocol with the power consumption data acquisition device. If the power consumption data acquisition device supports a better communication protocol version, it automatically switches to the protocol.
[0038] 1.2) Simulate different network environment conditions (such as signal strength changes, network congestion, disconnection and reconnection, etc.) to evaluate the adaptability and recovery ability of the power consumption data collection equipment in harsh environments.
[0039] 1.3) The results of each communication test and environmental parameters are encrypted and recorded on the blockchain to ensure the authenticity and immutability of the test data, which is convenient for auditing and traceability.
[0040] Specifically, the results of each communication test and the environmental parameters are encrypted and recorded on the blockchain, which usually involves the following steps: 1.3.1) First, the communication test results and related environmental parameters are integrated into a data package. This includes but is not limited to communication quality indicators (such as signal strength, packet loss rate, response time), test time, device ID, test results (success or failure), and any specific abnormal details.
[0041] 1.3.2) Use asymmetric encryption algorithms in public key infrastructure (PKI), such as RSA or ECC (elliptic curve cryptography). In this process, a public key is used to encrypt the data, and the corresponding private key is required for decryption. In this way, even if the data is stored publicly on the blockchain, only the authorized entity holding the private key can decrypt and view the original information.
[0042] 1.3.3) In addition to encrypting the data directly, a hash summary is generated for the data (using an algorithm such as SHA-256). This hash value represents the fingerprint of the data and can be used to verify the integrity and non-tampering of the data. The hash value itself is often recorded on the blockchain.
[0043] 1.3.4) Submit the encrypted data packet and hash value to the blockchain network as part of the transaction. In most cases, this requires the consumption of a certain amount of cryptocurrency as a mining fee to incentivize miners to verify the transaction and add it to the next block of the blockchain.
[0044] In summary, the communication test method proposed in this application can automatically adjust the communication parameters, such as communication frequency and data packet size, according to the device model and the current network environment before sending the test command by automatically detecting the communication protocol version and optimal parameters of the acquisition device, so as to ensure that the communication efficiency and stability during the test process reach the optimal state. This method reduces the need for manual configuration of protocol parameters, avoids improper configuration due to human error, and improves the accuracy of the test. In addition, the communication test method establishes a database containing multiple communication protocol versions and their compatibility, and automatically matches the communication protocol that best suits the current environment during the test process, ensuring seamless docking even if the device software is upgraded, and maintaining the effectiveness and continuity of the communication test. This enhances the flexibility and future adaptability of the system and reduces the testing barriers caused by protocol incompatibility.
[0045] 2) Meter reading parameter test: Request the electricity consumption data collection device to perform a simulated meter reading to check whether the meter reading data can be correctly returned, including electric energy indication, frozen data, etc., to ensure that the meter reading function operates normally.
[0046] Specifically, the present application proposes a meter reading parameter testing method to ensure the accuracy and reliability of the meter reading function, and the method is described as follows: 2.1) Dynamically generate personalized simulated meter reading tasks based on equipment status (including but not limited to equipment health status, communication stability, historical fault records), analysis of historical meter reading data, and current grid load conditions. For example, increase the test frequency for newly deployed or recently abnormal data collection equipment.
[0047] 2.2) Use software-defined grid (SDG) technology to build a virtualized meter reading environment to simulate meter reading scenarios at different times and under different load conditions, including peak and off-peak periods and power usage patterns during special events (such as holidays and extreme weather).
[0048] 2.3) Design a comprehensive test matrix including electric energy indication (the test goal is to verify the accuracy and continuity of electric energy metering. The parameter range should include normal daily power consumption, maximum / minimum expected values, accuracy limits of electric energy meters, etc.), frozen data (the power frozen value at a specific time point, the test goal is to ensure accurate data recording. The rationality of power changes during the freezing period must be considered), instantaneous data (including real-time changing data such as current, voltage, and power. The test goal is to verify the real-time and accuracy of the data, and must cover the normal fluctuation range, instantaneous peak value, etc.), and event records (such as power outages, power restoration, overloads, short circuits, etc., the test goal is to verify the timeliness and accuracy of event records). Set multiple test cases for each parameter, covering normal values, boundary values, abnormal values, etc. to ensure comprehensive coverage.
[0049] For example, the electric energy indication test may include: Normal Values: Set a few typical daily electricity usage values as a benchmark to verify that they are being recorded accurately.
[0050] Boundary value: A value close to the upper and lower limits of the meter’s measurement accuracy, used to check whether it can be correctly distinguished and recorded.
[0051] Abnormal values: including sudden and substantial increases in power consumption (such as new equipment being connected), long periods of no power consumption (idle periods), negative power consumption (possible reverse power supply), etc., to test how the system handles and marks these abnormalities.
[0052] 2.4) Use machine learning models, such as anomaly detection algorithms (e.g., Isolation Forest, One-Class SVM), to pre-learn the patterns of historical normal meter reading data, perform real-time analysis on the data returned by simulated meter reading, and automatically identify data anomalies such as abnormal fluctuations, mutations, or data missing.
[0053] In summary, the above-mentioned meter reading parameter testing method, through a highly customized and intelligent testing strategy, combined with virtualization technology and machine learning algorithms, not only significantly improves the accuracy of meter reading data, but also optimizes the operation and maintenance efficiency of the power system, reduces maintenance costs, and enhances the stability and reliability of the system.
[0054] 3) Full event parameter test: Activate the full event recording function, simulate the triggering of some events (such as opening the cover, power failure, etc.), and verify whether the power consumption data collection device can record and report events according to the configured event reading time interval and time limit.
[0055] Specifically, the present application proposes a full event parameter testing method to improve the automation level and test efficiency of the test, and the method is described as follows: 3.1) Use IoT technology, combined with smart sensors and actuators, to build a physical event trigger system. For example, use a magnetic sensor to simulate the cover opening action, and use a controllable power module to simulate the power failure. These devices are wirelessly connected to the test control system to achieve remote and accurate event triggering. By using IoT technology combined with smart sensors and actuators to build a physical event trigger system, it is possible to remotely and accurately simulate events such as cover opening and power failure, improve the automation level of the test, reduce manual intervention, and speed up the test process.
[0056] 3.2) Train machine learning models, such as deep neural networks (DNNs), based on historical data to enable them to identify the characteristics of specific events. During the test, the model analyzes the data reported by the acquisition device in real time to ensure that the time is correctly recorded and reported, thereby increasing the system's sensitivity and responsiveness to events.
[0057] 3.3) Integrate big data processing and analysis tools to analyze the data sent back by the collection equipment in real time, which not only verifies the accuracy of event records, but also predicts potential equipment failures or parameter configuration problems through data analysis and takes measures in advance.
[0058] 4) Power outage parameter test: simulate power outage to verify whether the acquisition equipment can detect and report power outage events within the predetermined time interval, and check the accuracy of the power outage identification parameter settings.
[0059] Specifically, the present application proposes a power-off parameter testing method to achieve an efficient and accurate testing process, and the method is described as follows: 4.1) Use advanced power system simulation software, such as RTDS (Real-Time Digital Simulation System) or OPAL-RT, to create a highly simulated power grid model to simulate various operating conditions of the actual power grid, including normal power supply, short-term voltage fluctuations, power outages and power restoration.
[0060] 4.2) Connect smart circuit breakers to the test environment and simulate real power outages through remote control. This hardware-in-the-loop (HIL) testing method can accurately control the timing, duration, and power restoration process of power outages, ensuring the controllability and repeatability of the test.
[0061] The power-off parameter testing method described above can not only efficiently verify the performance of the acquisition equipment, but also ensure the accuracy of the parameter settings, providing reliable data guarantee for the stable operation of the power system.
[0062] S300: collecting real-time power consumption data based on the debugged power consumption data collection device; In this step, the electricity consumption data acquisition device measures and records current electricity consumption parameters, including but not limited to current, voltage, active power, reactive power, electric energy, etc., using its built-in sensors and metering modules according to the instructions issued by the execution subject.
[0063] Subsequently, the electricity consumption data collection device transmits the collected electricity consumption parameter communication interface (such as GPRS, 4G, NB-IoT or local area network) to the execution entity according to the configured communication parameters (such as communication channel, address, rate, protocol).
[0064] S400: Compare the user's electricity consumption data with the stored historical electricity consumption data. During the data comparison process, if there is abnormal data, the abnormal data is marked, and the corresponding electricity consumption data collection equipment is marked as abnormal and an early warning is issued to prompt the operating personnel to conduct on-site inspection or maintenance of the electricity consumption data collection equipment.
[0065] In this step, before comparison, the collected real-time power consumption data and historical data need to be preprocessed, which specifically includes the following steps: 1) Missing value processing: Check whether there are missing values in the real-time electricity consumption data, and process the found null values or missing data points, which can be filled by interpolation methods (such as linear interpolation and nearest neighbor interpolation).
[0066] 2) Perform temperature compensation on the real-time power consumption data after missing value processing, including: 2.1) Collecting temperature data: First, the temperature data is recorded while the power consumption data collection device collects power consumption data through sensors arranged near the measurement point; 2.2) Determine the temperature coefficient: You can refer to the equipment manual or determine the temperature coefficient of the equipment or sensor through experiments; 2.3) Calculate the impact of temperature on electricity consumption data: Using the temperature value measured by the sensor and the known temperature coefficient, the effect of temperature change on the resistance value (and thus on the amount of electricity, current, voltage, etc.) can be calculated using the following formula: R(T)=R(Tref )×[1+α×(T-Tref )] Where R(T) is the resistance at the current temperature, R(Tref) is the resistance at the reference temperature, α is the temperature coefficient, T and Tref are the current temperature and reference temperature respectively.
[0067] 2.4) Compensate the collected electrical parameters based on the calculated temperature effect. If it is a resistance measurement, the above formula can be directly applied to make adjustments by inverse calculation. For electric quantity, current, voltage, etc., because they are indirectly dependent on the resistance value, corresponding mathematical conversion and compensation are required according to circuit theory and specific measurement principles.
[0068] This embodiment can effectively eliminate or reduce the influence of temperature changes on the collection of electricity consumption data by performing temperature compensation on the collected electricity consumption data, thereby improving the accuracy and reliability of the electricity consumption data.
[0069] 3) Time alignment and window setting of the real-time power consumption data after temperature compensation and the historical data, specifically including the following steps: 3.1) Timestamp matching: First, the respective timestamp information is extracted from the real-time power consumption data and the historical storage data set.
[0070] Secondly, ensure that the timestamp format of all data is consistent. If the timestamp format of real-time data and historical data is different (for example, some use UNIX timestamps and some use date and time strings), they need to be converted to a unified format.
[0071] Secondly, if the time accuracy of real-time electricity consumption data and historical data is different (for example, one is in milliseconds and the other is in seconds), it is necessary to select the higher accuracy as the benchmark, and if necessary, improve the accuracy of the low-precision data through interpolation or other methods to achieve precise alignment.
[0072] Finally, the real-time power consumption data and historical data are time-aligned. Specifically, a time window may be set for the real-time data point, such as a few minutes or hours before and after, and then the data points in the historical data that fall within this window are searched for matching.
[0073] In summary, this embodiment can ensure the quality of the power consumption data by preprocessing the collected real-time power consumption data, thereby providing a reliable basis for subsequent analysis, modeling and decision-making.
[0074] Based on the above preprocessing, this embodiment further constructs an abnormal data detection model to detect abnormal data that may appear in the comparison process of the real-time power consumption data and the historical data.
[0075] Specifically, the abnormal data detection model includes a prediction network and a detection network, wherein Figure 2 As shown, the prediction network includes an input layer, four superimposed Bi-LSTM layers, an attention mechanism layer (SE), two superimposed fully connected layers and a ReLU function connected in sequence, wherein the first Bi-LSTM layer is connected to the second Bi-LSTM layer and also to the third Bi-LSTM layer, and the second Bi-LSTM layer is connected to the third Bi-LSTM layer and also to the fourth Bi-LSTM layer.
[0076] First, the preprocessed real-time electricity consumption data (such as current, voltage, efficiency, etc.) passes through the input layer in a sequence form as the input of the model.
[0077] Secondly, this embodiment captures the features of the input real-time power consumption data through the superimposed Bi-LSTM layer. In particular, the output of the first Bi-LSTM layer not only flows to the second Bi-LSTM layer, but is also directly connected to the third Bi-LSTM layer. Similarly, the output of the second Bi-LSTM layer enters the third Bi-LSTM layer and is also input to the fourth Bi-LSTM layer. Each Bi-LSTM layer can capture features of different time scales. The first Bi-LSTM layer is used to capture more basic time series features, while the following three Bi-LSTM layers can learn more abstract and complex features. The jump connection mechanism designed in this embodiment enables the following Bi-LSTM layer to directly utilize the features of the previous Bi-LSTM layer, while integrating the advanced features learned by itself, so as to enhance the model's multi-scale understanding of power consumption data and improve the robustness of anomaly detection. In addition, through jump connections, the model can propagate errors faster during training, accelerate convergence, and improve training efficiency. At the same time, due to the direct transmission of information, even in the early stages of training, deeper layers can receive effective gradient signals, which helps avoid oscillations or local optimal problems during training and improves the stability and generalization of the model. In addition, in the scenario of anomaly detection of electricity consumption data, anomalies may appear at any time and are often closely related to historical data and future trends. This continuous jump mechanism enables the model to use historical and future information at the same time, quickly respond to and locate anomalies, and improve the real-time and accuracy of detection. Especially when electricity consumption data fluctuates greatly or has complex periodicity, this structure can more effectively learn and predict these changes, reducing false positives and false negatives.
[0078] It should be noted that the reason why the Bi-LSTM layer is used instead of the LSTM layer in this embodiment is that the Bi-LSTM layer combines the forward LSTM and the reverse LSTM, which can consider the past and future contextual information in the time series at the same time, because it can not only use the past input to predict the future, but also use the future information (within the scope of the sequence) to better understand the current state. In the power data detection scenario, this two-way perspective helps the model to understand the power consumption pattern more comprehensively, thereby improving the accuracy of the prediction and the sensitivity of the anomaly detection. In addition, since the user's power consumption data often has temporal coherence and periodicity, Bi-LSTM can more effectively learn the complex patterns in these time series by considering the data features before and after at the same time, such as the periodic changes of power consumption peaks and valleys. This enables the model to use richer contextual information when predicting power consumption trends, which can improve the accuracy of model predictions compared to the use of LSTM.
[0079] In summary, the skip-connected Bi-LSTM structure not only improves the deep learning ability of the model in power consumption data anomaly detection, but also optimizes the performance of the model while retaining the integrity of time series information, enabling the model to detect abnormal data in real-time power consumption data in a timely and accurate manner.
[0080] The above model also sets an attention mechanism layer (SE) after the superimposed Bi-LSTM layer. The function of this layer is to give different weights to the features input to the subsequent fully connected layer, emphasizing the features that are more important to the prediction task, while suppressing irrelevant information, thereby enhancing the focus and prediction performance of the model.
[0081] Next, the above model also sets up two superimposed fully connected layers in the attention mechanism layer (SE), where the first fully connected layer is connected after the attention mechanism layer, and its main function is to receive and integrate high-level features from the superimposed Bi-LSTM layer and the attention mechanism layer. After the time series processing of the superimposed Bi-LSTM layer and the weighting of the attention mechanism, these features have already contained the key information in the data. Through the first fully connected layer, the model can further integrate and abstract these high-level features, remove redundant information, and extract the most critical features for the prediction target. The second fully connected layer operates further on this basis, and it can learn the interaction and combination effects between the output features of the first fully connected layer.
[0082] The stacking of two fully connected layers can be viewed as a gradual refinement of the prediction output. The first fully connected layer focuses on global pattern recognition, while the second fully connected layer adjusts the prediction output at a finer granularity to make it closer to the actual value.
[0083] Furthermore, after the stacked fully connected layer, a ReLU (Rectified Linear Unit) activation function is used to introduce nonlinearity and maintain the forward propagation signal, which helps the model learn more complex patterns while avoiding the problem of gradient disappearance.
[0084] In summary, the prediction network can achieve refined prediction of future trends of electricity consumption data by adopting an innovative Bi-LSTM inter-layer connection method and applying the attention mechanism. Such a structure can not only capture the fine dynamics of the time series, but also deeply explore the hidden laws in the data through multi-level learning, thereby improving the accuracy and timeliness of anomaly detection.
[0085] Based on the above prediction network, the model uses the Isolation Forest model as the detection network. The Isolation Forest model is an efficient unsupervised anomaly detection algorithm, which consists of multiple random decision trees to form a forest. Each decision tree is constructed by randomly selecting features and random split points. Each decision tree can independently isolate data points, and finally the results of all trees are combined to determine the degree of abnormality of the data point.
[0086] In the abnormal data detection model, the prediction network receives the preprocessed real-time power consumption data as input, and finally outputs the predicted value of the data at a future time point. The predicted value needs to be paired with the actual collected real-time power consumption data to form a feature vector. Each feature vector contains two important pieces of information: one is the value predicted by the prediction network for the current time point (for example, the predicted current value, voltage value, etc.), and the other is the actual collected real-time data value. In addition, the feature vector may also contain other auxiliary information, such as timestamp, data volatility, etc., in order to more comprehensively reflect the state of the data.
[0087] The feature vector constructed above is sent as input to the Isolation Forest model. The IsolationForest model evaluates the degree of isolation of data points by constructing a series of random decision trees. These decision trees divide the data space in a random manner, aiming to isolate data points, among which abnormal points stand out because they can be isolated more quickly. It should be noted that in this process, the Isolation Forest model does not directly process the output of the abnormal data detection model as a label of "abnormal" or "non-abnormal", but uses the difference between the predicted value and the actual value to identify which data points appear abnormal in the context of the model prediction, that is, deviate from the behavior pattern of the prediction model. Based on the difference between the predicted value output by the prediction network and the actual measurement data, the Isolation Forest model can quickly identify abnormal data points that deviate significantly from the normal pattern, thereby improving the accuracy and efficiency of anomaly detection.
[0088] In summary, the abnormal data detection model proposed in this embodiment adopts a strategy of combining the prediction network and the IsolationForest model, and highlights abnormal behavior by comparing the fit between the model prediction and the actual observation, so it can effectively identify abnormal data points in the electricity consumption data, and thus significantly enhance the accuracy and efficiency of abnormal data detection. This joint method not only utilizes the prediction model's in-depth understanding of the data sequence, but also takes advantage of the Isolation Forest in identifying the degree of isolation of data points, and together builds a powerful and efficient anomaly detection system.
[0089] Furthermore, after identifying abnormal data in the electricity consumption data, the abnormal data can be classified through expert knowledge and on-site information confirmation, which can be specifically classified into: Data mismatch anomaly means that there is a significant difference in value between real-time data and historical data, which exceeds the preset fluctuation threshold. It can be further divided into slight mismatch, medium mismatch and severe mismatch, which can be divided according to the percentage or absolute value of data deviation.
[0090] Abnormal data fluctuation means that the real-time data shows unusual fluctuation patterns, such as sudden changes in current, voltage or power. It can be further divided into rapid fluctuation, continuous fluctuation and intermittent fluctuation.
[0091] Data missing anomalies, that is, one or some data points are not reported as expected, resulting in gaps in the data chain. It can be further divided into single point missing, interval missing or frequent missing, defined according to the continuity and frequency of the missing data.
[0092] Parameter configuration abnormality means that data comparison finds data inconsistency due to improper settings of communication parameters, full event parameters or power-off parameters of the acquisition device. It can be further divided into configuration errors, configuration omissions or configuration conflicts, and can be classified according to the specific problems of parameter settings.
[0093] Data duplication anomalies, that is, multiple identical data reports at the same time point, or data duplication caused by an error in the data reporting timestamp. It can be further divided into simple duplication or duplication caused by timestamp errors, and can be classified according to the characteristics of the duplicate data.
[0094] After completing the classification of abnormal data, it is necessary to perform differentiated processing on abnormal data of different categories. Below, this application uses data mismatch anomaly as an example for illustrative explanation.
[0095] As mentioned above, the data mismatch anomaly includes slight mismatch, medium mismatch and severe mismatch, wherein the slight mismatch usually refers to the data deviation at the edge of the allowable error range, for example, the fluctuation of the electric energy indication slightly exceeds the preset normal fluctuation range but is still within the acceptable tolerance. For this anomaly, there is no need for immediate on-site investigation, but the acquisition equipment involved needs to be reviewed at the next scheduled maintenance to confirm whether it is a temporary interference or system error. The medium mismatch means that the data deviation exceeds the normal range, but it still does not immediately affect the normal operation of the system, for example, the fluctuation of the electric energy indication exceeds the set threshold by 10% but does not reach a serious level. For this anomaly, the operation and maintenance personnel can be notified immediately through APP or SMS, pointing out the specific situation of the data mismatch and the device ID. The operation and maintenance personnel need to analyze the abnormal data and try to determine the possible causes of the mismatch, such as communication interference or slight deviations in parameter configuration. If necessary, technicians are dispatched for on-site inspection to confirm the operating status of the equipment, such as checking the communication line, recalibrating the equipment or adjusting relevant parameters. The serious mismatch involves a huge data deviation, which may lead to abnormal system operation or billing errors, such as a sudden change in the electric energy indication or a long period of data loss. For this abnormality, an emergency on-site investigation is required, and a technical team should be dispatched to the site immediately to conduct a comprehensive inspection of the collection equipment, including hardware troubleshooting, communication link repair or parameter resetting.
[0096] In another exemplary embodiment, Figure 3 As shown, the present application also provides a user power consumption data detection device, comprising: The parameter configuration module 100 is used to configure the online parameters of the power consumption data collection device; The debugging module 200 is used to debug the power consumption data acquisition device after completing the online parameter configuration; The data collection module 300 is used to send instructions to the debugged power consumption data collection device to collect user power consumption data; The data comparison module 400 is used to compare the user's electricity consumption data with the stored historical electricity consumption data. During the data comparison process, if there is abnormal data, the abnormal data is identified and classified, and the electricity consumption data collection device is differentiated.
[0097] In this embodiment, the parameter configuration module can set the key parameters of the collection device, including communication parameters (such as communication channel, address, rate, protocol and password), full event parameters (such as event record type, time interval), power-on and power-off parameters (such as power outage event reading rules), and other specific parameters (such as electricity rate, indication accuracy, collector communication address, user type identification, etc.), to ensure that the collection device can be correctly configured and smoothly connected to the collection system.
[0098] The debugging module is responsible for debugging the configured acquisition equipment, including communication connection stability test, meter reading parameter verification, full event recording function test (ensuring that events are recorded and reported according to preset rules), power outage event detection and reporting verification, to ensure the normal operation of various functions of the equipment.
[0099] The data acquisition module starts the acquisition equipment to collect real-time power consumption data by sending instructions, and provides a real-time monitoring interface to display the collected key power parameters such as current, voltage, power, etc. The module also has data analysis capabilities, can instantly identify abnormal data and issue warnings, and perform data integrity checks to ensure the comprehensiveness and accuracy of the data.
[0100] The data comparison module is used to compare the collected real-time data with the historical data stored in the system, perform time alignment based on the timestamp or collection cycle, process data windows, interpolation and gap filling, and ensure the accuracy of data comparison. Once data mismatch or abnormality is found, it will be immediately identified and the corresponding collection equipment will be marked as abnormal, prompting the operation and maintenance personnel to conduct on-site inspection or maintenance.
[0101] In addition to the above modules, the device may also include a data storage and synchronization module and a data analysis and visualization module, wherein the data storage and synchronization module can realize the storage management of the collected electricity consumption data, and support real-time or periodic uploading to the cloud server or local storage to ensure the security and backup of the data. The module also includes data synchronization logic to ensure the latest status of the data before comparison, and adopts an incremental update or full synchronization mechanism. In addition to real-time data monitoring, the data analysis and visualization module is also responsible for collecting and displaying electric energy indication curves, current curves, voltage curves, etc., to help analyze the trend of power load changes, equipment operating status and abnormal power consumption behavior, and provide intuitive graphical support for energy consumption analysis and fault diagnosis.
[0102] In another exemplary embodiment, the present application also provides a user electricity consumption data detection system, which includes the device as described above.
[0103] In another exemplary embodiment, the present application also provides a user electricity consumption data detection device, and the device applies the above-mentioned method.
[0104] In another exemplary embodiment, the present application further provides a storage medium, which includes instructions, and when the instructions are run on a computer, the computer executes any of the above methods, for example: configuring the online parameters of the power consumption data collection device; debugging the power consumption data collection device that has completed the online parameter configuration; sending instructions to the debugged power consumption data collection device to collect user power consumption data; comparing the user power consumption data with the stored historical power consumption data, and during the data comparison process, if there is abnormal data, the abnormal data is identified and classified, and the power consumption data collection device is subjected to differential processing. The specific implementation method of each step will not be repeated here.
[0105] It should be noted that the storage medium includes but is not limited to phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical and magnetic storage media, which are not listed here one by one.
[0106] In another exemplary embodiment, the present application further provides an electronic device, the electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the methods described above when executing the program, for example: configuring online parameters for an electricity consumption data collection device; debugging the electricity consumption data collection device that has completed the online parameter configuration; sending instructions to the debugged electricity consumption data collection device to collect user electricity consumption data; comparing the user electricity consumption data with the stored historical electricity consumption data, and during the data comparison process, if there is abnormal data, identifying and classifying the abnormal data, and performing differential processing on the electricity consumption data collection device. The specific implementation method of each step will not be repeated here.
[0107] The above embodiments are only for illustrating the technical concept and features of the present application, and their purpose is to enable people familiar with the technology to understand the content of the present application and implement it accordingly, and they cannot be used to limit the protection scope of the present application. Any equivalent changes or modifications made according to the spirit of the present application should be included in the protection scope of the present application.
Claims
1. A method for detecting user electricity consumption data, It is characterized in that The method comprises: Configure online parameters for electricity consumption data collection equipment; Debugging the electricity consumption data collection device after completing the online parameter configuration; Send instructions to the debugged power consumption data collection equipment to collect user power consumption data; The user's electricity consumption data is compared with the stored historical electricity consumption data. During the data comparison process, if there is abnormal data, the abnormal data is marked and classified, and the electricity consumption data collection device is differentiated.
2. The method according to claim 1, It is characterized in that The online parameters include but are not limited to: communication parameters, all event parameters and power-on / off parameters.
3. A user electricity consumption data detection device, It is characterized in that The device comprises: Parameter configuration module, used to configure online parameters of power consumption data collection equipment; A debugging module, used to debug the power consumption data acquisition device after completing the online parameter configuration; The data collection module is used to send instructions to the debugged power consumption data collection device to collect user power consumption data; The data comparison module is used to compare the user's electricity consumption data with the stored historical electricity consumption data. During the data comparison process, if there is abnormal data, the abnormal data is identified and classified, and the electricity consumption data collection device is differentiated.
4. A user electricity consumption data detection system, It is characterized in that The system comprises the apparatus of claim 3.
5. A user electricity consumption data detection device, It is characterized in that The device applies the method described in any one of claims 1 to 2.
6. A storage medium, It is characterized in that The method comprises instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 2.
7. An electronic device, It is characterized in that The electronic device comprises: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 2 is implemented.
Citation Information
Patent Citations
Test equipment and test method for simulating field multi-meter testing
CN109613467A
Method for automatically debugging terminal of electric information collecting system, medium of method and equipment
CN109686070A
Intelligent debugging method and system for power consumer information acquisition terminals
CN110572446A
Power cable joint temperature abnormity early warning method combining EEMD-LSTM and isolated forest algorithm
CN114169237A
Automatic gear shifting prediction method and system for special vehicle
CN114692983A
