Microcontroller Anomaly Detection Using Incremental PCA

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing anomaly detection methods for microcontrollers in physical systems are inefficient due to high memory usage and complex computations, especially when producing models from data streams with limited memory capacity, and may not effectively distinguish normal from abnormal data.

Innovation Solution

A method involving incremental computation of principal components using covariance-free analysis and modified Gram-Schmidt orthonormalization to create a simple anomaly detection model with a user-defined detection threshold, which can be implemented by a microcontroller, allowing for real-time monitoring and alert generation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional anomaly detection methods (Gaussian mixture model, Z-score) are used, then anomaly detection capability is achieved, but memory occupation and computational complexity increase significantly

Engineering Contradiction:
Improveanomaly detection capabilityVSAvoidcomputational complexity and memory usage
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent extracts only the essential features needed for anomaly detection by computing principal components incrementally and storing only the orthonormal base and detection threshold, discarding redundant data and complex model structures that consume excessive memory and computational resources

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent changes the parameter representation from storing complete data samples or complex probability distributions to storing only the orthonormal base vectors and a scalar detection threshold, fundamentally reducing the memory footprint while maintaining detection capability

Inventive Principle:
Principle #35Parameter changes

2Reliability

If complete learning data is stored for model production, then accurate anomaly detection model is produced, but memory capacity is exceeded

Engineering Contradiction:
Improvemodel accuracyVSAvoidmemory capacity
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent segments the learning process into incremental updates, processing data in small batches and maintaining only compressed representations (orthonormal base) rather than storing complete learning datasets, enabling model production within limited memory constraints

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent creates a compressed copy of the learning data in the form of an orthonormal base that captures the essential variance of the data without requiring storage of the original complete dataset, enabling accurate anomaly detection with minimal memory usage

Inventive Principle:
Principle #26Copying

3Reliability

If complex machine learning algorithms are implemented, then comprehensive anomaly detection is achieved, but implementation on microcontroller becomes difficult

Engineering Contradiction:
Improveanomaly detection comprehensivenessVSAvoidmicrocontroller implementation ease
Core Design Contradiction:
ReliabilityVSEase of manufacture

Solution Approach 1:

The patent replaces expensive, complex machine learning algorithms with simple, computationally inexpensive operations (vector projections and threshold comparisons) that can be easily implemented on resource-constrained microcontrollers, sacrificing some algorithmic complexity for practical deployability

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

Solution Approach 2:

The patent substitutes complex statistical computations (Gaussian mixture models, covariance calculations) with simpler linear algebra operations (orthonormalization, vector projections) that are more suitable for implementation on embedded microcontroller systems with limited floating-point capability

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS20240419159A1Method of generating an anomalies detection model and method of detecting anomalies using such model
Publication Date: 2024.12.19 STMICROELECTRONICS INT NV
  • US20240419159A1 patent drawing
  • US20240419159A1 patent drawing
  • US20240419159A1 patent drawing

AI summary

According to one aspect, a computer-implemented method can be used for producing an anomaly detection model. The method includes obtaining a learning data stream from a physical system, incrementally computing principal components of the learning data stream, performing orthonormalization of the principal components computed so as to obtain an orthonormal base representing the learning data stream, and producing the anomaly detection model including the orthonormal base and a detection threshold defined by a user. The anomaly detection model can then be applied to a physical system.