Method and device for controlling air conditioner based on myoelectric signal and intelligent air conditioner
Patent Information
- Application Number
- CN202310553206.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-16
- Publication Date
- 2026-09-15
- Estimated Expiration
- 2043-05-16
AI Technical Summary
[0004]在日常生活中,用户手部动作具有多样性,当利用肌电手环采集肌电信号并转换为手势动作时,用户日常生活中随机的手势动作,容易被误判为空调的控制信号,从而导致空调误动作
[0019] The process begins by determining the current control command level corresponding to the air conditioner's current operating state. This means the current control command level corresponds to the current operating state. Further, the current control command is determined based on the current gesture and the current command level. This means the current control command must correspond to the current operating state; therefore, control commands that do not correspond to the current operating state will not be identified as current control commands. In other words, not all random gestures from the user are identified as current control commands; only those corresponding to the current operating state are identified. This reduces the probability of random gestures being misidentified as current control commands, minimizing the occurrence of gesture misjudgments.
Smart Images

Figure CN116734414B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of gesture control technology for air conditioners, such as a method, apparatus, and smart air conditioner for controlling an air conditioner based on electromyography signals. Background Technology
[0002] Currently, some smart air conditioners use image acquisition devices to capture images of users' hands and recognize the user's gestures within those images. Based on this recognition, the air conditioner can be controlled, thus improving the user experience. However, this control method is relatively area-dependent; for example, the user needs to make the corresponding gesture within the image acquisition area of the device, which reduces the ease of control to some extent. To improve ease of control, an electromyography (EMG) wristband can be used to collect the user's electromyographic signals from their hand. These signals can then be converted into hand gestures, which can be mapped to control commands for the air conditioner. Finally, these commands can be used to control the air conditioner.
[0003] In the process of implementing the embodiments of this application, at least the following problems were found in the related technology:
[0004] In daily life, users' hand movements are diverse. When electromyography (EMG) bracelets collect EMG signals and convert them into hand gestures, random hand gestures in daily life can easily be misinterpreted as control signals for air conditioners, leading to malfunctions of the air conditioner.
[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.
[0007] This application provides a method, apparatus, and smart air conditioner for controlling an air conditioner based on electromyography (EMG) signals, in order to reduce the occurrence of gesture misjudgment during the process of controlling the air conditioner through EMG signals.
[0008] In some embodiments, the method for controlling an air conditioner based on electromyographic signals includes: determining the current command level corresponding to the current operating state of the air conditioner according to the correspondence between operating state and command level; the operating state is divided based on the sequence of actions of the air conditioner in the air conditioner control habit; obtaining the current gesture action represented by the current electromyographic gesture signal; determining the current control command according to the current gesture action and the current command level; and controlling the air conditioner according to the current control command.
[0009] Optionally, determining the current command level corresponding to the current operating state of the air conditioner includes: determining the current command level as level one when the current operating state is off; determining the current command level as level two when the current operating state is on for a duration less than or equal to a first set duration; and determining the current command level as level three when the current operating state is on for a duration greater than the first set duration.
[0010] Optionally, the current control instruction is determined based on the current gesture and the current instruction level, including: obtaining the current control instruction set that has execution permission at the current instruction level; if the control instruction corresponding to the current gesture belongs to the current control instruction set, then the control instruction corresponding to the current gesture is taken as the current control instruction; if the control instruction corresponding to the current gesture does not belong to the current control instruction set, then the current control instruction is determined to be empty.
[0011] Optionally, obtaining the current control instruction set that the current instruction level has execution permission includes: when the current instruction level is level 1, having the permission to execute the control instruction set corresponding to level 1, but not having the permission to execute the control instruction sets corresponding to level 2 and level 3; when the current instruction level is level 2, having the permission to execute the control instruction sets corresponding to level 1 and level 2, but not having the permission to execute the control instruction set corresponding to level 3; and when the current instruction level is level 3, having the permission to execute the control instruction sets corresponding to level 1, level 2, and level 3.
[0012] Optionally, obtaining the current gesture action represented by the current electromyographic gesture signal includes: obtaining a first number of consecutive empty historical control commands up to the current time; if the first number is less than or equal to a set fault tolerance threshold, then obtaining the current gesture action represented by the current electromyographic gesture signal.
[0013] Optionally, obtaining the current gesture action represented by the current electromyographic gesture signal further includes: if the first quantity is greater than a set fault tolerance threshold, then waiting for a second set time before obtaining the gesture instruction represented by the electromyographic gesture signal.
[0014] Optionally, obtaining the first number of consecutively empty historical control commands up to the current time includes: obtaining the first number of consecutively empty historical control commands within a third set time period before the current time.
[0015] In some embodiments, the device for controlling an air conditioner based on electromyographic signals includes a first determining module, an obtaining module, a second determining module, and a control module. The first determining module is used to determine the current command level corresponding to the current operating state of the air conditioner according to the correspondence between the operating state and the command level. The operating state is divided based on the sequential action order of the air conditioner in the air conditioner control habit. The obtaining module is used to obtain the current gesture action represented by the current electromyographic gesture signal. The second determining module is used to determine the current control command according to the current gesture action and the current command level. The control module is used to control the air conditioner according to the current control command.
[0016] In some embodiments, the apparatus for controlling an air conditioner based on electromyography (EMG) signals includes a processor and a memory storing program instructions, the processor being configured to execute the method for controlling an air conditioner based on EMG signals provided in the foregoing embodiments when executing the program instructions.
[0017] In some embodiments, the smart air conditioner includes the device for controlling the air conditioner based on electromyography signals provided in the foregoing embodiments.
[0018] The method, apparatus, and intelligent air conditioner for controlling air conditioning based on electromyography signals provided in this application can achieve the following technical effects:
[0019] The process begins by determining the current control command level corresponding to the air conditioner's current operating state. This means the current control command level corresponds to the current operating state. Further, the current control command is determined based on the current gesture and the current command level. This means the current control command must correspond to the current operating state; therefore, control commands that do not correspond to the current operating state will not be identified as current control commands. In other words, not all random gestures from the user are identified as current control commands; only those corresponding to the current operating state are identified. This reduces the probability of random gestures being misidentified as current control commands, minimizing the occurrence of gesture misjudgments.
[0020] The above general description and the description below are exemplary and illustrative only and are not intended to limit this application. Attached Figure Description
[0021] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrative descriptions and drawings do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are considered similar elements, and wherein:
[0022] Figure 1 This is a flowchart illustrating a method for controlling an air conditioner based on electromyography signals, as provided in an embodiment of this application.
[0023] Figure 2 This is a flowchart illustrating a method for controlling an air conditioner based on electromyography signals, as provided in an embodiment of this application.
[0024] Figure 3 This is a flowchart illustrating a method for controlling an air conditioner based on electromyography signals, as provided in an embodiment of this application.
[0025] Figure 4 This is a flowchart illustrating a method for controlling an air conditioner based on electromyography signals, as provided in an embodiment of this application.
[0026] Figure 5 This is a schematic diagram of a device for controlling an air conditioner based on electromyography signals, provided in an embodiment of this application;
[0027] Figure 6 This is a schematic diagram of a device for controlling an air conditioner based on electromyography signals, provided in an embodiment of this application;
[0028] Figure 7 This is a schematic diagram of an intelligent air conditioner provided in an embodiment of this application. Detailed Implementation
[0029] To provide a more detailed understanding of the features and technical content of the embodiments of this application, the implementation of the embodiments of this application will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for illustrative purposes only and are not intended to limit the embodiments of this application. In the following technical description, for ease of explanation, several details are used to provide a full understanding of the disclosed embodiments. However, one or more embodiments may still be implemented without these details. In other cases, well-known structures and devices may be simplified in their depiction to simplify the drawings.
[0030] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.
[0031] Unless otherwise stated, the term "multiple" means two or more.
[0032] In this embodiment, the character " / " indicates that the objects before and after it are in an "or" relationship. For example, A / B means: A or B.
[0033] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.
[0034] Figure 1 This is a flowchart illustrating a method for controlling an air conditioner based on electromyography (EMG) signals, as provided in an embodiment of this application. This method can be implemented in the controller of the air conditioner; it can also be implemented in the controller of the EMG acquisition device; and when both the EMG acquisition device and the air conditioner are communicatively connected to a server, the method can also be implemented in the server.
[0035] Combination Figure 1 As shown, the method for controlling air conditioning based on electromyography signals includes:
[0036] S101. Determine the current command level corresponding to the current operating state of the air conditioner based on the correspondence between the operating state and the command level.
[0037] The operating status of an air conditioner is determined based on the sequence of actions of the air conditioner in the air conditioner control habits. These control habits can be the current user's control habits, or they can be the control habits of most people.
[0038] Each instruction level corresponds to a control instruction set, which is a collection of control instructions for the air conditioner. Each control instruction set includes one or more control instructions.
[0039] Air conditioner control commands include, but are not limited to: start-up command, cooling command, heating command, fan speed command, airflow direction command, air wash command, and fresh air command.
[0040] Based on this, the control instruction set corresponding to the first-level instruction level may include the power-on instruction; the control instruction set corresponding to the second-level instruction level may include the cooling instruction and the heating instruction; and the control instruction set corresponding to the third-level instruction level may include the fan speed instruction, the air blowing direction instruction, the air washing instruction, and the fresh air instruction.
[0041] The above-described method of classifying control commands by command level is merely an illustrative example. Those skilled in the art can classify the actual control commands of the air conditioner by command level according to the above approach.
[0042] The correspondence between operating status and instruction level can be stored in a database. After obtaining the current operating status of the air conditioner, the current instruction level corresponding to the current operating status can be obtained by querying the database.
[0043] The operating status of the air conditioner may include the off state, the on state with an on time less than or equal to a first set time, and the on state with an on time greater than the first set time.
[0044] Based on this, the current command level corresponding to the current operating state of the air conditioner can be determined as follows: when the current operating state is off, the current command level is determined as Level 1; when the current operating state is on for a duration less than or equal to a first set duration, the current command level is determined as Level 2; when the current operating state is on for a duration greater than the first set duration, the current command level is determined as Level 3.
[0045] The initial setting time is related to the user's air conditioning usage habits. For example, if the user is used to quickly adjusting the air conditioning settings, the initial setting time will be shorter; if the user is used to slowly adjusting the air conditioning settings, the initial setting time will be longer.
[0046] A user's air conditioning usage habits can be those of a single user or those of multiple users.
[0047] If a user's air conditioning usage habits are consistent with those of a single user, the user can pre-set the first set duration. Furthermore, after the air conditioner is turned on, the system can calculate the first duration required for the user to set the relevant parameters of the air conditioner. The longer the first duration, the longer the first set duration; the shorter the first duration, the shorter the first set duration.
[0048] In cases where multiple users share the habit of using the air conditioner, after the air conditioner is turned on, the second duration required for multiple users to set the relevant parameters of the air conditioner can be calculated. This second duration can be the average duration. The longer the second duration, the longer the first setting duration; the shorter the second duration, the shorter the first setting duration.
[0049] In this way, the current instruction level can be obtained.
[0050] S102. Obtain the current gesture action represented by the current electromyographic gesture signal.
[0051] Users can wear electromyography (EMG) acquisition devices, such as EMG wristbands. Different user gestures result in different EMG hand signals collected by the EMG acquisition device, allowing the user's hand movements to be determined.
[0052] S103. Determine the current control command based on the current gesture and the current command level.
[0053] There is a corresponding relationship between the current gesture, the current command level, and the current control command.
[0054] S104. Control the air conditioner according to the current control command.
[0055] The process begins by determining the current control command level corresponding to the air conditioner's current operating state. This means the current control command level corresponds to the current operating state. Further, the current control command is determined based on the current gesture and the current command level. This means the current control command must correspond to the current operating state; therefore, control commands that do not correspond to the current operating state will not be identified as current control commands. In other words, not all random gestures from the user are identified as current control commands; only those corresponding to the current operating state are identified. This reduces the probability of random gestures being misidentified as current control commands, minimizing the occurrence of gesture misjudgments.
[0056] Figure 2 This is a flowchart illustrating a method for controlling an air conditioner based on electromyography (EMG) signals, as provided in an embodiment of this application. This method can be implemented in the controller of the air conditioner; it can also be implemented in the controller of the EMG acquisition device; and when both the EMG acquisition device and the air conditioner are communicatively connected to a server, the method can also be implemented in the server.
[0057] Combination Figure 2 As shown, the method for controlling air conditioning based on electromyography signals includes:
[0058] S201. Determine the current command level corresponding to the current operating state of the air conditioner based on the correspondence between the operating state and the command level.
[0059] S202. Obtain the current gesture action represented by the current electromyographic gesture signal.
[0060] S203. Obtain the current control instruction set that has execution permission at the current instruction level.
[0061] Each instruction level corresponds to a set of control instructions, and different instruction levels have different instruction execution permissions.
[0062] Each instruction level has the right to execute its corresponding control instruction set, as well as the right to execute the control instruction sets of other instruction levels with higher priority.
[0063] That is, the current control instruction set in this application embodiment includes the control instruction set corresponding to the current instruction level, and the control instruction sets corresponding to other instruction levels with higher priority than the current instruction level.
[0064] For example, the control instruction set corresponding to the first-level instruction level may include the power-on instruction; the control instruction set corresponding to the second-level instruction level may include the cooling instruction and the heating instruction; and the control instruction set corresponding to the third-level instruction level may include the fan speed instruction, the air blowing direction instruction, the air washing instruction, and the fresh air instruction.
[0065] Specifically, obtaining the current control instruction set that has execution permission at the current instruction level may include:
[0066] When the current instruction level is Level 1, it has the authority to execute the control instruction set corresponding to Level 1, but does not have the authority to execute the control instruction sets corresponding to Level 2 and Level 3.
[0067] When the current instruction level is level 2, it has the authority to execute the control instruction sets corresponding to level 1 and level 2, but does not have the authority to execute the control instruction sets corresponding to level 3.
[0068] When the current instruction level is level 3, it has the authority to execute the control instruction sets corresponding to level 1, level 2, and level 3 instructions;
[0069] Among them, the priority of Level 1 instruction is higher than that of Level 2 instruction, and the priority of Level 2 instruction is higher than that of Level 3 instruction.
[0070] For example, when the current command level is Level 1, the current control command set may include a power-on command; when the current command level is Level 2, the current control command set may include a cooling command, a heating command, and a power-on command; when the current command level is Level 3, the current control command set may include a fan speed command, a fan direction command, an air wash command, a fresh air command, a cooling command, a heating command, and a power-on command.
[0071] S204. If the control instruction corresponding to the current gesture belongs to the current control instruction set, then the control instruction corresponding to the current gesture shall be used as the current control instruction.
[0072] There is a correspondence between gestures and control commands. Based on this correspondence, the control command corresponding to the current gesture can be obtained.
[0073] S205. Control the air conditioner according to the current control command.
[0074] S206. If the control instruction corresponding to the current gesture action does not belong to the current control instruction set, then the current control instruction is determined to be empty.
[0075] The current control command is empty, indicating that the air conditioner does not respond to the current electromyographic gesture signal, and then S202 is re-executed. This embodiment of the application only illustrates the example of re-executing S202. In specific applications, S201 can also be re-executed when the current command is empty.
[0076] The current control instruction set includes the control instruction set corresponding to the current instruction level, as well as the control instruction sets corresponding to other instruction levels with higher priority than the current instruction level. This reduces the occurrence of gesture misjudgment and makes the method of controlling air conditioners based on electromyography signals more flexible.
[0077] Figure 3 This is a flowchart illustrating a method for controlling an air conditioner based on electromyography (EMG) signals, as provided in an embodiment of this application. This method can be implemented in the controller of the air conditioner; it can also be implemented in the controller of the EMG acquisition device; and when both the EMG acquisition device and the air conditioner are communicatively connected to a server, the method can also be implemented in the server.
[0078] Combination Figure 3 As shown, the method for controlling air conditioning based on electromyography signals includes:
[0079] S301. Determine the current command level corresponding to the current operating state of the air conditioner based on the correspondence between the operating state and the command level.
[0080] S302. Obtain the first number of consecutive empty historical control instructions up to the current time.
[0081] For example, up to the current moment, the obtained historical control instructions, in chronological order, are: null instruction, null instruction, non-null instruction, null instruction, null instruction, null instruction, null instruction. In this case, the first quantity is 3.
[0082] Optionally, obtaining the first number of consecutively empty historical control commands up to the current time includes: obtaining the first number of consecutively empty historical control commands within a third set time period before the current time.
[0083] The third set duration can be a recognition time window for recognizing electromyographic gesture signals. Electromyographic gesture signals obtained within the recognition time window are recognized, while those obtained outside the recognition time window are not recognized, or, outside the recognition time window, electromyographic gesture signals are not collected.
[0084] The third set duration is inversely correlated with the accuracy of the user's gesture actions, and positively correlated with the misjudgment rate of gesture misjudgment.
[0085] When a user needs to control the air conditioner, the higher the accuracy of the user's gesture, the shorter the third setting time; the lower the accuracy of the user's gesture, the longer the third setting time. The higher the requirement to reduce the occurrence of gesture misjudgment, that is, the lower the misjudgment rate of the demand for gesture misjudgment, the shorter the third setting time; the higher the misjudgment rate of the demand for gesture misjudgment, the longer the third setting time.
[0086] Those skilled in the art can determine a third set duration that conforms to the actual situation based on the specific meaning of the third set duration.
[0087] S303. If the first quantity is less than or equal to the set fault tolerance threshold, the current gesture action represented by the current electromyographic gesture signal is obtained.
[0088] The higher the fault tolerance threshold, the easier it is for the air conditioner to misinterpret gestures and malfunction, resulting in a higher misinterpretation rate. Conversely, the lower the fault tolerance threshold, the less likely the air conditioner will misinterpret gestures and malfunction, resulting in a lower misinterpretation rate, but it may lead to situations where users are unable to control the air conditioner.
[0089] Those skilled in the art can determine the appropriate fault tolerance threshold based on its specific meaning.
[0090] S304. Obtain the current control instruction set that has execution privileges at the current instruction level.
[0091] S305. If the control instruction corresponding to the current gesture belongs to the current control instruction set, then the control instruction corresponding to the current gesture shall be used as the current control instruction.
[0092] S306. Control the air conditioner according to the current control command.
[0093] S307. If the control instruction corresponding to the current gesture action does not belong to the current control instruction set, then the current control instruction is determined to be empty.
[0094] S308, Increment the first number of consecutive empty historical control instructions by one.
[0095] Then S302 is re-executed. This embodiment of the application only uses the re-execution of S302 as an example for illustrative purposes. In specific applications, S301 can also be re-executed when the current instruction is empty.
[0096] By adopting the above technical solution, the misjudgment rate of gesture misjudgment can be adjusted by adjusting the set fault tolerance threshold.
[0097] Figure 4This is a flowchart illustrating a method for controlling an air conditioner based on electromyography (EMG) signals, as provided in an embodiment of this application. This method can be implemented in the controller of the air conditioner; it can also be implemented in the controller of the EMG acquisition device; and when both the EMG acquisition device and the air conditioner are communicatively connected to a server, the method can also be implemented in the server.
[0098] Combination Figure 4 As shown, the method for controlling air conditioning based on electromyography signals includes:
[0099] S401. Determine the current command level corresponding to the current operating status of the air conditioner based on the correspondence between the operating status and the command level.
[0100] S402. Obtain the first number of consecutive empty historical control instructions up to the current time.
[0101] S403. If the first quantity is less than or equal to the set fault tolerance threshold, the current gesture action represented by the current electromyographic gesture signal is obtained.
[0102] S404: Obtain the current control instruction set that has the execution permission at the current instruction level.
[0103] S405. If the control instruction corresponding to the current gesture belongs to the current control instruction set, then the control instruction corresponding to the current gesture shall be used as the current control instruction.
[0104] S406. Control the air conditioner according to the current control command.
[0105] S407. If the control instruction corresponding to the current gesture action does not belong to the current control instruction set, then the current control instruction is determined to be empty.
[0106] S408: Increment the first number of consecutive empty historical control instructions by one.
[0107] S409. If the first quantity is greater than the set fault tolerance threshold, then wait for the second set time before executing S402 to obtain the gesture command represented by the electromyographic gesture signal.
[0108] A longer second set duration results in a lower misjudgment rate for gesture misinterpretation, but also a longer period during which the user cannot control the air conditioner. Conversely, a shorter second set duration results in a longer period during which the user can control the air conditioner, but also a higher misjudgment rate for gesture misinterpretation. Therefore, those skilled in the art can determine a second set duration that suits the actual situation to balance the misjudgment rate of gesture misinterpretation with the duration during which the user cannot control the air conditioner, thereby improving the user experience.
[0109] Furthermore, if in S402 the operation is to obtain the first number of consecutive empty historical control instructions up to the current time, then in S409, the operation also includes clearing the historical control instructions.
[0110] If in S402 the following is executed: "obtain the first number of consecutive empty historical control commands within a third set time period before the current time", then in S409, clearing historical control commands may or may not include situational historical control commands.
[0111] Without clearing historical control commands, if the second set duration is shorter than the third set duration, it can also help reduce the misjudgment rate of gesture misjudgment.
[0112] Figure 5 This is a schematic diagram of a device for controlling an air conditioner based on electromyography (EMG) signals, provided in an embodiment of this application. This device for controlling an air conditioner based on EMG signals can be implemented through software, hardware, or a combination of both.
[0113] Combination Figure 5 As shown, the device for controlling an air conditioner based on electromyography signals includes a first determining module 51, an obtaining module 52, a second determining module 53, and a control module 54.
[0114] The first determining module 51 is used to determine the current command level corresponding to the current operating state of the air conditioner based on the correspondence between the operating state and the command level; the operating state is divided based on the sequence of actions of the air conditioner in the air conditioner control convention.
[0115] The acquisition module 52 is used to acquire the current gesture action represented by the current electromyographic gesture signal.
[0116] The second determining module 53 is used to determine the current control command based on the current gesture action and the current command level.
[0117] The control module 54 is used to control the air conditioner according to the current control command.
[0118] Optionally, the first determining module 51 includes a first determining unit, a second determining unit, and a third determining unit;
[0119] The first determining unit is used to determine that the current instruction level is level one when the current operating state is power off;
[0120] The second determining unit is used to determine the current instruction level as level two when the current operating state is that the power-on duration is less than or equal to the first set duration.
[0121] The third determining unit is used to determine the current instruction level as level three when the current operating state is that the power-on duration is greater than the first set duration.
[0122] Optionally, the second determining module 53 includes a first obtaining unit, a fourth determining unit, and a fifth determining unit;
[0123] The first acquisition unit is used to acquire the current control instruction set that has execution permission at the current instruction level;
[0124] The fourth determining unit is used to take the control instruction corresponding to the current gesture as the current control instruction if the control instruction corresponding to the current gesture belongs to the current control instruction set.
[0125] The fifth determining unit is used to determine that the current control instruction is empty if the control instruction corresponding to the current gesture action does not belong to the current control instruction set.
[0126] Optionally, the first obtaining unit is specifically configured to: when the current instruction level is level 1, have the authority to execute the control instruction set corresponding to level 1, but not the authority to execute the control instruction sets corresponding to level 2 and level 3; when the current instruction level is level 2, have the authority to execute the control instruction sets corresponding to level 1 and level 2, but not the authority to execute the control instruction set corresponding to level 3; and when the current instruction level is level 3, have the authority to execute the control instruction sets corresponding to level 1, level 2, and level 3.
[0127] Optionally, the obtaining module 52 includes a second obtaining unit and a third obtaining unit;
[0128] The second acquisition unit is used to obtain the first number of consecutive empty historical control instructions up to the current time.
[0129] The third acquisition unit is used to acquire the current gesture action represented by the current electromyographic gesture signal if the first quantity is less than or equal to a set fault tolerance threshold.
[0130] Optionally, the acquisition module 52 further includes a delay unit, which is used to wait for a second set time after obtaining the gesture command represented by the electromyographic gesture signal if the first quantity is greater than a set fault tolerance threshold.
[0131] In some embodiments, the apparatus for controlling an air conditioner based on electromyography (EMG) signals includes a processor and a memory storing program instructions, wherein the processor is configured to execute the method for controlling an air conditioner based on EMG signals provided in the foregoing embodiments when executing the program instructions.
[0132] Figure 6 This is a schematic diagram of a device for controlling an air conditioner based on electromyography signals, provided in an embodiment of this application. (In conjunction with...) Figure 6 As shown, the device for controlling an air conditioner based on electromyographic signals includes:
[0133] The processor 61 and memory 62 may also include a communication interface 63 and a bus 64. The processor 61, communication interface 63, and memory 62 can communicate with each other via the bus 64. The communication interface 63 can be used for information transmission. The processor 61 can call logical instructions in the memory 62 to execute the method for controlling an air conditioner based on electromyography signals provided in the foregoing embodiments.
[0134] Furthermore, the logical instructions in the aforementioned memory 62 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0135] The memory 62, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this application. The processor 61 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 62, thereby implementing the methods in the above-described method embodiments.
[0136] The memory 62 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 62 may include high-speed random access memory and may also include non-volatile memory.
[0137] Figure 7 This is a schematic diagram of an intelligent air conditioner provided in an embodiment of this application. The intelligent air conditioner 71 includes the device 72 for controlling the air conditioner based on electromyography signals provided in the foregoing embodiment.
[0138] This application provides a computer-readable storage medium storing computer-executable instructions configured to execute the method for controlling an air conditioner based on electromyography signals provided in the foregoing embodiments.
[0139] This application provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, which, when executed by a computer, cause the computer to perform the method for controlling an air conditioner based on electromyography signals provided in the foregoing embodiments.
[0140] The aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0141] The technical solutions of this application embodiment can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods in this application embodiment. The aforementioned storage medium can be a non-transitory storage medium, including: USB flash drive, portable hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, and other media capable of storing program code; it can also be a transient storage medium.
[0142] The foregoing description and accompanying drawings fully illustrate embodiments of this application to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terminology used in this application is for describing embodiments only and is not intended to limit the claims. As used in the description of embodiments and claims, the singular forms “a,” “an,” and “the” are intended to equally include the plural forms unless the context clearly indicates otherwise. Additionally, when used in this application, the terms “comprise” and its variations “comprises” and / or “comprising” refer to the presence of stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. Unless otherwise specified, an element defined by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes that element. In this document, each embodiment may focus on describing the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, then the relevant parts can be referred to the description of the method section.
[0143] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0144] The methods and products (including but not limited to devices and equipment) disclosed in the embodiments herein can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units may be merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units can be selected to implement this embodiment according to actual needs. Furthermore, the functional units in the embodiments of this application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0145] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
Claims
1. A method for controlling an air conditioner based on electromyographic signals, characterized in that, include: Based on the correspondence between operating status and command level, determine the current command level corresponding to the current operating status of the air conditioner; The operating status is determined based on the sequence of actions of the air conditioner in air conditioning control practices. Specifically, when the current operating status is "off," the current command level is determined to be Level 1; when the current operating status is "on" for a duration less than or equal to a first set duration, the current command level is determined to be Level 2; and when the current operating status is "on" for a duration greater than the first set duration, the current command level is determined to be Level 3. The priority of Level 1 command is higher than that of Level 2 command, and the priority of Level 2 command is higher than that of Level 3 command. Obtain the current gesture action represented by the current electromyographic gesture signal; Obtain the first number of consecutive empty historical control commands up to the current moment; If the first quantity is less than or equal to the set fault tolerance threshold, the current gesture action represented by the current electromyographic gesture signal is obtained; The current control command is determined based on the current gesture and the current command level; each command level corresponds to a set of control commands, and the current control command set includes the control command set corresponding to the current command level as well as the control command sets corresponding to other command levels with higher priority than the current command level; Control the air conditioner according to the current control command.
2. The method according to claim 1, characterized in that, The control instruction set corresponding to the first-level instruction level includes the power-on instruction; the control instruction set corresponding to the second-level instruction level includes the cooling instruction and the heating instruction; and the control instruction set corresponding to the third-level instruction level includes the fan speed instruction, the air blowing direction instruction, the air washing instruction, and the fresh air instruction.
3. The method according to claim 1, characterized in that, The current control command is determined based on the current gesture and the current command level, including: Obtain the current control instruction set that has execute permission at the current instruction level; If the control instruction corresponding to the current gesture belongs to the current control instruction set, then the control instruction corresponding to the current gesture will be used as the current control instruction. If the control command corresponding to the current gesture does not belong to the current control command set, then the current control command is determined to be empty.
4. The method according to claim 3, characterized in that, Obtain the current control instruction set for which you have execution privileges at the current instruction level, including: When the current instruction level is Level 1, it has the authority to execute the control instruction set corresponding to Level 1, but does not have the authority to execute the control instruction sets corresponding to Level 2 and Level 3. When the current instruction level is level 2, it has the authority to execute the control instruction sets corresponding to level 1 and level 2, but does not have the authority to execute the control instruction sets corresponding to level 3. When the current instruction level is level 3, it has the authority to execute the control instruction sets corresponding to level 1, level 2, and level 3 instructions.
5. The method according to any one of claims 1 to 4, characterized in that, The higher the fault tolerance threshold, the more likely the air conditioner will misinterpret gestures and malfunction, resulting in a higher misjudgment rate. Conversely, the lower the fault tolerance threshold, the less likely the air conditioner will misinterpret gestures and malfunction, resulting in a lower misjudgment rate.
6. The method according to any one of claims 1 to 4, characterized in that, Also includes: If the first quantity is greater than the set fault tolerance threshold, then wait for the second set time before obtaining the gesture command represented by the electromyographic gesture signal.
7. The method according to any one of claims 1 to 4, characterized in that, Obtain the first number of consecutive empty historical control instructions up to the current moment, including: The first number of consecutive empty historical control commands within the third set time period before the current time is obtained.
8. A device for controlling an air conditioner based on electromyographic signals, characterized in that, include: The first determining module is used to determine the current command level corresponding to the current operating state of the air conditioner based on the correspondence between the operating state and the command level. The operating status is determined based on the sequence of actions of the air conditioner in air conditioning control practices. Specifically, when the current operating status is "off," the current command level is determined to be Level 1; when the current operating status is "on" for a duration less than or equal to a first set duration, the current command level is determined to be Level 2; and when the current operating status is "on" for a duration greater than the first set duration, the current command level is determined to be Level 3. The priority of Level 1 command is higher than that of Level 2 command, and the priority of Level 2 command is higher than that of Level 3 command. The acquisition module is used to acquire the current gesture action represented by the current electromyographic gesture signal; the acquisition module includes a second acquisition unit, used to acquire a first number of consecutive empty historical control commands up to the current time; and a third acquisition unit, used to acquire the current gesture action represented by the current electromyographic gesture signal if the first number is less than or equal to a set fault tolerance threshold. The second determining module is used to determine the current control command based on the current gesture action and the current command level; wherein, each command level corresponds to a control command set, and the current control command set includes the control command set corresponding to the current command level and the control command sets corresponding to other command levels with higher priority than the current command level; The control module is used to control the air conditioner according to the current control commands.
9. A device for controlling an air conditioner based on electromyography signals, comprising a processor and a memory storing program instructions, characterized in that, The processor is configured to execute the method for controlling an air conditioner based on electromyography signals as described in any one of claims 1 to 7 when executing the program instructions.
10. A smart air conditioner, characterized in that, This includes the device for controlling an air conditioner based on electromyography signals as described in claim 8 or 9.
Citation Information
Patent Citations
Air conditioner, control method and device of air conditioner as well as computer readable storage medium
CN109163422A
Clothes hanger control method, clothes hanger, system and storage medium
CN112764349A