Power consumption behavior safety analysis method, system and storage medium based on edge computing

Through edge computing technology, the electricity consumption data is analyzed, and the electricity consumption behavior and peak hours of electrical appliances are identified, which solves the problem of abnormal electricity use of electrical appliances in the existing technology in the non-peak period, and improves the accuracy of electricity safety analysis and Intelligence.

CN118484740BActive Publication Date: 2024-11-19QINGDAO SHIZE ELECTRONIC METER CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410656260.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-11-19
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

The existing safety analysis methods for electricity use behavior lack analysis of common time periods of electrical appliances, which leads to the fact that abnormal electricity is not judged during the non-electrical use period when the electrical appliance is still working normally, and thus there is a problem of energy waste.

Method used

Using the safety analysis method of electricity consumption behavior based on edge computing, by obtaining historical electricity consumption data, dividing it into working days and rest days, calculating the moving average, establishing a electricity consumption line chart, analyzing the equipment type and peak time, and judging the power consumption of the equipment behavior, output abnormal power usage information.

Benefits of technology

It improves the intelligence and accuracy of electricity safety analysis, can promptly judge the abnormal electricity use of electrical appliances during non-peak hours, and reduces energy waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118484740B_ABST
    Figure CN118484740B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system and storage medium for analyzing the safety of electricity usage behavior based on edge computing, and relates to the technical field of analyzing the safety of electricity usage behavior, including obtaining multiple groups of historical electricity usage data, dividing the historical electricity usage data, and outputting specific electricity usage groups; calculating the historical electricity usage data and outputting a moving average; analyzing the moving average and outputting the device type and peak time; obtaining the current time and real-time electricity usage, analyzing and calculating the real-time electricity usage based on the current time, peak time and device type, and outputting abnormal electricity usage information based on the calculation results; the present invention is used to solve the problem in the prior art that due to the lack of analysis of the commonly used time periods of electrical appliances, if the electrical appliances are still working normally during the time period when the electrical appliances are not in use, it is impossible to determine whether there is an abnormality, thereby wasting energy.
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 usage behavior safety analysis, and specifically to an electricity usage behavior safety analysis method, system and storage medium based on edge computing. Background Art

[0002] Electricity usage safety analysis is a process of evaluating and analyzing the electricity usage behavior of individuals or organizations; it aims to identify potential electricity usage risks and safety hazards, and provide corresponding solutions and suggestions to ensure the safe operation of the power system and the safety of users.

[0003] Existing improvements for safety analysis of electricity usage behavior usually analyze the electricity consumption of electrical appliances, understand the electricity usage habits of electrical appliances, and judge whether the electricity usage behavior is safe based on the electricity usage habits of electrical appliances. For example, in a Chinese patent with publication number CN112785338A, a user electricity usage behavior analysis system is disclosed. This solution is to analyze the electricity information of electrical appliances to obtain the electricity usage behavior habits of electrical appliances, and then analyze the electricity consumption of electrical appliances based on the electricity usage behavior habits to obtain final judgment information. However, the existing improvement method lacks analysis of the commonly used time periods of electrical appliances. This will result in that if the electrical appliances are still working normally during the time period when the electrical appliances are not in use, it is impossible to judge whether there is abnormal electricity usage. In view of this, it is necessary to improve the existing safety analysis of electricity usage behavior. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems in the prior art to a certain extent. By improving the safety analysis of electricity usage behavior, it is used to solve the problem in the prior art that due to the lack of analysis of the commonly used time periods of electrical appliances, if the electrical appliances are still working normally during the time periods when the electrical appliances are not in use, it is impossible to determine whether there is an abnormality, thereby wasting energy.

[0005] To achieve the above objectives, in a first aspect, the present invention provides a method for analyzing power consumption safety based on edge computing, comprising:

[0006] Obtain multiple groups of historical electricity consumption data, divide the historical electricity consumption data based on date classification, and output specific electricity consumption groups;

[0007] Calculate historical power consumption data based on specific power consumption groups and output moving averages; analyze the moving averages and output equipment types and peak times based on the analysis results;

[0008] Get the current time and real-time power consumption, analyze and calculate the real-time power consumption based on the current time, peak time and device type, and output abnormal power consumption information based on the calculation results.

[0009] Furthermore, the specific power consumption grouping includes a working power consumption grouping and a rest power consumption grouping, the date classification includes a working day and a rest day, a plurality of groups of historical power consumption data are obtained, the historical power consumption data includes a date, the historical power consumption data is divided based on the date, and the output of the specific power consumption grouping includes:

[0010] Using edge devices to obtain multiple sets of historical electricity consumption data, the historical electricity consumption data also includes electricity consumption in each time period of a day in units of one hour;

[0011] Divide the electricity consumption corresponding to all working days into the same group and mark it as the working electricity consumption group;

[0012] The electricity consumption corresponding to all rest days is divided into the same group and marked as the rest electricity consumption group.

[0013] Furthermore, the historical power consumption data is calculated based on the specific power consumption grouping, and a moving average is output; the moving average is analyzed, and the device type and peak time are output based on the analysis results, including:

[0014] Performing power consumption behavior analysis on the working power consumption groups, the power consumption behavior analysis includes:

[0015] Calculate the average value of electricity consumption in the same time period of all dates, marked as the historical average value; the average value of the historical average values ​​of two adjacent time periods, marked as the moving average value;

