Electricity consumption monitoring and early warning method and device based on Internet of Things

Through the power consumption monitoring and early warning method based on the Internet of Things, we collect historical power consumption data to generate standards, monitor power consumption data in real time, and provide early warning of excessive power consumption and failures, solving the problems of power consumption safety and resource waste, and improving the safety and security of power consumption. Monitor efficiency.

CN117788046BActive Publication Date: 2024-09-06GUANGDONG MEIDIAN GUOCHUANG INFRASTRUCTURE INVESTMENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410110285.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-25
Publication Date
2024-09-06
Estimated Expiration
2044-01-25

AI Technical Summary

Technical Problem

Existing technology fails to effectively monitor and provide early warning for electricity safety, resulting in damage and aging of electrical equipment, resulting in fires, and there are problems of excessive power consumption and waste of power resources.

Method used

Adopt the power consumption monitoring and early warning method based on the Internet of Things to generate power consumption standards for different periods by collecting historical power consumption data, collect power consumption data in real time for prediction, determine whether the standard is exceeded, generate alarm information, and monitor power consumption failures to achieve Targeted intervention and maintenance.

Benefits of technology

It achieves effective monitoring of power consumption areas, provides early warning to avoid excessive power consumption, reduces monitoring pressure, detects fault points in time, and improves the safety of power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117788046B
    Figure CN117788046B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a power consumption monitoring and early warning method and device based on the Internet of Things, including generating the power consumption standard of the target power consumption area in different time periods based on historical power consumption data; collecting the power consumption data and detection data of the target power consumption area in real time, counting the power consumption of the target power consumption area at preset time intervals, and generating the predicted power consumption in this time period based on the power consumption; judging whether the power consumption standard is exceeded based on the predicted power consumption, and generating alarm information; monitoring whether there is a power failure in the target power consumption area based on the detection data, and when there is a power failure, obtaining the fault information of each calculation unit. It can play a role in early prediction, and then extract and take targeted measures, intervene in advance to avoid excessive power consumption. At the same time, the embodiment also monitors power safety, detects whether there is a power failure in the power consumption area, and starts from a more subdivided area for the area with power failure, so as to find the fault point more quickly for maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electricity consumption monitoring, and in particular to an electricity consumption monitoring and early warning method and device based on the Internet of Things. Background Art

[0002] At present, electric energy has the advantages of being easy to use, simple to transmit, clean and safe, and its proportion in national production and living energy is also increasing. More than half of my country's energy is supplied in the form of electric energy through improved transmission and distribution of electric energy. The development of the power system has become an important part of the national economy and people's livelihood. According to statistics, my country's electricity consumption is also increasing year by year with the development of the economy. At the same time, with the development of science and technology, the traditional power industry has shifted towards a highly intensive, highly knowledge-based, and highly technical direction. The power grid has become one of the largest and most complex machines in the world, and users have put forward higher requirements for the reliability, safety, economy and stability of the power system.

[0003] With the rapid economic development, household appliances have been popularized in thousands of households, and more and more electrical equipment needs to be operated 24 hours a day in office buildings. In the report released by the Ministry of Public Security every year, the proportion of fires caused by damage and aging of electrical equipment is relatively large, causing property losses and personal injuries to the country and the people. In addition, serious waste of power resources is caused by failure to cut off power in time when people leave. At present, there is no perfect monitoring of power safety and power consumption on the power consumption side. Summary of the invention

[0004] In view of the above-mentioned defects, an embodiment of the present invention discloses an Internet of Things-based electricity consumption monitoring and early warning method and device, which can effectively monitor the electricity consumption in the monitoring area.

[0005] The first aspect of the embodiment of the present invention discloses a power consumption monitoring and early warning method based on the Internet of Things, comprising:

[0006] In response to the data collection instruction, historical power consumption data of the target power consumption area within a set period is collected, and power consumption standards of the target power consumption area at different time periods are generated based on the historical power consumption data, wherein the power consumption standards of the target power consumption area at different time periods include a first power consumption standard of all computing units in the target power consumption area at different time periods and a second power consumption standard corresponding to different computing units in the target power consumption area at different time periods;

[0007] Collect power consumption data and detection data of each computing unit in the target power consumption area in real time, count the power consumption of each computing unit within a preset time period according to the power consumption data and detection data, calculate the total power consumption of all computing units according to the power consumption, and generate the predicted power consumption in this time period based on the total power consumption;

[0008] Determine whether the predicted power consumption exceeds a first power consumption standard, generate an alarm message when it exceeds the first power consumption standard, and when monitoring that the power consumption of the target power consumption area exceeds the first power consumption standard within the next preset time period, monitor whether the power consumption of each calculation unit within the preset time period exceeds the corresponding second power consumption standard; when the predicted power consumption does not exceed the first power consumption standard, determine that the number of times that the target power consumption area does not exceed the first power consumption standard within the preset time period is greater than a preset number, and when it is greater than the preset number, set the number of power consumption monitoring times for the target power consumption area, and monitor the total power consumption of the target power consumption area within the set monitoring period based on the power consumption monitoring times;

