# US 2020/0394496 A1 · Detecting Non-Anomalous and Anomalous Sequences of Computer-Executed Operations

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

- Number: US 2020/0394496 A1
- Document ID: US20200394496A1
- Status: Published application
- Kind: A1
- Application number: 16/436,952
- Filed: 2019-06-11
- Published: 2020-12-17
- Earliest claimed: 2019-06-11
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: GUY LEV; Boris Rozenberg; YEHOSHUA SAGRON
- Web page: https://patentgrep.com/patent/US20200394496A1

## CPC

- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06F 2218/00: Aspects of pattern recognition specially adapted for signal processing
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Detecting sequences of computer-executed operations, including training a BLSTM to determine forward and backward probabilities of encountering each computer-executed operations within a training set of consecutive computer-executed operations in forward and backward execution directions of the operations, and identifying reference sequences of operations within the training set where for each given one of the sequences the forward probability of encountering a first computer-executed operation in the given sequence is below a predefined lower threshold, the forward probability of encountering a last computer-executed operation in the given sequence is above a predefined upper threshold, the backward probability of encountering the last computer-executed operation in the given sequence is below the predefined lower threshold, and the backward probability of encountering the first computer-executed operation in the given sequence is above the predefined upper threshold, and where the predefined lower threshold is below the predefined upper threshold.

## Claims

### Claim 1

A method for detecting sequences of computer-executed operations, the method comprising:
training a bidirectional long short-term memory recurrent neural network to determine probabilities of encountering each of a plurality of consecutive computer-executed operations within a training set of consecutive computer-executed operations, wherein for each of the computer-executed operations the probabilities include
a forward probability of encountering the computer-executed operation in a forward execution direction of the consecutive computer-executed operations, and
a backward probability of encountering the computer-executed operation in a backward execution direction of the consecutive computer-executed operations; and
identifying, using any of the forward probabilities and any of the backward probabilities, a plurality of reference sequences of consecutive computer-executed operations within the training set of consecutive computer-executed operations,
wherein for each given one of the sequences
the forward probability of encountering a first computer-executed operation in the given sequence is below a predefined lower threshold,
the forward probability of encountering a last computer-executed operation in the given sequence is above a predefined upper threshold,
the backward probability of encountering the last computer-executed operation in the given sequence is below the predefined lower threshold, and
the backward probability of encountering the first computer-executed operation in the given sequence is above the predefined upper threshold, and
wherein the predefined lower threshold is below the predefined upper threshold.

### Claim 2 (depends on 1)

The method according to claim 1 and further comprising:
identifying a candidate sequence of consecutive computer-executed operations within an evaluation set of consecutive computer-executed operations; and
designating the candidate sequence as anomalous if the candidate sequence is absent from the reference sequences,
wherein a probability of encountering a first computer-executed operation in the candidate sequence in a forward execution direction of the evaluation set is below the predefined lower threshold,
wherein a probability of encountering a last computer-executed operation in the candidate sequence in the forward execution direction of the evaluation set is above the predefined upper threshold,
wherein a probability of encountering the last computer-executed operation in the candidate sequence in a backward execution direction of the evaluation set is below the predefined lower threshold, and
wherein a probability of encountering the first computer-executed operation in the candidate sequence in the backward execution direction of the evaluation set is above the predefined upper threshold.

### Claim 3 (depends on 2)

The method according to claim 2 wherein
the training comprises determining a probability PFINAL of encountering a given computer-executed operation in view of computer-executed operations that come before and after the given computer-executed operation, and
the designating comprises designating the candidate sequence as anomalous if, in addition to the candidate sequence being absent from the reference sequences, the probability PFINAL of encountering any given one of the computer-executed operations within the candidate sequence is below a predetermined threshold.

### Claim 4 (depends on 1)

The method according to claim 1 wherein the training comprises
determining a probability PFINAL of encountering each of the computer-executed operations in view of computer-executed operations that come before and after the computer-executed operation,
calculating an error for each of the forward probability, the backward probability, and the PFINAL probability for any of the computer-executed operations; and
applying a backpropagation algorithm to update network weights of the bidirectional long short-term memory recurrent neural network to minimize all the errors.

### Claim 5 (depends on 2)

The method according to claim 2 wherein the designating is performed substantially concurrently with execution of any of the computer-executed operations of the evaluation set.

### Claim 6 (depends on 2)

The method according to claim 2 wherein each of the sets are of computer-executed operations performed by a computer software application.

### Claim 7 (depends on 2)

The method according to claim 2 wherein each of the sets are of computer-executed operations performed by a first computer in support of interactions with a second computer.

### Claim 8

A system for detecting sequences of computer-executed operations, the system comprising:
a neural network manager configured to train a bidirectional long short-term memory recurrent neural network to determine probabilities of encountering each of a plurality of consecutive computer-executed operations within a training set of consecutive computer-executed operations, wherein for each of the computer-executed operations the probabilities include
a forward probability of encountering the computer-executed operation in a forward execution direction of the consecutive computer-executed operations, and
a backward probability of encountering the computer-executed operation in a backward execution direction of the consecutive computer-executed operations; and
a sequence detector configured to identify, using any of the forward probabilities and any of the backward probabilities, a plurality of reference sequences of consecutive computer-executed operations within the training set of consecutive computer-executed operations,
wherein for each given one of the sequences
the forward probability of encountering a first computer-executed operation in the given sequence is below a predefined lower threshold,
the forward probability of encountering a last computer-executed operation in the given sequence is above a predefined upper threshold,
the backward probability of encountering the last computer-executed operation in the given sequence is below the predefined lower threshold, and
the backward probability of encountering the first computer-executed operation in the given sequence is above the predefined upper threshold, and
wherein the predefined lower threshold is below the predefined upper threshold.

