[Paper Review] Normalizing flows for novelty detection in industrial time series data
This paper proposes using normalizing flows—specifically Masked Autoregressive Flows (MAF) and FFJORD with MADE constraints—for novelty detection in industrial time series. By learning the normal data distribution via invertible transformations, the models compute exact likelihood scores to detect anomalies, outperforming Local Outlier Factor (LOF) on both synthetic and real motor current data, achieving near-perfect accuracy on real-world industrial time series.
Flow-based deep generative models learn data distributions by transforming a simple base distribution into a complex distribution via a set of invertible transformations. Due to the invertibility, such models can score unseen data samples by computing their exact likelihood under the learned distribution. This makes flow-based models a perfect tool for novelty detection, an anomaly detection technique where unseen data samples are classified as normal or abnormal by scoring them against a learned model of normal data. We show that normalizing flows can be used as novelty detectors in time series. Two flow-based models, Masked Autoregressive Flows and Free-form Jacobian of Reversible Dynamics restricted by autoregressive MADE networks, are tested on synthetic data and motor current data from an industrial machine and achieve good results, outperforming a conventional novelty detection method, the Local Outlier Factor.
Motivation & Objective
- To investigate whether flow-based deep generative models can effectively detect anomalies in industrial time series without requiring anomalous training data.
- To evaluate the performance of normalizing flows—specifically MAF and FFJORD with MADE constraints—against conventional methods like Local Outlier Factor (LOF) in novelty detection.
- To demonstrate the capability of flow models to generate realistic synthetic normal time series data for downstream use in defect analysis and anomaly simulation.
- To explore the feasibility of using flow models to learn the transition from normal to abnormal states, enabling failure mode analysis in industrial systems.
Proposed method
- Employed Masked Autoregressive Flows (MAF) with MADE architectures to model time series data as a sequence of invertible, autoregressive transformations from a simple base distribution.
- Applied Free-form Jacobian of Reversible Dynamics (FFJORD) with MADE constraints to learn continuous-time normalizing flows, enabling flexible and differentiable modeling of temporal dependencies.
- Used likelihood computation via the change-of-variable formula to score unseen time series samples, where low likelihood indicates potential novelty.
- Trained models exclusively on normal data, then evaluated on held-out normal and anomalous samples to assess novelty detection performance.
- Applied mean-centering to both normal and abnormal data to isolate temporal correlation differences, improving model generalization.
- Generated new synthetic time series by sampling from the learned latent distribution and passing through the inverse flow transformation.
Experimental results
Research questions
- RQ1Can normalizing flows effectively detect anomalies in industrial time series when trained only on normal data?
- RQ2How do MAF and FFJORD with MADE constraints compare to conventional methods like LOF in novelty detection performance on time series?
- RQ3To what extent can flow-based models capture and generate realistic temporal correlations in industrial time series?
- RQ4Can flow models detect abnormal data by learning deviations in temporal autocorrelation patterns from the normal distribution?
- RQ5Is it feasible to use trained flow models to simulate abnormal data transitions for failure mode analysis in industrial systems?
Key findings
- The MAF and FFJORD+MADE models outperformed Local Outlier Factor (LOF) in novelty detection on both synthetic and real industrial time series data.
- On real motor current data, both flow-based models achieved near-perfect classification performance, with a true positive rate of 100% and a false positive rate of 0.5% or lower.
- The FFJORD+MADE model exhibited instability when applied to abnormal data after sufficient training, indicating divergence from the learned normal distribution.
- Transformed abnormal samples deviated significantly from white noise in the latent space, confirming the models' ability to distinguish anomalous patterns.
- The likelihood scores of normal and abnormal samples were well-separated, enabling a decision boundary that achieves 0% false positive and 100% true positive rates.
- The trained models successfully generated synthetic time series that matched the empirical autocorrelation of real normal data, demonstrating effective distribution learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.