[0016] Sort the moving averages in ascending order to obtain a moving sequence; number the moving sequence in ascending order from left to right to obtain a sequence number for each moving average; number the moving averages in time, and the specific time numbering method is: calculate the sum of the minimum time and the maximum time in the two time periods of the moving average, and mark it as the corresponding time; set the time number of each moving average to the corresponding time;

[0017] A line graph is created with the vertical axis being the size of the moving average and the horizontal axis being the sequence number of the moving average. All the moving averages and sequence numbers are displayed and connected in the line graph to obtain an electricity consumption line graph.

[0018] The power consumption line is divided using a judgment straight line of the expression Y1=n1, where n1 is the first power consumption threshold, and Y1 represents the ordinate in the line graph;

[0019] Determine whether there is an intersection between the power consumption folding line and the judgment straight line. If there is no intersection, mark the corresponding edge device as a low-consumption working device.

[0020] When the power consumption curve intersects the judgment line, the moving average value below the judgment line is marked as a low power value, and the moving average value above the judgment line is marked as a high power value.

[0021] Furthermore, the electricity consumption behavior analysis also includes:

[0022] Perform binary linear function fitting on the numbers and sizes corresponding to the low power values ​​in the line graph, and output the slope k1 corresponding to the fitting function;

[0023] Perform binary linear function fitting on the numbers and sizes corresponding to the high-voltage values ​​in the line graph, and output the slope k2 corresponding to the fitting function;

[0024] Mark the first multiple of k1 as the cutoff slope, compare k2 with the cutoff slope, and when k2 is less than or equal to the cutoff slope, mark the corresponding edge device as a working power-consuming device and output time analysis information;

[0025] When k2 is greater than the cutoff slope, the corresponding edge device is marked as a high-consumption device and the time analysis information is output.

[0026] Furthermore, the electricity consumption behavior analysis also includes:

[0027] When the time analysis information is received, the smallest number and the largest number in the high-voltage value are obtained, and the smallest number and the largest number are calculated using the time calculation formula, and two time points are output. The time calculation formula is configured as Ta=(A÷2)±1; wherein Ta is the time point, A is A1 or A2, wherein A1 is the smallest number and A2 is the largest number; when A is A1, the positive and negative signs in the formula are negative, and the calculation result is marked as the start time; when A is A2, the positive and negative signs in the formula are positive, and the calculation result is marked as the end time;

[0028] The start time to the end time is marked as the peak time, and the peak time is output to the corresponding work-consuming equipment or work-high-consuming equipment.

[0029] Furthermore, the historical power consumption data is calculated based on the specific power consumption grouping, and a moving average is output; the moving average is analyzed, and the device type and peak time are output based on the analysis result, which also includes:

[0030] The power consumption behavior analysis is performed on the rest power consumption groups. The power consumption behavior analysis also includes:

[0031] Calculate the average value of electricity consumption in the same time period of all dates, marked as the historical average value; the average value of the historical average values ​​of two adjacent time periods, marked as the moving average value;

[0032] Sort the moving averages in ascending order to obtain a moving sequence; number the moving sequence in ascending order from left to right to obtain a sequence number for each moving average; number the moving averages in time, and the specific time numbering method is: calculate the sum of the minimum time and the maximum time in the two time periods of the moving average, and mark it as the corresponding time; set the time number of each moving average to the corresponding time;

[0033] A line graph is created with the vertical axis being the size of the moving average and the horizontal axis being the sequence number of the moving average. All the moving averages and sequence numbers are displayed and connected in the line graph to obtain an electricity consumption line graph.

[0034] The power consumption line is divided using a judgment straight line of the expression Y2=n2, where n2 is the second power consumption threshold, and Y2 represents the ordinate in the line graph;

[0035] Determine whether there is an intersection between the power consumption line and the judgment line. If there is no intersection, mark the corresponding edge device as a resting low-consumption device.

[0036] When the power consumption line intersects with the judgment line, the moving average value below the judgment line is marked as a low power value, and the moving average value above the judgment line is marked as a high power value;

[0037] Perform binary linear function fitting on the numbers and sizes corresponding to the low power values ​​in the line graph, and output the slope k3 corresponding to the fitting function;

[0038] Perform binary linear function fitting on the numbers and sizes corresponding to the high-voltage values ​​in the line graph, and output the slope k4 corresponding to the fitting function;

[0039] Mark the first multiple of k3 as the cutoff slope, compare k4 with the cutoff slope, and when k4 is less than or equal to the cutoff slope, mark the corresponding edge device as a resting medium-consumption device and output time analysis information;

[0040] When k4 is greater than the cutoff slope, the corresponding edge device is marked as a resting high-consumption device, and the time analysis information is output;

[0041] When the time analysis information is received, the smallest number and the largest number in the high-voltage value are obtained, and the smallest number and the largest number are calculated using the time calculation formula, and two time points are output. The time calculation formula is configured as Tb=(B÷2)±1; wherein Tb is the time point, B is B1 or B2, wherein B1 is the smallest number and B2 is the largest number; when B is B1, the positive and negative signs in the formula are negative, and the calculation result is marked as the start time; when B is B2, the positive and negative signs in the formula are positive, and the calculation result is marked as the end time;

[0042] Mark the start time to the end time as peak time, and output the peak time to the corresponding rest medium-consumption equipment or rest high-consumption equipment;

[0043] The equipment types include low-consumption equipment for work, medium-consumption equipment for work, high-consumption equipment for work, low-consumption equipment for rest, medium-consumption equipment for rest and high-consumption equipment for rest.

