Energy consumption data processing method, system and equipment and readable storage medium

CN118779753APending Publication Date: 2024-10-15ZHEJIANG TENGEN ELECTRIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410861949.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-15

Smart Images

  • Figure CN118779753A_ABST
    Figure CN118779753A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of energy consumption analysis, and discloses an energy consumption data processing method, system and device and a readable storage medium, and the energy consumption data processing method comprises the steps: collecting initial energy consumption data from each metering device, and calling a real-time analysis engine in a data processing service to recognize and analyze the initial energy consumption data; energy consumption data is acquired from the acquisition database regularly, energy consumption statistical tables with different time dimensions are created, and the energy consumption statistical tables are stored in a service database; and forming an energy consumption network model by using all the energy consumption nodes and the structural relationship among the energy consumption nodes, and recording the structural relationship between the metering equipment corresponding to each energy consumption node and each energy consumption node in an energy consumption topology table. According to the method, the processing efficiency and the statistical accuracy of the energy consumption data are remarkably improved, and the requirements of large data volume and multi-dimensional statistics are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of energy consumption analysis, and in particular to an energy consumption data processing method, system, device and readable storage medium. Background Art

[0002] As the world pays more attention to energy conservation and emission reduction, especially under the impetus of the "dual carbon" goals, energy consumption management and optimization have become particularly critical. Real-time and accurate energy consumption statistics provide basic data support for energy conservation and emission reduction, and are crucial to improving the efficiency of energy management systems and energy-saving optimization systems. At present, the main sources of energy consumption data include electricity meters, water meters, gas meters, etc. Their characteristics include real-time transmission, large data volumes, multi-dimensional statistics, and complex and changeable statistical relationships. At the same time, they also need to face problems such as equipment disconnection, power outages, and damage. The existing energy consumption data statistics solutions have problems including low efficiency and insufficient statistical accuracy, which urgently need to be solved. Summary of the invention

[0003] In view of this, the embodiments of the present application provide an energy consumption data processing method, system, device and readable storage medium, which significantly improve the processing efficiency and statistical accuracy of energy consumption data and meet the needs of large data volume and multi-dimensional statistics.

[0004] In a first aspect, an embodiment of the present application provides an energy consumption data processing method, which is applied to multiple metering devices, wherein one metering device corresponds to one loop, and the intersection of multiple loops corresponds to an energy consumption node, and each energy consumption node includes an upper node and a lower node. The method includes:

[0005] Collecting initial energy consumption data from each of the metering devices, calling a real-time analysis engine in a data processing service to identify and analyze the initial energy consumption data, so as to detect whether there is abnormal energy consumption data and the abnormal type of the abnormal energy consumption data;

[0006] The initial energy consumption data is saved in the acquisition database, energy consumption data is acquired from the acquisition database at regular intervals, energy consumption statistical tables with different time dimensions are created, and each energy consumption statistical table is saved in the business database;

[0007] All the energy consumption nodes and the structural relationships between the energy consumption nodes constitute an energy consumption network model, and the metering equipment corresponding to each energy consumption node and the structural relationships between the energy consumption nodes are recorded in an energy consumption topology table.

[0008] In combination with the first aspect, the embodiment of the present application provides a first possible implementation of the first aspect, wherein the calling of a real-time analysis engine in a data processing service to identify and analyze the initial energy consumption data to detect whether there is abnormal energy consumption data and the abnormal type of the abnormal energy consumption data includes:

[0009] Automatically identifying energy consumption data that does not match a preset energy consumption threshold value through the real-time analysis engine based on the isolation forest model as current abnormal energy consumption data;

[0010] The real-time analysis engine uses historical abnormal energy consumption data as an input sequence of a machine learning model so that the machine learning model predicts the abnormal probability of the current abnormal energy consumption data.

[0011] In combination with the first aspect, the embodiment of the present application provides a second possible implementation of the first aspect, wherein the calling of a real-time analysis engine in the data processing service to identify and analyze the initial energy consumption data to detect whether there is abnormal energy consumption data and the abnormal type of the abnormal energy consumption data, further includes:

