Event recording method, device, equipment and storage medium for smart meter

Through the event recording method of smart meters, time serialization and event information encoding are used, combined with deep learning models and cloud services, to solve the problems of incomplete event recording and insufficient real-time performance in traditional methods, and achieve efficient and accurate event recording and analyze.

CN118397719BActive Publication Date: 2024-09-17SHENZHEN NORTEL INSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410784336.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-17
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

The event recording method of traditional smart meters has problems such as insufficient detailed records and insufficient real-time performance, resulting in low accuracy and slow efficiency of event recording. It also lacks intelligent means such as deep learning, making it difficult to effectively analyze and process events in the power system.

Method used

By obtaining the time information and event information of the event, perform time serialization and encoding processing, set the threshold as the judgment benchmark, use the event analysis model and deep learning model to judge and classify the event, generate judgment results, and transmit the data to the cloud Record and store.

Benefits of technology

It improves the accuracy and efficiency of event recording, uses deep learning models for intelligent classification, provides more accurate and faster event processing, overcomes storage space and processing capacity limitations in traditional methods, and achieves detailed recording and efficient analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397719B
    Figure CN118397719B
Patent Text Reader

Abstract

The present invention relates to the technical field of smart meters, and provides an event recording method, device, equipment and storage medium for smart meters, including obtaining the serialized time point of the time information of the event occurrence and the event coding data of the event information, setting the threshold of the event coding data as the event judgment benchmark, and judging the serialized time point according to the event judgment benchmark; if the serialized time point meets the requirements, a judgment result is generated and classified to obtain the corresponding event type, and data of the events of the smart meter are collected according to the corresponding event type to obtain event data, and the event data is input into the cloud for recording and storage. Through time serialization and event information coding, events are accurately captured and judged, and then intelligent classification and cloud storage are performed, so as to improve the accuracy and efficiency of event handling, and improve the problem that when recording events, the records are not detailed enough, and omissions are prone to occur and repeated records are required, which leads to low accuracy and low efficiency of event recording.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart meters, and in particular to an event recording method, device, equipment and storage medium for smart meters. Background Art

[0002] In modern power systems, smart meters are key endpoint devices that enable accurate measurement and real-time monitoring of energy consumption. With the continuous improvement of the automation and informatization level of power systems, the application of smart meters has gradually become popular, playing a vital role in improving the operating efficiency of power grids and the quality of energy management. Smart meters can not only perform basic data collection, but also have functions such as event recording, remote communication and data analysis to meet more complex power grid management needs. Grid companies, energy service providers and end users can all benefit from the large amount of data obtained by smart meters, including but not limited to power quality monitoring, fault warning, load control and user habit analysis.

[0003] Traditional smart meter event recording usually relies on fixed rules to define events and abnormal behaviors, and stores event records inside the meter or transmits them to a central system. These methods are often limited by the storage space and processing power of the meter, resulting in insufficient detail or real-time event records. Some key time points are missed due to the limitations of the recording equipment. In addition, event analysis usually lacks intelligent means such as deep learning, resulting in insufficient accuracy and time efficiency of analysis results. Therefore, these limitations lead to challenges for power companies in identifying and responding to events in the power system. Summary of the invention

[0004] In order to improve the problem that when recording events, the records are not detailed enough and omissions are prone to occur and repeated recording is required, which leads to low accuracy and low efficiency of event recording, the present application provides an event recording method, device, equipment and storage medium for a smart meter.

[0005] The present invention provides an event recording method for a smart meter, comprising: obtaining time information and event information of an event, performing time serialization processing on the time information to obtain a serialized time point, and encoding the event information to obtain event coded data; setting a threshold value of the event coded data as an event judgment benchmark, and judging the serialized time point according to the event judgment benchmark; if the serialized time point meets the event judgment benchmark, using the serialized time point as an event data packet and sending it to a preset event analysis model to generate a judgment result; wherein the judgment result includes the severity of the event, the cause of the event and the suggested solution; inputting the judgment result into a preset deep learning model for classification to obtain a corresponding event type, and collecting data on the events of the smart meter according to the corresponding event type to obtain event data; and transmitting the event data to a preset cloud for recording and storage.

