System state prediction

11347996 · 2022-05-31

Assignee

Inventors

Cpc classification

International classification

Abstract

A method which includes steps of providing a state space model of behaviour of a physical system, the model including covariances for state transition and measurement errors, providing a data based regression model for prediction of state variables of the physical system, observing a state vector comprising state variables of the physical system, determining a prediction vector of state variables based on the state vector, using the regression model, and combining information from the state space model with predictions from the regression model through a Bayesian filter, is provided.

Claims

1. A method for predicting a future state of a physical system, the method comprising: providing a state space model of behaviour of the physical system, the state space model including covariances for state transition and measurement errors; providing a data-based regression model for prediction of state variables of the physical system; observing a state vector comprising state variables of the physical system; determining a prediction vector of state variables based on the state vector, using the data-based regression model; combining an output of the state space model with an output of the data-based regression model through a Bayesian filter implemented with a Kalman filter to produce a joint state prediction, wherein the combining further includes replacing at least one state vector of the Kalman filter with the prediction vector determined using the data-based regression model; and outputting a signal to activate a countermeasure within the physical system to prevent a pending critical situation of the physical system.

2. The method according to claim 1, wherein the Bayesian filter is an Extended Kalman filter.

3. The method according to claim 1, wherein the data-based regression model comprises a trained Recurrent Neural Network.

4. The method according to claim 3, wherein the physical system is time continuous, the Recurrent Neural Network is interpolated between discrete time steps and the Bayesian filter comprises a Continuous Kalman Filter.

5. An apparatus comprising: an interface for observing a state vector comprising state variables in a physical system; a processing means, adapted to carry out the method according to claim 1.

6. The method according to claim 1, further comprising: outputting a signal that identifies a pending critical situation of the physical system.

7. The method according to claim 1, further comprising: protecting a motor of the physical system based on the future state of the physical system.

8. The method according to claim 1, further comprising: receiving measurements from one or more sensors of the physical system; providing a state variable forecast based on the measurements; determining that the state variable forecast indicates a pending critical situation of the physical system by comparing the state variable forecast to a predetermined threshold; and implementing a countermeasure within the technical system to prevent an occurrence of the pending critical situation.

9. The method according to claim 1, further comprising: splitting an available historical data of the physical system into a training data set and a validation data set; training the data-based regression model using the training data set; and applying the data-based regression model to the validation data set for predicting system outputs to given inputs.

10. The method according to claim 1, wherein the at least one state vector of the Kalman filter relates to a time step.

Description

BRIEF DESCRIPTION

(1) Some of the embodiments will be described in detail, with reference to the following figures, wherein like designations denote like members, wherein

(2) FIG. 1 shows schematically how a Kalman filter may be used for state prediction;

(3) FIG. 2 shows a schematic representation of a method for providing improved state information prediction;

(4) FIG. 3 shows an exemplary physical system and an exemplary apparatus for prediction of a state of the physical system; and

(5) FIG. 4 shows a depiction of a physical system that is represented by an exemplary asynchronous electric motor.

DETAILED DESCRIPTION

(6) Prediction of system state is traditionally performed using one of the following approaches:

(7) i) A mathematical model is derived from the physical system behaviour and numerically simulated forward in time, starting from a known initial state and using given future system inputs.

(8) ii) Measurements are collected from a real system and a data-based regression model is constructed that allows prediction of the system output given its inputs.

(9) Approach i) is susceptible to modelling errors, i.e. the model not describing the behaviour of the actual real-world system with sufficient accuracy. Deriving a model that covers all relevant behaviour of a real-world system with respect to the intended application can be a challenging problem. Calibration needs to be performed in order to adapt model parameters to match observed system behaviour as accurately as possible. But even then, any unmodeled dynamics in the system will substantially degrade long-term prediction performance of the model-driven approach.

(10) In Approach ii), machine learning techniques are used to train a data-driven model in order to learn the behaviour of the system from recorded measurements of system output for given control inputs. This approach does not suffer from errors due to unmodeled dynamics, but on the other hand can only predict behaviour that can be directly observed in real systems. Any part of the system state that is not observed through outputs cannot be targeted by data-driven methods without a model of how these states are connected to observable quantities. In addition, if the space of possible control inputs is not densely sampled in the recorded data, a data-driven approach will produce poor prediction results for control inputs that are far from the inputs covered by the recorded data. Also, the accuracy of data-driven prediction approaches inherently depends on the accuracy of measurements.

