Air conditioner, control method and device thereof, storage medium and computer program product

By using a spatial control rule engine to manage and make decisions on multiple rules of the smart air conditioner in a unified manner, the problem of frequent control switching is solved, user experience is improved, and equipment lifespan is extended.

CN123044949APending Publication Date: 2026-11-06GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610776787.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-01
Publication Date
2026-11-06

AI Technical Summary

Technical Problem

When a smart air conditioner with spatial awareness triggers multiple control rules simultaneously, using a simple priority or first-come-first-served approach may cause the device to frequently switch between different rules, affecting user experience and device lifespan.

Method used

A spatial control rule engine is used to manage, filter, and make decisions on multiple rules in a unified manner. Through rule conflict judgment and optimization decision mechanism, stable control instructions are generated to avoid frequent switching.

Benefits of technology

It improves the stability of air conditioning control and user experience under multiple rule scenarios, and extends the service life of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123044949A_ABST
    Figure CN123044949A_ABST
Patent Text Reader

Abstract

The application discloses a kind of control method, device, air conditioner of air conditioner, storage medium and computer program product, the method includes: the control rule of air conditioner is set in advance, each rule is used to following at least one: control the frequency of compressor in air conditioner to adjust air supply temperature, the gear of fan in air conditioner to adjust air supply wind speed, the angle of air deflector in air conditioner to adjust air supply wind direction;The change situation of user's behavior and / or position is detected, and the current detection data of air conditioner is obtained;Based on the current detection data of air conditioner, according to the control rule of air conditioner, using the space control rule engine of more than two rules of preset, the current control instruction of air conditioner is generated, so that air conditioner runs according to current control instruction.The scheme, by aiming at two or more rules to rule screening, conflict judgment, preferred decision action, avoid frequent switching control between different rules, improve user experience, prolong the service life of air conditioner.The air conditioner belongs to energy-saving refrigeration, air conditioning equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of air conditioning technology, specifically relating to an air conditioning control method, device, air conditioner, storage medium, and computer program product. More particularly, it relates to a multi-rule linkage control engine for air conditioning based on spatial semantic location and behavioral paths, along with its decision-making method, device, air conditioner, storage medium, and computer program product. This air conditioner is an energy-saving refrigeration and air conditioning device. Background Technology

[0002] With the continuous development of intelligent air conditioners and intelligent environmental control systems with spatial awareness capabilities, devices (such as intelligent air conditioners) can automatically trigger different control strategies based on the user's location, state of being, and movement path. For example, the fan speed can be automatically reduced when the user enters the sofa area, the temperature can be automatically adjusted when entering the bedroom area, and the air supply parameters can be gradually changed as the user moves along a specific route.

[0003] In practical applications, a user often simultaneously triggers multiple control rules, such as the sofa area rule, the movie viewing mode rule, and the nighttime energy-saving rule. Related solutions typically use simple priority or first-come-first-served methods, which may lead to frequent switching between different rules, impacting user experience and equipment lifespan. This air conditioner is an energy-saving refrigeration and air conditioning unit.

[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The purpose of this invention is to provide a control method, device, air conditioner, storage medium, and computer program product for an air conditioner. This addresses the problem that the intelligent control function of devices with spatial awareness capabilities (such as smart air conditioners) can automatically trigger different control strategies based on the user's location, status, and movement path. When multiple control rules are simultaneously triggered, using simple priority or first-come-first-served methods may lead to frequent switching between different rules, affecting user experience and device lifespan. This invention achieves the effect of avoiding frequent switching between different rules by performing rule filtering, conflict judgment, and optimal decision-making for two or more rules, thereby improving user experience and extending the lifespan of the device (such as a smart air conditioner). This air conditioner is an energy-saving refrigeration and air conditioning device.

[0006] This invention provides a method for controlling an air conditioner, comprising: pre-setting control rules for the air conditioner, wherein the control rules include two or more rules, each rule having a function including at least one of the following: controlling the frequency of the compressor in the air conditioner to adjust the air supply temperature of the air conditioner, adjusting the speed of the fan in the air conditioner to adjust the air supply speed of the air conditioner, and adjusting the angle of the air guide vane in the air conditioner to adjust the airflow direction of the air conditioner; detecting changes in the user's behavior and / or position in the environment where the air conditioner is located to obtain current detection data of the air conditioner; and generating current control instructions for the air conditioner based on the current detection data of the air conditioner and according to the control rules of the air conditioner, using a spatial control rule engine with two or more preset rules, so that the air conditioner operates according to the current control instructions of the air conditioner.

[0007] In some implementations, the data structure of each rule in the control rules of the air conditioner includes: spatial object, triggering condition, execution action, priority attribute and status identifier; the data structure of the current detection data of the air conditioner includes: the user's location area, the user's behavior type in the location area, the user's current activity in the location area, the current status of the air conditioner, and the current time of the location of the air conditioner.

[0008] In some implementations, based on the current detection data of the air conditioner and according to the control rules of the air conditioner, a spatial control rule engine with two or more rules is used to generate control instructions for the air conditioner. This includes: based on the current detection data of the air conditioner, filtering and determining the trigger conditions of the control rules of the air conditioner, identifying the rules that are valid in the control rules of the air conditioner, and recording them as the valid rules of the air conditioner; determining whether there is one or more rules in the valid rules of the air conditioner; if it is determined that there is one rule in the valid rules of the air conditioner, then directly generating control instructions for the air conditioner based on the valid rules of the air conditioner; if it is determined that there are two or more rules in the valid rules of the air conditioner, then classifying the valid rules of the air conditioner to obtain classification rules for the air conditioner; and based on the classification rules of the air conditioner, determining control parameters, determining conflicts, and merging processes to generate control instructions for the air conditioner.

[0009] In some implementations, based on the current detection data of the air conditioner, the control rules of the air conditioner are filtered and trigger conditions are determined to identify the rules that are valid in the control rules of the air conditioner, which are denoted as the valid rules of the air conditioner. This includes: using the user's location area in the current detection data of the air conditioner as a spatial object label, filtering the control rules of the air conditioner for rules associated with the same spatial object as the user's location area in the current detection data of the air conditioner, to obtain the filtering rules of the air conditioner; based on the filtering rules of the air conditioner, combined with the current state of the air conditioner in the current detection data of the air conditioner and / or the current time of the area where the air conditioner is located in the current detection data of the air conditioner, determining the rules that are valid in the filtering rules of the air conditioner, which are denoted as the valid rules of the air conditioner.

[0010] In some implementations, based on the air conditioner's classification rules, control parameters are determined, conflicts are identified, and fusion processing is performed to generate control commands for the air conditioner. This includes: determining the control parameters corresponding to each category of rules in the air conditioner's classification rules to obtain the current control parameters of the air conditioner; the current control parameters of the air conditioner include at least one of the following: wind speed, wind direction, and temperature; identifying conflicting and non-conflicting control parameters among the current control parameters of the air conditioner; recording the non-conflicting control parameters among the current control parameters of the air conditioner as the remaining control parameters of the air conditioner; performing fusion processing on the conflicting control parameters among the current control parameters of the air conditioner based on at least one of the priority attribute and status identifier of the rule corresponding to the conflicting control parameters, to obtain the fused control parameters of the air conditioner; the status identifier includes: an identifier representing the user's trigger frequency and / or usage habits for the corresponding rule; integrating the remaining control parameters and the fused control parameters of the air conditioner to obtain the final control parameters of the air conditioner; and generating control commands for the air conditioner based on the final control parameters of the air conditioner.

[0011] In some implementations, the method further includes: continuing to detect changes in the user's behavior and / or location to obtain change detection data of the air conditioner; determining the degree of change in the user's path based on the change detection data of the air conditioner, if it is determined that the user's path has changed; and adjusting the final control parameters of the air conditioner based on the degree of change in the user's path to adjust the air conditioner's wind speed and / or wind direction.

[0012] And / or, record the trigger frequency of the rule corresponding to the current control command of the air conditioner, and / or record the user's usage habits of the rule corresponding to the current control command of the air conditioner, to obtain the status identifier of the rule corresponding to the current control command of the air conditioner; based on the status identifier of the rule corresponding to the current control command of the air conditioner, update the original status identifier of the rule corresponding to the current control command of the air conditioner, so as to update the control rule of the air conditioner.

[0013] In conjunction with the above method, another aspect of the present invention provides an air conditioner control device, comprising: a control unit configured to pre-set control rules for the air conditioner, the control rules including two or more rules, each rule having a function including at least one of the following: controlling the frequency of the compressor in the air conditioner to adjust the air supply temperature of the air conditioner, adjusting the speed of the fan in the air conditioner to adjust the air supply speed of the air conditioner, and adjusting the angle of the air guide vane in the air conditioner to adjust the airflow direction of the air conditioner; a detection unit configured to detect changes in the behavior and / or position of a user in the environment where the air conditioner is located, and obtain current detection data of the air conditioner; the control unit is further configured to, based on the current detection data of the air conditioner and according to the control rules of the air conditioner, use a spatial control rule engine with two or more preset rules to generate current control instructions for the air conditioner, so that the air conditioner operates according to the current control instructions of the air conditioner.

[0014] In conjunction with the above-described device, the present invention further provides an air conditioner, comprising: the control device for the air conditioner described above.

[0015] In conjunction with the above method, the present invention further provides a storage medium comprising a stored program, wherein, when the program is executed, the device containing the storage medium is controlled to perform the steps of the air conditioner control method described above.

[0016] In conjunction with the above method, the present invention further provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the air conditioner control method described above.

[0017] The present invention provides a solution by pre-setting control rules for the air conditioner. These control rules include two or more rules, each with at least one of the following functions: controlling the compressor frequency to adjust the air supply temperature, adjusting the fan speed to adjust the air supply velocity, or adjusting the air guide angle to adjust the airflow direction. The system detects changes in user behavior and / or position within the air conditioner's environment to obtain current detection data. Based on this data and the air conditioner's control rules, a spatial control rule engine with two or more pre-set rules generates current control instructions for the air conditioner, causing it to operate according to these instructions. This approach avoids frequent switching between different rules, improves user experience, and extends the lifespan of equipment (such as smart air conditioners) by performing rule filtering, conflict judgment, and optimal decision-making actions for two or more rules. This air conditioner is an energy-saving refrigeration and air conditioning device.

[0018] Specifically, in the solution of this invention, the rules (such as temperature control rules, movie viewing mode rules, energy-saving rules, etc.) used to generate control commands for devices (such as smart air conditioners) are pre-set (e.g., through system presets, user-defined rules via APP, or learning-generated rules), and are denoted as the control rules of the air conditioner; all rules are converted into a unified structural model for storage and processing; each rule includes at least: applicable spatial object (e.g., sofa area, path A, etc.), trigger status (e.g., entering, staying, leaving, path hit, path progress, etc.), trigger condition (e.g., time period, mode condition, etc.), execution action (e.g., temperature, wind speed, wind direction, etc.), priority attribute, whether enabled flag, recent trigger record, etc.; For the control rules of the air conditioner, a spatial control rule engine is adopted to realize the control of the air conditioner: (1) For users in the environment where the air conditioner is located, spatial sensing devices (such as millimeter-wave radar sensors, infrared sensors, etc.) are used to detect the behavior changes and location of users (such as users), obtain detection data, and encapsulate the detection data into a data structure containing the following information: the area where the user is located (denoted as the first area, such as the sofa area), the type of behavior of the user in the area (such as entering behavior, staying behavior, leaving behavior, etc.), the mode status (such as movie viewing mode), and the time information (such as night); (2) For the detected data structure, the user's area in the detected data structure (denoted as the first area, such as the sofa area) is used as a label, and in The air conditioner control rules only filter rules associated with the user's area (referred to as the first area, such as the sofa area), such as: the rules associated with the first area (such as the sofa area) are: temperature control rule - the wind speed is reduced to level 2 after entering; movie viewing mode rule - the wind speed is reduced and the wind direction is adjusted when the movie viewing mode is turned on at night; energy saving rule - the temperature is automatically increased by 1℃ at night; (3) Combine the current operating status of the air conditioner (such as the air conditioner is currently in cooling mode, the air conditioner is currently in the off state, the air conditioner is currently in the on state, etc.) and / or time information (such as night), determine the triggering conditions of the filtered rules associated with the user's area (referred to as the first area, such as the sofa area) to determine the rules that are valid: if the air conditioner is currently in the on state If the air conditioner is currently off and the current time is nighttime, then the movie-watching mode rule is valid; if the air conditioner is currently off, then all rules are not executed; or, if the air conditioner is currently off, then the execution of control actions such as wind speed adjustment, wind direction adjustment and temperature adjustment is restricted; (4) If there are more than two rules that are valid, then the more than two rules are classified to obtain different types of rules; such as: A-type rules - area-type rules based on the user's area (referred to as the first area, such as the sofa area), B-type rules - path-type rules based on the user's behavior type in the area (such as entering behavior, staying behavior, leaving behavior, etc.), C-type rules - mode rules based on the mode state (such as movie-watching mode);(5) For different types of rules, such as A-class rules, B-class rules, and C-class rules, determine the parameter control method under each type of rule, such as: A-class rule - wind speed is set to level 2; B-class rule - wind speed is set to silent mode; C-class rule - temperature is set to 25℃; (6) Based on the parameter control method under each type of rule, integrate different types of rules: For conflicting rules, the main rule can be selected according to priority, such as the movie-watching mode rule having the highest priority among C-class rules; For conflicting rules, the main rule can also be selected according to the trigger frequency in a recent period, such as the rule with the highest trigger frequency having priority; For conflicting rules, the main rule can also be selected according to user habits, such as the rule with the lowest wind speed having priority for different wind speeds; (7) Integrate the control parameters of the selected rules to determine the final control parameters, such as the temperature based on user habits. The user prioritizes using energy-saving rules to set the temperature to the user's preset energy-saving temperature, such as 26℃. In terms of wind speed, the user prioritizes the silent mode for movie viewing. In terms of wind direction, the user prioritizes the area-based rules, such as selecting upward airflow for the sofa area. (8) Based on the user's behavior type in the area (such as entering behavior, staying behavior, leaving behavior, etc.), the path-based rules are used to dynamically adjust the final control parameters. For example, the user's path progress is determined, and the final air conditioning control parameters are adjusted according to the path progress. For example, the first 30% of the path → wind speed level 1, the middle 30% → wind speed level 2, and the last 40% → wind speed level 3, so as to obtain dynamically adjusted air conditioning control parameters. (9) Based on the dynamically adjusted air conditioning control parameters, control instructions are generated and sent to the air conditioner for execution. (10) The number of times the corresponding rules are triggered and whether the user receives the adjustment of air conditioning parameters (such as changing the wind speed) are recorded. The number of triggers and the weight of user usage habits are adjusted according to the recorded situation. Thus, by using two or more rules based on different sources and different types in the air conditioning control rules, rule screening, conflict judgment, and optimal decision-making actions are carried out, avoiding frequent switching of control between different rules, improving user experience, and also helping to extend the service life of equipment (such as smart air conditioners). This air conditioner is an energy-saving refrigeration and air conditioning device.

[0019] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention.

[0020] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0021] Figure 1 This is a flowchart illustrating an embodiment of the air conditioner control method of the present invention;