[0009] The target power consumption area is monitored according to the detection data to determine whether there is a power failure at present. When a power failure exists, the failure information of each computing unit in the target power consumption area is obtained.

[0010] As an optional implementation manner, in the first aspect of the embodiment of the present invention, generating the power consumption standard of the target power consumption area in different time periods based on the historical power consumption data includes:

[0011] Obtaining a preset time period range, and classifying the historical electricity consumption data according to the time period range and different calculation units;

[0012] Extracting first maximum data and first minimum data from the historical power consumption data within each time period respectively; and extracting second maximum data and second minimum data from the historical power consumption data within each time period respectively according to each calculation unit;

[0013] A first threshold is obtained by multiplying the first maximum data by a first coefficient, a second threshold is obtained by multiplying the first minimum data by a second coefficient, and a first power consumption standard for the time period is generated based on the second threshold and the first threshold;

[0014] The third threshold is obtained by multiplying the second maximum data by the first coefficient, the fourth threshold is obtained by multiplying the second minimum data by the second coefficient, and the second power consumption standard for the time period is generated based on the fourth threshold and the third threshold.

[0015] As an optional implementation manner, in the first aspect of the embodiment of the present invention, generating the predicted power consumption in this time period according to the power consumption includes:

[0016] The total power consumption of the target power consumption area is saved each time, and the total power consumption of each time is added to the sum of all the total power consumption previously counted to obtain the current total power consumption;

[0017] The total current power consumption obtained after each statistics of total power consumption is used to generate a power consumption increase trajectory;

[0018] The predicted power consumption of each time node not counted in this time period is generated according to the power consumption increase trajectory.

[0019] As an optional implementation manner, in the first aspect of the embodiment of the present invention, determining whether the predicted power consumption exceeds the first power consumption standard includes:

[0020] Comparing the predicted power consumption with the first power consumption standard to determine whether the predicted power consumption is within the range of the first power consumption standard;

[0021] When the predicted power consumption is outside the range of the first power consumption standard, calculating the difference between the predicted power consumption and the first power consumption standard;

[0022] When the difference is greater than a threshold, it is determined that the predicted power consumption exceeds the first power consumption standard.

[0023] As an optional implementation manner, in the first aspect of the embodiment of the present invention, obtaining fault information of each computing unit in the target power consumption area includes:

[0024] Divide the target electricity consumption area into a number of calculation units;

[0025] The power consumption data and detection data of each computing unit are classified and stored, and the fault information of each computing unit is generated based on the detection data of the computing unit.

[0026] As an optional implementation manner, in the first aspect of the embodiment of the present invention, generating fault information of each computing unit based on the detection data of the computing unit includes:

[0027] The detection data of each unit is input into a preset fault detection model to output fault information, which includes a fault result and a fault type.

[0028] As an optional implementation manner, in the first aspect of the embodiment of the present invention, it also includes:

[0029] When there is no power failure, a number of detection data collected at different time nodes are used to generate a numerical trend graph in the order of the time nodes;

[0030] Filter out the historical power consumption data containing fault information from the collected historical power consumption data as comparison data;

[0031] A comparison numerical trend graph is generated based on the comparison data in the order of time nodes, and the numerical trend graph is compared with the comparison numerical trend graph. When the trend similarity between the two exceeds a preset value, a fault warning is generated.

[0032] A second aspect of an embodiment of the present invention discloses an Internet of Things-based electricity consumption monitoring and early warning device, comprising:

[0033] A data collection module: used to collect historical power consumption data of a target power consumption area within a set period in response to a data collection instruction, and generate power consumption standards of the target power consumption area at different time periods based on the historical power consumption data, wherein the power consumption standards of the target power consumption area at different time periods include a first power consumption standard of all computing units in the target power consumption area at different time periods and a second power consumption standard corresponding to different computing units in the target power consumption area at different time periods;

[0034] Power consumption prediction module: used to collect power consumption data and detection data of each computing unit in the target power consumption area in real time, count the power consumption of each computing unit within a preset time period according to the power consumption data and detection data, calculate the total power consumption of all computing units according to the power consumption, and generate the predicted power consumption in this time period based on the total power consumption;

[0035] Power consumption alarm module: used to determine whether the predicted power consumption exceeds the first power consumption standard, generate an alarm message when it exceeds the first power consumption standard, and when monitoring that the power consumption of the target power consumption area exceeds the first power consumption standard within the next preset time, monitor whether the power consumption of each calculation unit within the preset time exceeds the corresponding second power consumption standard; when the predicted power consumption does not exceed the first power consumption standard, determine that the number of times that the target power consumption area does not exceed the first power consumption standard within the preset time is greater than the preset number, and when it is greater than the preset number, set the number of power consumption monitoring times for the target power consumption area, and monitor the total power consumption of the target power consumption area within the set monitoring period based on the power consumption monitoring times;

[0036] Fault detection module: used to monitor whether there is a power failure in the target power consumption area according to the detection data, and when there is a power failure, obtain the fault information of each computing unit in the target power consumption area.