[0006] As a preferred solution, the steps of obtaining the time information and event information of the event, performing time serialization processing on the time information to obtain serialized time points, and performing encoding processing on the event information to obtain event coded data include: recording the time information of the event based on a preset time recording module, and capturing the event information based on a preset sensor; transmitting the time information to a preset time serialization processing unit, and the time serialization processing unit converts the time information into serialized time points; transmitting the event information to a preset event coding processing unit, and the event coding processing unit converts the event information into event coded data; and storing the serialized time points and the event coded data in a temporary storage unit of the smart meter.

[0007] As a preferred scheme, the step of setting the threshold of the event coding data as an event judgment benchmark and judging the serialization time point according to the event judgment benchmark includes: extracting the event coding data stored in the temporary storage unit, transmitting the event coding data to a preset threshold setting unit, and using a machine learning algorithm by the threshold setting unit to analyze the historical event coding data and determine the optimal threshold of the event coding data; extracting the serialization time point stored in the temporary storage unit, comparing the serialization time point with the event judgment benchmark, and judging whether the serialization time point meets the event judgment benchmark.

[0008] As a preferred solution, if the serialized time point meets the event judgment criterion, the serialized time point is used as an event data packet and sent to a preset event analysis model to generate a judgment result, including: if it is confirmed that the serialized time point meets the event judgment criterion, the serialized time point is marked to obtain a marked time point; event attributes related to the serialized time point in the data stream of the smart meter are obtained to obtain related event attributes, and the related event attributes are analyzed for correlation to obtain an event correlation map; the marked time point and the event correlation map are data-fused to obtain a comprehensive event view;

[0009] The serialization time points are prioritized according to the comprehensive event view to obtain the sorted time points, and the sorted time points are used as valid serialization time points; risk assessment is performed on the timestamps of the valid serialization time points and the corresponding event coding data according to the preset event severity levels to obtain a risk assessment report, and the risk assessment report is used as an event data packet; the event data packet is analyzed based on the preset event cause, and the analyzed event data packet is sent to a preset event analysis model to generate a judgment result.

[0010] As a preferred scheme, the step of inputting the judgment result into a preset deep learning model for classification to obtain a corresponding event type, and collecting data on the events of the smart meter according to the corresponding event type to obtain event data includes: inputting the judgment result into a preset deep learning model, classifying the judgment result by using a neural network structure through the deep learning model, and outputting the corresponding event type; driving a data collection module preset in the smart meter to perform corresponding data collection according to the event type to obtain event time information, event duration and event intensity; normalizing and fusing the event time information, event duration and event intensity to obtain fused data, and using the fused data as event data.

[0011] As a preferred solution, the training method of the deep learning model includes: obtaining an event sample set, the event sample set including the timestamp, event code and event type of historical events; preprocessing the event sample set after sorting by time; the preprocessing includes removing noise data and filling missing values; using a ten-fold cross-validation method to divide the preprocessed event sample set into a training set and a validation set, and using 80% of the data for training and 20% of the data for validation in each fold; presetting a deep learning model architecture; wherein the deep learning model architecture includes multiple convolutional layers, pooling layers, fully connected layers and Dropout layers; initializing the weight parameters of the deep learning model, and selecting a cross entropy loss function and an Adam optimizer; inputting the training set into the deep learning model for iterative training, and using the validation set after each epoch to evaluate the model performance to obtain performance performance, and adjusting the learning rate and model parameters of the deep learning model according to the performance performance; determining whether the performance of the deep learning model reaches a preset accuracy threshold after passing through the validation set, and completing the model training if it reaches it, and continuing the iterative training if it does not reach it until the conditions are met.

[0012] As a preferred embodiment, the step of transmitting the event data to a preset cloud for recording and storage includes: encrypting the event data using a preset encryption algorithm, and transmitting the encrypted event data to a preset cloud via a preset secure communication connection; when the cloud receives the encrypted event data, decrypting the encrypted event data and verifying the decrypted event data; if the verification is correct, storing the decrypted event data in a database on the cloud.

[0013] The present application also provides an event recording device for a smart meter, including: an acquisition module, used to acquire the time information and event information of an event, perform time serialization processing on the time information to obtain a serialized time point, and perform encoding processing on the event information to obtain event coded data; a judgment module, used to set the threshold of the event coded data as an event judgment benchmark, and judge the serialized time point according to the event judgment benchmark; a generation module, used to take the serialized time point as an event data packet and send it to a preset event analysis model if the serialized time point meets the event judgment benchmark, and generate a judgment result; a collection module, used to input the judgment result into a preset deep learning model for classification, obtain the corresponding event type, and collect data on the events of the smart meter according to the corresponding event type to obtain event data; a recording module, used to transmit the event data to a preset cloud for recording and storage.

