# US 2025/0147948 A1 · Method and device for detecting anomaly in log data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0147948 A1
- Document ID: US20250147948A1
- Status: Published application
- Kind: A1
- Application number: 18/935,330
- Filed: 2024-11-01
- Published: 2025-05-08
- Earliest claimed: 2023-11-08
- Assignees: Postech Research and Business Development Foundation
- Applicants: Postech Research and Business Development Foundation
- Inventors: Wook-Shin HAN; Sungho PARK; Hyuk-Kyu KANG
- Web page: https://patentgrep.com/patent/US20250147948A1

## CPC

- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The following disclosure relates to a method of detecting an anomaly in log data and includes obtaining first log data by collecting log data from a database and processing the log data in a time axis through a log data manager, reconstructing the first log data into second log data through a transformer, calculating an anomaly score of each time point through the transformer based on a difference between the first log data and the second log data, and detecting an anomaly for each time point through an anomaly detector based on the anomaly score.

## Claims

### Claim 1

A method of detecting an anomaly of log data, the method comprising:
obtaining first log data by collecting log data from a database and processing the log data in a time axis through a log data manager;
reconstructing the first log data into second log data through a transformer;
calculating an anomaly score of each time point through the transformer based on a difference between the first log data and the second log data; and
detecting an anomaly for each time point through an anomaly detector based on the anomaly score.

### Claim 2 (depends on 1)

The method of claim 1, wherein the calculating of the anomaly score of each time point comprises:
quantifying the anomaly score for each time point.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
a method of correcting the anomaly score through an anomaly score integrator using a statistical method.

### Claim 4 (depends on 3)

The method of claim 3, wherein the anomaly score integrator is configured to:
reduce dimensions of the first log data to major dimensions using a principal component analysis to extract a main feature of the first log data.

### Claim 5 (depends on 4)

The method of claim 4, wherein the anomaly score integrator is configured to:
obtain a Mahalanobis distance by obtaining a mean and a covariance of the major dimensions of the first log data and correct the anomaly score based on the Mahalanobis distance.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
classifying a cause of the detected anomaly through an anomaly cause classifier.

### Claim 7 (depends on 1)

The method of claim 1, wherein the detecting of the anomaly comprises:
dynamically setting a threshold value according to a feature of the log data; and
determining an anomaly based on the threshold value.

### Claim 8 (depends on 7)

The method of claim 7, wherein the setting of the threshold value comprises:
adjusting at least one of a weight parameter, the number of major dimensions, and a percentile.

### Claim 9 (depends on 1)

The method of claim 1, wherein, for each time point of the first log data, the transformer is trained to identify association between each time point and peripheral time points.

### Claim 10 (depends on 9)

The method of claim 9, wherein the transformer is trained to reconstruct the first log data into the second log data based on the association.

### Claim 11 (depends on 10)

The method of claim 10, wherein, at each time point, the transformer is trained to calculate an anomaly score based on a difference between the first log data and the second log data and an association discrepancy of each time point of the second log data with peripheral time points.

### Claim 12 (depends on 1)

A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the image processing method of claim 1.

### Claim 13

An electronic device comprising:
a memory configured to store instructions; and
at least one processor,
wherein the instructions, when executed by the at least one processor, cause the electronic device to:
obtain first log data by collecting log data from a database and processing the log data in a time axis through a log data manager,
for each time point of the first log data, reconstruct the first log data into second log data through a transformer, based on peripheral time points of each time point,
calculate an anomaly score of each time point through the transformer based on a difference between the first log data and the second log data, and
detect an anomaly for each time point through an anomaly detector based on the anomaly score.

### Claim 14 (depends on 13)

The electronic device of claim 13, wherein the instructions, when executed by the at least one processor, cause the electronic device to:
quantify the anomaly score for each time point.

### Claim 15 (depends on 13)

The electronic device of claim 13, wherein the instructions, when executed by the at least one processor, cause the electronic device to:
correct the anomaly score through an anomaly score integrator using a statistical method.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein the anomaly score integrator is configured to:
reduce dimensions of the first log data to major dimensions using a principal component analysis to extract a main feature of the first log data.

### Claim 17 (depends on 16)

The electronic device of claim 16, wherein the anomaly score integrator is configured to:
obtain a Mahalanobis distance by obtaining a mean and a covariance of the major dimensions of the first log data and correct the anomaly score based on the Mahalanobis distance.

### Claim 18 (depends on 13)

The electronic device of claim 13, wherein the instructions, when executed by the at least one processor, cause the electronic device to:
classify a cause of the detected anomaly through an anomaly cause classifier.

### Claim 19 (depends on 13)

The electronic device of claim 13, wherein the instructions, when executed by the at least one processor, cause the electronic device to:
dynamically set a threshold value according to a feature of the log data, and
determine an anomaly based on the threshold value.

### Claim 20 (depends on 19)

The electronic device of claim 19, wherein the instructions, when executed by the at least one processor, cause the electronic device to:
adjust at least one of a weight parameter, the number of major dimensions, and a percentile.
