GB2614026A - System and method for training an autoencoder to detect anomalous system behaviour - Google Patents

System and method for training an autoencoder to detect anomalous system behaviour Download PDF

Info

Publication number
GB2614026A
GB2614026A GB2113180.0A GB202113180A GB2614026A GB 2614026 A GB2614026 A GB 2614026A GB 202113180 A GB202113180 A GB 202113180A GB 2614026 A GB2614026 A GB 2614026A
Authority
GB
United Kingdom
Prior art keywords
data
autoencoder
anomaly score
behaviour
vector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
GB2113180.0A
Other versions
GB202113180D0 (en
Inventor
Horry Samuel
Edward John Nicklin Richard
Mai Hans-Heinrich
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BAE Systems PLC
Original Assignee
BAE Systems PLC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BAE Systems PLC filed Critical BAE Systems PLC
Priority to GB2113180.0A priority Critical patent/GB2614026A/en
Publication of GB202113180D0 publication Critical patent/GB202113180D0/en
Priority to PCT/GB2022/052326 priority patent/WO2023041907A1/en
Priority to AU2022347099A priority patent/AU2022347099A1/en
Priority to CA3232488A priority patent/CA3232488A1/en
Publication of GB2614026A publication Critical patent/GB2614026A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0224Process history based detection method, e.g. whereby history implies the availability of large amounts of data
    • G05B23/024Quantitative history assessment, e.g. mathematical relationships between available data; Functions therefor; Principal component analysis [PCA]; Partial least square [PLS]; Statistical classifiers, e.g. Bayesian networks, linear regression or correlation analysis; Neural networks
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0243Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults model based detection method, e.g. first-principles knowledge model
    • G05B23/0254Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults model based detection method, e.g. first-principles knowledge model based on a quantitative model, e.g. mathematical relationships between inputs and outputs; functions: observer, Kalman filter, residual calculation, Neural Networks
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0259Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
    • G05B23/0283Predictive maintenance, e.g. involving the monitoring of a system and, based on the monitoring results, taking decisions on the maintenance schedule of the monitored system; Estimating remaining useful life [RUL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/088Non-supervised learning, e.g. competitive learning

Abstract

A method of training an autoencoder to classify behaviour of an engineering asset comprises: obtaining training data and test data for at least one engineering asset, including sensor readings; fitting the autoencoder to the training data; obtaining encodings of the test data; generating data sets from the obtained encodings, including under-represented data sets; cloning the fitted autoencoder to create a cloned autoencoder for each of the generated data sets; aggregating / bagging the cloned autoencoders to form an over-arching autoencoder; calculating an error data set between the training data and data reconstructed by the over-arching auto encoder; obtaining, an anomaly score for each data record, wherein the anomaly score is selected from a Mahalanobis distance and a squared Mahalanobis distance; and, calculating a decomposition of the anomaly score to identify a contribution from each sensor reading to the anomaly score. The anomaly score may be compared to a threshold, wherein exceeding the threshold is indicates anomalous / abnormal behaviour. The trained autoencoder may be utilised by a prognostic health management / monitoring system to identify the root cause of faults and forecast component maintenance / repairs.

Description

SYSTEM AND METHOD FOR TRAINING AN AUTOENCODER TO DETECT ANOMALOUS SYSTEM BEHAVIOUR
TECHNICAL FIELD
The present invention relates generally to a system and method for training an autoencoder to detect anomalous system behaviour, for example in complex engineering assets including those found in maritime vessels, and for using the trained autoencoder.
BACKGROUND
Prognostics and Health Management (PHM) is an active and well-subscribed to field of study. Companies managing complex distributed or safety critical engineering assets want to understand the status of their portfolio in order to maximise efficiency and minimise downtime. Approaches such as health scores, anomaly detection, failure prediction and remaining useful life calculation are applied across various domains in order to advise maintenance and repair schedules.
The published literature in this field will typically use synthetic data or carefully collected lab-based data to demonstrate the proficiency of a technique, however the use of "real-world" applications is less common. The challenges of developing PHM algorithms to run in a real-world environment are discussed and postulated, but tangible examples are not widespread. For example, see as a reference "Prognostics and Health Management for Maintenance Practitioners-Review, Implementation and Tools Evaluation" by Atamuradov et al. published in International Journal of Prognostics and Health Management in 2017.
Most known PHM applications apply to engineered systems operating in and on a well-defined single-state and without the consideration for prior usage and age. Especially but not exclusively in the maritime domain, systems' operating envelops are manifold by design and operation environment. They are also designed to be in operation for sustained long-term periods of time in excess of ten years. Moreover, they are embedded into a wider set of systems that potentially interacts with them. Any empirical data captured is exposed to such -2 -confounding variables and to biases resulting from differently sized samples of each possible operating envelope. Current inventions hardly allow for the incorporation of these factors and thus experience unacceptable false results once integrated into a "real-world" setting.
As only a continued data-driven approach can come close to capturing these intricacies that are otherwise hardly deterministically establishable, further data irregularities arise during the gathering phase. These biases can be collectively referred to as "system drift" that arise from changes over time. Firstly, software and hardware collecting the data undergo changes and can influence the underlying distributions. Secondly, the systems undergo physical changes while in operation mainly due to a variety of maintenance activities or unforeseen events. The latter is another main factor of distortion as most maintenance activities are done without being meaningfully captured in appropriate reference data. This results in potentially unlabelled data sets that can hardly be labelled ex-post. Moreover, complex engineered systems are rarely produced in large numbers and are made to last rather than to fail. This results in small population sizes and a sparsity of failure examples and failure modes. However, current statistical methods and approaches can only utilise clearly labelled and distinguishable data sets.
It is an example aim of example embodiments of the present invention to at least partially overcome or avoid one or more problems of the prior art, whether identified herein or elsewhere, or to at least provide an alternative to existing systems and related methodologies.
SUMMARY
According to a first aspect of the present invention, there is provided a method for training an autoencoder to classify behaviour of an engineering asset based on real-time data. The autoencoder comprises an encoder and a decoder, and the method of training comprises obtaining training data and test data comprising multiple data records for at least one engineering asset which corresponds to the engineering asset whose behaviour is to be classified, -3 -wherein the data records comprise a plurality of sensor readings for the engineering asset; fitting the autoencoder to the obtained training data; running the test data through the encoder of the fitted autoencoder to obtain encodings of the test data; generating a plurality of data sets from the obtained encodings, wherein the generated plurality of data sets include under-represented data sets; cloning the fitted autoencoder to create a cloned autoencoder for each of the generated plurality of data sets; aggregating the cloned autoencoders to form an over-arching autoencoder; calculating an error data set between the training data and data reconstructed by the over-arching autoencoder, wherein the error data set comprises an absolute reconstruction error for each sample in the training data; obtaining, using the calculated error data set, estimated parameters for calculating an anomaly score for each data record, wherein the anomaly score is selected from a Mahalanobis distance and a squared Mahalanobis distance; and estimating, using the calculated error set, parameters for calculating a decomposition of the anomaly score to identify a contribution from each sensor reading to the calculated anomaly score.
According to another aspect of the invention, there is also provided a system for training an autoencoder to classify behaviour of an engineering asset based on real-time data, wherein the system comprises a processor implementing an autoencoder comprising an encoder and a decoder, and the processor is configured to obtain training data and test data comprising multiple data records for at least one engineering asset which corresponds to the engineering asset whose behaviour is to be classified, wherein the data records comprise a plurality of sensor readings for the engineering asset; fit the autoencoder to the obtained training data; run the test data through the encoder of the fitted autoencoder to obtain encodings of the test data; generate a plurality of data sets from the obtained encodings, wherein the generated plurality of data sets include under-represented data sets; clone the fitted autoencoder to create a cloned autoencoder for each of the generated plurality of data sets; aggregate the cloned autoencoders to form an over-arching autoencoder; calculate an error data set between the training data and data reconstructed by the over-arching autoencoder; obtaining, using the calculated error data set, estimated parameters -4 -for calculating an anomaly score for each data record, wherein the anomaly score is selected from a Mahalanobis distance and a squared Mahalanobis distance; and estimating, using the calculated error set, parameters for calculating a decomposition of the anomaly score to identify a contribution from each sensor reading to the anomaly score.
Under-represented data sets may be considered to be data sets with insufficient data and which if used in isolation may lead to biased classifiers. As explained in the background section above, some complex engineering systems are produced only in small numbers and are made to last rather than to fail.
Accordingly, these systems typically have under-represented data sets because there are small population sizes and examples of data before failure of the system are rare. Under-represented data sets may thus be defined as those that are badly reconstructed by the autoencoder algorithm but may be perfectly routine operations from an engineering perspective.
The invention may be implemented in a prognostics and health management (PHM) application which provides a measurement of anomaly (anomaly score) for users including operators and maintenance staff. The measurement is unitless and may also be termed a system state or metric. The invention may be used for monitoring any complex engineering asset whose operation may be described by a data set of sensor readings which include a plurality of physical parameters which are measured by a plurality of sensors. Merely as examples, such engineering assets may be within a marine vessel, for example a diesel engine or a high voltage switchboard. Such engineering assets may be in other systems, e.g. railway rolling stock bogies, nuclear reactor coolant pumps, gas turbine engines for passage aircraft or oil rig drill bearings.
In this context, the Mahalanobis distance (normal or squared) is termed an anomaly score. The Mahalanobis distance is a well-known calculation which may be described in this case as a measure of the distance between a given time-step vector of absolute reconstruction errors and the distributions and correlations of the previously retrieved reconstruction errors from the training data set. The anomaly score a1 at time t1 may be calculated using the normal (i.e. standard) Mahalanobis distance formula: -5 -at= V(yi-T)TE-'-(yi-U) where yi is an m dimensional vector of the absolute error between the input and reconstructed features at time instance t, it is a vector of reconstruction error means and E-1 is the inverse covariance matrix of reconstruction errors across the feature space. Alternatively, the anomaly score at at time t1 may be calculated using the squared Mahalanobis distance formula: at = (3,1 F)TE-1(Yi -17) where the parameters are the same as above. Obtaining estimated parameters for calculating the anomaly score may comprise estimating the vector u of to reconstruction error means, and the inverse covariance matrix E-1 of reconstruction errors. These may be estimated using maximum likelihood estimation from a normal distribution.
The decomposition of the squared anomaly score may be obtained from: of2 = (1 --1/2 ibo (1 -E (yjiY_J))] KY) - kJ] J=1 where 34 is an m dimensional vector of the absolute error between the input and reconstructed features at time instance b, y; is the j-th component variable of yi (a m x "I random vector) and y-; is the vector obtained from y by deleting its jth component variable, ft is a vector of reconstruction error means, a is a vector of reconstruction error standard deviations, E-1 is the inverse covariance matrix of reconstruction errors across the feature space, bmmis the vector containing the square root of the diagonal of E-1 and with 121, ai and bu),,"., corresponding to the jth component variable mean, standard deviation and element of the diagonal respectively, pi is the squared multiple correlation coefficient of yj on the remaining variables y_ j, and gyily_i) denotes the conditional expectation of 371 while all other variables 37_ j are fixed. In this example, estimating the parameters for calculating a decomposition of the anomaly score may comprise estimating the vector 77. of reconstruction error means, the vector a of reconstruction error standard deviations, the inverse covariance matrix E-1 of reconstruction errors across the feature space, the vector bmn, containing the square root of the -6 -diagonal of E-1, the squared multiple correlation coefficient pi and the conditional expectation E(y ily_ j). The vectors and matrix may be obtained by estimating the mean, variance and covariance parameters using a Normal Distribution N(p, 6, E) via Maximum Likelihood estimation. The coefficient and the conditional expectation may be estimated using linear regression.
The method may further comprise setting at least one anomaly threshold; wherein an anomaly score above the at least one anomaly threshold is indicative of anomalous behaviour whereby the behaviour of the engineering asset may be classified as anomalous. An anomaly score below the anomaly threshold may be indicative of behaviour which is not anomalous. The at least one anomaly threshold may comprise two thresholds to further classify behaviour. The first threshold may be higher than the second threshold. An anomaly score above the first threshold may be indicative of the engineering asset operating in anomalous behaviour and an anomaly score below the first threshold may be indicative of the engineering asset operating in non-anomalous behaviour. The non-anomalous behaviour may be further classified as normal or abnormal (but not anomalous behaviour) by the second threshold. An anomaly score above the second threshold but below the first threshold may be indicative of the engineering asset operating in abnormal behaviour and an anomaly score below the second threshold may be indicative of the engineering asset operating in normal behaviour.
The threshold(s) for the anomaly score may be set by using a box-whisker approach for univariate outlier detection. It is noted that although both the Mahalanobis distance and box-whisker approach are well-known statistical methods, there is no teaching of this combination for PHM and they enable a novel full unsupervised training regime.
The decomposition of the anomaly score enables a novel root-cause analysis approach for identifying the main drivers of anomalous behaviour. In an example water pump system as described in more detail below, the decomposition allows the identification of suction pressure, motor speed or discharge pressure as the main cause of the identified anomalous behaviour. -7 -
The autoencoder may be a long short-term memory (LSTM) autoencoder. The encoder may receive an input X comprising a plurality of points x0 each of which may be an m-dimensional vector at time instance t. The input is a multivariate time-series and each time step is a fixed time-window length cut from the time-series. The encoder may map the inputs to a latent dimension, for example as represented by: z = o-(Wx + b) where W is a set of weights, b is a bias function and a is the activation function. The decoder may generate reconstructed inputs X' comprising a plurality of to reconstructed points x'10 and may be represented as: = o-' (W z + b') where W' is a different set of weights, b' is a different bias function and 15' is a different activation function. Fitting the autoencoder to the obtained training data may thus be defined as generating the weights and biasing functions which fit the data to the model. Cloning may be similarly defined as cloning the weights and biasing functions of the base model. Since the input and output are the same input sequences, this is typically called self-supervised learning.
Dependencies may be injected into at least one of the encoder and decoder. The dependencies may represent features arising from embedding the engineering asset in a wider system. For example, when modelling a water pump, a dependency may be the valve positions along the water mains which serve the water pump. The dependencies may be n-dimensional vectors where the length of the vector n may be same or different to the length m of the input vector. Incorporating these dependencies improves the generalizability of the algorithm because it captures the statistical variability of the overall system.
Generating the plurality of data sets may comprise applying a clustering analysis to the obtained encodings and/or applying a KDtree algorithm to the obtained encodings. The KDtree algorithm and the cluster analysis may be applied simultaneously. Applying a clustering analysis may comprise fitting multiple clustering algorithms over the obtained encodings; selecting the best clustering algorithm and obtaining a plurality of clusters by fitting the selected -8 -clustering algorithm to the training data; whereby the generated plurality of data sets comprise the plurality of clusters. Applying a KDtree algorithm may comprise fitting the KDtree algorithm on the obtained encodings; selecting an underrepresented data set generated by the fitting step; and finding multiple data sets which are most similar to the selected data set; whereby the generated plurality of data sets comprise the selected data set and the multiple data sets. Aggregating the cloned autoencoders to form an over-arching autoencoder may be done using bagging. Aggregating may comprise using voting to aggregate predictions from each of the cloned autoencoders. A time-to stepwise extraction method may be used for the voting.
The combination of expanding the data, e.g. by running clustering and KDtree algorithms, together with the aggregation of the cloned autoencoders allows the building of a multi-model algorithm that addresses the manifold operating envelop, environment, machine-ageing and data capture issues simultaneously. It is achieved by the very nature of the autoencoder that effectively runs a time encompassing dimensionality reduction on the given time window. This enables the results to be treated as random variables that capture the underlying non-linear statistics of the engineering assets. By running clustering and KDtree algorithms and a, similar observations may be retrieved and then used to train clones of the same autoencoder model.
Once the autoencoder is trained, it may be used to classify behaviour and provide real-time anomaly detection and failure prediction. Thus, according to another aspect of the invention, there is provided a method for classifying behaviour of an engineering asset based on real-time data, the method comprising: receiving a data record comprising data on the engineering asset collected from a plurality of sensors at time t; classifying, using a trained autoencoder, behaviour of the engineering asset based on the received data record; and outputting an indication of the classified behaviour to a user.
According to another related aspect of the invention, there is provided a system for classifying behaviour of an engineering asset based on real-time data, the system comprising: a plurality of sensors; a processor which is configured to receive a data record comprising data on the engineering asset collected from -9 -the plurality of sensors at time t; and classify, using a trained autoencoder, the behaviour of the engineering asset based on the received data record; and a user interface for outputting an indication of the classified behaviour to a user.
The autoencoder may be trained as described above. Classifying behaviour may comprise calculating, using the trained autoencoder, an anomaly score from the received data record, comparing the calculated anomaly score to the at least one threshold and classifying behaviour of the engineering asset as anomalous when the calculated anomaly score is above the threshold. Classifying behaviour may further comprise, obtaining, using the trained autoencoder, a decomposition of the calculated anomaly score, wherein the decomposition shows individual contributions from the plurality of sensors to the calculated anomaly score. For example, when behaviour is classified as anomalous, the individual contributions may be used to indicate which sensor provides a highest contribution and thus is indicative of the component within the engineering asset which is most likely to be contributing to the anomalous behaviour.
The data records within the training data correspond to the data record which is received for prediction purposes. In other words, the training data comprises data records having data collected from the same set of sensors. The training data may be stored on a database which may be separate to the system which implements the prediction. Indeed, the training may be carried out on a separate system and the trained algorithm transferred to the prediction system when required.
According to another aspect of the invention, there is a non-transitory 25 computer-readable medium comprising processor control code which when running on a system causes the system to carry out the method described above. The invention described above may be used to overcome the aforementioned problems of statistical generalisability. Furthermore, the invention may be able to deal with multi-mode environments, failures, data regimes and a mainly unsupervised learning procedure. It is noted that the general field of statistic and machine learning does provide techniques such as boosting, bagging or stacking but typically fails to address the (semi-) unsupervised nature of the problem. Even the LSTM autoencoder architecture described by Malhorta et al. in 2016 only accidentally addresses parts of the problems and needed further expansion as described above to address the issues.
It will be appreciated that any one or more features described in relation to an aspect of the invention may replace, or be used in combination with, any one or more features described in relation to another aspect of the invention, unless such replacement or combination would be understood by the skilled person as mutually exclusive, after a reading of this disclosure. In particular, any features described in relation to apparatus-like aspects may be used in combination with, or in place of, any features described in relation to method-like aspects. They may also be carried out in any appropriate order.
BRIEF DESCRIPTION OF THE DRAWINGS
For a better understanding of the invention, and to show how embodiments of the same may be carried into effect, reference will now be made, by way of example, to the accompanying diagrammatic figures in which: Figure 1 is a schematic illustration of a system for detecting anomalous system behaviour; Figure 2 is a schematic illustration of an autoencoder for incorporation in the system of Figure 1; Figures 3a and 3b are a flowchart setting out the steps carried out when training the autoencoder of Figure 1; Figure 4a plots the variation in shaft speed (rpm) against time for the control time series and four most similar observations from the training data; Figure 4b plots the variation in temperature (C) against time for the thrust block at the forward face for the control time series and four most similar observations from the training data; Figure 4c plots the variation in temperature (C) against time for the thrust block at the anterior face for the control time series and four most similar observations from the training data; Figure 4d plots the variation in temperature (C) against time for the plummer bearing for the control time series and four most similar observations from the training data; Figure 4e plots the variation in temperature (C) against time for the shaft stem seal for the control time series and four most similar observations from the training data; Figure 5 plots the latent dimension showing the 500 most closely related time series based on the control series in Figures 4a to 4e; Figure 6 plots the sample mean Mahalanobis distance; Figure 7a plots the variation in current (ampere) against time for the motor current for the validation and verification data from a CHW circulation pump; Figure 7b plots the variation in pressure (bar) against time for the pump discharge for the validation and verification data from a CHW circulation pump; Figure 7c plots the variation in pressure (bar) against time for the pump suction for the validation and verification data from a CHW circulation pump; Figure 7d plots the variation in Mahalanobis distance with time for the CHW circulation pump; Figure 7e plots the decomposition of the Mahalanobis distance in Figure 7d showing the contributions for each of the motor current, the discharge pressure and the suction pressure of Figures 7a to 7c; Figure 8a is a flowchart of the steps of analysing behaviour of an engineering asset using the trained autoencoder of Figure 2; Figure 8b plots over time the anomaly trend (i.e. Mahalanobis distance) for a CHW circulation pump generated using the method of Figure 8a; and Figure 8c plots over time the anomaly breakdown for the anomaly trend of Figure 8b showing the contribution from each of the motor current, the discharge pressure and the suction pressure.
DETAILED DESCRIPTION
Figure 1 schematically shows an example embodiment comprising a management system 10 for monitoring an engineering asset. The engineering asset may be on a marine vessel, for example chilled water (CHW) plants, transmission, starboard shaft, port shaft, one or more CHW circulation pumps, gas turbine, converters, DBRs, propulsion motor, high voltage (HV) switch board, low voltage (LV) switchboard, HV filters, HV/LV transformers, LV filters, diesel generators, emergency generators, heating, ventilation and air conditioning (HVAC) system, pressurised air, fresh water system, salt water (SW) system. It will be appreciated that the management system may also be used on other system, e.g. railway rolling stock bogies, nuclear reactor coolant pumps, gas turbine engines for passage aircraft or oil rig drill bearings.
The management system 10 is connected to a plurality of sensors, including a temperature sensor 50, a pressure sensor 52, an electrical current sensor 54, a voltage sensor 56 and other sensor(s) 58, e.g. a sensor to measure the mass of any fluids in the system. It will be appreciated that the depicted sensors are merely illustrative, and any suitable sensors may be included in the overall system. The combination of sensors may record a plurality of physical parameters which alone or together with digital parameters describing the configuration of the system, e.g. valve positions in a piping assembly, are indicative of whether the engineering asset is operating in a healthy or faulty state.
Some of the internal detail of the display system 10 is shown in Figure 1. There are standard components of whichever hardware solution is deployed, including for example a display 20, a processor 30, memory 40 and an interface 42 for connecting with the sensors 50, 52, 54, 56, 58. The display may include a touchscreen 22 or may be any other suitable display on which information may be displayed to a user 70. The management system 10 is also connected to a database which may be located remotely (i.e. in a different location) from the management system, including for example in the cloud. The database comprises training data which is used to train the management system as described in more detail below. It will be appreciated that there may be other standard components which are omitted for clarity.
The processor 30 may process the received sensor data and training data in any appropriate way. As illustrated, the specific processing may be completed in dedicated modules, e.g. an autoencoder module 32. Terms such as 'component', 'module', 'processor' or 'unit' used herein may include, but are not limited to, a hardware device, such as circuitry in the form of discrete or integrated components, graphics processing units (GPUs), a Field Programmable Gate Array (FPGA) or Application Specific Integrated Circuit (ASIC), which performs certain tasks or provides the associated functionality. In some embodiments, the described elements may be configured to reside on a tangible, persistent, addressable storage medium and may be configured to execute on one or more processors. These functional elements may in some embodiments include, by way of example, components, such as software components, object-oriented software components, class components and task components, processes, functions, attributes, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuitry, data, databases, data structures, tables, arrays, and variables. Although the example embodiments have been described with reference to the components, modules and units discussed herein, such functional elements may be combined into fewer elements or separated into additional elements.
Figure 2 is an illustration of a long short-term memory (LSTM) autoencoder which may be incorporated in the system of Figure 1. An LSTM autoencoder is a recurrent neural network which has feedback connections and which is well-suited to classifying, processing and making predictions based on time series data. LSTM autoencoders are well known in the art and are described in more detail for example in "Long Short-Term Memory Networks for Anomaly Detection in Time Series" by Malhotra et al. published at the 23rd European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning, ESANN 2015 or "Long Short-Term Memory" by Hochreiter et al. published in Neural Computation in 1997 which are herein incorporated by reference.
Figure 2 shows that the autoencoder comprises an encoder 110 which is a neural network comprising a plurality of layers. The encoder 110 receives an input X which comprises a plurality of points xfo. The input data is combined and reshaped into a three-dimensional sample-major tensor of shape samples, time-steps and features. The input Xis thus defined as: X = fx(1), x(2), ..., x(01 x(0 c where L is the length of the time-series and where x0 is an m dimensional vector at time instance b. The time-series is an underlying multivariate time-series and each time step is a fixed time-window length cut from the time-series. The features within the vector x0 are any suitable combination of variables, e.g. sensor readings such as motor current or derived environmental information such as "rough sea". For example, when evaluating an engineering system, x(i) may be a vector having m sensor measurements at time instance ti. As shown in Figure 2, the inputs are flipped before mapping to the encoder 110.
The encoder 110 maps the inputs to a latent dimension 115. As is well known in the art, if z is the latent dimension, the encoder 110 can be represented by the standard neural network function passed through an activation function, i.e. z = o-(Wx + b) where W is a set of weights, b is a biasing function and a is the activation function.
The autoencoder also comprises a decoder 120. The decoder 120 20 generates reconstructed inputs X which comprises a plurality of reconstructed points fa). The reconstructed inputs X' are thus defined as: X' = {x'(1),x'(2), x" E Rm where L is the length of the time-series and where x'0) is an m dimensional vector at time instance ti. Using a similar notation to that for the encoder, the decoder may be represented as x' = a'(W'z + b') where W is a different set of weights, b' is a different biasing function and a' is a different activation function. The algorithm may then be trained by fitting the algorithm to the training data and generating iterative updates to the weights and biases of the model. Since the input and output are the same multi-variate time sequences, this is typically called self-supervised learning.
A connector 130 is connected between the latent dimension 115 and the decoder 120. The connector 130 is used to inject the dependencies Z which are defined as: Z= {z(1), (2), ..., z(01 z(0 E Rni where L is the length of the time-series and where z(0 is an n dimensional vector at time instance t. n may be the same or a different number to m. In this example, the dependencies are only included in the decoder 120 but they may also be passed to the encoder 110.
The dependencies may be defined as binary and metric features which are system dependencies or confounders which arise from embedding the specific engineering asset within a wider-system, manifold operating environment and different data gathering regimes. For example, when modelling a water pump, the inputs may include motor current, suction and discharge pressure and the dependencies may include wider system load such as valve positions along the water mains which serve and which are served by the water pump. Failing to adequately model these dependencies may mean that the algorithm is not statistically generalizable because it may fail to capture the statistical variability of the system enough to give unambiguous information to the user.
It is also noted that the decoder 120 receives the hidden and memory states of the encoder from the latent dimension 115 to be used as initialisation of the decoder's hidden and memory states. The hidden and memory states are defined as: fir) = h(2 (1)(0) CE = CD where hEand ho are the states of the hidden layer of the encoder and the decoder at time ti, respectively and cE and cD are the memory states of the encoder and decoder, respectively. As an example, the table below is a summary of a general dependencies-based autoencoder such as the one described above and which has been created with the standard package, TensorFlow.
Layer (type) Output shape Parameters (number) Connected to Alllnputs (Input layer) (None, 240, 0 15) Z-scaling (Lambda) (None, 240, 0 Alllnputs [0][0] 15) TheLastEncoder (LSTM) [(None, 30), (None,30)] 5640 Z-scaling [0][0] ConnectorLayer (None, 240, 0 TheLastEncoder[0][0] (RepeatVector) 30) Dependencieslnput (Lambda) (None, 240, 0 Z-scaling [0][0] 12) Decoderinput (None, 240, 0 ConnectorLayer[0][0] Dependencieslnput[0][0] (Concatenate) 42) EncoderStateH (None, 3) 0 TheLastEncoder[0][1] EncoderStateC (None, 3) 0 TheLastEncoder[0][2] TheFirstDecoder (LSTM) (None, 240, 564 Decoderinput [0][0] EncoderStateH[0][0] EncoderStateC[0][0] 30) Figures 3a and 3b form a flowchart illustrating how an autoencoder, such as the one shown in Figures 1 and 2, is trained according to the invention. The 10 training may be considered to be a model expansion approach that retrieves training data through clustering the overall autoencoder encodings and running additional similarity searches via a KDtree algorithm for under-represented observations. Clones of the autoencoder model are then trained using the observations from the clustering and KDtree algorithms. Once the clones are fitted, a time-stepwise extraction method is incorporated for a voting part of the bagging stage. The voting is not fitted as is the norm, but is a direct mean squared error comparison between models across each-time slice. The model that minimises the error across a time-slices provides the output/reconstruction for that time-slice. The Mahalanobis distance measure and its decomposition is then incorporated into the algorithm as explained in more detail below.
o The training begins when a training data set together with validation and verification data sets are received or otherwise obtained. The training data may be historical data from the engineering asset which has been collected over a number of months or even years. For example, if the engineering asset is a component of a marine vessel, the training data may have been collected across multiple ships of the same class over months or years. The training data may be built by querying a data storage facility and preparing a dataset from the queried data. Preparing may include choosing features within the data, choosing the running periods (domain knowledge), cutting training sample-major sequences and general data science pre-processing.
As illustrated in Figure 3a, in a first step S100, the autoencoder is fitted to the training data. For example, a cost function may be used to iteratively update the weights and the bias functions of the encoder and decoder as is well known in the art. The autoencoder is dependencies-based because the dependencies are incorporated in the decoder and/or encoder.
Once the autoencoder has been fitted to the training data, each of the training, test and validation data sets are run through the encoder only (step S102). The encodings may be retrieved or extracted from the latent dimension layer or the last layer in the encoder (e.g. TheLastEncoder in the table above). In the next stage, there are two different routes which are running in parallel. It will 3o be appreciated that the routes may be run sequentially but it is more efficient to run them simultaneously. In the first route, a clustering analysis is run on the obtained encodings (step S104). The clustering analysis comprises fitting multiple k-means clustering algorithm set-ups over the extracted encodings. An example of a suitable clustering analysis is described in "Cluster analysis of multivariate data: efficiency versus interpretability of classifications" by Forgy, Edward W. published in Biometrics. 21 (3): 768-769 (1965).
As shown, the number of clusters for each clustering algorithm is determined and the best algorithm is determined. The number of clusters may be selected by the user, i.e. by the researcher conducting the training. Selecting the best algorithm may be done by any suitable method, e.g. by calculating a silhouette score and selecting the algorithm with the highest silhouette score. The calculation of silhouette scores is described, for example in "Silhouettes: a Graphical Aid to the Interpretation and Validation of Cluster Analysis" by Rousseeuw published in Computational and Applied Mathematics 20: 53-65, 1987. Once the best algorithm has been determined, at step S106 the best clustering algorithm is re-fit to the training data and the cluster prediction (or cluster index) is retrieved at step 5108.
In the other route, a KDtree algorithm is used to extract under-represented data by proximity searching the two-dimensional latent space of a three-dimensional representation. In this way, a data set containing only most similar examples may be found and built. The examples which are of interest are those that are badly reconstructed by the autoencoder algorithm but are perfectly routine operations from an engineering perspective. An example of a KDtree algorithm is described in "Multidimensional binary search trees used for associative searching" by Bentley, J.L. published in Communications of the ACM.
18 (9): 509-517 1975.
In a first step S110, the KDtree algorithm is fit on the obtained encodings. In a next step S112, the under-represented samples are selected (or chosen) based on the algorithm output and domain knowledge. In step 5114, these selected samples are used to query the KDtree to find the five most similar other examples. In this way, new data sets containing under-represented states may be built up.
As an illustrative example, a transmission shaft-line is modelled and the output of step S114 is shown in Figures 4a to 4e. The inputs for the modelled transmission shaft-line include the shaft speed (rpm), the temperature (C) for the thrust block at the forward face, the temperature (C) for the thrust block at the anterior face, the temperature (C) for the anterior plummer bearing and the temperature (C) for the shaft stem seal. Each of Figures 4a to 4e plots the variation over time for these inputs as encoded by the encoder. In each of the Figures, a control time series (labelled 200a, 200b, 200c, 200d, 200e respectively) is selected as an under-represented sample. The four most similar time series are also plotted in the Figures to illustrate how five most similar observations are extracted from the latent dimension (or final layer of the encoder) for the training data set based on the control time series.
Figure 5 illustrates a two-dimensional visual representation showing the 500 more closely related time-series (labelled 210) based on the control time series of Figures 4a to 4e. The representation of Figure 5 is created for visualisation purposes only, for example using a t-distributed stochastic neighbour embedding (TSNE) algorithm.
Returning to Figure 3, the results from the two routes are combined at step S116. The two routes are used to split the training data into a plurality of clusters and a plurality of similarity data sets (for example those shown in Figures 4a to 4e). In the next step S118, the autoencoder algorithm generated at step S100 (which may be termed the base model) is then cloned to generate a cloned algorithm for each of the clusters and similarity data sets generated in step S116. Cloning the base model includes cloning its trained weights and biasing function from step S100. Each cloned autoencoder is then fit to its respective data set which includes one of the clusters and one of the similarity data sets (step S120). The fitting may include using an adjusted and individual scaler for each data set.
In the next step S122, each of the cloned autoencoders is aggregated or bagged (bootstrap aggregation) into a single over-arching model. Any suitable method of combining the individual models may be used, e.g. bootstrap aggregating. Such methods typically use voting to aggregate the predictions from -20 -each of the cloned autoencoder. A time-stepwise extraction method may be used for the voting part of the bagging stage. In this arrangement, a direct error comparison between the outputs of each of the cloned autoencoders may be used on each time slice. It will be appreciated that is a deviation from the normal method used in voting.
The table below gives an example structure of a bagged autoencoder model.
Layer (type) Output shape Parameters (number) Connected to Ensemblelnputs (Input layer) (None, 240, 15) 0 Slicedlnputs (Lambda) (None, 240, 3) 0 Ensemblelnputs[0][0] ModelAlIData (Model) (None, 240, 3) 6204 Ensemblelnputs[0][0] Cluster° (Model) (None, 240, 3) 6204 Ensemblelnputs[0][0] Clusterl (Model) (None, 240, 3) 6204 Ensemblelnputs[0][0] Cluster2 (Model) (None, 240, 3) 6204 Ensemblelnputs[0][0] Cluster3 (Model) (None, 240, 3) 6204 Ensemblelnputs[0][0] ExtractBestRecon (Lambda) (None, 240, 3) 0 ModelAIIData[1][0] Cluster0[1][0] Clusterl [1][0] Cluster2[1][0] Cluster3[1][0] SlicedInputs[0][0] OutputLayer (None, 12) 0 Slicedlnputs[0][0] -21 - (Lambda) ExtractBestRecon[0][0] The bagged model is run over the training data at step S124 to obtain the absolute reconstruction error which is the error between the reconstructed data set and the original training data set. Each time-step within the absolute reconstruction error is treated as its own sample, thus forming a multi-variate reconstruction error. The absolute reconstruction error of the autoencoder for a given sample may be defined as: Y = IX - (1) y fy(1), y(2), y(L)} (2) y(0 E Rm where L is the length of the time-series and where /0 is an m dimensional vector of the absolute error between the input and reconstructed features at time instance b.
The final phase of the process incorporates the Mahalanobis distance statistics and calculations. The Mahalanobis distance is defined for example in "On the generalised distance in statistics" by Mahalanobis, Prasanta Chandra published in Proceedings of the National Institute of Science of India. 2 (1): 4955 (1936) or "Multivariate Outliers and Decompositions of Mahalanobis Distance" by Kim published in Commun Statist. Theory Meth 29(7), 1511-1526 (2000). The Mahalanobis distance may be termed an anomaly score for the engineering asset. The generic Mahalanobis Distance of x from fi is given by equation (3) and the squared Mahalanobis Distance of x from,u by equation (4): Ax 1,0TE-1(x (3) (x -it)TE-1(x -it) (4) where x is a dx I random vector with mean vector p and covariance matrix E The decomposition of the squared Mahalanobis Distance may also be used and this may be written as: -22 - (x -tOTE-1(x -pt) =Di -p0-1/2[b(odd(xi-E(xilx-i))][(xi-)73/0-i] (5) i=1 where xi is the i-th component variable of x (a d x I random vector), x-i is the vector obtained from x by deleting its i-th component variable, pi is the multiple correlation coefficient between xi and x_, xi is the mean of xi, ce is the variance of Xi, E(xilx_i) denotes the conditional expectation of xi when the other variables in x-i are fixed, b(i)dd is the entry in the final row and final column of the upper triangular matrix Bi such that 2;1-= B(0B7(;) where 1-1 is the covariance matrix of x-i.
In this example, the generic Mahalanobis distance formulae set out above are rewritten to fit the notations and describe the anomaly score at at time ti: clE = -107, -TOTE-1(YE (7) Or the squared anomaly score at ti: 4 = (y, -U)TE-1(y, -u) (8) The decomposition of the squared anomaly score is:
-
at =1(1 -p 12) 1/2 Ebom,,,(yj -E (yjly j))1[(y j -uj) / (9) j=1 where 34 is an m dimensional vector of the absolute error between the input and reconstructed features at time instance b, yi is the j-th component variable of yi (a m x 9 vector), ft is the vector obtained from y by deleting its Jth component variable, it is a vector of reconstruction error means, a is a vector of reconstruction error standard deviations, E-1 is the inverse covariance matrix of reconstruction errors across the feature space, bmmis the vector containing the square root of the diagonal of E-1 and with, a-1 and b(j)mm corresponding to the jth component variable mean, standard deviation and element of the diagonal respectively, py is the squared multiple correlation coefficient of y on the remaining variables y_i, and gyj ly_j) denotes the conditional expectation of yj while all other variables y_j are fixed.
-23 -It will be appreciated that the relative contribution from each decomposed feature does not change between the squared Mahalanobis Distance of the standard Mahalanobis Distance. For example if the value of the squared Mahalanobis Distance is 4 and the values of its three decomposed features may be: f1=2, f2=1 and f3=1. This translates to relative contributions as follows: fi=0.5, f2=0.25 and f3=0.25. Thus, if we consider the square root of the squared Mahalanobis Distance (i.e. 2), the values of the same three decomposed features can be determined as fi=2*0.5=1, f2=1*0.25=0.25 and f3=1*0.25=0.25. The sum of these features: fi+ f2+f3=2. Thus, the decomposition can be calculated for both the Mahalanobis Distance as well as the squared Mahalanobis Distance.
To create the summary statistics necessary for the Mahalanobis Distance and the decomposition, the absolute reconstruction error Y for every sample in the training data set is constructed and the results are concatenated (step S126). In this example, the results are concatenated along the sample axis to create a timeless two-dimensional representation U where every features' absolute reconstruction error becomes a random variable for P observations: U = {u(1), u(2), ...,u(P) } (6) u() E where P is the number of observations comprised of N samples in the training data set multiplied by L the fixed number of time steps within the time-series of each sample and u(i) is an m dimensional vector of the absolute error between the input and reconstructed features yi at a given observation.
The next step S128 is to use U to obtain various components (vectors and matrix) which are required to calculate the normal and squared Mahalanobis distances. In this step, the vector u of reconstruction error means, the vector a of reconstruction error standard deviations, the inverse covariance matrix E-1 of reconstruction errors across the feature space, and the vector bum, containing the square root of the diagonal of E-1. These vectors and matrix may be obtained by estimating the mean, variance and covariance parameters using a Normal Distribution N(,c, a, E) via Maximum Likelihood estimation.
-24 -The next step S130 is to obtain the final components required to calculate the normal and squared Mahalanobis distances. These final components may be obtained by linear regressions which include an intercept for each feature of m on the remaining features of U. The linear regressions yield -the squared multiple correlation coefficient of y j on the remaining variables y_ j. This is equivalent to the unadjusted R2 of the corresponding linear regression. The linear regressions also yield qyj ly_j)which denotes the conditional expectation of y while all other variables y_j. are fixed. This is equivalent to the regression line of yj on y_j.
Steps S128 and S130 are shown as being carried out in parallel but it will be appreciated that they may be carried out sequentially in any order. Once all the components have been obtained the Mahalanobis distance (normal and/or squared) may be calculated directly or via summation of each feature's decomposition. Now that the system has been trained to calculate the Mahalanobis distance at least one Mahalanobis distance or anomaly score threshold which is used to categorise the behaviour of the engineering asset may now be obtained.
For example, to classify a sample as normal, abnormal or anomalous, general thresholds must be obtained first in two steps. In a first step (S132), the mean anomaly score a is calculated for every sample of the training data set, resulting in the vector: A= [Cti,d2,*** r1/4] where N is the number of samples in the training set.
The mean anomaly score a may also be calculated in two steps. In a first step, the anomaly score (normal or squared) at or al is calculated for every ti from Y in the sample. This results in a vector of anomalies score for each time step: a = [a1, a2,*** aL] where L is the length of the timeseries where L is the length of the timeseries. The sample mean anomaly score a s retrieved by calculation of the arithmetic mean, i.e. -25 -a =
L
Once the mean anomaly score is calculated for every sample of the training data set, the thresholds may be set (step S134). For example, two thresholds may be set from A using the box-whisker approach for univariate outlier detection: thresabn"mat = 3rd Quartile thresanornato = 3rd Quartile + 1.5IQR In other words, when fitting the multi-variate reconstruction error to the encompassing univariate Mahalanobis distance measure, the threshold settings that define the behaviour categories "normal", "abnormal" and "anomalous" are automated by using the upper end of the box-whisker approach for univariate outlier detection. The first threshold may be higher than the second threshold. The first threshold may determine the boundary for anomalous behaviour. Thus, an anomaly score above the first threshold is indicative of anomalous behaviour. The second threshold may determine the boundary between abnormal (i.e. behaviour which is not yet anomalous) and normal behaviour. Thus, an anomaly score below the second threshold is indicative of normal behaviour. Scores between the first and second thresholds are indicative of abnormal behaviour.
This approach is illustrated in Figure 6 which is a visual representation of the unsupervised threshold setting from the univariate Mahalanobis distance. The "normal", "abnormal" and "anomalous" running regions are labelled 300, 302 and 304. More detail on the approach is described for example in "Exploratory Data Analysis" by Tuckey, John W published by Addison-Wesley Publishing Company Reading, Mass. -Menlo Park, Cal., London, Amsterdam, Don Mills, Ontario, Sydney 1977, XVI, 688 S. It is appreciated that the use of two thresholds is indicative and there may be a single threshold to classify behaviour as normal or not normal. Similarly, there may be additional thresholds if further fine-grained classification is desirable.
In the example above, a sample is now classifiable as normal, abnormal or anomalous. Returning to Figure 3b, the next step is to incorporate the Mahalanobis distance parameters and threshold(s) into the neural network (step -26 -S136). All the estimated parameters including the thresholds and the linear regressions are used to build the output layer of the neural network that runs the necessary calculations in parallelisation to create the sample mean anomaly score, the sample mean anomaly score decomposition for each reconstructed feature and the classification before merging it with the feature reconstructions.
In the fully combined model, it is noted that the computation is done on tensors and can therefore be used on graphical processing units (GPUs) as well as central processing units (CPUs). The fully trained model is thus able to classify behaviour as normal, abnormal or anomalous using the sample mean anomaly score and to determine which component is most likely to be responsible for the anomalous behaviour using sample mean anomaly score decomposition for each reconstructed feature.
The final illustrated step of Figure 3b is to run validation and verification tests on the fully integrated model (step S138). For example, the model is tested against the sparsely available failure runs.
Extending the Mahalanobis distance with its decomposition enables a novel root-cause analysis approach for identifying the main drivers for anomalous behaviour. This is normally only achieved with a larger set of failure examples and cannot otherwise be accomplished in sparse example environments such as
those described in the background.
Merely as an example, the autoencoder is applied to data from an engineering asset in the form of a chilled water circulation pump on a marine vessel. The inputs include the current within the motor, the pressure of the fluid at the pump discharge and the pressure of the fluid at the pump suction. Figures 7a to 7e show the progression of the chilled water circulation pump from normal through abnormal to anomalous behaviour with a catastrophic failure occurring at the end of the sequence. Figures 7a to 7c plot the test data for each input (labelled 410a, 410b, 410c) against its algorithmic reconstruction using the final output model.
Figure 7d plots the univariate Mahalanobis distance based on the reconstruction error with the "normal", "abnormal" and "anomalous" running -27 -regions labelled 400, 402 and 404. Figure 7d thus indicates the health of the modelled system and shows that there is a considerable time period in which the system oscillates between "abnormal" and "anomalous" behaviour before finally consistently settling into "anomalous" behaviour. Figure 7e illustrates the contribution from each of the inputs depicted in Figures 7a to 7c to the Mahalanobis distance plotted in Figure 7d. The contributions from the motor, discharge pressure and suction press to the Mahalanobis distance (health measure) are labelled 420, 422 and 424, respectively.
Figure 8a is a flowchart illustrating how the trained algorithm may be used to monitor an engineering asset. The trained (and enhanced) algorithm is obtained in step S800 (for example using the method detailed above). A new data record is also received at step S802. The new data record may be a large corpus of sensor data which corresponds to the data records used to train the trained algorithm.
The behaviour of the asset is determined using the algorithm and the new data. For example, the anomaly score (using either the generic Mahalanobis distance or the squared Mahalanobis distance) may be obtained (step S804) and the decomposition of the squared Mahalanobis distance may also be obtained (step S806). In other words, the sample mean anomaly score and the sample mean anomaly score decomposition for each reconstructed feature may be obtained using the data record. The classification as "normal", "abnormal" or "anomalous" is also determined depending on whether the sample mean anomaly score is above, between or below the relevant thresholds (step S808).
If the asset is likely to fail, e.g. the behaviour is determined to be anomalous at step S808, an alert (audio or visual) may be output to a user (step S812). The output may be presented as a decision aid in a graphical user interface on the display screen. If a system failure is not imminent, the system continues to collect and evaluate more data. It will be appreciated that more data may also be collected even if an alert is output.
An optional step is for a user to drill down into additional information on the output (step S814), e.g. to investigate the decomposition of the Mahalanobis -28 -distance. Examples of additional information which may be output in a graphical user interface to a user are shown in Figures 8b and 8c. Figure 8b allows the user to see the trend in the Mahalanobis distance over time. Figure 8c shows the contributions from the motor, discharge pressure and suction press to the Mahalanobis distance (health measure) for the chilled water pump example. In both Figures 8b and 8c, the current behaviour is classified as "normal" and thus the visual output to the user is an icon labelled "low". As shown, this example of the graphical user interface also has a tab labelled "sensor data" which allows the user to access all the inputs and outputs to and from the algorithm. Thus, the additional data may allow the user to identify the component within the engineering asset which is most likely to be the cause of the anomalous behaviour.
It will be appreciated that a chilled water circulation pump is just one example of an engineering asset which can be monitored. The enhanced autoencoder may be embedded into any suitable application, e.g. a prognostic and health monitoring (PHM) application employed on a marine vessel. Such an PHM application may use the autoencoder algorithm to simultaneously monitor multiple systems and specific subsystems such as those described in Figure 1.
Attention is directed to all papers and documents which are filed concurrently with or previous to this specification in connection with this application and which are open to public inspection with this specification, and the contents of all such papers and documents are incorporated herein by reference.
All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and/or all of the steps of any method or process so disclosed, may be combined in any combination, except combinations where at least some of such features and/or steps are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated -29 -otherwise. Thus, unless expressly stated otherwise, each feature disclosed is one example only of a generic series of equivalent or similar features.
Although a few preferred embodiments have been shown and described, it will be appreciated by those skilled in the art that various changes and modifications might be made without departing from the scope of the invention, as defined in the appended claims. The invention is not restricted to the details of the foregoing embodiment(s). The invention extends to any novel one, or any novel combination, of the features disclosed in this specification (including any accompanying claims, abstract and drawings), or to any novel one, or any novel combination, of the steps of any method or process so disclosed.

Claims (15)

  1. -30 -CLAIMS1. A computer-implemented method for training an autoencoder to classify behaviour of an engineering asset based on real-time data, wherein the autoencoder comprises an encoder and a decoder, the method of training comprising: obtaining training data and test data comprising multiple data records for at least one engineering asset which corresponds to the engineering asset whose behaviour is to be classified, wherein the data records comprise a plurality of sensor readings for the engineering asset; fitting the autoencoder to the obtained training data; running the test data through the encoder of the fitted autoencoder to obtain encodings of the test data; generating a plurality of data sets from the obtained encodings, wherein the generated plurality of data sets include under-represented data sets; cloning the fitted autoencoder to create a cloned autoencoder for each of the generated plurality of data sets; aggregating the cloned autoencoders to form an over-arching autoencoder; calculating an error data set between the training data and data reconstructed by the over-arching auto encoder, wherein the error data set comprises an absolute reconstruction error for each sample in the training data; obtaining, using the calculated error data set, estimated parameters for calculating an anomaly score for each data record, wherein the anomaly score is selected from a Mahalanobis distance and a squared Mahalanobis distance; and estimating, using the calculated error data set, parameters for calculating a decomposition of the anomaly score to identify contributions from each sensor reading to the calculated anomaly score.
  2. 2. The method of claim 1, wherein the anomaly score a, at time t, is calculated using the formula: -31 - at = V(yi-where yi is an m dimensional vector of the absolute error between the input and reconstructed features at time instance t, it is a vector of reconstruction error means and E-1 is the inverse covariance matrix of reconstruction errors across the feature space.
  3. 3. The method of claim 1, wherein the anomaly score a, at time ti is calculated using the formula: 4 = (Yi TOTE-1(Yi where yi is an m dimensional vector of the absolute error between the input and reconstructed features at time instance t, it is a vector of reconstruction error means and E-1 is the inverse covariance matrix of reconstruction errors across the feature space.
  4. 4. The method of claim 2 or claim 3, wherein obtaining estimated parameters for the anomaly score comprises obtaining estimates of the vector ft of reconstruction error means, and the inverse covariance matrix E-1 of reconstruction errors.
  5. 5. The method of any one of the preceding claims, wherein the decomposition of the anomaly score is obtained from: -1/2 (Y -E G jb _MiKY j r5) I a of2 = (1 -p2) ibo j=1 where.)4 is an m dimensional vector of the absolute error between the input and reconstructed features at time instance t, yj is the j-th component variable of If; (a m x 1 random vector), y_J is the vector obtained from y by deleting its jth component variable, ft is a vector of reconstruction error means, a is a vector of reconstruction error standard deviations, r1 is the inverse covariance matrix of reconstruction errors across the feature space, bnimis the vector containing the square root of the diagonal of E-1 and with Ft, aj and bo)",,, corresponding to the j-th component variable mean, standard deviation and element of the -32 -diagonal respectively, 791 is the squared multiple correlation coefficient of yj on the remaining variables,y_j, and E(y ily_ j) denotes the conditional expectation of xi while all other variables 3./_./ are fixed.
  6. 6. The method of any one of the preceding claims, further comprising setting a first anomaly threshold, wherein an anomaly score above the first anomaly threshold is indicative of anomalous behaviour.
  7. 7. The method of claim 6, further comprising setting a second anomaly threshold, wherein an anomaly score above the second anomaly threshold and below the first anomaly threshold is indicative of abnormal behaviour and wherein an anomaly score below the second anomaly threshold is indicative of normal behaviour.
  8. 8. The method of any one of the preceding claims, wherein generating the plurality of data sets comprises applying a clustering analysis to the obtained encodings and applying a clustering analysis comprises fitting multiple clustering algorithms over the obtained encodings; selecting the best clustering algorithm and obtaining a plurality of clusters by fitting the selected clustering algorithm to the training data; whereby the generated plurality of data sets comprise the plurality of clusters.
  9. 9. The method of any one of the preceding claims, comprising applying a KDtree algorithm to the obtained encodings and wherein applying a KDtree algorithm comprises fitting the KDtree algorithm on the obtained encodings; selecting an under-represented data set generated by the fitting step; and -33 -finding multiple data sets which are most similar to the selected data set; whereby the generated plurality of data sets comprise the selected data set and the multiple data sets.
  10. 10. The method of any one of the preceding claims, wherein aggregating the cloned autoencoders to form an over-arching autoencoder comprises using voting to aggregate predictions from each of the cloned autoencoders.
  11. 11. A computer-implemented method for classifying behaviour of an engineering asset based on real-time data, the method comprising: receiving a data record comprising data on the engineering asset collected from a plurality of sensors at time t; classifying, using an autoencoder trained as specified in any one of claims 1 to 10, behaviour of the engineering asset based on the received data record by calculating, using the trained encoder, an anomaly score from the received data record and classifying behaviour as anomalous when the calculated anomaly score is above the threshold; and outputting an indication of the classified behaviour to a user.
  12. 12. The method of claim 11, wherein classifying, using the trained autoencoder, further comprises obtaining, using the trained encoder, a decomposition of the calculated anomaly score from the received data record, wherein the decomposition shows contributions from each of the plurality of sensors to the calculated anomaly score.
  13. 13. The method of any one of the preceding claims, wherein the engineering 30 asset is a system on a marine vessel.
  14. -34 - 14. A computer-readable medium comprising processor control code which when running on a system causes the system to carry out the method of any one of claims 1 to 13.
  15. 15. A system for classifying behaviour of an engineering asset based on real-time data, the system comprising: a plurality of sensors; a processor which is configured to implement the method of any one of claims 11 to 13 and a user interface for outputting an indication of the classified behaviour to a user.
GB2113180.0A 2021-09-15 2021-09-15 System and method for training an autoencoder to detect anomalous system behaviour Pending GB2614026A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
GB2113180.0A GB2614026A (en) 2021-09-15 2021-09-15 System and method for training an autoencoder to detect anomalous system behaviour
PCT/GB2022/052326 WO2023041907A1 (en) 2021-09-15 2022-09-15 System and method for training an autoencoder to detect anomalous system behaviour
AU2022347099A AU2022347099A1 (en) 2021-09-15 2022-09-15 System and method for training an autoencoder to detect anomalous system behaviour
CA3232488A CA3232488A1 (en) 2021-09-15 2022-09-15 System and method for training an autoencoder to detect anomalous system behaviour

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
GB2113180.0A GB2614026A (en) 2021-09-15 2021-09-15 System and method for training an autoencoder to detect anomalous system behaviour

Publications (2)

Publication Number Publication Date
GB202113180D0 GB202113180D0 (en) 2021-10-27
GB2614026A true GB2614026A (en) 2023-06-28

Family

ID=78114126

Family Applications (1)

Application Number Title Priority Date Filing Date
GB2113180.0A Pending GB2614026A (en) 2021-09-15 2021-09-15 System and method for training an autoencoder to detect anomalous system behaviour

Country Status (1)

Country Link
GB (1) GB2614026A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115469227B (en) * 2022-09-14 2024-04-12 中南大学 Aggregation variation self-encoder and dynamic regular lithium battery abnormality detection method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200379454A1 (en) * 2019-05-31 2020-12-03 Panasonic Intellectual Property Management Co., Ltd. Machine learning based predictive maintenance of equipment
WO2021059302A2 (en) * 2019-09-27 2021-04-01 Tata Consultancy Services Limited Method and system for diagnosing anomaly in a manufacturing plant
US20210110262A1 (en) * 2019-10-14 2021-04-15 Honda Research Institute Europe Gmbh Method and system for semi-supervised deep anomaly detection for large-scale industrial monitoring systems based on time-series data utilizing digital twin simulation data
US20210326759A1 (en) * 2020-04-15 2021-10-21 SparkCognition, Inc. Detection of deviation from an operating state of a device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200379454A1 (en) * 2019-05-31 2020-12-03 Panasonic Intellectual Property Management Co., Ltd. Machine learning based predictive maintenance of equipment
WO2021059302A2 (en) * 2019-09-27 2021-04-01 Tata Consultancy Services Limited Method and system for diagnosing anomaly in a manufacturing plant
US20210110262A1 (en) * 2019-10-14 2021-04-15 Honda Research Institute Europe Gmbh Method and system for semi-supervised deep anomaly detection for large-scale industrial monitoring systems based on time-series data utilizing digital twin simulation data
US20210326759A1 (en) * 2020-04-15 2021-10-21 SparkCognition, Inc. Detection of deviation from an operating state of a device

Also Published As

Publication number Publication date
GB202113180D0 (en) 2021-10-27

Similar Documents

Publication Publication Date Title
Shen et al. Hybrid multi-mode machine learning-based fault diagnosis strategies with application to aircraft gas turbine engines
Chen et al. A risk-averse remaining useful life estimation for predictive maintenance
Ko et al. Machine learning-based anomaly detection via integration of manufacturing, inspection and after-sales service data
JP5306902B2 (en) System and method for high performance condition monitoring of asset systems
Chao et al. Hybrid deep fault detection and isolation: Combining deep neural networks and system performance models
Lapira Fault detection in a network of similar machines using clustering approach
WO2016040085A1 (en) Gas turbine failure prediction utilizing supervised learning methodologies
Brandsæter et al. Efficient on-line anomaly detection for ship systems in operation
CA3232488A1 (en) System and method for training an autoencoder to detect anomalous system behaviour
EP4152210A1 (en) System and method for training an autoencoder to detect anomalous system behaviour
GB2614026A (en) System and method for training an autoencoder to detect anomalous system behaviour
Côme et al. Aircraft engine fleet monitoring using self-organizing maps and edit distance
Jiang et al. A timeseries supervised learning framework for fault prediction in chiller systems
Vanem et al. Cluster-based anomaly detection in condition monitoring of a marine engine system
Martins et al. Prediction maintenance based on vibration analysis and deep learning–A case study of a drying press supported on a hidden Markov model
GB2612319A (en) System and method for detecting anomalous system behaviour
Schadler et al. Fault detection using online selected data and updated regression models
Sankavaram et al. A prognostic framework for health management of coupled systems
Sepulvene et al. Analysis of machine learning techniques in fault diagnosis of vehicle fleet tracking modules
Last et al. Condition-based maintenance with multi-target classification models
Aremu et al. Machine learning-based embedding for discontinuous time series machine data
Zhao A probabilistic approach for prognostics of complex rotary machinery systems
Losi et al. Methodology to Monitor Early Warnings Before Gas Turbine Trip
EP4174602A1 (en) System and method for detecting anomalous system behaviour
Shashoa et al. Feature Selection for Fault Diagnosis Using Principal Component Analysis