[0014] The present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the event recording method of any one of the smart meters described above is implemented.

[0015] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the processor executes the event recording method for a smart meter as described in any one of the above.

[0016] Compared with the prior art, this application has the following beneficial effects: high accuracy and high efficiency. Through time serialization and event information encoding, events can be accurately captured and judged; intelligent classification using deep learning models improves the accuracy and efficiency of event handling; and combined with cloud services, sufficient storage space and computing resources are provided for long-term recording and analysis of events, thereby overcoming the space and processing capacity limitations of traditional event recording methods, and improving the problem of insufficiently detailed records and easy omissions that require repeated recording when recording events, which leads to low accuracy and low efficiency of event recording. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0018] The structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with this technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantive technical significance. Any structural modification, change in proportion or adjustment of size, without affecting the effects and purposes that can be achieved by the present invention, should still fall within the scope of the technical contents disclosed by the present invention.

[0019] Figure 1 is a flow chart of an event recording method for a smart meter provided by an embodiment of the present invention;

[0020] Figure 2 is a schematic block diagram of the structure of an event recording device provided by an embodiment of the present invention;

[0021] Figure 3 It is a schematic block diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0022] Description of reference numerals:

[0023] 10. Event recording device; 11. Acquisition module; 12. Judgment module; 13. Generation module; 14. Collection module; 15. Recording module; 20. Electronic device; 21. Memory; 22. Processor. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0026] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0027] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0028] The technical solution of the present invention is further described below with reference to the accompanying drawings and through specific implementation methods.

[0029] Embodiment 1:

[0030] like Figure 1 As shown, the event recording method of the smart meter provided in the embodiment of the present application includes steps S100 to S500.

[0031] Step S100: Obtain the time information and event information of the event, perform time serialization processing on the time information to obtain serialized time points, and perform encoding processing on the event information to obtain event encoding data.

[0032] In this step, time and data information related to the event is obtained through a module built into or externally connected to the smart meter; specifically, the module can be various types of time synchronization devices and sensors, which are responsible for monitoring and marking the time point of the event and identifying and encoding the specific information of the event.

[0033] For example, smart meters use GPS time synchronization technology to ensure the accuracy of recorded time, and detect abnormal fluctuations in power supply lines through multi-function sensors connected to the meters, and then convert this information into serialized time points and encoded data forms.

[0034] Step S200: Set the threshold of event coding data as an event judgment benchmark, and judge the serialization time point according to the event judgment benchmark.

[0035] In this step, a dynamically adjusted mechanism is used to set the event recognition threshold; specifically, this mechanism relies on statistical analysis, pattern recognition, or machine learning techniques to optimize and determine under what circumstances the event encoding data represents a real power system event.

[0036] For example, by comparing historical patterns of events with real-time data, it is possible to determine whether a sudden increase in power load is a normal periodic fluctuation or an abnormal condition that requires attention.

[0037] Step S300: If the serialized time point meets the event judgment criteria, the serialized time point is used as an event data packet and sent to a preset event analysis model to generate a judgment result; wherein the judgment result includes the severity of the event, the cause of the event, and the recommended solution.

[0038] In this step, event data that pass the threshold judgment are uploaded to the analysis model; specifically, the analysis model is an expert system based on predetermined rules, or it can be an advanced analysis platform built using artificial intelligence technologies such as machine learning and deep learning.

[0039] For example, if an event data packet identified in a smart meter is determined by the analysis model to be a voltage sag and associated with specific environmental factors, the model will output a set of specific analysis results for the event, including its cause, the impact it caused, and improvement suggestions.

[0040] Step S400: input the judgment result into a preset deep learning model for classification to obtain a corresponding event type, and collect data on the events of the smart meter according to the corresponding event type to obtain event data.

[0041] In this step, classification technology is used to refine the event data into specific types; specifically, this classification technology includes but is not limited to the use of deep learning models, and can also be combined with other machine learning algorithms or heuristic methods to arrange different categories of events.

