Environment control method and device, storage medium and electronic equipment
By comprehensively calculating target control thresholds and generating adjustment strategies based on internal and external meteorological data, the problem of insufficient accuracy and timeliness of building environmental control systems has been solved, achieving more efficient and energy-saving environmental adjustments.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN DAS INTELLITECH CO LTD
- Filing Date
- 2025-12-30
- Publication Date
- 2026-05-08
AI Technical Summary
Existing building environmental control systems are unable to control various devices in a timely and accurate manner, resulting in insufficient accuracy and timeliness of environmental control.
By acquiring internal and external meteorological data of the target area, calculating the predicted changes, determining the target control threshold based on preset constraints, and generating adjustment strategies, environmental parameters are flexibly adjusted to meet energy consumption and comfort requirements.
It improves the accuracy and efficiency of environmental adjustments, reduces energy consumption, and enhances user comfort.
Smart Images

Figure CN121995798A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of computer technology, and in particular to an environmental control method, apparatus, storage medium, and electronic device. Background Technology
[0002] Nowadays, with the development of technology, in the process of daily life and work, the indoor environment in buildings is controlled by the building automation control system. However, the control system cannot control the equipment in a timely and accurate manner. Therefore, how to improve the accuracy and timeliness of building environment control has become an urgent problem to be solved. Summary of the Invention
[0003] This specification provides an environmental control method, apparatus, storage medium, and electronic device. It can determine a target control threshold by comprehensively analyzing internal and external data of a target area and combining it with preset constraints, and generate a corresponding adjustment strategy to adjust the environmental parameters of the target area. This ensures that the generated adjustment strategy meets energy consumption and comfort requirements. Furthermore, by flexibly adjusting the threshold, the accuracy and rationality of the generated strategy are guaranteed, thereby improving the accuracy and efficiency of environmental adjustments in the target area, enhancing user comfort within the target area, and reducing energy consumption during environmental control of the target area.
[0004] Firstly, embodiments of this specification provide an environmental control method, the method comprising: Acquire environmental data for the target area, and obtain predicted change data based on the environmental data, which includes external meteorological data and internal meteorological data; Based on the predicted change data and preset constraints, a threshold is calculated to determine the target control threshold. Based on the environmental data, the predicted change data, and the target control threshold, an adjustment strategy is generated for adjusting the environmental parameters of the target area. The environmental parameters in the target area are adjusted based on the adjustment strategy so that the environmental parameters are within the target control threshold.
[0005] The above technical solution acquires environmental data, including internal and external meteorological data, for the target area, and obtains predicted change data. Based on the predicted change data and preset constraints, a target control threshold for environmental control is determined, and an adjustment strategy is generated. The environmental parameters of the target area are then adjusted based on this strategy. By comprehensively considering the internal and external data of the target area and combining them with preset constraints, the target control threshold is determined, and a corresponding adjustment strategy is generated to adjust the environmental parameters of the target area. This ensures that the generated adjustment strategy meets the requirements for energy consumption and comfort. Furthermore, by flexibly adjusting the threshold, the accuracy and rationality of the generated strategy are guaranteed, thereby improving the accuracy and efficiency of environmental adjustment in the target area, enhancing user comfort, and reducing energy consumption during environmental control.
[0006] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the step of acquiring environmental data of the target area and obtaining predicted change data based on the environmental data includes: External meteorological data outside the target area is acquired based on the external meteorological module; The internal meteorological data of the target area is obtained based on the meteorological monitoring module in the target area; Based on the external meteorological data and the internal environmental data in the aligned environmental data according to meteorological parameters, the aligned environmental data is predicted according to the prediction algorithm to obtain the predicted change data.
[0007] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the step of calculating the threshold based on the predicted change data and preset constraints to determine the target control threshold includes: Determine the parameter types in the environmental data, and determine the parameter thresholds for the parameter types based on the preset constraints and the predicted change data. The preset constraints include energy consumption constraints and comfort constraints. Threshold calculation is performed based on a preset algorithm and the parameter threshold to determine the target control threshold corresponding to the parameter type.
[0008] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the step of calculating the threshold based on a preset algorithm and the parameter threshold to determine the target control threshold corresponding to the parameter type includes: Based on the predicted change data and environmental data, the strategy algorithm determines the solution object corresponding to each preset constraint condition of the parameter type according to the preset time step of the preset duration. The solution object is calculated according to the collaborative solution algorithm to determine the condition control threshold corresponding to each preset constraint condition; Based on the weights corresponding to each preset constraint, the control thresholds of each condition are weighted, summed, and minimized to obtain the target control threshold corresponding to the parameter type.
[0009] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the step of generating an adjustment strategy for adjusting the environmental parameters of the target area based on the environmental data, the predicted change data, and the target control threshold includes: Based on the environmental data, the predicted change data, and the target control threshold, behavioral decisions are made to generate the execution behavior corresponding to the target control threshold. Based on the execution behavior, a format conversion is performed to generate an adjustment strategy for adjusting the environmental parameters of the target region.
[0010] In combination with the first aspect and the above implementation methods, in some possible implementation methods, adjusting the environmental parameters in the target region based on the adjustment strategy to bring the environmental parameters within the target control threshold includes: A control report is generated based on the scheduling strategy, and the control report is output to obtain a confirmation instruction for the control report. The language type of the control report is natural language. In response to the confirmation command for the control report, each control module in the target area is driven to control the environmental control equipment in the target area so that the environmental parameters in the target area are at the target control threshold.
[0011] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the step of generating a control report based on the scheduling strategy and outputting the control report to obtain a confirmation instruction for the control report includes: The scheduling strategy is semantically converted to generate a control report in natural language. The control report is transmitted to the review module, and the control report is output on the display interface of the review module to obtain a confirmation instruction for the control report.
[0012] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the step of driving each control module in the target area to control the environmental control equipment in the target area in response to the confirmation instruction for the control report includes: In response to a confirmation instruction for the control report, the control module in the control report is identified; Based on the control instructions in the control report, the control module is driven to control the environmental control devices in the current area so that the environmental parameters in the target area are at the target control threshold.
[0013] Secondly, embodiments of this specification provide an environmental control device, the device comprising: A data acquisition unit is used to acquire environmental data of a target area and obtain predicted change data based on the environmental data, wherein the environmental data includes external meteorological data and internal meteorological data. The threshold determination unit is used to perform threshold calculation based on the predicted change data and preset constraints to determine the target control threshold. The strategy generation unit is used to generate an adjustment strategy for adjusting the environmental parameters of the target area based on the environmental data, the predicted change data, and the target control threshold. An environmental control unit is used to adjust environmental parameters in the target area based on the adjustment strategy, so that the environmental parameters are within the target control threshold.
[0014] Thirdly, embodiments of this specification provide a computer storage medium storing multiple instructions adapted for loading by a processor and executing the steps of the method described above.
[0015] Fourthly, embodiments of this specification provide a computer program product that stores at least one instruction, the at least one instruction being adapted to be loaded by a processor and executed in accordance with the above-described method steps.
[0016] Fifthly, embodiments of this specification provide an electronic device, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute the steps of the method described above. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in this specification or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 A system architecture diagram of an environmental control method provided in the embodiments of this specification; Figure 2 A flowchart illustrating an environmental control method provided in an embodiment of this specification; Figure 3 A flowchart illustrating an environmental control method provided in an embodiment of this specification; Figure 4 This is a schematic diagram illustrating an example of adjusting environmental parameters provided in an embodiment of this specification. Figure 5 This is a schematic diagram illustrating an example of an environmental parameter adjustment process provided in an embodiment of this specification. Figure 6 This is a schematic diagram of the structure of an environmental control device provided in the embodiments of this specification; Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. Detailed Implementation
[0019] To make the features and advantages of this specification more apparent and understandable, the technical solutions in this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification, and not all embodiments. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this specification.
[0020] Please see Figure 1 This document provides a system architecture diagram for an environmental control method as illustrated in the embodiments of this specification. Figure 1 As shown in the embodiments of this specification, the environmental control method can be applied to terminal devices to realize the process of controlling the environment in a target area. The system architecture provided in the embodiments of this specification mainly includes a terminal device 10, a target area 20, and an environmental control device 30. The terminal device 10 can be a device with data processing capabilities or a service installed on a device, such as a service on a personal computer, server, or cloud server. The target area 20 can be an area requiring weather adjustment, such as an office building, hospital ward, or large shopping mall. The environmental control device 30 can be a device used to adjust the environment of the target area, such as an air conditioner or curtain control device.
[0021] In related technologies, the method used by building control systems to control the building environment is to control each subsystem in the building through fixed control logic. This results in insufficient response rate of the building environment control based on external weather conditions. Therefore, how to improve the accuracy and timeliness of building environment control has become an urgent problem to be solved.
[0022] In this embodiment, the terminal device 10 acquires environmental data of the target area 20, obtains predicted change data based on the environmental data (including external and internal meteorological data), performs threshold calculation based on the predicted change data and preset constraints, determines the target control threshold, and generates an adjustment strategy for adjusting the environmental parameters of the target area 20 based on the environmental data, predicted change data, and target control threshold. The environmental control device 30 is then controlled to adjust the environmental parameters in the target area to keep them within the target control threshold. By comprehensively considering the internal and external data of the target area, combining preset constraints to determine the target control threshold, and generating a corresponding adjustment strategy to adjust the environmental parameters of the target area, the generated adjustment strategy meets the requirements of energy consumption and comfort. Furthermore, by flexibly adjusting the threshold to ensure the accuracy and rationality of the generated strategy, the accuracy and efficiency of environmental adjustment in the target area are improved, as well as the comfort level of users in the target area, while reducing energy consumption caused by environmental control in the target area.
[0023] based on Figure 1 The system architecture shown below will be combined with... Figure 2 This specification provides a detailed description of the environmental control methods provided in the embodiments.
[0024] Please see Figure 2 This is a flowchart illustrating an environmental control method provided in an embodiment of this specification. Figure 2 As shown, the method may include the following steps S101-S104.
[0025] S101, Obtain environmental data of the target area, and obtain predicted change data based on the environmental data; In one embodiment, environmental data of the target area is acquired through an external meteorological module and a meteorological monitoring module. The environmental data can include both external and internal meteorological data corresponding to the target area. Specifically, the external meteorological module acquires external meteorological data outside the target area. This module can be a module with meteorological data acquisition capabilities, which obtains external meteorological data by transmitting requests to the meteorological bureau or meteorological application server based on the target area. The target area can be an area requiring meteorological adjustments, such as an office building, hospital ward, or large shopping mall. The external meteorological data can be meteorological data of the external environment of the target area, specifically including data such as temperature, humidity, weather, sunshine conditions, wind speed, or ultraviolet radiation intensity outside the target area. Internal meteorological data of the target area is acquired through an environmental monitoring module within the target area. This internal meteorological data can be meteorological data of the internal environment of the target area, specifically including temperature, humidity, lighting conditions, curtain positions, or air conditioning operating parameters within the target area. After time-series alignment and fusion of the external and internal meteorological data, predictions are made based on this environmental data to obtain predicted change data corresponding to the target area. The predicted change data can be the environmental data corresponding to the target area after a preset time period. The specific value of the preset duration can be set according to the actual situation, such as 10 minutes or 60 minutes.
[0026] S102, based on the predicted change data and preset constraints, calculate the threshold and determine the target control threshold; In one embodiment, the parameter types of the predicted change data and the corresponding preset constraints are determined. The parameter type can be the type of data identified in the predicted change data that needs adjustment, such as temperature or lighting conditions. The preset constraints can be pre-set conditions that need to be constrained when considering environmental adjustments, specifically including energy consumption constraints and comfort constraints. Energy consumption constraints can be constraints that consider energy consumption, such as reducing losses. Comfort constraints can be constraints that consider the comfort of users in the target area. Based on the preset constraints and the predicted change data, a threshold is calculated to determine a target control threshold for control in the target area. The target control threshold can be a threshold used to control the environment in the target area. It is understood that different parameter types correspond to different target control thresholds.
[0027] S103, Based on environmental data, predicted change data and target control thresholds, generate adjustment strategies for adjusting environmental parameters of the target area; In one embodiment, based on environmental data, predicted change data, and a target control threshold, the execution behavior corresponding to the parameter type that meets the target control threshold is determined. The execution behavior can be a specific method for adjusting parameters based on the parameter type. For example, determining the control level of a curtain, such as fully open, fully closed, half open, one-third closed, and one-third open, could be an execution behavior indicating that the curtain is controlled to be "half open." The execution behaviors are then formatted into a structured expression to generate an adjustment strategy for adjusting environmental parameters in the target area. The adjustment strategy can be a driving method for instructing the control system in the target area, including configuration data converted into control commands.
[0028] S104, Adjust the environmental parameters in the target area based on the adjustment strategy so that the environmental parameters are within the target control threshold; In one embodiment, a control report is generated based on semantic translation using an adjustment strategy. The control report can be a report explaining to the user how the environment in a target area will be adjusted, allowing the user to clearly and explicitly determine the adjustment method. Upon receiving a confirmation instruction for the control report, the environmental parameters in the target area are adjusted based on the adjustment strategy to bring them within target control thresholds. The confirmation instruction can be a user-input instruction for the control report or an instruction issued by the control system in the target area after detecting the control report. Environmental parameters can be parameters related to the environmental conditions within the target area, such as temperature, humidity, or light levels.
[0029] Understandably, by adjusting strategies to control environmental parameters in the target area, the indoor environment in the target area can be adjusted in a timely manner to weather changes outside the target area, thereby improving the comfort of personnel while reducing energy consumption caused by the operation of various devices.
[0030] In the embodiments of this specification, environmental data, including internal and external meteorological data, is acquired in the target area to obtain predicted change data. Based on the predicted change data and preset constraints, a target control threshold for environmental control is determined, and an adjustment strategy is generated. The environmental parameters of the target area are then adjusted based on the adjustment strategy. By comprehensively considering the internal and external data of the target area and combining them with preset constraints to determine the target control threshold, and generating a corresponding adjustment strategy to adjust the environmental parameters of the target area, the generated adjustment strategy can meet the conditions of energy consumption and comfort. Furthermore, by flexibly adjusting the threshold, the accuracy and rationality of the generated strategy are ensured, thereby improving the accuracy and efficiency of environmental adjustment in the target area, the comfort level of users in the target area, and reducing the energy consumption caused by environmental control in the target area.
[0031] Please see Figure 3 This is a flowchart illustrating an environmental control method provided in an embodiment of this specification. Figure 3 As shown, it may include the following steps S201-S209.
[0032] S201, acquires external meteorological data outside the target area based on the external meteorological module; In one embodiment, external meteorological data of the target area's environment is acquired through an external meteorological module. This module can be one with meteorological data acquisition capabilities, which obtains external meteorological data by sending requests to a meteorological bureau or meteorological application server based on the target area. The target area can be an area requiring meteorological adjustments, such as an office building, hospital ward, or large shopping mall. The external meteorological data can be meteorological data of the target area's external environment, specifically data such as temperature, humidity, weather, sunshine duration, wind speed, or ultraviolet radiation intensity outside the target area.
[0033] It should be noted that, to improve the accuracy of the acquired external meteorological data, one method is to average the meteorological data obtained from multiple meteorological applications and use the averaged data as the external meteorological data. Alternatively, the external meteorological data can be obtained by averaging the data obtained from meteorological applications with the data detected by building exterior detection modules located in the target area. The specific settings can be configured according to the actual situation.
[0034] S202, acquire internal meteorological data in the target area based on the meteorological monitoring module in the target area; In one embodiment, an environmental monitoring module within the target area acquires internal meteorological data of the target area. This internal meteorological data can be meteorological data within the target area's internal environment, specifically including temperature, humidity, lighting conditions, curtain position, carbon dioxide concentration, or air conditioning operating parameters. The meteorological monitoring module can be a module installed within the target area for monitoring the indoor environment, and a module for acquiring operating parameters of devices, including air conditioners, that can adjust the meteorological conditions of the target area.
[0035] Furthermore, in addition to detecting temperature, humidity, and lighting conditions, data such as the number of people and their behavior in the target area can be acquired through methods like facial recognition. This allows for the determination of the internal environmental conditions of the target area based on personnel entry and exit. The specific content of the internal meteorological data can be set according to actual conditions. Personnel behavior data can indicate the actions taken by people in the target area, such as holding a meeting in a conference room.
[0036] S203, based on the alignment of external meteorological data and internal environmental data in the environmental data with meteorological parameters, the aligned environmental data is predicted according to the prediction algorithm to obtain the predicted change data; In one embodiment, external and internal meteorological data are time-series aligned to obtain time-uniform meteorological data, which is then fused to obtain environmental data. The environmental data can be data that characterizes the environmental conditions of the target area after aligning and fusing internal and external data. The time-series unification of the data can be achieved by unifying data from different sources based on parameters such as sampling frequency and time axis to obtain data with the same sampling frequency and time axis. The fusion method can involve data processing such as noise reduction, missing data completion, and feature engineering on the meteorological data. It should be noted that when aligning and fusing external and internal meteorological data, each data type is processed separately to avoid interference between data and improve the accuracy of the acquired environmental data. Based on this environmental data, predictions are made to obtain predicted change data corresponding to the target area. The predicted change data can be the environmental data corresponding to the target area after a preset duration. The specific value of the preset duration can be set according to actual conditions, such as 10 minutes or 60 minutes. Understandably, by predicting data after a preset time period, it is possible to manage and control the internal environment of the target area based on the predicted changes, thereby improving the accuracy and timeliness of the management of the target area's internal environment. The method for determining the predicted changes can be through algorithms such as Prophet, LSTM (Long Short-Term Memory) / Lightweight GRU (Gated Recurrent Unit), Lightweight TCN (Temporal Convolutional Network), Exponential Smoothing / ARIM (AutoRegressive Integrated Moving Average), etc., and the specific method can be set according to the actual situation.
[0037] S204, Determine the parameter types in the environmental data, and determine the parameter thresholds for the parameter types based on preset constraints and predicted change data; In one embodiment, environmental data is identified to determine the types of parameters included in the environmental data. Parameter types can indicate different types of parameters included in the environmental data, such as temperature, humidity, and light conditions. It is understood that, to facilitate data processing, a feasible approach is to process different parameter types separately to avoid interference between calculations of different parameter types. Based on preset constraints and predicted change data, the parameter threshold corresponding to the parameter type is determined. Preset constraints can be pre-defined conditions that need to be constrained when adjusting the environment, specifically including energy consumption constraints, comfort constraints, and interlocking logic constraints between devices. Energy consumption constraints can be constraints that consider energy consumption, such as reducing losses. Comfort constraints can be constraints that consider the comfort of users in the target area. Parameter thresholds can be used to indicate the maximum threshold range corresponding to the parameter type, including maximum and minimum thresholds. This ensures that the subsequently generated strategy, in addition to considering energy consumption and comfort, also guarantees the safety and stability of the target area. It prevents the temperature, humidity, carbon dioxide concentration, and light intensity affected by the generated strategy from remaining within safe ranges, thus avoiding safety hazards for personnel or equipment in the target area. It also avoids frequent switching of the lighting system, preventing unnecessary equipment damage. Interlocking logic constraints impose mutual constraints on various devices in the target area. For example, lighting systems can be turned on in areas with a high curtain closure rate, while the number of lights turned on is limited when the closure rate is low.
[0038] S205, Calculate parameters based on preset algorithms and parameter thresholds, and determine the target control threshold corresponding to the parameter type; In one embodiment, after determining the parameter threshold indicating the maximum adjustment range, a threshold calculation is performed on the parameter type based on a preset algorithm to determine the target control threshold corresponding to the parameter type. The target control threshold can be a threshold used to control the environment in a target area. It is understood that different parameter types correspond to different target control thresholds. For example, if the parameter type is lighting conditions, the target control threshold could be a threshold indicating the closing of curtains, or a brightness control threshold for the lighting system in an interior area, etc.
[0039] The preset algorithm can include a control strategy framework (MPC, Model Predictive Control) and a collaborative solving algorithm. The control strategy framework determines the solution object corresponding to each time step of a preset duration based on the predicted changes in data and environmental data, and then continuously executes it over time, determining the solution object of the preset duration in real time based on changes in actual data, ensuring the real-time performance and accuracy of the determined solution object. The preset duration can be a pre-set prediction period, such as 10 minutes. A time step can be a unit of time within the preset duration; for example, if the preset duration is 10 minutes, the time step can be 1 minute. The solution object can correspond to preset constraints. The collaborative solving algorithm can be an algorithm used to solve the solution object, such as MILP (Mixed-Integer Linear Programming) or CP-SAT (Constraint Programming) algorithms. SAT, Constraint Programming Satisfactionability algorithm; the specific algorithm used can be set according to the actual situation.
[0040] Specifically, the strategy algorithm determines the solution object corresponding to each preset constraint condition based on the predicted change data and environmental data according to the preset time step. Specifically, it can be as shown in formula (1). The solution object is calculated according to the collaborative solution algorithm to determine the condition control threshold corresponding to each preset constraint condition. According to the weight corresponding to each preset constraint condition, the condition control threshold is weighted and summed and minimized to obtain the target control threshold corresponding to the parameter type. The condition control threshold can be the value obtained after solving the solution object, which is used to indicate the control threshold under the preset constraint condition corresponding to the solution object. The specific value of the weight corresponding to each preset constraint condition can be set according to the actual situation. The larger the weight, the more emphasis is placed on considering the preset constraint condition. After weighting and summing each condition control threshold, the summation result is minimized, that is, the minimum value of the summation result is determined to obtain the target control threshold. It can be calculated by using the formula shown in formula (2). For example, if the parameter type is lighting condition, the control system corresponding to the parameter type includes a curtain control system and a lighting control system. The degree of curtain closure and the opening action of the lighting system are comprehensively considered to determine the curtain position and the number and objects of the lights to be turned on.
[0041] Formula (1); Where k can be an indicator of the current time. You can preset the duration. It can be a time step, u can be a parameter type, and J(t) can be the object to be solved.
[0042] Formula (2); Where α can be the weight corresponding to the energy consumption constraint, β can be the weight corresponding to the comfort constraint, γ can be the weight corresponding to the stability constraint, E(t) can be the condition control threshold corresponding to the energy consumption constraint, calculated using formula (3), C(t) can be the condition control threshold corresponding to the comfort constraint, calculated using formula (4), and S(t) can be the condition control threshold corresponding to the stability constraint, calculated using formula (5).
[0043]
[0044] Formula (3); in, This can be the energy consumption value of the equipment, such as the energy consumption value of a fan. , , It can be a linear term, and the specific value of the linear term can be set according to the actual situation. It can compensate for the load on the equipment. You can set operating values for the device, such as setting the temperature for an air conditioner. It can provide predicted operating values for the equipment. It can be the on / off state of the device, such as the switching system of a lighting system. It should be noted that the formula shown in formula (3) can be used to calculate the condition control threshold of the energy consumption constraint corresponding to a single parameter type, or it can be used to calculate the condition control threshold of the energy consumption constraint corresponding to multiple parameter types. The specific settings can be made according to the actual situation.
[0045]
[0046] Formula (4); in, , , It can be a linear term, and the specific value of the linear term can be set according to the actual situation. It can be the indoor temperature. The target temperature can be set. It can improve indoor lighting levels. It can increase the illumination of the target light. It can be used to measure indoor carbon dioxide concentration. This can be the maximum value of carbon dioxide concentration. It can be seen that, through formula (4), factors such as temperature, light intensity, and carbon dioxide concentration are considered to affect comfort, thereby determining the condition control threshold of the comfort constraint. It is understandable that the specific calculation process can be performed on all factors or only on one factor, depending on the actual situation.
[0047] Formula (5); in, It can be a linear term, and the specific value of the linear term can be set according to the actual situation. The control action can be minimized by formula (5) to ensure the stability of the control device when adjusting to the environment. Minimizing the control action can constrain the control frequency of the device, such as the pulling frequency of curtains or the minimum holding time of the lighting system.
[0048] S206, Make behavioral decisions based on environmental data, predicted change data and target control thresholds, and generate execution behaviors corresponding to the target control thresholds; In one embodiment, for the execution action corresponding to the parameter type, based on environmental data, predicted change data, and the target control threshold, the execution behavior corresponding to the execution action that meets the target control threshold is determined. The execution action can be an action used to adjust the environmental parameter of the parameter type, such as adjusting the curtain level or controlling the start of lights. The execution behavior can be the specific execution method of the execution action. For example, determining the level of the curtain to be controlled, such as the curtain being fully open, fully closed, half open, one-third closed, and one-third open, the execution behavior could be indicating that the curtain level is "half open".
[0049] S207, Based on the execution behavior, perform format conversion to generate an adjustment strategy for adjusting the environmental parameters of the target area; In one embodiment, after determining the execution behavior, the execution behavior is formatted and converted into a structured expression to generate an adjustment strategy for adjusting environmental parameters of the target area. The adjustment strategy can be a driving method used to instruct the control system in the target area, such as configuration data converted into control commands. For example, if the execution behavior is to adjust the curtain's position, then part of the adjustment strategy could be: System: “Shading_System_South”, Control_Type: “(Discrete)”, Action: “(CLOSE)”, Target_Value: 60, Unit: “(°)”, meaning controlling the south-facing curtain to close by 60 degrees.
[0050] Understandably, by using structured data to guide the control system's driving strategy, mathematical solutions are transformed into a "system / action / target value" format. This facilitates accurate natural language interpretation using large language models, ensuring the interpretability of actions. Furthermore, because the adjustment strategy incorporates structured data, personnel can quickly understand the AI's decision-making objectives and risks without needing to consult complex mathematical formulas, ensuring system reviewability. Moreover, some interfaces require specific data formats to issue instructions; therefore, by mapping general optimization results to specific points and instruction formats, the executability of the strategy is ensured.
[0051] S208, Generate a control report based on the scheduling strategy, output the control report, and obtain confirmation instructions for the control report; In one embodiment, the scheduling strategy is semantically transformed based on a large language model to generate a control report in natural language. The control report can be used to explain to the user how to adjust the environment in the target area, allowing the user to clearly and explicitly determine the adjustment method. The control report is in natural language. The control report is transmitted to the review module via a pre-set output path, where it is displayed to obtain confirmation instructions. The output path can be a path used to transmit the control report to the user or the review module (e.g., wireless transmission via WiFi or Bluetooth, or wired transmission via Ethernet), depending on the data requirements. The review module can be used to review the control report, such as a terminal device used by the user in the management department of the target area. Specifically, it can be the user's confirmation instruction. The confirmation instruction can be an instruction entered by the user regarding the control report, or an instruction issued by the control system in the target area after reviewing the control report.
[0052] Specifically, the method for generating control reports based on scheduling strategies can be as follows: after identifying the content in the scheduling strategy based on the Big Prophet model, semantic transformation is performed on each execution step in the scheduling strategy according to the Big Prophet model to generate step descriptions that are easy for users to read and have coherent content. The control report includes the steps for controlling each control system in the target area.
[0053] S209, in response to the confirmation command for the control report, drives each control module in the target area to control the environmental control equipment in the target area so that the environmental parameters in the target area are at the target control threshold; In one embodiment, upon receiving a confirmation instruction for the control report, the control module in the control report is determined in response to the confirmation instruction. The control module can be a module for driving the environmental control devices corresponding to each control instruction in the control report, such as a module for managing curtain drive devices or a module for issuing instructions to air conditioners. Based on the control instructions in the control report, the drive control module controls the environmental control devices in the current area to ensure that the environmental parameters in the target area are at the target control threshold. The environmental control devices can be devices used to adjust the environment of the target area, such as air conditioners or curtain control devices. The environmental parameters can be parameters of the environmental conditions within the target area, such as temperature, humidity, or light conditions.
[0054] For example, such as Figure 4 As shown, Figure 4 The system transmits control reports to the review module and, upon receiving confirmation instructions from the review module, transmits control instructions to each control module based on the execution behaviors in the control reports, thereby driving each control module to control the environment and control the equipment to operate.
[0055] It is understandable that by controlling the coordinated operation of various environmental control devices through control reports, the environmental parameters in the target area can be controlled, so that the indoor environment in the target area can be adjusted in a timely manner according to the meteorological changes outside the target area, thereby improving the comfort of people while reducing the energy consumption caused by the operation of various devices.
[0056] Specifically, the data transmission process for detecting and adjusting environmental parameters in the target area can be as follows: Figure 5 As shown, Figure 5 The environmental monitoring module acquires environmental data by detecting parameters such as temperature, humidity, and brightness. This monitoring equipment may include an internal meteorological module for acquiring internal meteorological data of the target area, and an external meteorological module for acquiring external meteorological data. The environmental data is transmitted through the environmental monitoring module to a terminal device, which can be a device for data analysis and processing. The terminal device transmits the generated control report to the user terminal or control system in the review module. After receiving confirmation from the user terminal or control system, it issues various instructions to the environmental control module based on the control report. This instructs the environmental control module to drive environmental control devices such as air conditioners, windows, curtains, or light bulbs to adjust the environmental parameters of the target area. The goal is to ensure that parameters such as temperature, humidity, light intensity, and carbon dioxide concentration in the target area meet the comfort levels of people in the target area, and that the energy consumption and stability resulting from the control process meet preset constraints.
[0057] In the embodiments of this specification, environmental data, including internal and external meteorological data, is acquired in the target area to obtain predicted change data. Based on the predicted change data and preset constraints, a target control threshold for environmental control is determined, and an adjustment strategy is generated. The environmental parameters of the target area are then adjusted based on this strategy. By comprehensively considering the internal and external data of the target area and combining them with preset constraints to determine the target control threshold, and generating a corresponding adjustment strategy to adjust the environmental parameters of the target area, the generated adjustment strategy meets the conditions for energy consumption and comfort. Furthermore, by flexibly adjusting the threshold, the accuracy and rationality of the generated strategy are ensured, thereby improving the accuracy and efficiency of environmental adjustment in the target area, the comfort level of users in the target area, and reducing energy consumption caused by environmental control in the target area. Further, by performing time-series alignment, fusion, and prediction on external and internal meteorological data, predicted change data after a preset duration is obtained. This allows for the management and control of the internal environment of the target area based on the predicted change data, thereby improving the accuracy and timeliness of internal environmental management in the target area. Furthermore, by adjusting the format of the execution behavior to generate structured data, the adjustment strategy facilitates accurate natural language interpretation and enables personnel to quickly understand the AI's decision-making goals and risks without having to look at complex mathematical formulas. By mapping general optimization results to specific points and instruction formats, the interpretability, reviewability, and executability of the strategy content are guaranteed.
[0058] based on Figure 1 The system architecture shown below will be combined with... Figure 6 This specification provides a detailed description of the environmental control device provided in the embodiments. It should be noted that... Figure 6 The environmental control device described herein is used to execute the embodiments of this specification. Figures 2 to 5 The methods shown in the embodiments are illustrated for ease of explanation, showing only the parts related to the embodiments of this specification. For specific technical details not disclosed, please refer to the embodiments of this specification. Figures 2 to 5 The example shown.
[0059] Please see Figure 6 This document provides a schematic diagram of the structure of an environmental control device as an embodiment of the present specification. Figure 6 As shown, the environmental control device 1 in the embodiments of this specification may include: a data acquisition unit 11, a threshold determination unit 12, a strategy generation unit 13, and an environmental control unit 14.
[0060] Data acquisition unit 11 is used to acquire environmental data of the target area and obtain predicted change data based on the environmental data. The environmental data includes external meteorological data and internal meteorological data. The threshold determination unit 12 is used to perform threshold calculation based on the predicted change data and preset constraints to determine the target control threshold. The strategy generation unit 13 is used to generate an adjustment strategy for adjusting the environmental parameters of the target area based on the environmental data, the predicted change data and the target control threshold. The environmental control unit 14 is used to adjust the environmental parameters in the target area based on the adjustment strategy, so that the environmental parameters are within the target control threshold.
[0061] Optionally, the data acquisition unit 11 is also used for: External meteorological data outside the target area is acquired based on the external meteorological module; The internal meteorological data of the target area is obtained based on the meteorological monitoring module in the target area; Based on the external meteorological data and the internal environmental data in the aligned environmental data according to meteorological parameters, the aligned environmental data is predicted according to the prediction algorithm to obtain the predicted change data.
[0062] Optionally, the threshold determination unit 12 is also used for: Determine the parameter types in the environmental data, and determine the parameter thresholds for the parameter types based on the preset constraints and the predicted change data. The preset constraints include energy consumption constraints and comfort constraints. Threshold calculation is performed based on a preset algorithm and the parameter threshold to determine the target control threshold corresponding to the parameter type.
[0063] Optionally, the threshold determination unit 12 is also used for: Based on the predicted change data and environmental data, the strategy algorithm determines the solution object corresponding to each preset constraint condition of the parameter type according to the preset time step of the preset duration. The solution object is calculated according to the collaborative solution algorithm to determine the condition control threshold corresponding to each preset constraint condition; Based on the weights corresponding to each preset constraint, the control thresholds of each condition are weighted, summed, and minimized to obtain the target control threshold corresponding to the parameter type.
[0064] Optionally, the strategy generation unit 13 is also used for: Based on the environmental data, the predicted change data, and the target control threshold, behavioral decisions are made to generate the execution behavior corresponding to the target control threshold. Based on the execution behavior, a format conversion is performed to generate an adjustment strategy for adjusting the environmental parameters of the target region.
[0065] Optionally, the environmental control unit 14 is also used for: A control report is generated based on the scheduling strategy, and the control report is output to obtain a confirmation instruction for the control report. The language type of the control report is natural language. In response to the confirmation command for the control report, each control module in the target area is driven to control the environmental control equipment in the target area so that the environmental parameters in the target area are at the target control threshold.
[0066] Optionally, the environmental control unit 14 is also used for: The scheduling strategy is semantically converted to generate a control report in natural language. The control report is transmitted to the review module, and the control report is output on the display interface of the review module to obtain a confirmation instruction for the control report.
[0067] Optionally, the environmental control unit 14 is also used for: In response to a confirmation instruction for the control report, the control module in the control report is identified; Based on the control instructions in the control report, the control module is driven to control the environmental control devices in the current area so that the environmental parameters in the target area are at the target control threshold.
[0068] In the embodiments of this specification, environmental data, including internal and external meteorological data, is acquired in the target area to obtain predicted change data. Based on the predicted change data and preset constraints, a target control threshold for environmental control is determined, and an adjustment strategy is generated. The environmental parameters of the target area are then adjusted based on this strategy. By comprehensively considering the internal and external data of the target area and combining them with preset constraints to determine the target control threshold, and generating a corresponding adjustment strategy to adjust the environmental parameters of the target area, the generated adjustment strategy meets the conditions for energy consumption and comfort. Furthermore, by flexibly adjusting the threshold, the accuracy and rationality of the generated strategy are ensured, thereby improving the accuracy and efficiency of environmental adjustment in the target area, the comfort level of users in the target area, and reducing energy consumption caused by environmental control in the target area. Further, by performing time-series alignment, fusion, and prediction on external and internal meteorological data, predicted change data after a preset duration is obtained. This allows for the management and control of the internal environment of the target area based on the predicted change data, thereby improving the accuracy and timeliness of internal environmental management in the target area. Furthermore, by adjusting the format of the execution behavior to generate structured data, the adjustment strategy facilitates accurate natural language interpretation and enables personnel to quickly understand the AI's decision-making goals and risks without having to look at complex mathematical formulas. By mapping general optimization results to specific points and instruction formats, the interpretability, reviewability, and executability of the strategy content are guaranteed.
[0069] This specification also provides a computer storage medium that can store multiple program instructions, which are adapted to be loaded and executed by a processor as described above. Figures 1-5 The method steps of the illustrated embodiment can be found in the following documentation for detailed execution. Figures 1-5 The specific details of the illustrated embodiments will not be elaborated here.
[0070] This specification also provides an embodiment of a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by a processor as described above. Figures 1-5 The environmental control method of the illustrated embodiment can be found in the following document for detailed execution process: Figures 1-5 The specific details of the illustrated embodiments will not be elaborated here.
[0071] Please see Figure 7 This document provides a schematic diagram of the structure of an electronic device as an embodiment of the present specification. Figure 7As shown, the electronic device 1000 may include: at least one processor 1001, such as a CPU; at least one network interface 1004; an input / output interface 1003; a memory 1005; and at least one communication bus 1002. The communication bus 1002 is used to enable communication between these components. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as at least one disk drive. Figure 7 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, an input / output interface module, and an environmental control application program.
[0072] exist Figure 7 In the electronic device 1000 shown, the input / output interface 1003 is mainly used to provide an input interface for the user and to obtain the user input data.
[0073] In one embodiment, the processor 1001 can be used to invoke the environment control application stored in the memory 1005, and specifically perform the following operations: Acquire environmental data for the target area, and obtain predicted change data based on the environmental data, which includes external meteorological data and internal meteorological data; Based on the predicted change data and preset constraints, a threshold is calculated to determine the target control threshold. Based on the environmental data, the predicted change data, and the target control threshold, an adjustment strategy is generated for adjusting the environmental parameters of the target area. The environmental parameters in the target area are adjusted based on the adjustment strategy so that the environmental parameters are within the target control threshold.
[0074] Optionally, when the processor 1001 acquires environmental data of the target area and obtains predicted change data based on the environmental data, it specifically performs the following operations: External meteorological data outside the target area is acquired based on the external meteorological module; The internal meteorological data of the target area is obtained based on the meteorological monitoring module in the target area; Based on the external meteorological data and the internal environmental data in the aligned environmental data according to meteorological parameters, the aligned environmental data is predicted according to the prediction algorithm to obtain the predicted change data.
[0075] Optionally, when the processor 1001 performs threshold calculation based on the predicted change data and preset constraints to determine the target control threshold, it specifically performs the following operations: Determine the parameter types in the environmental data, and determine the parameter thresholds for the parameter types based on the preset constraints and the predicted change data. The preset constraints include energy consumption constraints and comfort constraints. Threshold calculation is performed based on a preset algorithm and the parameter threshold to determine the target control threshold corresponding to the parameter type.
[0076] Optionally, when the processor 1001 performs threshold calculation based on a preset algorithm and the parameter threshold to determine the target control threshold corresponding to the parameter type, it specifically performs the following operations: Based on the predicted change data and environmental data, the strategy algorithm determines the solution object corresponding to each preset constraint condition of the parameter type according to the preset time step of the preset duration. The solution object is calculated according to the collaborative solution algorithm to determine the condition control threshold corresponding to each preset constraint condition; Based on the weights corresponding to each preset constraint, the control thresholds of each condition are weighted, summed, and minimized to obtain the target control threshold corresponding to the parameter type.
[0077] Optionally, when the processor 1001 executes an adjustment strategy for adjusting environmental parameters of the target area based on the environmental data, the predicted change data, and the target control threshold, it specifically performs the following operations: Based on the environmental data, the predicted change data, and the target control threshold, behavioral decisions are made to generate the execution behavior corresponding to the target control threshold. Based on the execution behavior, a format conversion is performed to generate an adjustment strategy for adjusting the environmental parameters of the target region.
[0078] Optionally, when the processor 1001 adjusts the environmental parameters in the target region based on the adjustment strategy to bring the environmental parameters within the target control threshold, it specifically performs the following operations: A control report is generated based on the scheduling strategy, and the control report is output to obtain a confirmation instruction for the control report. The language type of the control report is natural language. In response to the confirmation command for the control report, each control module in the target area is driven to control the environmental control equipment in the target area so that the environmental parameters in the target area are at the target control threshold.
[0079] Optionally, when the processor 1001 generates a control report based on the scheduling policy, outputs the control report, and obtains an acknowledgment instruction for the control report, it specifically performs the following operations: The scheduling strategy is semantically converted to generate a control report in natural language. The control report is transmitted to the review module, and the control report is output on the display interface of the review module to obtain a confirmation instruction for the control report.
[0080] Optionally, when the processor 1001 executes a confirmation instruction in response to the control report and drives each control module in the target area to control the environmental control equipment in the target area, it specifically performs the following operations: In response to a confirmation instruction for the control report, the control module in the control report is identified; Based on the control instructions in the control report, the control module is driven to control the environmental control devices in the current area so that the environmental parameters in the target area are at the target control threshold.
[0081] In the embodiments of this specification, environmental data, including internal and external meteorological data, is acquired in the target area to obtain predicted change data. Based on the predicted change data and preset constraints, a target control threshold for environmental control is determined, and an adjustment strategy is generated. The environmental parameters of the target area are then adjusted based on this strategy. By comprehensively considering the internal and external data of the target area and combining them with preset constraints to determine the target control threshold, and generating a corresponding adjustment strategy to adjust the environmental parameters of the target area, the generated adjustment strategy meets the conditions for energy consumption and comfort. Furthermore, by flexibly adjusting the threshold, the accuracy and rationality of the generated strategy are ensured, thereby improving the accuracy and efficiency of environmental adjustment in the target area, the comfort level of users in the target area, and reducing energy consumption caused by environmental control in the target area. Further, by performing time-series alignment, fusion, and prediction on external and internal meteorological data, predicted change data after a preset duration is obtained. This allows for the management and control of the internal environment of the target area based on the predicted change data, thereby improving the accuracy and timeliness of internal environmental management in the target area. Furthermore, by adjusting the format of the execution behavior to generate structured data, the adjustment strategy facilitates accurate natural language interpretation and enables personnel to quickly understand the AI's decision-making goals and risks without having to look at complex mathematical formulas. By mapping general optimization results to specific points and instruction formats, the interpretability, reviewability, and executability of the strategy content are guaranteed.
[0082] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0083] The above-disclosed embodiments are merely preferred embodiments of this specification and should not be construed as limiting the scope of this specification. Therefore, any equivalent variations made in accordance with the claims of this specification shall still fall within the scope of this specification.
Claims
1. An environmental control method, characterized in that, The method includes: Acquire environmental data for the target area, and obtain predicted change data based on the environmental data, which includes external meteorological data and internal meteorological data; Based on the predicted change data and preset constraints, a threshold is calculated to determine the target control threshold. Based on the environmental data, the predicted change data, and the target control threshold, an adjustment strategy is generated for adjusting the environmental parameters of the target area. The environmental parameters in the target area are adjusted based on the adjustment strategy so that the environmental parameters are within the target control threshold.
2. The method according to claim 1, characterized in that, The process of acquiring environmental data for the target area and obtaining predicted change data based on the environmental data includes: External meteorological data outside the target area is acquired based on the external meteorological module; The internal meteorological data of the target area is obtained based on the meteorological monitoring module in the target area; Based on the external meteorological data and the internal environmental data in the aligned environmental data according to meteorological parameters, the aligned environmental data is predicted according to the prediction algorithm to obtain the predicted change data.
3. The method according to claim 1, characterized in that, The step of calculating the target control threshold based on the predicted change data and preset constraints includes: Determine the parameter types in the environmental data, and determine the parameter thresholds for the parameter types based on the preset constraints and the predicted change data. The preset constraints include energy consumption constraints and comfort constraints. Threshold calculation is performed based on a preset algorithm and the parameter threshold to determine the target control threshold corresponding to the parameter type.
4. The method according to claim 3, characterized in that, The step of calculating the threshold based on a preset algorithm and the parameter threshold to determine the target control threshold corresponding to the parameter type includes: Based on the predicted change data and environmental data, the strategy algorithm determines the solution object corresponding to each preset constraint condition of the parameter type according to the preset time step of the preset duration. The solution object is calculated according to the collaborative solution algorithm to determine the condition control threshold corresponding to each preset constraint condition; Based on the weights corresponding to each preset constraint, the control thresholds of each condition are weighted, summed, and minimized to obtain the target control threshold corresponding to the parameter type.
5. The method according to claim 1, characterized in that, The adjustment strategy for adjusting environmental parameters of the target area, based on the environmental data, the predicted change data, and the target control threshold, includes: Based on the environmental data, the predicted change data, and the target control threshold, behavioral decisions are made to generate the execution behavior corresponding to the target control threshold. Based on the execution behavior, a format conversion is performed to generate an adjustment strategy for adjusting the environmental parameters of the target region.
6. The method according to claim 1, characterized in that, The step of adjusting the environmental parameters in the target area based on the adjustment strategy to bring the environmental parameters within the target control threshold includes: A control report is generated based on the scheduling strategy, and the control report is output to obtain a confirmation instruction for the control report. The language type of the control report is natural language. In response to the confirmation command for the control report, each control module in the target area is driven to control the environmental control equipment in the target area so that the environmental parameters in the target area are at the target control threshold.
7. The method according to claim 6, characterized in that, The step of generating a control report based on the scheduling policy and outputting the control report to obtain a confirmation instruction for the control report includes: The scheduling strategy is semantically converted to generate a control report in natural language. The control report is transmitted to the review module, and the control report is output on the display interface of the review module to obtain a confirmation instruction for the control report.
8. The method according to claim 6, characterized in that, The step of responding to a confirmation command for the control report by driving each control module in the target area to control the environmental control equipment in the target area includes: In response to a confirmation instruction for the control report, the control module in the control report is identified; Based on the control instructions in the control report, the control module is driven to control the environmental control devices in the current area so that the environmental parameters in the target area are at the target control threshold.
9. An environmental control device, characterized in that, The device includes: A data acquisition unit is used to acquire environmental data of a target area and obtain predicted change data based on the environmental data, wherein the environmental data includes external meteorological data and internal meteorological data. The threshold determination unit is used to perform threshold calculation based on the predicted change data and preset constraints to determine the target control threshold. The strategy generation unit is used to generate an adjustment strategy for adjusting the environmental parameters of the target area based on the environmental data, the predicted change data, and the target control threshold. An environmental control unit is used to adjust environmental parameters in the target area based on the adjustment strategy, so that the environmental parameters are within the target control threshold.
10. A computer storage medium storing a plurality of instructions adapted for loading by a processor and performing the steps of the method as claimed in any one of claims 1 to 8.
11. An electronic device, comprising: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute the steps of the method as claimed in any one of claims 1 to 8.