[0037] As an optional implementation manner, in the second aspect of the embodiment of the present invention, generating the power consumption standard of the target power consumption area in different time periods based on the historical power consumption data includes:

[0038] Obtaining a preset time period range, and classifying the historical electricity consumption data according to the time period range and different calculation units;

[0039] Extracting first maximum data and first minimum data from the historical power consumption data within each time period respectively; and extracting second maximum data and second minimum data from the historical power consumption data within each time period respectively according to each calculation unit;

[0040] A first threshold is obtained by multiplying the first maximum data by a first coefficient, a second threshold is obtained by multiplying the first minimum data by a second coefficient, and a first power consumption standard for the time period is generated based on the second threshold and the first threshold;

[0041] The third threshold is obtained by multiplying the second maximum data by the first coefficient, the fourth threshold is obtained by multiplying the second minimum data by the second coefficient, and the second power consumption standard for the time period is generated based on the fourth threshold and the third threshold.

[0042] As an optional implementation manner, in the second aspect of the embodiment of the present invention, generating the predicted power consumption in the current time period according to the power consumption includes:

[0043] The power consumption of the target power consumption area is saved each time, and the power consumption of each time is added to the sum of all the power consumption previously counted to obtain the current total power consumption;

[0044] The total current power consumption obtained after each power consumption statistics is used to generate a power consumption increase trajectory;

[0045] The predicted power consumption of each time node not counted in this time period is generated according to the power consumption increase trajectory.

[0046] As an optional implementation manner, in the second aspect of the embodiment of the present invention, determining whether the predicted power consumption exceeds the first power consumption standard includes:

[0047] Comparing the predicted power consumption with the first power consumption standard to determine whether the predicted power consumption is within the range of the first power consumption standard;

[0048] When the predicted power consumption is outside the range of the first power consumption standard, calculating the difference between the predicted power consumption and the first power consumption standard;

[0049] When the difference is greater than a threshold, it is determined that the predicted power consumption exceeds the first power consumption standard.

[0050] As an optional implementation manner, in the second aspect of the embodiment of the present invention, obtaining the fault information of each computing unit in the target power consumption area includes:

[0051] Divide the target electricity consumption area into a number of calculation units;

[0052] The power consumption data and detection data of each computing unit are classified and stored, and the fault information of each computing unit is generated based on the detection data of the computing unit.

[0053] As an optional implementation manner, in a second aspect of the embodiment of the present invention, generating fault information of each computing unit based on the detection data of the computing unit includes:

[0054] The detection data of each unit is input into a preset fault detection model to output fault information, which includes a fault result and a fault type.

[0055] As an optional implementation manner, in the second aspect of the embodiment of the present invention, it also includes:

[0056] When there is no power failure, a number of detection data collected at different time nodes are used to generate a numerical trend graph in the order of the time nodes;

[0057] Filter out the historical power consumption data containing fault information from the collected historical power consumption data as comparison data;

[0058] A comparison numerical trend graph is generated based on the comparison data in the order of time nodes, and the numerical trend graph is compared with the comparison numerical trend graph. When the trend similarity between the two exceeds a preset value, a fault warning is generated.

[0059] The third aspect of an embodiment of the present invention discloses an electronic device, comprising: a memory storing executable program code; a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the power consumption monitoring and early warning method based on the Internet of Things disclosed in the first aspect of the embodiment of the present invention.

[0060] A fourth aspect of an embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the electricity consumption monitoring and early warning method based on the Internet of Things disclosed in the first aspect of an embodiment of the present invention.

[0061] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0062] In the embodiment of the present invention, historical electricity consumption data of the target electricity consumption area is collected, and then two electricity consumption standards under different time periods are generated as comparison benchmarks, one of which is the second electricity consumption standard corresponding to each calculation unit, and the other is the first electricity consumption standard for all calculation units in the target electricity consumption area. When the electricity consumption data collected in real time generates predicted electricity consumption, and the predicted electricity consumption is compared with the first electricity consumption standard, when two consecutive monitorings exceed the first electricity consumption standard, each calculation unit is further monitored and compared with the second electricity consumption standard, which can play a role in early prediction and then extract targeted measures to intervene in advance to avoid excessive electricity consumption. When the number of consecutive monitorings of the target electricity consumption area not exceeding the first electricity consumption standard is greater than the preset number of times, random inspections are carried out during the monitoring period according to the set number of electricity consumption monitoring, which can reduce the monitoring pressure. At the same time, the embodiment also monitors electricity safety, detects whether there is a power failure in the power consumption area, and starts from more subdivided areas for areas with power failures, so as to more quickly find the fault point for maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments 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 work.

[0064] Figure 1 It is a flow chart of a power consumption monitoring and early warning method based on the Internet of Things disclosed in an embodiment of the present invention;

[0065] Figure 2 It is a flow chart of another power consumption monitoring and early warning method based on the Internet of Things disclosed in an embodiment of the present invention;

[0066] Figure 3 It is a flow chart of another power consumption monitoring and early warning method based on the Internet of Things disclosed in an embodiment of the present invention;