[0042] For example, deep learning models can be used to quickly differentiate between routine load changes and power theft, or one-time fault events from chronic equipment degradation.

[0043] Step S500: transmit the event data to a preset cloud for recording and storage.

[0044] In this step, the analyzed and classified event data will be uploaded to the cloud platform via a secure and reliable transmission method; specifically, the transmission method may include various modern network security protocols and encryption algorithms to ensure that data transmission is not threatened.

[0045] For example, smart meters use the latest encryption standards such as TLS / SSL protocols to ensure data security while sending encrypted event data packets to cloud servers, which are managed, analyzed and backed up by cloud service providers so that they can be retrieved at any time and used for system optimization and fault prevention in the future.

[0046] In this embodiment, events can be accurately captured and judged through time serialization and event information encoding; deep learning models are used for intelligent classification to improve the accuracy and efficiency of event handling; and combined with cloud services, sufficient storage space and computing resources are provided for long-term recording and analysis of events, thereby overcoming the space and processing power limitations of traditional event recording methods, providing strong support for the efficient and reliable operation of the power grid, and significantly improving the monitoring and response capabilities of the power system to adapt to the increasingly complex power grid management needs, and improving the problem of insufficient details and omissions in event recording, which leads to low accuracy and low efficiency of event recording.

[0047] Embodiment 2:

[0048] In step S100, the time information of the event is recorded based on the preset time recording module, and the event information is captured based on the preset sensor; the time information is transmitted to the preset time serialization processing unit, and the time serialization processing unit converts the time information into serialized time points; the event information is transmitted to the preset event coding processing unit, and the event coding processing unit converts the event information into event coding data; the serialized time points and event coding data are stored in the temporary storage unit of the smart meter.

[0049] Through the high-precision clock-synchronized time recording module and the event sensing capability of the high-sensitivity sensor, the exact moment and detailed information of the event can be accurately captured; specifically, the time serialization processing involved can ensure that different types of events can be effectively captured and standardized into time points through conversion algorithms, while event coding processing converts abstract or unstructured event information into fixed-format codes that are easy for computer processing.

[0050] For example, when a smart meter detects a short power outage, the time recording module immediately records the exact timestamp of the event, and the corresponding sensor collects the relevant characteristic information of the power outage. This information is converted into a set of specific coded data by the encoding processing unit, and then stored in the temporary storage unit of the meter together with the time point, ready for subsequent analysis and processing.

[0051] In step S200, the event coding data stored in the temporary storage unit is extracted, and the event coding data is transmitted to a preset threshold setting unit. The threshold setting unit uses a machine learning algorithm to analyze the historical event coding data and determine the optimal threshold of the event coding data; the serialized time points stored in the temporary storage unit are extracted, and the serialized time points are compared with the event judgment criteria to determine whether the serialized time points meet the event judgment criteria.

[0052] By using machine learning algorithms to analyze the frequency and patterns of historical events, the threshold for event judgment is automatically adjusted; specifically, this process can help the system maintain high sensitivity and accuracy in the ever-changing power grid operating environment.

[0053] For example, historical data shows that load peaks frequently occur during the summer, and the threshold setting unit can adjust the event judgment criteria of the meter under high temperature conditions accordingly to better capture potential temperature-related grid problems.

[0054] In step S300, if it is confirmed that the serialization time point meets the event judgment criteria, the serialization time point is marked to obtain the marked time point; the event attributes related to the serialization time point in the data stream of the smart meter are obtained to obtain the relevant event attributes, and the relevant event attributes are analyzed for correlation to obtain an event correlation map; the marked time point and the event correlation map are data fused to obtain a comprehensive event view; the serialization time points are prioritized according to the comprehensive event view to obtain the sorted time points, and the sorted time points are used as valid serialization time points; risk assessment is performed on the timestamps of the valid serialization time points and the corresponding event coding data according to the preset event severity level to obtain a risk assessment report, and the risk assessment report is used as an event data packet; the event data packet is analyzed based on the preset event cause, and the analyzed event data packet is sent to the preset event analysis model to generate a judgment result.

[0055] Complex event processing technology can generate a detailed view of the time, type and potential impact of events. Specifically, event correlation graphs are used to reveal the intrinsic connections between events, while priority sorting makes it easier for decision makers to quickly identify and respond to the most critical events.