[0022] Figure 2This is a flowchart illustrating an embodiment of the method of the present invention that uses a spatial control rule engine with two or more rules to generate control instructions for the air conditioner.

[0023] Figure 3 A flowchart illustrating an embodiment of the method of the present invention for determining the rules that are met in the control rules of the air conditioner;

[0024] Figure 4 This is a flowchart illustrating an embodiment of the method of the present invention, which involves determining control parameters, determining conflicts, and processing fusion.

[0025] Figure 5 This is a flowchart illustrating an embodiment of the method of the present invention for dynamically adjusting the current control command of the air conditioner;

[0026] Figure 6 This is a flowchart illustrating an embodiment of the method of the present invention for recording the number of times a user triggers and intervenes with the current control command of the air conditioner;

[0027] Figure 7 This is a schematic diagram of the structure of an embodiment of the air conditioner control device of the present invention;

[0028] Figure 8 This is a schematic diagram of the rule engine decision control process in the air conditioner control command generation method.

[0029] Referring to the accompanying drawings, the reference numerals in the embodiments of the present invention are as follows:

[0030] 102 - Detection unit; 104 - Control unit. Detailed Implementation

[0031] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0032] Considering that devices with spatial awareness capabilities (such as smart air conditioners) can automatically trigger different control strategies based on the user's location, status, and movement path, using a simple priority or first-come-first-served approach when multiple control rules are simultaneously applied may lead to frequent switching between different rules, impacting user experience and device lifespan. Specifically, using a simple priority or first-come-first-served approach lacks a unified organization and decision-making mechanism among multiple rules, which can easily cause problems such as:

[0033] (1) Multi-area overlapping triggering problem. For example, if a user is in the living room sofa area, which is also the movie viewing mode area, the system will trigger both the sofa low wind speed rule and the movie viewing silent rule at the same time. Since both involve wind speed adjustment, the wind speed may switch repeatedly between low speed and silent mode, affecting the user experience and the service life of the equipment.

[0034] (2) Path and area rules conflict. For example, when a user walks from the living room to the bedroom, the path rules require the air supply intensity to be gradually increased, while the bedroom area rules require the air speed to be reduced. This causes a sudden change in parameters when entering the bedroom, which affects the user experience.

[0035] (3) Multiple rules issued consecutively cause equipment oscillation. In related solutions, the system usually executes rules one by one. When multiple rules are triggered consecutively, control commands are sent to the air conditioner multiple times, causing the air conditioner compressor to adjust frequently and affecting the equipment life.

[0036] (4) Rule update interruption issue. In the relevant solutions, adding or modifying rules usually requires restarting the control system or reloading the configuration, which causes a brief interruption in the control process and affects the user experience.

[0037] (5) The path rules cannot be executed in segments. Existing path control in related solutions usually only triggers at the end of the path, and cannot dynamically adjust control parameters according to the user's movement, which affects the user experience.

[0038] Therefore, the solution of this invention needs to solve at least one of the following problems: how to avoid control parameter conflicts and repeated switching when multiple regions are simultaneously hit; how to coordinate the conflict relationship between path rules and region rules; how to reduce the issuance of multiple control commands when multiple rules are triggered; how to achieve dynamic rule updates without interrupting system operation; and how to achieve phased control during the path process. Thus, the solution of this invention requires a rule engine mechanism that can uniformly manage, decide on, and execute different spatial rules, making the control process of devices (such as air conditioners) in multi-rule scenarios stable, controllable, and scalable. Therefore, the solution of this invention proposes an air conditioner control method, specifically a multi-rule linkage control engine and its decision-making method oriented towards spatial semantic location and behavioral path. This method manages control rules from different sources and of different types using the same structure, enabling the system to automatically determine which rules should take priority, which rules can be merged for execution, and which rules need to be suppressed when multiple rules are simultaneously hit. This avoids control oscillations caused by conflicting rules, improving the stability of air conditioner operation and user experience.

[0039] According to embodiments of the present invention, an air conditioning control method is provided, such as... Figure 1 The diagram shows a flowchart of an embodiment of the method of the present invention. The air conditioner control method may include steps S110 to S130.

[0040] In step S110, the control rules of the air conditioner are preset. The control rules of the air conditioner include two or more rules. The function of each rule includes at least one of the following: controlling the frequency of the compressor in the air conditioner to adjust the air supply temperature of the air conditioner, adjusting the speed of the fan in the air conditioner to adjust the air supply speed of the air conditioner, and adjusting the angle of the air guide plate in the air conditioner to adjust the air direction of the air conditioner. Specifically, the rules for realizing temperature control and / or energy-saving control of the air conditioner are preset, that is, the two or more rules on which the control command of the air conditioner is based are preset, and are referred to as the control rules of the air conditioner.

[0041] In step S120, in the environment where the air conditioner is located, changes in the user's behavior and / or location are detected to obtain the current detection data of the air conditioner.

[0042] Figure 8 This is a flowchart illustrating the rule engine decision-making control process in the air conditioner control command generation method. (Example:) Figure 8 As shown, the rule engine decision control process in the air conditioner control command generation method includes: Step 1, spatial perception processing, that is, after detecting changes in user position and behavior (spatial event generation), Step 2 is executed.

[0043] The implementation process of step 1 includes: In an indoor environment, a millimeter-wave radar sensor is installed on the air conditioner body or the ceiling of the room to continuously emit electromagnetic waves and receive human body reflection signals. By analyzing the phase change and Doppler frequency shift of the electromagnetic wave echo, the spatial coordinates and movement speed of the human body in the room are calculated in real time. At the same time, an infrared sensor is set near the air conditioner vent to help determine whether the human body is stationary.

[0044] This involves analyzing the phase changes and Doppler shift of electromagnetic wave echoes to calculate the spatial coordinates and movement speed of a human body indoors in real time. Specifically, this includes: a millimeter-wave radar continuously emitting electromagnetic waves into the room; when a human body is within the detection area, the body reflects the electromagnetic waves, and the radar receives the reflected echo signal; within the detection area, the phase of the echo signal changes due to changes in the human body's position and movements. By comparing the echo phases (i.e., the phase of the echo signal) at different times, the change in distance between the human body and the radar can be obtained. Simultaneously, human movement causes a shift in the echo frequency (i.e., the frequency of the echo signal), forming a Doppler shift. By analyzing the amount of this shift, the human body's speed and direction of movement can be determined.

[0045] An infrared sensor is used to assist in determining whether a human body is stationary. Specifically, the infrared sensor detects changes in the infrared thermal radiation emitted by the human body. When a human body is active, changes in position cause significant fluctuations in the infrared signal intensity; when a human body remains stationary for a long time, the amplitude of these fluctuations decreases significantly. The system can combine millimeter-wave radar detection results to comprehensively determine whether a human body is stationary. For example, if the millimeter-wave radar detects the presence of a human body, but the human body's movement speed is below a preset threshold, and the infrared sensor does not detect significant infrared changes within a set time, the system can determine that the human body is stationary.

[0046] For example, in a real-world scenario: when a user walks from the living room entrance to the sofa area, the millimeter-wave radar detects continuous changes in the human body's coordinates; when the human body enters the preset sofa area coordinate range, the system determines that the user has entered the sofa area; when the human body's speed decreases to a set threshold (e.g., below 0.2 m / s) and remains there for more than 3 seconds, it is determined to be a stationary behavior.

[0047] The system encapsulates the detection results into a data structure containing the following information: spatial area identifier (e.g., sofa area), behavior type (entry / stay / departure), time information, and location information, and sends it to the subsequent control module. Through the collaborative detection of millimeter-wave radar and infrared sensors, accurate identification of the user's location and behavioral state is achieved, providing reliable input for subsequent control and avoiding erroneous control due to misjudgment.

[0048] The location information refers to the real-time detected physical location of the human body, while the spatial region identifier is a user-defined semantic region label. The relationship between the location information and the spatial region identifier is that of underlying coordinates and rule-based semantic regions. For example, when the system detects that a user has entered the sofa area, it obtains the location information, and the air conditioner executes the corresponding rule, which is the rule corresponding to the spatial region identifier associated with the location information.

[0049] In step S130, based on the current detection data of the air conditioner and according to the control rules of the air conditioner, a spatial control rule engine with two or more preset rules is used to generate the current control command for the air conditioner, so that the air conditioner operates according to the current control command. The spatial control rule engine refers to a core control module used for unified management, matching, decision-making, and execution of spatial area rules and behavior path rules.

[0050] In the solution of this invention, by setting a rule conflict judgment mechanism and a multi-factor optimization decision module, multiple rules are compared and screened in a unified manner, which solves the problem of repeated parameter switching caused by multi-region rule conflicts, thereby achieving the effect of stable output of control parameters.

[0051] In some implementations, the control data corresponding to the control rules of the air conditioner is stored in the form of preset structured fields. The preset structured field forms include: space label, trigger status, execution action, priority, and status identifier. The data structure of each rule in the control rules of the air conditioner includes: space object, trigger condition, execution action, priority attribute, and status identifier. The space object is such as sofa area, path A, etc. The trigger condition is such as entering, staying, leaving, path hit, path progress, etc. and / or such as time period, mode condition, etc. The execution action is such as temperature, wind speed, wind direction, etc. The priority attribute is such as temperature priority or air supply priority, etc. The status identifier is such as whether it is enabled, the number of recent triggers, etc.

