Building energy-saving control method and system based on digital twinning and knowledge-guided deep reinforcement learning
By establishing a closed-loop analysis foundation and constructing a counterfactual control branch, the accuracy and stability of building energy-saving control methods are improved, adapting to load fluctuations and actuator response deviations, ensuring that control quantities are executed within the safe and feasible domain, and solving the problem of error backflow in multi-model collaborative control.
Patent Information
- Application Number
- CN202611665585.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-27
AI Technical Summary
Existing building energy-saving control schemes lack the identification and decoupling constraints of error closed-loop propagation relationships when multiple models are involved in collaborative operation. This leads to error closed-loop backflow, affecting the accuracy and stability of the control process. In particular, under conditions of sudden changes in regional load, sensor offset, or actuator lag, local errors are mistakenly regarded as effective feedback, resulting in offset in the generation of control quantities.
The building energy-saving control method based on digital twins and knowledge-guided deep reinforcement learning establishes a closed-loop analysis foundation, identifies error closed-loop propagation links, calculates cross-model error closed-loop gain, constructs counterfactual control branches, performs path-limited amplitude regulation, and adaptively corrects candidate control variables to ensure that they are executed within the dynamic safe and feasible domain.
It improves the traceability and risk identification accuracy of building energy-saving control processes, avoids the impact of error backflow, enhances the accuracy and stability of multi-model collaborative update processes, adapts to load fluctuations and actuator response deviations, and achieves coordinated control of energy-saving targets, comfort and equipment constraints.
Smart Images