[0056] For example, a smart meter recorded multiple voltage fluctuation events over a period of time. Through correlation analysis, several high-priority abnormal time points were found. These points pointed to multiple peak load events on the same day, indicating equipment failure or illegal electricity usage, which attracted the special attention of operators.

[0057] In step S400, the judgment result is input into a preset deep learning model, and the judgment result is classified by the deep learning model using a neural network structure, and the corresponding event type is output; according to the event type, the data acquisition module preset in the smart meter is driven to perform corresponding data acquisition to obtain event time information, event duration and event intensity; the event time information, event duration and event intensity are normalized and fused to obtain fused data, and the fused data is used as event data.

[0058] The training method of the deep learning model includes: obtaining an event sample set, which includes the timestamp, event code and event type of historical events; preprocessing the event sample set after sorting by time; the preprocessing includes removing noise data and filling missing values; using a ten-fold cross-validation method to divide the preprocessed event sample set into a training set and a validation set, and using 80% of the data for training and 20% of the data for validation in each fold; presetting a deep learning model architecture; wherein the deep learning model architecture includes multiple convolutional layers, pooling layers, fully connected layers and Dropout layers; initializing the weight parameters of the deep learning model, and selecting a cross entropy loss function and an Adam optimizer; inputting the training set into the deep learning model for iterative training, and using the validation set after each epoch to evaluate the model performance to obtain performance, and adjusting the learning rate and model parameters of the deep learning model according to the performance; determining whether the performance of the deep learning model reaches a preset accuracy threshold after the validation set, and if so, completing the model training, and if not, continuing the iterative training until the conditions are met.

[0059] By learning a large amount of historical event data through deep neural networks, the model's accuracy in classifying event types has been improved; specifically, the deep learning model is able to identify different event features and map them to the correct event types. This classification capability is based on the model continuously adjusting the weights of its internal hierarchical levels during the training process.

[0060] For example, when the meter detects a dramatic change in the grid load, the deep learning model will classify the event based on the previous event sample library, identify it as an "abnormal grid load" type, and prompt the data collection module to record detailed information about the event, such as the exact time of occurrence, the duration of the event, and the intensity of the change. This information is normalized so that the data has a consistent scale and format for subsequent analysis and storage.

[0061] In step S500, the event data is encrypted using a preset encryption algorithm, and the encrypted event data is transmitted to a preset cloud via a preset secure communication connection; when the cloud receives the encrypted event data, the encrypted event data is decrypted and the decrypted event data is verified; if the verification is correct, the decrypted event data is stored in a database in the cloud.

[0062] By using data encryption and secure transmission technology, it can be ensured that sensitive event data is not tampered with or illegally accessed during transmission; specifically, this step protects the integrity and confidentiality of the data, which is particularly important for the security of power grid operation data in the modern network environment.

[0063] For example, if a sudden power facility failure causes a large-scale power outage, all related event data will be protected by encryption algorithms such as AES encryption, transmitted to the cloud server through secure connections such as VPN, and stored after decryption and verification, so that the power company can subsequently analyze the cause of the failure and take corresponding response measures.

[0064] In this embodiment, by integrating data processing and analysis technology, efficient and accurate recording and processing of smart meter events can be achieved. In particular, the introduction of deep learning models provides strong support for identifying various types of meter events and making rapid responses. At the same time, the use of cloud data storage and encrypted communication ensures the security and reliability of data, which has great application value in modern power grid management.

[0065] Embodiment 3:

[0066] like Figure 2 As shown, the present application also provides an event recording device 10 for a smart meter, and the event recording device 10 for the smart meter includes an acquisition module 11, a judgment module 12, a generation module 13, a collection module 14 and a recording module 15.

[0067] The acquisition module 11 is mainly used to acquire the time information and event information of the event, perform time serialization processing on the time information to obtain serialized time points, and perform encoding processing on the event information to obtain event encoding data.

[0068] The judgment module 12 is mainly used to set the threshold of the event coding data as the event judgment benchmark, and judge the serialization time point according to the event judgment benchmark.

[0069] The generation module 13 is mainly used to take the serialization time point as an event data packet and send it to a preset event analysis model to generate a judgment result if the serialization time point meets the event judgment criterion.

[0070] The acquisition module 14 is mainly used to input the judgment results into a preset deep learning model for classification to obtain the corresponding event type, and to collect data on the events of the smart meter according to the corresponding event type to obtain event data.