[0044] Furthermore, the current time and real-time power consumption are obtained, and the real-time power consumption is analyzed and calculated based on the current time, peak time and device type, and abnormal power consumption information is output based on the calculation result, including:

[0045] Acquire the current time, the current time also includes date classification, when the working day is acquired, perform work monitoring processing, the work monitoring processing includes: when the device type is a working low-consumption device, determine whether the real-time power consumption is greater than the first power consumption threshold, when the determination result is no, do not process; when the determination result is yes, output abnormal power consumption information;

[0046] When the device type is a medium-power consumption device or a high-power consumption device, determine whether the real-time power consumption is greater than the first power consumption threshold. When the judgment result is no, do not process it; when the judgment result is yes, determine whether the current time is within the peak time. When the judgment result is yes, do not process it; when the judgment result is no, output abnormal power consumption information.

[0047] Further, obtaining the current time and real-time power consumption, analyzing and calculating the real-time power consumption based on the current time, peak time and device type, and outputting abnormal power consumption information based on the calculation result also includes:

[0048] When a rest day is obtained, a rest monitoring process is performed, wherein the rest monitoring process includes: when the device type is a rest low-consumption device, judging whether the real-time power consumption is greater than a second power consumption threshold, and when the judgment result is no, no processing is performed; when the judgment result is yes, outputting abnormal power consumption information;

[0049] When the device type is a medium-consumption device at rest or a high-consumption device at rest, determine whether the real-time power consumption is greater than the second power consumption threshold. When the judgment result is no, do not process it; when the judgment result is yes, determine whether the current time is within the peak time. When the judgment result is yes, do not process it; when the judgment result is no, output abnormal power consumption information.

[0050] In a second aspect, the present invention further provides an edge computing-based electricity consumption behavior safety analysis system, including a device classification module and an electricity consumption monitoring module, wherein the device classification module is used to obtain multiple groups of historical electricity consumption data, classify the historical electricity consumption data based on date classification, and output specific electricity consumption groups;

[0051] It is also used to calculate historical power consumption data based on specific power consumption groups and output a moving average; analyze the moving average and output the device type and peak time based on the analysis results;

[0052] The power consumption monitoring module is used to obtain the current time and real-time power consumption, analyze and calculate the real-time power consumption based on the current time, peak time and equipment type, and output power consumption judgment information based on the calculation results.

[0053] In a third aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method described above are executed.

[0054] Beneficial effects of the present invention: The present invention obtains multiple groups of historical electricity consumption data and divides them into working days and rest days, analyzes the electricity consumption on working days and rest days separately, outputs the device type based on the analysis result, and performs abnormal monitoring based on the device type; the advantage of this is that for users with obvious differences in electricity consumption on working days and rest days, two corresponding monitoring methods are provided, thereby improving the accuracy of abnormal electricity consumption monitoring;

[0055] The present invention also calculates the moving average of different time periods, establishes a power consumption line in the line graph, analyzes the power consumption line, outputs the peak time of the edge device based on the analysis result, and includes the peak time in the analysis range in subsequent monitoring; the advantage of this is that when an appliance is forgotten to be turned off, the hourly power consumption of the appliance is normal at this time, but it is not during the peak time, and it can be judged in time that the appliance monitored by the edge device has abnormal power consumption, thereby improving the intelligence of power safety analysis.

[0056] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 is a functional block diagram of the system of the present invention;

[0058] Figure 2 is a flow chart of the steps of the method of the present invention;

[0059] Figure 3 It is a schematic diagram of three types of electricity consumption broken lines in the broken line graph of the present invention. DETAILED DESCRIPTION

[0060] 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.

[0061] Example 1

[0062] The present invention provides a power consumption behavior safety analysis system based on edge computing, see Figure 1 As shown, it includes a device division module and a power consumption monitoring module.

[0063] The equipment classification module is used to obtain multiple groups of historical electricity consumption data, classify the historical electricity consumption data based on date classification, and output specific electricity consumption groups; it is also used to calculate the historical electricity consumption data based on specific electricity consumption groups and output the moving average; analyze the moving average, and output the equipment type and peak time based on the analysis results.

[0064] The device partitioning module is configured with a date grouping strategy, which includes:

[0065] Multiple sets of historical electricity consumption data are obtained by using edge devices, and the historical electricity consumption data also includes electricity consumption in each time period of a day in units of one hour. The edge device is specifically a smart meter in the prior art.

[0066] It should be noted that, taking one hour as a unit, the electricity consumption in each time period of a day is specifically the electricity consumption in the time period from 0 o'clock to 1 o'clock, the electricity consumption in the time period from 1 o'clock to 2 o'clock... and so on, totaling the electricity consumption in 24 time periods of a day.

[0067] The electricity consumption corresponding to all working days is divided into the same group, which is marked as the working electricity consumption group; the electricity consumption corresponding to all rest days is divided into the same group, which is marked as the rest electricity consumption group.

[0068] It should be noted that for employee users who go to get off work and get off work normally, as well as company users who implement a normal commuting mechanism for employees, there is an obvious difference in electricity consumption between weekends and weekdays. Therefore, it is necessary to classify and analyze the electricity consumption on weekdays and weekends, divide them into work electricity consumption groups and rest electricity consumption groups, and analyze the electricity consumption behavior of each group separately.

[0069] The device segmentation module is also configured with behavior analysis strategies, which include:

[0070] Conduct electricity consumption behavior analysis on working electricity groups, including:

