# US 2020/0394186 A1 · Nlp-based context-aware log mining for troubleshooting

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

- Number: US 2020/0394186 A1
- Document ID: US20200394186A1
- Status: Published application
- Kind: A1
- Application number: 16/437,989
- Filed: 2019-06-11
- Published: 2020-12-17
- Earliest claimed: 2019-06-11
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: GIACOMO DOMENICONI; EUN KYUNG LEE; ALESSANDRO MORARI
- Web page: https://patentgrep.com/patent/US20200394186A1

## CPC

- G06F 16/2465: {Query processing support for facilitating data mining operations in structured databases}
- G06F 16/313: {Selection or weighting of terms for indexing}
- G06F 16/3334: {Selection or weighting of terms from queries, including natural language queries}
- G06F 16/3344: {using natural language analysis}
- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F 40/205: Parsing
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0499: Feedforward networks
- G06N 3/08: Learning methods
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for context-aware data mining of a text document includes receiving a list of words parsed and preprocessed from an input query; computing a related distributed embedding representation for each word in the list of words using a word embedding model of the text document being queried; aggregating the related distributed embedding representations of all words in the list of words to represent the input query with a single embedding, by using one of an average of all the related distributed embedding representations or a maximum of all the related distributed embedding representations; retrieving a ranked list of document segments of N lines that are similar to the aggregated word embedding representation of the query, where N is a positive integer provided by the user; and returning the list of retrieved segments to a user.

## Claims

### Claim 1

A method of context-aware data mining of a text document, comprising the steps of:
receiving a list of words parsed and preprocessed from an input query;
computing a related distributed embedding representation for each word in the list of words using a word embedding model of the text document being queried;
aggregating the related distributed embedding representations of all words in the list of words to represent the input query with a single embedding;
retrieving a ranked list of document segments of N lines that are similar to the aggregated word embedding representation of the query, and
returning the list of retrieved segments to a user.

### Claim 2 (depends on 1)

The method of claim 1, wherein aggregating the related distributed embedding representations is performed using one of an average of all the related distributed embedding representations or a maximum of all the related distributed embedding representations.

### Claim 3 (depends on 1)

The method of claim 1, wherein N is a positive integer provided by the user.

### Claim 4 (depends on 1)

The method of claim 1, further comprising training the word embedding model of the text document, including the steps of:
parsing and preprocessing the text document and producing a tokenized word list;
defining a word dictionary from the tokenized word list, wherein the word dictionary includes at least some of the tokens in the tokenized word list; and
training the word embedding model, wherein the word embedding model is a neural network model that represents each word or line in the word dictionary by a vector.

### Claim 5 (depends on 4)

The method of claim 4, wherein parsing and preprocessing the text document comprises the steps of:
removing all punctuation and a preamble from each line in the text document;
parsing numeric data;
tokenizing the text document in words to form a tokenized word list, wherein a token is one of a single word, an N-gram of N consecutive words, or an entire line of the document; and
returning the tokenized word list.

### Claim 6 (depends on 5)

The method of claim 5, wherein the text document is a computer system log, and the numeric data includes decimal numbers and hexadecimal addresses.

### Claim 7 (depends on 1)

The method of claim 1, further comprising parsing and preprocessing the input query by
removing all punctuation from the input query,
parsing numeric data,
tokenizing the input query in words to produce a tokenized word list, wherein a token is one of a single word, an N-gram of N consecutive words, or an entire line of the input query, and
returning the tokenized word list.

### Claim 8

The method of claim I, wherein retrieving a ranked list of document segments of N lines that are similar to the aggregated word embedding representation of the query includes comparing the aggregated word embedding representation of the query with the word embedding model of the text document using a similarity metric, and returning those segments of the word embedding model of the text document whose similarity to the aggregated word embedding representation of the query is greater than a predetermined threshold, and ranking the retrieved document segments according to the similarities.

### Claim 9

