# US 2017/0293670 A1 · Sequential pattern mining with the micron automata processor

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

- Number: US 2017/0293670 A1
- Document ID: US20170293670A1
- Status: Published application
- Kind: A1
- Application number: 15/198,521
- Filed: 2016-06-30
- Published: 2017-10-12
- Earliest claimed: 2016-04-07
- Assignees: University of Virginia Patent Foundation
- Applicants: University of Virginia Patent Foundation
- Inventors: Ke Wang; Elaheh Sadredini; Kevin Skadron
- Web page: https://patentgrep.com/patent/US20170293670A1

## CPC

- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 5/047: Pattern matching networks; Rete networks
- G06V 10/955: {using specific electronic processors}
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A hardware accelerated solution of the SPM (Sequential Pattern Mining) is proposed using Micron's Automata Processor (AP), a hardware implementation of non-deterministic finite automata (NFAs) The Generalized Sequential Pattern (GSP) algorithm for SPM searching exposes massive parallelism, and is therefore well-suited for AP acceleration. The multi puss pruning strategy of the GSP is implemented is the APs fast reconfigurability. A generalized automaton structure is proposed by flattening sequential patterns to simple strings to reduce compilation time and to minimize overhead of reconfiguration. Up to 90× and 29× speedups are achieved by the AP-accelerated GSP on six real-world datasets, when compared with the optimized multicore CPU (Central Processing Unit) and GPU (Graphics Processing Unit) GSP implementations, respectively. The proposed CPU-AP solution also outperforms the state-of-the-art PrefixSpan and SPADE (Sequential PAttern Discovery using Equivalence classes algorithms on multicore CPU by up to 452× and 49× speedups.

## Claims

### Claim 1

A processor for discovering a plurality of hierarchical patterns in large datasets, the processor comprises a plurality of functional elements comprising:
a plurality of state transition elements; and
a plurality of counters,
wherein the processor is capable of fast replacement of symbol sets of the plurality of state transition elements and threshold values of the plurality of counters,
wherein the plurality of counters are configured to work with the plurality of state transition elements to increase space efficiency of automata implementation, and
wherein the plurality of hierarchical patterns include continuous or discontinuous sequences of sets, continuous or discontinuous sequences of sequences, or sets of continuous or discontinuous sequences in the datasets.

### Claim 2 (depends on 1)

The processor according to claim 1, wherein the plurality of state transition elements are based on memory columns implemented in DRAM (Dynamic Random-Access Memory) memory technology.

### Claim 3 (depends on 1)

The processor according to claim 1, wherein the processor is implemented in PCRAM (Phase-Change Random-Access Memory), STTRAM (Spin-Transfer Torque Random-Access Memory), or RRAM (Resistive Random-Access Memory).

### Claim 4 (depends on 1)

The processor according to claim 1, wherein each of the plurality of state transition elements is configured to match a set of multiple-bit signals.

### Claim 5 (depends on 1)

The processor according to claim 1, wherein a group of the plurality of state transition elements is connected to implement a non-deterministic finite automaton (NFA) to match one of the plurality of hierarchical patterns in the huge datasets.

### Claim 6 (depends on 1)

The processor according to claim 1, wherein the plurality of counters are configured to connect to a finite automaton to count the occurrence of one of the plurality of hierarchical patterns in the datasets and make reports or activate the plurality of functional elements when a predetermined threshold is reached.

### Claim 7 (depends on 6)

The processor according to claim 6, wherein a plurality of finite automata are accommodated on a chip and are capable of matching and counting the plurality of hierarchical patterns parallel.

### Claim 8 (depends on 1)

The processor according to claim 1, wherein the processor takes input streams of multiple-bit signals and is capable of processing a plurality of data streams concurrently.

### Claim 9 (depends on 1)

The processor according to claim 1, wherein any of the plurality of functional elements can be configured as a reporting element, wherein the reporting element generates one-bit or multiple-bit signals it matches input streams of multiple-bit signals.

### Claim 10

A method of discovering a plurality of hierarchical patterns in large datasets by a processor, the method comprising steps of:
preprocessing an input dataset for making it compatible with a working interface of the processor; and
designing automata for implementing matching, and counting of the plurality of hierarchical patterns in the datasets,
wherein the plurality of hierarchical patterns include continuous or discontinuous sequences of sets, continuous or discontinuous sequences of sequences, or sets of Continuous or discontinuous sequences in the datasets.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the matching is implemented by finite automata.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the matching is capable of capturing the plurality of hierarchical patterns in the datasets.