[0071] Calculate the average value of electricity consumption in the same time period of all dates, marked as the historical average value; the average value of the historical average values ​​of two adjacent time periods is marked as the moving average value.

[0072] Sort the moving averages in ascending order to obtain a moving sequence; number the moving sequence in ascending order from left to right to obtain a sequential number for each moving average; perform time numbering on the moving averages, and the specific time numbering method is: calculate the sum of the minimum time and the maximum time in the two time periods of the moving average, and mark it as the corresponding time; set the time number of each moving average to the corresponding time.

[0073] In the specific implementation, a possible situation is: calculate the moving average of the time period from 14:00 to 15:00 and the time period from 15:00 to 16:00, and the calculated moving average is 3KW / h. Then the numbering method of 3KW / h is: calculate that the two time periods of 3KW / h are respectively the time period from 14:00 to 15:00 and the time period from 15:00 to 16:00, where the smallest time is 14:00 and the largest time is 16:00. Calculate the sum of 14 and 16 to get 30, and set the time number of 3KW / h to 30.

[0074] A line graph is created with the vertical axis being the size of the moving average and the horizontal axis being the sequential number of the moving average. All moving averages and sequential numbers are displayed and connected in the line graph to obtain an electricity consumption line.

[0075] The power consumption line is divided using a judgment straight line expressed as Y1=n1, where n1 is the first power consumption threshold and Y1 represents the vertical coordinate in the line graph.

[0076] In the specific implementation, n1 is set to 2. The value of n1 is based on the average hourly electricity consumption of ordinary residential users rounded up under big data analysis; please refer to Figure 3 As shown, Figure 3 The figure shows a line graph obtained by analyzing and calculating the working power consumption obtained by three different edge devices. The T1 line indicates that the user's power consumption is always low, and the edge device corresponding to T1 is marked as a low-consumption working device; T2 and T3 indicate that the power consumption has increased significantly since a certain moment. Through subsequent analysis, the edge device corresponding to T2 is marked as a medium-consumption working device, and the edge device corresponding to T3 is marked as a high-consumption working device.

[0077] It is determined whether there is an intersection between the power consumption curve and the judgment straight line. If there is no intersection, the corresponding edge device is marked as a low-consumption working device.

[0078] It should be noted that there is no peak time for low-consumption devices, so low-consumption devices do not output peak time.

[0079] When the power consumption curve intersects the judgment line, the moving average value below the judgment line is marked as a low power value, and the moving average value above the judgment line is marked as a high power value.

[0080] A binary linear function is fitted to the number and size corresponding to the low power value in the line graph, and the slope k1 corresponding to the fitting function is output.

[0081] Perform a binary linear function fit on the numbers and sizes corresponding to the high-voltage values ​​in the line graph, and output the slope k2 corresponding to the fitting function.

[0082] The first multiple of k1 is marked as the cutoff slope, and k2 is compared with the cutoff slope. When k2 is less than or equal to the cutoff slope, the corresponding edge device is marked as a working power-consuming device, and the time analysis information is output.

[0083] In a specific implementation, the first multiple is set to 1.5 times, and the setting of the first multiple is used to determine that k2 is significantly greater than k1.

[0084] When k2 is greater than the cutoff slope, the corresponding edge device is marked as a high-consumption device and the time analysis information is output.

[0085] When the time analysis information is received, the smallest number and the largest number in the high-voltage value are obtained, and the smallest time number and the largest time number are calculated using the time calculation formula, and two time points are output. The time calculation formula is configured as Ta = (A÷2) ±1; where Ta is the time point, A is A1 or A2, where A1 is the smallest number and A2 is the largest number; when A is A1, the positive and negative signs in the formula are negative, and the calculation result is marked as the start time; when A is A2, the positive and negative signs in the formula are positive, and the calculation result is marked as the end time.

[0086] by Figure 3 For example, Figure 3 T2 in the figure intersects the judgment line when the sequence number is 16. If the time number corresponding to the sequence number 16 is 38 and the time number corresponding to the sequence number 23 is 46, then A1=38, A2=46. Using the time calculation formula, the starting time=(38÷2)-1=18; the ending time=(46÷2)+1=24. This finally indicates that the power consumption of the user corresponding to T2 is greater than or equal to 2KW / h per hour between 18:00 and 24:00, and is less than 2KW / h per hour between 0:00 and 18:00.

[0087] The start time to the end time is marked as the peak time, and the peak time is output to the corresponding work-consuming equipment or work-high-consuming equipment.

[0088] The power consumption behavior analysis is performed on the rest power consumption groups. The power consumption behavior analysis also includes:

[0089] Calculate the average value of electricity consumption in the same time period of all dates, marked as the historical average value; the average value of the historical average values ​​of two adjacent time periods is marked as the moving average value.

[0090] Sort the moving averages in ascending order to obtain a moving sequence; number the moving sequence in ascending order from left to right to obtain a sequential number for each moving average; perform time numbering on the moving averages, and the specific time numbering method is: calculate the sum of the minimum time and the maximum time in the two time periods of the moving average, and mark it as the corresponding time; set the time number of each moving average to the corresponding time.

[0091] A line graph is created with the vertical axis being the size of the moving average and the horizontal axis being the sequential number of the moving average. All moving averages and sequential numbers are displayed and connected in the line graph to obtain an electricity consumption line.

[0092] The power consumption line is divided using the judgment line of the expression Y2=n2, where n2 is the second power consumption threshold, and Y2 represents the vertical coordinate in the line graph. In specific implementation, the value of n2 is based on the average hourly power consumption of ordinary residential users rounded up under big data analysis.