[0052] The detection data is encapsulated into a data structure containing the following information, namely, the data structure of the current detection data of the air conditioner, including: the user's location area, the user's behavior type in the location area, the user's current activity in the location area, the current state of the air conditioner, the current time of the location of the air conditioner, the user's location area (e.g., sofa area), the user's behavior type in the location area (e.g., entering, staying, leaving), the user's current activity in the location area (e.g., the user is watching a movie or has selected a movie viewing mode), the current state of the air conditioner (e.g., whether the air conditioner is turned on or in cooling mode), and the current time of the location of the air conditioner (e.g., nighttime).

[0053] In the solution of this invention, the rules include the following sources: system preset rules (factory default), such as basic temperature control rules and energy-saving rules; user-defined rules, such as setting area names and control strategies through an APP; and learned rules (optional), such as rules automatically generated based on user historical behavior. All rules are converted into a unified structural model for storage and processing in the system. The system stores all rules in a unified format, and each rule includes at least: applicable spatial object (such as sofa area, path A, etc.); trigger status (such as entering, staying, leaving, path hit, path progress, etc.); trigger conditions (such as time period, mode conditions, etc.); execution action (such as temperature, wind speed, wind direction, etc.); priority attribute; whether it is enabled; and recent trigger record. The purpose of this is to allow subsequent steps to process all rules in the same way, laying the foundation for subsequent unified screening and decision-making.

[0054] The "Enable" flag is a parameter used to indicate whether a corresponding rule is currently involved in system operation and decision-making. Specifically, when the "Enable" flag is enabled, the system will detect, match, and execute the corresponding rule during operation; when the "Enable" flag is disabled, the system will not execute the rule even if the corresponding triggering conditions are met. For example, if a user sets a "Nighttime Sleep Energy Saving Rule" but does not want it to be active temporarily, they can disable the rule; when the user re-enables it later, the system can resume calling the rule. This flag is mainly used to achieve flexible rule management, avoid frequent deletion and re-creation of rules, and facilitate users to enable or disable different control strategies as needed.

[0055] Spatial location rules refer to control rules triggered based on the user's specific real-time coordinates or positional changes within an indoor space. For example: the user's current coordinates are within the range (x1, y1, z1); the user is less than 2 meters from the air conditioner vent; and the user is directly in front of the television. Functions: These rules enable fine-grained position-aware control, precise adjustments based on distance or angle, and optimization of small-scale local environments (such as direct airflow avoidance). For example: when the system detects that the user is too close to the air conditioner, it automatically reduces the fan speed to avoid discomfort from direct airflow.

[0056] Behavioral path rules refer to control rules triggered based on a user's movement trajectory, direction of travel, and progress at each stage of the path. These rules consider not only the user's location but also the movement sequence, direction of travel, and percentage completion of the path. For example, path A: a user moves from the living room to the bedroom, following the path from the sofa to the TV to the window. The user is currently in the middle of the path (50% complete). Function: This is used to implement process-oriented control (non-instantaneous triggering), gradually adjusting air conditioning parameters and pre-adjusting the environment based on movement trends. For example, as the user moves from the living room to the bedroom, the system gradually reduces the fan speed, rather than abruptly changing it after entering the bedroom.

[0057] Spatial zone rules refer to control rules triggered by pre-defined logical spatial zones within an interior space. Each zone is defined by the system or the user, such as a sofa area, a TV viewing area, a bedroom area, and a dining area. Functions include: enabling automatic zone-level environmental control, scenario-based mode linkage (such as a movie viewing mode), and user-preferred space-based control. For example, automatically reducing fan speed and adjusting airflow direction when a user enters the sofa area.

[0058] A unified rule structure model refers to a data model that abstracts different rule types into a unified field structure. Chained rule execution refers to an execution mechanism that merges the action parameters of multiple non-conflicting rules into a single control output. A rule lifecycle structure refers to a data structure system used to describe the start / stop status, version status, and effective period of a rule.

[0059] In the solution of this invention, a unified control rule engine specifically designed for spatial location rules and behavioral path rules is used to manage control rules of different sources and types using the same structure. A complete processing flow is established within the system, from the entry of spatial events to rule filtering, conflict judgment, and the merging and unified output of optimal decision actions. When multiple rules are hit simultaneously, the system can automatically determine which rules should take priority, which rules can be merged for execution, and which rules need to be suppressed. This avoids control oscillation problems caused by multiple rules conflicting with each other, achieving a stable output of control parameters. This is beneficial for improving user experience and extending the service life of air conditioners.

[0060] In some implementations, when each rule in the control rules of the air conditioner includes: spatial object, triggering condition, execution action, priority attribute and status identifier, and when the data structure of the current detection data of the air conditioner includes the user's location area, the user's behavior type in the location area, the user's current activity in the location area, the current status of the air conditioner, and the current time of the location area of ​​the air conditioner, in step S130, the specific process of generating the control instructions of the air conditioner based on the current detection data of the air conditioner and according to the control rules of the air conditioner using a spatial control rule engine with two or more rules is described in the following exemplary description.

[0061] The following is combined Figure 2 The flowchart shown is a schematic diagram of an embodiment of the method of the present invention that uses a spatial control rule engine with two or more rules to generate control instructions for the air conditioner. The specific process of generating control instructions for the air conditioner using a spatial control rule engine with two or more rules in step S130 is further explained, including steps S210 to S250.

[0062] Step S210: Based on the current detection data of the air conditioner, the control rules of the air conditioner are filtered and the trigger conditions are determined to identify the rules that are valid in the control rules of the air conditioner, which are recorded as the valid rules of the air conditioner.

[0063] Step S220: Determine whether the number of rules in the establishment rules of the air conditioner is one or more.

[0064] Step S230: If it is determined that the number of rules in the establishment rule of the air conditioner is one, then the control command of the air conditioner is generated directly based on the establishment rule of the air conditioner.

[0065] Step S240: If it is determined that there are two or more rules in the establishment rules of the air conditioner, then the establishment rules of the air conditioner are classified to obtain the classification rules of the air conditioner; for example, the establishment rules of the air conditioner are classified into Class A rules, Class B rules and Class C rules, etc. Class A rules are area-based rules based on the user's location (denoted as the first area, such as the sofa area); Class B rules are path-based rules based on the user's behavior type in the area (such as entering behavior, staying behavior, leaving behavior, etc.); Class C rules are mode-based rules based on mode state (such as movie viewing mode).

[0066] Step S250: Based on the classification rules of the air conditioner, determine the control parameters, determine conflicts and perform fusion processing to generate the control command for the air conditioner.

[0067] In the solution of the present invention, based on the current detection data of the air conditioner and according to the control rules of the air conditioner, a spatial control rule engine with two or more rules is used to generate the control instructions of the air conditioner. Thus, by managing control rules of different sources and types with the same structure, multiple rules are compared and filtered in a unified manner, avoiding control oscillation problems caused by multiple rules conflicting with each other, achieving the effect of stable output of control parameters, which is beneficial to improving user experience and extending the service life of the air conditioner.

[0068] In some implementations, in step S210, based on the current detection data of the air conditioner, the control rules of the air conditioner are screened and the trigger conditions are determined to identify the rules that are valid in the control rules of the air conditioner, which are denoted as the valid rules of the air conditioner. For the specific process, please refer to the following exemplary description.

[0069] The following is combined Figure 3 The flowchart shown is a schematic diagram of an embodiment of the method of the present invention for determining the rules that are valid in the control rules of the air conditioner. The specific process of determining the rules that are valid in the control rules of the air conditioner in step S210 is further explained, including steps S310 to S320.

[0070] Step S310: Using the user's location area in the current detection data of the air conditioner as the spatial object label, filter the rules associated with the same spatial object as the user's location area in the air conditioner's current detection data in the air conditioner's control rules to obtain the air conditioner's filtering rules; for example: when the user's location area is the sofa area, the rules associated with the sofa area are: temperature control rule—fan speed reduced to level 2 after entering; movie viewing mode rule—fan speed reduced and airflow direction adjusted when movie viewing mode is turned on at night; energy saving rule—temperature automatically increased by 1℃ at night. Figure 8As shown, the rule engine decision control process in the air conditioner control command generation method also includes: step 2, rule filtering and judgment, that is, preliminary rule filtering based on spatial area, and then step 3 is executed.

[0071] The implementation process of step 2 includes: the system filters the control rules stored locally based on the detected user entry event into the sofa area.

[0072] For example, the following rules can be preset in the air conditioning system or set by the user: Sofa area rule: the fan speed is reduced to level 2 after entering; Movie viewing mode rule: the fan speed is reduced and the airflow direction is adjusted when turned on at night; Energy saving rule: the temperature is automatically increased by 1℃ at night.

[0073] The system filters rules only those related to the sofa area based on the area label, ignoring rules from the bedroom or kitchen areas. This area-label-based filtering reduces the number of rules involved in the calculation, improving processing efficiency and enabling more timely control responses.

[0074] Step S320: Based on the air conditioner's filtering rules, and combining the air conditioner's current state in the current detection data and / or the current time of the area where the air conditioner is located in the current detection data, determine the rules that are valid in the air conditioner's filtering rules, and denot them as the air conditioner's valid rules. Specifically, determine the triggering conditions of each rule in the air conditioner's filtering rules, identify the rules that meet the triggering conditions, and obtain the valid rules in the air conditioner's filtering rules, denoted as the air conditioner's valid rules. For example: if the air conditioner's current state is that it is on, and the current time of the area where the air conditioner is located in the current detection data is nighttime, then the movie-watching mode rule associated with the sofa area in the air conditioner's filtering rules is valid; if the air conditioner is currently off, then all rules are not executed; or, if the air conditioner is currently off, then restrict the execution of control actions such as fan speed adjustment, air direction adjustment, and temperature adjustment. Figure 8 As shown, the rule engine decision control process in the air conditioner control command generation method also includes: step 3, rule trigger condition determination (combined with the air conditioner operating status), and then step 4 is executed.

[0075] Step 3 implementation process: For the selected rules, the system further combines the current operating status of the air conditioner to make judgments, such as: judging whether the current time is nighttime (e.g., 22:00~6:00); judging whether the air conditioner is currently in cooling mode; judging whether the user has turned on the movie viewing mode.

[0076] For example, the system determines whether the current time meets the time conditions corresponding to the nighttime rule; determines whether the current operating mode meets the conditions corresponding to the movie-watching mode; if the current air conditioner is off, it restricts the control actions that depend on the air conditioner, retaining only the rule actions that are allowed to be executed in the off state, avoiding the execution of rules in inapplicable operating states, thereby preventing unreasonable control (such as triggering adjustment when the air conditioner is off).

[0077] If the air conditioner is currently off, then the control actions that depend on the operation of the air conditioner are restricted, and only the rule actions that are allowed to be executed when the air conditioner is off are retained. On the one hand, it is necessary to determine whether the rule is satisfied, and on the other hand, it is necessary to determine whether the air conditioner is currently allowed to execute the corresponding action. Therefore, even if the air conditioner is off, the system can still execute the rule judgment, but it may not ultimately execute the control action.

[0078] For example, even when the air conditioner is off, the system can still acquire information such as human location, time period, and mode status, and perform matching and judgment based on rules. The system can still determine whether it is nighttime, whether the user has entered the viewing area, and whether energy-saving conditions are met.

[0079] However, during the execution phase, the system further assesses the current operating status of the air conditioner. Actions that require the air conditioner to be running (such as adjusting fan speed, changing airflow direction, and adjusting temperature) can be omitted when the air conditioner is off; while actions allowed to be performed when the air conditioner is off can still be retained. For example, when the air conditioner is off, the system can perform the following: wake up the standby module; preload user preference parameters; enter the pre-start state in advance; automatically turn on the air conditioner when conditions are met; maintain human location tracking and environmental monitoring, etc. Therefore, the system does not stop assessing rules when the air conditioner is off; rather, after filtering the rules, the system will further restrict the execution of the corresponding actions based on the current operating status of the air conditioner, thereby avoiding unreasonable controls such as fan speed and airflow direction adjustments when the air conditioner is off.

[0080] In the solution of the present invention, based on the current detection data of the air conditioner, the control rules of the air conditioner are screened and the trigger conditions are determined. The rules that are valid in the control rules of the air conditioner are identified and recorded as the valid rules of the air conditioner. Only the rules that meet all conditions are retained to avoid executing the rules in inapplicable operating states, thereby preventing unreasonable control (such as triggering adjustment when the air conditioner is turned off) and improving the reliability and safety of the air conditioner operation.