(11) The method described herein combines approaches i) and ii) to allow more accurate state predictions than would be possible by using either of the two approaches by themselves.

(12) Ingredients to the proposed method are the following:

(13) a) a state space description of the system behaviour including covariances for state-transition and measurement errors (or estimates thereof),

(14) b) a data-based regression model for predicting system outputs to given control inputs,

(15) c) a Bayesian filter method for combining information from the state space model with predictions from the regression model.

(16) The method makes use of these ingredients to predict system state over a time range in the future for which the control input is given. In the following, for clarity of exposition, the method is detailed using specific variants for a), b) and c). However, it is noted that the method is applicable in a much more general setting.

(17) In particular, for the detailed exposition we assume that The system under consideration is a time-discrete linear time-invariant (LTI) system, in which all random variables are normally distributed, For the Bayesian filter the well-known Kalman-filter method is applied, A recurrent neural network is trained using historic measurements to predict system outputs for given control inputs.

(18) State-space system model

(19) A time-discrete LTI system can be described by the equations:
x.sub.k=Ax.sub.k-1Bu.sub.k+w.sub.k
z.sub.k=Hx.sub.k+v.sub.k

(20) Here, x.sub.k denotes the system state at time step k, A is the state-transition matrix, B the control matrix, u.sub.k the input and w.sub.k the process noise at time step k. Likewise, in the output equation, z.sub.k are the measurements, H the output matrix and v.sub.k the measurement noise at time step k.

(21) We assume that the noise terms w.sub.k and v.sub.k are mean-free normally distributed random variables with covariance matrix Q.sub.k and R.sub.k respectively: v.sub.k˜N(0,Q.sub.k), w.sub.k˜N(0,R.sub.k).

(22) The problem of state prediction can now be stated as follows: Given an initial state x.sub.0 and known control inputs u.sub.j for j in {1, . . . K}, predict the system state x.sub.j for each j in {1, . . . K}.

(23) In addition to the state space model given above, it is assumed that large amounts of historic data from existing instances of the real-world system are available. This historic data consists of a large number M of sets of inputs {u.sub.j.sup.s}.sub.j=1.sup.K with corresponding measurements of outputs {z.sub.j.sup.s}.sub.j=1.sup.K:
{U.sup.s}.sub.s=1.sup.M, where U.sup.S=└{u.sub.j.sup.s}.sub.j=1.sup.K,{z.sub.j.sup.s}.sub.j=1.sup.K┘.
Kalman Filter

(24) FIG. 1 shows schematically a method 100 of using a Kalman-filter for state prediction. A present point in time is indicated as a broken line between times k and k+1. Times k, k−1 and lower are considered to lie in the past and times k+1, k+2 and higher in the future.

(25) The Kalman-filter method provides an estimator {circumflex over (x)}.sub.k|k for the system state at time k given measurements at time k. The algorithm consists of the following computational steps:
{circumflex over (x)}.sub.k|k-1=A{circumflex over (x)}.sub.k|k-1+Bu.sub.k  Predicted estimate:
P.sub.k|k-1=AP.sub.k-1|k-1A.sup.T+Q.sub.k-1  Predicted covariance:
{tilde over (y)}.sub.k=z.sub.k−H{circumflex over (x)}.sub.k|k-1  Measurement residual:
S.sub.k=HP.sub.k|k-1H.sup.T+R.sub.k  Residual covariance:
K.sub.k=P.sub.k|k-1H.sup.T+R.sub.k  Kalman gain matrix:
{circumflex over (x)}.sub.k|k={circumflex over (x)}.sub.k|k-1+K.sub.k{tilde over (y)}.sub.k  Corrected prediction:
P.sub.k|k=(I−K.sub.kH)P.sub.k|k-1  Corrected covariance:

(26) Given previous state and current measurements, the Kalman-filter is known to compute the optimal estimate of the current state and its covariance. The Kalman-filter can also be used for predicting future states if only the first two prediction steps are carried out in each time step. However, in this case there is no correction from measurements being applied, and this leads to a rapid increase of the covariance of predicted states, indicating that the uncertainty of predicted state values increases rapidly with increasing time step.

(27) A schematic representation of a method for system state prediction is shown in FIG. 2. As in FIG. 1, a broken line symbolically separates a past (above) from a future (below).

