# US 2019/0316802 A1 · Building management system with system identification using multi-step ahead error prediction

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0316802 A1
- Document ID: US20190316802A1
- Status: Published application
- Kind: A1
- Application number: 15/953,324
- Filed: 2018-04-13
- Published: 2019-10-17
- Earliest claimed: 2018-04-13
- Assignees: Johnson Controls Technology Company
- Applicants: Johnson Controls Technology Company
- Inventors: Anas W. I. Alanqar; Matthew J. Ellis; Michael J. Wenzel; Juan Esteban Tapiero Bernal
- Web page: https://patentgrep.com/patent/US20190316802A1

## CPC

- F24F 11/64: using pre-stored data
- G05B 13/0265: {the criterion being a learning criterion}
- G05B 13/048: {using a predictor}
- G05B 2219/2614: HVAC, heating, ventillation, climate control
- F24F: AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING (removing dirt or fumes from areas where they are produced B08B15/00; vertical ducts for carrying away waste gases from buildings E04F17/02; tops for chimneys or ventilating shafts, terminals for flues F23L17/02)
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## Abstract

A building management system includes a controller configured to control building equipment by providing a control input to the building equipment for each of the plurality of time steps and generate a set of training data for a system model for the building. The training data includes input training data and output training data for each of the plurality of time steps. The controller is further configured to perform a system identification process to identify parameters of the system model. The system identification process includes predicting, for each time step, a predicted value for one or more of the output variables for each of a plurality of subsequent time steps, generating a prediction error function by comparing the output training data to the predicted values, and optimizing the prediction error function to determine values for the parameters of the system model that minimize the prediction error function.

## Claims

### Claim 1

A building management system comprising:
building equipment operable to heat or cool a building;
one or more sensors configured to measure a variable state of the building at each of a plurality of time steps; and
a controller configured to:
control the building equipment by providing a control input to the building equipment for each of the plurality of time steps; and
generate a set of training data for a system model for the building, the training data comprising input training data and output training data for each of the plurality of time steps, the input training data comprising values for one or more input variables of the system model including the control input provided to the building equipment, and the output training data comprising values for one or more output variables of the system model including a variable measured by the one or more sensors; and
perform a system identification process to identify one or more parameters of the system model, the system identification process comprising:
predicting, for each time step, a predicted value for one or more of the output variables for each of a plurality of subsequent time steps, wherein each predicted value is generated by applying the input training data for the time step to the system model;
generating a prediction error function by comparing the output training data to the predicted values of the one or more output variables; and
optimizing the prediction error function to determine values for the one or more parameters of the system model that minimize the prediction error function, the one or more parameters comprising at least one of one or more model parameters or one or more Kalman gain parameters; and
generate additional control inputs for the building equipment by performing a model predictive control process that uses the system model with the one or more parameters identified by the system identification process.

### Claim 2 (depends on 1)

The building management system of claim 1, wherein generating the prediction error function comprises:
generating an error term for each time step by:
determining, for each of the plurality of subsequent time steps, a difference between the predicted values of the one or more output variables for the subsequent time step and the output training data for the subsequent time step;
weighting the differences based on a weighting function to generate weighted differences; and
summing the weighted differences; and
summing the error terms for each of the time steps.

### Claim 3 (depends on 2)

The building management system of claim 2, wherein determining, for each of the plurality of subsequent time steps, the difference between the predicted values of the one or more output variables for the subsequent time step and the output training data for the subsequent time step comprises:
subtracting the predicted values of the one or more output variables for the subsequent time step from the output training data for the subsequent time step to generate a difference vector;
taking the 2-norm of the difference vector; and
squaring the 2-norm of the difference vector to generate the difference.

### Claim 4 (depends on 1)

The building management system of claim 1, wherein optimizing the prediction error function comprises minimizing the prediction error function over a set of allowable parameter values for the one or more parameters.

### Claim 5 (depends on 1)

The building management system of claim 1, wherein the controller is further configured to refine the set of training data by:
determining whether the operating capacity is in a non-transient region for a threshold amount of a time period upon determining that an error for the building zone exists for the time period;
in response to a determination that the operating capacity is in the non-transient region for at least the threshold amount of the time period, indicating the time period as a saturation period; and
removing data for the saturation period from the set of training data.

### Claim 6 (depends on 1)

The building management system of claim 1, wherein:
the system identification process comprises a first stage and a second stage;
the first stage comprises determining the one or more model parameters, the model parameters including at least one of thermal parameters or HVAC parameters; and
the second stage comprises augmenting the system model with an integrating disturbance and determining the one or more Kalman gain parameters.

### Claim 7 (depends on 1)

The building management of claim 1, wherein the control input is varied with an excitation signal to generate the set of training data.