[0093] Determine whether there is an intersection between the power consumption curve and the judgment straight line. If there is no intersection, mark the corresponding edge device as a resting low-consumption device.

[0094] When the power consumption line intersects with the judgment line, the moving average value below the judgment line is marked as a low power value, and the moving average value above the judgment line is marked as a high power value;

[0095] Perform binary linear function fitting on the numbers and sizes corresponding to the low power values ​​in the line graph, and output the slope k3 corresponding to the fitting function;

[0096] Perform binary linear function fitting on the numbers and sizes corresponding to the high-voltage values ​​in the line graph, and output the slope k4 corresponding to the fitting function;

[0097] Mark the first multiple of k3 as the cutoff slope, compare k4 with the cutoff slope, and when k4 is less than or equal to the cutoff slope, mark the corresponding edge device as a resting medium-consumption device and output time analysis information;

[0098] When k4 is greater than the cutoff slope, the corresponding edge device is marked as a resting high-consumption device and the time analysis information is output.

[0099] When the time analysis information is received, the smallest number and the largest number in the high-voltage value are obtained, and the smallest time number and the largest time number are calculated using the time calculation formula, and two time points are output. The time calculation formula is configured as Tb = (B ÷ 2) ± 1; where Tb is the time point, B takes B1 or B2, where B1 is the smallest number and B2 is the largest number; when B takes B1, the positive and negative signs in the formula are negative, and the calculation result is marked as the start time; when B takes B2, the positive and negative signs in the formula are positive, and the calculation result is marked as the end time.

[0100] The start time to the end time are marked as peak time, and the peak time is output to the corresponding rest medium-consumption equipment or rest high-consumption equipment.

[0101] Equipment types include low-consumption working equipment, medium-consumption working equipment, high-consumption working equipment, low-consumption resting equipment, medium-consumption resting equipment, and high-consumption resting equipment.

[0102] The power consumption monitoring module is used to obtain the current time and real-time power consumption, analyze and calculate the real-time power consumption based on the current time, peak time and device type, and output power consumption judgment information based on the calculation results;

[0103] The power consumption monitoring module is configured with power consumption monitoring strategies, which include:

[0104] Get the current time, which also includes the date classification. When a working day is obtained, perform work monitoring processing. The work monitoring processing includes: when the device type is a low-consumption working device, determine whether the real-time power consumption is greater than the first power consumption threshold. When the judgment result is no, do not process it; when the judgment result is yes, output abnormal power consumption information.

[0105] When the device type is a medium-power consumption device or a high-power consumption device, determine whether the real-time power consumption is greater than the first power consumption threshold. When the judgment result is no, do not process it; when the judgment result is yes, determine whether the current time is within the peak time. When the judgment result is yes, do not process it; when the judgment result is no, output abnormal power consumption information.

[0106] When a rest day is obtained, rest monitoring processing is performed, and the rest monitoring processing includes: when the device type is a rest low-consumption device, judging whether the real-time power consumption is greater than the second power consumption threshold, when the judgment result is no, no processing is performed; when the judgment result is yes, outputting abnormal power consumption information.

[0107] When the device type is a medium-consumption device at rest or a high-consumption device at rest, determine whether the real-time power consumption is greater than the second power consumption threshold. When the judgment result is no, do not process it; when the judgment result is yes, determine whether the current time is within the peak time. When the judgment result is yes, do not process it; when the judgment result is no, output abnormal power consumption information.

[0108] Example 2

[0109] See also Figure 2 As shown, the present invention also provides a power consumption behavior safety analysis method based on edge computing, including:

[0110] Step S1, obtaining multiple groups of historical electricity consumption data, dividing the historical electricity consumption data based on date classification, and outputting specific electricity consumption groups; the specific electricity consumption groups include working electricity consumption groups and rest electricity consumption groups, and the date classification includes working days and rest days. Step S1 also includes the following sub-steps:

[0111] Step S101, using edge devices to obtain multiple sets of historical electricity consumption data, the historical electricity consumption data also includes electricity consumption in each time period of a day in units of one hour.

[0112] Step S102: The power consumption corresponding to all working days is divided into the same group, which is marked as the working power consumption group; and the power consumption corresponding to all rest days is divided into the same group, which is marked as the rest power consumption group.

[0113] Step S2, calculating the historical power consumption data based on the specific power consumption grouping and outputting a moving average; analyzing the moving average and outputting the equipment type and peak time based on the analysis result.

[0114] Step S2 also includes the following sub-steps:

[0115] Step S201, performing power consumption behavior analysis on the working power consumption groups, the power consumption behavior analysis includes:

[0116] Calculate the average value of electricity consumption in the same time period of all dates, marked as the historical average value; the average value of the historical average values ​​of two adjacent time periods is marked as the moving average value.

[0117] Sort the moving averages in ascending order to obtain a moving sequence; number the moving sequence in ascending order from left to right to obtain a sequential number for each moving average; perform time numbering on the moving averages, and the specific time numbering method is: calculate the sum of the minimum time and the maximum time in the two time periods of the moving average, and mark it as the corresponding time; set the time number of each moving average to the corresponding time.

[0118] A line graph is created with the vertical axis being the size of the moving average and the horizontal axis being the sequential number of the moving average. All moving averages and sequential numbers are displayed and connected in the line graph to obtain an electricity consumption line.

[0119] The power consumption line is divided using a judgment straight line expressed as Y1=n1, where n1 is the first power consumption threshold and Y1 represents the vertical coordinate in the line graph.