[0012] The real-time analysis engine is used to mark and train the historical abnormal energy consumption data, and a strategy function is constructed;

[0013] When the current abnormal energy consumption data is obtained, the real-time analysis engine determines the abnormal type of the current abnormal energy consumption data based on the strategy function.

[0014] In combination with the first aspect, an embodiment of the present application provides a third possible implementation of the first aspect, wherein recording the structural relationship between the metering device corresponding to each of the energy consumption nodes and each of the energy consumption nodes in the energy consumption topology table includes:

[0015] File all the metering devices through business services, and record the meter addresses of all the metering devices in the business database;

[0016] The constructed energy consumption topology table is stored in the business database, wherein the energy consumption topology table includes multiple combinations of record ID, parent node, node name, loop name, node attribute and creation time.

[0017] In combination with the first aspect, the embodiment of the present application provides a fourth possible implementation of the first aspect, which further includes:

[0018] Adjust the reporting time of the metering device in real time, centrally and regularly collect the energy consumption data of the metering device based on the Internet of Things platform, and upload the energy consumption data to the message service;

[0019] The energy consumption data in the message service is received through the data processing service, and the energy consumption data is saved and backed up in a collection database and a cache database.

[0020] In combination with the first aspect, an embodiment of the present application provides a fifth possible implementation of the first aspect, wherein the periodically acquiring the energy consumption data from the collection database and creating an energy consumption statistical table with different time dimensions includes:

[0021] Obtaining an energy consumption statistics table with historical energy consumption data from the business database, and determining whether the recording time of the energy consumption statistics table with historical energy consumption data is continuous;

[0022] If the recording time of the energy consumption statistics table with historical energy consumption data is not continuous, the energy consumption statistics table with historical energy consumption data is initialized, and the historical energy consumption data and the current energy consumption data are obtained from the acquisition database, and the energy consumption statistics table with different time dimensions is recreated;

[0023] If the recording time of the energy consumption statistical table with historical energy consumption data is continuous, the current energy consumption data is obtained from the collection database to create the energy consumption statistical table with different time dimensions.

[0024] In combination with the first aspect, an embodiment of the present application provides a sixth possible implementation of the first aspect, wherein the types with different time dimensions include hourly statistical tables, daily statistical tables, weekly statistical tables, monthly statistical tables, quarterly statistical tables and annual statistical tables.

[0025] In a second aspect, an embodiment of the present application provides an energy consumption data processing system, including:

[0026] A data collection service module, used for collecting initial energy consumption data from each of the metering devices;

[0027] A data processing service module is used to call a real-time analysis engine to identify and analyze the initial energy consumption data to detect whether there is abnormal energy consumption data and the abnormal type of the abnormal energy consumption data;

[0028] A data storage service module, used for storing the initial energy consumption data in the collection database;

[0029] A timing service module, used for regularly acquiring the energy consumption data from the collection database, creating energy consumption statistical tables with different time dimensions, and saving each energy consumption statistical table into a business database;

[0030] The business service module is used to form an energy consumption network model by combining all the energy consumption nodes and the structural relationships between the energy consumption nodes, and record the structural relationships between the metering equipment corresponding to each energy consumption node and the energy consumption nodes in an energy consumption topology table.

[0031] In a third aspect, an embodiment of the present application provides a terminal device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the energy consumption data processing method.