[0067] Figure 4 It is a structural schematic diagram of an Internet of Things-based electricity consumption monitoring and early warning device provided by an embodiment of the present invention;

[0068] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0069] 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 only 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.

[0070] It should be noted that the terms "first", "second", "third", "fourth", etc. in the specification and claims of the present invention are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present invention and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0071] The embodiment of the present invention discloses an electricity consumption monitoring and early warning method, device, electronic device and storage medium based on the Internet of Things. In the embodiment, historical electricity consumption data of a target electricity consumption area is collected to generate two electricity consumption standards in different time periods as comparison benchmarks, one of which is a second electricity consumption standard corresponding to each calculation unit, and the other is a first electricity consumption standard for all calculation units in the target electricity consumption area. When the electricity consumption data collected in real time generates predicted electricity consumption, and the predicted electricity consumption is compared with the first electricity consumption standard, when two consecutive monitorings exceed the first electricity consumption standard, each calculation unit is further monitored and compared with the second electricity consumption standard, which can play an early prediction and then extract targeted measures to intervene in advance to avoid excessive electricity consumption. When the number of consecutive monitorings of the target electricity consumption area not exceeding the first electricity consumption standard is greater than a preset number, random inspections are performed during the monitoring period according to the set number of electricity consumption monitorings, which can reduce monitoring pressure. At the same time, the embodiment also monitors electricity safety, detects whether there is a power failure in the electricity consumption area, and starts from a more subdivided area for the area with power failure, so as to more quickly find the fault point for maintenance.

[0072] Embodiment 1

[0073] See also Figure 1 , Figure 1 It is a flow chart of an Internet of Things-based electricity consumption monitoring and early warning method disclosed in an embodiment of the present invention. Among them, the execution subject of the method described in the embodiment of the present invention is an execution subject composed of software and / or hardware, and the execution subject can receive relevant information by wired or / and wireless means, and can send certain instructions. Of course, it can also have certain processing functions and storage functions. The execution subject can control multiple devices, such as a remote physical server or cloud server and related software, or it can be a local host or server and related software that performs related operations on a device placed somewhere. In some scenarios, multiple storage devices can also be controlled, and the storage devices can be placed in the same place or different places as the devices. For example Figure 1 As shown, the electricity consumption monitoring and early warning method based on the Internet of Things includes the following steps:

[0074] 101. In response to a data collection instruction, collect historical electricity consumption data of a target power consumption area within a set period, and generate electricity consumption standards for the target power consumption area at different time periods based on the historical electricity consumption data, wherein the electricity consumption standards for the target power consumption area at different time periods include a first electricity consumption standard for all computing units in the target power consumption area at different time periods and a second electricity consumption standard corresponding to different computing units in the target power consumption area at different time periods.

[0075] In the embodiment, the power consumption area is divided into different areas for supervision, and each supervised area is a target power consumption area. The target power consumption area may be a village, a residential area, or a building. The historical power consumption data is the power consumption data of the target power consumption area in a certain time period in the past. The power consumption data includes the power consumption.

[0076] In the embodiment, the target power consumption area is composed of multiple calculation units, and the calculation unit is a unit in the target power consumption area that independently calculates the power consumption. In the embodiment, the total power consumption of all calculation units is calculated, and the power consumption corresponding to each calculation unit is calculated. Therefore, the first power consumption standard is generated for all calculation units, and each calculation unit corresponds to the second power consumption standard.

[0077] 102. Collect power consumption data and detection data of each computing unit in the target power consumption area in real time, count the power consumption of each computing unit within a preset time period at intervals based on the power consumption data and detection data, calculate the total power consumption of all computing units based on the power consumption, and generate the predicted power consumption in this time period based on the total power consumption.

[0078] The power consumption data includes power consumption, and the detection data includes current data, voltage data, etc. In the embodiment, the preset duration can be one day, three days, one week, etc. For example, when the preset duration is one week, the total power consumption in the week is counted once a week. If each time period is, for example, one month, the power consumption for the entire month can be predicted based on the power consumption statistics of the previous weeks.

[0079] 103. Determine whether the predicted power consumption exceeds the first power consumption standard, generate an alarm message when it exceeds the first power consumption standard, and when monitoring that the total power consumption of the target power consumption area within the next preset time period exceeds the first power consumption standard, monitor whether the power consumption of each calculation unit within the preset time period exceeds the corresponding second power consumption standard; when the predicted power consumption does not exceed the first power consumption standard, determine whether the number of times that the target power consumption area does not exceed the first power consumption standard within the preset time period is greater than the preset number, and when it is greater than the preset number, set the power consumption monitoring number of the target power consumption area, and monitor the total power consumption of the target power consumption area within the set monitoring period based on the power consumption monitoring number.

[0080] When the electricity consumption exceeds the electricity consumption standard, an alarm message is generated in advance, which can effectively warn and take targeted measures in advance to avoid the actual electricity consumption exceeding the standard in the future.