[0120] It is determined whether there is an intersection between the power consumption curve and the judgment straight line. If there is no intersection, the corresponding edge device is marked as a low-consumption working device.

[0121] When the power consumption curve intersects the judgment line, the moving average value below the judgment line is marked as a low power value, and the moving average value above the judgment line is marked as a high power value.

[0122] A binary linear function is fitted to the number and size corresponding to the low power value in the line graph, and the slope k1 corresponding to the fitting function is output.

[0123] Perform a binary linear function fit on the numbers and sizes corresponding to the high-voltage values ​​in the line graph, and output the slope k2 corresponding to the fitting function.

[0124] The first multiple of k1 is marked as the cutoff slope, and k2 is compared with the cutoff slope. When k2 is less than or equal to the cutoff slope, the corresponding edge device is marked as a working power-consuming device, and the time analysis information is output.

[0125] When k2 is greater than the cutoff slope, the corresponding edge device is marked as a high-consumption device and the time analysis information is output.

[0126] When the time analysis information is received, the smallest number and the largest number in the high-voltage value are obtained, and the smallest number and the largest number are calculated using the time calculation formula, and two time points are output. The time calculation formula is configured as Ta = (A÷2) ±1; where Ta is the time point, A takes A1 or A2, where A1 is the smallest number and A2 is the largest number; when A takes A1, the positive and negative signs in the formula are negative, and the calculation result is marked as the start time; when A takes A2, the positive and negative signs in the formula are positive, and the calculation result is marked as the end time.

[0127] The start time to the end time is marked as the peak time, and the peak time is output to the corresponding work-consuming equipment or work-high-consuming equipment.

[0128] Step S202, analyzing the power consumption behavior of the rest power consumption group, the power consumption behavior analysis also includes:

[0129] Calculate the average value of electricity consumption in the same time period of all dates, marked as the historical average value; the average value of the historical average values ​​of two adjacent time periods is marked as the moving average value.

[0130] Sort the moving averages in ascending order to obtain a moving sequence; number the moving sequence in ascending order from left to right to obtain a sequential number for each moving average; perform time numbering on the moving averages, and the specific time numbering method is: calculate the sum of the minimum time and the maximum time in the two time periods of the moving average, and mark it as the corresponding time; set the time number of each moving average to the corresponding time.

[0131] A line graph is created with the vertical axis being the size of the moving average and the horizontal axis being the sequential number of the moving average. All moving averages and sequential numbers are displayed and connected in the line graph to obtain an electricity consumption line.

[0132] The power consumption line is divided using a judgment straight line of the expression Y2=n2, where n2 is the second power consumption threshold and Y2 represents the vertical coordinate in the line graph.

[0133] Determine whether there is an intersection between the power consumption curve and the judgment straight line. If there is no intersection, mark the corresponding edge device as a resting low-consumption device.

[0134] When the power consumption curve intersects the judgment line, the moving average value below the judgment line is marked as a low power value, and the moving average value above the judgment line is marked as a high power value.

[0135] A binary linear function is fitted to the number and size corresponding to the low power value in the line graph, and the slope k3 corresponding to the fitting function is output.

[0136] A binary linear function is fitted to the numbers and sizes corresponding to the high-voltage values ​​in the line graph, and the slope k4 corresponding to the fitting function is output.

[0137] Mark the first multiple of k3 as the cutoff slope, compare k4 with the cutoff slope, and when k4 is less than or equal to the cutoff slope, mark the corresponding edge device as a resting medium-consumption device and output time analysis information.

[0138] When k4 is greater than the cutoff slope, the corresponding edge device is marked as a resting high-consumption device and the time analysis information is output.

[0139] When the time analysis information is received, the smallest number and the largest number in the high-voltage value are obtained, and the smallest number and the largest number are calculated using the time calculation formula, and two time points are output. The time calculation formula is configured as Tb = (B ÷ 2) ± 1; wherein Tb is the time point, B takes B1 or B2, wherein B1 is the smallest number and B2 is the largest number; when B takes B1, the positive and negative signs in the formula are taken as negative, and the calculation result is marked as the start time; when B takes B2, the positive and negative signs in the formula are taken as positive, and the calculation result is marked as the end time.

[0140] The start time to the end time are marked as peak time, and the peak time is output to the corresponding rest medium-consumption equipment or rest high-consumption equipment.

[0141] Equipment types include low-consumption working equipment, medium-consumption working equipment, high-consumption working equipment, low-consumption resting equipment, medium-consumption resting equipment, and high-consumption resting equipment.

[0142] Step S3, obtain the current time and real-time power consumption, analyze and calculate the real-time power consumption based on the current time, peak time and device type, and output abnormal power consumption information based on the calculation result. Step S3 also includes the following sub-steps: Step S301, obtain the current time, the current time also includes the date classification, when the working day is obtained, perform work monitoring processing, the work monitoring processing includes: when the device type is a working low-consumption device, determine whether the real-time power consumption is greater than the first power consumption threshold, when the judgment result is no, do not process; when the judgment result is yes, output abnormal power consumption information.

[0143] Step S302, when the device type is a medium-power consumption device or a high-power consumption device, determine whether the real-time power consumption is greater than the first power consumption threshold. When the judgment result is no, do not process it; when the judgment result is yes, determine whether the current time is within the peak time. When the judgment result is yes, do not process it; when the judgment result is no, output abnormal power consumption information.