[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which implements the energy consumption data processing method when executed on a processor.

[0033] The embodiments of the present application have the following beneficial effects:

[0034] The energy consumption data processing method, system, device and readable storage medium of the embodiment of the present application include: collecting initial energy consumption data from each metering device, calling a real-time analysis engine in a data processing service to identify and analyze the initial energy consumption data to detect whether there is abnormal energy consumption data and the abnormal type of the abnormal energy consumption data; saving the initial energy consumption data to the collection database, regularly obtaining energy consumption data from the collection database, creating energy consumption statistics tables with different time dimensions, and saving each energy consumption statistics table to a business database; forming an energy consumption network model with all the energy consumption nodes and the structural relationship between each energy consumption node, and recording the structural relationship between the metering device corresponding to each energy consumption node and each energy consumption node in an energy consumption topology table. Based on the above scheme, the present application helps enterprises or organizations clearly identify the paths and nodes of energy flow by constructing an energy consumption topology table and an energy consumption network model of energy consumption; the present application also collects energy consumption data of each energy consumption node in real time, uses real-time energy consumption data analysis technology, and immediately feedbacks energy consumption, quickly identifies abnormal consumption phenomena, thereby adjusting the control strategy immediately to reduce unnecessary waste. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 A first flow chart of the energy consumption data processing method provided in an embodiment of the present application is shown;

[0037] Figure 2 A second flow chart of the energy consumption data processing method provided in an embodiment of the present application is shown;

[0038] Figure 3 A schematic diagram showing a record table in a collection database provided in an embodiment of the present application is shown;

[0039] Figure 4 A schematic diagram showing an hourly statistical table of an electric meter provided in an embodiment of the present application is shown;

[0040] Figure 5 A schematic diagram showing a daily statistics table of an electric meter provided in an embodiment of the present application is shown;

[0041] Figure 6 A schematic diagram showing a weekly statistical table of an electric meter provided in an embodiment of the present application is shown;

[0042] Figure 7 A schematic diagram showing a monthly statistical table of an electric meter provided in an embodiment of the present application is shown;

[0043] Figure 8 A schematic diagram showing a quarterly statistical table of an electric meter provided in an embodiment of the present application is shown;

[0044] Fig. 9 A schematic diagram showing an annual statistical table of an electric meter provided in an embodiment of the present application is shown;

[0045] Fig.10 A third flow chart of the energy consumption data processing method provided in the embodiment of the present application is shown;

[0046] Fig.11 A schematic diagram of an energy consumption topology table provided in an embodiment of the present application is shown;

[0047] Fig.12 A schematic diagram of the structure of the energy consumption data processing system provided in an embodiment of the present application is shown.

[0048] Description of main component symbols:

[0049] 200 - energy consumption data processing system; 210 - data acquisition service module; 220 - data processing service module; 230 - data storage service module; 240 - timing service module; 250 - business service module. DETAILED DESCRIPTION

[0050] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0051] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0052] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0053] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0054] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0055] Existing energy consumption statistics solutions are inefficient and cannot accurately count and analyze energy consumption data. This application proposes a comprehensive energy consumption topology analysis method to construct a detailed energy consumption network model, effectively depict the paths and nodes of energy flow, and construct an energy consumption topology table to make the tracking of energy flow and consumption clearer. This application also proposes a real-time analysis engine and anomaly detection method to identify abnormal energy consumption data and the anomaly types of existing abnormal energy consumption data. This application also achieves efficient and accurate energy consumption data statistics by creating energy consumption statistics tables with different time dimensions.

[0056] The energy consumption data processing method is described below in conjunction with some specific embodiments.

[0057] Figure 1A flow chart of the energy consumption data processing method of an embodiment of the present application is shown. The energy consumption data processing method is applied to multiple metering devices, wherein one metering device corresponds to one loop, the intersection of multiple loops corresponds to an energy consumption node, and each energy consumption node includes an upper node and a lower node. The energy consumption data processing method includes the following steps:

[0058] S110, collecting initial energy consumption data from each metering device, calling a real-time analysis engine in a data processing service to identify and analyze the initial energy consumption data, so as to detect whether there is abnormal energy consumption data and the abnormal type of the abnormal energy consumption data.

[0059] Exemplarily, a real-time analysis engine is introduced into the data processing service to continuously monitor the collected energy consumption data using a preset energy consumption threshold. Abnormal energy consumption data includes missing data values, abnormal data types, and abnormal data values, wherein abnormal data values ​​include data values ​​that are too large, too small, or negative. The real-time analysis engine is used to determine whether the energy consumption data is invalid, thereby determining whether the data value is missing. The real-time analysis engine is also used to determine whether a string is passed in when the energy consumption data is integer data, thereby determining the data type abnormality. The real-time analysis engine is also used to identify through machine learning models (LSTM) and isolation forests, and automatically identify energy consumption data that does not conform to the normal energy consumption pattern.