[0071] The recording module 15 is mainly used to transmit event data to a preset cloud for recording and storage.

[0072] In this embodiment, the integrated modular system realizes the automatic monitoring, analysis and recording of smart meter events. The directional functional cooperation of each module ensures the efficiency and accuracy of the whole process from data acquisition to processing and storage.

[0073] It should be noted that technicians in the relevant technical field can clearly understand that for the convenience and conciseness of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned smart meter event recording method embodiment, and will not be repeated here.

[0074] Embodiment 4:

[0075] like Figure 3 As shown, the present application also provides an electronic device 20, including a memory 21 and a processor 22, the memory 21 stores a computer program that can be run on the processor 22, and when the processor 22 executes the computer program, the event recording method of the smart meter in Example 1 is implemented.

[0076] In this embodiment, by programming the event recording method of the smart meter and embedding it into the electronic device 20, the event recording process is automated and efficiently executed by the processor 22, thereby improving the intelligence level of power data processing and analysis, reducing manual intervention, and improving the refinement of power grid management.

[0077] Embodiment 5:

[0078] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the processor executes the event recording method for the smart meter in Example 1.

[0079] In this embodiment, by providing a computer program storage medium that can be read and executed by a processor, the standardization and portability of the smart meter event recording method is achieved. The medium can be widely used in different types of smart meters or power system management equipment, simplifying the deployment and upgrade of the event recording system, and adding a powerful tool for the scientific management of the power system.

[0080] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for recording events of a smart meter, It is characterized in that include: Acquire the time information and event information of the event, perform time serialization processing on the time information to obtain serialized time points, and perform encoding processing on the event information to obtain event encoding data; Setting the threshold of the event coding data as an event judgment benchmark, and judging the serialization time point according to the event judgment benchmark; If it is confirmed that the serialization time point meets the event judgment criterion, the serialization time point is marked to obtain a marked time point; event attributes related to the serialization time point in the data stream of the smart meter are obtained to obtain relevant event attributes, and the relevant event attributes are analyzed for correlation to obtain an event correlation map; the marked time point and the event correlation map are data-fused to obtain a comprehensive event view; Prioritize the serialization time points according to the comprehensive event view to obtain the sorted time points, and use the sorted time points as valid serialization time points; perform risk assessment on the timestamps of the valid serialization time points and the corresponding event coding data according to the preset event severity level to obtain a risk assessment report, and use the risk assessment report as the event data packet; Analyze the event data packet based on a preset event cause, send the analyzed event data packet to a preset event analysis model, and generate a judgment result; Input the judgment result into a preset deep learning model for classification to obtain a corresponding event type, and collect data on the events of the smart meter according to the corresponding event type to obtain event data; The training method of the deep learning model includes: obtaining an event sample set, wherein the event sample set includes the timestamp, event code and event type of historical events; preprocessing the event sample set after sorting by time; the preprocessing includes removing noise data and filling missing values; using a ten-fold cross-validation method to divide the preprocessed event sample set into a training set and a validation set, and using 80% of the data in each fold for training and 20% of the data for validation; presetting a deep learning model architecture; wherein the deep learning model architecture includes multiple convolutional layers, pooling layers, fully connected layers and Dropout layers; initializing the weight parameters of the deep learning model, and selecting a cross entropy loss function and an Adam optimizer; inputting the training set into the deep learning model for iterative training, and using the validation set after each epoch to evaluate the model performance to obtain performance performance, and adjusting the learning rate and model parameters of the deep learning model according to the performance performance; determining whether the performance of the deep learning model reaches a preset accuracy threshold after the validation set, and completing the model training if it reaches it, and continuing the iterative training if it does not reach it until the condition is met; The event data is transmitted to a preset cloud for recording and storage.

2. The event recording method of the smart meter according to claim 1, It is characterized in that The steps of obtaining the time information and event information of the event, performing time serialization processing on the time information to obtain serialized time points, and encoding the event information to obtain event encoding data include: The time information of the event is recorded based on the preset time recording module, and the event information is captured based on the preset sensor; Transmitting the time information to a preset time serialization processing unit, and the time serialization processing unit converts the time information into serialized time points; Transmitting the event information to a preset event coding processing unit, and the event coding processing unit converts the event information into event coding data; The serialized time points and the event coding data are stored in a temporary storage unit of the smart meter.