[0081] In some implementations, the specific process of determining control parameters, determining conflicts, and performing fusion processing based on the classification rules of the air conditioner in step S250 to generate control commands for the air conditioner is described in the following exemplary description.

[0082] The following is combined Figure 4 The flowchart shown is a schematic diagram of an embodiment of the method of the present invention for determining control parameters, determining conflicts and performing fusion processing. It further illustrates the specific process of determining control parameters, determining conflicts and performing fusion processing in step S250, including steps S410 to S450.

[0083] Step S410: Based on the air conditioner classification rules, determine the control parameters corresponding to each category of the air conditioner classification rules to obtain the current control parameters of the air conditioner; the current control parameters of the air conditioner include at least one of the following: fan speed, air direction, and temperature; for example: Category A rule—fan speed set to level 2; Category B rule—fan speed set to silent mode; Category C rule—temperature set to 25℃. Figure 8 As shown, the rule engine decision control process in the air conditioner control command generation method also includes: step 4, multi-rule concurrent identification and classification processing, followed by step 5.

[0084] The implementation process of step 4: In a real-world scenario, there may be multiple valid rules at the same time, such as: the user enters the sofa area (area rule), and the current viewing mode is nighttime (mode rule).

[0085] The system categorizes rules into three types: region-based rules (based on location), pattern-based rules (based on system operating mode or scene state), and path-based rules (based on movement trajectory), and processes them separately. This categorization avoids directly mixing and comparing different types of rules, improving the rationality of subsequent decisions.

[0086] Step S420: For the current control parameters of the air conditioner, determine the conflicting control parameters and the non-conflicting control parameters among the current control parameters of the air conditioner; record the non-conflicting control parameters among the current control parameters of the air conditioner as the remaining control parameters of the air conditioner. For example... Figure 8 As shown, the rule engine decision control process in the air conditioner control command generation method also includes: step 5, multi-rule conflict determination, that is, control action conflict determination, and then step 6 is executed.

[0087] Step 5 implementation process: The system analyzes the control content of each rule, for example: Rule A: wind speed set to level 2; Rule B: wind speed set to silent mode; Rule C: temperature set to 25℃. Judgment: A and B conflict with the same parameter (wind speed), while C does not conflict with other rules (temperature). Identifying conflicting parameters in advance provides a basis for subsequent decisions and avoids repeated modification of the same control parameter by multiple rules.

[0088] Step S430: For conflicting control parameters in the current control parameters of the air conditioner, based on at least one of the priority attribute and status identifier of the rule corresponding to the conflicting control parameters, the conflicting control parameters in the current control parameters of the air conditioner are fused to obtain fused control parameters for the air conditioner; the status identifier includes: an identifier representing the user's trigger frequency and / or usage habits of the corresponding rule; the identifier representing the user's trigger frequency and / or usage habits of the corresponding rule includes: the trigger frequency and / or manual adjustment frequency of the corresponding control parameter within a set time period; such as Figure 8 As shown, the rule engine decision control process in the air conditioner control command generation method also includes: step 6, rule fusion processing, i.e. multi-factor comprehensive decision (selecting the main rule), and then step 7 is executed.

[0089] Step 6 implementation process: For conflicting rules, the system selects the rule based on the following factors: user-defined priority (e.g., movie viewing mode priority), most recent trigger time (to avoid frequent switching), and user's historical usage habits (e.g., preference for low fan speed). For example, if a user frequently uses silent mode while watching movies, the silent rule will be prioritized. By judging multiple factors, repeated switching between rules is reduced, making the air conditioner's operation more stable and in line with user habits.

[0090] Step S440: Integrate the remaining control parameters and the fused control parameters of the air conditioner to obtain the final control parameters of the air conditioner. For example: in terms of temperature, prioritize energy-saving rules based on user habits and set the temperature to the user's preset energy-saving temperature, such as 26℃; in terms of fan speed, prioritize silent mode based on movie viewing mode; in terms of air direction, prioritize area-based rules, such as selecting upward airflow for the sofa area. Figure 8 As shown, the rule engine decision control process in the air conditioner control command generation method also includes: step 7, control parameter fusion (one-time output), followed by step 8.

[0091] Step 7 implementation process: The system integrates the control parameters of each rule, for example:

[0092]

[0093] Generate a complete set of control parameters to avoid executing multiple control actions separately, reduce frequent adjustments to the compressor and fan, and improve equipment stability.

[0094] Step S450: Based on the final control parameters of the air conditioner, generate control commands for the air conditioner.

[0095] In the solution of this invention, by establishing a rule grouping processing mechanism and a cross-type decision-making strategy, rules of the same type are first compared, and then cross-type coordination is performed, which solves the problem of difficulty in coordination between path rules and regional rules, thereby improving the consistency of control logic. By introducing an action fusion mechanism, the control parameters of multiple rules are integrated into a complete control command, which solves the problem of issuing multiple consecutive control commands, thereby reducing equipment vibration and extending equipment life.

[0096] In some embodiments, the air conditioner control method of the present invention further includes: a process of dynamically adjusting the current control command of the air conditioner before or after the air conditioner is operated according to the current control command; and / or a process of recording the number of times the user triggers and intervenes in the current control command of the air conditioner after the air conditioner is operated according to the current control command.

[0097] The process of dynamically adjusting the current control command of the air conditioner before or after it is set to operate according to the current control command is as follows:

[0098] The following is combined Figure 5 The flowchart shown is a schematic diagram of an embodiment of the method of the present invention for dynamically adjusting the current control command of the air conditioner. The specific process of dynamically adjusting the current control command of the air conditioner is further explained, including steps S510 to S530.

[0099] Step S510: Continue to detect changes in the user's behavior and / or location to obtain change detection data for the air conditioner.

[0100] Step S520: Based on the change detection data of the air conditioner, if it is determined that the user's path has changed, determine the degree of change in the user's path.

[0101] Step S530: Adjust the final control parameters of the air conditioner according to the degree of change in the user's path, so as to adjust the air speed and / or the air direction of the air conditioner.

[0102] like Figure 8 As shown, the rule engine decision-making control process in the air conditioner control command generation method also includes:

[0103] Step 8: Dynamic adjustment during the path process, followed by step 9.

[0104] The implementation process of step 8: When the user walks from the living room to the bedroom, the millimeter-wave radar continuously tracks the change in position and calculates the progress of the path (e.g., divided by distance ratio).

[0105] For example: first 30% of the path → wind speed level 1; middle 30% → wind speed level 2; last 40% → wind speed level 3. The system adjusts the wind speed in real time based on the current location, achieving gradual adjustment and avoiding sudden parameter changes when entering new areas, thus improving comfort.

[0106] Step 9: Generate and issue control commands, i.e., generate control commands and execute them with the air conditioner, then proceed to step 10.

[0107] Step 9 implementation process: The system converts the fused parameters (temperature, wind speed, wind direction) into control commands and sends them through the air conditioner main control board interface. The air conditioner executes the following: adjusts the compressor frequency (controls temperature), adjusts the fan speed (controls wind speed), and adjusts the air guide vane angle (controls wind direction). This one-time command output avoids multiple adjustments and improves response stability.

[0108] In the solution of this invention, by setting a path progress recognition and stage control mechanism, different control actions are triggered according to the user's position ratio in the path, which solves the problem that path control cannot be executed in segments, thereby achieving a gradual adjustment effect.

[0109] And / or, after the air conditioner is operated according to the current control command of the air conditioner, the process of recording the number of times the user triggers the current control command of the air conditioner and the intervention situation is as follows:

[0110] The following is combined Figure 6 The flowchart shown is a schematic diagram of an embodiment of the method of the present invention for recording the number of times a user triggers the current control command of the air conditioner and the intervention situation. The specific process of recording the number of times a user triggers the current control command of the air conditioner and the intervention situation includes: steps S610 to S620.

[0111] Step S610: Record the trigger frequency of the rule corresponding to the current control command of the air conditioner, and / or record the user's usage habits of the rule corresponding to the current control command of the air conditioner, to obtain the status identifier of the rule corresponding to the current control command of the air conditioner.

[0112] Step S620: Update the original status identifier of the rule corresponding to the current control command of the air conditioner according to the status identifier of the rule corresponding to the current control command of the air conditioner, so as to update the control rule of the air conditioner.

[0113] like Figure 8 As shown, the rule engine decision-making control process in the air conditioner control command generation method also includes:

[0114] Step 10: Rule recording and updating, i.e., recording the running results and adaptive optimization.

[0115] Implementation process of Step 10: The system records: the number of rule triggers, whether the user makes manual adjustments (such as changing the wind speed). If the user manually adjusts to a low wind speed for many times, the system increases the weight of this rule, so that the system gradually adapts to the user's habits and improves the accuracy of subsequent control.

[0116] Through the above steps, the spatial perception results and air conditioner control parameters are processed and fused step by step, so as to realize a continuous closed-loop control process from user behavior recognition to equipment control output, thereby effectively avoiding control conflicts, reducing equipment oscillation and improving the stability of environmental regulation in a multi-rule concurrent scenario.

[0117] In the solution of the present invention, by providing a rule lifecycle management structure and a dynamic loading mechanism to start, stop and update rules during the operation process, the problem that the system needs to be interrupted for rule update is solved, thereby realizing continuous operation of the system.

[0118] In the solution of the present invention, based on a unified control rule engine specifically oriented to spatial position rules and behavior path rules, control rules of different sources and different types are managed with the same structure, and a complete processing flow from the entry of spatial events to rule filtering, conflict judgment, optimal decision-making and action merging for unified output is established inside the system, so that when multiple rules are hit at the same time, the system can automatically judge which rules should take effect preferentially, which rules can be executed in combination, and which rules need to be suppressed, thereby avoiding the control oscillation problem caused by mutual conflict of multiple rules; at the same time, the rule engine supports dynamic update of rules during operation without interrupting the control process, and can output different control strategies in stages according to the user's travel progress in the path, thereby realizing stable linkage control in complex spatial behavior scenarios.

[0119] In the solution of the present invention, in the system architecture of a unified control rule engine specifically oriented to spatial position rules and behavior path rules, the spatial perception module includes the following hardware units: a millimeter-wave radar (mounted on the air conditioner panel), configured to detect the user's position (via millimeter waves); an infrared sensor (mounted near the air outlet of the air conditioner), configured to detect the user's movement trajectory (continuous position change); and an optional camera (mounted on the air conditioner panel), configured to detect the user's stay state (with a speed close to 0).

[0120] In this invention, a unified control rule engine specifically designed for spatial location rules and behavioral path rules is located between the spatial perception module and the air conditioning control module. It mainly includes the following functional units: a rule storage unit for storing all spatial control rules; a rule classification and indexing unit for quickly searching rules by type; an event receiving unit for receiving spatial state events; a rule matching unit for filtering triggerable rules; a decision-making and conflict handling unit for comparing and selecting multiple rules; an action fusion unit for merging multiple rule actions; an execution scheduling unit for generating final control commands; and a rule status management unit for managing rule start / stop and update. These units are connected sequentially to form a continuous processing link: Spatial Perception Module → Event Receiving Unit → Rule Matching Unit → Decision-Making and Conflict Handling Unit → Action Fusion Unit → Execution Scheduling Unit → Air Conditioning Control Module.

[0121] The spatial state events output by the spatial perception module are sequentially processed through event reception, rule matching, conflict resolution, action fusion, and execution scheduling. Finally, an air conditioning control command is generated and sent to the air conditioning control module for execution, thus forming a complete rule-based control chain. The above functional units correspond to the functional steps in the rule processing flow, as follows:

[0122] The rule storage unit corresponds to the rule creation and saving process. It is used to store all space control rules, including area rules, path rules, and pattern rules, and to save information such as the triggering conditions, execution actions, priorities, and start / stop status of the rules.

[0123] The rule classification and indexing unit corresponds to the rule classification process and is used to build indexes according to rule type, spatial object, triggering event, etc., so as to quickly retrieve the corresponding rules later. For example, rules can be divided into region rules, path rules, and pattern rules.

[0124] The event receiving unit corresponds to the spatial perception event input process. It is used to receive spatial state events such as human position, movement trajectory, dwell state, and path hit state output by the spatial perception module, and convert them into event data that can be processed by the rule engine.