[0081] In this step, we first start from the electricity consumption of the entire target electricity consumption area to detect whether the predicted electricity consumption exceeds the first electricity consumption standard. If it exceeds once, we continue to monitor whether the total electricity consumption within the next preset time period also exceeds the first electricity consumption standard. If it exceeds, we will further monitor each calculation unit of the target electricity consumption area. We can monitor the electricity consumption from a smaller angle and issue early warnings, make predictions and improvements from specific calculation units, and avoid actual exceeding the standard in the future.

[0082] 104. Monitor whether there is a power failure in the target power consumption area according to the detection data, and when there is a power failure, obtain the failure information of each computing unit in the target power consumption area.

[0083] The embodiment also monitors electricity safety, and determines whether there is a power failure in the target power consumption area by collecting detection data. If there is a power failure, the fault information of each computing unit is further obtained, and then it can be determined which computing unit has the fault, which can help with maintenance more quickly. The computing unit is a statistical unit that is further divided in the target power consumption area. For example, when the target power consumption area is a building, the computing unit can be a floor or each household.

[0084] Figure 2 FIG. 1 is a flow chart showing another method for monitoring and early warning electricity consumption based on the Internet of Things disclosed in an embodiment of the present invention. Figure 2 As shown, the electricity consumption monitoring and early warning method based on the Internet of Things includes:

[0085] 201. Collect historical electricity consumption data of the target electricity consumption area, obtain a preset time period range, and classify the historical electricity consumption data according to the time period range; respectively extract maximum data and minimum data from the historical electricity consumption data within each time period range. The maximum data includes the first maximum data and the second maximum data, and the minimum data includes the first minimum data and the second minimum data. Specifically, respectively extract the first maximum data and the first minimum data from the historical electricity consumption data within each time period range; and respectively extract the second maximum data and the second minimum data from the historical electricity consumption data within each time period range according to the division of each calculation unit.

[0086] The time period range of the embodiment is the starting time point and the ending time point of a time period. The historical power consumption data is sorted by cabinet according to the time period, and then the maximum power consumption and the minimum power consumption data corresponding to each time period can be counted.

[0087] 202. A first threshold is obtained by multiplying the first maximum data by a first coefficient, a second threshold is obtained by multiplying the first minimum data by a second coefficient, and a first power usage standard for the time period is generated based on the second threshold and the first threshold. A third threshold is obtained by multiplying the second maximum data by the first coefficient, a fourth threshold is obtained by multiplying the second minimum data by the second coefficient, and a second power usage standard for the time period is generated based on the fourth threshold and the third threshold.

[0088] In an embodiment, the first coefficient is greater than 1, and the second coefficient is less than 1.

[0089] 203. Collect power consumption data and detection data of each computing unit in the target power consumption area in real time, and count the power consumption of each computing unit within a preset time period according to the power consumption data and detection data.

[0090] 204. The total power consumption of the target power consumption area is saved each time it is counted, and the total power consumption of each time is added to the sum of all the total power consumptions previously counted to obtain the current total power consumption.

[0091] For example, the total power consumption corresponding to a certain period of time is counted three times, namely a1, a2 and a3. When a2 is counted, the current total power consumption is calculated as a1+a2. When a3 is counted, the current total power consumption is calculated as a1+a2+a3.

[0092] 205. Generate a power consumption increase trajectory based on the current total power consumption obtained after each total power consumption statistics.

[0093] 206. Generate predicted power consumption for each time node not counted in this time period according to the power consumption increase trajectory.

[0094] 207. Determine whether the predicted power consumption exceeds the power consumption standard, and generate an alarm message when the power consumption standard is exceeded.

[0095] In this step, the predicted electricity consumption is specifically compared with the first electricity consumption standard to determine whether the predicted electricity consumption is within the range of the first electricity consumption standard; when the predicted electricity consumption is outside the range of the first electricity consumption standard, the difference between the predicted electricity consumption and the first electricity consumption standard is calculated; when the difference is greater than a threshold value, it is determined that the predicted electricity consumption exceeds the first electricity consumption standard.

[0096] 208. Monitor whether there is a power failure in the target power consumption area according to the detection data, and when there is a power failure, obtain the failure information of each computing unit in the target power consumption area.

[0097] Specifically, the target power consumption area is divided into a number of computing units; the power consumption data and detection data of each computing unit are classified and stored, and the fault information of the computing unit is generated based on the detection data of each computing unit. Further, the fault information of the computing unit is generated based on the detection data of each computing unit, including: inputting the detection data of each unit into a preset fault detection model to output fault information, and the fault information includes a fault result and a fault type.

[0098] Figure 3 FIG. 1 is a flow chart showing another method for monitoring and early warning electricity consumption based on the Internet of Things disclosed in an embodiment of the present invention. Figure 3 As shown, the electricity consumption monitoring and early warning method based on the Internet of Things includes:

[0099] 301. In response to a data collection instruction, collect historical electricity consumption data of a target power consumption area within a set period, and generate electricity consumption standards for the target power consumption area at different time periods based on the historical electricity consumption data, wherein the electricity consumption standards for the target power consumption area at different time periods include a first electricity consumption standard for all computing units in the target power consumption area at different time periods and a second electricity consumption standard corresponding to different computing units in the target power consumption area at different time periods.