[0060] Demonstration, Isolation Forest is an unsupervised learning method that can be directly applied to the detection of unlearned energy consumption data anomalies, while the machine learning model (LSTM) is a supervised learning method that can learn and update the model in real time through historical abnormal energy consumption data to assist in supplementing the recognition results of Isolation Forest. The machine learning model (LSTM) is used to remember the relationship between historical abnormal energy consumption data and current abnormal energy consumption data through the structure of long short-term memory network, so as to capture the sequence dependency between different time points, use the historical abnormal energy consumption data as the basis for current prediction, and output the current abnormal probability, so as to achieve more accurate anomaly detection. For further analysis of abnormal energy consumption data, this application adopts a deep reinforcement learning method to mark and train a strategy function for a large number of abnormal energy consumption data that have been identified. When the subsequent abnormal energy consumption data is identified again, the strategy function is used to determine whether the abnormal type of abnormal energy consumption data belongs to energy waste, low efficiency or equipment failure, etc. The data processing service is also based on the real-time statistics and analysis method of the Internet of Things platform. The Internet of Things platform is used to efficiently process and analyze the collected energy consumption data in order to quickly identify energy consumption anomalies, waste points and optimization opportunities.

[0061] For example, in one embodiment, Figure 2As shown, the energy consumption data processing method calls a real-time analysis engine in a data processing service to identify and analyze the initial energy consumption data to detect whether there is abnormal energy consumption data and the abnormal type of the abnormal energy consumption data, including the following steps:

[0062] S111, automatically identifying energy consumption data that does not match a preset energy consumption threshold value through a real-time analysis engine based on an isolation forest model as current abnormal energy consumption data;

[0063] S112, using the real-time analysis engine to use the historical abnormal energy consumption data as an input sequence of the machine learning model, so that the machine learning model predicts the abnormal probability of the current abnormal energy consumption data;

[0064] S113, marking and training the historical abnormal energy consumption data through the real-time analysis engine, and building a strategy function;

[0065] S114, when the current abnormal energy consumption data is obtained, the abnormal type of the current abnormal energy consumption data is determined based on the strategy function by the real-time analysis engine.

[0066] It can be understood that abnormal energy consumption data is used to indicate energy waste or equipment failure. The real-time analysis engine will immediately trigger an alarm and notify relevant operation and maintenance personnel to handle it. The core of the real-time analysis engine is to use data mining technology, combined with time series analysis of energy consumption data, to automatically learn and identify abnormal types from a large amount of energy consumption data, thereby improving the efficiency and response speed of energy consumption management.

[0067] Exemplarily, the reporting time of the metering equipment can be adjusted at any time, such as once every 5 minutes, once every 20 minutes, etc. The metering equipment includes electricity meters, gas meters and water meters, etc. The energy consumption data processing method collects the real-time values ​​of all metering equipment in real time through the Internet of Things platform, and the real-time values ​​are transferred to the data processing service through the message service after being collected by the collection service. After being processed by the data processing service, they are stored in the collection database. At the same time, the real-time values ​​of each metering device are backed up in the cache database. When the current energy consumption data is reported, the historical energy consumption data is read from the cache database as the previous period value, and combined with the current energy consumption data, a record table is generated and saved in the collection database. The form of the record table in the collection database is as follows Figure 3 shown.

[0068] For example, in one embodiment, the energy consumption data processing method also includes: adjusting the reporting time of the metering equipment in real time, centrally and regularly collecting the energy consumption data of the metering equipment based on the Internet of Things platform, and uploading the energy consumption data to the message service; receiving the energy consumption data in the message service through the data processing service, and saving and backing up the energy consumption data to the collection database and the cache database.

[0069] S120, saving the initial energy consumption data into a collection database, periodically acquiring energy consumption data from the collection database, creating energy consumption statistical tables with different time dimensions, and saving each energy consumption statistical table into a business database.