[0125] The rule matching unit, corresponding to the rule filtering process, is used to perform condition matching on the stored rules based on the current spatial state event, and to filter candidate rules that meet the triggering conditions.

[0126] The decision-making and conflict resolution unit corresponds to the multi-rule comparison and priority judgment process. When multiple rules are satisfied at the same time, it determines the final effective rule based on rule priority, time conditions, operating mode or preset strategy to avoid conflicts between different rules.

[0127] The action fusion unit corresponds to the control action integration process and is used to merge control actions corresponding to multiple valid rules. For example, if the first rule controls wind direction and the second rule controls temperature, the first and second rules can be merged to form a combined control action.

[0128] The execution scheduling unit corresponds to the control instruction generation process. It is used to convert the final determined control actions into control instructions that the air conditioning control module can execute, and to schedule the execution sequence.

[0129] The rule status management unit corresponds to the rule lifecycle management process. It is used to enable, disable, modify, delete, update and manage trigger records of rules, and maintain the current status information of rules.

[0130] In the present invention, the rule storage unit includes: a rule database submodule, a rule structure parsing submodule, and a memory cache submodule. The rule storage unit includes: a rule database submodule (for persistently storing rule data), a memory cache submodule (for loading currently effective rules), and a rule structure parsing submodule (for converting rules into a unified structure model); wherein, the rule data is stored in the form of structured fields, including spatial tags, trigger states, execution actions, priorities, and status identifiers, etc. Specifically, the relationship between the rule database submodule, the rule structure parsing submodule, and the memory cache submodule is as follows: the rule database submodule stores the original rule data as the source of persistent rule storage; the rule structure parsing submodule reads the rule data from the rule database submodule and parses it into unified structured rule data; the memory cache submodule stores the structured rule data and provides the rule data externally during system runtime; when a rule is added or modified, the rule structure parsing submodule re-parses the changed rule and updates it to the memory cache submodule.

[0131] The rule data in the rule storage unit includes: Space Label, such as: Sofa Area / Bedroom Area / Path A; Trigger State, such as: Enter / Stay / Leave / Path Progress; Action, such as: Temperature = 26℃ / Wind Speed ​​= Level 2 / Wind Direction = Upward Airflow; Priority, such as: Level 1~10 or High / Medium / Low; Status, such as: Enabled / Disabled / Temporarily Frozen.

[0132] The rule storage unit operates as follows: Upon system startup, it reads all rule data from the rule database and converts it into a unified structure model using the rule structure parsing submodule, then loads it into the memory cache. The rule data read during system startup includes the following types: spatial area rule data, such as temperature and fan speed control rules for the sofa area, bedroom area, and dining area; behavioral path rule data, such as fan speed or temperature adjustment rules for different stages of a user's journey from the living room to the bedroom; spatial location rule data, such as fan speed adjustment rules for different distances from the air conditioner; and global policy rule data, such as cross-area control rules for nighttime energy-saving mode and movie-watching mode.

[0133] After reading the raw rule data, the rule structure parsing submodule performs unified field mapping and formatting on rule fields from different sources. This process includes:

[0134] (1) Field standardization processing: fields with different expression methods in different rules (such as temperature setting target temperature) are uniformly mapped to standard field temperature values.

[0135] (2) Structure completion processing: Automatically fill in the default value for rules with missing fields. For example, rules without a priority are assigned a default value of medium priority.

[0136] (3) Type unification processing: convert the region rules, path rules, and location rules into a standard structure format that includes spatial labels, trigger conditions, and execution actions;

[0137] (4) Structural encapsulation output: Finally, the processed rules are encapsulated into a unified structural model object and written into the memory cache.

[0138] RuleModel (Unified Structure Model) refers to the abstraction of all spatial control rules into standardized data objects with fixed field structures. Its basic structure includes: Space ID, such as sofa area / path A / distance range; Trigger Condition, such as entry / stay / path progress / time condition; Action, such as temperature = 26℃ / wind speed = level 2 / wind direction = upward airflow; Priority, numerical priority; Status information, enabled / disabled / frozen.

[0139] A unified structure model is used to transform different types of rules into a unified data structure that is comparable, sortable, and fusionable, in order to support subsequent rule matching and conflict decision-making.

[0140] During operation, when a rule is added, modified, or deactivated, only the corresponding rule is partially updated, and the cached data is refreshed synchronously. An example of a partial rule update process is as follows: During system operation, when a rule is added, modified, or deactivated, the rule structure parsing submodule only processes the changed rule locally and synchronously updates the corresponding rule entry in the memory cache, without reloading all rules.

[0141] Among the new rule processing methods, for example, adding a rule: when a user enters the sofa area, set the fan speed to level 2. The processing procedure is as follows:

[0142] (1) The rule structure parsing submodule parses the fields of the newly added rules and generates a unified structure model;

[0143] (2) Insert the rule into the space tag index position corresponding to the memory cache submodule (e.g., under the sofa area index);

[0144] (3) Update the rule index structure so that the rule can participate in subsequent matching. Update characteristics: Only the rule entry is added, without affecting other existing rules.

[0145] The process for handling rule modifications, for example, if the original rule was: sofa area fan speed = level 3, and it's changed to: sofa area fan speed = level 2, the process is as follows:

[0146] (1) Locate the original rule in the memory cache based on the rule ID;

[0147] (2) Replace the execution action field of the rule (update wind speed value);

[0148] (3) Keep the spatial labels and index relationships unchanged, and only update the rule content fields. Update characteristics: Only the rule content fields are modified, and the rule index structure is not changed.

[0149] The handling method for disabling rules, such as the rule: "Reduce temperature by 1°C in nighttime energy-saving mode," is as follows:

[0150] (1) Change the rule's status from enabled to disabled;

[0151] (2) Mark the rule as unmatchable in the memory cache;

[0152] (3) Retain the rule data structure, but filter the rule directly during the rule matching stage. Update characteristics: Do not delete the rule, only change its status identifier.

[0153] By using the above method, when a rule changes, the system only performs a partial update on the corresponding rule entry and simultaneously refreshes the relevant indexes or status flags in the memory cache, thereby avoiding reloading all rules, improving system operating efficiency and ensuring the real-time nature of rule updates.

[0154] In the solution of this invention, a two-layer structure of database + memory cache is used to achieve fast reading and dynamic updating of rules, avoiding access to the storage device every time a match is made, thereby reducing latency and supporting online rule updates without interrupting system operation.

[0155] In the solution of this invention, the rule classification and indexing unit includes: a spatial label indexing submodule (establishing an index by area name), where the area name is a user-defined area, such as: sofa area, TV viewing area, bedroom area, dining area; a path identifier indexing submodule (establishing an index by path ID); and a trigger type indexing submodule (classified by entry / exit / stay).

[0156] Rule classification and indexing unit working process: During the rule loading stage, a multi-dimensional index is built for the spatial label, path identifier and trigger type of each rule.

[0157] Specific examples of spatial tags / path identifiers / trigger types are explained below. In the solution of this invention, the fields of each rule are, for example:

[0158] (1) Spatial label: Spatial label is used to indicate the spatial area or spatial semantic location to which the rule applies, such as: sofa area, TV viewing area, bedroom area, dining area, and the area near the air conditioner vent (e.g., within 1.5 meters).

[0159] (2) Path identifiers are used to represent the user's movement trajectory or preset path, such as: path A (living room → sofa → balcony), path B (bedroom → bathroom), path C (doorway → living room → dining room). Path segments can also be included, such as: path A-first segment, path A-middle segment, path A-last segment.

[0160] (3) Trigger type: Trigger type is used to represent the behavior state of rule triggering, such as: entry trigger (user enters a certain area), stay trigger (stays for more than a set time), leave trigger (leaves a certain area), path trigger (hit a certain path), path progress trigger (reaches 50% of the path, etc.).

[0161] In the scheme of this invention, the index structure refers to the data mapping structure established during the rule loading stage for fast rule retrieval. The index structure includes: a spatial tag index structure (Space Index), a path identifier index structure (PathIndex), and a trigger type index structure (Trigger Index). Each type of index structure adopts a key-value mapping method, for example: Key = tag information (such as sofa area), Value = corresponding rule ID set. The multi-dimensional index structure includes: spatial tag index → ​​Rule ID set, that is, spatial tag index → ​​{Rule set}; path identifier index → ​​Rule ID set, that is, path index → ​​{Rule set}; trigger type index → ​​Rule ID set, that is, trigger type index → ​​{Rule set}.

[0162] Here, all three indices point to the Rule ID set, which is meant to illustrate that each index key may correspond to multiple rules, not just one. Rule ID: represents the unique identifier of a rule; Rule ID set: represents a group of rule IDs that meet the index criteria.

[0163] For example: "Sofa Area → R1, R3, R8" means that there are three rules related to "Sofa Area": ​​R1, R3, and R8. "Entry Event → {R1, R2, R6}" means that when an "Entry" event occurs, the rules that may need to be matched include R1, R2, and R6.

[0164] The Rule ID set indicates that the same spatial label, path identifier, or trigger type often corresponds to multiple rules. The "Rule ID set" refers to a group of rule identifiers associated with the current index key, used to represent the range of candidate rules that satisfy the index condition.

[0165] For example, a "sofa area" might simultaneously have: temperature control rules, airflow rules, energy-saving rules, and movie-watching mode rules. Therefore, the index is not followed by a single Rule ID, but rather a set of Rule IDs.

[0166] The process of building a multidimensional index structure includes the following steps during the rule loading phase: The system performs the following processing on each rule:

[0167] (1) Field extraction: Extract three key fields from the rule structure: spatial label, path identifier, and trigger type;

[0168] (2) Index key generation: Convert the above fields into index keys respectively, and create index keys for the three fields respectively: space label index key (e.g.: sofa area / bedroom area), path index key (e.g.: path A / path B), trigger type index key (e.g.: enter / stay / path progress).

[0169] (3) Index mapping is established by writing the rule ID into the corresponding index structure to form a mapping relationship. For example, the rule ID can be written into three index structures at the same time to form a mapping relationship. For example: Sofa area index → ​​rules R1, R3, that is, Sofa area → Rule1, Rule3; Path A index → ​​rules R2, R5, that is, Path A → Rule2, Rule5; Enter trigger index → ​​rules R1, R2, that is, Enter event → Rule1, Rule2. Rules can appear repeatedly in the three indices, that is, a rule can appear in multiple indices at the same time.

[0170] In this context, rules can appear repeatedly in the three indexes, with the aim of allowing the same rule to be quickly retrieved from different dimensions. This is the most crucial aspect of multidimensional indexing.

[0171] For example, rule R1: When a user enters the sofa area, activate the movie-watching ventilation mode. This rule has the following characteristics: Space tag: Sofa area; Trigger type: Entry; Mode attribute: Movie-watching mode. Therefore, this rule should appear in: the sofa area index; the entry event index; and even the movie-watching mode related index. This way, regardless of whether the system searches by "sofa area," "entry event," or "movie-watching mode," it can quickly find R1.

[0172] The benefits of allowing rules to repeat across three indexes include at least the following: Improved rule retrieval speed: The system doesn't need to traverse all rules; it can directly retrieve candidate rules based on the index key corresponding to the current event. Support for fast multi-condition matching: The same rule can participate in searches across multiple dimensions such as space, path, and triggering events, improving matching capabilities in complex scenarios. Reduced real-time computational overhead: By pre-establishing multi-dimensional mapping relationships, only index queries and set operations need to be executed when an event is triggered, eliminating the need for a full rule traversal, thus improving real-time response capabilities. Therefore, repeatedly establishing mapping relationships for rules across multiple indexes does not mean the rules are stored repeatedly; rather, it means the same rule participates in fast searches across different dimensions.

[0173] How the index is used when an event is triggered: When a spatial event is received, the system extracts the spatial tag, path identifier, and trigger type from the event. It then performs direct searches in the corresponding indexes and takes the union of the three index results to form a candidate rule set, thus avoiding the need to traverse and match all rules.