3. The event recording method of the smart meter according to claim 2, It is characterized in that The step of setting the threshold of the event coding data as an event judgment benchmark and judging the serialization time point according to the event judgment benchmark comprises: Extracting the event coding data stored in the temporary storage unit, transmitting the event coding data to a preset threshold setting unit, and using the threshold setting unit to analyze the historical event coding data using a machine learning algorithm to determine an optimal threshold value for the event coding data; Extract the serialization time point stored in the temporary storage unit, compare the serialization time point with the event judgment criterion, and determine whether the serialization time point meets the event judgment criterion.

4. The event recording method of the smart meter according to claim 1, It is characterized in that The step of inputting the judgment result into a preset deep learning model for classification to obtain a corresponding event type, and collecting data on the events of the smart meter according to the corresponding event type to obtain event data includes: Inputting the judgment result into a preset deep learning model, classifying the judgment result by using a neural network structure through the deep learning model, and outputting a corresponding event type; According to the event type, a data acquisition module preset in the smart meter is driven to perform corresponding data acquisition to obtain event time information, event duration and event intensity; The event time information, event duration and event intensity are normalized and fused to obtain fused data, and the fused data is used as event data.

5. The event recording method of the smart meter according to claim 1, It is characterized in that The step of transmitting the event data to a preset cloud for recording and storage includes: Encrypting the event data using a preset encryption algorithm, and transmitting the encrypted event data to a preset cloud via a preset secure communication connection; When the cloud receives the encrypted event data, it decrypts the encrypted event data and verifies the decrypted event data; If the verification is correct, the decrypted event data is stored in the database of the cloud.

6. An event recording device for a smart meter, It is characterized in that include: An acquisition module is used to acquire the time information and event information of an event, perform time serialization processing on the time information to obtain a serialized time point, and perform encoding processing on the event information to obtain event encoding data; A judgment module, used to set the threshold of the event coding data as an event judgment benchmark, and judge the serialization time point according to the event judgment benchmark; A generation module is used to mark the serialized time point if it is confirmed that the serialized time point meets the event judgment criterion to obtain a marked time point; obtain event attributes related to the serialized time point in the data stream of the smart meter to obtain related event attributes, perform correlation analysis on the related event attributes to obtain an event correlation map; perform data fusion on the marked time point and the event correlation map to obtain a comprehensive event view; Prioritize the serialization time points according to the comprehensive event view to obtain the sorted time points, and use the sorted time points as valid serialization time points; perform risk assessment on the timestamps of the valid serialization time points and the corresponding event coding data according to the preset event severity level to obtain a risk assessment report, and use the risk assessment report as the event data packet; Analyze the event data packet based on a preset event cause, send the analyzed event data packet to a preset event analysis model, and generate a judgment result; A collection module, used for inputting the judgment result into a preset deep learning model for classification to obtain a corresponding event type, and collecting data of the events of the smart meter according to the corresponding event type to obtain event data; The training method of the deep learning model includes: obtaining an event sample set, wherein the event sample set includes the timestamp, event code and event type of historical events; preprocessing the event sample set after sorting by time; the preprocessing includes removing noise data and filling missing values; using a ten-fold cross-validation method to divide the preprocessed event sample set into a training set and a validation set, and using 80% of the data in each fold for training and 20% of the data for validation; presetting a deep learning model architecture; wherein the deep learning model architecture includes multiple convolutional layers, pooling layers, fully connected layers and Dropout layers; initializing the weight parameters of the deep learning model, and selecting a cross entropy loss function and an Adam optimizer; inputting the training set into the deep learning model for iterative training, and using the validation set after each epoch to evaluate the model performance to obtain performance performance, and adjusting the learning rate and model parameters of the deep learning model according to the performance performance; determining whether the performance of the deep learning model reaches a preset accuracy threshold after the validation set, and completing the model training if it reaches it, and continuing the iterative training if it does not reach it until the condition is met; The recording module is used to transmit the event data to a preset cloud for recording and storage.

7. An electronic device, It is characterized in that The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and is characterized in that when the processor executes the computer program, the event recording method for the smart meter according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the processor is enabled to execute the event recording method for a smart meter according to any one of claims 1 to 5.