[0100] 302. Collect power consumption data and detection data of each computing unit in the target power consumption area in real time, count the power consumption of each computing unit within a preset time period at intervals based on the power consumption data and detection data, calculate the total power consumption of all computing units based on the power consumption, and generate the predicted power consumption in this time period based on the total power consumption.

[0101] 303. Determine whether the predicted power consumption exceeds the first power consumption standard, generate an alarm message when it exceeds the first power consumption standard, and when monitoring that the total power consumption of the target power consumption area within the next preset time period exceeds the first power consumption standard, monitor whether the power consumption of each calculation unit within the preset time period exceeds the corresponding second power consumption standard; when the predicted power consumption does not exceed the first power consumption standard, determine whether the number of times that the target power consumption area does not exceed the first power consumption standard within the preset time period is greater than the preset number, and when it is greater than the preset number, set the power consumption monitoring number of the target power consumption area, and monitor the total power consumption of the target power consumption area within the set monitoring period based on the power consumption monitoring number.

[0102] 304. Monitor whether there is a power failure in the target power consumption area according to the detection data, and when there is a power failure, divide the target power consumption area into a plurality of calculation units.

[0103] 305. Classify and store the power consumption data and detection data of each computing unit, and generate fault information of each computing unit based on the detection data of the computing unit.

[0104] Specifically, the detection data of each unit is input into a preset fault detection model to output fault information, wherein the fault information includes a fault result and a fault type.

[0105] 306. When there is no power failure, a number of detection data collected at different time nodes are used to generate a numerical trend graph in the order of the time nodes.

[0106] 307. Filter out historical electricity consumption data containing fault information from the collected historical electricity consumption data as comparison data.

[0107] 308. Generate a comparison numerical trend graph based on the comparison data in the order of time nodes, compare the numerical trend graph with the comparison numerical trend graph, and generate a fault warning when the trend similarity between the two exceeds a preset value.

[0108] The embodiment compares the numerical trend graph generated when there is no fault to predict whether there is a trend of fault, to give early warning of possible faults in the near future, to take preparatory measures in advance to avoid faults, and to solve the problem more quickly when a fault occurs.

[0109] Embodiment 2

[0110] See also Figure 4 , Figure 4 Schematic diagram of a power consumption monitoring and early warning device based on the Internet of Things disclosed in an embodiment of the present invention. Figure 4As shown, the power consumption monitoring and early warning device based on the Internet of Things may include: a data collection module 401, a power consumption prediction module 402, a power consumption alarm module 403 and a fault detection module 404. Among them, the data collection module 401: is used to collect the historical power consumption data of the target power consumption area within a set period in response to the data collection instruction, and generate the power consumption standard of the target power consumption area in different time periods based on the historical power consumption data, and the power consumption standard of the target power consumption area in different time periods includes the first power consumption standard of all calculation units in the target power consumption area in different time periods and the second power consumption standard corresponding to different calculation units in the target power consumption area in different time periods; the power consumption prediction module 402: is used to collect the power consumption data and detection data of each calculation unit in the target power consumption area in real time, and count the power consumption of each calculation unit within the preset time period according to the power consumption data and detection data, and calculate the total power consumption of all calculation units according to the power consumption, and generate the predicted power consumption in this time period based on the total power consumption; the power consumption alarm module 403: is used to judge Predict whether the power consumption exceeds the first power consumption standard, generate an alarm message when it exceeds the first power consumption standard, and when it is monitored that the total power consumption of the target power consumption area within the next preset time period exceeds the first power consumption standard, monitor whether the power consumption of each calculation unit within the preset time period exceeds the corresponding second power consumption standard; when the predicted power consumption does not exceed the first power consumption standard, determine whether the number of times that the target power consumption area does not exceed the first power consumption standard within the preset time period is greater than the preset number, and when it is greater than the preset number, set the power consumption monitoring number of the target power consumption area, and monitor the total power consumption of the target power consumption area within the set monitoring period based on the power consumption monitoring number; fault detection module 404: used to monitor whether there is a power fault in the target power consumption area according to the detection data, and when there is a power fault, obtain the fault information of each calculation unit in the target power consumption area.

[0111] In the data collection module 401, a preset time period range is obtained, and the historical power consumption data is classified according to the time period range and different calculation units; the first maximum data and the first minimum data are respectively extracted from the historical power consumption data within each time period range; and the second maximum data and the second minimum data are respectively extracted from the historical power consumption data within each time period range according to each calculation unit; a first threshold is obtained by multiplying the first maximum data by a first coefficient, a second threshold is obtained by multiplying the first minimum data by a second coefficient, and a first power consumption standard for the time period is generated based on the second threshold and the first threshold; a third threshold is obtained by multiplying the second maximum data by the first coefficient, a fourth threshold is obtained by multiplying the second minimum data by the second coefficient, and a second power consumption standard for the time period is generated based on the fourth threshold and the third threshold.