Figure CN123177147A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of building energy-saving control technology, and more specifically, to a building energy-saving control method and system based on digital twins and knowledge-guided deep reinforcement learning. Background Technology
[0002] With the increasing demand for energy management in public buildings, commercial complexes, and office buildings, building energy-saving control is gradually evolving from fixed-rule control and manual experience-based adjustments to a combination of data-driven and model-predictive approaches. Digital twin models can map and analyze energy consumption changes, indoor temperature responses, equipment operating status, and regional load changes based on building operation data, providing a more intuitive predictive basis for control variable derivation. Expert knowledge bases can accumulate equipment operating boundaries, comfort constraints, safety rules, and maintenance experience, which helps reduce the sensitivity of control strategies to abnormal operating conditions and unreasonable actions. Knowledge-guided deep reinforcement learning strategies can generate candidate control variables under multi-objective constraints, improving the adaptability of building energy-saving control to complex operating scenarios.
[0003] In practical applications, digital twin models, expert knowledge bases, and knowledge-guided deep reinforcement learning strategies often do not operate independently but rather collaborate in the same control cycle, participating in state prediction, rule correction, strategy updates, and control execution. Building operation data, including temperature, humidity, energy consumption, load, actuator feedback, and regional comfort deviations, may participate in digital twin model parameter calibration, influence rule credibility updates in the expert knowledge base, and serve as feedback for knowledge-guided deep reinforcement learning strategy updates. This type of closed-loop collaborative mechanism can improve the information utilization of the control process. However, when a prediction residual, actuator response deviation, or actual building response deviation propagates repeatedly through multiple update paths, errors may form a closed-loop backflow between the digital twin model, expert knowledge base, and knowledge-guided deep reinforcement learning strategy.
[0004] Existing building energy-saving control schemes typically focus on the prediction accuracy of digital twin models, the rationality of expert rule constraints, the energy-saving benefits of reinforcement learning strategies, or the safety boundaries of the control variables themselves. They pay relatively little attention to the error closed-loop propagation relationships generated when multiple models are updated together. Especially in real buildings with sudden changes in regional loads, sensor offsets, actuator lag, or multi-regional coupled disturbances, local errors within a single control cycle may be mistakenly identified as valid feedback, thus participating in parameter calibration, rule credibility adjustment, and strategy updates, causing a shift in the basis for generating candidate control variables. Without mechanisms to identify error closed-loop propagation links, cross-model error closed-loop gains, and sources of pollution in the update path, the building energy-saving control process may struggle to distinguish between normal feedback and contaminated feedback in a timely manner.
[0005] Therefore, in scenarios where digital twin models, expert knowledge bases, and knowledge-guided deep reinforcement learning strategies jointly participate in building energy-saving control, it is necessary to establish an analytical foundation oriented towards the closed-loop operation process. This foundation should uniformly correlate building operation data, candidate control variables, prediction residuals, rule credibility changes, strategy update changes, actuator response deviations, and actual building response deviations. Furthermore, it should identify the propagation, amplification, and backflow of errors across different update paths. When there is a risk of cross-model error backflow, counterfactual control branches, pollution attribution, and dynamic pollution budgets should be used to decouple and constrain relevant update paths, ensuring that the final building energy-saving control variable takes into account energy-saving effects, comfort requirements, equipment physical constraints, and execution safety. Summary of the Invention
[0006] In view of the shortcomings of existing technologies, the purpose of this invention is to provide a building energy-saving control method and system based on digital twins and knowledge-guided deep reinforcement learning.
[0007] To achieve the above objectives, the present invention provides the following technical solution:
[0008] Building energy-saving control methods based on digital twins and knowledge-guided deep reinforcement learning include:
[0009] S1, in the current control cycle, acquire building operation data and candidate control quantities output by knowledge-guided deep reinforcement learning strategies, and establish a closed-loop analysis foundation based on building operation data, including building status information, evidence lineage information, cross-model closed-loop status information and closed-loop causal propagation information; S2, based on closed-loop analysis, identifies the error closed-loop propagation link formed between the digital twin model, expert knowledge base, knowledge-guided deep reinforcement learning strategy, and actual control feedback, and determines the cross-model error closed-loop gain according to the degree of error transmission and amplification in the error closed-loop propagation link; when the cross-model error closed-loop gain of the current control cycle and the previous control cycle both exceed the corresponding backflow risk threshold, and the error closed-loop propagation link includes a path for the real building response deviation to flow back to the digital twin model parameter calibration, it is determined that there is a cross-model error backflow risk in the current control cycle; S3, when it is determined that there is a risk of cross-model error backflow in the current control cycle, a first counterfactual control branch and a second counterfactual control branch are constructed. The first counterfactual control branch maintains the original output relationship of the knowledge-guided deep reinforcement learning strategy to the candidate control quantity, and the second counterfactual control branch isolates or weakens the update path that is highly affected by error backflow. The counterfactual branch divergence rate, the first branch replay consistency, and the second branch replay consistency are determined based on the first counterfactual control branch and the second counterfactual control branch. S4. Based on the cross-model error closed-loop gain, counterfactual branch divergence rate, first branch replay consistency, second branch replay consistency, and closed-loop analysis basis, determine the update path attribution coefficient, which characterizes the degree of influence of different update paths on error backflow, and generate a dynamic update limiting vector to limit the update amplitude of different update paths based on the update path attribution coefficient. S5, based on the dynamically updated limiting vector and the updated path attribution coefficient, performs path-specific limiting control on the digital twin model, expert knowledge base, and knowledge-guided deep reinforcement learning strategy, and adaptively corrects the candidate control quantity based on the path-specific limiting control results. The corrected candidate control quantity is then projected into the dynamic safe and feasible domain formed by building equipment operation constraints, indoor comfort constraints, and control execution constraints to obtain and execute the final building energy-saving control quantity.
[0010] In one embodiment, the closed-loop analysis basis includes building status information, evidence lineage information, cross-model closed-loop status information, and closed-loop causal propagation information; the building status information corresponds to the building status vector, the evidence lineage information corresponds to the evidence lineage matrix, the cross-model closed-loop status information corresponds to the cross-model closed-loop status sequence, and the closed-loop causal propagation information corresponds to the closed-loop causal propagation map.
[0011] In one embodiment, the cross-model error closed-loop gain is determined as follows: based on the closed-loop causal propagation map, error closed-loop propagation links are identified in the cross-model closed-loop state sequence; based on the error closed-loop propagation links, time-delay alignment, directional contribution analysis, evidence homology analysis, and response amplification analysis are performed on adjacent nodes in the error closed-loop propagation links to obtain the time-delay sensitivity coefficient, directional propagation coefficient, evidence homology coupling coefficient, and response amplification coefficient; the cross-model error closed-loop gain is calculated based on the time-delay sensitivity coefficient, directional propagation coefficient, evidence homology coupling coefficient, and response amplification coefficient.
[0012] In one embodiment, the error closed-loop propagation link includes a closed-loop backflow path formed by the digital twin prediction residual, rule confidence change, candidate control quantity weight change, learning strategy update change, final control execution state, actuator response deviation, real building response deviation, and twin model parameter calibration in the cross-model closed-loop state sequence.
[0013] In one embodiment, determining the counterfactual branch divergence rate includes: performing multi-time-domain extrapolation on candidate control variables using a first counterfactual control branch and a second counterfactual control branch respectively to obtain a first multi-objective response tensor and a second multi-objective response tensor; and calculating the counterfactual branch divergence rate based on the difference between the first multi-objective response tensor and the second multi-objective response tensor.
[0014] In one embodiment, both the first multi-objective response tensor and the second multi-objective response tensor include future energy consumption response, indoor comfort response, equipment physical constraint margin, multi-region coupling response, actuator tracking response, and control quantity feasibility risk.
[0015] In one embodiment, the consistency of the first branch playback and the consistency of the second branch playback are determined based on the consistency between the playback simulation results of the completed control cycle and the corresponding actual building response deviations of the first counterfactual control branch and the second counterfactual control branch, respectively.
[0016] In one embodiment, the update path attribution coefficients include model calibration attribution coefficients, rule credibility attribution coefficients, and policy update attribution coefficients; the model calibration attribution coefficient corresponds to the digital twin model parameter calibration path, the rule credibility attribution coefficient corresponds to the expert knowledge base rule credibility update path, and the policy update attribution coefficient corresponds to the knowledge-guided deep reinforcement learning policy update path.
[0017] In one embodiment, path-limiting control includes limiting the parameter calibration range of the digital twin model, the rule credibility update range of the expert knowledge base, the update range of the knowledge-guided deep reinforcement learning strategy, the range of changes in the control weights of the digital twin model, the expert knowledge base, and the knowledge-guided deep reinforcement learning strategy in the correction of candidate control quantities, and the correction range of candidate control quantities, based on dynamically updated limiting vectors.
[0018] In one embodiment, a building energy-saving control system based on digital twins and knowledge-guided deep reinforcement learning includes:
[0019] The data acquisition module is used to acquire building operation data and candidate control quantities output by knowledge-guided deep reinforcement learning strategies in the current control cycle, and to establish a closed-loop analysis basis based on the building operation data.
[0020] The link risk module is used to identify error closed-loop propagation links based on closed-loop analysis, calculate cross-model error closed-loop gain, and determine that there is cross-model error backflow risk in the current control cycle when the preset closed-loop backflow risk conditions are met.
[0021] The branch inference module is used to construct the first counterfactual control branch and the second counterfactual control branch based on the risk of cross-model error backflow, and to perform multi-time domain inference on the candidate control variables to obtain the first multi-objective response tensor and the second multi-objective response tensor.
[0022] The divergence replay module is used to calculate the counterfactual branch divergence rate based on the difference between the first multi-objective response tensor and the second multi-objective response tensor, and to determine the consistency of the first branch replay and the consistency of the second branch replay based on the consistency between the replay simulation results and the actual building response deviation.
[0023] The attribution budget module is used to determine the update path attribution coefficient and generate a dynamically updated amplitude limit vector based on the cross-model error closed-loop gain, counterfactual branch divergence rate, first branch replay consistency, second branch replay consistency, and closed-loop analysis basis.
[0024] The decoupling constraint module is used to perform path-specific amplitude control based on the dynamically updated amplitude limit vector and the updated path attribution coefficient, thereby limiting the parameter calibration amplitude of the digital twin model, the rule credibility update amplitude of the expert knowledge base, and the update amplitude of the knowledge-guided deep reinforcement learning strategy.
[0025] The correction execution module is used to limit the change range of the control weight and the correction range of the candidate control quantity in the correction of the candidate control quantity based on the result of the path limiting control, and adaptively corrects the candidate control quantity and projects it into the dynamic safe and feasible domain to execute the final building energy-saving control quantity.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] This invention establishes a closed-loop analysis foundation based on building operation data in the current control cycle, and combines candidate control quantities output by knowledge-guided deep reinforcement learning strategies to identify error closed-loop propagation links and calculate cross-model error closed-loop gains. It can determine whether there is a risk of error backflow, amplification, or repeated transmission between the digital twin model, expert knowledge base, and knowledge-guided deep reinforcement learning strategies before control execution, thereby improving the traceability and risk identification accuracy of the building energy-saving control process.
[0028] When a risk of cross-model error backflow is identified, a first counterfactual control branch and a second counterfactual control branch are constructed. Based on the counterfactual branch divergence rate, the replay consistency of the first branch, the replay consistency of the second branch, and the closed-loop analysis, the attribution coefficient of the update path is determined. This allows the impact of error backflow to be attributed to paths such as digital twin model parameter calibration, expert knowledge base rule credibility update, and knowledge-guided deep reinforcement learning strategy update, avoiding the simplistic view of local deviations as effective feedback and improving the accuracy and stability of the multi-model collaborative update process.
[0029] Based on the dynamically updated amplitude limit vector and the updated path attribution coefficient, the digital twin model, expert knowledge base and knowledge-guided deep reinforcement learning strategy are subjected to path-limited control, and the candidate control variables are adaptively corrected and dynamically projected into the safe and feasible domain. This enables coordinated control among energy-saving targets, indoor comfort, equipment operation constraints and execution safety, making the building energy-saving control variables that are executed more adaptable to load fluctuations, actuator response deviations and multi-region coupling changes. Attached Figure Description
[0030] Figure 1This is a flowchart of a building energy-saving control method based on digital twins and knowledge-guided deep reinforcement learning in an embodiment of the present invention;
[0031] Figure 2 This is a schematic diagram of the error closed-loop propagation link and cross-model error closed-loop gain calculation in an embodiment of the present invention;
[0032] Figure 3 This is a schematic diagram illustrating the determination of the updated path attribution coefficient in an embodiment of the present invention;
[0033] Figure 4 This is a schematic diagram illustrating the dynamic updating of the limiting vector and the path-specific limiting control in an embodiment of the present invention;
[0034] Figure 5 This is a schematic diagram of adaptive correction of candidate control variables and dynamic safe feasible domain projection in an embodiment of the present invention;
[0035] Figure 6 This is a structural block diagram of a building energy-saving control system based on digital twins and knowledge-guided deep reinforcement learning, as described in an embodiment of the present invention. Detailed Implementation
[0036] Example 1: Refer to Figures 1 to 5 Building energy-saving control methods based on digital twins and knowledge-guided deep reinforcement learning include:
[0037] S1, in the current control cycle, acquire building operation data and candidate control quantities output by the knowledge-guided deep reinforcement learning strategy, and establish a closed-loop analysis basis based on the building operation data; in the current control cycle, synchronously acquire building operation data and candidate control quantities output by the knowledge-guided deep reinforcement learning strategy. Building operation data includes air conditioning unit operating power, supply air temperature, return air temperature, indoor temperature and humidity, personnel density, regional load changes, actuator opening degree, historical energy consumption, and actual building response deviation, etc.
[0038] For example, during the morning peak control cycle of the office building, temperature changes, carbon dioxide concentration changes, chilled water valve opening and fan frequency are collected in the meeting area, open office area and corridor area. At the same time, the fan frequency adjustment, chilled water supply temperature adjustment and fresh air valve opening adjustment output by the knowledge-guided deep reinforcement learning strategy are obtained to form the operational observation basis corresponding to the candidate control quantities in the current control cycle.
[0039] Based on building operation data, a closed-loop analysis foundation is established. Building status information is organized into building status vectors, and sensor sources, acquisition time, data-related objects, and sources of control influence are organized into evidence lineage information, forming an evidence lineage matrix. At the same time, based on the prediction results of the digital twin model, changes in the credibility of expert knowledge base rules, changes in knowledge-guided deep reinforcement learning strategy updates, changes in candidate control quantity weights, and deviations in actual building responses, cross-model closed-loop status information is constructed and a cross-model closed-loop status sequence is formed.
[0040] Based on this, the causal connections between the digital twin prediction residuals, rule credibility changes, candidate control variable weight changes, learning strategy update changes, actuator response deviations, and twin model parameter calibrations are established to form closed-loop causal propagation information and obtain a corresponding closed-loop causal propagation map, providing complete data for identifying error closed-loop propagation links within the current control cycle.
[0041] The basis of closed-loop analysis is denoted as It consists of building state vectors, evidence lineage matrix, cross-model closed-loop state sequence, and closed-loop causal propagation graph, namely:
[0042]
[0043] in, Let be the building state vector for the current control cycle, and , The total dimensions of the status fields participating in the current building energy-saving control; the building status fields include building equipment operating power, equipment start / stop status, fan frequency, valve opening degree, supply air temperature, return air temperature, area temperature, area humidity, air quality parameters, personnel density, area load, energy consumption, actuator feedback status, and comfort deviation. The corresponding fields are selected according to the actual building equipment configuration, and the field order is kept consistent in the continuous control cycle.
[0044] The evidence kinship matrix is denoted as ,and:
[0045]
[0046] in, This represents the number of evidence records used in closed-loop analysis during the current control period and historical window. The total number of closed-loop state nodes and update paths; each evidence record includes at least the data source identifier, collection time, associated device or region, variable type, corresponding control period, participating update path, and source of control influence. The matrix elements in the evidence lineage matrix represent the association status or association strength between the corresponding evidence record and the closed-loop state node or update path.
[0047] The cross-model closed-loop state sequence is denoted as ,and:
[0048]
[0049] in, This represents the number of completed control cycles included in the historical statistics. The total dimension after expanding the cross-model closed-loop state fields; the cross-model closed-loop state fields include digital twin prediction residuals, rule confidence changes, candidate control quantity weight changes, learning strategy update changes, final control execution state, actuator response deviation, real building response deviation, and twin model parameter calibration.
[0050] The closed-loop causal propagation diagram is denoted as:
[0051]
[0052] in, For the set of closed-loop state nodes, It is a set of directed edges formed based on data generation time, update path, and control execution relationship. It is a set of directed edge attributes; each directed edge is associated with at least the starting node, the target node, the time offset, the direction of transmission, the evidence origination state, and the response amplification state.
[0053] For continuous fields that need to be compared across control periods, maximum and minimum normalization is performed based on the historical window statistical boundaries before the current control period:
[0054]
[0055] in, Historical control cycle The original value of the j-th field. and These are the minimum and maximum values of the j-th field in the history window, respectively. To prevent positive numbers with a denominator of zero; for equipment fields with clear rated boundaries or safety boundaries, abnormal truncation is first performed according to the corresponding physical boundaries, and then normalization is implemented; the equipment start-up and shutdown status and the running status machine status adopt discrete state coding, and the evidence association status is represented by association values from 0 to 1.
[0056] The historical window consists of the most recent completed control cycle before the current control cycle and is updated on a rolling basis with the control cycle. Based on the historical window, the maximum, minimum, mean, and standard deviation of continuous fields, the reference time offset and correlation coefficient between adjacent closed-loop state nodes, and the proportion of homologous data in the evidence lineage are statistically analyzed. The above statistical results are used to determine data normalization, time delay sensitivity coefficient, direction transmission coefficient, evidence homologous coupling coefficient, and backflow risk threshold, respectively. The actual execution feedback that has not yet been formed in the current control cycle is not written into the historical statistical window of the current control cycle.
[0057] The expert knowledge base is specifically a rule base for building equipment control. Each rule in the rule base is associated with at least the applicable equipment or area, rule triggering conditions, constraint objects, constraint boundaries, rule priority, rule credibility, rule source, and rule version. The equipment operation rules include equipment start-stop safety constraints, indoor comfort upper and lower limits, and equipment operation state machine. Among them, equipment start-stop safety constraints limit the safe conditions under which building equipment can be started, stopped, and switched between operations; indoor comfort upper and lower limits limit the allowable range of temperature, humidity, or air quality in the corresponding area; and equipment operation state machine limits the allowed state transition relationships between the equipment in the stopped state, started state, stable operation state, and restricted operation state.
[0058] The state input of the knowledge-guided deep reinforcement learning strategy consists of the building state vector, the digital twin model prediction response, the digital twin prediction residual, the equipment operation rule activation state, the equipment constraint margin, and the actual control execution state of the previous control cycle; the action corresponds to the building equipment control variables and their adjustment amounts that are allowed to be adjusted in the current control cycle, including at least one of the following: fan frequency adjustment amount, chilled water supply temperature adjustment amount, and fresh air valve opening adjustment amount.
[0059] The immediate reward for a knowledge-guided deep reinforcement learning strategy is denoted as:
[0060]
[0061] in, Normalized energy consumption This is the deviation in indoor comfort level. This refers to the constraint deviation of equipment operation. To track the deviation of the actuator, and These are the reward weights for the corresponding objectives; the reward weights are determined based on the safety control priority, comfort control priority, energy-saving control priority, and historical control effects in the equipment operation rule base.
[0062] The constraints of the knowledge-guided deep reinforcement learning strategy are jointly formed by equipment start-up and shutdown safety constraints, upper and lower limits of indoor comfort, equipment operating state machine, and dynamic safe feasible domain. Equipment operation rules participate in the knowledge-guided deep reinforcement learning strategy through at least one of the following methods: state feature input, action feasibility restrictions, reward constraints, and safety projection of the final control variable. The equipment start-up and shutdown safety constraints and the prohibited state transition relationships in the equipment operating state machine are hard constraints that are not relaxed due to online policy updates or changes in rule credibility.
[0063] S2, based on closed-loop analysis, identify the error closed-loop propagation link and calculate the cross-model error closed-loop gain according to the error closed-loop propagation link; when the cross-model error closed-loop gain meets the preset closed-loop backflow risk condition, it is determined that there is a cross-model error backflow risk in the current control cycle.
[0064] Based on closed-loop analysis, the closed-loop causal propagation graph and cross-model closed-loop state sequence are jointly analyzed. In the cross-model closed-loop state sequence, the following are extracted: digital twin prediction residual, rule confidence change, candidate control variable weight change, learning strategy update change, final control execution state, actuator response deviation, real building response deviation, and twin model parameter calibration. According to the causal direction, temporal relationship, and evidence lineage among the nodes in the closed-loop causal propagation graph, the error closed-loop propagation link is identified, which is transmitted from the digital twin prediction residual to the rule confidence change, candidate control variable weight change, and learning strategy update change, and then flows back to the twin model parameter calibration through the final control execution state, actuator response deviation, and real building response deviation.
[0065] For example, during the cooling source adjustment process of an office building, the digital twin model underestimated the instantaneous cooling load of the meeting area. The expert knowledge base improved the credibility of the corresponding energy-saving rules, and the knowledge-guided deep reinforcement learning strategy increased the weight of the candidate control quantity to reduce the fan frequency. After actual execution, the indoor temperature was too high and the actuator response was deviated. This deviation then participated in the update of the twin model parameter calibration, thus forming a closed-loop return path.
[0066] Based on the error closed-loop propagation link, time delay alignment, directional contribution analysis, evidence homology analysis, and response amplification analysis are performed on adjacent nodes. The calculation input for the cross-model error closed-loop gain includes the cross-model closed-loop state sequence, evidence lineage matrix, closed-loop causal propagation map, and the error closed-loop propagation link identified by the closed-loop causal propagation map. The calculation output is the cross-model error closed-loop gain corresponding to the current control cycle. The cross-model error closed-loop gain is a scalar used to reflect the comprehensive transmission and amplification degree of the error backflow link formed between the digital twin model parameter calibration path, the equipment operation rule base rule credibility update path, the knowledge-guided deep reinforcement learning strategy update path, and the actual control feedback path within the current control cycle.
[0067] The time delay sensitivity coefficient is determined according to the time offset between adjacent nodes, the directional transmission coefficient is determined according to the contribution intensity of the error along the propagation direction of the closed-loop causal propagation map, the evidence homogeneity coupling coefficient is determined according to the proportion of homogeneous data in the evidence lineage matrix, the response amplification coefficient is determined according to the increase of the actual building response deviation relative to the digital twin prediction residual, and the cross-model error closed-loop gain is calculated based on the time delay sensitivity coefficient, directional transmission coefficient, evidence homogeneity coupling coefficient and response amplification coefficient.
[0068] In this embodiment, the current control cycle is denoted as The historical window is recorded as , It consists of completed control cycles preceding the current control cycle; the data in the error closed-loop propagation chain that belongs to the execution feedback and model calibration records, including the actual control execution status, actuator response deviation, real building response deviation, and twin model parameter calibration values, are all taken from the historical window. The system includes execution feedback records and model calibration records for the corresponding control cycle. If no execution feedback has been generated in the current control cycle, the data from the pending execution feedback will not be used for candidate control variable correction.
[0069] The error closed-loop propagation link closes sequentially according to the following parameters: digital twin prediction residual, rule confidence change, control weight change in candidate control quantity correction, learning strategy update change, actual control execution state, actuator response deviation, real building response deviation, and twin model parameter calibration. The link nodes are denoted as... to , The number of link nodes, and .
[0070] All observed variables and error magnitudes are based on historical windows. Perform max-min normalization, adding a positive number to the denominator during normalization. To avoid zero values; the normalized nodal observation variables are denoted as... .
[0071] For adjacent nodes and The time delay sensitivity coefficient is denoted as
[0072]
[0073] in, For nodes Change to node Time offset between responses A window to history Reference time offset of adjacent nodes within the node, This is a time-scale parameter.
[0074] Directional transfer coefficient is denoted as
[0075]
[0076] in, A window to history The correlation coefficient within.
[0077] The evidence homogeneity coupling coefficient is denoted as
[0078]
[0079] in, For nodes The associated data source set is derived from the evidence lineage matrix.
[0080] The response amplification factor is denoted as
[0081]
[0082] in, For nodes The corresponding normalized error magnitude, To respond to the amplification limit. By node The corresponding prediction residual, update change, response bias, or calibration value is taken as the amplitude and passed through the historical window. The result was obtained after normalization.
[0083] Cross-model error closed-loop gain is denoted as
[0084]
[0085] Reflux risk threshold Based on the most recent control cycle The mean of the cross-model error closed-loop gain in each completed control cycle and Determined by multiple standard deviations, This represents the risk sensitivity coefficient. This refers to the path indicator; when the error closed-loop propagation link includes a path from the actual building response deviation back to the twin model parameter calibration value. ,otherwise .
[0086] When the cross-model error closed-loop gain of the current control cycle is greater than the backflow risk threshold of the current control cycle, and the cross-model error closed-loop gain of the previous control cycle is greater than the backflow risk threshold of the previous control cycle, and At that time, it is determined that there is a risk of cross-model error backflow in the current control cycle. Time scale parameter Response Amplification Limit Risk sensitivity coefficient Historical window length and positive numbers It is determined based on the rated boundaries of building equipment, building automation system operation records, operation and maintenance rule base, and historical window statistics.
[0087] S3, when it is determined that there is a risk of cross-model error backflow in the current control cycle, a first counterfactual control branch and a second counterfactual control branch are constructed, and the counterfactual branch divergence rate, the first branch replay consistency and the second branch replay consistency are determined based on the first counterfactual control branch and the second counterfactual control branch.
[0088] Given that the current control cycle is determined to have the risk of cross-model error backflow, the first counterfactual control branch and the second counterfactual control branch are constructed based on the digital twin prediction residual, rule credibility change, candidate control quantity weight change, learning strategy update change, final control execution state, actuator response deviation and real building response deviation recorded in the closed-loop analysis.
[0089] The first counterfactual control branch maintains the original output relationship of the current knowledge-guided deep reinforcement learning strategy to the candidate control variables. The second counterfactual control branch isolates or weakens update paths that are highly affected by error backflow. For example, when the load of a large office building increases rapidly at noon, the first counterfactual control branch uses the fan frequency reduction and chilled water supply temperature increase in the original candidate control variables. The second counterfactual control branch restricts the weight changes of candidate control variables caused by changes in rule credibility. Multi-time domain extrapolation is performed for the same candidate control variable at 15 minutes, 30 minutes, and 60 minutes to obtain the first multi-objective response tensor and the second multi-objective response tensor, respectively. Both the first and second multi-objective response tensors include future energy consumption response, indoor comfort response, equipment physical constraint margin, multi-region coupling response, actuator tracking response, and control variable feasibility risk.
[0090] The response components with different dimensions in the first and second multi-objective response tensors are normalized according to the historical window statistical boundaries. The normalized first and second multi-objective response tensors are denoted as follows: and The counterfactual branch divergence rate is denoted as:
[0091]
[0092] Where H represents the number of time domains used in the multi-time domain simulation, and Q represents the number of dimensions of the multi-objective response. Let h be the time-domain weight corresponding to the h-th time-domain derivation. Let be the target weight corresponding to the q-th multi-objective response dimension. The sum of all time-domain weights is 1, and the sum of all target weights is 1. The target weights are determined based on the priorities of equipment safety, indoor comfort, and energy-saving control in the equipment operation rule base. The time-domain weights are determined based on the time distance between each extrapolation time domain and the current control cycle. The larger the counterfactual branch divergence rate, the more significant the difference in future building responses between the first and second counterfactual control branches.
[0093] The historical reference threshold for the counterfactual branch divergence rate is determined based on the mean and standard deviation of the counterfactual branch divergence rate within the historical window prior to the current control cycle. It is used to distinguish between normal branch differences and abnormally increased branch differences when updating path attribution, and does not form a new control branch trigger condition on its own.
[0094] Based on the differences between the first and second multi-objective response tensors in various time domains, the counterfactual branch divergence rate is calculated. The differences include the magnitude of energy consumption changes, the degree of comfort deviation, the degree of shrinkage of equipment physical constraint margins, multi-region temperature coupling disturbances, actuator tracking lag, and the degree of increase in control feasibility risk. At the same time, historical building operation data from completed control cycles are selected, and the first and second counterfactual control branches are respectively substituted into the replay simulation process. The consistency of the obtained replay simulation results is compared with the corresponding real building response deviation to determine the consistency of the first branch replay and the second branch replay.
[0095] The consistency of the first branch replay and the consistency of the second branch replay are both determined based on historical windows where control execution was completed and actual building responses were obtained before the current control cycle. For the b-th counterfactual control branch, the corresponding historical replay error is denoted as:
[0096]
[0097] in, , This is the historical window corresponding to the current control cycle. For the b-th counterfactual control branch on the historical control cycle The q-th normalized response obtained by replaying the simulation. To correspond to the actual normalized response of buildings during historical control periods, The weights are the weights for the historical control cycles, and the sum of the weights for the historical control cycles is 1.
[0098] The branch replay consistency corresponding to the b-th counterfactual control branch is denoted as:
[0099]
[0100] The value of branch replay consistency ranges from 0 to 1, with a larger value indicating greater consistency between the historical replay projection results of the corresponding counterfactual control branch and the actual building response; the first counterfactual control branch corresponds to... The second counterfactual control branch corresponds to .
[0101] The historical reference lower limit for branch playback consistency is determined based on the mean and standard deviation of branch playback consistency within the historical window prior to the current control cycle. It is used to identify playback results that are significantly lower than the historical stable level when updating path attribution, without adding new building control state switching conditions separately.
[0102] For example, if the first counterfactual control branch consistently underestimates the temperature rise in the meeting area during historical replay, while the second counterfactual control branch deviates more closely from the actual building response, it indicates that the second counterfactual control branch provides a more stable characterization of the error backflow effect. The resulting counterfactual branch divergence rate, the consistency of the first branch replay, and the consistency of the second branch replay serve as the basis for the current control cycle's pollution attribution and dynamic update of the amplitude limit vector generation.
[0103] S4. Based on the cross-model error closed-loop gain, counterfactual branch divergence rate, first branch playback consistency, second branch playback consistency, and closed-loop analysis basis, determine the update path attribution coefficient and generate the dynamic update limit vector for the current control cycle.
[0104] The cross-model error closed-loop gain, counterfactual branch divergence rate, first branch replay consistency, second branch replay consistency, and closed-loop analysis basis within the current control cycle are read. The pollution contribution of the digital twin model parameter calibration path, the expert knowledge base rule credibility update path, and the knowledge-guided deep reinforcement learning strategy update path are calculated respectively. Among them, the gain part related to the backflow of twin model parameter calibration in the cross-model error closed-loop gain, the connection strength of the real building response deviation to the twin model parameter calibration in the closed-loop causal propagation map, and the proportion of homologous evidence repeatedly participating in calibration in the evidence lineage matrix are all included in the calculation of the model calibration attribution coefficient.
[0105] The correlation between the change in rule credibility and the counterfactual branch divergence rate, and the degree of control deviation before and after the rule credibility update in the expert knowledge base are included in the calculation of the rule credibility attribution coefficient; the change in learning strategy update, the change in candidate control weight, and the difference between the consistency of the first branch replay and the consistency of the second branch replay are included in the calculation of the strategy update attribution coefficient.
[0106] For the digital twin model parameter calibration path, the device operation rule base rule credibility update path, and the knowledge-guided deep reinforcement learning strategy update path, the differences in update amounts generated by the corresponding update paths under the error backflow path retention state and the error backflow path shielding state are compared respectively. The path influence is determined by combining the connection strength of the corresponding paths in the closed-loop causal propagation graph and the counterfactual branch analysis results. For any update path p, the corresponding update path attribution coefficient is denoted as:
[0107]
[0108] in, This is a set of paths consisting of a digital twin model parameter calibration path, a device operation rule base rule credibility update path, and a knowledge-guided deep reinforcement learning strategy update path. To update the normalized path influence corresponding to path p, r is the path index in the path set. To prevent positive numbers with a denominator of zero; the model calibration attribution coefficient corresponding to the digital twin model parameter calibration path, the rule credibility attribution coefficient corresponding to the equipment operation rule base rule credibility update path, and the strategy update attribution coefficient corresponding to the knowledge-guided deep reinforcement learning strategy update path.
[0109] For example, during the control period of declining evening customer traffic in a commercial complex, if the digital twin prediction residual is continuously amplified after being fed back from the actual building response deviation, and the same temperature sensor data is used for both twin model parameter calibration and rule credibility update, then the contamination ratio of the model calibration attribution coefficient and the rule credibility attribution coefficient will increase.
[0110] The dynamic update limit vector for the current control cycle is generated based on the model calibration attribution coefficient, the rule-based confidence attribution coefficient, and the policy update attribution coefficient. The dynamic update limit vector is denoted as:
[0111]
[0112] in, To calibrate the limiting amount for the parameters of the digital twin model, Limit the update range for the credibility of rules in the device operation rule base. Update the limit for knowledge-guided deep reinforcement learning strategies. This is the limit on the change in the control weight during the revision of candidate control quantities. Adjust the limiting value for candidate control variables; when each limiting value is a scalar, all elements of the corresponding updated variable share the same limiting boundary; when it is a vector, the dimension is consistent with the corresponding updated variable.
[0113] The calibration limit for digital twin model parameters is denoted as:
[0114]
[0115] in, To calibrate the attribution coefficients for the model, The upper limit of the allowable parameter calibration range for the digital twin model.
[0116] The limit for updating the reliability of rules in the equipment operation rule base is denoted as:
[0117]
[0118] in, The credible attribution coefficient for the rule. This represents the upper limit of the allowable variation in rule credibility in the device's operational rule base.
[0119] The limit for updating knowledge-guided deep reinforcement learning strategies is denoted as:
[0120]
[0121] in, Update the attribution coefficients for the strategy. The upper limit of the allowed policy update magnitude for knowledge-guided deep reinforcement learning strategies.
[0122] The limit of the change in the control weight in the candidate control quantity adjustment is denoted as:
[0123]
[0124] in, This refers to the maximum allowable variation in the weighting.
[0125] The candidate control quantity correction limit is denoted as:
[0126]
[0127] in, This represents the cross-model error closed-loop gain for the current control cycle. The backflow risk threshold for the current control cycle. For counterfactual branch divergence rate, This represents the maximum allowable correction range for the candidate control value. To prevent positive numbers with a denominator of zero.
[0128] The upper limits of the calibration range of digital twin model parameters, the upper limits of the change range of rule credibility in the equipment operation rule base, the upper limits of the update range of knowledge-guided deep reinforcement learning strategy, the upper limits of the change range of control weight, and the upper limits of the correction range of candidate control quantities are determined based on the rated adjustment boundary of building equipment, the rule change boundary in the equipment operation rule base, the update step size boundary of knowledge-guided deep reinforcement learning strategy, the range of change of control weight in historical stable control cycle, and the allowable change boundary of building equipment control variables, respectively.
[0129] In path-specific amplitude limiting control, the calibration values of the digital twin model parameters, the changes in the credibility of the equipment operation rule base rules, the changes in the knowledge-guided deep reinforcement learning strategy updates, the changes in the control weights, and the correction values of the candidate control quantities are mapped to the corresponding amplitude limiting values in the dynamically updated amplitude limiting vector, and amplitude limiting is performed element-wise. For any update path p, the amplitude-limited update value is denoted as:
[0130]
[0131] in, To update the candidate update quantity corresponding to path p, The limiting boundary corresponding to the update path p in the limiting vector is dynamically updated; when the candidate update amount is lower than the corresponding negative limiting boundary, the negative limiting boundary is taken; when it is higher than the corresponding positive limiting boundary, the positive limiting boundary is taken; when it is between the positive and negative limiting boundaries, the candidate update amount remains unchanged.
[0132] S5, based on the dynamically updated amplitude limit vector and the updated path attribution coefficient, performs path-specific amplitude control on the digital twin model, expert knowledge base and knowledge-guided deep reinforcement learning strategy, and adaptively corrects the candidate control quantity based on the path-specific amplitude control results, projects the corrected candidate control quantity into the dynamic safe and feasible domain, and obtains and executes the final building energy-saving control quantity.
[0133] Based on the dynamic update limit vector and update path attribution coefficient of the current control cycle, the closed-loop update process of the digital twin model, expert knowledge base and knowledge-guided deep reinforcement learning strategy is decoupled and controlled. Specifically, the parameter calibration range of the digital twin model is limited according to the model calibration attribution coefficient, the rule credibility update range of the expert knowledge base is limited according to the rule credibility attribution coefficient, the update range of the knowledge-guided deep reinforcement learning strategy is limited according to the strategy update attribution coefficient, and the change range of the control weights of the digital twin model, expert knowledge base and knowledge-guided deep reinforcement learning strategy when participating in the correction of candidate control quantities is constrained.
[0134] The calibration of digital twin model parameters uses the prediction residuals between the predicted response of the digital twin model and the corresponding real building response within a historical window as the calibration basis. For the digital twin model parameter vector... Model calibration loss is built based on historical windows:
[0135]
[0136] in, Historical control cycle The corresponding normalized real building response, The normalized predicted response corresponding to the digital twin model. The historical control cycle weights are used; the calibration amounts of candidate parameters are determined based on the model calibration loss, and then the calibration limiting amounts are performed according to the digital twin model parameters in the dynamically updated limiting vector before being written into the digital twin model. The parameters to be calibrated include model parameters related to building thermal response, load response, and actuator dynamic response, and the specific parameters are determined based on the building modeling structure used in the digital twin model.
[0137] The equipment operation rule base determines the candidate change in rule credibility based on the actual constraint satisfaction of triggered rules in historical control cycles, the consistency between the corresponding control results and the actual building response, and the results of counterfactual branch analysis. For the j-th updatable equipment operation rule, its updated rule credibility is denoted as:
[0138]
[0139] in, The reliability of the j-th equipment operation rule in the previous control cycle. This refers to the change in rule credibility after the rule credibility update limit. Equipment start-up and shutdown safety constraints, prohibited state transition relationships in the equipment running state machine, and other hard safety rules are not canceled or relaxed due to online rule credibility updates. Only the rule credibility and soft constraint priority that are allowed to be adjusted online are updated.
[0140] The knowledge-guided deep reinforcement learning strategy generates candidate update values for policy parameters based on state, action, immediate reward, and device operating rules, and then limits them according to the policy update limit value in the dynamic update limit vector. The limited policy parameter update value is denoted as:
[0141]
[0142] in, To update the policy parameters of a knowledge-guided deep reinforcement learning strategy, the number of candidate updates is obtained from the current training batch or historical window data. The policy update limit boundary is used to update the knowledge-guided deep reinforcement learning policy. The updated policy parameters after the limit are used to update the policy and continue to be subject to the joint constraints of device start-up and shutdown safety, indoor comfort upper and lower limits, device operating state machine and dynamic safety feasible domain.
[0143] For example, during the summer afternoon control cycle in an office building, if the dynamically updated amplitude limit vector shows that the pollution proportion of the digital twin model parameter calibration path is relatively high, and the change in the weight of the candidate control quantity contributes significantly to the indoor comfort response deviation, then the calibration amplitude of the cooling load-related parameters will be limited to a small range, the rule credibility update will be kept slowly adjusted, and the knowledge-guided deep reinforcement learning strategy will only be updated within a controlled step size to avoid the same error repeatedly flowing back and amplifying between the digital twin model, the expert knowledge base, and the knowledge-guided deep reinforcement learning strategy.
[0144] Based on the results of the path limiting control, the candidate control quantities are adaptively corrected. The correction range of candidate control quantities such as fan frequency adjustment, chilled water supply temperature adjustment, and fresh air valve opening adjustment is limited to the range given by the dynamically updated limiting vector. A dynamic safe and feasible domain is established by combining the equipment physical constraint margin, indoor comfort constraint, multi-area coupling response, actuator tracking capability, and control quantity feasibility risk.
[0145] The candidate control quantity correction is denoted as , It is obtained by fusing the correction amount of the digital twin model, the correction amount of the expert knowledge base, and the correction amount of the knowledge-guided deep reinforcement learning strategy.
[0146] The candidate control quantity correction is denoted as
[0147]
[0148] in, This refers to the control quantity correction given by the digital twin model based on the predicted response deviation. This refers to the adjustment amount of the control quantity given by the expert knowledge base based on changes in rule credibility, equipment boundaries, and comfort boundaries. For knowledge-guided deep reinforcement learning strategies, the control quantity and correction quantity are given based on the policy update change quantity; and These are the regulatory weights corresponding to the digital twin model, the expert knowledge base, and the knowledge-guided deep reinforcement learning strategy, respectively.
[0149] The control weight is denoted as
[0150]
[0151] in, , Corresponding digital twin model, Corresponding expert knowledge base, Corresponding knowledge guides deep reinforcement learning strategies. and All The elements in The first in the previous control cycle The adjustment weight of the correction quantity For the first path limiting control The limited adjustment weight change of the class of corrections To prevent positive numbers with a denominator of zero.
[0152] Corrected candidate control quantity Candidate control outputs of knowledge-guided deep reinforcement learning strategies The candidate control quantity correction after being superimposed with the dynamically updated amplitude limiting vector. The result is obtained and then processed in the dynamic safe feasible domain projection process.
[0153] When the corrected candidate control quantity exceeds the boundary of the dynamic safe feasible domain, it is recycled according to the projection method of the nearest safe boundary. For example, the excessive increase in chilled water supply temperature is pushed back to the allowable range, the decrease in fan frequency is adjusted to the range that the actuator can track, and the change in the opening degree of fresh air valve is limited to the range that meets air quality constraints. The building energy-saving control quantity that meets the energy-saving target, comfort requirements and equipment operation constraints is obtained and sent to the corresponding building equipment for execution.
[0154] Example 2: Refer to Figure 6 A building energy-saving control system based on digital twins and knowledge-guided deep reinforcement learning includes:
[0155] The data acquisition module is used to acquire building operation data and candidate control variables output by the knowledge-guided deep reinforcement learning strategy in the current control cycle, and to establish a closed-loop analysis basis based on the building operation data. Within the current control cycle, building operation data is acquired, including information such as building equipment operating status, environmental status parameters, energy consumption status, and control execution-related data. Simultaneously, candidate control variables output by the knowledge-guided deep reinforcement learning strategy are acquired, and the operating status information within the current cycle is correlated with the candidate control variables to form a closed-loop analysis basis. This provides a data foundation for subsequent error closed-loop propagation link identification, cross-model error closed-loop gain calculation, and control variable optimization.
[0156] The link risk module is used to identify error closed-loop propagation links based on closed-loop analysis, calculate cross-model error closed-loop gain, and determine the existence of cross-model error backflow risk in the current control cycle when preset closed-loop backflow risk conditions are met. It analyzes the data interaction process between the digital twin model, expert knowledge base, and knowledge-guided deep reinforcement learning strategy. Based on closed-loop analysis, it identifies the error propagation relationships formed between different model update processes, control strategy adjustment processes, and actual building response processes, obtaining the error closed-loop propagation links. It calculates the cross-model error closed-loop gain based on the error propagation characteristics in the error closed-loop propagation links, and determines whether cross-model error backflow risk exists in the current control cycle based on the relationship between the cross-model error closed-loop gain and the preset closed-loop backflow risk conditions, providing a risk judgment basis for subsequent counterfactual control branch construction.
[0157] The branch extrapolation module is used to construct a first counterfactual control branch and a second counterfactual control branch based on the risk of cross-model error backflow, and to perform multi-time-domain extrapolation on candidate control variables to obtain a first multi-objective response tensor and a second multi-objective response tensor. The first and second counterfactual control branches are constructed based on the risk of cross-model error backflow, and the two counterfactual control branches correspond to the state change process under different control evolution conditions, respectively. Multi-time-domain extrapolation is performed on candidate control variables to obtain a first multi-objective response tensor and a second multi-objective response tensor. The first and second multi-objective response tensors contain information on building operation status, energy response, and constraint changes under different control paths, providing a data foundation for calculating the counterfactual branch divergence rate.
[0158] The divergence replay module calculates the counterfactual branch divergence rate based on the difference between the first and second multi-objective response tensors, and determines the consistency of the first and second branch replays based on the consistency between the replay simulation results and the actual building response deviations. It performs difference analysis and historical consistency evaluation on the simulation results of the first and second counterfactual control branches. The counterfactual branch divergence rate, calculated based on the difference between the first and second multi-objective response tensors, reflects the degree of response deviation of different control branches during future operation. Simultaneously, by combining the consistency between the replay simulation results of the first and second counterfactual control branches and the actual building response deviations, the consistency of the first and second branch replays is determined, providing an evaluation basis for calculating the updated path attribution coefficient.
[0159] The attribution budget module is used to determine the update path attribution coefficients and generate a dynamic update limit vector based on cross-model error closed-loop gain, counterfactual branch divergence rate, first branch replay consistency, second branch replay consistency, and closed-loop analysis. It analyzes and quantifies the sources of cross-model error backflow risk. Combining cross-model error closed-loop gain, counterfactual branch divergence rate, first branch replay consistency, second branch replay consistency, and closed-loop analysis, it performs attribution analysis on the impact of error backflow in digital twin model parameter calibration paths, expert knowledge base rule credibility update paths, and knowledge-guided deep reinforcement learning strategy update paths. It determines the update path attribution coefficients and generates a dynamic update limit vector based on these coefficients, providing a basis for controlling the adjustment range of different update paths.
[0160] The decoupling constraint module performs path-specific amplitude limiting control based on dynamically updated amplitude limiting vectors and path attribution coefficients. This limits the parameter calibration amplitude of the digital twin model, the rule credibility update amplitude of the expert knowledge base, and the update amplitude of the knowledge-guided deep reinforcement learning strategy. It also adjusts the closed-loop update relationship between the digital twin model, the expert knowledge base, and the knowledge-guided deep reinforcement learning strategy based on the dynamically updated amplitude limiting vectors and path attribution coefficients. By limiting the parameter calibration amplitude of the digital twin model, the rule credibility update amplitude of the expert knowledge base, and the update amplitude of the knowledge-guided deep reinforcement learning strategy according to the dynamically updated amplitude limiting vector, it also constrains the magnitude of changes in the control weights of the digital twin model, the expert knowledge base, and the knowledge-guided deep reinforcement learning strategy during the candidate control variable correction process, reducing the impact of cross-model error closed-loop contamination on the control process.
[0161] The correction execution module is used to limit the change range of the control weight and the correction range of the candidate control quantity in the correction of the candidate control quantity based on the results of the path-limiting control. It adaptively corrects the candidate control quantity and projects it into the dynamic safe and feasible region, executing the final building energy-saving control quantity. Based on the results of the path-limiting control, the candidate control quantity is adaptively corrected. According to the constraints determined during the path-limiting control process, the change range of the control weight and the correction range of the candidate control quantity are adjusted. While satisfying the building operation constraints, the corrected candidate control quantity is projected into the dynamic safe and feasible region to form the final building energy-saving control quantity, completing the corresponding control execution process and achieving closed-loop optimization in the building energy-saving control process.
[0162] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A building energy-saving control method based on digital twins and knowledge-guided deep reinforcement learning, characterized in that, include: S1, in the current control cycle, acquire building operation data and candidate control quantities output by knowledge-guided deep reinforcement learning strategies, and establish a closed-loop analysis foundation based on building operation data, including building status information, evidence lineage information, cross-model closed-loop status information, and closed-loop causal propagation information. S2, based on closed-loop analysis, identifies the error closed-loop propagation link formed between the digital twin model, expert knowledge base, knowledge-guided deep reinforcement learning strategy, and actual control feedback, and determines the cross-model error closed-loop gain according to the degree of error transmission and amplification in the error closed-loop propagation link; when the cross-model error closed-loop gain of the current control cycle and the previous control cycle both exceed the corresponding backflow risk threshold, and the error closed-loop propagation link includes a path for the real building response deviation to flow back to the digital twin model parameter calibration, it is determined that there is a cross-model error backflow risk in the current control cycle; S3, when it is determined that there is a risk of cross-model error backflow in the current control cycle, a first counterfactual control branch and a second counterfactual control branch are constructed. The first counterfactual control branch maintains the original output relationship of the knowledge-guided deep reinforcement learning strategy to the candidate control quantity, and the second counterfactual control branch isolates or weakens the update path that is highly affected by error backflow. The counterfactual branch divergence rate, the first branch replay consistency, and the second branch replay consistency are determined based on the first counterfactual control branch and the second counterfactual control branch. S4. Based on the cross-model error closed-loop gain, counterfactual branch divergence rate, first branch replay consistency, second branch replay consistency, and closed-loop analysis basis, determine the update path attribution coefficient, which characterizes the degree of influence of different update paths on error backflow, and generate a dynamic update limiting vector to limit the update amplitude of different update paths based on the update path attribution coefficient. S5, based on the dynamically updated limiting vector and the updated path attribution coefficient, performs path-specific limiting control on the digital twin model, expert knowledge base, and knowledge-guided deep reinforcement learning strategy, and adaptively corrects the candidate control quantity based on the path-specific limiting control results. The corrected candidate control quantity is then projected into the dynamic safe and feasible domain formed by building equipment operation constraints, indoor comfort constraints, and control execution constraints to obtain and execute the final building energy-saving control quantity.
2. The building energy-saving control method based on digital twins and knowledge-guided deep reinforcement learning according to claim 1, characterized in that, The foundation of closed-loop analysis includes building status information, evidence lineage information, cross-model closed-loop status information, and closed-loop causal propagation information; building status information corresponds to building status vectors, evidence lineage information corresponds to evidence lineage matrix, cross-model closed-loop status information corresponds to cross-model closed-loop state sequence, and closed-loop causal propagation information corresponds to closed-loop causal propagation map.
3. The building energy-saving control method based on digital twins and knowledge-guided deep reinforcement learning according to claim 2, characterized in that, The cross-model error closed-loop gain is determined as follows: Based on the closed-loop causal propagation map, the error closed-loop propagation link is identified in the cross-model closed-loop state sequence; based on the error closed-loop propagation link, time delay alignment, directional contribution analysis, evidence homology analysis, and response amplification analysis are performed on adjacent nodes in the error closed-loop propagation link to obtain the time delay sensitivity coefficient, directional propagation coefficient, evidence homology coupling coefficient, and response amplification coefficient; the cross-model error closed-loop gain is calculated based on the time delay sensitivity coefficient, directional propagation coefficient, evidence homology coupling coefficient, and response amplification coefficient.
4. The building energy-saving control method based on digital twins and knowledge-guided deep reinforcement learning according to claim 3, characterized in that, The error closed-loop propagation chain includes a closed-loop return path formed by the digital twin prediction residual, rule confidence change, candidate control variable weight change, learning strategy update change, final control execution state, actuator response deviation, real building response deviation, and twin model parameter calibration in the cross-model closed-loop state sequence.
5. The building energy-saving control method based on digital twins and knowledge-guided deep reinforcement learning according to claim 1, characterized in that, Determining the counterfactual branch divergence rate includes: performing multi-time-domain extrapolation on candidate control variables using the first counterfactual control branch and the second counterfactual control branch respectively to obtain the first multi-objective response tensor and the second multi-objective response tensor; and calculating the counterfactual branch divergence rate based on the difference between the first multi-objective response tensor and the second multi-objective response tensor.
6. The building energy-saving control method based on digital twins and knowledge-guided deep reinforcement learning according to claim 5, characterized in that, Both the first and second multi-objective response tensors include future energy consumption response, indoor comfort response, equipment physical constraint margin, multi-region coupling response, actuator tracking response, and control quantity feasibility risk.
7. The building energy-saving control method based on digital twins and knowledge-guided deep reinforcement learning according to claim 6, characterized in that, Based on the consistency between the replay simulation results of the completed control cycle and the corresponding actual building response deviations of the first counterfactual control branch and the second counterfactual control branch, the replay consistency of the first branch and the replay consistency of the second branch are determined.
8. The building energy-saving control method based on digital twins and knowledge-guided deep reinforcement learning according to claim 7, characterized in that, The path attribution coefficients include model calibration attribution coefficients, rule reliability attribution coefficients, and policy update attribution coefficients; The model calibration attribution coefficient corresponds to the parameter calibration path of the digital twin model, the rule credibility attribution coefficient corresponds to the rule credibility update path of the expert knowledge base, and the policy update attribution coefficient corresponds to the policy update path of knowledge-guided deep reinforcement learning.
9. The building energy-saving control method based on digital twins and knowledge-guided deep reinforcement learning according to claim 8, characterized in that, Path-based amplitude limiting control includes limiting the parameter calibration amplitude of the digital twin model, the update amplitude of the rule credibility of the expert knowledge base, the update amplitude of the knowledge-guided deep reinforcement learning strategy, the amplitude of the change in the control weights of the digital twin model, the expert knowledge base, and the knowledge-guided deep reinforcement learning strategy in the correction of candidate control quantities, and the correction amplitude of the candidate control quantities.
10. A building energy-saving control system based on digital twins and knowledge-guided deep reinforcement learning, applied to the building energy-saving control method based on digital twins and knowledge-guided deep reinforcement learning as described in any one of claims 1-9, characterized in that, include: The data acquisition module is used to acquire building operation data and candidate control quantities output by knowledge-guided deep reinforcement learning strategies in the current control cycle, and to establish a closed-loop analysis basis based on the building operation data. The link risk module is used to identify error closed-loop propagation links based on closed-loop analysis, calculate cross-model error closed-loop gain, and determine that there is cross-model error backflow risk in the current control cycle when the preset closed-loop backflow risk conditions are met. The branch inference module is used to construct the first counterfactual control branch and the second counterfactual control branch based on the risk of cross-model error backflow, and to perform multi-time domain inference on the candidate control variables to obtain the first multi-objective response tensor and the second multi-objective response tensor. The divergence replay module is used to calculate the counterfactual branch divergence rate based on the difference between the first multi-objective response tensor and the second multi-objective response tensor, and to determine the consistency of the first branch replay and the consistency of the second branch replay based on the consistency between the replay simulation results and the actual building response deviation. The attribution budget module is used to determine the update path attribution coefficient and generate a dynamically updated amplitude limit vector based on the cross-model error closed-loop gain, counterfactual branch divergence rate, first branch replay consistency, second branch replay consistency, and closed-loop analysis basis. The decoupling constraint module is used to perform path-specific amplitude control based on the dynamically updated amplitude limit vector and the updated path attribution coefficient, thereby limiting the parameter calibration amplitude of the digital twin model, the rule credibility update amplitude of the expert knowledge base, and the update amplitude of the knowledge-guided deep reinforcement learning strategy. The correction execution module is used to limit the change range of the control weight and the correction range of the candidate control quantity in the correction of the candidate control quantity based on the result of the path limiting control, and adaptively corrects the candidate control quantity and projects it into the dynamic safe and feasible domain to execute the final building energy-saving control quantity.
