METHOD AND DEVICE FOR DETECTING ANOMALIES IN TECHNICAL SYSTEMS
20220011197 · 2022-01-13
Inventors
Cpc classification
G05B19/4155
PHYSICS
G01M99/005
PHYSICS
International classification
G01M99/00
PHYSICS
G05B19/4155
PHYSICS
Abstract
A computer-implemented method for detecting an anomaly in a technical system. The method includes detecting an environment state vector and a system state vector, the environment state vector including at least one first value which characterizes a physical environment condition or a physical operating condition of the technical system, and the system state vector including at least one second value which characterizes a physical condition of the technical system; ascertaining, using an environment anomaly model, an environment value which characterizes a probability or a probability density value with which the environment state vector occurs; ascertaining, using a system anomaly model, a system value which characterizes a conditional probability or a conditional probability density value with which the system state vector occurs if the environment state vector occurs; signaling the presence of an anomaly or signaling the absence of an anomaly based on the environment value and/or the system value.
Claims
1. A computer-implemented method for detecting an anomaly in a technical system, comprising the following steps: detecting an environment state vector and a system state vector, the environment state vector including at least one first value, the first value characterizing a physical environment condition or a physical operating condition of the technical system, and the system state vector including at least one second value, the second value characterizing a physical condition of the technical system; ascertaining an environment value using an environment anomaly model, the environment value characterizing a probability or a probability density value with which the environment state vector occurs; ascertaining a system value using a system anomaly model, the system value characterizing a conditional probability or a conditional probability density value with which the system state vector occurs when the environment state vector occurs; and signaling presence of an anomaly or signaling an absence of an anomaly, based on the environment value and/or the system value.
2. The method as recited in claim 1, wherein, in the signaling the anomaly step, the anomaly is exactly signaled when the environment value, with regard to a predefined first threshold value, characterizes an improbable environment state vector and/or the system value, with regard to a predefined second threshold value, characterizes an improbable system state vector.
3. The method as recited in claim 1, wherein the environment anomaly model is a normalizing flow model and/or the system anomaly model is a conditional normalizing flow model.
4. The method as recited in claim 2, wherein the environment anomaly model is retrained with the environment vector when the environment value, with regard to the predefined first threshold value, characterizes an improbable environment state vector and when the system value, with regard to the predefined second threshold value, characterizes a probable system state vector.
5. The method as recited in claim 1, wherein, when the anomaly is signaled, the operation of the technical system is at least temporarily stopped and/or maintenance of the technical system is requested and/or at least one component of the technical system is replaced.
6. An anomaly detection device including an environment anomaly model and a system anomaly model, the anomaly detection device configured to: detect an environment state vector and a system state vector, the environment state vector including at least one first value, the first value characterizing a physical environment condition or a physical operating condition of the technical system, and the system state vector including at least one second value, the second value characterizing a physical condition of the technical system; ascertain an environment value using the environment anomaly model, the environment value characterizing a probability or a probability density value with which the environment state vector occurs; ascertain a system value using the system anomaly model, the system value characterizing a conditional probability or a conditional probability density value with which the system state vector occurs when the environment state vector occurs; and signaling presence of an anomaly or signaling an absence of an anomaly, based on the environment value and/or the system value.
7. A method for training an anomaly detection device, comprising the following steps: ascertaining a plurality of environment state vectors and a plurality of respective corresponding system state vectors, each of the environment state vectors including at least one first value, the first value characterizing a physical environment condition or a physical operating condition of the technical system, and each of the respective corresponding system state vectors including at least one second value, the second value characterizing a physical condition of the technical system; training the environment anomaly model of the anomaly detection device based on the ascertained plurality of environment state vectors; and training the system anomaly model of the anomaly detection device based on the ascertained plurality of environment vectors and the respective corresponding system state vectors.
8. A training device configured to train an anomaly detection device, the training device configured to: ascertain a plurality of environment state vectors and a plurality of respective corresponding system state vectors, each of the environment state vectors including at least one first value, the first value characterizing a physical environment condition or a physical operating condition of the technical system, and each of the respective corresponding system state vectors including at least one second value, the second value characterizing a physical condition of the technical system; train the environment anomaly model of the anomaly detection device based on the ascertained plurality of environment state vectors; and train the system anomaly model of the anomaly detection device based on the ascertained plurality of environment vectors and the respective corresponding system state vectors.
9. A non-transitory machine-readable memory medium on which is stored a computer program for detecting an anomaly in a technical system, the computer program, when executed by a computer, causing the computer to perform the following steps: detecting an environment state vector and a system state vector, the environment state vector including at least one first value, the first value characterizing a physical environment condition or a physical operating condition of the technical system, and the system state vector including at least one second value, the second value characterizing a physical condition of the technical system; ascertaining an environment value using an environment anomaly model, the environment value characterizing a probability or a probability density value with which the environment state vector occurs; ascertaining a system value using a system anomaly model, the system value characterizing a conditional probability or a conditional probability density value with which the system state vector occurs when the environment state vector occurs; and signaling presence of an anomaly or signaling an absence of an anomaly, based on the environment value and/or the system value.
10. A non-transitory machine-readable memory medium on which is stored a computer program for training an anomaly detection device, the computer program, when executed by a computer, causing the computer to perform the following steps: ascertaining a plurality of environment state vectors and a plurality of respective corresponding system state vectors, each of the environment state vectors including at least one first value, the first value characterizing a physical environment condition or a physical operating condition of the technical system, and each of the respective corresponding system state vectors including at least one second value, the second value characterizing a physical condition of the technical system; training the environment anomaly model of the anomaly detection device based on the ascertained plurality of environment state vectors; and training the system anomaly model of the anomaly detection device based on the ascertained plurality of environment vectors and the respective corresponding system state vectors.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS
[0043]
[0044] Furthermore, environment state vector x.sub.U and system state vector x.sub.S are fed to a system anomaly model 73, which is designed to ascertain, for system state vector x.sub.S and as a function of environment state vector x.sub.U, a system value v.sub.S that characterizes a conditional probability or a conditional probability density value with which system state vector x.sub.S occurs. System anomaly model 73 is preferably a conditional normalizing flow model.
[0045] Environment value v.sub.U is compared in a first comparison unit 74 with an environment threshold value T.sub.U. If environment value v.sub.U falls below environment threshold value T.sub.U, the presence of an environment anomaly is reported to an evaluation unit 76. In further specific embodiments, it is possible that the presence of an environment anomaly is reported to evaluation unit 76 even if environment threshold value T.sub.U and environment value v.sub.U match.
[0046] System value v.sub.S is compared in a second comparison unit 75 with a system threshold value T.sub.S. If system value v.sub.S falls below environment threshold value T.sub.U, the presence of a system anomaly is reported to evaluation unit 76. In further specific embodiments, it is possible that the presence of a system anomaly is reported to evaluation unit 76 even if system threshold value T.sub.S and system value v.sub.S match.
[0047] Evaluation unit 76 then ascertains, based on the presence or absence of an environment anomaly and/or a system anomaly, an anomaly detection output y.sub.70 which characterizes the presence or the absence.
[0048]
[0049] Control system 40 receives the sequence of sensor signals S from sensors 30 in a receiving unit 50, which converts the sequence of sensor signals S into a sequence of input images x.sub.60 and a sequence of environment states and system states x.sub.70. Input image x.sub.60 may be, for example, a detail or a further processing of a sensor signal from a camera, which is contained in sensor signal S. Input image x.sub.60 includes individual frames of a video recording. In other words, input image x.sub.60 and operating states x.sub.70 are ascertained as a function of sensor signal S. The sequence of input images x.sub.60 is fed to an image classifier 60. Control system 40 also includes anomaly detector 70, to which the sequence of environment states and system states x.sub.70 is fed.
[0050] Image classifier 60 is preferably parameterized by first parameters Φ.sub.1, which are stored in a parameter memory P and are made available by the latter. Anomaly detector 70 is preferably parameterized by second parameters Φ.sub.2, which are likewise stored in the parameter memory and are made available by the latter.
[0051] From input images x.sub.60, image classifier 60 ascertains output variables y.sub.60 which characterize a classification of input images x.sub.60. From operating states x.sub.70, anomaly detector 70 ascertains an anomaly detection output y.sub.70 which characterizes whether or not an anomaly is present.
[0052] Output variables y.sub.60 and anomaly detection output y.sub.70 are fed to a forming unit 80, which from these ascertains activation signals A which are fed to actuator 10 in order to activate actuator 10 accordingly. An output variable y.sub.60 includes information about objects that may be seen on a corresponding input image x.sub.60.
[0053] Actuator 10 receives activation signals A, is activated accordingly, and carries out a corresponding action. Actuator 10 may in this case include activation logic (not necessarily structurally integrated), which from activation signal A ascertains a second activation signal, with which actuator 10 is then activated.
[0054] If an anomaly is present, activation signal A may be selected in such a way that the possible actions of actuator 10 are restricted. If no anomaly is present, it is possible that the possible actions are restricted not on the basis of an anomaly, but rather on the basis of environment 20 of control system 40 that has been ascertained by image classifier 60. It is also possible that, if an anomaly is present, at least some of sensor signals S are transmitted to a manufacturer or operator of control system 40.
[0055] In further specific embodiments of the present invention, control system 40 includes sensor 30. In yet further specific embodiments, control system 40 alternatively or additionally also includes actuator 10.
[0056] In further preferred specific embodiments, control system 40 includes one or multiple processors 45 and at least one machine-readable memory medium 46, on which instructions are stored which, when executed on processors 45, prompt control system 40 to carry out a method according to the present invention.
[0057] In alternative specific embodiments of the present invention, a display unit 10a is provided as an alternative or in addition to actuator 10.
[0058]
[0059] Sensors 30 may in this case include, for example, a video sensor, which is preferably situated in motor vehicle 100, as well as sensors for measuring the ambient temperature, sensors for measuring the light intensity, GPS sensors, sensors for measuring the fuel consumption, and/or sensors for measuring the engine speed.
[0060] Image classifier 60 is designed to identify objects from input images x.sub.60.
[0061] Actuator 10, which is preferably situated in motor vehicle 100, may be, for example, a brake, a drive or a steering system of motor vehicle 100. Activation signal A may then be ascertained in such a way that the one or multiple actuators 10 is/are activated in such a way that motor vehicle 100 prevents for example a collision with objects identified by image classifier 60, particularly if these are objects of particular classes, for example pedestrians.
[0062] In the case that anomaly detector 70 detects an environment anomaly or a system anomaly, activation signal A may be selected in such a way that the vehicle may no longer change lanes and the speed is restricted to a predefined value. Alternatively, it is likewise possible that the control of the vehicle is handed over to a driver or operator (not necessarily located in the vehicle). It is also possible that the anomaly and sensor signals S that have resulted in the anomaly are stored in a fault memory of the control system, and/or a warning message is output on a display device 10a.
[0063] Alternatively, the at least semi-autonomous robot may also be a different mobile robot (not shown), for example a robot that moves by flying, swimming, diving or walking. The mobile robot may also be, for example, an at least semi-autonomous lawnmower or an at least semi-autonomous cleaning robot. In these cases, too, activation signal A may be ascertained in such a way that the drive and/or steering of the mobile robot are activated in such a way that the at least semi-autonomous robot prevents for example a collision with objects identified by image classifier 60.
[0064]
[0065] Sensors 30 may include, for example, an optical sensor which detects for example properties of manufactured products 12a, 12b. The sensors may also include such sensors that may measure the ambient temperature, the air pressure, the light intensity, the radiation, the speed of travel of a conveyor belt and/or the power consumption of manufacturing machine 11.
[0066] It is possible that manufactured products 12a, 12b are movable. It is possible that actuator 10 which controls manufacturing machine 11 is activated as a function of an assignment of detected manufactured products 12a, 12b, so that manufacturing machine 11 accordingly executes a subsequent processing step of the correct manufactured product 12a, 12b. It is also possible that, by identifying the correct properties of manufactured products 12a, 12b (i.e., without misclassification), manufacturing machine 11 accordingly adapts the same manufacturing step to process a subsequent manufactured product.
[0067] If anomaly detector 70 detects an anomaly, manufacturing machine 11 may be stopped for example, and maintenance may be automatically requested. Alternatively, it is also possible that the presence of an anomaly is indicated to an appropriate technician for closer observation, but the operation of manufacturing machine 11 is maintained.
[0068]
[0069] The detected image may be interpreted with the aid of image classifier 60. If multiple persons are detected at the same time, the identity of the persons may be ascertained in a particularly reliable manner by associating the persons (i.e., the objects) with one another, for example by analyzing their movements. Actuator 10 may be a lock which releases the access control, or not, as a function of activation signal A, for example opens door 401 or not. For this purpose, activation signal A may be selected as a function of the interpretation by object identification system (image classifier) 60, for example as a function of the ascertained identity of the person. Instead of the physical access control, a logical access control may also be provided.
[0070] For example, if an anomaly is detected, a technician may be contacted automatically in order to check the correct functioning of access system 300.
[0071]
[0072]
[0073] As a function of the signals of sensor 30, control system 40 ascertains an activation signal A for personal assistant 250, for example as a result of image classifier 60 carrying out gesture recognition. This ascertained activation signal A is then transmitted to personal assistant 250 and thus activates the latter accordingly. This ascertained activation signal A may in particular be selected in such a way that it corresponds to a presumed desired activation by user 249. This presumed desired activation may be ascertained as a function of the gesture recognized by image classifier 60. Control system 40 may then select activation signal A for transmission to personal assistant 250 as a function of the presumed desired actuation and/or may select activation signal A for transmission to the personal assistant according to the presumed desired activation 250.
[0074] This corresponding activation may include for example that personal assistant 25 retrieves information from a database and reproduces it for user 249 in a receivable manner.
[0075] If a detected anomaly is present, personal assistant (250) may communicate this to user 249 or may automatically inform a technician.
[0076] Instead of personal assistant 250, a household appliance (not shown), in particular a washing machine, a stove, an oven, a microwave or a dishwasher, may also be provided so as to be activated accordingly.
[0077]
[0078] Display unit 10a is activated by control system 40. For example, image classifier 60 may ascertain whether an area recorded by the imaging sensor is suspicious, and activation signal A may then be selected in such a way that this area is highlighted in color by display unit 10a.
[0079] In further exemplary embodiments (not shown), anomaly detector 70 may also monitor a control system which does not use an image classifier 60. Particularly, if the behavior of the control system is determined by a multitude of executable rules, the anomaly detector may monitor the parameters of the environment and of the system itself, as in the exemplary embodiments above.
[0080] In the exemplary embodiments shown above, it is also possible that environment anomaly model 72 is retrained with at least environment state vector x.sub.U if evaluation unit 76 is notified of an anomaly concerning environment value v.sub.U but is not notified of an anomaly concerning system value v.sub.S. This scenario may be regarded as a situation for which anomaly detector 70 has not been tested, but nevertheless the system functions correctly.
[0081]
[0082] Training data unit 15 ascertains at least one pair x.sub.i of environment state vector and system state vector of training data set T and transmits pair x.sub.i to anomaly detector 70 to be trained. For the environment state vector and the system state vector, anomaly detector 70 determines an environment value with the aid of the environment anomaly model and a system value with the aid of the system anomaly model.
[0083] The environment value and the system value are transmitted as an output pair ŷ.sub.i to a change unit 18).
[0084] Based on ascertained output pair ŷ.sub.i and a desired output pair y.sub.i of environment value and system, change unit 180 then determines new model parameters Φ′ for the environment anomaly model and the system anomaly model. It is possible, for example, that both anomaly models are given by neural networks. In this case, change unit 180 may ascertain new model parameters Φ′ with the aid of a gradient descent method, such as Stochastic Gradient Descent or Adam.
[0085] Ascertained new model parameters Φ′ are stored in a model parameter memory St.sub.1.
[0086] Desired output pair y.sub.i may in particular be made up of desired environment value and desired system value, the desired environment value being a desired probability for the environment state vector or a desired probability density value, and the desired system value being a desired probability for the system state vector or a desired probability density value.
[0087] In further exemplary embodiments, the training described is repeated iteratively for a predefined number of iteration steps or is repeated iteratively until a difference between ascertained output pair ŷ.sub.i and desired output pair y.sub.i falls below a predefined threshold value. In at least one of the iterations, new model parameters Φ′ determined in a previous iteration are used as model parameters Φ of the anomaly detector.
[0088] Training system 140 may also include at least one processor 145 and at least one machine-readable memory medium 146 containing commands which, when executed by processor 145, prompt training system 140 to carry out a training method according to one of the aspects of the present invention.
[0089] The term “computer” encompasses arbitrary devices for processing predefinable computing rules. These computing rules may be in the form of software, or in the form of hardware, or else in a mixed form of software and hardware.