[0144] Step S303, when a rest day is obtained, perform rest monitoring processing, which includes: when the device type is a rest low-consumption device, determine whether the real-time power consumption is greater than the second power consumption threshold, and when the judgment result is no, do not process; when the judgment result is yes, output abnormal power consumption information.

[0145] Step S304, when the device type is a resting medium-consumption device or a resting high-consumption device, determine whether the real-time power consumption is greater than the second power consumption threshold. When the judgment result is no, no processing is performed; when the judgment result is yes, determine whether the current time is within the peak time. When the judgment result is yes, no processing is performed; when the judgment result is no, output abnormal power consumption information.

[0146] Example 3

[0147] The present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method are executed. Through the above technical solution, when the computer program is executed by the processor, the method in any optional implementation of the above embodiment is executed to achieve the following functions: obtain multiple groups of historical power consumption data, divide the historical power consumption data, and output specific power consumption groups; calculate the historical power consumption data and output the moving average; analyze the moving average and output the device type and peak time; obtain the current time and real-time power consumption, analyze and calculate the real-time power consumption based on the current time, peak time and device type, and output abnormal power consumption information based on the calculation results.

[0148] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0149] It should be understood by those skilled in the art that the embodiments of the present invention can be provided as methods, systems or computer program products. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0150] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

Claims

1. A power consumption behavior safety analysis method based on edge computing, characterized in that: include: Acquire multiple groups of historical electricity consumption data, wherein the historical electricity consumption data includes dates, classify the historical electricity consumption data based on date classification, and output specific electricity consumption groups; Calculate historical electricity consumption data based on specific electricity consumption groups and output a moving average; Analyze the moving average and output the equipment type and peak time based on the analysis results; Obtain the current time and real-time power consumption, analyze and calculate the real-time power consumption based on the current time, peak time and device type, and output abnormal power consumption information based on the calculation results; The specific electricity usage grouping includes a working electricity usage grouping and a rest electricity usage grouping, and the date classification includes a working day and a rest day; The acquiring of multiple groups of historical electricity consumption data, dividing the historical electricity consumption data based on date classification, and outputting specific electricity consumption groups include: Using edge devices to obtain multiple sets of historical electricity consumption data, the historical electricity consumption data also includes electricity consumption in each time period of a day in units of one hour; Divide the electricity consumption corresponding to all working days into the same group and mark it as the working electricity consumption group; Divide the power consumption corresponding to all rest days into the same group and mark it as rest power consumption group; The calculation of historical power consumption data based on specific power consumption groups and output of moving average values; analysis of the moving average values ​​and output of equipment types and peak times based on the analysis results include: Performing power consumption behavior analysis on the working power consumption groups, the power consumption behavior analysis includes: Calculate the average value of electricity consumption in the same time period of all dates, marked as the historical average value; the average value of the historical average values ​​of two adjacent time periods, marked as the moving average value; Sort the moving averages in ascending order to obtain a moving sequence; number the moving sequence in ascending order from left to right to obtain a sequence number for each moving average; number the moving averages in time, and the specific time numbering method is: calculate the sum of the minimum time and the maximum time in the two time periods of the moving average, and mark it as the corresponding time; set the time number of each moving average to the corresponding time; A line graph is created with the vertical axis being the size of the moving average and the horizontal axis being the sequence number of the moving average. All the moving averages and sequence numbers are displayed and connected in the line graph to obtain an electricity consumption line graph. The power consumption line is divided using a judgment straight line of the expression Y1=n1, where n1 is the first power consumption threshold, and Y1 represents the ordinate in the line graph; Determine whether there is an intersection between the power consumption folding line and the judgment straight line. If there is no intersection, mark the corresponding edge device as a low-consumption working device. When the power consumption line intersects with the judgment line, the moving average value below the judgment line is marked as a low power value, and the moving average value above the judgment line is marked as a high power value; The electricity consumption behavior analysis also includes: Perform binary linear function fitting on the numbers and sizes corresponding to the low power values ​​in the line graph, and output the slope k1 corresponding to the fitting function; Perform binary linear function fitting on the numbers and sizes corresponding to the high-voltage values ​​in the line graph, and output the slope k2 corresponding to the fitting function; Mark the first multiple of k1 as the cutoff slope, compare k2 with the cutoff slope, and when k2 is less than or equal to the cutoff slope, mark the corresponding edge device as a working power-consuming device and output time analysis information; When k2 is greater than the cutoff slope, the corresponding edge device is marked as a high-consumption device and the time analysis information is output; The electricity consumption behavior analysis also includes: When the time analysis information is received, the smallest number and the largest number in the high-voltage value are obtained, and the smallest number and the largest number are calculated using the time calculation formula, and two time points are output. The time calculation formula is configured as Ta=(A÷2)±1; wherein Ta is the time point, A is A1 or A2, wherein A1 is the smallest number and A2 is the largest number; when A is A1, the positive and negative signs in the formula are negative, and the calculation result is marked as the start time; when A is A2, the positive and negative signs in the formula are positive, and the calculation result is marked as the end time; Mark the start time to the end time as peak time, and output the peak time to the corresponding work-consuming equipment or work-high-consuming equipment; The calculating of historical power consumption data based on specific power consumption groups and outputting a moving average value; analyzing the moving average value and outputting the device type and peak time based on the analysis result also includes: The power consumption behavior analysis is performed on the rest power consumption groups. The power consumption behavior analysis also includes: Calculate the average value of electricity consumption in the same time period of all dates, marked as the historical average value; the average value of the historical average values ​​of two adjacent time periods, marked as the moving average value; Sort the moving averages in ascending order to obtain a moving sequence; number the moving sequence in ascending order from left to right to obtain a sequence number for each moving average; number the moving averages in time, and the specific time numbering method is: calculate the sum of the minimum time and the maximum time in the two time periods of the moving average, and mark it as the corresponding time; set the time number of each moving average to the corresponding time; A line graph is created with the vertical axis being the size of the moving average and the horizontal axis being the sequence number of the moving average. All the moving averages and sequence numbers are displayed and connected in the line graph to obtain an electricity consumption line graph. The power consumption line is divided using a judgment straight line of the expression Y2=n2, where n2 is the second power consumption threshold, and Y2 represents the vertical coordinate in the line graph; Determine whether there is an intersection between the power consumption line and the judgment line. If there is no intersection, mark the corresponding edge device as a resting low-consumption device. When the power consumption line intersects with the judgment line, the moving average value below the judgment line is marked as a low power value, and the moving average value above the judgment line is marked as a high power value; Perform binary linear function fitting on the numbers and sizes corresponding to the low power values ​​in the line graph, and output the slope k3 corresponding to the fitting function; Perform binary linear function fitting on the numbers and sizes corresponding to the high-voltage values ​​in the line graph, and output the slope k4 corresponding to the fitting function; Mark the first multiple of k3 as the cutoff slope, compare k4 with the cutoff slope, and when k4 is less than or equal to the cutoff slope, mark the corresponding edge device as a resting medium-consumption device and output time analysis information; When k4 is greater than the cutoff slope, the corresponding edge device is marked as a resting high-consumption device, and the time analysis information is output; When the time analysis information is received, the smallest number and the largest number in the high-voltage value are obtained, and the smallest number and the largest number are calculated using the time calculation formula, and two time points are output. The time calculation formula is configured as Tb=(B÷2)±1; wherein Tb is the time point, B is B1 or B2, wherein B1 is the smallest number and B2 is the largest number; when B is B1, the positive and negative signs in the formula are negative, and the calculation result is marked as the start time; when B is B2, the positive and negative signs in the formula are positive, and the calculation result is marked as the end time; Mark the start time to the end time as peak time, and output the peak time to the corresponding rest medium-consumption equipment or rest high-consumption equipment; The equipment types include low-consumption equipment for work, medium-consumption equipment for work, high-consumption equipment for work, low-consumption equipment for rest, medium-consumption equipment for rest and high-consumption equipment for rest.

