Household appliances infrared remote waveform replication learning method and system
10140853 ยท 2018-11-27
Assignee
Inventors
Cpc classification
International classification
Abstract
The present disclosure provides a method for replication and learning of a waveform for infrared (IR) remote control of a household appliance. The method includes: sampling a data code in a household appliance infrared remote waveform by a direct sampling method, so as to obtain sampled data; performing feature extraction on the sampled data to obtain a feature value; reversing the level whose length is shorter than the minimum feature value and is within a preset range; adding the reversed level length with the adjacent levels length to perform deburring in the household appliance infrared remote waveform, wherein adjacent levels refer to the levels previous and after the reversed level, and the minimum feature value is feature value of the minimum level length.
Claims
1. A method for replication and learning of a waveform for infrared (IR) remote control of a household appliance, comprising: sampling a data code in the household appliance infrared remote waveform by a direct sampling method to obtain sampled data, wherein the sampled data comprises a level type and a level duration, wherein the level type comprises a high level and a low level; performing feature extraction on the sampled data to obtain a feature value, wherein the feature value comprises a high level feature value and a low level feature value, the feature value comprising a level value and a level length, wherein the level length is the level duration, the level value is selected between 1 and 0; and reversing the level length which is shorter than a minimum feature value and is within a preset range; adding the reversed level length with an adjacent levels length of adjacent levels to perform deburring in the household appliance infrared remote waveform, wherein the adjacent levels refer to the levels previous and after the reversed level, and the minimum feature value is a feature value with a minimum level length.
2. The method for replication and learning of the waveform for IR remote control of the household appliance according to claim 1, wherein performing feature extraction on the sampled data to obtain the feature value comprises: classifying the sampled data with the high level type as sampled high level data; and processing the level duration of the sampled high level data, comprising: deleting a first preset number of the sampled high level data with a longest duration and a second preset number of the sampled high level data with a shortest duration; dividing a remaining sampled high level data into four groups with a same time interval; selecting a level duration average value of a data group with maximum volume from the four high level sampled data groups as a first feature value t4 of the sampled high level data; and selecting a level duration average value of a data group with second largest volume from the four high level sampled data groups as a second feature value t2 of the sampled high level data.
3. The method for replication and learning of the waveform for IR remote control of the household appliance according to claim 2, wherein performing feature extraction on the sampled data to obtain the feature value comprises: classifying the sampled data with the low level type as sampled low level data; and processing the level duration of the sampled low level data, comprising: deleting a first preset number of the sampled low level data with a longest duration and a second preset number of the sampled low level data with a shortest duration; dividing a remaining sampled low level data into four groups with a same time interval; selecting a level duration average value of a data group with maximum volume from the four low level sampled data groups as a first feature value t3 of the sampled low level data; and selecting a level duration average value of a data group with second largest volume from the four low level sampled data groups as a second feature value t1 of the sampled low level data.
4. The method for replication and learning of the waveform for IR remote control of the household appliance according to claim 3, further comprising encoding the sampled data, wherein encoding the sampled data comprises: comparing the sampled high level data with the first feature value t4 and the second feature value t2 of the sampled high level data and assigning the sampled high level data whose level length is within 50% of the first feature value t4 or the second feature value t2 with a corresponding feature value, the corresponding feature value being the first feature value t4 or the second feature value t2; comparing the sampled low level data with the first feature value t3 and the second feature value t1 of the sampled low level data, and assigning the sampled low level data whose level length is within 50% of the first feature value t3 or the second feature value t1 with a corresponding feature value, the corresponding feature value being the first feature value t3 or the second feature value t1, so that the assigned sampled high level data and sampled low level data become the data represented by the four feature values t1, t2, t3 and t4.
5. The method for replication and learning of the waveform for IR remote control of the household appliance according to claim 4, wherein the encoding method further comprises: representing the four feature values t1, t2, t3 and t4 with the binary numbers 00, 01, 10 and 11; wherein the sampled data are compressed as four binary numbers 00, 01, 10 and 11.
6. A system for replication and learning of a waveform for infrared (IR) remote control of a household appliance, comprising: a sampling module device, configured to sample a data code from the household appliance infrared remote waveform by a direct sampling method to obtain the sampled data; wherein the sampled data comprises a level type and a level duration, the level type comprises a high level and a low level; a feature extraction module device connected to the sampling module device, configured to perform a feature extraction to the sampled data to obtain a feature value, wherein the feature value comprising a high level feature value and a low level feature value; each feature value comprising a level value and a level length, wherein the level length is the level duration, and the level value is selected between 1 and 0; and a deburring module device, connected to the feature extraction module device and the sampling module device, configured to reverse the level length which is shorter than a minimum feature value and is within a preset range, and adding the reversed level length with an adjacent levels length of adjacent levels to perform deburring in the household appliance infrared remote waveform, wherein the adjacent levels refer to the levels previous and after the reversed level, and the minimum feature value is a feature value with a minimum level length.
7. The system for replication and learning of the waveform for IR remote control of the household appliance according to claim 6, wherein the feature extraction module device comprises: a classifying unit device, configured to classify the sampled data with the high level type as high level sampled data; and a first processing unit device connected to the classifying unit device, configured to process the level duration of the sampled high level data; the first processing unit device comprising: a first deleting subunit device connected to the classifying unit device, configured to delete a first preset number of the sampled high level data with a longest duration and a second preset number of the sampled high level data with a shortest duration; a first dividing subunit device connected to the first deleting subunit device and the classifying unit device, and configured to divide a remaining sampled high level data into four groups with a same time interval; a first feature value extraction subunit device connected to the first dividing subunit device, configured to select a level duration average value of a data group with maximum volume from the four high level sampled data groups as a first feature value t4 of the sampled high level data; and a second feature value extraction subunit device connected to the first dividing subunit device, configured to select a level duration average value of a data group with second largest volume from the four high level sampled data groups as a second feature value t2 of the sampled high level data.
8. The system for replication and learning of the waveform for IR remote control of the household appliance according to claim 7, wherein the feature extraction module device further comprises: the classifying unit device, configured to classify the sampled data with the low level type as low level sampled data; and a second processing unit device connected to the classifying unit device, configured to process the level duration of the sampled low level data; the second processing unit device comprising: a second deleting subunit device connected to the classifying unit device, configured to delete a first preset number of the sampled low level data with a longest duration and a second preset number of the sampled low level data with a shortest duration; a second classifying subunit device connected to the first deleting subunit device and the classifying unit device, configured to divide a remaining sampled low level data into four groups with a same time interval; a third feature value extraction subunit device connected to the first classifying subunit device, configured to select a level duration average value of a data group with largest volume from the four low level sampled data groups as a first feature value t3 of the sampled low level data; and a fourth feature value extraction subunit device connected to the first classifying subunit device, configured to select a level duration average value of a data group with second largest volume from the four low level sampled data groups as a second feature value t1 of the sampled low level data.
9. The system for replication and learning of the waveform for IR remote control of the household appliance according to claim 8, further comprising: an encoding module device connected to the feature extraction module device, wherein the encoding module device comprises: a high level assigning unit device, configured to compare the sampled high level data with the first feature value t4 and the second feature value t2 of the sampled high level data and assign the sampled high level data whose level length is within 50% of the first feature value t4 or the second feature value t2 with a corresponding high level feature value, the corresponding feature value being the first feature value t4 or the second feature value t2; a low level assigning unit device, configured to compare the sampled low level data with the first feature value t3 and the second feature value t1 of the sampled low level data and assign the sampled low level data whose level length is within 50% of the first feature value t3 or the second feature value t1 with a corresponding low level feature value, the corresponding feature value being the first feature value t3 or the second feature value t1; and a representing unit device, configured to represent the assigned sampled high level data and sampled low level data with four feature values t1, t2, t3, and t4.
10. The system for replication and learning of the waveform for IR remote control of the household appliance according to claim 9, wherein the encoding module device further comprises: a binary representing unit device connected to the representing unit device, configured to respectively represent the four feature values t1, t2, t3, and t4 with the binary numbers 00, 01, 10, and 11, so that the sampled data are encoded with the four binary numbers 00, 01, 10, and 11.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DESCRIPTION OF REFERENCE NUMERALS OF ELEMENTS
(11) 100 System for replication and learning of a waveform for IR remote control of a household appliance 110 Sampling module 120 Feature extraction module 121 Classifying unit 122 First processing unit 1221 First deleting subunit 1222 First classifying subunit 1223 First feature value extraction subunit 1224 Second feature value extraction subunit 123 Second processing unit 1231 Second deleting subunit 1232 Second classifying subunit 1233 Third feature value extraction subunit 1234 Fourth feature value extraction subunit 130 Deburring module 140 Encoding module 141 High level assigning unit 142 Low level assigning unit 143 Representing unit S11S13 Steps S21S22 Steps S221S224 Steps S31S32 Steps S321S324 Steps S41S42 Steps
DETAILED DESCRIPTION
(12) The present disclosure will be described below by means of specific embodiments. Other advantages and effects of the disclosure will be readily understood by those skilled in the art from the disclosure herein. The present disclosure may also be implemented or utilized as other different specific embodiments, and various modifications or changes may be made to the details disclosed herein from different views and for different applications without departing from the spirit of the disclosure. It is noted that in case of no conflict the following embodiments and the features in the embodiments may be combined with one another.
(13) It is noted that the drawings presented in the following embodiments are intended merely to illustrate the basic concept of the present disclosure in a schematic manner and hence only show the components related hereto which are not drawn to their quantities, shapes and sizes in actual implementations where their configurations, quantities and scales may vary arbitrarily and their arrangements may also be more complex.
(14) Referring to
(15) TABLE-US-00001 TABLE 1 Sampled Data L 3523.9 H 1717.7 L 455.9 H 431.7 L 434.1 H 1293.5 L 434.2 H 431.7 L 434 H 431.8 L 434 H 431.7 L 438.3
(16) S12: performing the feature extraction on the sampled data to obtain feature values. The feature values include high level feature values and low level feature values. Each feature value includes a level value and a level length. The level length refers to its duration, and the value of the level is either 1 or 0. The feature value of the sampled data may contain various variants such as averages, maximums or minimums of level lengths.
(17) S13: reversing the level whose length is shorter than the minimum feature value and is within a preset range, and adding the reversed level length with the adjacent levels length to perform deburring in the household appliance infrared remote waveform. The adjacent levels refer to the levels previous and after the reversed level, and the minimum feature value is feature value of the minimum level length. The minimum feature value is feature value of the minimum level length. Here, reversing of a level refers to set an original high level to a low level or an original low level to a low level. For example, the preset range may be a percentage range determined according the practical need, e.g., 50%, 30% or the like. In other words, this step is carried out to compare the originally sampled data with the feature values and thereby delete or filter those original data that excessively deviated from the feature values, i.e., correcting possible interference levels therein, so as to remove burrs from the IR wave for the household appliance.
(18) In addition, referring to
(19) S21: classifying sampled data with the high level type as sampled high level data; S22: processing the level durations of the sampled high level data. The processing includes: S221: deleting a first preset number of the sampled high level data with the longest durations and a second preset number of the sampled high level data with the shortest durations. For example, 10 sampled high level data with the longest durations and 10 sampled high level data with the shortest durations are deleted.
(20) S222: dividing the remaining sampled high level data into four groups with the same time interval. For example, an aggregate duration of the remaining sampled high level data is determined by subtracting the minimum from the maximum, of the durations of the remaining sampled high level data, and is divided into four segments. A histogram (referring to
(21) S223: selecting a level duration average value of a data group with maximum volume from the four high level sampled data groups as a first feature value t4 of the sampled high level data. For example, the interval or time point of the highest frequency that the sampled data occur is set as the first feature value t4 of the sampled high level data.
(22) S224: selecting a level duration average value of a data group with second largest volume from the four high level sampled data groups as a second feature value t2 of the sampled high level data. For example, the interval or time point of the second highest frequency that the sampled data occur is set as the second feature value t2 of the sampled high level data. Additionally, referring to
(23) S31: classifying sampled data with the low level type as sampled low level data;
(24) S32: processing the level durations of the sampled low level data. The processing includes:
(25) S321: deleting a first preset number of the sampled low level data with the longest durations and a second preset number of the sampled low level data with the shortest durations. For example, 10 sampled low level data with the longest durations and 10 sampled low level data with the shortest durations are deleted.
(26) S322: dividing the remaining sampled low level data into four groups with the same time interval. For example, an aggregate duration of the remaining sampled low level data is determined by subtracting the minimum from the maximum, of the durations of the remaining sampled low level data, and is divided into four segments. A histogram (referring to
(27) S323: selecting a level duration average value of a data group with maximum volume from the four low level sampled data groups as a first feature value t3 of the sampled low level data. For example, the interval or time point of the highest frequency that the sampled data occur is set as the first feature value t3 of the sampled low level data
(28) S324: selecting a level duration average value of a group of data with second largest volume from the four low level sampled data groups as a second feature value t1 of the sampled low level data. For example, the interval or time point of the second highest frequency that the sampled data occur is set as the second feature value t1 of the sampled low level data.
(29) Moreover, referring to
(30) S41: comparing the sampled high level data with the first feature value t4 and second characteristic value t2 of the sampled high level data, and assigning the sampled high level data whose level length is within 50% of the feature values with the corresponding feature value. For example, when t2=394.9 and t4=1234.7, assign an original sampled high level data with a level length of 1000.5 to 1234.7, and an original sampled high level data with a level length of 422.5 to 394.9.
(31) S42: comparing the sampled low data with the first feature value t3 and second feature value t1 of the sampled low level data, and, assigning the sampled low level data whose level length is within 50% of the feature values with the corresponding feature value. For example, when t1=180.9 and t3=680.7, assign an original sampled low level data with a level length of 102.2 to 180.9, and an original sampled low level data with a level length of 542.2 to 680.7.
(32) S43: As a result, the assigned sampled data become data represented by the four feature values t1, t2, t3 and t4.
(33) S44: Representing the four feature values t1, t2, t3 and t4 with the binary numbers 00, 01, 10 and 11, the sampled data are compressed as four binary numbers 00, 01, 10 and 11. With this compression approach, the waveform in the form of data bits is directly compressed as being represented by the four binary numbers. During transmission of this waveform, a description of the feature value length is added to the packet header so that the receiver can directly extract the whole waveform. As for the start and end bits, in the present disclosure, the direct sampling method is used to directly add them to the whole packet.
(34) According to the present disclosure, determination of the waveform feature values through statistical frequency histograms enables effective removal of burred levels and smooth recovery of the waveform. In addition, compression of the very long remote control waveform for the air conditioner by a considerable proportion results is a significant increase in the success rate of sampling.
(35) The scope of protection of the method for replication and learning of a waveform for IR remote control of a household appliance disclosed herein is not limited to the order in which the steps are performed as described in this embodiment, all embodiments made through addition of or substitution for conventional steps based on the principles of the present disclosure are embraced in the scope of protection thereof.
(36) The present disclosure also provides a system for replication and learning of a waveform for IR remote control of a household appliance. The system for replication and learning of a waveform for IR remote control of a household appliance can implement the method for replication and learning of a waveform for IR remote control of a household appliance disclosed herein. However, devices that can implement the method for replication and learning of a waveform for IR remote control of a household appliance disclosed herein include, but not limited to, the method for replication and learning of a waveform for IR remote control of a household appliance disclosed herein. Rather, all variations of or substitutions for conventional structures made based on the principles of the present disclosure are embraced in the scope of protection thereof.
(37) Referring to
(38) The feature extraction module 120 is connected to the sampling module 110 and is configured to perform the feature extraction to the sampled data to obtain a feature value, the feature value comprising high level feature values and low level feature values; each the feature value comprising a level value and a level length, wherein the level length is the level duration, and the level value is 1 or 0. The feature values of the sampled data may contain various variants such as averages, maximums or minimums of level lengths.
(39) The deburring module 130 is connected to both the characteristic extraction module 120 and the sampling module 110 and is configured to reverse the level whose length is shorter than the minimum feature value and is within a preset range, and adding the reversed level length with the adjacent levels length to perform deburring in the household appliance infrared remote waveform, wherein the adjacent levels refer to the levels previous and after the reversed level, and the minimum feature value is the feature value of the minimum level length. The minimum feature value is the one with the minimum level length. In other words, in the present disclosure, the originally sampled data are compared with the feature values, thereby removing or filtering those original data that excessively deviated from the feature values, i.e., correcting possible interference levels therein, so as to remove burrs from the IR sound wave for the household appliance.
(40) Further, referring to
(41) The classifying unit 121 is configured to classify the sampled data with the high level type as high level sampled data.
(42) The first processing unit 122 is connected to the classifying unit 121 and is configured to process the level durations of the sampled high level data.
(43) The second processing unit 123 is connected to the classifying unit 121 and is configured to process the level durations of the sampled low level data.
(44) The first processing unit 122 includes a first deleting subunit 1221, a first classifying subunit 1222, a first feature value extraction subunit 1223 and a second feature value extraction subunit 1224.
(45) The first deleting subunit 1221 is connected to the classifying unit 121 and is configured to delete a first preset number of the sampled high level data with the longest durations and a second preset number of the sampled high level data with the shortest durations. For example, 10 sampled high level data with the longest durations and 10 sampled high level data with the shortest durations are deleted. The first classifying subunit 1222 is connected to the first deleting subunit and the classifying unit and is configured to divide the remaining sampled high level data into four groups with the same time interval. For example, an aggregate duration of the remaining sampled high level data is determined by subtracting the minimum from the maximum, of the durations of the remaining sampled high level data, and is divided into four segments. A histogram (referring to
(46) The second processing unit 123 includes a second deleting subunit 1231, a second classifying subunit 1232, a third feature value extraction subunit 1233 and a fourth feature value extraction subunit 1234.
(47) The second deleting subunit 1231 is connected to the classifying unit 121 and is configured to delete a first preset number of the sampled low level data with the longest durations and a second preset number of the sampled low level data with the shortest durations. For example, For example, 10 sampled low level data with the longest durations and 10 sampled low level data with the shortest durations are deleted. The second classifying subunit 1232 is connected to the first deleting subunit and the classifying unit and is configured to divide the remaining sampled low level data into four groups with the same time interval. For example, an aggregate duration of the remaining sampled low level data is determined by subtracting the minimum from the maximum, of the durations of the remaining sampled low level data, and is divided into four segments. A histogram (referring to
(48) The third feature value extraction subunit 1233 is connected to the first classifying subunit and is configured to select a level duration average value of a data group with largest volume from the four low level sampled data groups as a first feature value t3 of the sampled low level data. For example, the interval or time point of the highest frequency that the sampled data occur is set as the first feature value t3 of the sampled low level data.
(49) The fourth feature value extraction subunit 1234 is connected to the first feature subunit and is configured to select a level duration average value of a data group with the second largest volume from the four low level sampled data groups as a first feature value t1 of the sampled low level data. For example, the interval or time point of the second highest frequency that the sampled data occur is set as the first feature value t3 of the sampled low level data.
(50) Further, referring to
(51) The high level normalization unit 141 in configured to compare the sampled high level data with the first feature value t4 and second feature value t2 of the sampled high level data and assign the sampled high level data whose level length is within 50% of the feature values with the corresponding high level feature value. For example, when t2=394.9 and t4=1234.7, assign an original sampled high level data with a level length of 1000.5 to 1234.7, and an original sampled high level data with a level length of 422.5 to 394.9.
(52) The low level assigning unit 142 is configured to compare the sampled low data with the first feature value t3 and second feature value t1 of the sampled low level data, and, assigning the sampled low level data whose level length is within 50% of the feature values with the corresponding feature value. For example, when t1=180.9 and t3=680.7, assign an original sampled low level data with a level length of 102.2 to 180.9, and an original sampled low level data with a level length of 542.2 to 680.7.
(53) The sampled data assigned by the representing unit 143 become data represented by the four feature values t1, t2, t3 and t4.
(54) The binary representing unit 144 is connected to the representing unit and is configured to respectively represent the four feature values t1, t2, t3, and t4 with the binary numbers 00, 01, 10, and 11, so that the sampled data are encoded with the four binary numbers 00, 01, 10, and 11. With this compression approach, the waveform in the form of data bits is directly compressed as being represented by the four binary numbers. During transmission of this waveform, a description of the feature value length is added to the packet header so that the receiver can directly extract the whole waveform. As for the start and end bits, in the present disclosure, the direct sampling method is used to directly add them to the whole packet.
(55) According to the present disclosure, based on an in-depth analysis on waveforms of remote control codes for air conditioners, a statistical method is used to determine feature values of a remote control code for an air conditioner. This addresses the problem of interference from burrs. In addition, compression of the very long remote control code by a considerable proportion results in a significant increase in the success rate of replication of the IR remote control code.
(56) In summary, the present disclosure has effectively overcome the various drawbacks of the prior art and has a high value in industrial use.
(57) The embodiments presented above merely explain the principles and effects of the present disclosure exemplarily and are not intended to limit the disclosure. Any person familiar with the art can make modifications or changes to the above embodiments without departing from the spirit and scope of the disclosure. Accordingly, all equivalent modifications or changes made by those of ordinary skill in the art without departing from the spirit and technical concept disclosed herein are intended to be embraced by the claims of the present disclosure.