[0174] In this invention, by establishing a multi-dimensional index structure, the complexity of rule matching is reduced from full traversal to local lookup. This allows the system to directly locate the candidate rule set based on the spatial tag, path identifier, and trigger type in the event, without traversing all rules upon receiving a spatial event. This significantly reduces the rule matching range, improves rule retrieval efficiency, enhances rule filtering efficiency, and meets real-time control response requirements. Direct location here means that instead of traversing all rules one by one, the rule set is obtained at once through a key-value mapping relationship; that is, the query method is: Key (tag information) → Hash / index mapping → Rule ID set. Through this direct location mechanism based on event tag information, the system can quickly obtain the candidate rule set using a key-value query after receiving a spatial event, avoiding traversal and matching of all rules. This significantly improves rule retrieval efficiency and reduces computational overhead, meeting the needs of real-time control scenarios.

[0175] In other words, by establishing a multi-dimensional index structure based on spatial labels, path identifiers, and trigger types, the system can quickly locate the candidate rule set after receiving a spatial event, avoiding full rule traversal, thereby improving rule matching efficiency and reducing computational overhead, and meeting real-time control requirements.

[0176] In this invention, by indexing rules according to spatial tags, path identifiers, and trigger types, a multi-dimensional fast rule location mechanism is achieved, thereby improving rule matching efficiency and reducing computational overhead. When a spatial event is received, the corresponding rule set is located directly in the index structure based on the tag information in the event, without traversing all rules.

[0177] Among them, spatial events refer to standardized event data generated by the spatial perception module based on changes in the user's position or behavior in the indoor environment, which are used to trigger the rule engine to make subsequent rule matching and control decisions. Spatial events are generated by the event receiving unit, and the sources of spatial events include: (1) spatial location change events, such as: the user moves from the living room to the sofa area; (2) spatial area entry / exit events, such as: the user enters the bedroom area or leaves the TV viewing area; (3) behavioral state events, such as: the user stays in a certain area for more than a set time; (4) path-related events, such as: the user enters the preset path A or reaches 50% of the path progress. These events are uniformly classified as spatial events in the system, all of which represent standard event inputs triggered by changes in the user's position or behavioral state in the space.

[0178] The tag information in an event refers to the set of key fields used for locating rules within a spatial event. Specifically, the event tag information includes: spatial tags (e.g., sofa area, bedroom area), path identifiers (e.g., path A, path B), and trigger types (e.g., entry, stay, path progress). These fields describe the user's current spatial or behavioral state and serve as the input for rule retrieval.

[0179] In the specific processing of the event tag location rule set, when a spatial event is received, the system performs the following steps:

[0180] The first step is tag parsing, which extracts three types of tag information from spatial events: spatial tag, path identifier, and trigger type.

[0181] Step 2: Index lookup. Perform the following queries in the corresponding index structures: using spatial tags as keys, search for the rule set in the spatial tag index; using path identifiers as keys, search for the rule set in the path index; using trigger types as keys, search for the rule set in the trigger type index.

[0182] Step 3: Rule set location. The rule sets obtained from the three index query results are aggregated and processed to obtain the candidate rule set corresponding to the current event.

[0183] The system uses event tag information as an index key to perform key-value matching queries in a pre-established index structure, thereby directly obtaining the corresponding rule set and achieving rapid rule location.

[0184] In this invention, the event receiving unit includes: a sensor data interface submodule (connecting to millimeter-wave radar, infrared sensors, etc.), an event generation submodule (generating spatial events), and an event standardization submodule (unifying data format). The sensor data interface submodule receives raw data from millimeter-wave radar and infrared sensors and transmits it to the event generation submodule. The event generation submodule identifies user actions such as entering, staying, or moving from the raw data based on changes in human position or movement, and generates preliminary spatial events. The preliminary events output by the event generation submodule are processed in a unified format by the event standardization submodule, which completes information such as time and spatial labels to generate standard spatial events.

[0185] The working process of the event receiving unit: The millimeter-wave radar continuously collects human position data. When a change in position or speed is detected, the event generation submodule generates a raw event. Then, through the event standardization submodule, the data from different sources are uniformly encapsulated into a standard event structure (including spatial tags, timestamps, status types, etc.).

[0186] During the operation of the event receiving unit, different sub-modules perform their tasks sequentially, as follows:

[0187] (1) Data receiving stage (Execution subject: sensor data interface sub-module): The sensor data interface sub-module is responsible for receiving raw data from the spatial perception module, such as changes in personnel position coordinates detected by millimeter-wave radar, changes in heat source signals detected by infrared sensors, etc.

[0188] For example, when a user walks from the living room to the sofa area, the millimeter-wave radar detects continuous changes in the human body's coordinates and sends this change data to the event generation submodule in real time.

[0189] (2) Event generation stage (Execution subject: event generation submodule): The event generation submodule determines whether the user's spatial state has changed based on the received raw perception data.

[0190] For example: when coordinates enter a preset area, an "entry" event is generated; when the speed in a certain area falls below a threshold, a "stay" event is generated; when coordinates continue to move, a "movement" event is generated. When the system detects that a user has entered the sofa area, it generates an "enter sofa area" event.

[0191] (3) Event standardization stage (Execution subject: event standardization submodule): The event standardization submodule performs unified format processing on the preliminary events output by the event generation submodule, including: supplementing space labels (such as sofa area), supplementing timestamps, and standardizing event field structure.

[0192] For example: Convert entering the sofa area into a standard event structure: Space label = sofa area, event type = enter, time = current time.

[0193] The above process is executed sequentially by three sub-modules: sensor data interface sub-module → event generation sub-module → event standardization sub-module, which ultimately outputs standard spatial events for use by the subsequent rule matching unit.

[0194] In the solution of this invention, by using a clearly defined sub-module processing structure, the raw sensor data can be transformed into standardized spatial events step by step, thereby improving the accuracy of event recognition and ensuring the consistency of subsequent rule processing.

[0195] In the solution of the present invention, the rule matching unit includes: an index calling submodule, a condition judgment submodule (time / mode / state), and a rule filtering submodule, which are processed in the following order: index calling submodule → condition judgment submodule → rule filtering submodule.

[0196] The process involves three submodules: Index Retrieval Submodule → Condition Judgment Submodule: The Index Retrieval Submodule quickly retrieves a set of candidate rules from the index structure based on the received spatial events and passes it to the Condition Judgment Submodule. Condition Judgment Submodule → Rule Filtering Submodule: The Condition Judgment Submodule evaluates each candidate rule for its additional conditions (such as whether time, pattern, or state is met) and outputs the rules that meet the conditions to the Rule Filtering Submodule. Rule Filtering Submodule: The Rule Filtering Submodule retains the rules that pass the condition judgment, forming the final set of valid rules. These three submodules are executed sequentially in the order of rule retrieval → condition judgment → rule filtering, ultimately outputting a set of valid rules for subsequent decision-making units. This hierarchical processing structure improves rule filtering efficiency and reduces the participation of invalid rules in subsequent decision calculations.

[0197] The rule matching unit works as follows: After receiving a standardized event, it calls the index module to obtain a set of candidate rules; for each rule, it checks whether its additional conditions are true, discarding rules that do not meet the conditions to form a set of valid rules. During its operation, the rule matching unit is executed sequentially by the index call submodule, the condition judgment submodule, and the rule filtering submodule, as follows:

[0198] (1) Rule retrieval stage (execution subject: index call submodule): The index call submodule receives the tag information (such as space tag, path identifier, trigger type) in the spatial event and quickly queries the matching rule set in the corresponding index structure. For example: when the event is "entering the sofa area", the system uses "sofa area" and "entering" as index keys to retrieve all rules related to this condition from the index structure.

[0199] (2) Condition Judgment Stage (Execution Entity: Condition Judgment Submodule): The condition judgment submodule performs additional condition judgments on each candidate rule output by the index call submodule, including time conditions, operating mode conditions, and device status conditions. For example: for the sofa area entering the fan speed adjustment rule, the system judges whether the current mode is night mode; if the condition is met, the rule is retained, otherwise it is discarded.

[0200] (3) Rule filtering stage (Execution subject: rule filtering submodule): The rule filtering submodule summarizes the rules that pass the condition judgment to form the final set of valid rules and outputs them to the subsequent decision-making unit. For example: Among multiple sofa area rules, only the rules that meet both the time and pattern conditions are retained.

[0201] In the solution of this invention, the rule matching process is transformed from full rule traversal to index-based fast positioning + condition filtering through hierarchical processing, thereby improving rule matching efficiency and reducing computational overhead.

[0202] In the present invention, the decision-making and conflict handling unit includes: a conflict determination submodule (action conflict recognition), a grouping processing submodule (region / path classification), and a comprehensive scoring submodule (multi-factor calculation). The decision-making and conflict handling unit comprises a grouping processing submodule, a conflict determination submodule, and a comprehensive scoring submodule, which are processed sequentially: grouping processing submodule → conflict determination submodule → comprehensive scoring submodule.

[0203] The system comprises three submodules: Grouping Processing Submodule → Conflict Decision Submodule: The Grouping Processing Submodule categorizes rules by type, such as regional rules, path rules, and global rules, and outputs the grouping results to the Conflict Decision Submodule. Conflict Decision Submodule → Comprehensive Scoring Submodule: The Conflict Decision Submodule analyzes the control actions of rules in the same or different groups, determines whether conflicts exist (e.g., different values ​​for the same parameter), and outputs the conflicting and non-conflicting rules to the Comprehensive Scoring Submodule. Comprehensive Scoring Submodule: The Comprehensive Scoring Submodule scores and ranks the rules based on factors such as priority, time, and historical usage frequency, determining the master rule and rules that can be merged. These three submodules are executed sequentially in the order of rule grouping → conflict judgment → priority decision. Through hierarchical processing, conflicts can be effectively identified and priorities determined in the case of multiple concurrent rules, thereby improving the stability of control decisions.

[0204] The decision-making and conflict resolution unit operates as follows: Rules are grouped by type; rule actions (temperature / wind speed, etc.) are analyzed for conflicts; conflicting rules are scored (priority, time, frequency, etc.); the primary rule is selected and marked as mergeable. During its operation, the decision-making and conflict resolution unit is sequentially executed by the grouping processing submodule, conflict determination submodule, and comprehensive scoring submodule, as detailed below:

[0205] (1) Rule grouping stage (Execution subject: grouping processing submodule): The grouping processing submodule receives the set of valid rules output by the rule matching unit and classifies them according to rule attributes, such as dividing them into regional rule groups, path rule groups and global rule groups. For example: when the system receives the sofa area rule and the path A rule at the same time, they are classified into different rule groups respectively.

[0206] (2) Conflict judgment stage (Execution subject: conflict judgment submodule): The conflict judgment submodule compares the control actions of the same or different groups of rules to determine whether there is a conflict, such as multiple rules modifying the same parameter at the same time (such as wind speed or temperature).

[0207] For example, if one rule requires the wind speed to be level 2 and another rule requires the wind speed to be silent, then it is considered a conflict; if the temperature and wind speed are controlled separately, then it is considered a non-conflict.

[0208] (3) Comprehensive Decision-Making Stage (Executing Entity: Comprehensive Scoring Submodule): The comprehensive scoring submodule calculates scores for conflicting rules. Scoring factors include rule priority, trigger time, and historical usage frequency, etc., to determine the main rule and rules that can be merged. For example, when there is a conflict between the movie viewing mode rule and the energy-saving rule, if the user has used the movie viewing mode more frequently in the past, the movie viewing rule will be selected as the main rule.

[0209] In the solution of this invention, through a step-by-step processing method of grouping, conflict identification, and scoring decision, the system can effectively identify conflict relationships and determine the priority execution rule when multiple rules are triggered simultaneously, thereby improving control stability and avoiding repeated parameter switching.

[0210] In the solution of this invention, the action fusion unit includes: a parameter extraction submodule (extracting each rule action), a parameter integration submodule (merging different parameters), and a conflict parameter handling submodule (priority selection). The action fusion unit includes a parameter extraction submodule, a conflict parameter handling submodule, and a parameter integration submodule, which are processed sequentially: parameter extraction submodule → conflict parameter handling submodule → parameter integration submodule. The three submodules are executed serially in the order of parameter extraction → conflict handling → parameter integration.

