# US 2021/0287110 A1 · Anomaly detection in a data processing system

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

- Number: US 2021/0287110 A1
- Document ID: US20210287110A1
- Status: Published application
- Kind: A1
- Application number: 16/816,346
- Filed: 2020-03-12
- Published: 2021-09-16
- Earliest claimed: 2020-03-12
- Assignees: NXP B.V.
- Applicants: NXP B.V.
- Inventors: JAN HOOGERBRUGGE
- Web page: https://patentgrep.com/patent/US20210287110A1

## CPC

- G06N 5/04: Inference or reasoning models
- G06F 11/3452: {Performance evaluation by statistical analysis}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06N 3/08: Learning methods
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data processing system and a method for detecting an anomaly in the data processing system are provided. The method includes receiving a plurality of program counter values from a processing core of the data processing system. Each of the plurality of program counter values corresponds to an instruction being executed in the data processing system. A histogram is constructed using the plurality of program counter values. The histogram is provided to a machine learning (ML) model and used for training the ML model. If training has already been accomplished, the histogram is provided during inference operation of the ML model. The ML model and the histogram are used to detect an anomaly in the data processing system. If an anomaly is detected, an indication of the anomaly may be provided.

## Claims

### Claim 1

A method for detecting an anomaly in a data processing system, the method comprising:
receiving a plurality of program counter (PC) values from the data processing system, each of the plurality of PC values corresponding to an instruction being executed in a processing core of the data processing system;
constructing a histogram using the plurality of PC values;
providing the histogram to a machine learning (ML) model;
using the ML model, detecting an anomaly in the data processing system; and
providing an indication of the anomaly.

### Claim 2 (depends on 1)

The method of claim 1, wherein the histogram corresponds to a time interval of program execution of the processing core.

### Claim 3 (depends on 1)

The method of claim 1, wherein the histogram is used to train the ML model.

### Claim 4 (depends on 1)

The method of claim 1, wherein providing the histogram to a ML model further comprises providing the histogram to the ML model during inference operation of the ML model.

### Claim 5 (depends on 1)

The method of claim 1, wherein the ML model comprises a support vector machine algorithm.

### Claim 6 (depends on 1)

The method of claim 1, further comprising hashing the plurality of PC values and providing the hashed PC values to the histogram.

### Claim 7 (depends on 6)

The method of claim 6, wherein hashing the plurality of PC values further comprises hashing a first plurality of least significant bits of a PC value with a second plurality of most significant bits of the PC value.

### Claim 8 (depends on 1)

The method of claim 1, further comprising receiving the plurality of PC values through a tracing mechanism of a processing core of the data processing system.

### Claim 9 (depends on 8)

The method of claim 8, wherein the tracing mechanism further comprises applying a trace decoder to an encoded trace stream to retrieve a PC value.

### Claim 10

A method for detecting an anomaly in a data processing system, the method comprising:
receiving a plurality of program counter (PC) values from the data processing system, each of the plurality of PC values corresponding to an instruction being executed in a processing core of the data processing system;
constructing a plurality of histograms using the plurality of PC values, wherein each of the plurality of histograms corresponding to a time interval of program execution of the processing core;
providing the plurality of histograms to a machine learning (ML) model;
using the ML model, detecting an anomaly in the data processing system; and
providing an indication of the anomaly.

### Claim 11 (depends on 10)

The method of claim 10, wherein providing the plurality of histograms to the ML model further comprises using the plurality of histograms to train the ML model.

### Claim 12 (depends on 10)

The method of claim 10, wherein providing the plurality of histograms to the ML model further comprises providing the plurality of histograms to the ML model during inference operation of the ML model.

### Claim 13 (depends on 10)

The method of claim 10, further comprising hashing the plurality of PC values prior to providing the histogram to the ML model.

### Claim 14 (depends on 13)

The method of claim 13, wherein hashing the plurality of PC values further comprises hashing a first plurality of least significant bits of a program counter value with a second plurality of most significant bits of the program counter value.

### Claim 15 (depends on 1)

The method of claim 1, further comprising receiving the plurality of PC values through a tracing mechanism of a processing core of the data processing system.

### Claim 16

A data processing system, comprising:
one or more processor cores for executing a program comprising a plurality of instructions; and
an anomaly detector coupled to the one or more processor cores, the anomaly detector comprising:
a program counter (PC) histogram block coupled to receive a plurality of PC values from the one or more processor cores, each of the plurality of PC values corresponding to an executed instruction, the PC histogram block for constructing a histogram using the plurality of PC values;
a machine learning (ML) model coupled to receive the histogram from the PC histogram block, the ML model detecting an anomaly in the program using the histogram.

### Claim 17 (depends on 16)

The data processing system of claim 16, wherein the ML model comprises a one-class support vector machine algorithm.

### Claim 18 (depends on 16)

The data processing system of claim 16, further comprising a plurality of histograms, each of the plurality of histograms corresponding to a time interval of program execution of the one or more processor cores.

### Claim 19 (depends on 16)

The data processing system of claim 16, further comprising a program tracing mechanism, wherein the plurality of PC values is received through the program tracing mechanism.

### Claim 20 (depends on 19)

The data processing system of claim 19, further comprising a trace decoder for decoding an encoded trace stream to retrieve a program counter value.