### Claim 8

A method comprising:
operating building equipment to heat or cool a building;
measuring, by one or more sensors, a variable state of the building at each of a plurality of time steps;
controlling the building equipment by providing a control input to the building equipment for each of the plurality of time steps; and
generating a set of training data for a system model for the building, the training data comprising input training data and output training data for each of the plurality of time steps, the input training data comprising values for one or more input variables of the system model including the control input provided to the building equipment, and the output training data comprising values for one or more output variables of the system model including a variable measured by the one or more sensors; and
performing a system identification process to identify one or more parameters of the system mode, the system identification process comprising:
predicting, for each time step, a predicted value of one or more of the output variables for each of a plurality of subsequent time steps, wherein each predicted value is generated by applying the input training data for the time step to the system model;
generating a prediction error function by comparing the output training data to the predicted values of the one or more output variables; and
optimizing the prediction error function to determine values for the one or more parameters of the system model that minimize the prediction error function, the one or more parameters comprising at least one of one or more model parameters or one or more Kalman gain parameters; and
generating additional control inputs for the building equipment by performing a model predictive control process that uses the system model with the one or more parameters identified by the system identification process.

### Claim 9 (depends on 8)

The method of claim 8, wherein generating the prediction error function comprises:
generating an error term for each time step by:
determining, for each of the plurality of subsequent time steps, a difference between the predicted values of the one or more output variables for the subsequent time step and the output training data for the subsequent time step;
weighting the differences based on a weighting function to generate weighted differences; and
summing the weighted differences; and
summing the error terms for each of the time steps.

### Claim 10 (depends on 9)

The method of claim 9, wherein determining, for each of the plurality of subsequent time steps, the difference between the predicted values of the one or more output variables for the subsequent time step and the output training data for the subsequent time step comprises:
subtracting the predicted values of the one or more output variables for the subsequent time step from the output training data for the subsequent time step to generate a difference vector;
taking the 2-norm of the difference vector; and
squaring the 2-norm of the difference vector to generate the difference.

### Claim 11 (depends on 8)

The method of claim 8, wherein optimizing the prediction error function comprises minimizing the prediction error function over a set of allowable parameter values for one or more parameters.

### Claim 12 (depends on 8)

The method of claim 8, further comprising refining the set of training data by:
determining whether the operating capacity is in a non-transient region for a threshold amount of a time period upon determining that an error for the building zone exists for the time period;
in response to a determination that the operating capacity is in the non-transient region for at least the threshold amount of the time period, indicating the time period as a saturation period; and
removing data for the saturation period from the set of training data.

### Claim 13 (depends on 8)

The method of claim 8, wherein the control input is varied with an excitation signal to generate the set of training data.

### Claim 14 (depends on 8)

The method of claim 8, wherein:
the system identification process comprises a first stage and a second stage;
the first stage comprises determining the one or more model parameters, the model parameters including at least one of thermal parameters or HVAC parameters; and
the second stage comprises augmenting the system model with an integrating disturbance and determining the one or more Kalman gain parameters.

### Claim 15

A controller for building equipment, the controller comprising:
a model identifier configured to identify a model parameter or a Kalman gain parameter by minimizing a prediction error function VN(θ,ZN)=Σk=1N-hmax+1Σh=0hmaxw(h)∥y(k+h)−ŷ(k+h|k−1,θ)∥22;
wherein:
y(k+h) is an output of a building system at time step k+h, the output including an indoor air temperature;
ŷ(k+h|k−1, θ) is a model-predicted output at time step k+h based on input/output data up to time step k−1 and the model parameter or a Kalman gain parameter θ; and
w(h) is a weighting function.

### Claim 16 (depends on 15)

The controller of claim 15, wherein ZN is the input/output data for N time steps and hmax corresponds to a prediction horizon, the input/output data including the indoor air temperature and a temperature setpoint for each of the N time steps.

### Claim 17 (depends on 15)

The controller of claim 15, wherein minimizing the prediction error function comprises determining an identified model parameter or an identified Kalman gain parameter from a set of allowable values of the model parameter or a Kalman gain parameter θ that minimizes the prediction error function.

### Claim 18 (depends on 15)

The controller of claim 15, the model identifier further configured to generate a system model based on the identified model parameter or the identified Kalman gain parameter θ.

### Claim 19 (depends on 18)

The controller of claim 18, the controller further comprising a model predictive controller, the model predictive controller configured to receive the system model from the model identifier and generate control signals for building equipment based on the system model.

### Claim 20 (depends on 19)

The controller of claim 19, wherein the model predictive control circuit is configured to control the building equipment to maintain a building served by the building equipment within a desired temperature range.
