Disclosure of Invention
The invention provides a load detection method and a load detection system, which aim to solve the problem of how to detect a load.
In order to solve the above problem, according to an aspect of the present invention, there is provided a load detection method including:
windowing the acquired voltage signal and current signal on the bus at the total inlet of the load according to a preset time period, and determining a power signal corresponding to each window;
determining a candidate load set of each window according to the duration characteristic of the power signal corresponding to each window, wherein each candidate load set comprises at least one candidate load;
determining the characteristic information of each candidate load corresponding to each window according to the power signal of each window and the corresponding power signal of each candidate load;
and determining the load of each window according to the characteristic information and the characteristic weight set corresponding to each candidate load.
Preferably, wherein the method further comprises:
and filtering the acquired voltage signal and current signal on the bus at the inlet of the load, and converting the filtered voltage signal and current signal into a voltage digital signal and a current digital signal.
Preferably, the acquired voltage signal and current signal on the bus at the inlet of the load are filtered by a 24-bit analog-to-digital converter with model number AD 1256.
Preferably, wherein the method further comprises:
before determining the candidate load set of each window, determining the candidate load range corresponding to each window according to the power characteristics of the power signal corresponding to each window.
Preferably, wherein the characteristic information includes: edge feature information, trend feature information, temporal feature information, frequency feature information, and sequence feature information.
Preferably, the determining the feature information of each candidate load corresponding to each window according to the power signal of each window and the power signal of each candidate load corresponding to each window includes:
dividing the number of the edge types in each window with the number of the edge types of each corresponding candidate load to determine the edge characteristic information of each candidate load corresponding to each window;
dividing the number of the trend types in each window with the number of the trend types of each corresponding candidate load to determine the trend characteristic information of each candidate load corresponding to each window;
comparing the time interval of each window with the opening time interval of each corresponding candidate load, and determining the time characteristic information of each candidate load corresponding to each window; if the time interval of the window is within the opening time interval of each corresponding candidate load, the time characteristic information is 1, otherwise, the time characteristic information is 0;
dividing the number of the edge type repetition of each window with the number of the edge type repetition of each corresponding candidate load, and determining the frequency characteristic information of each candidate load corresponding to each window;
and subtracting the ratio of the reverse order variation of the candidate load and the sequence variable in the window by using 1 to determine the sequence characteristic information of each candidate load corresponding to each window.
Preferably, the determining the load of each window according to the feature information and the feature weight set corresponding to each candidate load includes:
and respectively forming a characteristic information array corresponding to each candidate load of each window by edge characteristic information, trend characteristic information, time characteristic information, frequency characteristic information and sequence characteristic information, calculating the difference between the multiplied characteristic information array and a characteristic weight set corresponding to each candidate load and a preset critical value, and selecting the candidate load corresponding to the maximum difference as the load of each window.
According to another aspect of the present invention, there is provided a load detection system, the system comprising:
the windowing processing module is used for windowing the acquired voltage signal and current signal on the bus at the total inlet of the load according to a preset time period and determining a power signal corresponding to each window;
a candidate load set determining module, configured to determine a candidate load set of each window according to the duration characteristic of the power signal corresponding to each window, where each candidate load set includes at least one candidate load;
the characteristic information determining module is used for determining the characteristic information of each candidate load corresponding to each window according to the power signal of each window and the power signal of each corresponding candidate load;
and the window load determining module is used for determining the load of each window according to the characteristic information and the characteristic weight set corresponding to each candidate load.
Preferably, wherein the system further comprises:
and the filtering processing module is used for filtering the acquired voltage signal and current signal on the bus at the general inlet of the load and converting the voltage signal and the current signal subjected to filtering processing into a voltage digital signal and a current digital signal.
Preferably, the acquired voltage signal and current signal on the bus at the inlet of the load are filtered by a 24-bit analog-to-digital converter with model number AD 1256.
Preferably, wherein the system further comprises:
and the candidate load range determining module is used for determining the candidate load range corresponding to each window according to the power characteristics of the power signal corresponding to each window before determining the candidate load set of each window.
Preferably, wherein the characteristic information includes: edge feature information, trend feature information, temporal feature information, frequency feature information, and sequence feature information.
Preferably, the determining the characteristic information of each candidate load corresponding to each window according to the power signal of each window and the power signal of each candidate load corresponding to each window by the characteristic information determining module includes:
an edge feature information determining unit, configured to divide the number of edge types in each window by the number of edge types of each corresponding candidate load, and determine edge feature information of each candidate load corresponding to each window;
the trend characteristic information determining unit is used for dividing the trend type number in each window and the trend type number of each corresponding candidate load to determine the trend characteristic information of each candidate load corresponding to each window;
the time characteristic information determining unit is used for comparing the time interval of each window with the opening time interval of each corresponding candidate load and determining the time characteristic information of each candidate load corresponding to each window; if the time interval of the window is within the opening time interval of each corresponding candidate load, the time characteristic information is 1, otherwise, the time characteristic information is 0;
a frequency characteristic information determining unit, configured to divide the number of edge type repetitions of each window by the number of edge type repetitions of each corresponding candidate load, and determine frequency characteristic information of each candidate load corresponding to each window;
and the sequence characteristic information determining unit is used for determining the sequence characteristic information of each candidate load corresponding to each window by using the ratio of 1 minus the inverse sequence variation of the candidate load and the sequence variable in the window.
Preferably, the window load determining module determines the load of each window according to the feature information and the feature weight set corresponding to each candidate load, and is specifically configured to:
and respectively forming a characteristic information array corresponding to each candidate load of each window by edge characteristic information, trend characteristic information, time characteristic information, frequency characteristic information and sequence characteristic information, calculating the difference between the multiplied characteristic information array and a characteristic weight set corresponding to each candidate load and a preset critical value, and selecting the candidate load corresponding to the maximum difference as the load of each window.
The invention provides a load detection method and a system, which adopt an off-line mode to collect data, so that the data is more accurate, more complete waveforms can be obtained, the identification of loads is not influenced, and more information quantity can be obtained; the power characteristics are adopted to roughly determine the load range, so that the accuracy is improved, and part of workload can be reduced; determining the characteristic information of each candidate load corresponding to each window according to the power signal of each window and the power signal of each corresponding candidate load, and putting the switching event detection and the load identification together, thereby reducing the false detection or non-detection condition and improving the identification accuracy; finally, the load of the window is determined by using the characteristic weight and the characteristic information of different loads, so that the method is more representative, and the accuracy of monitoring the load event and the accuracy of identifying and classifying the load are improved.
Detailed Description
The exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, however, the present invention may be embodied in many different forms and is not limited to the embodiments described herein, which are provided for complete and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, the same units/elements are denoted by the same reference numerals.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
Fig. 1 is a flow chart of a load detection method 100 according to an embodiment of the present invention. As shown in fig. 1, in a load detection method 100 according to an embodiment of the present invention, a windowing process is performed on a voltage signal and a current signal on a bus at a total entrance of an acquired load, and a candidate load set of each window is determined according to a duration characteristic of a power signal corresponding to each window; and determining the characteristic information of each candidate load corresponding to each window according to the power signal of each window and the power signal of each corresponding candidate load, and determining the load of each window according to the characteristic information. The data are acquired in an off-line mode, so that the data are more accurate, more complete waveforms can be obtained, the load identification is not influenced, and more information quantity can be acquired; the power characteristics are adopted to roughly determine the load range, so that the accuracy is improved, and part of workload can be reduced; determining the characteristic information of each candidate load corresponding to each window according to the power signal of each window and the power signal of each corresponding candidate load, and putting the switching event detection and the load identification together, thereby reducing the false detection or non-detection condition and improving the identification accuracy; finally, the load of the window is determined by using the characteristic weight and the characteristic information of different loads, so that the method is more representative, and the accuracy of monitoring the load event and the accuracy of identifying and classifying the load are improved.
The load detection method 100 of the embodiment of the present invention starts at step 101, and performs windowing on the acquired voltage signal and current signal on the bus at the inlet of the load according to a preset time period at step 101, and determines a power signal corresponding to each window.
Preferably, wherein the method further comprises:
and filtering the acquired voltage signal and current signal on the bus at the inlet of the load, and converting the filtered voltage signal and current signal into a voltage digital signal and a current digital signal.
Preferably, the acquired voltage signal and current signal on the bus at the inlet of the load are filtered by a 24-bit analog-to-digital converter with model number AD 1256.
In the embodiment of the invention, the switching event and the load are identified together for judgment, so that the error is reduced. Then, the data and waveform of one day or one week are processed in an off-line mode, so that more information can be obtained, and the result is more accurate. For similar loads, edge features, trend features, time features, sequence features, frequency features and power features are compared, the power features are firstly used for dividing the loads into two types of high power (more than 1000W) and low power (less than 1000W), the identification accuracy can be improved, and the workload during identification can be reduced. And then, effectively identifying by utilizing edge features, trend features, time features, sequence features and frequency features.
Fig. 2 is a schematic diagram of a signal data processing apparatus according to an embodiment of the present invention. As shown in fig. 2, the voltage sensor and the current sensor are respectively used for acquiring a voltage signal and a current signal on a bus at a total inlet of a load, sending the voltage signal and the current signal to the value a/D module, converting the current signal and the voltage signal into a current digital signal and a voltage digital signal, sending the current digital signal and the voltage digital signal to the ARM core module for processing data such as filtering, and then sending the data to the value server through the data transmission module for identification and detection of the load. The device also comprises a storage module used for storing the data in the processing process. A24-bit analog-to-digital converter with the model number of AD1256 is adopted in hardware, and the purpose is mainly to reduce signal interference, so that the obtained signal is more accurate and the waveform is more ideal.
Preferably, a candidate load set for each window is determined according to the duration characteristics of the power signal corresponding to each window in step 102, and each candidate load set comprises at least one candidate load.
In the implementation mode of the invention, according to the collocation of different rising edges and falling edges in each window, the duration of the load is recorded, a classification and identification table is established, the condition which does not meet the duration is deleted, and the rest forms the candidate load set corresponding to each window. For example, if a rising edge and a falling edge are separated by 2min, the duration is too short for the kettle and the refrigerator, so the kettle and the refrigerator corresponding to the candidate window should be deleted.
Preferably, wherein the method further comprises:
before determining the candidate load set of each window, determining the candidate load range corresponding to each window according to the power characteristics of the power signal corresponding to each window. In an embodiment of the present invention, within the detection window of the power waveform, the value Δ α of the rising edge transition is the power characteristic. The power characteristics of the power signal corresponding to each window are extracted and compared with 1000W, the possible load of the window is judged to be a high-power load or a low-power load, the load range is roughly divided, and the workload can be effectively reduced.
Preferably, in step 103, the characteristic information of each candidate load corresponding to each window is determined according to the power signal of each window and the power signal of each candidate load corresponding to each window.
Preferably, wherein the characteristic information includes: edge feature information, trend feature information, temporal feature information, frequency feature information, and sequence feature information.
Preferably, the determining the feature information of each candidate load corresponding to each window according to the power signal of each window and the power signal of each candidate load corresponding to each window includes:
dividing the number of the edge types in each window with the number of the edge types of each corresponding candidate load to determine the edge characteristic information of each candidate load corresponding to each window;
dividing the number of the trend types in each window with the number of the trend types of each corresponding candidate load to determine the trend characteristic information of each candidate load corresponding to each window;
comparing the time interval of each window with the opening time interval of each corresponding candidate load, and determining the time characteristic information of each candidate load corresponding to each window; if the time interval of the window is within the opening time interval of each corresponding candidate load, the time characteristic information is 1, otherwise, the time characteristic information is 0;
dividing the repeated number of the edge types of each window with the number of the trend types of each corresponding candidate load, and determining the frequency characteristic information of each candidate load corresponding to each window;
and subtracting the ratio of the reverse order variation of the candidate load and the sequence variable in the window by using 1 to determine the sequence characteristic information of each candidate load corresponding to each window.
Preferably, the load of each window is determined in step 104 according to the feature information and the feature information weight set corresponding to each candidate load.
Preferably, the determining the load of each window according to the feature information and the feature information weight group corresponding to each candidate load includes:
and respectively forming a characteristic information array corresponding to each candidate load of each window by edge characteristic information, trend characteristic information, time characteristic information, frequency characteristic information and sequence characteristic information, calculating the difference between the characteristic information array and a preset critical value after multiplying the characteristic information array and a characteristic information weight group corresponding to each candidate load, and selecting the candidate load corresponding to the maximum difference as the load of each window.
In an embodiment of the present invention, determining the characteristic information of each candidate load corresponding to each window according to the power signal of each window and the power signal of each candidate load corresponding to each window includes: edge feature information, trend feature information, time feature information, frequency feature information and sequence feature information, and then a feature information array X is formed by the feature information. Wherein the power signal for each candidate load is stored in a pre-designed database.
Edge feature information XedgeBy detecting the number N 'of edge types in the window'edgeAnd the number of edge types N of the candidate loadedgeAnd (4) dividing to obtain the final product.
The trend characteristic information, including increasing peak, decreasing peak, pulse, fluctuation, rapid change, gradual decrease and smoothing, is detected through the window. Trend characteristic information XtrendBy number of trend types N 'in detection window'trendAnd the number N of candidate load trend typestrendAnd (4) dividing to obtain the final product.
The time characteristic information refers to comparing the time interval of each window with the opening time interval of each corresponding candidate load to determine the time characteristic information of each candidate load corresponding to each window; if the time interval of the window is within the opening time interval of each corresponding candidate load, the time characteristic information is 1, otherwise, the time characteristic information is 0. According to the candidate window, each load has a time period of opening, for example, the electric cooker is switched on at the time of 6:00-9:00, 11:00-14:00, 16: the three time periods of 00-20:00 are frequently used. If the candidate window is within the time period corresponding to the load, XtimeIs 1, otherwise is 0.
Frequency characteristic information XrateNumber N 'repeated by edge type in detection window'rateNumber of repetitions to candidate load edge type NrateAnd (4) dividing to obtain the final product.
The sequence feature information is determined using a ratio of 1 minus the amount of inverse sequence variation of the candidate payload and the sequence variable in the window. For the electric appliances with fixed sequences, such as washing machines, dish washing machines and the like, a sequence calibration method is adopted. For example, the washing machine has four processes of water injection, soaking, washing and spin-drying, corresponding to 1, 2, 3 and 4, the inverse sequence variation M is calculated as |1-4| + |2-3| + |3-2| + |4-1| 8, and then the sequence variation N in the window is calculated, if the sequence in the window is 2, 1, 3 and 4, the variation N is |1-2| + |2-1| + |3-3| + |4-4| 2. Last XorderThe ratio of M to N is subtracted from 1.
In an embodiment of the present invention, the load of each window is determined according to the feature information and a feature information weight set corresponding to each candidate load. And putting the edge characteristic information, the trend characteristic information, the time characteristic information, the frequency characteristic information and the sequence characteristic information into a characteristic information array X, multiplying the characteristic information array X by the weight omega corresponding to each candidate load to obtain omega TX, wherein the weights of the group corresponding to each candidate load are different for different loads. For example, the sequence characteristic information accounts for a large proportion of fixed loads such as washing machines, the frequency characteristic information accounts for a small proportion of repeated loads such as hot water kettles, and the time characteristic information provides suggestions for most of life loads. And multiplying the feature information array X by the feature information weight group corresponding to each candidate load, calculating a difference value between the feature information array X and a preset critical value lambda, and selecting the candidate load corresponding to the maximum difference value as the load of each window.
Fig. 3 is a schematic structural diagram of a load detection apparatus 300 according to an embodiment of the present invention. As shown in fig. 3, a load detection system 300 according to an embodiment of the present invention includes: a windowing processing module 301, a candidate load set determining module 302, a feature information determining module 303 and a window load determining module 304. Preferably, in the windowing processing module 301, the obtained voltage signal and current signal on the bus at the inlet of the load are windowed according to a preset time period, and a power signal corresponding to each window is determined.
Preferably, wherein the system further comprises:
and the filtering processing module is used for filtering the acquired voltage signal and current signal on the bus at the general inlet of the load and converting the voltage signal and the current signal subjected to filtering processing into a voltage digital signal and a current digital signal.
Preferably, the acquired voltage signal and current signal on the bus at the inlet of the load are filtered by a 24-bit analog-to-digital converter with model number AD 1256.
Preferably, in the candidate load set determining module 302, the candidate load set of each window is determined according to the duration characteristic of the power signal corresponding to each window, and each candidate load set includes at least one candidate load.
Preferably, wherein the system further comprises:
and the candidate load range determining module is used for determining the candidate load range corresponding to each window according to the power characteristics of the power signal corresponding to each window before determining the candidate load set of each window.
Preferably, in the characteristic information determining module 303, the characteristic information of each candidate load corresponding to each window is determined according to the power signal of each window and the power signal of each candidate load corresponding to each window. Preferably, wherein the characteristic information includes: edge feature information, trend feature information, temporal feature information, frequency feature information, and sequence feature information.
Preferably, the determining the characteristic information of each candidate load corresponding to each window according to the power signal of each window and the power signal of each candidate load corresponding to each window by the characteristic information determining module includes:
an edge feature information determining unit, configured to divide the number of edge types in each window by the number of edge types of each corresponding candidate load, and determine edge feature information of each candidate load corresponding to each window;
the trend characteristic information determining unit is used for dividing the trend type number in each window and the trend type number of each corresponding candidate load to determine the trend characteristic information of each candidate load corresponding to each window;
the time characteristic information determining unit is used for comparing the time interval of each window with the opening time interval of each corresponding candidate load and determining the time characteristic information of each candidate load corresponding to each window; if the time interval of the window is within the opening time interval of each corresponding candidate load, the time characteristic information is 1, otherwise, the time characteristic information is 0;
a frequency characteristic information determining unit, configured to divide the number of edge type repetitions of each window by the number of edge types of each corresponding candidate load, and determine frequency characteristic information of each candidate load corresponding to each window;
and the sequence characteristic information determining unit is used for determining the sequence characteristic information of each candidate load corresponding to each window by using the ratio of 1 minus the inverse sequence variation of the candidate load and the sequence variable in the window.
Preferably, in the window load determining module 304, the load of each window is determined according to the feature information and the feature weight set corresponding to each candidate load.
Preferably, the window load determining module determines the load of each window according to the feature information and the feature weight set corresponding to each candidate load, and is specifically configured to:
and respectively forming a characteristic information array corresponding to each candidate load of each window by edge characteristic information, trend characteristic information, time characteristic information, frequency characteristic information and sequence characteristic information, calculating the difference between the multiplied characteristic information array and a characteristic weight set corresponding to each candidate load and a preset critical value, and selecting the candidate load corresponding to the maximum difference as the load of each window.
The load detection apparatus 300 according to the embodiment of the present invention corresponds to the method 100 for detecting a load according to another embodiment of the present invention, and is not described herein again.
The invention has been described with reference to a few embodiments. However, other embodiments of the invention than the one disclosed above are equally possible within the scope of the invention, as would be apparent to a person skilled in the art from the appended patent claims.
Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a/an/the [ device, component, etc ]" are to be interpreted openly as referring to at least one instance of said device, component, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.