### Claim 9 (depends on 8)

The system according to claim 8 and further comprising a computer operations monitor configured to
employ the sequence detector to identify a candidate sequence of consecutive computer-executed operations within an evaluation set of consecutive computer-executed operations, and
designate the candidate sequence as anomalous if the candidate sequence is absent from the reference sequences,
wherein a probability of encountering a first computer-executed operation in the candidate sequence in a forward execution direction of the evaluation set is below the predefined lower threshold,
wherein a probability of encountering a last computer-executed operation in the candidate sequence in the forward execution direction of the evaluation set is above the predefined upper threshold,
wherein a probability of encountering the last computer-executed operation in the candidate sequence in a backward execution direction of the evaluation set is below the predefined lower threshold, and
wherein a probability of encountering the first computer-executed operation in the candidate sequence in the backward execution direction of the evaluation set is above the predefined upper threshold.

### Claim 10 (depends on 9)

The system according to claim 9 wherein
the bidirectional long short-term memory recurrent neural network is configured to determining a probability PFINAL of encountering a given computer-executed operation in view of computer-executed operations that come before and after the given computer-executed operation, and
the computer operations monitor is configured to designate the candidate sequence as anomalous if, in addition to the candidate sequence being absent from the reference sequences, the probability PFINAL of encountering any given one of the computer-executed operations within the candidate sequence is below a predetermined threshold.

### Claim 11 (depends on 8)

The system according to claim 8 wherein the neural network manager is configured to train the bidirectional long short-term memory recurrent neural network to
determine a probability PFINAL of encountering each of the computer-executed operations in view of computer-executed operations that come before and after the computer-executed operation,
calculate an error for each of the forward probability, the backward probability, and the PFINAL probability for any of the computer-executed operations, and
apply backpropagation to update network weights of the bidirectional long short-term memory recurrent neural network to minimize the errors.

### Claim 12 (depends on 9)

The system according to claim 9 wherein the computer operations monitor designates the candidate sequence as anomalous substantially concurrently with execution of any of the computer-executed operations of the evaluation set.

### Claim 13 (depends on 9)

The system according to claim 9 wherein each of the sets are of computer-executed operations performed by a computer software application.

### Claim 14 (depends on 9)

The system according to claim 9 wherein each of the sets are of computer-executed operations performed by a first computer in support of interactions with a second computer.

### Claim 15

A computer program product for detecting sequences of computer-executed operations, the computer program product comprising:
a non-transitory, computer-readable storage medium; and
computer-readable program code embodied in the storage medium, wherein the computer-readable program code is configured to
train a bidirectional long short-term memory recurrent neural network to determine probabilities of encountering each of a plurality of consecutive computer-executed operations within a training set of consecutive computer-executed operations, wherein for each of the computer-executed operations the probabilities include
a forward probability of encountering the computer-executed operation in a forward execution direction of the consecutive computer-executed operations, and
a backward probability of encountering the computer-executed operation in a backward execution direction of the consecutive computer-executed operations, and
identify, using any of the forward probabilities and any of the backward probabilities and
identify, using any of the probabilities, a plurality of reference sequences of consecutive computer-executed operations within the training set of consecutive computer-executed operations,
wherein for each given one of the sequences
the forward probability of encountering a first computer-executed operation in the given sequence is below a predefined lower threshold,
the forward probability of encountering a last computer-executed operation in the given sequence is above a predefined upper threshold,
the backward probability of encountering the last computer-executed operation in the given sequence is below the predefined lower threshold, and
the backward probability of encountering the first computer-executed operation in the given sequence is above the predefined upper threshold, and
wherein the predefined lower threshold is below the predefined upper threshold.

### Claim 16 (depends on 15)

The computer program product according to claim 15 wherein the computer-readable program code is configured to
identify a candidate sequence of consecutive computer-executed operations within an evaluation set of consecutive computer-executed operations, and
designate the candidate sequence as anomalous if the candidate sequence is absent from the reference sequences,
wherein a probability of encountering a first computer-executed operation in the candidate sequence in a forward execution direction of the evaluation set is below the predefined lower threshold,
wherein a probability of encountering a last computer-executed operation in the candidate sequence in the forward execution direction of the evaluation set is above the predefined upper threshold,
wherein a probability of encountering the last computer-executed operation in the candidate sequence in a backward execution direction of the evaluation set is below the predefined lower threshold, and
wherein a probability of encountering the first computer-executed operation in the candidate sequence in the backward execution direction of the evaluation set is above the predefined upper threshold.

### Claim 17 (depends on 16)

The computer program product according to claim 16 wherein the computer-readable program code is configured to
determine a probability PFINAL of encountering a given computer-executed operation in view of computer-executed operations that come before and after the given computer-executed operation, and
designate the candidate sequence as anomalous if, in addition to the candidate sequence being absent from the reference sequences, the probability PFINAL of encountering any given one of the computer-executed operations within the candidate sequence is below a predetermined threshold.

### Claim 18 (depends on 15)

The system according to claim 15 wherein the computer-readable program code is configured to train the bidirectional long short-term memory recurrent neural network to
determine a probability PFINAL of encountering a given computer-executed operation in view of computer-executed operations that come before and after the given computer-executed operation,
calculate an error for each of the forward probability, the backward probability, and the PFINAL probability for any of the computer-executed operations, and
apply a backpropagation algorithm to update network weights of the bidirectional long short-term memory recurrent neural network to minimize all the errors.

### Claim 19 (depends on 16)

The computer program product according to claim 16 wherein the computer-readable program code is configured to designate the candidate sequence as anomalous substantially concurrently with execution of any of the computer-executed operations of the evaluation set.

### Claim 20 (depends on 16)

The computer program product according to claim 16 wherein each of the sets are of computer-executed operations performed by a computer software application.