[0211] The system comprises three submodules: Parameter Extraction Submodule → Conflict Parameter Handling Submodule: The Parameter Extraction Submodule extracts control parameters from different rules, such as temperature, wind speed, and wind direction, and passes these parameters to the Conflict Parameter Handling Submodule. Conflict Parameter Handling Submodule → Parameter Integration Submodule: The Conflict Parameter Handling Submodule performs conflict judgment on parameters of the same type. For example, when multiple rules give different values ​​for the same wind speed, it filters or prioritizes them and outputs the processed results to the Parameter Integration Submodule. Parameter Integration Submodule: The Parameter Integration Submodule summarizes the control parameters of different categories to form a unified set of control parameters. Through hierarchical processing, the control parameters of multiple rules are unified and integrated, avoiding duplicate control and parameter conflicts, and improving the consistency and stability of control output.

[0212] The action fusion unit's working process involves parsing control actions from multiple rules: different parameters (temperature / wind speed) are directly merged, while identical parameters are selected based on priority or strategy, ultimately generating a unified parameter set. During operation, the action fusion unit is sequentially executed by the parameter extraction submodule, conflict parameter handling submodule, and parameter integration submodule, specifically including:

[0213] (1) Parameter extraction stage (Execution subject: parameter extraction submodule): The parameter extraction submodule extracts control parameters from different rule outputs, such as temperature, wind speed, wind direction, etc., and forms a set of parameters to be fused. For example: Rule A output: temperature 26℃; Rule B output: wind speed level 2; Rule C output: wind direction air supply; then they are extracted as independent parameter items.

[0214] (2) Conflict handling stage (Execution subject: Conflict parameter handling submodule): The conflict parameter handling submodule performs conflict judgment on parameters of the same type and selects or filters them. For example: if rule A requires the wind speed to be level 2 and rule B requires the wind speed to be silent, the system selects one of them as the valid wind speed value according to the priority.

[0215] (3) Parameter integration stage (Execution subject: parameter integration submodule): The parameter integration submodule merges different types of parameters that do not conflict to generate a unified set of control parameters. For example: the final merged parameter is: temperature 26℃ + wind speed 2 + wind direction air supply.

[0216] In the solution of this invention, a phased processing method is used to achieve unified fusion output of multiple rule control parameters, avoiding repeated control or parameter conflicts, and improving the consistency and stability of equipment control.

[0217] In the present invention, the execution scheduling unit includes: an instruction generation submodule (generating control instruction frames), a communication interface submodule (communicating with the air conditioning main controller), and an execution feedback submodule (receiving execution status). The execution scheduling unit includes the instruction generation submodule, the communication interface submodule, and the execution feedback submodule, which are processed sequentially: instruction generation submodule → communication interface submodule → execution feedback submodule. The three submodules are executed serially in the order of instruction generation → instruction sending → feedback receiving.

[0218] The system comprises three submodules: **Instruction Generation Submodule → Communication Interface Submodule:** The instruction generation submodule converts the control parameters output by the action fusion unit into standard air conditioning control instructions and transmits them to the communication interface submodule. **Communication Interface Submodule → Execution Feedback Submodule:** The communication interface submodule sends the control instructions to the air conditioning main control device and receives device execution status feedback. **Execution Feedback Submodule:** The execution feedback submodule receives the air conditioning execution results (such as whether the temperature has been adjusted or whether the fan speed has taken effect) and feeds them back to the system for status recording or subsequent adjustments. This phased execution structure ensures reliable issuance of control instructions and execution status feedback, improving the stability and controllability of the system.

[0219] The execution scheduling unit's working process involves: converting the fused control parameters into equipment commands (such as temperature values ​​and fan speed levels); sending these commands to the air conditioning main control board via the communication interface; and receiving execution feedback information for subsequent adjustments. During operation, the execution scheduling unit is sequentially executed by the command generation submodule, the communication interface submodule, and the execution feedback submodule, specifically including:

[0220] (1) Instruction generation stage (execution subject: instruction generation submodule): The instruction generation submodule receives the unified control parameters output by the action fusion unit and converts them into standard equipment control instructions. For example, when the input control parameters are temperature 26℃, wind speed level 2, and airflow upward, the corresponding air conditioning control instruction frame is generated.

[0221] (2) Command sending stage (Execution subject: communication interface submodule): The communication interface submodule sends the generated control commands to the air conditioning main control device through the communication protocol. For example, the temperature, fan speed and other commands are sent to the air conditioning control board at once through Wi-Fi or wired communication.

[0222] (3) Execution Feedback Phase (Execution Subject: Execution Feedback Submodule): The execution feedback submodule receives the execution results returned by the air conditioning equipment to confirm whether the command has taken effect. For example: feedback that the temperature has been adjusted to 26℃ and the fan speed has been switched to level 2.

[0223] In the solution of this invention, a phased execution mechanism is used to achieve reliable generation, stable issuance, and feedback of control commands and execution results, thereby improving the accuracy and stability of system control.

[0224] In the solution of this invention, the rule status management unit includes: a lifecycle management submodule (enable / disable), a version management submodule (rule update), and a status recording submodule (trigger recording). The rule status management unit includes the lifecycle management submodule, the version management submodule, and the status recording submodule, which are processed in the following order: lifecycle management submodule → version management submodule → status recording submodule.

[0225] The system consists of three submodules: a lifecycle management submodule → a version management submodule; a version management submodule → a status recording submodule; and a status recording submodule. The lifecycle management submodule controls the activation, deactivation, or freezing status of rules and transmits status change information to the version management submodule. The version management submodule marks rule modifications or updates and transmits the update records to the status recording submodule. The status recording submodule records the number of times a rule is triggered, the most recent trigger time, and its usage status, and is used for subsequent rule optimization. These three submodules execute sequentially in the order of status control → version update → runtime recording. Through hierarchical status management, dynamic start / stop of rules, version traceability, and runtime status recording are achieved, improving the stability and maintainability of rule management.

[0226] The rule status management unit works as follows: After a rule is executed: it updates the trigger count and time, adjusts the rule weight according to the strategy, and dynamically updates the rule status when the rule is modified. The rule status management unit is executed sequentially by the lifecycle management submodule, the version management submodule, and the status recording submodule, specifically including:

[0227] (1) Lifecycle control phase (Execution subject: lifecycle management submodule): The lifecycle management submodule is responsible for controlling the enabled, disabled, or frozen status of rules. For example, when a user temporarily disables the nighttime energy-saving rule, the rule status changes from enabled to disabled and immediately becomes invalid in the system, no longer participating in rule matching.

[0228] (2) Version Management Phase (Execution Entity: Version Management Submodule): The version management submodule records the addition or modification of rules to ensure that rule changes are traceable. For example, when the wind speed rule for the sofa area is changed from wind speed level 3 to level 2, the system generates a new version and retains the old version record.

[0229] (3) Status recording stage (Execution subject: status recording submodule): The status recording submodule records the operation status of the rules, including the number of triggers, the most recent trigger time, etc., for subsequent optimization decisions. For example: record that the movie viewing mode rule is triggered 5 times in one day, and the most recent trigger time is 20:30.

[0230] In the solution of this invention, dynamic management and traceability of rules are achieved through rule lifecycle control, version management and operation status recording, thereby improving system stability and rule optimization capabilities.

[0231] The aforementioned units (i.e., rule storage unit, rule classification and indexing unit, event receiving unit, rule matching unit, decision and conflict handling unit, action fusion unit, execution scheduling unit, and rule status management unit) are connected sequentially according to the data processing flow to form a closed-loop processing link from spatial perception event input to control command output. The units interact with each other through standard data structures, thereby ensuring that the system can still achieve stable, continuous, and controllable operation in multi-rule concurrent scenarios.

[0232] The technical solution of this embodiment, by pre-setting control rules for the air conditioner, includes two or more rules, each rule having at least one of the following functions: controlling the frequency of the compressor in the air conditioner to adjust the air supply temperature; adjusting the fan speed in the air conditioner to adjust the air supply speed; and adjusting the angle of the air guide vane in the air conditioner to adjust the airflow direction. In the environment where the air conditioner is located, changes in the user's behavior and / or position are detected to obtain the current detection data of the air conditioner. Based on the current detection data of the air conditioner, and according to the control rules of the air conditioner, a spatial control rule engine with two or more preset rules is used to generate the current control command for the air conditioner, so that the air conditioner operates according to the current control command. Therefore, by performing rule filtering, conflict judgment, and optimal decision-making actions for two or more rules, frequent switching between different rules is avoided, improving the user experience and extending the service life of the equipment (such as a smart air conditioner). This air conditioner is an energy-saving refrigeration and air conditioning device.

[0233] Specifically, in the solution of this invention, the control commands of the device (such as a smart air conditioner) are pre-set (e.g., through system presets, user-defined via an APP, or through learning generation) to generate the rules used (such as temperature control rules, movie viewing mode rules, energy-saving rules, etc.), which are denoted as the control rules of the air conditioner; all rules are converted into a unified structural model for storage and processing; each rule includes at least: applicable spatial object (such as sofa area, path A, etc.), trigger status (such as entering, staying, leaving, path hit, path progress, etc.), trigger condition (such as time period, mode condition, etc.), execution action (such as temperature, wind speed, wind direction, etc.), priority attribute, whether enabled flag, recent trigger record, etc.; based on the control rules of the air conditioner, a spatial control rule engine is used to realize the control of the air conditioner.

[0234] (1) For users in the environment where the air conditioner is located, use spatial sensing devices (such as millimeter-wave radar sensors, infrared sensors, etc.) to detect changes in the behavior and location of users (such as users), obtain detection data, and encapsulate the detection data into a data structure containing the following information: the area where the user is located (referred to as the first area, such as the sofa area), the type of behavior of the user in the area (such as entering behavior, staying behavior, leaving behavior, etc.), the mode status (such as movie viewing mode), and the time information (such as night).

[0235] (2) For the detected data structure, the user's location area (referred to as the first area, such as the sofa area) in the detected data structure is used as the label. In the air conditioner control rules, only the rules associated with the user's location area (referred to as the first area, such as the sofa area) are filtered. For example, the rules associated with the first area (such as the sofa area) are: temperature control rule - the wind speed is reduced to level 2 after entering; movie viewing mode rule - the wind speed is reduced and the wind direction is adjusted when the movie viewing mode is turned on at night; energy saving rule - the temperature is automatically increased by 1℃ at night.

[0236] (3) Combining the current operating status of the air conditioner (e.g., the air conditioner is currently in cooling mode, the air conditioner is currently off, the air conditioner is currently on, etc.) and / or time information (e.g., nighttime), the triggering conditions of the selected rules associated with the user's location (denoted as the first area, such as the sofa area) are judged to determine the rules that are valid: if the air conditioner is currently on and the current time is nighttime, then the movie-watching mode rule is valid; if the air conditioner is currently off, then all rules are not executed; or, if the air conditioner is currently off, then the execution of control actions such as fan speed adjustment, fan direction adjustment, and temperature adjustment is restricted; that is to say, a rule not being valid and a rule not being executed are different. In fact, even if the air conditioner is off, the rule may still be valid. For example: it is currently nighttime; the user enters the sofa area; the user is currently in movie-watching mode, these conditions are still valid. It's just that some control actions cannot be executed.

[0237] (4) If there are more than two rules that are determined to be valid, the two or more rules are classified to obtain different types of rules; for example: A-type rules - regional rules based on the area where the user is located (referred to as the first area, such as the sofa area); B-type rules - path rules based on the user's behavior type in the area (such as entering behavior, staying behavior, leaving behavior, etc.); C-type rules - mode rules based on mode state (such as movie viewing mode).

[0238] (5) For different types of rules, such as A-type rules, B-type rules and C-type rules, determine the parameter control method under each type of rule, such as: A-type rule - wind speed is set to level 2; B-type rule - wind speed is set to silent mode; C-type rule - temperature is set to 25℃.

[0239] (6) Based on the parameter control method under each type of rule, the different types of rules are integrated: For conflicting rules, the main rule can be selected according to the priority, such as the movie viewing mode rule having the highest priority if the C type rule has the highest priority; For conflicting rules, the main rule can also be selected according to the trigger frequency in a recent period, such as the rule with the highest trigger frequency having priority; For conflicting rules, the main rule can also be selected according to the user's usage habits, such as the rule with the lowest wind speed having priority for different wind speeds.

[0240] (7) Integrate the control parameters of the selected rules and determine the final control parameters. For example, in terms of temperature, prioritize the use of energy-saving rules based on user habits and set the temperature to the user's preset energy-saving temperature, such as 26℃. In terms of wind speed, prioritize the use of silent mode based on movie viewing mode. In terms of wind direction, prioritize regional rules, such as selecting upward airflow in the sofa area.