[0112] The power consumption prediction module 402 generates the predicted power consumption in this time period based on the power consumption, including: saving the total power consumption of the target power consumption area for each statistics, and adding the total power consumption for each statistics with the sum of all the total power consumption previously counted to obtain the current total power consumption; generating a power consumption increase trajectory with the current total power consumption obtained after each total power consumption statistics; and generating the predicted power consumption for each time node not counted in this time period based on the power consumption increase trajectory.

[0113] In the electricity usage alarm module 403, judging whether the predicted electricity usage exceeds the first electricity usage standard includes: comparing the predicted electricity usage with the first electricity usage standard to judge whether the predicted electricity usage is within the range of the first electricity usage standard; when the predicted electricity usage is outside the range of the first electricity usage standard, calculating the difference between the predicted electricity usage and the range of the first electricity usage standard; and determining that the predicted electricity usage exceeds the first electricity usage standard when the difference is greater than a threshold.

[0114] In the fault detection module 404, the fault information of each computing unit in the target power consumption area is obtained, including: dividing the target power consumption area into a plurality of computing units; classifying and storing the power consumption data and detection data of each computing unit, and generating the fault information of the computing unit based on the detection data of each computing unit. Further, the detection data of each unit is input into a preset fault detection model to output fault information, and the fault information includes the fault result and the fault type.

[0115] The embodiment may also include a fault warning module, which is used to generate a numerical trend graph for a number of detection data collected at different time nodes in the order of time nodes when there is no power failure; filter out historical power data containing fault information from the collected historical power data as comparison data; generate a comparison numerical trend graph based on the comparison data in the order of time nodes, compare the numerical trend graph and the comparison numerical trend graph, and generate a fault warning when the similarity of the trends of the two exceeds a preset value.

[0116] Embodiment 3

[0117] See also Figure 5 , Figure 5 Schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. The electronic device may be a computer, a server, etc. Of course, in certain circumstances, it may also be a smart device such as a mobile phone, a tablet computer, a monitoring terminal, and an image acquisition device with processing functions. Figure 5 As shown, the electronic device may include:

[0118] A memory 501 storing executable program codes;

[0119] a processor 502 coupled to the memory 501;

[0120] The processor 502 calls the executable program code stored in the memory 501 to execute part or all of the steps in the power consumption monitoring and early warning method based on the Internet of Things in the first embodiment.

[0121] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute part or all of the steps in the power consumption monitoring and early warning method based on the Internet of Things in Embodiment 1.

[0122] The embodiment of the present invention further discloses a computer program product, wherein when the computer program product is run on a computer, the computer is enabled to execute part or all of the steps in the electricity consumption monitoring and early warning method based on the Internet of Things in the first embodiment.

[0123] An embodiment of the present invention also discloses an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps in the electricity consumption monitoring and early warning method based on the Internet of Things in Example 1.

[0124] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0125] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0126] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0127] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the method described in each embodiment of the present invention.

[0128] In the embodiments provided by the present invention, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.

[0129] A person of ordinary skill in the art can understand that some or all of the steps in the various methods of the embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0130] The above is a detailed introduction to the electricity consumption monitoring and early warning method, device, electronic device and storage medium based on the Internet of Things disclosed in the embodiments of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A power consumption monitoring and early warning method based on the Internet of Things, It is characterized in that include: In response to the data collection instruction, historical power consumption data of the target power consumption area within a set period is collected, and power consumption standards of the target power consumption area at different time periods are generated based on the historical power consumption data, wherein the power consumption standards of the target power consumption area at different time periods include a first power consumption standard of all computing units in the target power consumption area at different time periods and a second power consumption standard corresponding to different computing units in the target power consumption area at different time periods; The power consumption data and detection data of each calculation unit in the target power consumption area are collected in real time, and the power consumption of each calculation unit within a preset time period is counted according to the power consumption data and the detection data, and the total power consumption of all calculation units is calculated according to the power consumption, and the total power consumption of the target power consumption area for each statistics is saved, and the total power consumption for each statistics is added to the sum of all the total power consumptions previously counted to obtain the current total power consumption; the current total power consumption obtained after each statistics of the total power consumption is used to generate a power consumption increase trajectory; Generate predicted power consumption for each time node not counted in this period according to the power consumption increase trajectory; The predicted power consumption is compared with the first power consumption standard to determine whether the predicted power consumption is within the range of the first power consumption standard; when the predicted power consumption is outside the range of the first power consumption standard, the difference between the predicted power consumption and the first power consumption standard is calculated; when the difference is greater than a threshold, the predicted power consumption is determined to exceed the first power consumption standard, and an alarm message is generated when the first power consumption standard is exceeded, and when it is monitored that the total power consumption of the target power consumption area exceeds the first power consumption standard within the next preset time period, the power consumption of each calculation unit within the preset time period is monitored to determine whether it exceeds the corresponding second power consumption standard; when the predicted power consumption does not exceed the first power consumption standard, it is determined that the number of times that the target power consumption area does not exceed the first power consumption standard within the preset time period is greater than the preset number, and when it is greater than the preset number, the power consumption monitoring number of the target power consumption area is set, and the total power consumption of the target power consumption area is monitored within the set monitoring period based on the power consumption monitoring number; Monitor whether there is a power failure in the target power consumption area according to the detection data, and when there is a power failure, obtain the fault information of each computing unit in the target power consumption area; When there is no power failure, a number of detection data collected at different time nodes are used to generate a numerical trend graph in the order of the time nodes; Filter out historical electricity consumption data containing fault information from the collected historical electricity consumption data as comparison data; generate a comparison numerical trend graph based on the comparison data in the order of time nodes, compare the numerical trend graph with the comparison numerical trend graph, and generate a fault warning when the trend similarity between the two exceeds a preset value.