A method of context-aware data mining of a text document, comprising the steps of:
parsing and preprocessing the text document and producing a tokenized word list;
defining a word dictionary from the tokenized word list, wherein the word dictionary includes at least some of the tokens in the tokenized word list; and
training the word embedding model, wherein the word embedding model is a neural network model that represents each word or line in the word dictionary by a vector,
wherein parsing and preprocessing the text document comprises the steps of:
removing all punctuation and a preamble from each line in the text document;
parsing numeric data;
tokenizing the text document in words to form a tokenized word list, wherein a token is one of a single word, an N-gram of N consecutive words, or an entire line of the document; and
returning the tokenized word list.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
receiving a list of words parsed and preprocessed from an input query;
computing a related distributed embedding representation for each word using the word embedding model of the text document being queried;
aggregating the related distributed embedding representations of all words in the list of words to represent the query with a single embedding;
retrieving a ranked list of document segments of N lines that are similar to the aggregated word embedding representation of the query; and
returning the list of retrieved segments to a user.

### Claim 11 (depends on 10)

The method of claim 10, further comprising parsing and preprocessing the input query by
removing all punctuation from the input query,
parsing numeric data,
tokenizing the input query in words to produce a tokenized word list, wherein a token is one of a single word, an N-gram of N consecutive words, or an entire line of the input query, and
returning the tokenized word list.

### Claim 12 (depends on 10)

The method of claim 10, wherein retrieving a ranked list of document segments of N lines that are similar to the aggregated word embedding representation of the query includes comparing the aggregated word embedding representation of the query with the word embedding model of the text document using a similarity metric, and returning those segments of the word embedding model of the text document whose similarity to the aggregated word embedding representation of the query is greater than a predetermined threshold, and ranking the retrieved document segments according to the similarities.

### Claim 13 (depends on 9)

The method of claim 9, wherein the text document is a computer system log, and the numeric data includes decimal numbers and hexadecimal addresses.

### Claim 14 (depends on 10)

The method of claim 10, wherein aggregating the related distributed embedding representations is performed using one of an average of all the related distributed embedding representations or a maximum of all the related distributed embedding representations.

### Claim 15 (depends on 10)

The method of claim 10, wherein N is a positive integer provided by the user.

### Claim 16

A program storage device readable by a computer, tangibly embodying a program of instructions executable by the computer to perform the method steps for context-aware data mining of a text document, comprising the steps of:
receiving a list of words parsed and preprocessed from an input query;
computing a related distributed embedding representation for each word in the list of words using a word embedding model of the text document being queried;
aggregating the related distributed embedding representations of all words in the list of words to represent the input query with a single embedding, by using one of an average of all the related distributed embedding representations or a maximum of all the related distributed embedding representations;
retrieving a ranked list of document segments of N lines that are similar to the aggregated word embedding representation of the query, wherein N is a positive integer provided by the user; and
returning the list of retrieved segments to a user.

### Claim 17 (depends on 16)

The computer readable program storage device of claim 16, wherein the method further comprises training the word embedding model of the text document, including the steps of:
parsing and preprocessing the text document and producing a tokenized word list;
defining a word dictionary from the tokenized word list, wherein the word dictionary includes at least some of the tokens in the tokenized word list; and
training the word embedding model, wherein the word embedding model is a neural network model that represents each word or line in the word dictionary by a vector,
wherein parsing and preprocessing the text document comprises the steps of:
removing all punctuation and a preamble from each line in the text document,
parsing numeric data;
tokenizing the text document in words to form a tokenized word list, wherein a token is one of a single word, an N-gram of N consecutive words, or an entire line of the document; and
returning the tokenized word list.

### Claim 18 (depends on 17)

The computer readable program storage device of claim 17, wherein the text document is a computer system log, and the numeric data includes decimal numbers and hexadecimal addresses.

### Claim 19 (depends on 16)

The computer readable program storage device of claim 16, wherein the method further comprises parsing and preprocessing the input query by
removing all punctuation from the input query,
parsing numeric data;
tokenizing the input query in words to produce a tokenized word list, wherein a token is one of a single word, an N-gram of N consecutive words, or an entire line of the input query; and
returning the tokenized word list.

### Claim 20 (depends on 16)

The computer readable program storage device of claim 16, wherein retrieving a ranked list of document segments of N lines that are similar to the aggregated word embedding representation of the query includes comparing the aggregated word embedding representation of the query with the word embedding model of the text document using a similarity metric, and returning those segments of the word embedding model of the text document whose similarity to the aggregated word embedding representation of the query is greater than a predetermined threshold, and ranking the retrieved document segments according to the similarities.
