Log Entry Encoding via Trigonometric Transformations

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current natural language processing (NLP) methods struggle to accurately handle numerical data in database query logs, leading to decreased accuracy in anomaly detection and other tasks due to the inability to capture semantics and handle out-of-vocabulary words.

Innovation Solution

A novel approach that uses dedicated transformations to extract information from log-specific fields, converting numbers to scientific notation and applying trigonometric transformations for timestamps, allowing NLP methods to treat log entries as natural language sentences for improved encoding and anomaly detection.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If NLP methods are used to encode log entries, then textual data encoding is effective, but accuracy deteriorates when numerical data is introduced

Engineering Contradiction:
Improveencoding accuracyVSAvoidperformance with numerical data
Core Design Contradiction:
Measurement precisionVSReliability

Solution Approach 1:

The patent transforms numerical parameters into angular representations using sine and cosine functions. Specifically, numeric values are converted to angle representations where the original number is encoded as sin(2πx) and cos(2πx), transforming the parameter space from linear numerical values to circular angular coordinates. This allows NLP models to capture numerical semantics including magnitude, order, and periodicity relationships.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent introduces angular representations as an intermediary between numerical data and NLP processing. Instead of directly feeding numerical values to the NLP model, the numbers are first transformed into angular embeddings that preserve numerical relationships. This intermediary representation enables the NLP model to understand numerical concepts without being sensitive to the specific numerical format.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of manufacture

If traditional encoding methods are used, then simplicity is maintained, but inability to capture semantics decreases ML performance

Engineering Contradiction:
Improveencoding simplicityVSAvoidsemantic capture accuracy
Core Design Contradiction:
Ease of manufactureVSMeasurement precision

Solution Approach 1:

The patent transforms categorical parameters into angular representations similar to numerical parameters. Categorical values are mapped to angles around a circle, where semantically similar categories are positioned closer together in the angular space. This allows the NLP model to capture semantic relationships between categories while maintaining a unified encoding approach.

Inventive Principle:
Principle #35Parameter changes

3Ease of operation

If standard NLP tokenization is used, then text processing is straightforward, but out-of-vocabulary words cannot be handled

Engineering Contradiction:
Improveprocessing simplicityVSAvoidhandling new data
Core Design Contradiction:
Ease of operationVSAdaptability or versatility

Solution Approach 1:

The patent transforms discrete categorical values into continuous angular representations. Instead of relying on a fixed vocabulary where each category has a discrete index, the system maps categories to continuous angular positions. This allows the model to generalize to unseen categories by positioning them appropriately in the angular space based on their semantic relationships to known categories.

Inventive Principle:
Principle #35Parameter changes

4Loss of information

If numerical values are directly fed to NLP models, then data representation is direct, but robustness of numerical representation is reduced

Engineering Contradiction:
Improveinformation representationVSAvoidnumerical representation robustness
Core Design Contradiction:
Loss of informationVSReliability

Solution Approach 1:

The patent transforms linear numerical parameters into angular parameters using trigonometric functions. The transformation x → (sin(2πx), cos(2πx)) maps numerical values to points on a unit circle, preserving the periodicity and relative distance relationships. This angular representation is more robust because it naturally handles numerical overflow, underflow, and maintains semantic relationships even when absolute values vary.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20250021759A1Encoding log-specific attributes with NLP models
Publication Date: 2025.01.16 ORACLE INT CORP
  • US20250021759A1 patent drawing
  • US20250021759A1 patent drawing
  • US20250021759A1 patent drawing

AI summary

Herein is natural language processing (NLP) to detect an anomalous log entry using a language model that infers an encoding of the log entry from novel generation of numeric lexical tokens. In an embodiment, a computer extracts an original numeric lexical token from a variable sized log entry. Substitute numeric lexical token(s) that represent the original numeric lexical token are generated, such as with a numeric exponent or by trigonometry. The log entry does not contain the substitute numeric lexical token. A novel sequence of lexical tokens that represents the log entry and contains the substitute numeric lexical token is generated. The novel sequence of lexical tokens does not contain the original numeric lexical token. The computer hosts and operates a machine learning model that generates, based on the novel sequence of lexical tokens that represents the log entry, an inference that characterizes the log entry with unprecedented accuracy.