(28) Data-driven regression model for measurement prediction

(29) For the regression model, the available historic data {U.sup.s}.sub.s=1.sup.M is split into training {U.sup.s}.sub.s=1.sup.m and validation {U.sup.s}.sub.s=m+1.sup.M data sets. A Recurrent Neural Network RNN is trained on the training set and then applied for predicting system outputs z.sub.j to given inputs u.sub.j:
{z}.sub.j=1.sup.Kl=RNN({u.sub.j}.sub.j=1.sup.K)

(30) The trained Recurrent Neural Network RNN is then applied to the validation data set and the predicted validation output is compared to the measured validation outputs to create an empirical covariance matrix Q.sub.k for the expected error of the RNN prediction for each time step k.

(31) Combination

(32) Finally, the method suggested herein combines the state-space and data-driven models to produce a joint state prediction {x.sub.j}.sub.j=1.sup.K to a given control input {u.sub.j}.sub.j=1.sup.K and initial state x.sub.0: The control input is fed into the neural network model and produces predicted outputs outs {z.sub.j}.sub.j=1.sup.K and covariances {Q.sub.j}.sub.j=1.sup.K. The Kalman-filter algorithm is applied iteratively to the state estimates where in each time step, z.sub.k is replaced by z.sub.k and Q.sub.k by Q.sub.k.

(33) The computationally expensive task of training the Recurrent Neural Network (RNN) may be carried out offline in advance, while the state-prediction only uses a forward evaluation of the RNN and the Kalman-filter equations, which can be solved numerically with very low computational costs. Hence, in most cases the proposed state prediction method is expected to be calculated faster than real-time.

(34) FIG. 3 shows a flow chart of an exemplary method that may be based on the above described methods 100 and/or 200 of FIGS. 1 and 2, respectively. In a step 305, a state space model of behaviour of a physical system is provided, the model including covariances for state transition and measurement errors. In a step 310, a data-based regression model for prediction of state variables of the physical system is provided.

(35) The two models have different strengths and weaknesses (or limitations) as was discussed above. In a step 315, a state vector comprising state variables of the physical system is observed. Similarly, in a step 320, a prediction vector of state variables based on the state vector is determined using the regression model.

(36) Results of the two models are then combined in a step 325 by using a Bayesian filter. The method 300 may start over and loop over steps 315-325 for continuous operation.

(37) FIG. 4 shows a depiction 400 of a physical system 405 that is represented by an exemplary asynchronous electric motor, although embodiments of the present invention are not limited to electric machinery. The electric motor 405 may be a large drive motor for an elevator, a belt conveyor or a sewage pump, potentially with a maximum power in the range of up to 100 kW or more. The motor 405 comprises a stator 410 and a rotor 415. On the motor 405 there may be one or more sensors 420 to pick up conditions of motor 405, like a temperature in a predetermined position, a rotating speed, a provided torque or an electric current.

(38) Via an optional first interface 425 the measurements are made available to an apparatus 430 that is adapted to make a state variable forecast based on the received measurements. The apparatus 430 comprises processing means 435 which may comprise a programmable microcomputer or microcontroller. The processing means 435 is adapted to carry out a method for state variable prediction, especially according to method 300. Features or advantages of the method 300 may be applied to the system 405 or vice versa. Carrying out said method 300 may comprise execution of a computer program product with program code means. The determined forecast for one or more state variables may be provided via an optional second interface 440.

(39) The forecast may also be used for protection of motor 405. Should the forecast state indicate a pending critical situation of motor 405, say, an overheating about to take place, electrical power to the motor 405 may be temporarily reduced or cut. To determine a critical situation, a forecast state may be compared against a predetermined threshold. Other approaches comprise observation of the rising speed of a predicted state variable or a combination of several state variables fulfilling a predetermined condition. The condition may for instance be given in the form of a predetermined polynomial, the value of which may exceed a predetermined threshold upon a pending critical situation. The apparatus 430 may also be adapted to output a signal that hints at the pending critical situation or activate means to prevent the situation.

(40) Although the present invention has been disclosed in the form of preferred embodiments and variations thereon, it will be understood that numerous additional modifications and variations could be made thereto without departing from the scope of the invention.

(41) For the sake of clarity, it is to be understood that the use of “a” or “an” throughout this application does not exclude a plurality, and “comprising” does not exclude other steps or elements.