[0070] For example, in the database design, the reading time of the metering equipment is divided into year, month, day, and hour to ensure that there is only one record per hour, and the last record in the hour is the actual record. The timing service is used to obtain the energy consumption statistics table with historical energy consumption data from the business database every hour, and determine whether to initialize the energy consumption statistics table with historical energy consumption data based on the continuity of the recording time of the energy consumption statistics table with historical energy consumption data. The timing service is also used to obtain the energy consumption data of the current hour from the collection database based on the relational database every hour, such as querying the energy consumption data of 7:00-8:00 on the same day in the collection database as the data of 7 o'clock in the business database. The timing service is also used to construct energy consumption statistics tables with different time dimensions based on the energy consumption data of the current hour and the historical energy consumption data.

[0071] Exemplarily, the business database includes hourly statistics, daily statistics, weekly statistics, monthly statistics, quarterly statistics and annual statistics, where the daily statistics are based on the hourly statistics, the weekly statistics are based on the daily statistics, the monthly statistics are based on the daily statistics, the quarterly statistics are based on the monthly statistics, and the annual statistics are based on the monthly statistics. For example, the hourly statistics of an electric meter may be in the form of Figure 4 As shown, the daily statistics table of the electricity meter is in the form of Figure 5 As shown, the weekly statistics table of the electricity meter is in the form of Figure 6 As shown in the figure, the monthly statistics table of the electric meter is in the form of Figure 7 As shown in the figure, the quarterly statistics table of the electricity meter is in the form of Figure 8 As shown in the figure, the annual statistical table of electricity meters is in the form of Fig. 9 As shown. The energy consumption statistics table of each electric meter includes record ID, topology ID and device ID, among which record ID is the unique identifier of the electric meter energy consumption data in the business database, which is used to uniquely locate or query the recorded electric meter energy consumption data; topology ID is the unique identifier of the topological structure in the power system, which is used to identify the location and connection status of a certain electric meter in the power system; device ID is the unique identifier of the electric meter, which is used to uniquely identify an electric meter. Each energy consumption statistics table also includes the previous period electricity, the previous period peak electricity, the previous period peak electricity, the previous period flat electricity and the previous period valley electricity. The previous period electricity, the previous period peak electricity, the previous period peak electricity, the previous period flat electricity and the previous period valley electricity refer to the total electricity, peak electricity, peak electricity, flat electricity and valley electricity used by the current electric meter during the previous billing cycle. The billing cycle can be hourly, daily, monthly, quarterly or annual, etc., or it can be a billing cycle specified by the user.

[0072] For example, in one embodiment, Fig.10 As shown, the timing service obtains energy consumption data from the collection database at regular intervals and creates energy consumption statistics tables with different time dimensions. The energy consumption data processing method includes:

[0073] S121, obtaining an energy consumption statistics table with historical energy consumption data from a business database, and determining whether the recording time of the energy consumption statistics table with historical energy consumption data is continuous;

[0074] S122, if the recording time of the energy consumption statistics table with historical energy consumption data is not continuous, then initialize the energy consumption statistics table with historical energy consumption data, obtain the historical energy consumption data and the current energy consumption data from the collection database, and recreate the energy consumption statistics table with different time dimensions;

[0075] S123: If the recording time of the energy consumption statistics table with historical energy consumption data is continuous, the current energy consumption data is obtained from the collection database to create an energy consumption statistics table with different time dimensions.

[0076] S130: All energy consumption nodes and the structural relationships between the energy consumption nodes constitute an energy consumption network model, and the metering equipment corresponding to each energy consumption node and the structural relationships between the energy consumption nodes are recorded in an energy consumption topology table.

[0077] Demonstratively, this application proposes a comprehensive energy consumption topology analysis method. By constructing a detailed energy consumption network model in business services, it can not only identify and analyze key nodes and bottlenecks in energy use, but also adopt a flexible energy consumption statistics method based on the design of energy consumption topology table to support multi-dimensional energy consumption data statistics and analysis. In this application, a metering device represents a loop, and multiple loops can be selected for energy consumption nodes. For each energy consumption node, hourly, daily, monthly, quarterly or annual energy consumption statistics for the region or building can be generated. Each energy consumption node forms a tree structure relationship with its own upper and lower nodes. Each energy consumption node can correspond to multiple metering devices, and the tree structure relationship between all energy consumption nodes and all energy consumption nodes constitutes an energy consumption network model.

