Method, system, device and storage medium for analyzing switch status of energy-consuming equipment
By acquiring and analyzing the average power and energy data of energy-using equipment, the problem of complex and low efficiency of non-invasive load monitoring methods in the prior art is solved, and simple and accurate analysis of the switching state of the energy-using equipment is achieved, which improves the Monitor efficiency.
Patent Information
- Application Number
- CN202010217302.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-25
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2040-03-25
AI Technical Summary
When the prior art realizes non-invasive load monitoring, the method is complex and the solution efficiency is low, making it difficult to obtain the operation status of each user's power equipment simply, accurately and effectively.
By obtaining the average power of each energy-using device and the energy-using data of the energy-using device group, grouping and analyzing, determining the switch state within each time interval, using the sparse optimization problem to convert it into a 1-norm approximate optimization problem, and solving the switch Minimize the result of state change events.
It realizes simple, accurate and effective analysis of the switching state of the energy-using equipment group within each time interval in a time period, and improves the efficiency of non-invasive load monitoring.
Smart Images

Figure CN113449894B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data processing systems and methods, and in particular to a method, system, device and storage medium for analyzing the switch status of energy-consuming equipment. Background Art
[0002] Non-Intrusive Load Monitoring (NILM) can obtain power information such as the operation status of each user's power equipment by analyzing the total power consumption data of multiple power equipment (for example, total voltage, total current, etc.). Non-Intrusive Load Monitoring can provide users with power consumption strategies, as well as fault monitoring and fault analysis of power equipment, and can also provide reference information for power companies' grid planning.
[0003] Currently, non-intrusive load monitoring can be achieved through machine learning, hidden Markov model, generalized likelihood ratio, Hilbert transform, long short-term memory, etc. However, the above methods for achieving non-intrusive load monitoring are very complex and have low solution efficiency.
[0004] Therefore, how to implement a non-invasive load monitoring method that can simply, accurately and effectively obtain power consumption information such as the operating status of each user's electrical equipment is an urgent problem to be solved by practitioners in this field. Summary of the invention
[0005] In view of the shortcomings of the related technologies mentioned above, the purpose of the present application is to provide a switch status analysis method, system, device and storage medium for energy-consuming equipment, so as to solve the technical problem of how to implement a non-invasive load monitoring method that can simply, accurately and effectively obtain power consumption information such as the operating status of each electrical device of the user.
[0006] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a method for analyzing the switch state of an energy-consuming device, which is used to determine the switch state set of an energy-consuming device group within each time interval in a time period, wherein the energy-consuming device group includes multiple energy-consuming devices, and the switch state analysis method includes: obtaining the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group; grouping the energy-consuming device group according to the average power of each of the energy-consuming devices to obtain one or more energy-consuming device sets; and performing the following steps on each current energy-consuming device set in the analysis order of each of the energy-consuming device sets: according to the energy consumption of the energy-consuming device group Data is used to determine the first switch state of each energy-consuming device in the current energy-consuming device set at each time interval in a time period; the first switch state is corrected according to the comparison result of the energy consumption estimation data corresponding to each first switch state and the energy consumption data of the energy-consuming device group, so as to obtain the second switch state of the energy-consuming device in the current energy-consuming device set in each time interval in a time period, which is used to update the energy consumption data of the energy-consuming device group for obtaining the second switch state of the next energy-consuming device set; according to the second switch state of each energy-consuming device in each energy-consuming device set in each time interval, a switch state set of the multiple energy-consuming devices in a time period is formed.
[0007] In certain embodiments of the first aspect of the present application, the energy usage data of the energy-consuming device group includes: energy usage data of the energy-consuming device group in each time interval in a period of time and initial energy usage data of the energy-consuming device group.
[0008] In certain embodiments of the first aspect of the present application, the grouping of the multiple energy-consuming devices according to the average power of each of the energy-consuming devices to generate one or more energy-consuming device sets includes: assigning the energy-consuming devices corresponding to the minimum value and the second minimum value of the average power in the energy-consuming device group to the current energy-consuming device set; judging whether the average power of each of the remaining energy-consuming devices in the energy-consuming device group meets the preset grouping condition of the current energy-consuming device set; if so, assigning the energy-consuming devices that meet the grouping condition to the current energy-consuming device set; if not, the current energy-consuming device set is constructed, and the energy-consuming devices that have completed the grouping are removed from the energy-consuming device group to update the energy-consuming device group; repeating the above steps until the generated multiple energy-consuming device sets include all the energy-consuming devices.
[0009] In certain embodiments of the first aspect of the present application, the analysis order is determined according to a ranking result among the maximum values of average power of each energy-consuming device in the energy-consuming device set.
[0010] In certain embodiments of the first aspect of the present application, determining the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a time period based on the energy consumption data of the energy-consuming device group includes: determining a minimization result of the switch state change event when a change in the energy consumption data of the energy-consuming device group in adjacent time intervals and a switch state change event corresponding to the adjacent time interval satisfies a preset error constraint; and obtaining the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a time period based on the minimization result.
[0011] In certain embodiments of the first aspect of the present application, based on the minimization result, the first switching state of the energy-consuming equipment in the current energy-consuming equipment set in each time interval in a time period is obtained, including: determining the intermediate result of the first switching state of each energy-consuming equipment in the current energy-consuming equipment set in each time interval based on the minimization result and the initial switching state of each energy-consuming equipment in the current energy-consuming equipment set; and using the intermediate result of the first switching state in each time interval as the switching probability to generate the first switching state.
[0012] In certain embodiments of the first aspect of the present application, the preset error constraint includes: under the influence of a switch state change event of an energy-consuming device in the current energy-consuming device set, the difference between the average power of each energy-consuming device in the current energy-consuming device set and the change in the energy consumption data of the energy-consuming device group in adjacent time intervals must satisfy a preset error.
[0013] In certain embodiments of the first aspect of the present application, the preset error is determined according to the sensitivity of the energy data.
[0014] In certain embodiments of the first aspect of the present application, the first switch state is corrected based on a comparison result of energy consumption estimation data corresponding to each first switch state with energy consumption data of the energy consumption device group to obtain a second switch state of energy-consuming devices in a current energy-consuming device set in each time interval in a time period, which is used to update the energy consumption data of the energy consumption device group for obtaining the second switch state of the next energy-consuming device set, including: by judging the size of the energy consumption estimation data and the energy consumption data of the energy consumption device group, correcting the first switch state based on the average power of each energy-consuming device in the current energy-consuming device set to obtain the second switch state of energy-consuming devices in the current energy-consuming device set in each time interval in a time period; removing the energy consumption data corresponding to the second switch state of the energy-consuming devices in the current energy-consuming device set from the energy consumption data of the energy consumption device group to update the energy consumption data of the energy consumption device group.
[0015] In certain embodiments of the first aspect of the present application, the method for analyzing the switch status of the energy-consuming device further includes: obtaining energy consumption data of each of the energy-consuming devices in a time period based on a set of switch statuses of multiple energy-consuming devices in a time period.
[0016] In certain embodiments of the first aspect of the present application, the energy consumption data of each of the energy-consuming devices in a time period is sent to the client.
[0017] In certain embodiments of the first aspect of the present application, the method of obtaining the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group includes: obtaining through a client connected to communication with the electronic device and / or an energy consumption metering device connected to communication with the electronic device.
[0018] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a switch state analysis system for energy-consuming devices, which is used to determine the switch state set of an energy-consuming device group within each time interval in a time period, wherein the energy-consuming device group includes multiple energy-consuming devices, and the switch state analysis system includes: an acquisition module, which is used to obtain the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group; a grouping module, which is used to group the energy-consuming device group according to the average power of each of the energy-consuming devices to obtain one or more energy-consuming device sets; a second switch state determination module, which is used to perform the following steps on each current energy-consuming device set in the analysis order of each of the energy-consuming device sets: according to the energy-consuming device set, The energy consumption data of a device group is used to determine the first switch state of each energy-consuming device in the current energy-consuming device set at each time interval in a time period; the first switch state is corrected according to the comparison result of the energy consumption estimation data corresponding to each first switch state and the energy consumption data of the energy-consuming device group, so as to obtain the second switch state of the energy-consuming device in the current energy-consuming device set at each time interval in a time period, which is used to update the energy consumption data of the energy-consuming device group for obtaining the second switch state of the next energy-consuming device set; a switch state set determination module is used to form a switch state set of the multiple energy-consuming devices in a time period according to the second switch state of each energy-consuming device in each energy-consuming device set in each time interval.
[0019] In certain embodiments of the second aspect of the present application, the energy usage data of the energy-consuming device group includes: energy usage data of the energy-consuming device group in each time interval in a period of time and initial energy usage data of the energy-consuming device group.
[0020] In certain embodiments of the second aspect of the present application, the second switch state determination module groups the multiple energy-consuming devices according to the average power of each of the energy-consuming devices to generate one or more energy-consuming device sets, including: assigning the energy-consuming devices corresponding to the minimum value and the second minimum value of the average power in the energy-consuming device group to the current energy-consuming device set; determining whether the average power of each of the remaining energy-consuming devices in the energy-consuming device group meets the preset grouping conditions of the current energy-consuming device set; if so, the energy-consuming devices that meet the grouping conditions are grouped into the current energy-consuming device set; if not, the current energy-consuming device set is constructed, and the energy-consuming devices that have completed the grouping are removed from the energy-consuming device group to update the energy-consuming device group; repeating the above steps until the generated multiple energy-consuming device sets include all the energy-consuming devices.
[0021] In certain embodiments of the second aspect of the present application, the analysis order is determined according to a ranking result among the maximum values of average power of each of the energy-consuming devices in the energy-consuming device set.
[0022] In certain embodiments of the second aspect of the present application, the second switch state determination module determines the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a time period based on the energy consumption data of the energy-consuming device group, including: when the change in the energy consumption data of the energy-consuming device group in adjacent time intervals and the switch state change event corresponding to the adjacent time interval satisfies a preset error constraint, determining the minimization result of the switch state change event; and obtaining the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a time period based on the minimization result.
[0023] In certain embodiments of the second aspect of the present application, based on the minimization result, the first switching state of the energy-consuming equipment in the current energy-consuming equipment set in each time interval in a time period is obtained, including: determining the intermediate result of the first switching state of each energy-consuming equipment in the current energy-consuming equipment set in each time interval based on the minimization result and the initial switching state of each energy-consuming equipment in the current energy-consuming equipment set; and using the intermediate result of the first switching state in each time interval as the switching probability to generate the first switching state.
[0024] In certain embodiments of the second aspect of the present application, the preset error constraint includes: under the influence of a switch state change event of an energy-consuming device in the current energy-consuming device set, the difference between the average power of each energy-consuming device in the current energy-consuming device set and the change in the energy consumption data of the energy-consuming device group in adjacent time intervals must satisfy a preset error.
[0025] In certain embodiments of the second aspect of the present application, the preset error is determined according to the sensitivity of the energy data.
[0026] In certain embodiments of the second aspect of the present application, the second switch state determination module corrects the first switch state based on a comparison result of the energy consumption estimation data corresponding to each of the first switch states with the energy consumption data of the energy consumption device group, so as to obtain the second switch state of the energy-consuming devices in the current energy-consuming device set in each time interval in a time period, which is used to update the energy consumption data of the energy consumption device group for obtaining the second switch state of the next energy-consuming device set, including: by judging the size of the energy consumption estimation data and the energy consumption data of the energy consumption device group, correcting the first switch state based on the average power of each energy-consuming device in the current energy-consuming device set, so as to obtain the second switch state of the energy-consuming devices in the current energy-consuming device set in each time interval in a time period; removing the energy consumption data corresponding to the second switch state of the energy-consuming devices in the current energy-consuming device set from the energy consumption data of the energy consumption device group, so as to update the energy consumption data of the energy consumption device group.
[0027] In certain embodiments of the second aspect of the present application, the switch status analysis system of the energy-consuming device also includes an energy usage data determination module: the energy usage data determination module is used to obtain energy usage data of each of the energy-consuming devices in a time period based on a set of switch statuses of multiple energy-consuming devices in a time period.
[0028] In certain embodiments of the second aspect of the present application, the energy consumption data of each of the energy-consuming devices in a time period is sent to the client.
[0029] In certain embodiments of the second aspect of the present application, the method of obtaining the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group includes: obtaining through a client connected to communication with the electronic device and / or an energy consumption metering device connected to communication with the electronic device.
[0030] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides an electronic device, comprising: a storage device for storing at least one program; a processing device for calling the at least one program to execute the switching state analysis method of the energy-consuming equipment as described in any one of the first aspects of the present application.
[0031] In certain embodiments of the third aspect of the present application, the electronic device further comprises a communication device for communicating with the outside to obtain energy consumption data of a group of energy-consuming devices and an average power of each of the energy-consuming devices.
[0032] In certain embodiments of the third aspect of the present application, the communication device is used to communicate with the client to send the obtained energy consumption data of each of the energy-consuming devices in a time period to the client.
[0033] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present application provides a client, which is communicatively connected to an electronic device in certain embodiments of the third aspect of the present application, and is used to receive energy consumption data of each of the energy-consuming devices in a time period; or, send the average power of each of the energy-consuming devices to the electronic device.
[0034] To achieve the above-mentioned purpose and other related purposes, the fifth aspect of the present application provides a computer-readable storage medium storing at least one program, which, when called, executes and implements the switching state analysis method of the energy-consuming equipment as described in any one of the first aspects of the present application.
[0035] In summary, the switch state analysis method, system, device and storage medium of the energy-consuming device of the present application obtain the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group; group the energy-consuming device group according to the average power of each of the energy-consuming devices to obtain one or more energy-consuming device sets; perform the second switch state acquisition step for each current energy-consuming device set in turn according to the analysis order of each energy-consuming device set; and form a switch state set of the multiple energy-consuming devices in a time period according to the second switch state of each energy-consuming device in each energy-consuming device set in each time interval. The present application can simply, accurately and effectively determine the switch state of multiple energy-consuming devices in each time interval in a time period based on the energy consumption data of the user's energy-consuming device group and the average power of multiple energy-consuming devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The specific features of the invention involved in this application are shown in the attached claims. The features and advantages of the invention involved in this application can be better understood by referring to the exemplary embodiments and drawings described in detail below. A brief description of the drawings is as follows:
[0037] Figure 1 Shown is a schematic diagram of an application scenario in one embodiment of the present application.
[0038] Figure 2 Shown is a schematic structural diagram of an electronic device of the present application in one embodiment.
[0039] Figure 3 Shown is a flow chart of a method for analyzing the switch status of an energy-consuming device of the present application in one embodiment.
[0040] Figure 4 It is a flowchart of a method for grouping the energy-consuming device group in one embodiment of the present application.
[0041] Figure 5 It is a schematic flow chart of an analysis method of the second switch state of an energy-consuming device of the present application in one embodiment.
[0042] Figure 6 Shown is a module diagram of a switch status analysis system for energy-consuming equipment in one embodiment of the present application.
[0043] Figure 7 Shown is a schematic diagram of the structure of an energy metering device of the present application in one embodiment.
[0044] Figure 8 Shown is a flowchart of an energy data encryption method in one embodiment of the present application.
[0045] Fig. 9 Shown is a schematic diagram of the structure of an encryption processing system of the present application in one embodiment.
[0046] Fig.10 FIG. 1 is a flow chart of a noise generation method using energy data according to an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following is an explanation of the implementation of the present application by means of specific embodiments. People familiar with the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification.
[0048] In the following description, reference is made to the accompanying drawings, which describe several embodiments of the present application. It should be understood that other embodiments may also be used, and that changes in module or unit composition, electrical and operational aspects may be made without departing from the spirit and scope of the present disclosure. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present application is limited only by the claims of the published patents. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present application.
[0049] Although, in some instances, the term first, second, etc. are used to describe various elements, information or parameters in this article, but these elements or parameters should not be limited by these terms. These terms are only used to distinguish an element or parameter from another element or parameter. For example, the first switch state can be referred to as the second switch state, and similarly, the second switch state can be referred to as the first switch state, without departing from the scope of the various described embodiments. The first switch state and the second switch state are both describing a switch state, but unless the context clearly indicates otherwise, they are not the same switch state. Depends on the context, such as the word "if" used herein can be interpreted as "at ... time" or "when ... time".
[0050] Furthermore, as used in this article, the singular forms "one", "an" and "the" are intended to include plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions, steps or operations is inherently mutually exclusive in some way.
[0051] With the development of smart grids, users not only need to understand the total power consumption of electrical equipment, but also have higher and higher requirements for the safety of electrical equipment in daily life, and the transparency and refinement of energy consumption data. In addition, power companies also need to use the power consumption information such as the operation status of each user's electrical equipment to carry out grid planning and power dispatching operations.
[0052] Non-Intrusive Load Monitoring (NILM) technology can infer the operating status of different electrical devices in a user based on the total power consumption data of multiple electrical devices in the user (for example, total voltage, total current, etc.). It can then provide users with detailed energy consumption data, power consumption strategies, and fault monitoring and analysis of electrical equipment, and can also provide reference information for power companies' grid planning, power dispatching and other operations.
[0053] Currently, non-intrusive load monitoring can be achieved through machine learning, hidden Markov model, generalized likelihood ratio, Hilbert transform, long short-term memory, etc. However, the above methods for achieving non-intrusive load monitoring are very complex and have low solution efficiency.
[0054] Therefore, how to implement a non-invasive load monitoring method that can simply, accurately and effectively obtain power consumption information such as the operating status of each user's electrical equipment is an urgent problem to be solved by practitioners in this field.
[0055] See also Figure 1 , Figure 1 The diagram is a schematic diagram of an application scenario in one embodiment of the present application. Figure 1As shown, the electronic device 100 is connected in communication with the energy consumption metering device 300. For example, the electronic device 100 has communication capability and is connected in communication with the energy consumption metering device 300, and the electronic device 100 can obtain the energy consumption data of the energy consumption device group and the average power of each of the energy consumption devices. In one embodiment, the electronic device 100 is connected in communication with the energy consumption metering device 300 (such as a smart meter) to obtain the energy consumption data of the energy consumption device group.
[0056] In some embodiments, optionally, the electronic device 100 may also be connected to communicate with other devices (such as a client, etc.) to send the energy consumption data of each of the energy-consuming devices in a decomposed time period to the other devices.
[0057] The client can Figure 1 The electronic device 100 shown is connected in communication, and the client is used to receive the energy consumption data of each of the energy-consuming devices 400 in a period of time, or send the average power of each of the energy-consuming devices 400 to the electronic device 100. The client is exemplified by a computer device loaded with an APP application or having web page / website access performance, such as a desktop computer, a smart TV, a server, a mobile terminal (such as a mobile phone, a tablet computer, a laptop computer, etc.), and these computer devices may also include input and output units such as a display unit / audio unit. The display unit may include a touch component, which facilitates user input by detecting the occurrence and / or position of an object touching its screen (for example, the surface of an electronic display); for example, the user touches the screen of the computer device to input the energy consumption data of the energy-consuming device group, send an analysis request, etc. Among them, the analysis request is used to trigger the electronic device 100 to analyze the energy consumption data of each of the energy-consuming devices 400, and return the analysis results to the client.
[0058] The energy-consuming equipment 400 refers to equipment that requires energy in any place such as enterprises and homes, such as industrial equipment, such as manufacturing / processing equipment, assembly line equipment, etc.; and household electrical appliances such as televisions, refrigerators, air conditioners, etc., and lamps in lighting systems.
[0059] The energy-consuming device group includes multiple energy-consuming devices, which may be a general term for multiple energy-consuming devices connected to the same energy-consuming metering device or a general term for multiple energy-consuming devices connected to multiple energy-consuming metering devices. In one embodiment, the energy-consuming metering device is exemplified as a smart meter. For example, there are multiple buildings in a school, and each building has a smart meter. Then, all energy-consuming devices in one of the buildings may be an energy-consuming device group or all energy-consuming devices in the school may be an energy-consuming device group.
[0060] The energy consumption data of the energy-consuming device group can be determined according to the energy type required for the device to operate. The energy type includes but is not limited to electrical energy, thermal energy, etc. When the energy type is electrical energy, the energy-consuming device is an electrical device, and the energy consumption data of the energy-consuming device group is the sum of the power consumption of all energy-consuming devices in the energy-consuming device group in each time interval in a period of time.
[0061] The switch state analysis method of the energy-consuming device of the present application can determine the switch state set of the energy-consuming device group in each time interval in a period of time according to the average power of each energy-consuming device and the energy consumption data of the energy-consuming device group. Figure 1 or Figure 2 The present invention is executed by the electronic device shown, or by other electronic devices that can execute the present application.
[0062] See also Figure 2 , Figure 2 The electronic device 200 is a schematic diagram of the structure of an electronic device in an embodiment of the present application. The electronic device 200 can be used to implement, for example Figure 1 The electronic device 100 in FIG. Figure 2 As shown, the electronic device 200 includes: a storage device 201 and a processing device 202.
[0063] The storage device 201 is used to store at least one program. In some embodiments, the storage device 201 includes one or more memories, which are used to execute the switch state analysis method of the energy-consuming device exemplified based on the technical idea of the present application when executed. In an embodiment, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. In some embodiments, the memory may also include a memory away from one or more processors, such as a network attached memory accessed via an RF circuit or an external port and a communication network, wherein the communication network may be the Internet, one or more intranets, local area networks, wide area networks, storage area networks, etc., or a suitable combination thereof. The memory controller may control the access of other components of the device such as the CPU and the peripheral interface to the memory. In some embodiments, the storage device 201 also pre-stores the average power of each of the energy-consuming devices of the user to be analyzed, the energy consumption data of the energy-consuming device group of the user to be analyzed, or the sensitivity of the energy consumption data corresponding to each user, so that the electronic device 200 can perform the switch state analysis method of the energy-consuming device.
[0064] The processing device 202 is connected to the storage device 201. In some embodiments, the processing device 202 includes one or more processors. The processing device 202 is used to call the at least one program to execute the present application. Figure 3 The switch state analysis method in the embodiment is used to determine the switch state set of the energy-consuming device group in each time interval in a time period. In this embodiment, the processor is operably coupled to the memory and / or the non-volatile storage device. More specifically, the processor can execute instructions stored in the memory and / or the non-volatile storage device to perform operations in the electronic device 200, such as forming the switch state set of the multiple energy-consuming devices in a time period. In this way, the processor may include one or more general-purpose microprocessors, one or more special-purpose processors, one or more field programmable logic arrays, or any combination thereof.
[0065] In some embodiments, the electronic device 200 further includes a communication device 203 . Figure 2 The dashed box in indicates that the communication device 203 is optional. The communication device 203 is used to communicate with the outside. For example, it is connected to the energy metering device or client mentioned above. Among them, the communication device 203 may include: wired communication circuits and / or wireless communication circuits, wired communication circuits such as wired network cards, wireless communication circuits such as 2G-5G, WiFi, 314 / 433 radio frequency circuits, Bluetooth, etc., so as to access the communication network, which may include the Internet, mobile networks, local area networks (LANs), wide area networks (WANs), storage area networks (SANs), or one or more intranets, etc., or one or more of any other appropriate communication networks.
[0066] See also Figure 3 , which is a flow chart of a method for analyzing the switch status of energy-consuming devices in one embodiment of the present application. The switch status analysis method is used to determine the switch status set of the energy-consuming device group in each time interval in a period of time. Figure 3 The switch state analysis method shown includes: step S10, step S20, step S30, and step S40.
[0067] Step S10: Obtain the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group.
[0068] The average power is the average value of the power consumed by each energy-consuming device within a preset time. The preset time may be a period or an integer multiple of the period, but is not limited thereto. In one embodiment, the average power P of each energy-consuming device i The energy consumption data can be obtained by starting each energy-consuming device individually within the preset time. In another embodiment, the average power P of each energy-consuming device i The rated power of each energy-consuming device can be used for approximation. 0 ,....,y T) includes: the energy consumption data Y′=(y 1 ,....,y T ) and the initial energy consumption data y of the energy-consuming equipment group 0 .
[0069] The time interval t includes but is not limited to: one or more seconds, one or more minutes, one or more hours, one or more days, one or more weeks, or one or more months, etc. A plurality of the time intervals t constitute a time period. T is the number of time intervals in a time period. For example, assuming that the time period is one day, the time interval t can be every minute, every hour, etc. of the day. Alternatively, a time period is divided into multiple time intervals according to the update cycle of the energy metering device when measuring energy data. For example, if the time period is 1 hour and the update cycle is 6 seconds, then every 6 seconds is a time interval, and the number of time intervals T in a time period is 600. i∈N, N represents the number of the multiple energy-consuming devices.
[0070] In one embodiment, the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group can be pre-stored in the storage device, and when the electronic device executes the switch state analysis method ... the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group can be pre-stored in the storage device, and the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group can be pre-stored in the storage device, and the average power of each Figure 1 or Figure 2 The above data is obtained from the storage device of the electronic device shown.
[0071] In one embodiment, the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group can be obtained by an energy consumption metering device that is in communication with the client and / or the electronic device. Figure 2 The electronic device 200 is connected to the client and the energy metering device for communication, and obtains the average power of each energy-consuming device sent by the client and the energy consumption data Y of the energy-consuming device group sent by the energy metering device. 0 ,....,y T ). For another example, after the client communicates with the energy metering device and obtains the energy consumption data of the energy consumption device group, the energy consumption data of the energy consumption device group and the average power of each energy consumption device are sent to Figure 2 As another example, when the user inputs the average power into the energy metering device or the energy metering device has the function of monitoring the average power of each energy-consuming device, Figure 2 The electronic device 200 shown may also be connected to the energy consumption metering device for communication only, so as to obtain the average power of each of the energy consumption devices and the energy consumption data of the energy consumption device group.
[0072] The electronic device executes step S20 and step S30 according to the acquired average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group.
[0073] Step S20: grouping the energy-consuming device group according to the average power of each of the energy-consuming devices to obtain one or more energy-consuming device sets.
[0074] In one embodiment, before the energy-consuming device group is grouped, the average power of the energy-consuming devices in the energy-consuming device group is sorted according to size to obtain an average power sequence P arranged in ascending order. 1 ,P 2 ,...,P N , which can improve the efficiency of executing grouping operations, where P 1 <P 2 ... <P N .
[0075] See also Figure 4 , Figure 4 The following is a flow chart of a method for grouping the energy-consuming device group in one embodiment of the present application. When performing the grouping operation, based on the continuously updated energy-consuming device group, the following steps are repeatedly performed to generate multiple energy-consuming device groups {C 1 , C 2 ……C K}. Where K is the number of energy-consuming equipment sets. Figure 4 The grouping method shown includes: step S211, step S212, step S213, step S214, and step S215.
[0076] In step S211, the energy consuming devices corresponding to the minimum value and the second minimum value of the average power in the energy consuming device group are assigned to the current energy consuming device set.
[0077] It should be noted that the energy-consuming device group will be updated according to each grouping result of step S214. For example, initially, the energy-consuming device group includes 10 energy-consuming devices, and the energy-consuming devices corresponding to the minimum and second minimum average power values among the 10 energy-consuming devices are assigned to the current energy-consuming device set C. 1 If the first energy-consuming device set C is divided in step S214 1 There are 3 energy-consuming devices in the set, then when generating the second energy-consuming device set C 2 When the energy-consuming device group includes the remaining 7 energy-consuming devices, the energy-consuming devices corresponding to the minimum value and the second minimum value of the average power among the remaining 7 energy-consuming devices are assigned to the current energy-consuming device set C. 2 .
[0078] In step S212, it is determined whether the average power of the remaining energy-consuming devices in the energy-consuming device group meets the preset grouping condition of the current energy-consuming device set. It should be noted that before executing step S212, the energy-consuming devices in the current energy-consuming device set need to be sorted in ascending order according to the average power. Among them, the preset grouping condition of the current energy-consuming device set can be expressed by formula (1):
[0079]
[0080] Among them, |C| is the total number of energy-consuming devices in the current energy-consuming device set. For example, before building the energy-consuming device set C 1 At the initial time, the current energy-consuming equipment set C 1 When judging according to formula (1), if the judgment result of step S212 is yes, there are energy-consuming devices in the remaining devices that meet the preset grouping conditions, and then the current energy-consuming device concentration C 1 The total number of energy-consuming devices in the energy-consuming device group will increase according to the judgment result. It should be noted that step S212 is executed again to determine whether the average power of the remaining energy-consuming devices in the energy-consuming device group meets the current energy-consuming device group C. 1 When the preset grouping conditions are met, the current energy-consuming device group C of the added energy-consuming device needs to be added again. 1 The energy-consuming devices in the process are sorted in ascending order according to their average power to execute step S212.
[0081] Among them, c j is the average power corresponding to each energy-consuming device in the current energy-consuming device set. j is the ranking number of the average power corresponding to each energy-consuming device. For example, the average powers corresponding to two energy-consuming devices in the current energy-consuming device set are c 1 、c 2 , where c 1 <c 2 δ is a preset error, and the preset error is determined according to the sensitivity Δf of the energy data. In one embodiment, the preset error δ is twice the sensitivity Δf of the energy data, but is not limited thereto. The sensitivity Δf of the energy data will be described in detail later. Wherein, P i It is the average power corresponding to other energy-consuming devices that are not included in the energy-consuming device set.
[0082] If the result of step S212 is yes, step S213 is executed. In step S213, the energy-consuming devices that meet the grouping condition are grouped into the current energy-consuming device set. For example, the current energy-consuming device set C 1 There are two energy-consuming devices in the group. If the average power of the energy-consuming device group is P 3 The energy-consuming devices satisfy the current energy-consuming device set C 1The preset grouping condition is P 3 The corresponding energy-consuming equipment belongs to the current energy-consuming equipment set. And according to the updated current energy-consuming equipment set C 1 Re-execute step S212.
[0083] If the result of the judgment in step S212 is no, step S214 is executed. In step S214, the current energy-consuming device set is constructed, and the energy-consuming devices that have completed grouping are removed from the energy-consuming device group to update the energy-consuming device group. 2 The average power is P 4 , P 5 , P 6 The energy-consuming devices corresponding to each of them are removed from the energy-consuming device group with an average power of P 4 , P 5 , P 6 The energy-consuming devices corresponding to each other are used to update the energy-consuming device group.
[0084] Afterwards, the above steps need to be repeated for the energy-consuming devices that have not been grouped, until all the energy-consuming devices are included in the generated multiple energy-consuming device sets. Specifically, steps S211 to S214 are repeated according to the updated energy-consuming device group until all the energy-consuming devices have their own energy-consuming device sets. For example, as shown in step S215 in the figure, it is determined whether there are still energy-consuming devices that have not been grouped in the energy-consuming device group; if so, steps S211 to S214 are repeated; if not, the process ends.
[0085] according to Figure 4 The grouping method shown in the figure can generate multiple energy-consuming device sets after grouping the energy-consuming device groups. 1 , C 2 ……C K}. But not limited to Figure 4 The grouping method shown may be any grouping method or grouping condition as long as it can make the average power of the energy-consuming devices in each energy-consuming device set generated not differ much.
[0086] Step S30: According to the analysis order of each of the energy-consuming device sets, the following steps are performed on each current energy-consuming device set in turn: according to the energy consumption data of the energy-consuming device group, the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a time period is determined; according to the comparison result of the energy consumption estimation data corresponding to each of the first switch states and the energy consumption data of the energy-consuming device group, the first switch state is corrected to obtain the second switch state of the energy-consuming device in the current energy-consuming device set in each time interval in a time period, which is used to update the energy consumption data of the energy-consuming device group for obtaining the second switch state of the next energy-consuming device set.
[0087] The analysis sequence refers to the sequence of executing the analysis method of the second switch state.
[0088] In one embodiment, the analysis order is determined according to the sorting result between the maximum values of the average power of the energy-consuming devices in each of the energy-consuming device sets. Specifically, according to the average power of each energy-consuming device in each energy-consuming device set, the maximum value of the average power of the energy-consuming devices in each energy-consuming device set is obtained, and the energy-consuming device sets are sorted according to the maximum value corresponding to each energy-consuming device set to generate an analysis order from large to small. According to the analysis order from large to small, the analysis method of the second switch state of the energy-consuming device is executed for each current energy-consuming device set in turn.
[0089] See also Figure 5 , Figure 5 The figure shows a flow chart of the analysis method of the second switch state of the energy-consuming device of the present application in one embodiment. Figure 5 As shown, the analysis method of the second switch state includes: step S221 and step S222.
[0090] Step S221: determining the first switch state of each energy-consuming device in the current energy-consuming device set at each time interval in a period of time according to the energy consumption data of the energy-consuming device group.
[0091] In one embodiment, when the amount of change in the energy consumption data of the energy-consuming device group in adjacent time intervals and the switch state change event corresponding to the adjacent time intervals satisfy a preset error constraint, a minimization result of the switch state change event is determined. Based on the minimization result, the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a period is obtained.
[0092] When analyzing the first switch state of the first energy-consuming device set according to the analysis order, the energy consumption data of the energy-consuming device group is the energy consumption of the multiple energy-consuming devices at each time interval obtained in step S10, and the energy consumption data can be expressed by the following formula:
[0093]
[0094] in, is the energy consumption of each energy-consuming device in the time interval t. It should be noted that the energy consumption data of the energy-consuming device group will be updated after executing step S222. For example, after analyzing the second switch state of the first energy-consuming device set, when sequentially analyzing the second switch state of the second energy-consuming device set, the energy consumption data y t The energy consumption corresponding to the second switch state of the first energy-consuming device set is removed from the energy consumption data y to update the energy consumption data y t.
[0095] According to the change K of the energy consumption data of the energy-consuming equipment group in adjacent time intervals t It can be obtained whether there is a switch state change event in the current energy-consuming equipment set, and the change amount K of the energy consumption data t for:
[0096] K t =|y t -y t-1 | (3)
[0097] Whether each energy-consuming device in the current energy-consuming device set has a set of switch state change events and available change vectors Δ t The switch state change event refers to a change in the switch state of the energy-consuming device within an adjacent time interval. For example, the switch state of an energy-consuming device changes from an on state to an off state within an adjacent time interval, or the switch state of an energy-consuming device changes from an off state to an on state within an adjacent time interval. In the embodiment of the present application, the change vector Δ t The element 1 in the equation indicates that the energy-consuming device corresponding to the element has a switch state change event in the adjacent time interval, and the change vector Δ t The element being 0 represents that the energy-consuming device corresponding to the element has no switch state change event in adjacent time intervals.
[0098] Among them, Δ t =|X t -X t-1 |. Among them, X t X is the switch status of each energy-consuming device in the current energy-consuming device set within the time interval t. t-1 is the switch state of each energy-consuming device in the current energy-consuming device set within the time interval t-1. t The element 1 in the vector represents that the energy-consuming device corresponding to the element is in the on state during the time interval t. t An element in the vector being 0 represents that the energy-consuming device corresponding to the element is in a closed state during the time interval t-1.
[0099] In the implementation of the present application, the sparse nature of switch state change events is utilized to convert the process of non-intrusive load monitoring and analysis of whether a switch state change event occurs in an energy-consuming device into: solving a sparse optimization problem under a preset error constraint, wherein the sparse optimization problem is to minimize the number of switch state change events of the current energy-consuming device set. The sparse optimization problem can be expressed by the following formula:
[0100] min||Δ t || 0(4)
[0101] Wherein, formula (4) indicates that in adjacent time intervals, the number of switch state change events of the current energy-consuming device set is the least, that is, the change vector Δ t The number of non-zero elements in is the least. Among them, Δ t ∈{0, 1} N ,||Δ t || 0 ≤U, where U is the upper threshold of the switch state change event.
[0102] The preset error constraint includes: under the influence of the switch state change event of the energy-consuming device in the current energy-consuming device set, the difference between the average power of each energy-consuming device in the current energy-consuming device set and the change amount of the energy consumption data of the energy-consuming device group in adjacent time intervals must meet the preset error. In the embodiment of the present application, the preset error constraint can be expressed by the following formula:
[0103] ||Δ t PK t || 2 <δ (5)
[0104] Wherein, P represents the average power vector of the energy-consuming devices in the current energy-consuming device set. Wherein, the preset error δ in the error constraint is determined according to the sensitivity Δf of the energy-consuming data. In an embodiment of the present application, the preset error δ is equal to twice the sensitivity Δf of the energy-consuming data.
[0105] The sensitivity Δf of the energy usage data is the upper limit of the energy usage data in each time interval in a period of time. and the lower limit of energy data y t The sensitivity Δf of the energy data can be expressed by the following formula:
[0106]
[0107] in, Due to the influence of external energy supply factors, energy metering equipment factors, active devices in energy-consuming equipment and other factors, the energy consumption data y at each time interval t There is fluctuation, that is, the energy consumption data y in each time interval t Upper limit of energy in use data and the lower limit of energy data y tThe sensitivity Δf of the energy data can be determined by analyzing the energy data in multiple time periods. Specifically, the upper limit of the energy data corresponding to each time interval is determined by analyzing the energy data in multiple time periods. and the lower limit of energy data y t , and then the sensitivity Δf of the energy data can be determined.
[0108] When solving the sparse optimization problem of minimizing the number of switch state change events under the limitation of the preset error constraint, it is necessary to convert the above sparse optimization problem into an approximate optimization problem in the interval from 0 to 1:
[0109] Δ t ∈[0, 1] N (7)
[0110] Formula (7) represents the solution of the change vector Δ t The values of the elements in are in the range of 0 to 1. The conversion of the above sparse optimization problem into an approximate optimization problem in the range of 0 to 1 is obtained based on the grouping condition described in formula (1). The condition restricted by formula (1) is that the average power difference of multiple energy-consuming devices involved in the decoding process cannot be too large, so that the sparse optimization problem can be converted into an approximate optimization problem in the range of 0 to 1.
[0111] However, the above approximate optimization problem is a 0-norm approximate optimization problem, which is an NP-hard problem. Therefore, it is necessary to convert the above 0-norm approximate optimization problem into a 1-norm approximate optimization problem of convex optimization for solution:
[0112] min||Δ t || 1 (8)
[0113] It should be noted that the approximate optimization problem of the 0 norm and the approximate optimization problem of the 1 norm are equivalent under certain conditions. When the change amount of the energy consumption data of the energy-consuming equipment group in adjacent time intervals and the switch state change event corresponding to the adjacent time intervals satisfy the preset error constraint shown in formula (5), the approximate optimization problem of the 1 norm shown in formula (8) is solved in the interval from 0 to 1. Among them, solving the approximate optimization problem of the 1 norm can obtain the change vector Δ t The optimized solution of , can determine the minimization result of the switch state change event. The minimization result of the switch state change event is a value in the range of 0 to 1.
[0114] According to the minimization result, the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a time period is obtained.
[0115] In one embodiment, based on the minimization result and the initial switching state of each energy-consuming device in the current energy-consuming device set, an intermediate result of the first switching state of each energy-consuming device in the current energy-consuming device set in each time interval is determined; and the intermediate result of the first switching state in each time interval is used as the switching probability to generate the first switching state.
[0116] In a specific embodiment, according to the energy consumption data Y of the energy-consuming equipment group, 0 ,....,y T ), for each adjacent time interval, the change in energy data K is solved t , the change K of each adjacent time interval t Substituting into formula (8), we can obtain the minimization result Δ of the switch state change events in each adjacent time interval: 1 , Δ 2 ..., Δ T Among them, the minimization result Δ 1 is based on the energy consumption data y of the first time interval 1 and the energy data y for the initial time interval 0 The change in the amount of T It is based on the energy consumption data y of the last time interval in a period T and the energy consumption data y of the previous time interval T-1 The energy data y of the initial time interval is obtained. 0 The function of is that after obtaining the usage data of the value, the switch status of the energy-consuming equipment can be accurately analyzed. In one embodiment, the energy usage data y of the initial time interval 0 is 0, and it can be determined that the initial switch state of each energy-consuming device in the energy-consuming device group in the initial time interval is off. In other embodiments, the energy consumption data y of the initial time interval 0 It may also be other values that can directly infer the initial switching state of each energy-consuming device in the energy-consuming device group.
[0117] According to the minimization result Δ 1 , Δ 2 ..., Δ T and the initial switch state of each energy-consuming device in the current energy-consuming device set, an intermediate result of the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval can be determined.
[0118] X t =X t-1 ⊙(1-Δ t-1 )+(1-X t-1 )⊙Δ t-1 (9)
[0119] The ⊙ symbol represents the Hadamard product of two matrices with the same number of rows and columns, and the 1 in formula (9) represents the intermediate result X of the first switch state. t-1 A matrix with the same number of columns and rows, where all elements are 1.
[0120] Specifically, the minimization result Δ 1 and the first switch state X of each energy-consuming device in the current energy-consuming device set 0 Substituting into formula (9), the intermediate result X of the first switch state of each energy-consuming device in the current energy-consuming device set within the first time interval can be determined: 1 , and the minimization result and the corresponding first switch state X t Substituting into formula (9), the intermediate result X of the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a period can be determined: 1 , X 2 ..., X T .
[0121] The intermediate result X of the first switch state of the current energy-consuming device set 1 , X 2 ..., X T The value of is between 0 and 1. A first switch state with a value of 0 or 1 can be obtained by performing a rounding operation on the intermediate result.
[0122] In a specific embodiment, the rounding operation is to use the intermediate result of the first switch state in each time interval as the switch probability to generate the first switch state. Specifically, the element in the intermediate result of the first switch state is used as the probability to generate 1, and the difference between 1 and the element in the intermediate result of the first switch state is used as the probability to generate 0. For example, the intermediate result X of the first switch state of the current energy-consuming device set in a time interval is 1 is (0.1, 0.2, 0.8, 0.9), the intermediate result X of the first switch state is 1 Input the switch state generator, taking 0.9 as an example, the switch state generator outputs 1 with a probability of 0.9 and outputs 0 with a probability of 0.1, and the output of the switch state generator is used as the first switch state of the current energy-consuming device set in the time interval.
[0123] After the first switch state of the current energy-consuming device set is obtained, step S222 is performed for the first switch state of the current energy-consuming device set.
[0124] Step S222: Correct the first switch state based on the comparison result of the energy consumption estimation data corresponding to each of the first switch states and the energy consumption data of the energy-consuming device group, so as to obtain the second switch state of the energy-consuming devices in the current energy-consuming device set in each time interval in a time period, which is used to update the energy consumption data of the energy-consuming device group for obtaining the second switch state of the next energy-consuming device set.
[0125] The energy consumption estimation data of the current energy-consuming device set is the vector product of the first switch state of the current energy-consuming device set and the average power of each energy-consuming device in the current energy-consuming device set. 2 The first switch state X 2 is (0, 1, 1, 1), the current energy-consuming device set C 2 The average power of each energy-consuming device in is (70, 80, 90, 100), then the current energy-consuming device set C in the second time interval is 2 The energy consumption estimation data is 270. The energy consumption estimation data will be updated according to each corrected first switch state in a subsequent correction process to obtain updated energy consumption estimation data.
[0126] The following embodiment is a correction process for the first switch state of each time interval in an energy-consuming device set, by performing the following correction operation on the first switch state in each time interval of each energy-consuming device set to obtain the second switch state in each time interval of each energy-consuming device set.
[0127] In one embodiment, by determining the size of the energy consumption estimation data and the energy consumption data of the energy-consuming device group, the first switch state is corrected based on the average power of each energy-consuming device in the current energy-consuming device set to obtain the second switch state of the energy-consuming devices in the current energy-consuming device set in each time interval in a time period.
[0128] For example, in each time interval of a period, if the energy consumption estimation data is greater than the energy consumption data of the energy-consuming device group, the average power of the energy-consuming devices in the first switch state of each energy-consuming device in the current energy-consuming device set that are in the on state is obtained, and the first switch state of the energy-consuming device corresponding to the maximum average power is corrected to the off state. If the updated energy consumption estimation data is still greater than the energy consumption data of the energy-consuming device group, the above correction process will continue to be performed on the corrected first switch state until the energy consumption estimation data is equal to or less than the energy consumption data of the energy-consuming device group, or all energy-consuming devices in the current energy-consuming device set are corrected.
[0129] Based on the above corrected first switch state, the judgment is made:
[0130] If the energy consumption estimation data is equal to the energy consumption data of the energy consumption device group, or all energy consumption devices in the current energy consumption device set are corrected, then the corrected first switch state is the second switch state of the energy consumption devices in the current energy consumption device set.
[0131] Alternatively, if the energy consumption estimation data is smaller than the energy consumption data of the energy consumption device group, the average power of the energy consumption devices in the closed state among the first switch states of each energy consumption device in the current energy consumption device set is obtained, and the first switch state of the energy consumption device corresponding to the minimum average power value is corrected to the open state; if the updated energy consumption estimation data is still smaller than the energy consumption data of the energy consumption device group, the above correction process will continue to be performed on the corrected first switch state until the energy consumption estimation data is equal to or greater than the energy consumption data of the energy consumption device group, or all energy consumption devices in the current energy consumption device set are corrected, and at this time, the corrected first switch state is the second switch state of the energy consumption devices in the current energy consumption device set.
[0132] For another example, within each time interval in a time period, if the energy consumption estimation data is less than the energy consumption data of the energy-consuming device group, the average power of the energy-consuming devices in the first switch state of each energy-consuming device in the current energy-consuming device set that are in the closed state is obtained, and the first switch state of the energy-consuming device corresponding to the minimum average power value is corrected to the open state; if the updated energy consumption estimation data is still less than the energy consumption data of the energy-consuming device group, the above-mentioned correction process will continue to be performed on the corrected first switch state until the energy consumption estimation data is equal to or greater than the energy consumption data of the energy-consuming device group, or all energy-consuming devices in the current energy-consuming device set are corrected, at which point the corrected first switch state is the second switch state of the energy-consuming devices in the current energy-consuming device set.
[0133] For the first switch state of each time interval of a current energy-consuming device set, the first switch state of the current energy-consuming device set in each time interval is modified in chronological order, so as to obtain the second switch state of the energy-consuming devices in the current energy-consuming device set in each time interval in a period.
[0134] Continuing from the above, after obtaining the second switch state of the concentrated energy-consuming devices of the current energy-consuming device in each time interval in a time period, the energy consumption data corresponding to the second switch state of the concentrated energy-consuming devices of the current energy-consuming device is removed from the energy consumption data of the energy-consuming device group to update the energy consumption data of the energy-consuming device group.
[0135] For example, the current energy-consuming device set C in each time interval of a period is obtained. 1 The second switch states are X 1=(0,1,1,0),X 2 =(0,1,1,1),X 3 =(1,1,1,0), current energy-consuming device set C 1 The average power of the energy-consuming devices in the set C is (90, 100, 110, 120). 1 The energy data corresponding to the second switch state of the energy-consuming device is (210, 330, 300), and the energy data Y of the energy-consuming device group is (y 0 ,y 1 ,y 2 ,y 3 )=(0, 400, 500, 600) to remove the energy consumption data corresponding to the second switch state of the energy-consuming device in the current energy-consuming device group, thereby obtaining the updated energy consumption data Y=(y 0 ,y 1 ,y 2 ,y 3 )=(0,190,170,300).
[0136] Step S40: forming a switch state set of the plurality of energy-consuming devices in a time period according to the second switch state of each energy-consuming device in each energy-consuming device set in each time interval.
[0137] The switch state set includes the second switch states of multiple energy-consuming devices in the energy-consuming device group in each time interval in a period of time. 1 The second switch states in three time intervals in a period are X 1 =(0,1,1,0),X 2 =(0,1,1,1),X 3 =(1,1,1,0), energy-consuming equipment set C 2 The second switch states in three time intervals in a period are X 1 =(1,1,1,0),X 2 =(0,1,1,1),X 3 =(0, 1, 1, 1), then the switch state set of the plurality of energy-consuming devices in a period of time can be expressed as (X' 1 , X' 2 , X' 3 ). Among them, X' 1 =(0,1,1,0,1,1,1,0),X' 2 =(0,1,1,1,0,1,1,1),X' 3 =(1,1,1,0,0,1,1,1).
[0138] In one embodiment, the switch status analysis method of the energy-consuming device of the present application further includes: obtaining energy consumption data of each of the energy-consuming devices in a time period according to the switch status set of the multiple energy-consuming devices in a time period.
[0139] Specifically, according to the second switch state of an energy-consuming device in each time interval in the switch state set and the average power of the energy-consuming device, the energy consumption data of each energy-consuming device in a time period can be obtained. For example, the second switch state of a TV set in four time intervals in a time period is (0, 1, 1, 0), where each time interval is 1s, and the average power of the TV set is 120W, then the energy consumption data of the TV set in a time period is 2s×120W.
[0140] In one embodiment, after obtaining the energy consumption data of each of the energy-consuming devices in a time period through the above-mentioned analysis method, the energy consumption data of each of the energy-consuming devices in a time period is also sent to the client. The client is the same or similar to the above-mentioned one and will not be described in detail here. By obtaining the energy consumption data of each of the energy-consuming devices in a time period, the energy consumption of each energy-consuming device in a time period can be determined. In this case, when using each energy-consuming device in the future, the user can adjust the switch state of the energy-consuming device with high energy consumption in a targeted manner to save energy.
[0141] The present application also provides a switch state analysis system for energy-consuming devices, which is used to determine a switch state set of an energy-consuming device group in each time interval in a period of time, wherein the switch state set includes a second switch state of the energy-consuming device group in each time interval in a period of time.
[0142] See also Figure 6 , Figure 6 The module diagram of the switch state analysis system of the energy-consuming device of the present application in one embodiment is shown. Figure 6 As shown, the switch state analysis system 600 includes: an acquisition module 601, a grouping module 602, a second switch state determination module 603, and a switch state set determination module 604. The switch state analysis system 600 can be applied in Figure 1 or Figure 2 For example, in the form of software installed in the electronic device shown. Figure 1 or Figure 2 The electronic device shown is used to implement the corresponding functions.
[0143] The acquisition module 601 is used to acquire the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group.
[0144] The average power is the average value of the power consumed by each energy-consuming device within a preset time. The preset time may be a period or an integer multiple of the period, but is not limited thereto. In one embodiment, the average power P of each energy-consuming device i The energy consumption data can be obtained by starting each energy-consuming device individually within the preset time. In another embodiment, the average power P of each energy-consuming device i The rated power of each energy-consuming device can be used for approximation. 0 ,....,y T ) includes: the energy consumption data Y′=(y 1 ,....,y T ) and the initial energy consumption data y of the energy-consuming equipment group 0 .
[0145] The time interval t includes but is not limited to: one or more seconds, one or more minutes, one or more hours, one or more days, one or more weeks, or one or more months, etc. A plurality of the time intervals t constitute a time period. T is the number of time intervals in a time period. For example, assuming that the time period is one day, the time interval t can be every minute, every hour, etc. of the day. Alternatively, a time period is divided into multiple time intervals according to the update cycle of the energy metering device when measuring energy data. For example, if the time period is 1 hour and the update cycle is 6 seconds, then every 6 seconds is a time interval, and the number of time intervals T in a time period is 600. i∈N, N represents the number of the multiple energy-consuming devices.
[0146] In one embodiment, the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group may be pre-stored in the storage device so that the switch state analysis system 600 of the energy-consuming device can be obtained from Figure 1 or Figure 2 The above data is obtained from the storage device of the electronic device shown.
[0147] In one embodiment, the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group can be obtained by an energy consumption metering device that is in communication with the client and / or the electronic device. Figure 2 The electronic device 200 is connected to the client and the energy metering device for communication, and obtains the average power of each energy-consuming device sent by the client and the energy consumption data Y of the energy-consuming device group sent by the energy metering device. 0 ,....,y T). For another example, after the client communicates with the energy metering device and obtains the energy consumption data of the energy consumption device group, the energy consumption data of the energy consumption device group and the average power of each energy consumption device are sent to Figure 2 As another example, when the user inputs the average power into the energy metering device or the energy metering device has the function of monitoring the average power of each energy-consuming device, Figure 2 The electronic device 200 shown may also be connected to the energy consumption metering device for communication only, so as to obtain the average power of each of the energy consumption devices and the energy consumption data of the energy consumption device group.
[0148] The electronic device obtains one or more energy-consuming device sets according to the acquired average power of each energy-consuming device and the energy consumption data of the energy-consuming device group, and obtains the second switch state of the energy-consuming device in the current energy-consuming device set in each time interval in a period.
[0149] The grouping module 602 groups the energy-consuming device group according to the average power of each of the energy-consuming devices to obtain one or more energy-consuming device sets.
[0150] In one embodiment, before the energy-consuming device group is grouped, the average power of the energy-consuming devices in the energy-consuming device group is sorted according to size to obtain an average power sequence P arranged in ascending order. 1 ,P 2 ,...,P N , which can improve the efficiency of executing grouping operations, where P 1 <P 2 ... <P N .
[0151] When performing the grouping operation, the grouping module 602 repeatedly performs the following operations based on the continuously updated energy-consuming device group to generate multiple energy-consuming device sets {C 1 , C 2 ……C K}. Where K is the number of energy-consuming equipment sets.
[0152] The grouping module 602 assigns the energy-consuming devices corresponding to the minimum value and the second minimum value of the average power in the energy-consuming device group to the current energy-consuming device set.
[0153] It should be noted that the energy-consuming device group will be updated according to each grouping result. For example, initially, the energy-consuming device group includes 10 energy-consuming devices, then the energy-consuming devices corresponding to the minimum and second minimum average power values among the 10 energy-consuming devices are assigned to the current energy-consuming device set C. 1 If the first energy-consuming device set C 1There are 3 energy-consuming devices in the set, then when generating the second energy-consuming device set C 2 When , the energy consuming device group includes the remaining 7 energy consuming devices, and the energy consuming devices corresponding to the minimum value and the second minimum value of the average power among the remaining 7 energy consuming devices are assigned to the current energy consuming device set C2.
[0154] The grouping module 602 determines whether the average power of the remaining energy-consuming devices in the energy-consuming device group meets the preset grouping condition of the current energy-consuming device set. It should be noted that before making the judgment, the energy-consuming devices in the current energy-consuming device set need to be sorted from small to large according to the average power. Among them, the preset grouping condition of the current energy-consuming device set can be expressed by formula (1):
[0155]
[0156] Among them, |C| is the total number of energy-consuming devices in the current energy-consuming device set. For example, before building the energy-consuming device set C 1 At the initial time, the current energy-consuming equipment set C 1 There are two energy-consuming devices in the group. When judging according to formula (1), if the judgment result is yes, there are energy-consuming devices in the remaining devices that meet the preset grouping conditions, and then the current energy-consuming device concentration C 1 The total number of energy-consuming devices in the energy-consuming device group will increase according to the judgment result. It should be noted that it is judged again whether the average power of the remaining energy-consuming devices in the energy-consuming device group meets the current energy-consuming device group C. 1 When the preset grouping conditions are met, the current energy-consuming device group C of the added energy-consuming device needs to be added again. 1 The energy-consuming devices in the system are sorted in ascending order according to their average power for further judgment.
[0157] Among them, c j is the average power corresponding to each energy-consuming device in the current energy-consuming device set. j is the ranking number of the average power corresponding to each energy-consuming device. For example, the average powers corresponding to two energy-consuming devices in the current energy-consuming device set are c 1 、c 2 , where c 1 <c 2 δ is a preset error, and the preset error is determined according to the sensitivity Δf of the energy data. In one embodiment, the preset error δ is twice the sensitivity Δf of the energy data, but is not limited thereto. The sensitivity Δf of the energy data will be described in detail later. Wherein, P i It is the average power corresponding to other energy-consuming devices that are not included in the energy-consuming device set.
[0158] If the judgment result is yes, the energy-consuming devices that meet the grouping condition are grouped into the current energy-consuming device set. 1 There are two energy-consuming devices in the group. If the average power of the energy-consuming device group is P 3 The energy-consuming devices satisfy the current energy-consuming device set C 1 The preset grouping condition is P 3 The corresponding energy-consuming equipment belongs to the current energy-consuming equipment set. And according to the updated current energy-consuming equipment set C 1 Re-judge.
[0159] If the result of the judgment is no, the current energy-consuming device set is constructed, and the energy-consuming devices that have completed grouping are removed from the energy-consuming device group to update the energy-consuming device group. 2 The average power is P 4 , P 5 , P 6 The energy-consuming devices corresponding to each of them are removed from the energy-consuming device group with an average power of P 4 , P 5 , P 6 The energy-consuming devices corresponding to each other are used to update the energy-consuming device group.
[0160] The grouping module 602 repeatedly performs the above operations for the energy-consuming devices that have not been grouped, until the generated multiple energy-consuming devices include all the energy-consuming devices.
[0161] The second switch state determination module 603 is used to perform the following operations on each current energy-consuming device set in turn according to the analysis order of each energy-consuming device set: determine the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a time period based on the energy consumption data of the energy-consuming device group; correct the first switch state based on the comparison result of the energy consumption estimation data corresponding to each first switch state and the energy consumption data of the energy-consuming device group to obtain the second switch state of the energy-consuming device in the current energy-consuming device set in each time interval in a time period, which is used to update the energy consumption data of the energy-consuming device group for obtaining the second switch state of the next energy-consuming device set.
[0162] The analysis sequence refers to the sequence of executing operations for acquiring the second switch states of the energy-consuming devices in the current energy-consuming device set.
[0163] In one embodiment, the analysis order is determined according to the sorting result between the maximum values of the average power of the energy-consuming devices in each of the energy-consuming device sets. Specifically, according to the average power of each energy-consuming device in each energy-consuming device set, the maximum value of the average power of the energy-consuming devices in each energy-consuming device set is obtained, and the energy-consuming device sets are sorted according to the maximum value corresponding to each energy-consuming device set to generate an analysis order from large to small. According to the analysis order from large to small, the operation of obtaining the second switch state of the energy-consuming devices in the current energy-consuming device set is performed on each current energy-consuming device set in turn.
[0164] The second switch state determination module 603 determines the first switch state of each energy-consuming device in the current energy-consuming device set at each time interval in a period of time according to the energy consumption data of the energy-consuming device group.
[0165] In one embodiment, when the amount of change in the energy consumption data of the energy-consuming device group in adjacent time intervals and the switch state change event corresponding to the adjacent time intervals satisfy a preset error constraint, a minimization result of the switch state change event is determined. Based on the minimization result, the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a period is obtained.
[0166] When analyzing the first switch state of the first energy-consuming device set according to the analysis order, the energy consumption data of the energy-consuming device group is the energy consumption of the multiple energy-consuming devices in each time interval obtained, and the energy consumption data can be expressed by the following formula:
[0167]
[0168] in, is the energy consumption of each energy-consuming device in the time interval t. It should be noted that the energy consumption data of the energy-consuming device group will be updated according to the second switch state of each current energy-consuming device set. For example, after analyzing the second switch state of the first energy-consuming device set, when sequentially analyzing the second switch state of the second energy-consuming device set, the energy consumption data y t The energy consumption corresponding to the second switch state of the first energy-consuming device set is removed from the energy consumption data y to update the energy consumption data y t .
[0169] According to the change K of the energy consumption data of the energy-consuming equipment group in adjacent time intervals t It can be obtained whether there is a switch state change event in the current energy-consuming equipment set, and the change amount K of the energy consumption data t for:
[0170] K t =|y t -yt-1 | (3)
[0171] Whether each energy-consuming device in the current energy-consuming device set has a set of switch state change events and available change vectors Δ t The switch state change event refers to a change in the switch state of the energy-consuming device within an adjacent time interval. For example, the switch state of an energy-consuming device changes from an on state to an off state within an adjacent time interval, or the switch state of an energy-consuming device changes from an off state to an on state within an adjacent time interval. In the embodiment of the present application, the change vector Δ t The element 1 in the equation indicates that the energy-consuming device corresponding to the element has a switch state change event in the adjacent time interval, and the change vector Δ t The element being 0 represents that the energy-consuming device corresponding to the element has no switch state change event in adjacent time intervals.
[0172] Among them, Δ t =|X t -X t-1 |. Among them, X t X is the switch status of each energy-consuming device in the current energy-consuming device set within the time interval t. t-1 is the switch state of each energy-consuming device in the current energy-consuming device set within the time interval t-1. t The element 1 in the vector represents that the energy-consuming device corresponding to the element is in the on state during the time interval t. t An element in the vector being 0 represents that the energy-consuming device corresponding to the element is in a closed state during the time interval t-1.
[0173] In the implementation of the present application, the sparse nature of switch state change events is utilized to convert the process of non-intrusive load monitoring and analysis of whether a switch state change event occurs in an energy-consuming device into: solving a sparse optimization problem under a preset error constraint, wherein the sparse optimization problem is to minimize the number of switch state change events of the current energy-consuming device set. The sparse optimization problem can be expressed by the following formula:
[0174] min||Δ t || 0 (4)
[0175] Wherein, formula (4) indicates that in adjacent time intervals, the number of switch state change events of the current energy-consuming device set is the least, that is, the change vector Δ t The number of non-zero elements in is the least. Among them, Δ t ∈{0, 1} N ,||Δ t || 0≤U, where U is the upper threshold of the switch state change event.
[0176] The preset error constraint includes: under the influence of the switch state change event of the energy-consuming device in the current energy-consuming device set, the difference between the average power of each energy-consuming device in the current energy-consuming device set and the change amount of the energy consumption data of the energy-consuming device group in adjacent time intervals must meet the preset error. In the embodiment of the present application, the preset error constraint can be expressed by the following formula:
[0177] ||Δ t PK t || 2 <δ (5)
[0178] Wherein, P represents the average power vector of the energy-consuming devices in the current energy-consuming device set. Wherein, the preset error δ in the error constraint is determined according to the sensitivity Δf of the energy-consuming data. In an embodiment of the present application, the preset error δ is equal to twice the sensitivity Δf of the energy-consuming data.
[0179] The sensitivity Δf of the energy usage data is the upper limit of the energy usage data in each time interval in a period of time. and the lower limit of energy data y t The sensitivity Δf of the energy data can be expressed by the following formula:
[0180]
[0181] in, Due to the influence of external energy supply factors, energy metering equipment factors, active devices in energy-consuming equipment and other factors, the energy consumption data y at each time interval t There is fluctuation, that is, the energy consumption data y in each time interval t Upper limit of energy in use data and the lower limit of energy data y t The sensitivity Δf of the energy data can be determined by analyzing the energy data in multiple time periods. Specifically, the upper limit of the energy data corresponding to each time interval is determined by analyzing the energy data in multiple time periods. and the lower limit of energy data y t , and then the sensitivity Δf of the energy data can be determined.
[0182] When solving the sparse optimization problem of minimizing the number of switch state change events under the limitation of the preset error constraint, it is necessary to convert the above sparse optimization problem into an approximate optimization problem in the interval from 0 to 1:
[0183] Δ t ∈[0, 1] N (7)
[0184] Formula (7) represents the solution of the change vector Δ t The values of the elements in are in the range of 0 to 1. The conversion of the above sparse optimization problem into an approximate optimization problem in the range of 0 to 1 is obtained based on the grouping condition described in formula (1). The condition restricted by formula (1) is that the average power difference of multiple energy-consuming devices involved in the decoding process cannot be too large, so that the sparse optimization problem can be converted into an approximate optimization problem in the range of 0 to 1.
[0185] However, the above approximate optimization problem is a 0-norm approximate optimization problem, which is an NP-hard problem. Therefore, it is necessary to convert the above 0-norm approximate optimization problem into a 1-norm approximate optimization problem of convex optimization for solution:
[0186] min||Δ t || 1 (8)
[0187] It should be noted that the approximate optimization problem of the 0 norm and the approximate optimization problem of the 1 norm are equivalent under certain conditions. When the change amount of the energy consumption data of the energy-consuming equipment group in adjacent time intervals and the switch state change event corresponding to the adjacent time intervals satisfy the preset error constraint shown in formula (5), the approximate optimization problem of the 1 norm shown in formula (8) is solved in the interval from 0 to 1. Among them, solving the approximate optimization problem of the 1 norm can obtain the change vector Δ t The optimized solution of , can determine the minimization result of the switch state change event. The minimization result of the switch state change event is a value in the range of 0 to 1.
[0188] The second switch state determination module 603 obtains the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a period according to the minimization result.
[0189] In one embodiment, based on the minimization result and the initial switching state of each energy-consuming device in the current energy-consuming device set, an intermediate result of the first switching state of each energy-consuming device in the current energy-consuming device set in each time interval is determined; and the intermediate result of the first switching state in each time interval is used as the switching probability to generate the first switching state.
[0190] In a specific embodiment, according to the energy consumption data Y of the energy-consuming equipment group, 0 ,....,y T ), for each adjacent time interval, the change in energy data K is solved t, the change K of each adjacent time interval t Substituting into formula (8), we can obtain the minimization result Δ of the switch state change events in each adjacent time interval: 1 , Δ 2 ..., Δ T Among them, the minimization result Δ 1 is based on the energy consumption data y of the first time interval 1 and the energy data y for the initial time interval 0 The change in the amount of T It is based on the energy consumption data y of the last time interval in a period T and the energy consumption data y of the previous time interval T-1 The energy data y of the initial time interval is obtained. 0 The function of is that after obtaining the usage data of the value, the switch status of the energy-consuming equipment can be accurately analyzed. In one embodiment, the energy usage data y of the initial time interval 0 is 0, and it can be determined that the initial switch state of each energy-consuming device in the energy-consuming device group in the initial time interval is off. In other embodiments, the energy consumption data y of the initial time interval 0 It may also be other values that can directly infer the initial switching state of each energy-consuming device in the energy-consuming device group.
[0191] According to the minimization result Δ 1 , Δ 2 ..., Δ T and the initial switch state of each energy-consuming device in the current energy-consuming device set, an intermediate result of the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval can be determined.
[0192] X t =X t-1 ⊙(1-Δ t-1 )+(1-X t-1 )⊙Δ t-1 (9)
[0193] The ⊙ symbol represents the Hadamard product of two matrices with the same number of rows and columns, and the 1 in formula (9) represents the intermediate result X of the first switch state. t-1 A matrix with the same number of columns and rows, where all elements are 1.
[0194] Specifically, the minimization result Δ 1 and the first switch state X of each energy-consuming device in the current energy-consuming device set 0 Substituting into formula (9), the intermediate result X of the first switch state of each energy-consuming device in the current energy-consuming device set within the first time interval can be determined:1 , and the minimization result and the corresponding first switch state X t Substituting into formula (9), the intermediate result X of the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a period can be determined: 1 , X 2 ..., X T .
[0195] The intermediate result X of the first switch state of the current energy-consuming device set 1 , X 2 ..., X T The value of is between 0 and 1. A first switch state with a value of 0 or 1 can be obtained by performing a rounding operation on the intermediate result.
[0196] In a specific embodiment, the rounding operation is to use the intermediate result of the first switch state in each time interval as the switch probability to generate the first switch state. Specifically, the element in the intermediate result of the first switch state is used as the probability to generate 1, and the difference between 1 and the element in the intermediate result of the first switch state is used as the probability to generate 0. For example, the intermediate result X of the first switch state of the current energy-consuming device set in a time interval is 1 is (0.1, 0.2, 0.8, 0.9), the intermediate result X of the first switch state is 1 Input the switch state generator, taking 0.9 as an example, the switch state generator outputs 1 with a probability of 0.9 and outputs 0 with a probability of 0.1, and the output of the switch state generator is used as the first switch state of the current energy-consuming device set in the time interval.
[0197] After obtaining the first switch state of the current energy-consuming device set, it is necessary to correct the first switch state of the current energy-consuming device set.
[0198] Specifically, the first switch state is corrected based on the comparison result of the energy consumption estimation data corresponding to each first switch state and the energy consumption data of the energy-consuming device group to obtain the second switch state of the energy-consuming devices in the current energy-consuming device set in each time interval in a time period, which is used to update the energy consumption data of the energy-consuming device group for obtaining the second switch state of the next energy-consuming device set.
[0199] The energy consumption estimation data of the current energy-consuming device set is the vector product of the first switch state of the current energy-consuming device set and the average power of each energy-consuming device in the current energy-consuming device set. 2 The first switch state X 2 is (0, 1, 1, 1), the current energy-consuming device set C 2The average power of each energy-consuming device in is (70, 80, 90, 100), then the current energy-consuming device set C in the second time interval is 2 The energy consumption estimation data is 270. The energy consumption estimation data will be updated according to each corrected first switch state in a subsequent correction process to obtain updated energy consumption estimation data.
[0200] The following embodiment is a correction process for the first switch state of each time interval in an energy-consuming device set, by performing the following correction operation on the first switch state in each time interval of each energy-consuming device set to obtain the second switch state in each time interval of each energy-consuming device set.
[0201] In one embodiment, by determining the size of the energy consumption estimation data and the energy consumption data of the energy-consuming device group, the first switch state is corrected based on the average power of each energy-consuming device in the current energy-consuming device set to obtain the second switch state of the energy-consuming devices in the current energy-consuming device set in each time interval in a time period.
[0202] For example, in each time interval of a period, if the energy consumption estimation data is greater than the energy consumption data of the energy-consuming device group, the average power of the energy-consuming devices in the first switch state of each energy-consuming device in the current energy-consuming device set that are in the on state is obtained, and the first switch state of the energy-consuming device corresponding to the maximum average power is corrected to the off state. If the updated energy consumption estimation data is still greater than the energy consumption data of the energy-consuming device group, the above correction process will continue to be performed on the corrected first switch state until the energy consumption estimation data is equal to or less than the energy consumption data of the energy-consuming device group, or all energy-consuming devices in the current energy-consuming device set are corrected.
[0203] Based on the above corrected first switch state, the judgment is made:
[0204] If the energy consumption estimation data is equal to the energy consumption data of the energy consumption device group, or all energy consumption devices in the current energy consumption device set are corrected, then the corrected first switch state is the second switch state of the energy consumption devices in the current energy consumption device set.
[0205] Alternatively, if the energy consumption estimation data is smaller than the energy consumption data of the energy consumption device group, the average power of the energy consumption devices in the closed state among the first switch states of each energy consumption device in the current energy consumption device set is obtained, and the first switch state of the energy consumption device corresponding to the minimum average power value is corrected to the open state; if the updated energy consumption estimation data is still smaller than the energy consumption data of the energy consumption device group, the above correction process will continue to be performed on the corrected first switch state until the energy consumption estimation data is equal to or greater than the energy consumption data of the energy consumption device group, or all energy consumption devices in the current energy consumption device set are corrected, and at this time, the corrected first switch state is the second switch state of the energy consumption devices in the current energy consumption device set.
[0206] For another example, within each time interval in a time period, if the energy consumption estimation data is less than the energy consumption data of the energy-consuming device group, the average power of the energy-consuming devices in the first switch state of each energy-consuming device in the current energy-consuming device set that are in the closed state is obtained, and the first switch state of the energy-consuming device corresponding to the minimum average power value is corrected to the open state; if the updated energy consumption estimation data is still less than the energy consumption data of the energy-consuming device group, the above-mentioned correction process will continue to be performed on the corrected first switch state until the energy consumption estimation data is equal to or greater than the energy consumption data of the energy-consuming device group, or all energy-consuming devices in the current energy-consuming device set are corrected, at which point the corrected first switch state is the second switch state of the energy-consuming devices in the current energy-consuming device set.
[0207] For the first switch state of each time interval of a current energy-consuming device set, the first switch state of the current energy-consuming device set in each time interval is modified in chronological order, so as to obtain the second switch state of the energy-consuming devices in the current energy-consuming device set in each time interval in a period.
[0208] Continuing from the above, after obtaining the second switch state of the concentrated energy-consuming devices of the current energy-consuming device in each time interval in a time period, the energy consumption data corresponding to the second switch state of the concentrated energy-consuming devices of the current energy-consuming device is removed from the energy consumption data of the energy-consuming device group to update the energy consumption data of the energy-consuming device group.
[0209] For example, the current energy-consuming device set C in each time interval of a period is obtained. 1 The second switch states are X 1 =(0,1,1,0),X 2 =(0,1,1,1),X 3 =(1,1,1,0), current energy-consuming device set C 1 The average power of the energy-consuming devices in the set C is (90, 100, 110, 120).1 The energy data corresponding to the second switch state of the energy-consuming device is (210, 330, 300), and the energy data Y of the energy-consuming device group is (y 0 ,y 1 ,y 2 ,y 3 )=(0, 400, 500, 600) to remove the energy consumption data corresponding to the second switch state of the energy-consuming device in the current energy-consuming device group, thereby obtaining the updated energy consumption data Y=(y 0 ,y 1 ,y 2 ,y 3 )=(0,190,170,300).
[0210] The switch state set determination module 604 is used to form a switch state set of the plurality of energy-consuming devices in a time period according to the second switch state of each energy-consuming device in each energy-consuming device set in each time interval.
[0211] The switch state set includes the second switch states of multiple energy-consuming devices in the energy-consuming device group in each time interval in a period of time. 1 The second switch states in three time intervals in a period are X 1 =(0,1,1,0),X 2 =(0,1,1,1),X 3 =(1,1,1,0), energy-consuming equipment set C 2 The second switch states in three time intervals in a period are X 1 =(1,1,1,0),X 2 =(0,1,1,1),X 3 =(0, 1, 1, 1), then the switch state set of the plurality of energy-consuming devices in a period of time can be expressed as (X' 1 , X' 2 , X' 3 ). Among them, X' 1 =(0,1,1,0,1,1,1,0),X' 2 =(0,1,1,1,0,1,1,1),X' 3 =(1,1,1,0,0,1,1,1).
[0212] In one embodiment, the switch status analysis system of the energy-consuming device of the present application also includes an energy usage data determination module (not shown), which obtains energy usage data of each of the energy-consuming devices in a time period based on the switch status set of the multiple energy-consuming devices in a time period.
[0213] Specifically, according to the second switch state of an energy-consuming device in each time interval in the switch state set and the average power of the energy-consuming device, the energy consumption data of each energy-consuming device in a time period can be obtained. For example, the second switch state of a TV set in four time intervals in a time period is (0, 1, 1, 0), where each time interval is 1s, and the average power of the TV set is 120W, then the energy consumption data of the TV set in a time period is 2s×120W.
[0214] In one embodiment, after the switch status analysis system 600 of the energy-consuming device obtains the energy usage data of each of the energy-consuming devices in a time period, it also sends the energy usage data of each of the energy-consuming devices in a time period to the client. The client is the same or similar to the above-mentioned one and will not be described in detail here. By obtaining the energy usage data of each of the energy-consuming devices in a time period, the energy usage of each energy-consuming device in a time period can be determined. In this case, when using each energy-consuming device in the future, the user can adjust the switch status of the energy-consuming device with high energy consumption in a targeted manner to save energy.
[0215] Based on the switch state analysis method of the energy-consuming device, the present application also provides an energy data encryption method, which is applied to energy metering equipment. The energy data encryption method of the present application can determine the noise in each time interval according to the total accuracy that the user hopes to achieve, so that the total accuracy of deciphering the switch state of the user's energy-consuming device through the energy data in each time interval after adding noise meets the total accuracy expected by the user.
[0216] In one embodiment, the energy metering device obtains the total accuracy rate input by the user, selects a differential privacy coefficient that satisfies the total accuracy rate, and determines the distribution parameters of the probability density distribution of the noise corresponding to the differential privacy coefficient, and then generates noise that satisfies the total accuracy rate based on the probability density distribution that meets the above distribution parameters. The differential privacy coefficient is used to represent the standard for privacy protection of energy data, and the smaller the differential privacy coefficient, the stricter the privacy protection standard of differential privacy.
[0217] For example, differential privacy is achieved by adding noise whose probability density distribution conforms to the Laplace distribution to the energy usage data, wherein the distribution parameter of the probability density distribution is related to the differential privacy coefficient ε and the sensitivity Δf of the energy usage data. For example, the distribution parameter λ of the Laplace distribution is the ratio of the sensitivity Δf of the energy usage data to the differential privacy coefficient ε, that is,
[0218] After adding noise whose probability density distribution conforms to the Laplace distribution to the energy consumption data, the energy consumption data after adding noise is used as the input of the approximate optimization problem of the 1 norm shown in formula (8) by using the switch state analysis method of the energy consumption device described above, and then the minimization result of the switch state change event of each energy consumption device set can be solved. According to the minimization result, the second switch state of each energy consumption device in each energy consumption device set in each time interval in a period of time can be determined.
[0219] In this application, the accuracy rate α of each energy-consuming device set in a period of time is i It can be expressed by the following formula:
[0220]
[0221] in, The second switch state of each energy-consuming device in a time period obtained by encrypting the data is a plurality of energy-consuming devices. The actual switching status of multiple energy-consuming devices is collected for each energy-consuming device in a time period.
[0222] The expected accuracy of each energy-consuming device set in the time period is constrained as shown in the following formula (11):
[0223]
[0224] Where T is the total number of time intervals in a period, N is the total number of energy-consuming devices in the energy-consuming device group, ε is the differential privacy coefficient, δ is the preset error, and i represents the i-th energy-consuming device set. Among them, each energy-consuming device set is sorted from large to small according to the maximum value of the average power of its energy-consuming devices, and the maximum value of the average power in the first energy-consuming device set (i=1) is greater than the maximum value of the average power in other energy-consuming device sets. i ′, b(δ, ε), and B(δ, ε) can be expressed by formula (12), formula (13), and formula (15), respectively.
[0225]
[0226] in, is the sum of the average power of U energy-consuming devices. Specifically, the maximum value of the concentrated average power of the i-th energy-consuming device can be obtained by Indicates that The corresponding U average powers are the average power ratios of the energy-consuming equipment group. The average power corresponding to the smallest U energy-consuming devices. U is the upper threshold of the switch state change event. For example, the average power in the energy-consuming device group is (800, 700, 600, 500, 400, 300, 200, 100), the upper threshold U is 3, and the maximum value of the average power of each energy-consuming device in the second energy-consuming device set is 600. Then the three average powers are 500, 400, and 300 respectively. m k is the expected lower bound of the accuracy of each energy-consuming device set, P k The average power of each energy-consuming device is the average power of each energy-consuming device, ||P k || 2 P k The 2-norm of N k The number of energy-consuming devices is concentrated for each energy-consuming device.
[0227]
[0228] in, A 1 =4b 2 C(P)+8δbC(P)-8bN,B 1 =6δbC(P)+8δ 2 C(P)-8δN,C 1 =3δ 2 C(P), where N is the total number of energy-consuming devices in the energy-consuming device group, ε is the differential privacy coefficient, δ is the preset error, C(P) is a constant related to the average power of the multiple energy-consuming devices, and P is a power vector composed of the average power of each energy-consuming device in the energy-consuming device group. It should be noted that the coefficient values of the polynomials recorded in formula (13) are not limited to the examples, and the coefficient values of the polynomials can be selected within a floating range based on the coefficient values of the above examples. For example, the range is from coefficient value +3 to coefficient value -3, then for example, A 1 The first coefficient value in the range is 1 to 7. 1 The value range of the second coefficient in is 5 to 11. 1 The value range of the third coefficient value in is -11 to -5. In other embodiments, it can also be a positive or negative percentage. In one embodiment, the constant C(P) can be expressed by formula (14), but is not limited thereto. In other embodiments, the constant C(P) can be set to the ratio of any constant to the 2-norm of the power vector P.
[0229]
[0230]
[0231] Among them, A2 =4m 2 -8δm-4mN||P|| 2 , B 2 =6δm-8δ 2 -4δN||P|| 2 , C 2 =3δ 2 , m=N||P|| 2 +2δ, where N is the total number of energy-consuming devices in the energy-consuming device group, ε is the differential privacy coefficient, and P is the power vector composed of the average power of each energy-consuming device in the energy-consuming device group. δ 3U ,δ 4U Both represent sparse constants, which are constants used to describe the difference between the maximum element value and the minimum element value in the power vector P. Specifically, for any vector C with a sparsity less than or equal to 3U, the vector C satisfies Among them, P L =(P i |P i ∈P,i∈L), , N is the number of elements in the power vector P. Since the identification matrix corresponds to the power vector P, the identification matrix is a one-dimensional matrix, so δ 3U It represents the constant that describes the difference between the maximum element value and the minimum element value in the power vector P. Wherein, U is the upper threshold of the switch state change event. δ 4U The corresponding constant is a constant that describes the difference between the maximum element value and the minimum element value in the power vector P when any vector C has a sparsity less than or equal to 4U. In other embodiments, any vector C that satisfies other sparsities can also be used to determine the sparse constant, and then determine the constant C(P). It should be noted that A 2 , B 2 , C 2 The polynomial coefficient values corresponding to A and m are not limited to the examples, and the coefficient values of each polynomial can be selected within a range. For example, the range is from coefficient value +3 to coefficient value -3, then A 2 The first coefficient value in the range is 1 to 7. 2 The second coefficient value in the range is -11 to -5, A 2 The third coefficient value in ranges from -7 to -1.
[0232] The expected accuracy of each energy-consuming device set is E[α i ], where α represents the total accuracy, then the expectation of the total accuracy E[α] can be expressed by the following formula:
[0233]
[0234] Among them, N i and N in formula (12) k Both are expressed as the number of concentrated energy-consuming devices for each energy-consuming device.
[0235] Based on the above understanding, formula (16) represents the relationship between the total accuracy α and the differential privacy coefficient ε.
[0236] It should be noted that the relationship between the total accuracy rate α and the differential privacy coefficient ε is not limited to the above implementation. The relationship is related to the implementation method of non-intrusive load monitoring. For example, the relationship between the total accuracy rate α and the differential privacy coefficient ε will change if the preset error constraints for solving the approximate optimization problem are different.
[0237] Based on the above understanding, the present application provides an encryption method for energy data, which can be Figure 7 The energy metering equipment shown is implemented.
[0238] See also Figure 7 , Figure 7 The schematic diagram of the structure of the energy metering device in one embodiment of the present application is shown as follows: Figure 7 As shown, the energy metering device 700 includes: a measuring device 701 , an input device 702 , a storage device 703 , and a processing device 704 .
[0239] The energy metering device 700 is exemplified as a smart meter, which is composed of a measurement unit, a data processing unit, a communication unit, etc. In addition to the basic electricity metering function of a traditional energy meter, it also has intelligent functions such as user-side control function and two-way data communication function in multiple data transmission modes.
[0240] The measuring device 701 is used to measure energy consumption data, wherein the energy consumption data is the energy consumption data of the energy consumption equipment group in each time interval in a period. The measuring device 701 is a measuring mechanism in the energy consumption metering device 700. The measuring device 701 samples the voltage and current, which can be converted into actual energy consumption data through the metering chip.
[0241] The input device 702 is used for external input. The input device 702 allows the user to input the total accuracy or set preset parameters in real time according to actual needs. The total accuracy represents the accuracy of parsing the switch states of the multiple energy-consuming devices in a period of time through the encrypted data of the energy-consuming data. Specifically, the total accuracy represents the ratio between the number of elements in the switch states of the multiple energy-consuming devices in a period of time obtained by analyzing the encrypted data and the product of the total number of energy-consuming devices and the total number of time intervals in a period of time. Among them, the encrypted data of the energy-consuming data is the energy-consuming data after adding noise. Among them, the preset parameters include: grouping parameters, the number of the multiple energy-consuming devices, the average power of the multiple energy-consuming devices, and the sensitivity of the energy-consuming data. The preset parameters can also be changed through the input device 702 according to the changes in the actual energy-consuming devices.
[0242] The input device 702 enables the user to interact with the energy metering device 700. The input device 702 includes a button, a keyboard, a mouse, a touchpad, etc. In other embodiments, the input device 702 may also include an audio unit, and the audio unit may include a speaker, a pickup, etc. The energy metering device 700 can interact with the user's voice through the audio unit. In this way, the energy metering device 700 can obtain the total accuracy of the user input through interaction with the user. For example, the user selects a pre-stored value of the total accuracy, and the value range of the pre-stored total accuracy is related to the processing capacity of the energy metering device 700. In practical applications, the total accuracy may also come from the input of an electronic device that is communicatively connected to the energy metering device 700. The electronic device may be any computer device that can be connected to the energy metering device 700 for network communication. Among them, the electronic device is communicatively connected to the energy metering device through its interface device.
[0243] The storage device 703 is used to store at least one program. In some embodiments, the storage device 703 includes one or more memories, which are used to execute the encryption method of energy data based on the technical idea of the present application when executed. In an embodiment, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. In some embodiments, the memory may also include a memory away from one or more processors, such as a network attached memory accessed via an RF circuit or an external port and a communication network, wherein the communication network may be the Internet, one or more intranets, local area networks, wide area networks, storage area networks, etc., or a suitable combination thereof. The memory controller may control the access of other components of the device such as the CPU and peripheral interfaces to the memory. In some embodiments, the storage device 703 also pre-stores information such as the average power of each of the energy-consuming devices of the user, or the sensitivity of the energy data corresponding to the user, so that the energy metering device can execute the encryption method of the energy data.
[0244] The processing device 704 is connected to the storage device 703. In some embodiments, the processing device 704 includes one or more processors, and the processing device 704 is used to call the at least one program to execute the encryption method of energy consumption data described in the present application. In an embodiment, the processor is operably coupled to a memory and / or a non-volatile storage device. More specifically, the processor can execute instructions stored in the memory and / or the non-volatile storage device to perform operations in the energy metering device, such as encrypting the energy consumption data of the energy consumption device group according to the generated noise to obtain the encrypted data. In this way, the processor may include one or more general-purpose microprocessors, one or more special-purpose processors, one or more field programmable logic arrays, or any combination thereof.
[0245] The processing device 704 can also be operably coupled to an interface unit of the energy metering device. Through the interface unit, the energy metering device 700 can interact with various other electronic devices, and enable users to interact with the energy metering device 700. The interface unit includes a network interface, a data line interface, etc. The network interface includes but is not limited to: an Ethernet network interface, a network interface based on a mobile network (3G, 4G, 5G, etc.), a network interface based on short-range communication (WiFi, Bluetooth, etc.), etc. The data line interface includes but is not limited to: a USB interface, RS232, etc.
[0246] See also Figure 8 , Figure 8 The following is a flow chart of an energy data encryption method according to an embodiment of the present application. Figure 8As shown, the encryption method includes: step S110, step S120, and step S130.
[0247] Step S110, obtaining a total accuracy rate of the input, wherein the total accuracy rate represents the accuracy of parsing the switching states of the plurality of energy-consuming devices in the time period through the encrypted data of the energy-consuming data.
[0248] The encrypted data is exemplified as the energy consumption data after adding noise mentioned above. The total accuracy rate represents the ratio between the number of elements in the switch state set of the multiple energy-consuming devices in a time period obtained by analyzing the encrypted data and the product of the total number of energy-consuming devices and the total number of time intervals in a time period. For example, the switch state set of the multiple energy-consuming devices in a time period can be obtained by the approximate optimization problem of the change of the encrypted data in each adjacent time interval and the 1 norm shown in formula (8), and the total accuracy rate α reflects the accuracy of the switch state set.
[0249] In one embodiment, the total accuracy rate α comes from the input of the input device 702 of the energy metering device 700. The input device 702 may include a button, a keyboard, a mouse, a touchpad, an audio unit, etc. The user inputs the total accuracy rate α to the energy metering device 700 through the input device 702. In another embodiment, the total accuracy rate α comes from the input of other electronic devices that are communicatively connected to the energy metering device 700. The electronic device may be any computer device that can be connected to the energy metering device 700 through network communication. The electronic device is connected to the energy metering device 700 through its interface device to achieve communication connection with the interface unit (not shown). The interface unit includes a network interface, a data line interface, etc. The network interface includes but is not limited to: an Ethernet network interface, a network interface based on a mobile network (3G, 4G, 5G, etc.), a network interface based on short-range communication (WiFi, Bluetooth, etc.), etc. The data line interface includes but is not limited to: a USB interface, RS232, etc. In another embodiment, the total accuracy rate α comes from the selection of a pre-stored value. For example, when the energy metering device 700 detects that no one is at home, it will automatically select a low total accuracy rate from the pre-stored values. This is because when no one is at home, the risk of illegal intrusion is greater, so the accuracy of the switch status information obtained by decoding needs to be reduced as much as possible.
[0250] In a specific embodiment, different modes can be set for user selection according to the size of the total accuracy rate. Examples of the modes are: unmanned mode, open mode, etc. Among them, the total accuracy rate corresponding to the unmanned mode is lower, and the total accuracy rate corresponding to the open mode is higher. Users can set deadlines for various modes according to actual needs. For example, from March 1, 2020 to March 7, 2020, a user's home is uninhabited. The user can set the energy metering device to unmanned mode and set the deadline of the unmanned mode to the above-mentioned time period. This allows the number of elements that are consistent with the actual situation to be smaller when parsing the switch states of the multiple energy-consuming devices through encrypted data corresponding to the lower total accuracy rate α.
[0251] According to the total accuracy α obtained in step S110, step S120 may be executed.
[0252] Step S120: Determine the differential privacy coefficient according to the total accuracy through a preset constraint relationship; wherein the preset constraint relationship refers to: the total accuracy is a constraint on the comprehensive result of the accuracy of each energy-consuming device set in the energy-consuming device group, and the expected upper and lower limits of the accuracy of each energy-consuming device set are constraints related to the differential privacy coefficient.
[0253] The energy-consuming device set is obtained by grouping the energy-consuming device group according to the average power of each of the energy-consuming devices.
[0254] The method of grouping the energy-consuming device group is the same or similar to that described above, and will not be described in detail here. After grouping, the grouping parameters of each energy-consuming device set can be obtained, and the grouping parameters include: the number N of energy-consuming devices in each energy-consuming device set i , the average power of each energy-consuming device and the concentrated energy-consuming devices.
[0255] In one embodiment, within the preset differential privacy coefficient range, the expected accuracy of each energy-consuming device set under each differential privacy coefficient is obtained according to the expected upper and lower limits of the accuracy of each energy-consuming device set, the constraints related to the differential privacy coefficient, and the preset parameters. According to the accuracy corresponding to each energy-consuming device set and the number of energy-consuming devices in each energy-consuming device set, the total accuracy corresponding to each differential privacy coefficient is obtained to determine the preset numerical correspondence between the total accuracy and the differential privacy coefficient; according to the total accuracy and the preset numerical correspondence, the differential privacy coefficient is determined.
[0256] Among them, the preset parameters include: grouping parameters, the number N of the multiple energy-consuming devices, the average power of the multiple energy-consuming devices, and the sensitivity Δf of the energy consumption data. The sensitivity Δf of the energy consumption data is the same or similar to that described above and will not be described in detail here. The preset differential privacy coefficient range corresponds to different noise ranges, and the amount of calculation required to encrypt energy data based on different noises is also different. Therefore, the preset differential privacy coefficient range can be determined according to the computing power of the energy consumption metering device.
[0257] For example, the expected upper and lower limits of the accuracy of each energy-consuming device set and the constraints related to the differential privacy coefficient are the constraint relationship shown in formula (11). The total accuracy is the constraint of the comprehensive result of the accuracy of each energy-consuming device set in the energy-consuming device group, which is the constraint relationship shown in formula (16). The preset differential privacy coefficient range is [a, b]. Each differential privacy coefficient between a and b and the preset parameters corresponding to each energy-consuming device set are used as inputs of formula (11), and the expected accuracy E[α i Based on formula (16), according to the expected accuracy E[α i ] and the number of energy-consuming devices in each energy-consuming device concentration, and obtain the expected total accuracy E[α] corresponding to each differential privacy coefficient. The expected total accuracy E[α] is used as the total accuracy α, and then a corresponding relationship between the total accuracy and preset values of multiple differential privacy coefficients can be determined.
[0258] It should be noted that the preset numerical value correspondence relationship can be pre-stored in the energy metering device for determining the differential privacy coefficient according to the obtained total accuracy, or the preset numerical value correspondence relationship is determined each time the encryption method is executed.
[0259] The differential privacy coefficient is determined according to the correspondence between the total accuracy rate and the preset numerical value.
[0260] In one embodiment, according to the total accuracy rate, a plurality of preliminary differential privacy coefficients satisfying the total accuracy rate are determined through the preset numerical value correspondence relationship, and the minimum value among the preliminary differential privacy coefficients is used as the differential privacy coefficient.
[0261] For example, the total accuracy is 40%. According to the correspondence between the total accuracy and the preset value, multiple preliminary differential privacy coefficients of 0.1, 0.2, and 0.3 are obtained. Since the smaller the differential privacy coefficient, the stricter the privacy protection standard of differential privacy. Therefore, in the embodiment of the present application, the minimum value of 0.1 in the preliminary differential privacy coefficient is selected as the differential privacy coefficient corresponding to the total accuracy.
[0262] Step S130: Generate noise according to the determined differential privacy coefficient to encrypt the energy usage data of the energy-consuming device group to obtain the encrypted data.
[0263] Determine a distribution coefficient based on the determined differential privacy coefficient and the sensitivity of the energy consumption data; wherein the determined distribution parameter is used to determine the probability density distribution of noise; generate noise based on the determined probability density distribution of noise to encrypt the energy consumption data of the energy consumption device group to obtain the encrypted data.
[0264] In one embodiment, the probability density distribution of the noise is a Laplace distribution. The distribution parameter λ of the Laplace distribution can be determined according to the ratio of the determined differential privacy coefficient ε and the sensitivity Δf of the energy data. Under the condition that the distribution parameter λ of the Laplace distribution is known, the noise satisfying the differential privacy coefficient ε can be obtained.
[0265] Adding the noise to the energy usage data in each time interval can achieve differential privacy of the energy usage data. It should be noted that adding noise that conforms to the Laplace distribution to the energy usage data in each time interval does not change the total amount of energy usage data in the period.
[0266] The present application also provides a method for generating noise for energy data, the method for generating noise for energy data is used to generate corresponding noise based on the total accuracy of an external input, and send the noise to the energy metering device so that the energy metering device can encrypt the energy data according to the noise. Fig. 9 The electronic device 910 is shown to perform. Fig. 9 The energy usage metering device 920 shown in FIG. 9 is used to encrypt the energy usage data in each time interval in a period based on the noise sent by the electronic device 910 .
[0267] See also Fig. 9 , Fig. 9 The structure diagram of the encryption processing system in one embodiment of the present application is shown as follows: Fig. 9 As shown, the encryption processing system includes: an electronic device 910 and an energy metering device 920.
[0268] The electronic device 910 includes: an interface device 911 , a storage device 913 , a processing device 914 , and an input device 912 .
[0269] The interface device 911 is used to communicate with the energy metering device 920. For example, the interface device 911 can send the noise generated by the electronic device 910 to the energy metering device 920. The interface device 911 includes a network interface, a data line interface, etc. The network interface includes but is not limited to: an Ethernet network interface device, a network interface device based on a mobile network (3G, 4G, 5G, etc.), a network interface device based on short-range communication (WiFi, Bluetooth, etc.), etc. The data line interface includes but is not limited to: a USB interface, RS232, etc. The interface device 911 is connected to the storage device 913, the processing device 914, the input device 912, the Internet, the input unit, etc.
[0270] The storage device 913 is used to store at least one program, and the at least one program is used to execute the steps of the noise generation method using energy data exemplified based on the technical idea of the present application when executed. In an embodiment, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. In some embodiments, the memory may also include a memory away from one or more processors, such as a network attached memory accessed via an RF circuit or an external port and a communication network, wherein the communication network may be the Internet, one or more intranets, a local area network, a wide area network, a storage area network, etc., or a suitable combination thereof. The memory controller may control access to the memory by other components of the device such as a CPU and a peripheral interface.
[0271] The input device 912 is used for external input, and the input device 912 can be used by the user to input the total accuracy in real time or set preset parameters according to actual needs. The input device 912 includes buttons, keyboards, mice, touch pads, etc. In other embodiments, the input device 912 can also include an audio unit, and the audio unit can include a speaker, a pickup, etc. The electronic device 910 can interact with the user's voice through the audio unit. For example, the total accuracy of the user input can be obtained by interacting with the user's voice.
[0272] The processing device 914 is connected to the input device 912, the storage device 913, and the interface device 911 for calling the at least one program to execute the noise generation method of energy data described in the present application, and send the noise to the energy metering device 920 through the interface device 911. In an embodiment, the processor is operably coupled to a memory and / or a non-volatile storage device. More specifically, the processor can execute instructions stored in the memory and / or the non-volatile storage device to perform operations in the electronic device 910, such as generating noise in each time interval in a period of time. In this way, the processor may include one or more general-purpose microprocessors, one or more special-purpose processors, one or more field programmable logic arrays, or any combination thereof.
[0273] See also Fig.10 , Fig.10 The figure shows a flow chart of a noise generation method using energy data in one embodiment of the present application. The noise generation method comprises: step S210, step S220, and step S230.
[0274] Step S210: Obtaining a total accuracy rate of the input, wherein the total accuracy rate represents the accuracy of parsing the switching states of the plurality of energy-consuming devices in the time period through the encrypted data of the energy-consuming data.
[0275] The encrypted data is exemplified as the energy consumption data after adding noise mentioned above. The total accuracy rate represents the ratio between the number of elements in the switch state set of the multiple energy-consuming devices in a time period obtained by analyzing the encrypted data and the product of the total number of energy-consuming devices and the total number of time intervals in a time period. For example, the switch state set of the multiple energy-consuming devices in a time period can be obtained by the approximate optimization problem of the change of the encrypted data in each adjacent time interval and the 1 norm shown in formula (8), and the total accuracy rate α reflects the accuracy of the switch state set.
[0276] In one embodiment, the total accuracy rate α is input from an input device (not shown) of an energy metering device that is communicatively connected to the electronic device 910. The input device may include a button, a keyboard, a mouse, a touch pad, an audio unit, etc. The user inputs the total accuracy rate α to the energy metering device through the input device. In another embodiment, the total accuracy rate α is input from Fig. 9The input of the electronic device 910 shown. In another embodiment, the total accuracy rate α comes from the selection of pre-stored values. For example, when the energy metering device 700 detects that no one is at home, it will automatically select a low total accuracy rate from the pre-stored values to prevent the user's privacy information from being leaked, and the total accuracy rate α can be sent to the electronic device 910 for it to generate corresponding noise according to the total accuracy rate α.
[0277] In a specific embodiment, different modes can be set for user selection according to the size of the total accuracy rate. Examples of the modes are: unmanned mode, open mode, etc. Among them, the total accuracy rate corresponding to the unmanned mode is lower, and the total accuracy rate corresponding to the open mode is higher. Users can set deadlines for various modes according to actual needs. For example, from March 1, 2020 to March 7, 2020, a user's home is uninhabited. The user can set the mode to unmanned mode through the electronic device 910 or through the energy metering device, and set the deadline of the unmanned mode to the above-mentioned time period. This allows the number of elements that are consistent with the actual situation to be concentrated in the switch states of the multiple energy-consuming devices parsed through the encrypted data corresponding to the lower total accuracy rate α.
[0278] According to the total accuracy α obtained in step S210, step S220 may be executed.
[0279] Step S220: Determine the differential privacy coefficient according to the total accuracy through a preset constraint relationship; wherein the preset constraint relationship refers to: the total accuracy is a constraint on the comprehensive result of the accuracy of each energy-consuming device set in the energy-consuming device group, and the expected upper and lower limits of the accuracy of each energy-consuming device set are constraints related to the differential privacy coefficient.
[0280] The energy-consuming device set is obtained by grouping the energy-consuming device group according to the average power of each of the energy-consuming devices.
[0281] Among them, the preset numerical value correspondence is determined according to the inequality relationship between the accuracy rate corresponding to one or more energy-consuming device sets in the energy-consuming device group and the differential privacy coefficient, and the preset parameters, wherein the energy-consuming device set is obtained by grouping the energy-consuming device group according to the average power of each of the energy-consuming devices. The method of grouping the energy-consuming device group is the same or similar to that described above and will not be described in detail here. After grouping, the grouping parameters of each energy-consuming device set can be obtained, and the grouping parameters include: the number of energy-consuming devices in each energy-consuming device set, and the average power of energy-consuming devices in each energy-consuming device set.
[0282] In one embodiment, within the preset differential privacy coefficient range, the expected accuracy of each energy-consuming device set under each differential privacy coefficient is obtained according to the expected upper and lower limits of the accuracy of each energy-consuming device set, the constraints related to the differential privacy coefficient, and the preset parameters. According to the accuracy corresponding to each energy-consuming device set and the number of energy-consuming devices in each energy-consuming device set, the total accuracy corresponding to each differential privacy coefficient is obtained to determine the preset numerical correspondence between the total accuracy and the differential privacy coefficient; according to the total accuracy and the preset numerical correspondence, the differential privacy coefficient is determined.
[0283] Among them, the preset parameters include: grouping parameters, the number N of the multiple energy-consuming devices, the average power of the multiple energy-consuming devices, and the sensitivity Δf of the energy consumption data. The sensitivity Δf of the energy consumption data is the same or similar to that described above and will not be described in detail here. The preset differential privacy coefficient range corresponds to different noise ranges, and the amount of calculation required to encrypt energy data based on different noises is also different. Therefore, the preset differential privacy coefficient range can be determined according to the computing power of the energy consumption metering device.
[0284] For example, the expected upper and lower limits of the accuracy of each energy-consuming device set and the constraints related to the differential privacy coefficient are the constraint relationship shown in formula (11). The total accuracy is the constraint of the comprehensive result of the accuracy of each energy-consuming device set in the energy-consuming device group, which is the constraint relationship shown in formula (16). The preset differential privacy coefficient range is [a, b]. Each differential privacy coefficient between a and b and the preset parameters corresponding to each energy-consuming device set are used as inputs of formula (11), and the expected accuracy E[α i Based on formula (16), according to the expected accuracy E[α i ] and the number of energy-consuming devices in each energy-consuming device concentration, and obtain the expected total accuracy E[α] corresponding to each differential privacy coefficient. The expected total accuracy E[α] is used as the total accuracy α, and then a corresponding relationship between the total accuracy and preset values of multiple differential privacy coefficients can be determined.
[0285] It should be noted that the preset numerical value correspondence relationship can be pre-stored in the electronic device for determining the differential privacy coefficient according to the obtained total accuracy, or the preset numerical value correspondence relationship is determined each time the noise generation method is executed.
[0286] The differential privacy coefficient is determined according to the correspondence between the total accuracy rate and the preset numerical value.
[0287] In one embodiment, according to the total accuracy rate α, a plurality of preliminary differential privacy coefficients satisfying the total accuracy rate are determined through the preset numerical correspondence relationship, and the minimum value among the preliminary differential privacy coefficients is used as the differential privacy coefficient.
[0288] For example, the total accuracy is 40%. According to the correspondence between the total accuracy and the preset value, multiple preliminary differential privacy coefficients of 0.1, 0.2, and 0.3 are obtained. Since the smaller the differential privacy coefficient, the stricter the privacy protection standard of differential privacy. Therefore, in the embodiment of the present application, the minimum value of 0.1 in the preliminary differential privacy coefficient is selected as the differential privacy coefficient corresponding to the total accuracy.
[0289] Step S230: Generate noise according to the determined differential privacy coefficient, and send the noise to the energy usage metering device so that the energy usage metering device encrypts the energy usage data according to the noise.
[0290] Specifically, a distribution coefficient is determined according to the determined differential privacy coefficient and the sensitivity of the energy usage data; wherein the distribution parameter is used to determine the probability density distribution of noise; and noise is generated according to the determined probability density distribution of noise.
[0291] In one embodiment, the probability density distribution of the noise is a Laplace distribution. The distribution parameter λ of the Laplace distribution can be determined according to the ratio of the determined differential privacy coefficient ε and the sensitivity Δf of the energy data. Under the condition that the distribution parameter λ of the Laplace distribution is known, the noise satisfying the differential privacy coefficient ε can be obtained.
[0292] The noise in each time interval satisfying the differential privacy coefficient ε obtained according to the above embodiment is sent to Figure 8 The energy usage metering device 920 is configured to encrypt the energy usage data according to the noise.
[0293] The energy metering device 920 includes: a measuring device 922, an interface device 921, a storage device 923, and a processing device 924. The measuring device 922 and the storage device 923 are the same or similar to those described above and will not be described in detail herein.
[0294] The interface device 921 is connected to the electronic device 910 for receiving the noise sent by the electronic device 910. The interface device 921 includes a network interface, a data line interface, etc. The network interface includes but is not limited to: an Ethernet network interface device, a network interface device based on a mobile network (3G, 4G, 5G, etc.), a network interface device based on short-range communication (WiFi, Bluetooth, etc.), etc. The data line interface includes but is not limited to: a USB interface, RS232, etc.
[0295] The processing device 924 is connected to the storage device 923, the interface device 921, and the measuring device 922, and is used to call the at least one program to coordinate the storage device 923, the interface device 921 and the measuring device 922 to perform encryption operations to encrypt the energy consumption data of the energy-consuming device group. In an embodiment, the processor is operably coupled to a memory and / or a non-volatile storage device. More specifically, the processor can execute instructions stored in the memory and / or the non-volatile storage device to perform operations in the energy metering device, such as encrypting the energy consumption data of the energy-consuming device group according to the acquired noise to obtain the encrypted data. In this way, the processor may include one or more general-purpose microprocessors, one or more special-purpose processors, one or more field programmable logic arrays, or any combination thereof.
[0296] The processing device 924 encrypts the energy usage data of the energy-consuming device group according to the noise to obtain the encrypted data.
[0297] In one embodiment, adding the noise to the energy usage data in each time interval of a period can achieve differential privacy of the energy usage data. It should be noted that adding noise conforming to the Laplace distribution to the energy usage data in each time interval does not change the total amount of energy usage data in the period.
[0298] In addition, the present application also discloses a computer-readable storage medium storing at least one computer program, which, when executed, implements at least one embodiment of the above-mentioned method for analyzing the switch state of an energy-consuming device.
[0299] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
[0300] In the embodiments provided in the present application, the computer readable and writable storage medium may include a read-only memory, a random access memory, an EEPROM, a CD-ROM or other optical disk storage device, a disk storage device or other magnetic storage device, a flash memory, a USB flash drive, a mobile hard disk, or any other medium that can be used to store a desired program code in the form of an instruction or data structure and can be accessed by a computer. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if the instruction is sent from a website, a server or other remote source using a coaxial cable, an optical fiber cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, optical fiber cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of the medium. However, it should be understood that computer readable and writable storage media and data storage media do not include connections, carriers, signals, or other temporary media, but are intended to be non-temporary, tangible storage media. Disk and disc, as used in this application, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
[0301] In one or more exemplary aspects, the functions described by the computer program of the method described in the present application can be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions can be stored or transmitted as one or more instructions or codes on a computer-readable medium. The steps of the method or algorithm disclosed in the present application can be embodied in a processor-executable software module, wherein the processor-executable software module can be located on a tangible, non-temporary computer-readable and writable storage medium. A tangible, non-temporary computer-readable and writable storage medium can be any available medium that a computer can access.
[0302] The block diagram in the accompanying drawings above of the present application illustrates the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. Based on this, each box in the block diagram can represent a part of a step, module, program segment or code, and the part of the step, module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be realized by a dedicated hardware-based system that performs a specified function or operation, or can be realized by a combination of dedicated hardware and computer instructions.
[0303] In summary, the switch state analysis method, system, device and storage medium of the energy-consuming device of the present application are used to determine the switch state set of the energy-consuming device group in each time interval in a time period, wherein the energy-consuming device group includes multiple energy-consuming devices. In the scheme of the present application, the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group are obtained; the energy-consuming device group is grouped according to the average power of each of the energy-consuming devices to obtain one or more energy-consuming device sets; according to the analysis order of each of the energy-consuming device sets, the second switch state acquisition step is performed for each current energy-consuming device set in turn; according to the second switch state of each energy-consuming device in each energy-consuming device set in each time interval, the switch state set of the multiple energy-consuming devices in a time period is formed. The scheme of the present application can simply, accurately and effectively determine the switch state of multiple energy-consuming devices in each time interval in a time period based on the energy consumption data of multiple energy-consuming devices and the average power of multiple energy-consuming devices.
[0304] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A method for analyzing the switch state of an energy-consuming device, characterized in that: The method is used to determine a switch state set of an energy-consuming device group in each time interval in a time period, wherein the energy-consuming device group includes a plurality of energy-consuming devices, and the switch state analysis method includes: Obtaining average power of each of the energy-consuming devices and energy consumption data of the energy-consuming device group; The energy-consuming device group is grouped according to the average power of each energy-consuming device and a preset grouping condition to obtain one or more energy-consuming device sets; wherein the preset grouping condition is Among them, |C| is the total number of energy-consuming devices in the current energy-consuming device set, j is the ranking number of the average power corresponding to each energy-consuming device, and c j is the average power corresponding to each energy-consuming device in the current energy-consuming device set, P i is the average power corresponding to other energy-consuming devices that are not included in the energy-consuming device set, and δ is the preset error; According to the analysis order of each energy-consuming device set, the following steps are performed on each current energy-consuming device set in turn: according to the energy consumption data of the energy-consuming device group, the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a time period is determined; according to the comparison result of the energy consumption estimation data corresponding to each first switch state and the energy consumption data of the energy-consuming device group, the first switch state is corrected to obtain the second switch state of the energy-consuming device in the current energy-consuming device set in each time interval in a time period, which is used to update the energy consumption data of the energy-consuming device group for obtaining the second switch state of the next energy-consuming device set; wherein the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a time period is obtained by using the minimization result of the switch state change event obtained when the change amount of the energy consumption data of the energy-consuming device group in adjacent time intervals and the switch state change event corresponding to the adjacent time interval meets the preset error constraint; A switch state set of the plurality of energy-consuming devices in a time period is formed according to the second switch state of each energy-consuming device in each energy-consuming device set in each time interval.
2. The switch status analysis method of energy-consuming equipment according to claim 1, characterized in that: The energy consumption data of the energy-consuming device group includes: the energy consumption data of the energy-consuming device group in each time interval in a period of time and the initial energy consumption data of the energy-consuming device group.
3. The switch status analysis method of energy-consuming equipment according to claim 1, characterized in that: The step of grouping the plurality of energy-consuming devices according to the average power of each of the energy-consuming devices to generate one or more energy-consuming device sets includes: Assigning energy consuming devices corresponding to the minimum value and the second minimum value of average power in the energy consuming device group to the current energy consuming device set; Determining whether the average power of each of the remaining energy-consuming devices in the energy-consuming device group meets the preset grouping condition of the current energy-consuming device set; If yes, the energy-consuming devices satisfying the grouping condition are grouped into the current energy-consuming device set; If not, the current energy-consuming device set is constructed, and the energy-consuming devices that have completed grouping are removed from the energy-consuming device group to update the energy-consuming device group; The above steps are repeated until the generated multiple energy-consuming device sets include all energy-consuming devices.
4. The switch status analysis method of energy-consuming equipment according to claim 1, characterized in that: The analysis order is determined according to the ranking result among the maximum values of the average power of the energy-consuming devices in the energy-consuming device set.
5. The switch status analysis method of energy-consuming equipment according to claim 2, characterized in that: The step of determining the first switch state of each energy-consuming device in the current energy-consuming device set at each time interval in a period of time according to the energy consumption data of the energy-consuming device group includes: When the amount of change of the energy consumption data of the energy-consuming device group in adjacent time intervals and the switch state change events corresponding to the adjacent time intervals satisfy a preset error constraint, determining a minimization result of the switch state change events; According to the minimization result, the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a time period is obtained.
6. The method for analyzing the switch status of energy-consuming equipment according to claim 5, characterized in that: According to the minimization result, the first switch state of the current energy-consuming device and the concentrated energy-consuming device in each time interval in a period is obtained, including: Determine an intermediate result of the first switching state of each energy-consuming device in the current energy-consuming device set in each time interval according to the minimization result and the initial switching state of each energy-consuming device in the current energy-consuming device set; An intermediate result of the first switching state in each time interval is used as the switching probability to generate the first switching state.
7. The method for analyzing the switch status of energy-consuming equipment according to claim 5, characterized in that: The preset error constraint includes: under the influence of the switch state change event of the energy-consuming device in the current energy-consuming device set, the difference between the average power of each energy-consuming device in the current energy-consuming device set and the change amount of the energy consumption data of the energy-consuming device group in adjacent time intervals must meet the preset error.
8. The method for analyzing the switch status of energy-consuming equipment according to claim 7, characterized in that: The preset error is determined according to the sensitivity of the energy data.
9. The method for analyzing the switch status of energy-consuming equipment according to claim 1, characterized in that: The first switch state is corrected according to the comparison result of the energy consumption estimation data corresponding to each first switch state and the energy consumption data of the energy consumption device group, so as to obtain the second switch state of the energy consumption device in the current energy consumption device set in each time interval in a period of time, which is used to update the energy consumption data of the energy consumption device group for obtaining the second switch state of the next energy consumption device set, including: By determining the size of the energy consumption estimation data and the energy consumption data of the energy consumption device group, the first switch state is corrected based on the average power of each energy consumption device in the current energy consumption device set, so as to obtain the second switch state of the energy consumption device in the current energy consumption device set in each time interval in a period of time; The energy usage data corresponding to the second switch state of the energy-consuming devices in the current energy-consuming device set is removed from the energy usage data of the energy-consuming device group to update the energy usage data of the energy-consuming device group.
10. The method for analyzing the switch status of energy-consuming equipment according to claim 1, characterized in that: The method for analyzing the switch status of energy-consuming devices further includes: obtaining energy consumption data of each energy-consuming device in a time period according to a set of switch statuses of a plurality of energy-consuming devices in a time period.
11. The method for analyzing the switch status of energy-consuming equipment according to claim 10, characterized in that: The energy consumption data of each of the energy-consuming devices in a time period is sent to the client.
12. The method for analyzing the switch status of energy-consuming equipment according to claim 1, characterized in that: The method of obtaining the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group includes: obtaining through a client connected to the electronic device for communication and / or an energy consumption metering device connected to the electronic device for communication.
13. A switch status analysis system for energy-consuming equipment, characterized in that: The switch state analysis system is used to determine a switch state set of an energy-consuming device group in each time interval in a time period, wherein the energy-consuming device group includes a plurality of energy-consuming devices, and the switch state analysis system includes: An acquisition module, used to acquire the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group; A grouping module is used to group the energy-consuming device group according to the average power of each energy-consuming device and a preset grouping condition to obtain one or more energy-consuming device sets; wherein the preset grouping condition is Among them, |C| is the total number of energy-consuming devices in the current energy-consuming device set, j is the ranking number of the average power corresponding to each energy-consuming device, and c j is the average power corresponding to each energy-consuming device in the current energy-consuming device set, P i is the average power corresponding to other energy-consuming devices that are not included in the energy-consuming device set, and δ is the preset error; A second switch state determination module is used to perform the following steps on each current energy-consuming device set in sequence according to the analysis order of each energy-consuming device set: determining the first switch state of each energy-consuming device in the current energy-consuming device set at each time interval in a period according to the energy consumption data of the energy-consuming device group; correcting the first switch state according to the comparison result of the energy consumption estimation data corresponding to each first switch state with the energy consumption data of the energy-consuming device group, so as to obtain the second switch state of the energy-consuming device in the current energy-consuming device set at each time interval in a period, which is used to update the energy consumption data of the energy-consuming device group for obtaining the second switch state of the next energy-consuming device set; wherein the first switch state of each energy-consuming device in the current energy-consuming device set at each time interval in a period is obtained by minimizing the switch state change event obtained when the change amount of the energy consumption data of the energy-consuming device group in adjacent time intervals and the switch state change event corresponding to the adjacent time intervals meets a preset error constraint; The switch state set determination module is used to form a switch state set of the plurality of energy-consuming devices in a time period according to the second switch state of each energy-consuming device in each energy-consuming device set in each time interval.
14. The switch status analysis system of energy-consuming equipment according to claim 13, characterized in that: The energy consumption data of the energy-consuming device group includes: the energy consumption data of the energy-consuming device group in each time interval in a period of time and the initial energy consumption data of the energy-consuming device group.
15. The switch status analysis system of energy-consuming equipment according to claim 13, characterized in that: The grouping module groups the plurality of energy-consuming devices according to the average power of each of the energy-consuming devices to generate one or more energy-consuming device sets, including: Assigning energy consuming devices corresponding to the minimum value and the second minimum value of average power in the energy consuming device group to the current energy consuming device set; Determining whether the average power of each of the remaining energy-consuming devices in the energy-consuming device group meets the preset grouping condition of the current energy-consuming device set; If yes, the energy-consuming devices satisfying the grouping condition are grouped into the current energy-consuming device set; If not, the current energy-consuming device set is constructed, and the energy-consuming devices that have completed grouping are removed from the energy-consuming device group to update the energy-consuming device group; The above steps are repeated until the generated multiple energy-consuming device sets include all energy-consuming devices.
16. The switch status analysis system of energy-consuming equipment according to claim 13, characterized in that: The analysis order is determined according to the ranking result among the maximum values of the average power of the energy-consuming devices in the energy-consuming device set.
17. The switch status analysis system of energy-consuming equipment according to claim 14, characterized in that: The second switch state determination module determines the first switch state of each energy-consuming device in the current energy-consuming device set at each time interval in a period of time according to the energy consumption data of the energy-consuming device group, including: When the amount of change of the energy consumption data of the energy-consuming device group in adjacent time intervals and the switch state change events corresponding to the adjacent time intervals satisfy a preset error constraint, determining a minimization result of the switch state change events; According to the minimization result, the first switch state of each energy-consuming device in the current energy-consuming device set in each time interval in a time period is obtained.
18. The switch status analysis system of energy-consuming equipment according to claim 17, characterized in that: According to the minimization result, the first switch state of the current energy-consuming device and the concentrated energy-consuming device in each time interval in a period is obtained, including: Determine an intermediate result of the first switching state of each energy-consuming device in the current energy-consuming device set in each time interval according to the minimization result and the initial switching state of each energy-consuming device in the current energy-consuming device set; An intermediate result of the first switching state in each time interval is used as the switching probability to generate the first switching state.
19. The switch status analysis system of energy-consuming equipment according to claim 17, characterized in that: The preset error constraint includes: under the influence of the switch state change event of the energy-consuming device in the current energy-consuming device set, the difference between the average power of each energy-consuming device in the current energy-consuming device set and the change amount of the energy consumption data of the energy-consuming device group in adjacent time intervals must meet the preset error.
20. The switch status analysis system of energy-consuming equipment according to claim 19, characterized in that: The preset error is determined according to the sensitivity of the energy data.
21. The switch status analysis system of energy-consuming equipment according to claim 13, characterized in that: The second switch state determination module amends the first switch state according to the comparison result of the energy consumption estimation data corresponding to each of the first switch states and the energy consumption data of the energy consumption device group, so as to obtain the second switch state of the energy-consuming device in the current energy-consuming device set in each time interval in a period, and is used to update the energy consumption data of the energy-consuming device group for obtaining the second switch state of the next energy-consuming device set, including: By determining the size of the energy consumption estimation data and the energy consumption data of the energy consumption device group, the first switch state is corrected based on the average power of each energy consumption device in the current energy consumption device set, so as to obtain the second switch state of the energy consumption device in the current energy consumption device set in each time interval in a period of time; The energy usage data corresponding to the second switch state of the energy-consuming devices in the current energy-consuming device set is removed from the energy usage data of the energy-consuming device group to update the energy usage data of the energy-consuming device group.
22. The switch status analysis system of energy-consuming equipment according to claim 13, characterized in that: The switch state analysis system for energy-consuming devices further comprises an energy usage data determination module: the energy usage data determination module is used to obtain energy usage data of each energy-consuming device in a time period according to a set of switch states of multiple energy-consuming devices in a time period.
23. The switch status analysis system of energy-consuming equipment according to claim 22, characterized in that: The energy consumption data of each of the energy-consuming devices in a time period is sent to the client.
24. The switch status analysis system of energy-consuming equipment according to claim 13, characterized in that: The method of obtaining the average power of each of the energy-consuming devices and the energy consumption data of the energy-consuming device group includes: obtaining through a client connected to the electronic device for communication and / or an energy consumption metering device connected to the electronic device for communication.
25. An electronic device, characterized in that: include: A storage device for storing at least one program; A processing device, used for calling the at least one program to execute the switch state analysis method of the energy-consuming device according to any one of claims 1 to 12.
26. The electronic device according to claim 25, characterized in that: The electronic device further comprises a communication device for communicating with the outside to obtain energy consumption data of the energy-consuming device group and the average power of each of the energy-consuming devices.
27. The electronic device according to claim 26, characterized in that: The communication device is used to communicate with the client to send the obtained energy consumption data of each energy-consuming device in a time period to the client.
28. A client, characterized in that: Communicatingly connected to the electronic device as described in claim 26 or 27, used to receive energy consumption data of each energy-consuming device in a time period; or, sending the average power of each energy-consuming device to the electronic device.
29. A computer-readable storage medium, characterized in that: At least one program is stored, and when the at least one program is called, it is executed and implements the switching state analysis method of the energy-consuming device according to any one of claims 1 to 12.
Citation Information
Patent Citations
Non-invasive electric signal analysis and tracking method, non-invasive electric signal analysis and tracking device and electronic device
CN108763847A