### Claim 13 (depends on 11)

The method according to claim 11, wherein each of the plurality of hierarchical patterns is represented by a group of automaton states to match one multiple-bit signal per cycle from input streams of multiple-bit signals.

### Claim 14 (depends on 12)

The method according to claim 12, wherein one or more self-activating states of automata connect to one group of states of automata for multiple-bit signals to hold a position within a potential pattern sequence when one or more mismatches of multiple-bit signals are seen, and hold this position until an end of a transaction, in order to deal with the discontinuous sequences.

### Claim 15 (depends on 10)

The method according to claim 10, wherein the sets are converted to the discontinuous sequences by sorting items of each transaction with a predefined order.

### Claim 16 (depends on 12)

The method according to claim 12, wherein each one of the plurality of hierarchical patterns is expressed by a non-deterministic finite automaton (NFA) with multiple delimiters to represent boundaries of different levels in the hierarchical pattern.

### Claim 17 (depends on 16)

The method according to claim 16, wherein different symbols are reserved as delimiters of different levels to represent hierarchical structures in the plurality of hierarchical patterns.

### Claim 18 (depends on 16)

The method according to claim 16, wherein multiple entry points are added to the NFA to make it capable of matchingg the plurality of hierarchical patterns with different lengths.

### Claim 19 (depends on 10)

The method according to claim 10, wherein the counting uses on-chip counters of the processor to calculate the occurrences of the plurality of hierarchical patterns in the datasets.

### Claim 20 (depends on 10)

The method according to claim 10, wherein the method further comprises a step of minimizing an output from the processor by delaying reporting of events to a final processing cycle.

### Claim 21 (depends on 10)

The method according to claim 10, wherein the preprocessing of the input datasets further comprises steps of:
filtering out infrequent items from the input datasets;
encoding the filtered items into multiple-bit signals; and
sorting the encoded items within one transaction with a predefined order.

### Claim 22

An electronic automaton device for discovering a plurality of hierarchical patterns in large datasets, each automaton expression of the plurality of hierarchical patterns comprising:
a finite automaton; and
a plurality of counter elements,
wherein the electronic automaton device is configured recognize the plurality of hierarchical patterns and create a signal when the occurrence of one of the plurality of hierarchical patterns exceeds a given threshold, and
wherein the plurality of hierarchical patterns include continuous or discontinuous sequences of sets, continuous or discontinuous sequences of sequences, or sets of continuous or discontinuous sequences in the datasets.

### Claim 23 (depends on 22)

The electronic automaton device according to claim 22, wherein each of the plurality of hierarchical patterns is represented by one or more states of automaton grouped together to match a sequence of multiple-bit signal from input streams of multiple-bit signals.

### Claim 24 (depends on 23)

The electronic automaton device according to claim 23, wherein one or more self-activating states of automaton connect to one group of states of automaton for multiple-bit signals to hold a position within a potential pattern sequence when one or more mismatches of multiple-bit signals are seen, and hold this position until an end of an transaction, in order to deal with the discontinuous sequences.

### Claim 25 (depends on 22)

The electronic automaton device according to claim 22, wherein the sets are converted to the discontinuous sequences by sorting items of each transaction with a predefined order.

### Claim 26 (depends on 22)

The electronic automaton device according to claim 22, wherein each of the plurality of hierarchical patterns is expressed by a non-deterministic finite automaton (NFA) with multiple delimiters to represent the boundaries of different levels in the plurality of hierarchical patterns.

### Claim 27 (depends on 22)

The electronic automaton device according to claim 22, wherein different symbols are reserved as different level delimiters to represent hierarchical structures in the plurality of hierarchical patterns.

### Claim 28 (depends on 26)

The electronic automaton device according to claim 26, wherein multiple entry points are added to the NFA to make it capable of matching the plurality of hierarchical patterns with different lengths.

### Claim 29 (depends on 22)

The electronic automaton device according to claim 22, wherein the plurality of counter elements are connected to a pattern matching automaton to calculate the occurrence of one of the plurality of hierarchical patterns in the datasets.