[0078] During the implementation process, the system service first creates files for each metering device and records the table address of each metering device in the business database. The table address includes the area code, line code, substation code, transformer code, and ID number of the metering device. The schematic diagram of the energy consumption topology table is as follows: Fig.11As shown, the record ID in the energy consumption topology table is used to uniquely identify an energy consumption node; the parent node in the energy consumption topology table is defined as the parent node of the current energy consumption node; the node name in the energy consumption topology table is used to identify the specific name of the energy consumption node; the loop name in the energy consumption topology table is the type of metering equipment corresponding to the energy consumption node; the node attributes in the energy consumption topology table are classified information such as buildings, floors, rooms, loops, etc.; the creation time in the energy consumption topology table is the specific time of energy consumption data collection in the energy consumption node. In the energy consumption topology table, a record ID corresponds to an energy consumption node. If an energy consumption node A contains another energy consumption node B, then energy consumption node A is the parent node of energy consumption node B, and energy consumption node B is the subordinate node of energy consumption node A. Such a structure makes energy consumption statistics more convenient and accurate, allowing users to conduct detailed energy consumption analysis according to node attributes.

[0079] For example, in one embodiment, the structural relationship between the metering device corresponding to each energy consumption node and each energy consumption node is recorded in an energy consumption topology table, including: archiving all metering devices through business services, and recording the table addresses of all metering devices in a business database; saving the constructed energy consumption topology table in the business database, wherein the energy consumption topology table includes multiple combinations of record ID, parent node, node name, loop name, node attributes and creation time.

[0080] Fig.12 A schematic diagram of the structure of an energy consumption data processing system 200 according to an embodiment of the present application is shown. Exemplarily, the energy consumption data processing system 200 includes:

[0081] The data collection service module 210 is used to collect initial energy consumption data from each metering device;

[0082] The data processing service module 220 is used to call the real-time analysis engine to identify and analyze the initial energy consumption data to detect whether there is abnormal energy consumption data and the abnormal type of the abnormal energy consumption data;

[0083] The data storage service module 230 is used to save the initial energy consumption data into the collection database;

[0084] The timing service module 240 is used to obtain energy consumption data from the collection database at a regular time, create energy consumption statistics tables with different time dimensions, and save each energy consumption statistics table to the business database;

[0085] The business service module 250 is used to form an energy consumption network model with all energy consumption nodes and the structural relationships between the energy consumption nodes, and record the metering equipment corresponding to each energy consumption node and the structural relationships between the energy consumption nodes in an energy consumption topology table.

[0086] It can be understood that the device of this embodiment corresponds to the energy consumption data processing method of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.

[0087] The present application also provides a terminal device. Exemplarily, the terminal device includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the terminal device to execute the functions of each module in the above-mentioned energy consumption data processing method or the above-mentioned energy consumption data processing system.

[0088] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.

[0089] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. Among them, the memory is used to store a computer program, and the processor can execute the computer program accordingly after receiving an execution instruction.

[0090] The present application also provides a computer-readable storage medium for storing a computer program used in the above-mentioned terminal device. For example, the computer-readable storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0091] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can also be implemented in other ways. The apparatus embodiments described above are merely schematic, for example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the apparatus, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0092] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0093] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present application.

[0094] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. A method for processing energy consumption data, It is characterized in that Applied to multiple metering devices, wherein one metering device corresponds to one loop, the intersection of multiple loops corresponds to an energy consumption node, each of the energy consumption nodes includes an upper node and a lower node, and the method includes: Collecting initial energy consumption data from each of the metering devices, calling a real-time analysis engine in a data processing service to identify and analyze the initial energy consumption data, so as to detect whether there is abnormal energy consumption data and the abnormal type of the abnormal energy consumption data; The initial energy consumption data is saved in a collection database, energy consumption data is acquired from the collection database at regular intervals, energy consumption statistical tables with different time dimensions are created, and each energy consumption statistical table is saved in a business database; All the energy consumption nodes and the structural relationships between the energy consumption nodes constitute an energy consumption network model, and the metering equipment corresponding to each energy consumption node and the structural relationships between the energy consumption nodes are recorded in an energy consumption topology table.