2. The power consumption monitoring and early warning method according to claim 1, It is characterized in that Generating the power consumption standards of the target power consumption area in different time periods based on the historical power consumption data includes: Obtaining a preset time period range, and classifying the historical electricity consumption data according to the time period range and different calculation units; Extracting first maximum data and first minimum data from the historical power consumption data within each time period respectively; and extracting second maximum data and second minimum data from the historical power consumption data within each time period respectively according to each calculation unit; A first threshold is obtained by multiplying the first maximum data by a first coefficient, a second threshold is obtained by multiplying the first minimum data by a second coefficient, and a first power consumption standard for the time period is generated based on the second threshold and the first threshold; The third threshold is obtained by multiplying the second maximum data by the first coefficient, the fourth threshold is obtained by multiplying the second minimum data by the second coefficient, and the second power consumption standard for the time period is generated based on the fourth threshold and the third threshold.

3. The power consumption monitoring and early warning method according to claim 1, It is characterized in that Obtain the fault information of each computing unit in the target power consumption area, including: Divide the target electricity consumption area into a number of calculation units; The power consumption data and detection data of each computing unit are classified and stored, and the fault information of each computing unit is generated based on the detection data of the computing unit.

4. The power consumption monitoring and early warning method according to claim 3, It is characterized in that Generate fault information of each computing unit based on the detection data of the computing unit, including: The detection data of each unit is input into a preset fault detection model to output fault information, which includes a fault result and a fault type.

5. An electricity consumption monitoring and early warning device based on the Internet of Things, It is characterized in that include: A data collection module: used to collect historical power consumption data of a target power consumption area within a set period in response to a data collection instruction, and generate power consumption standards of the target power consumption area at different time periods based on the historical power consumption data, wherein the power consumption standards of the target power consumption area at different time periods include a first power consumption standard of all computing units in the target power consumption area at different time periods and a second power consumption standard corresponding to different computing units in the target power consumption area at different time periods; Power consumption prediction module: used to collect power consumption data and detection data of each calculation unit in the target power consumption area in real time, count the power consumption of each calculation unit within a preset time period according to the power consumption data and detection data, calculate the total power consumption of all calculation units according to the power consumption, save the total power consumption of the target power consumption area for each statistics, and add the total power consumption of each statistics to the sum of all the total power consumption previously counted to obtain the current total power consumption; generate the power consumption increase trajectory with the current total power consumption obtained after each statistics of total power consumption; Generate predicted power consumption for each time node not counted in this period according to the power consumption increase trajectory; Electricity consumption alarm module: used to compare the predicted electricity consumption with the first electricity consumption standard to determine whether the predicted electricity consumption is within the range of the first electricity consumption standard; when the predicted electricity consumption is outside the range of the first electricity consumption standard, calculate the difference between the predicted electricity consumption and the range of the first electricity consumption standard; when the difference is greater than a threshold, it is determined that the predicted electricity consumption exceeds the first electricity consumption standard, and an alarm message is generated when the first electricity consumption standard is exceeded, and when it is monitored that the total electricity consumption of the target electricity consumption area within the next preset time period exceeds the first electricity consumption standard, monitor whether the electricity consumption of each calculation unit within the preset time period exceeds the corresponding second electricity consumption standard; when the predicted electricity consumption does not exceed the first electricity consumption standard, determine that the number of times that the target electricity consumption area does not exceed the first electricity consumption standard within the preset time period is greater than the preset number, and when it is greater than the preset number, set the number of electricity consumption monitoring times for the target electricity consumption area, and monitor the total electricity consumption of the target electricity consumption area within the set monitoring period based on the electricity consumption monitoring times; Fault detection module: used to monitor whether there is a power failure in the target power consumption area according to the detection data, and when there is a power failure, obtain the fault information of each computing unit in the target power consumption area; The fault warning module is used to generate a numerical trend graph of a number of detection data collected at different time nodes according to the order of time nodes when there is no power failure; Filter out historical electricity consumption data containing fault information from the collected historical electricity consumption data as comparison data; generate a comparison numerical trend graph based on the comparison data in the order of time nodes, compare the numerical trend graph with the comparison numerical trend graph, and generate a fault warning when the trend similarity between the two exceeds a preset value.

6. An electronic device, It is characterized in that include: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the electricity consumption monitoring and early warning method based on the Internet of Things as described in any one of claims 1 to 4.

7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program enables a computer to execute the electricity consumption monitoring and early warning method based on the Internet of Things as described in any one of claims 1 to 4.