Diffusion Model for Unsupervised Out-of-Distribution Time Series Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing machine learning models face challenges in unsupervised out-of-distribution (OOD) detection for time series data, particularly when unlabeled in-distribution data is available, as they often require well-defined classes and ample annotated data, which are not always met in real-world applications.

Innovation Solution

The use of a diffusion machine learning model that learns a mapping to a manifold, allowing for unsupervised OOD detection by comparing the distance between input time series and reconstructed time series, leveraging domain-specific side information to improve detection accuracy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If supervised OOD detection is used with representative out-of-distribution samples, then detection performance is improved, but data availability and annotation requirements worsen

Engineering Contradiction:
ImproveOOD detection performanceVSAvoidlabeled data requirements
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The system uses unlabeled in-distribution data to train the diffusion model, which then automatically detects OOD samples through reconstruction error without requiring external labeled OOD data or manual annotations. The model serves itself by leveraging the statistical properties of the training distribution to identify anomalies.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

Instead of training a classifier to directly identify OOD samples (supervised approach), the patent inverts the approach by training a diffusion model on in-distribution data and using reconstruction error as the OOD indicator. Good OOD detection is achieved by poor reconstruction performance on OOD samples.

Inventive Principle:
Principle #13The other way round (Inversion)

2Measurement precision

If in-distribution data with well-defined classes and class annotations is used, then OOD detection accuracy is improved, but data preparation complexity and cost worsen

Engineering Contradiction:
ImproveOOD detection accuracyVSAvoiddata preparation complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The system eliminates the need for manual class annotation by using unlabeled in-distribution data. The diffusion model automatically learns the data distribution and uses reconstruction error to identify OOD samples, making the system self-sufficient without external annotation resources.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent extracts only the essential requirement for OOD detection - access to in-distribution data - while removing the burdensome requirements for well-defined classes and detailed annotations. This extraction simplifies the data preparation process while maintaining detection effectiveness.

Inventive Principle:
Principle #2Taking out (Extraction)

3Quantity of substance

If diffusion model reconstruction error is used for OOD detection, then labeled data requirements are reduced, but computational complexity increases

Engineering Contradiction:
Improvelabeled data requirementsVSAvoidcomputational complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The diffusion model acts as an intermediary that transforms the OOD detection problem from a classification task requiring labeled data into a reconstruction task using only unlabeled in-distribution data. The model mediates between the input samples and the OOD detection objective through its denoising process.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent changes the fundamental parameter being measured from classification confidence (supervised methods) to reconstruction error (diffusion model output). This parameter change enables unsupervised OOD detection while the computational complexity is managed through efficient diffusion model implementation and early stopping strategies.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20250103951A1Machine learning using a diffusion model for out-of-distribution detection of time series data
Publication Date: 2025.03.27 ZSCALER INC
  • US20250103951A1 patent drawing
  • US20250103951A1 patent drawing
  • US20250103951A1 patent drawing

AI summary

Systems and methods for using a diffusion machine learning model for out-of-distribution (OOD) detection of time series data include steps of receiving an input time series; causing random imputations in the input time series to provide an imputed time series; processing the imputed time series with a diffusion model that has been parameterized on a given in-distribution time series to obtain a reconstructed time series; and comparing the reconstructed time series with the input time series to determine whether the input time series is out-of-distribution with the in-distribution time series. In particular, the present disclosure includes a novel approach for using a diffusion model of OOD detection which does not require labels for OOD data.