This application claims priority to Taiwan Patent Application No. 102142609 filed on Nov. 22, 2013, which is hereby incorporated by reference in its entirety.
The present invention relates to a power consumption prediction apparatus, method, and non-transitory computer readable storage medium thereof; and more particularly, the present invention relates to a power consumption prediction apparatus, method, and non-transitory computer readable storage medium thereof which are based on using probability of an appliance.
Electric power has already become the main energy source for the modern life. To manage the electric power, a number of technologies for predicting power consumption have been provided. However, these conventional power consumption prediction technologies are mainly used in the power supply system as a reference for power dispatch in the local power system or as a reference for the power generating capacity.
In fact, for end users, it is also necessary to predict the power consumption of small facilities (e.g., a single factory, a smart building, a smart home, etc.) in order to save power and reduce the electric charge. To predict the power consumption of end users, most of the conventional technologies need to collect power consumption data of a long period (e.g., one year) from the users, or take the data sensed by temperature sensors and humidity sensors as a reference for prediction. These conventional technologies usually adopt such techniques as the neural network and the genetic algorithm to predict the power consumption. However, these technologies require a long time period of training, and when they are used in relatively small facilities, the prediction result is not so precise as when being used in large facilities.
Accordingly, an urgent need exists in the art to provide a technology capable of establishing a power consumption model of an appliance rapidly to predict the future power consumption of the appliance.
To solve the problems with the prior art, the present invention includes a power consumption prediction apparatus, method, and non-transitory computer readable storage medium thereof.
The power consumption prediction apparatus provided in certain embodiments of the present invention comprises an interface and a processing unit, wherein the interface and the processing unit are electrically connected to each other. The interface receives a plurality of power consumption data of an appliance, wherein the appliance has a plurality of operation statuses and the power consumption data have a temporal sequence. Each of the power consumption data includes a recorded status and a recorded time length corresponding to the recorded status, and each of the recorded statuses is one of the operation statuses. The processing unit is configured to calculate an average operation time length of each of the operation statuses according to the recorded statuses and the recorded time lengths. The processing unit is also configured to calculate at least one transferring probability of each of the operation statuses according to the temporal sequence and the power consumption data. Each of the transferring probabilities is the probability of entering into a target status from a source status, the source status is one of the operation statuses, the target status is one of the operation statuses, and the source status is different from the target status.
The power consumption prediction method provided in certain embodiments of the present invention is executed by a computer. The power consumption prediction method comprises the following steps of: (a) receiving a plurality of power consumption data of an appliance, wherein the appliance has a plurality of operation statuses, the power consumption data have a temporal sequence, each of the power consumption data includes a recorded status and a recorded time length corresponding to the recorded status, and each of the recorded statuses is one of the operation statuses, (b) calculating an average operation time length of each of the operation statuses according to the recorded statuses and the recorded time lengths, and (c) calculating at least one transferring probability of each of the operation statuses according to the temporal sequence and the power consumption data. Each of the transferring probabilities is the probability of entering into a target status from a source status, the source status is one of the operation statuses, the target status is one of the operation statuses, and the source status is different from the target status.
The non-transitory computer readable storage medium provided in certain embodiments of the present invention includes a computer program stored therein. When the computer program is loaded into an electronic apparatus, the computer program executes a power consumption prediction method. The power consumption prediction method comprises the steps of: (a) receiving, by the electronic apparatus, a plurality of power consumption data of an appliance, wherein the appliance has a plurality of operation statuses, the power consumption data have a temporal sequence, each of the power consumption data includes a recorded status and a recorded time length corresponding to the recorded status, and each of the recorded statuses is one of the operation statuses, (b) calculating, by the electronic apparatus, an average operation time length of each of the operation statuses according to the recorded statuses and the recorded time lengths, and (c) calculating, by the electronic apparatus, at least one transferring probability of each of the operation statuses according to the temporal sequence and the power consumption data. Each of the transferring probabilities is the probability of entering into a target status from a source status, the source status is one of the operation statuses, the target status is one of the operation statuses, and the source status is different from the target status.
The present invention according to certain embodiments establishes a power consumption model of an appliance by using the power consumption data collected from the appliance. If other power consumption data are collected subsequently, the subsequently collected power consumption data will be used to update the power consumption model. Through continuous updating, the power consumption model can reliably reflect the average operation time lengths of the appliance under different operation statuses and the transferring probabilities between the different operation statuses. Once the power consumption model is established, the present invention can predict the subsequent power consumption of the appliance. Briefly speaking, the present invention firstly determines a current status (i.e., one of the operation statuses of the appliance) of the appliance at a current time point and also the passed time length elapsed after the appliance entered into the current status according to a power feature datum. Thereafter, the present invention calculates a remaining dwell time of the appliance in the current status, and then calculates a predicted power consumption of the appliance from the current time point to a target time point according to the remaining dwell time and the information of the power consumption model. Thereby, the present invention can establish the power consumption model of the appliance to predict the future power consumption of the appliance by simply using a small amount of power consumption data collected from the appliance and without using any additional environment data (e.g., temperature data, humidity data and etc.).
The detailed technology and preferred embodiments implemented for the subject invention are described in the following paragraphs accompanying the appended drawings for people skilled in this field to well appreciate the features of the claimed invention.
In the following description, the power consumption prediction apparatus, method, and non-transitory computer readable storage medium thereof provided by the present invention will be explained with reference to example embodiments thereof. However, these example embodiments of the present invention are not intended to limit the present invention to any particular examples, embodiments, environment, applications or implementations described in these example embodiments. Therefore, description of these embodiments is only for purpose of illustration rather than to limit the present invention. It shall be appreciated that, in the following embodiments and the attached drawings, elements unrelated to the present invention are omitted from depiction.
A first embodiment of the present invention is a power consumption prediction apparatus 1, a schematic view of which is depicted in
In this embodiment, the interface 11 is electrically connected to a smart meter 15, and the smart meter 15 is connected to an appliance 19 in a building 17. It shall be appreciated that, in other implementations of the present invention, the smart meter 15 may be replaced by a non-invasive load monitoring apparatus. The appliance 19 in the building 17 has a plurality of operation statuses. For example, if the appliance 19 is an electric fan, the operation statuses thereof may comprise “HIGH”, “MODERATE”, “LOW”, “START” and “END”. It shall be appreciated that, as can be readily appreciated by those of ordinary skill in the art, different appliances have different statuses and also have different numbers of statuses. In this embodiment, the appliance 19 has five operation statuses S1, S2, S3, START and END. The interface 11 receives a plurality of first power consumption data 10a, 10b, 10c, 10d, . . . , 10e of the appliance 19 through the smart meter 15. Referring to
Next, the processing unit 13 establishes a power consumption model of the appliance 19 according to the first power consumption data 10a, 10b, 10c, 10d, . . . , 10e. It shall be appreciated that, the power consumption model includes an average operation time length of the appliance 19 under each of the operation statuses S1, S2, S3, START and END, and transferring probabilities of the appliance 19 transferring from one operation status to another operation status.
Specifically, the processing unit 13 calculates the average operation time length under each of the operation statuses S1, S2, S3, START and END according to the first recorded statuses and the first recorded time lengths included in the first power consumption data 10a, 10b, 10c, 10d, . . . , 10e. For example, the processing unit 13 calculates the average operation time length of each of the operation statuses by performing the following operations on each of the operation statuses S1, S2, S3, START and END: (a) selecting at least one from the first power consumption data 10a, 10b, 10c, 10d, . . . , 10e as at least one selected power consumption datum, wherein the first recorded status of each of the at least one selected power consumption datum is the operation status, and (b) averaging the at least one first recorded time length corresponding to the at least one selected power consumption datum as the average operation time length of the operation status. Taking the operation status S1 as an example, the processing unit 13 selects the first power consumption data 10a, 10c as the selected power consumption data, and then averages the first recorded time lengths (i.e., the first recorded time lengths T1, T3) included in the selected power consumption data (i.e., the first power consumption data 10a, 10c) as the average operation time length of the operation status S1. It shall be appreciated that, in other implementations of the present invention, the processing unit may also calculate the average operation time length of each of the operation statuses in other ways, e.g., by taking the median or the mode as the average operation time length.
Furthermore, the processing unit 13 calculates at least one transferring probability of each of the operation statuses S1, S2, S3, START and END according to the first power consumption data 10a, 10b, 10c, 10d, . . . , 10e and the temporal sequence thereof. Each of the transferring probabilities is the probability of entering into a target status from a source status, wherein the source status is one of the operation statuses S1, S2, S3, START and END, the target status is also one of the operation statuses S1, S2, S3, START and END, and the source status is different from the target status.
For example, the processing unit 13 may calculate the at least one transferring probability of each of the operation statuses S1, S2, S3, START and END by performing the following operations on each of the operation statuses S1, S2, S3, START and END: (a) counting a first number of times of entering into the operation status according to the temporal sequence and the first recorded statuses, (b) determining at least one transferring status that the appliance entered into after exiting the operation status according to the temporal sequence and the first recorded statuses, wherein each of the at least one transferring status is one of the operation statuses S1, S2, S3, START and END, (c) counting at least one second number of times of entering into each of the at least one transferring status from the operation status according to the temporal sequence and the first recorded statuses, and (d) dividing each of the at least one second number by the first number to obtain the at least one transferring probability of the operation status.
Now, the operation status S1 will be taken as an example for further description. The processing unit 13 counts the first number of times of entering into the operation status S1 according to the temporal sequence and the first recorded statuses. Taking the first power consumption data 10b, 10c depicted in
For ease of understanding, the power consumption model established for the appliance 19 by the processing unit 13 is shown in
Through the aforesaid operations, the processing unit 13 can establish the power consumption model for the appliance 19 according to the first power consumption data 10a, 10b, 10c, 10d, . . . , 10e collected from the appliance 19. After the power consumption model of the appliance 19 is established, the subsequent power consumption of the appliance 19 can be predicted by the power consumption prediction apparatus 1. In this embodiment, the power consumption prediction apparatus 1 has an energy consumption prediction interval, which represents a time length during which the power consumption can be predicted by the processing unit 13 each time. For example, if the current time point is 10:00 AM and the energy consumption prediction interval is 15 minutes, the processing unit 13 will predict the power consumption from 10:00 AM to 10:15 AM according to the power consumption model of the appliance 19. How the power consumption prediction apparatus 1 predicts the subsequent power consumption of the appliance 19 according to the power consumption model of the appliance 19 will be described hereinbelow.
The processing unit 13 may determine a current status of the appliance 19 at a current time point and a passed dwell time length under the current status according to a power feature datum of the appliance 19. The current status is one of the operation statuses S1, S2, S3, START and END, and the passed dwell time length represents the passed time length elapsed after the appliance 19 enters into the current status this time. It shall be appreciated that, how the processing unit 13 determines which operation status (i.e., the aforesaid current status) the appliance 19 is currently in and determines the passed time length under the operation status according to the power feature datum of the appliance 19 is not the focus of the present invention, so this will not be further described herein.
Then, the processing unit 13 can predict a predicted power consumption of the appliance 19 from a current time point to a target time point recursively according to the following Equation (1):
In Equation (1), the variable Tfrom represents the current time point, the variable Tto represents the target time point, the variable i represents the current status, the variable t represents the remaining dwell time under the current status (i.e., the value of the variable i) of the current time point (i.e., the value of the variable Tfrom), the variable Pi represents a power (i.e., an average power consumption) of the current status (i.e., the value of the variable i), the variable sjk represents the average operation time length of an operation status j at a time interval h, the variable ρijh represents the probability (i.e., the aforesaid transferring probability) of entering into the operation status j from an operation status i at the time interval h, the variable HX represents the set of the limited operation statuses of the appliance 19, the variable ΔPij represents a power change of entering into the operation status j from the operation status i, and the expected value EH represents the predicted power consumption of the appliance 19 from the current time point to the target time point.
For ease of understanding, it is assumed herein that the current status is the operation status S2, the average operation time length of the operation status S2 is 30 minutes, the current time point is 10:00 AM, the energy consumption prediction interval is 15 minutes, and the passed dwell time length of the appliance 19 under the current status (i.e., the operation status S2) at the current time point (i.e., 10:00 AM) is 20 minutes. The value predicted by the processing unit 13 according to the aforesaid equation (1) is E(10:00 AM, 10:10 AM, 10, i)+Pi+E(10:10 AM, 10:15 AM, 5, i).
In detail, when the processing unit 13 performs the aforesaid prediction according to Equation (1), the processing unit 13 calculates the remaining dwell time under the current status according to the energy consumption prediction interval (e.g., the aforesaid 15 minutes), the passed dwell time length (e.g., the aforesaid 20 minutes) and the average operation time length corresponding to the current status (e.g., the aforesaid 30 minutes). In the aforesaid example, the remaining dwell time of the appliance 19 under the current status at the current time point is 10 minutes, so firstly E(10:00 AM, 10:10 AM, 10, i) is calculated; then Pi is added to E(10:00 AM, 10:10 AM, 10, i); and thereafter, the remaining dwell time is less than zero and a status transferring becomes necessary, so E(10:10 AM, 10:15 AM, 5, i) is further added.
Briefly speaking, as can be known from Equation (1), if the processing unit 13 determines that the remaining dwell time is not less than zero, the processing unit 13 calculates a predicted power consumption of the appliance 19 from the current time point to a target time point according to a power of the current status, the remaining dwell time, the current time point and the target time point. If the processing unit 13 determines that the remaining dwell time is less than zero, the processing unit 13 selects the at least one transferring probability of the current status as at least one selected transferring probability and calculates a predicted power consumption of the appliance 19 from the current time point to a target time point according to each of the at least one selected transferring probability, the dwell time length of the target status of each of the at least one selected transferring probability, at least one switching power of entering into the target status of each of the at least one selected transferring probability from the current status, the current time point and the target time point. If the processing unit 13 determines that the current time point is the same as the target time point, the processing unit 13 will take the power (i.e., the average power consumption) of the appliance 19 under the current status as the predicted power consumption from the current time point to the target time point. Furthermore, if the processing unit 13 determines that the current time point is later than the target time point, the predicted power consumption from the current time point to the target time point will be zero.
It shall be appreciated that, in other implementations of the present invention, the processing unit 13 may deal with the case where the remaining dwell time is less than zero in other ways. The processing unit 13 may firstly calculate at least one selected transferring probability according to the at least one transferring probability of the current status. Then, the processing unit calculates a predicted power consumption of the appliance from the current time point to a target time point according to each of the at least one selected transferring probability, the dwell time length of the target status of each of the at least one selected transferring probability, at least one switching power of entering into the target status of each of the at least one selected transferring probability from the current status, the current time point and the target time point. For example, the processing unit 13 may divide one day into several different time intervals and calculate the at least one selected transferring probability according to the different time intervals and transferring probabilities.
Thereafter, if the interface 11 further receives a plurality of second power consumption data 12a, . . . , 12b of the appliance 19, the power consumption model of the appliance 19 may be updated according to the second power consumption data 12a, . . . , 12b. Specifically, the second power consumption data 12a, . . . , 12b have a second temporal sequence. Each of the second power consumption data 12a, . . . , 12b includes a second recorded status and a second recorded time length corresponding to the second recorded status. Each of the second recorded statuses is one of the five operation statuses S1, S2, S3, START and END. The processing unit 13 updates the average operation time length of each of the operation statuses S1, S2, S3, START and END according to the second recorded statuses and the second recorded time lengths, and updates the at least one transferring probability of each of the operation statuses S1, S2, S3, START and END according to the second temporal sequence and the second power consumption data 12a, . . . , 12b in the aforesaid ways.
According to the above descriptions, the power consumption prediction apparatus 1 establishes power consumption model for the appliance 19 according to the first power consumption data 10a, 10b, 10c, 10d, . . . , 10e collected from the appliance 19. If other power consumption data are collected subsequently, the subsequently collected power consumption data will be used to update the power consumption model. Through continuous updating, the power consumption model can reliably reflect the average operation time lengths of the appliance 19 under different operation statuses and the transferring probabilities between the different operation statuses. After the power consumption model is established, the power consumption prediction apparatus 1 can accordingly predict the power consumption of the appliance 19. Briefly speaking, the power consumption prediction apparatus 1 firstly determines a current status (i.e., one of the operation statuses S1, S2, S3, START and END of the appliance 19) of the appliance 19 at a current time point and a passed dwell time length elapsed after entering into the current status this time. Thereafter, the power consumption prediction apparatus 1 calculates a remaining dwell time of the appliance 19 under the current status according to an energy consumption prediction interval, the passed dwell time length and the average operation time length corresponding to the current status. Then, the power consumption prediction apparatus 1 calculates a predicted power consumption of the appliance 19 from the current time point to a target time point according to the remaining dwell time and the information of the power consumption model.
Through the mechanism of this embodiment, the power consumption prediction apparatus 1 can establish the power consumption model of the appliance 19 and predict the future power consumption of the appliance 19 by simply using a small amount of power consumption data collected from the appliance 19 and without using any additional environment data (e.g., temperature data, humidity data and etc.).
A second embodiment of the present invention is a power consumption prediction method, a main flowchart diagram of which is depicted in
Firstly, step S21 is executed to receive a plurality of power consumption data of an appliance. The appliance has a plurality of operation statuses, the power consumption data have a temporal sequence, each of the power consumption data includes a recorded status and a recorded time length corresponding to the recorded status, and each of the recorded statuses is one of the operation statuses.
Then, step S22 is executed to calculate an average operation time length of each of the operation statuses according to the recorded statuses and the recorded time lengths. It shall be appreciated that, in some other implementations of the present invention, the average operation time length of each of the operation statuses may be calculated by executing the following steps on each of the operation statuses in the step S22: (a) selecting at least one from the power consumption data as at least one selected power consumption datum, wherein the recorded status of each of the at least one selected power consumption datum is the operation status, and (b) averaging the at least one first recorded time length corresponding to the at least one selected power consumption datum as the average operation time length of the operation status.
Step S23 is executed to calculate at least one transferring probability of each of the operation statuses according to the temporal sequence and the power consumption data. Each of the transferring probabilities is the probability of entering into a target status from a source status, wherein the source status is one of the operation statuses, the target status is one of the operation statuses, and the source status is different from the target status.
It shall be appreciated that, in other implementations of the present invention, the transferring probabilities of all operation statuses may be calculated in the step S23 according to the process flow depicted in
Next, step S24 may be executed to receive a power feature datum of the appliance. Then, step S25 is executed to determine a current status of the appliance at a current time point and a passed dwell time length under the current status according to the power feature datum of the appliance, wherein the current status is one of the operation statuses. Thereafter, step S26 is executed to calculate a remaining dwell time according to an energy consumption prediction interval, the passed dwell time length and the average operation time length corresponding to the current status.
Then, step S27 is executed to predict the power consumption of the energy consumption prediction interval corresponding to the current time point according to the remaining dwell time. Specifically, the power consumption may be calculated recursively according to Equation (1) in the step S27. Briefly speaking, during the recursive calculation, if the remaining dwell time is not less than zero, a predicted power consumption of the appliance from the current time point to a target time point is calculated in the step S27 according to a power of the current status, the remaining dwell time, the current time point and the target time point. If the remaining dwell time is less than zero, then in the step S27, the at least one transferring probability of the current status is selected as at least one selected transferring probability and a predicted power consumption of the appliance from the current time point to a target time point is calculated according to each of the at least one selected transferring probability, the average operation time length of the target status of each of the at least one selected transferring probability, at least one switching power of entering into the target status of each of the at least one selected transferring probability from the current status, the current time point and the target time point.
On the other hand, after the step S23 is completed (i.e., after the power consumption prediction method has established the power consumption model for the appliance), other steps may be further executed by the power consumption prediction method to update the power consumption model. Specifically, a step (not shown) may be further executed by the power consumption prediction method to receive a plurality of other power consumption data of the appliance. The other power consumption data have a temporal sequence, each of the other power consumption data includes a recorded status and a recorded time length corresponding to the recorded status, and each of the recorded statuses is one of the operation statuses. Thereafter, another step is executed to update the average operation time length of each of the operation statuses according to the recorded statuses and the recorded time lengths included in the other power consumption data, and update the at least one transferring probability of each of the operation statuses according to the temporal sequence and the other power consumption data.
In addition to the aforesaid steps, the second embodiment can also execute all the operations and functions set forth in the first embodiment. How the second embodiment executes these operations and functions will be readily appreciated by those of ordinary skill in the art based on the explanation of the first embodiment, and thus will not be further described herein.
Furthermore, the power consumption prediction method set forth in the second embodiment may be implemented by a computer program having a plurality of codes. The computer program is stored in a non-transitory computer readable storage medium. After the codes of the computer program are loaded into an electronic apparatus, the computer program executes the power consumption prediction method set forth in the second embodiment. The aforesaid non-transitory computer readable storage medium may be a read only memory (ROM), a flash memory, a floppy disk, a hard disk, a compact disk (CD), a mobile disk, a magnetic tape, a database accessible to networks, or any other storage media with the same function and well known to those skilled in the art.
According to the above descriptions, the present invention establishes a power consumption model of an appliance by using the power consumption data collected from the appliance. If other power consumption data are collected subsequently, the subsequently collected power consumption data will be used to update the power consumption model. Through continuous updating, the power consumption model can reliably reflect the average operation time lengths of the appliance under different operation statuses and the transferring probabilities between the different operation statuses. Once the power consumption model is established, the present invention can predict the subsequent power consumption of the appliance. Briefly speaking, the present invention firstly determines a current status (i.e., one of the operation statuses of the appliance) of the appliance at a current time point and also the passed time length elapsed after the appliance entered into the current status according to a power feature datum. Thereafter, the present invention calculates a remaining dwell time of the appliance under the current status, and then calculates a predicted power consumption of the appliance from the current time point to a target time point according to the remaining dwell time and the information of the power consumption model. Thereby, the present invention can establish the power consumption model of the appliance to predict the future power consumption of the appliance by simply using a small amount of power consumption data collected from the appliance and without using any additional environment data (e.g., temperature data, humidity data and etc.).
The above disclosure is related to the detailed technical contents and inventive features thereof. People skilled in this field may proceed with a variety of modifications and replacements based on the disclosures and suggestions of the invention as described without departing from the characteristics thereof. Nevertheless, although such modifications and replacements are not fully disclosed in the above descriptions, they have substantially been covered in the following claims as appended.
Number | Date | Country | Kind |
---|---|---|---|
102142609 | Nov 2013 | TW | national |