2. The energy consumption data processing method according to claim 1, It is characterized in that The calling of the real-time analysis engine in the data processing service to identify and analyze the initial energy consumption data to detect whether there is abnormal energy consumption data and the abnormal type of the abnormal energy consumption data includes: Automatically identifying energy consumption data that does not match a preset energy consumption threshold value through the real-time analysis engine based on the isolation forest model as current abnormal energy consumption data; The real-time analysis engine uses historical abnormal energy consumption data as an input sequence of a machine learning model so that the machine learning model predicts the abnormal probability of the current abnormal energy consumption data.

3. The energy consumption data processing method according to claim 2, It is characterized in that The calling of a real-time analysis engine in the data processing service to identify and analyze the initial energy consumption data to detect whether there is abnormal energy consumption data and the abnormal type of the abnormal energy consumption data also includes: The real-time analysis engine is used to mark and train the historical abnormal energy consumption data, and a strategy function is constructed; When the current abnormal energy consumption data is obtained, the real-time analysis engine determines the abnormal type of the current abnormal energy consumption data based on the strategy function.

4. The energy consumption data processing method according to claim 1, It is characterized in that The step of recording the structural relationship between the metering device corresponding to each of the energy consumption nodes and each of the energy consumption nodes in the energy consumption topology table includes: File all the metering devices through business services, and record the meter addresses of all the metering devices in the business database; The constructed energy consumption topology table is stored in the business database, wherein the energy consumption topology table includes multiple combinations of record ID, parent node, node name, loop name, node attribute and creation time.

5. The energy consumption data processing method according to claim 1, It is characterized in that Also includes: Adjust the reporting time of the metering device in real time, centrally and regularly collect the energy consumption data of the metering device based on the Internet of Things platform, and upload the energy consumption data to the message service; The energy consumption data in the message service is received through the data processing service, and the energy consumption data is saved and backed up in a collection database and a cache database.

6. The energy consumption data processing method according to claim 1, It is characterized in that The step of periodically acquiring the energy consumption data from the acquisition database and creating an energy consumption statistical table with different time dimensions includes: Obtaining an energy consumption statistics table with historical energy consumption data from the business database, and determining whether the recording time of the energy consumption statistics table with historical energy consumption data is continuous; If the recording time of the energy consumption statistics table with historical energy consumption data is not continuous, the energy consumption statistics table with historical energy consumption data is initialized, and the historical energy consumption data and the current energy consumption data are obtained from the acquisition database, and the energy consumption statistics table with different time dimensions is recreated; If the recording time of the energy consumption statistical table with historical energy consumption data is continuous, the current energy consumption data is obtained from the collection database to create the energy consumption statistical table with different time dimensions.

7. The energy consumption data processing method according to claim 1, It is characterized in that The types with different time dimensions include hourly statistical tables, daily statistical tables, weekly statistical tables, monthly statistical tables, quarterly statistical tables and annual statistical tables.

8. An energy consumption data processing system, It is characterized in that include: A data collection service module, used for collecting initial energy consumption data from each of the metering devices; A data processing service module is used to call a real-time analysis engine to identify and analyze the initial energy consumption data to detect whether there is abnormal energy consumption data and the abnormal type of the abnormal energy consumption data; A data storage service module, used for storing the initial energy consumption data in a collection database; A timing service module, used for regularly acquiring the energy consumption data from the collection database, creating energy consumption statistical tables with different time dimensions, and saving each energy consumption statistical table into a business database; The business service module is used to form an energy consumption network model by combining all the energy consumption nodes and the structural relationships between the energy consumption nodes, and record the structural relationships between the metering equipment corresponding to each energy consumption node and the energy consumption nodes in an energy consumption topology table.

9. A terminal device, It is characterized in that The terminal device comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the energy consumption data processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that It stores a computer program, which, when executed on a processor, implements the energy consumption data processing method according to any one of claims 1-7.