[0241] (8) Based on the path class rules obtained by classifying the user’s behavior type in the area (such as entry behavior, stay behavior, leave behavior, etc.), the final control parameters are dynamically adjusted. For example, the user’s path progress is determined, and the final air conditioning control parameters are adjusted according to the path progress. For example, the first 30% of the path → wind speed level 1, the middle 30% → wind speed level 2, and the last 40% → wind speed level 3, so as to obtain the dynamically adjusted air conditioning control parameters.

[0242] (9) Based on the dynamically adjusted air conditioning control parameters, generate control commands and send them to the air conditioner for execution.

[0243] (10) Record the number of times the corresponding rule is triggered and whether the user receives an adjustment to the air conditioning parameters (such as a change in fan speed). Adjust the weight of the number of triggers and the user's usage habits based on the recorded information. Thus, by using two or more rules based on different sources and types in the air conditioning control rules, rule filtering, conflict judgment, and optimal decision-making actions are performed, avoiding frequent switching between different rules, improving the user experience, and also helping to extend the service life of the equipment (such as a smart air conditioner). This air conditioner is an energy-saving refrigeration and air conditioning device.

[0244] According to an embodiment of the present invention, an air conditioner control device corresponding to the air conditioner control method is also provided. See also Figure 7 The diagram shows a structural schematic of an embodiment of the device of the present invention. This air conditioner is an energy-saving refrigeration and air conditioning device. The control device of the air conditioner may include: a detection unit 102 and a control unit 104.

[0245] The control unit 104 is configured to pre-set control rules for the air conditioner. These control rules include two or more rules, each with a function including at least one of the following: controlling the frequency of the compressor in the air conditioner to adjust the air supply temperature; adjusting the fan speed in the air conditioner to adjust the air supply speed; or adjusting the angle of the air guide vane in the air conditioner to adjust the airflow direction. Specifically, rules for temperature control and / or energy-saving control of the air conditioner are pre-set, i.e., two or more rules are pre-set to be used when generating control commands for the air conditioner, and these are referred to as the air conditioner's control rules. The specific functions and processing of the control unit 104 are described in step S110.

[0246] The detection unit 102 is configured to detect changes in the user's behavior and / or position in the environment where the air conditioner is located, and obtain the current detection data of the air conditioner; the specific functions and processing of the detection unit 102 are described in step S120.

[0247] Figure 8 This is a flowchart illustrating the rule engine decision-making control process in the air conditioner control command generation method. (Example:) Figure 8 As shown, the rule engine decision control process in the air conditioner control command generation method includes: Step 1, spatial perception processing, that is, after detecting changes in user position and behavior (spatial event generation), Step 2 is executed.

[0248] The implementation process of step 1 includes: In an indoor environment, a millimeter-wave radar sensor is installed on the air conditioner body or the ceiling of the room to continuously emit electromagnetic waves and receive human body reflection signals. By analyzing the phase change and Doppler frequency shift of the electromagnetic wave echo, the spatial coordinates and movement speed of the human body in the room are calculated in real time. At the same time, an infrared sensor is set near the air conditioner vent to help determine whether the human body is stationary.

[0249] For example, in a real-world scenario: when a user walks from the living room entrance to the sofa area, the millimeter-wave radar detects continuous changes in the human body's coordinates; when the human body enters the preset sofa area coordinate range, the system determines that the user has entered the sofa area; when the human body's speed decreases to a set threshold (e.g., below 0.2 m / s) and remains there for more than 3 seconds, it is determined to be a stationary behavior.

[0250] The system encapsulates the detection results into a data structure containing the following information: spatial area identifier (e.g., sofa area), behavior type (entry / stay / departure), time information, and location information, and sends it to the subsequent control module. Through the collaborative detection of millimeter-wave radar and infrared sensors, accurate identification of the user's location and behavioral state is achieved, providing reliable input for subsequent control and avoiding erroneous control due to misjudgment.

[0251] The control unit 104 is further configured to generate current control commands for the air conditioner based on the current detection data of the air conditioner and according to the control rules of the air conditioner, using a spatial control rule engine with two or more preset rules, so that the air conditioner operates according to the current control commands. The spatial control rule engine refers to a core control module used for unified management, matching, decision-making, and execution of spatial area rules and behavior path rules. For the specific functions and processing of the control unit 104, please refer to step S130.

[0252] In the solution of this invention, by setting a rule conflict judgment mechanism and a multi-factor optimization decision module, multiple rules are compared and screened in a unified manner, which solves the problem of repeated parameter switching caused by multi-region rule conflicts, thereby achieving the effect of stable output of control parameters.

[0253] Since the processing and functions implemented by the device in this embodiment are basically the same as the embodiments, principles and examples of the aforementioned methods, any details not covered in the description of this embodiment can be found in the relevant descriptions in the aforementioned embodiments, and will not be repeated here.

[0254] According to an embodiment of the present invention, an air conditioner corresponding to an air conditioner control device is also provided. This air conditioner may include the air conditioner control device described above. This air conditioner belongs to the category of energy-saving refrigeration and air conditioning equipment.

[0255] Since the processing and functions implemented by the air conditioner in this embodiment are basically the same as the embodiments, principles and examples of the aforementioned device, any details not covered in the description of this embodiment can be found in the relevant descriptions in the aforementioned embodiments, and will not be repeated here.

[0256] According to an embodiment of the present invention, a computer program product corresponding to the air conditioner control method is also provided, including a computer program that, when executed by a processor, implements the steps of the air conditioner control method described above.

[0257] Since the processing and functions implemented by the product in this embodiment are basically the same as the embodiments, principles and examples of the aforementioned methods, any details not covered in the description of this embodiment can be found in the relevant descriptions in the aforementioned embodiments, and will not be repeated here.

[0258] According to an embodiment of the present invention, a storage medium corresponding to an air conditioner control method is also provided, the storage medium including a stored program, wherein, when the program is executed, the device where the storage medium is located controls the execution of the steps of the air conditioner control method described above.

[0259] Since the processing and functions implemented by the storage medium in this embodiment are basically the same as the embodiments, principles and examples of the aforementioned methods, any details not covered in this embodiment can be found in the relevant descriptions in the aforementioned embodiments, and will not be repeated here.

[0260] In summary, it is readily understood by those skilled in the art that, without conflict, the aforementioned advantageous methods can be freely combined and superimposed.

[0261] The above description is merely an embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of the claims of the present invention.

Claims

1. A control method of an air conditioner, characterized by, include: The control rules of the air conditioner are preset, and the control rules of the air conditioner include two or more rules; the function of each rule includes at least one of the following: controlling the frequency of the compressor in the air conditioner to adjust the air supply temperature of the air conditioner, adjusting the speed of the fan in the air conditioner to adjust the air supply speed of the air conditioner, and adjusting the angle of the air guide plate in the air conditioner to adjust the air direction of the air conditioner. In the environment where the air conditioner is located, the changes in the user's behavior and / or position are detected to obtain the current detection data of the air conditioner; Based on the current detection data of the air conditioner, and according to the control rules of the air conditioner, a spatial control rule engine with two or more preset rules is used to generate the current control command of the air conditioner, so that the air conditioner operates according to the current control command.

2. The control method of the air conditioner according to claim 1, characterized by, in, The data structure of each rule in the air conditioner control rules includes: space object, trigger condition, execution action, priority attribute, and status identifier; The data structure of the current detection data of the air conditioner includes: the user's location, the user's behavior type in the location, the user's current activity in the location, the current status of the air conditioner, and the current time in the location of the air conditioner.

3. The control method of the air conditioner according to claim 1 or 2, characterized by, Based on the current detection data of the air conditioner, and according to the control rules of the air conditioner, a spatial control rule engine with two or more rules is used to generate control instructions for the air conditioner, including: Based on the current detection data of the air conditioner, the control rules of the air conditioner are filtered and the trigger conditions are determined. The rules that are valid in the control rules of the air conditioner are identified and recorded as the valid rules of the air conditioner. Determine whether the number of rules in the establishment rules of the air conditioner is one or more; If it is determined that the number of rules in the establishment rule of the air conditioner is one, then the control command of the air conditioner is generated directly based on the establishment rule of the air conditioner. If it is determined that there are two or more rules in the establishment rules of the air conditioner, then the establishment rules of the air conditioner are classified to obtain the classification rules of the air conditioner. Based on the air conditioner classification rules, control parameters are determined, conflicts are identified, and fusion processing is performed to generate control commands for the air conditioner.

4. The control method of the air conditioner according to claim 3, characterized by, Based on the current detection data of the air conditioner, the control rules of the air conditioner are filtered and the trigger conditions are determined. The rules that are valid in the control rules of the air conditioner are identified and denoted as the valid rules of the air conditioner, including: Using the user's location area in the current detection data of the air conditioner as the spatial object label, the air conditioner's control rules are filtered to obtain the filtering rules of the air conditioner by filtering the rules associated with the same spatial objects as the user's location area in the current detection data of the air conditioner. Based on the air conditioner's filtering rules, and combined with the air conditioner's current status in the current detection data and / or the current time of the area where the air conditioner is located in the current detection data, the rules that are valid in the air conditioner's filtering rules are determined and denoted as the air conditioner's valid rules.

5. The air conditioning control method according to claim 3 or 4, characterized in that, Based on the air conditioner classification rules, control parameters are determined, conflicts are identified, and fusion processing is performed to generate control commands for the air conditioner, including: Based on the classification rules of the air conditioner, the control parameters corresponding to each category of the classification rules are determined to obtain the current control parameters of the air conditioner; the current control parameters of the air conditioner include at least one of the following: wind speed, wind direction, and temperature; Identify the conflicting and non-conflicting control parameters in the current control parameters of the air conditioner; record the non-conflicting control parameters in the current control parameters of the air conditioner as the remaining control parameters of the air conditioner; Based on at least one of the priority attribute and status identifier of the rule corresponding to the conflicting control parameters in the current control parameters of the air conditioner, the conflicting control parameters in the current control parameters of the air conditioner are fused to obtain the fused control parameters of the air conditioner; the status identifier includes: an identifier used to characterize the user's trigger frequency and / or usage habits of the corresponding rule; By integrating the remaining control parameters and the fused control parameters of the air conditioner, the final control parameters of the air conditioner are obtained. Based on the final control parameters of the air conditioner, control commands for the air conditioner are generated.

6. The air conditioning control method according to any one of claims 1 to 5, characterized in that, Also includes: Continue to detect changes in the user's behavior and / or location to obtain change detection data for the air conditioner; Based on the change detection data of the air conditioner, if it is determined that the user's path has changed, the degree of change in the user's path is determined. The final control parameters of the air conditioner are adjusted according to the degree of change in the user's path, so as to adjust the air speed and / or the air direction of the air conditioner. And / or, Record the trigger frequency of the rule corresponding to the current control command of the air conditioner, and / or record the user's usage habits of the rule corresponding to the current control command of the air conditioner, to obtain the status identifier of the rule corresponding to the current control command of the air conditioner; Based on the status identifier of the rule corresponding to the current control command of the air conditioner, the original status identifier of the rule corresponding to the current control command of the air conditioner is updated to update the control rule of the air conditioner.

7. A control device for an air conditioner that implements air conditioner control using the control method for an air conditioner as described in any one of claims 1 to 6, characterized in that, include: The control unit is configured to pre-set the control rules of the air conditioner, the control rules of the air conditioner including two or more rules, each rule having a function including at least one of the following: controlling the frequency of the compressor in the air conditioner to adjust the air supply temperature of the air conditioner, adjusting the speed of the fan in the air conditioner to adjust the air supply speed of the air conditioner, and adjusting the angle of the air guide plate in the air conditioner to adjust the air direction of the air conditioner. The detection unit is configured to detect changes in the user's behavior and / or position in the environment where the air conditioner is located, and obtain the current detection data of the air conditioner; The control unit is further configured to generate a current control command for the air conditioner based on the current detection data of the air conditioner and according to the control rules of the air conditioner, using a spatial control rule engine with two or more preset rules, so that the air conditioner operates according to the current control command of the air conditioner.

8. An air conditioner, characterized in that, include: The air conditioning control device as described in claim 7.

9. A storage medium, characterized in that, The storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the storage medium to perform the air conditioning control method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the air conditioning control method according to any one of claims 1 to 6.