2. The power consumption behavior safety analysis method based on edge computing according to claim 1 is characterized in that: Get the current time and real-time power consumption, analyze and calculate the real-time power consumption based on the current time, peak time and device type, and output abnormal power consumption information based on the calculation results, including: Acquire the current time, the current time also includes date classification, when the working day is acquired, perform work monitoring processing, the work monitoring processing includes: when the device type is a working low-consumption device, determine whether the real-time power consumption is greater than the first power consumption threshold, when the determination result is no, do not process; when the determination result is yes, output abnormal power consumption information; When the device type is a medium-power consumption device or a high-power consumption device, determine whether the real-time power consumption is greater than the first power consumption threshold. When the judgment result is no, do not process it; when the judgment result is yes, determine whether the current time is within the peak time. When the judgment result is yes, do not process it; when the judgment result is no, output abnormal power consumption information.

3. The power consumption behavior safety analysis method based on edge computing according to claim 2 is characterized in that: Obtain the current time and real-time power consumption, analyze and calculate the real-time power consumption based on the current time, peak time and device type, and output abnormal power consumption information based on the calculation results, including: When a rest day is obtained, a rest monitoring process is performed, wherein the rest monitoring process includes: when the device type is a rest low-consumption device, judging whether the real-time power consumption is greater than a second power consumption threshold, and when the judgment result is no, no processing is performed; when the judgment result is yes, outputting abnormal power consumption information; When the device type is a medium-consumption device at rest or a high-consumption device at rest, determine whether the real-time power consumption is greater than the second power consumption threshold. When the judgment result is no, do not process it; when the judgment result is yes, determine whether the current time is within the peak time. When the judgment result is yes, do not process it; when the judgment result is no, output abnormal power consumption information.

4. The power consumption behavior safety analysis system based on edge computing is applicable to the power consumption behavior safety analysis method based on edge computing according to any one of claims 1 to 3, characterized in that: It includes a device classification module and a power consumption monitoring module, wherein the device classification module is used to obtain multiple groups of historical power consumption data, classify the historical power consumption data based on date classification, and output specific power consumption groups; It is also used to calculate historical power consumption data based on specific power consumption groups and output a moving average; analyze the moving average and output the device type and peak time based on the analysis results; The power consumption monitoring module is used to obtain the current time and real-time power consumption, analyze and calculate the real-time power consumption based on the current time, peak time and equipment type, and output power consumption judgment information based on the calculation results.

5. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the steps in the power consumption behavior safety analysis method based on edge computing as described in any one of claims 1 to 3 are executed.

Citation Information

Patent Citations

  • User power consumption behavior analysis system

    CN112785338A

  • Abnormal power consumption behavior detection method and device, computer equipment and storage medium

    CN113723861A

  • Enterprise daily electricity consumption anomaly detection method based on ARIMA

    CN115470973A

  • User power consumption data anomaly analysis method and system based on power consumption information collection

    CN116976707A

  • DC current detection method and system based on intelligent power

    CN116990578A