# US 2024/0193158 A1 · Utilizing regular expression embeddings for named entity recognition systems

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

- Number: US 2024/0193158 A1
- Document ID: US20240193158A1
- Status: Published application
- Kind: A1
- Application number: 18/587,716
- Filed: 2024-02-26
- Published: 2024-06-13
- Earliest claimed: 2019-08-23
- Assignees: Capital One Services, LLC
- Applicants: Capital One Services, LLC
- Inventors: Jeremy Edward GOODSITT; Austin Grant WALTERS; Reza FARIVAR; Mark Louis WATSON; Anh TRUONG; Galen RAFFERTY; Vincent PHAM
- Web page: https://patentgrep.com/patent/US20240193158A1

## CPC

- G06F 16/243: {Natural language query formulation}
- G06F 16/313: {Selection or weighting of terms for indexing}
- G06F 16/3329: Natural language query formulation
- G06F 16/35: Clustering; Classification
- G06N 20/00: Machine learning
- G06F 16/374: {Thesaurus}
- G06N 20/20: Ensemble learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Various embodiments are directed to a system that utilizes regular expression (regex) to recognize at least portions of characters, words, text, numbers, etc. in a structured or unstructured dataset, any patterns associated therewith, and/or similarities between the determined patterns. In examples, a regex-based pattern recognition platform may receive a dataset and determine whether at least a first regex pattern and a second regex pattern can be identified. The occurrences of the first and second regex patterns and the frequency of those occurrences may reveal something about the dataset itself or any patterns contained therein.

## Claims

### Claim 1

A device, comprising:
a memory; and
a processor coupled with the memory to:
determine a frequency of occurrences of a first regex pattern of a regex list in a dataset;
create a vector, the vector specifying a vector position and a regex value for at least the first regex pattern;
adjust the regex value corresponding to the first regex pattern by addition of a predefined value for each occurrence of the first regex pattern in the dataset;
detect a set of false matches between the first regex pattern of the regex list and the dataset;
adjust, based on the set of false matches, the regex list via a machine learning model or a classification model; and
provide the vector to at least one entity recognition system.

### Claim 2 (depends on 1)

The device of claim 1, wherein the processor, when generating the theme, is further operable to:
determine whether the dataset contains a second regex pattern of the regex list;
determine a number of occurrences of the second regex pattern in the dataset; and
increment a regex value corresponding to the second regex pattern by the predefined value for each occurrence of the second regex pattern in the dataset.

### Claim 3 (depends on 1)

The device of claim 1, the processor further operable to perform a normalization on the vector.

### Claim 4 (depends on 1)

The device of claim 1, the processor further operable to identify personally identifiable information (PII) in the dataset and replacing the PII with a regex pattern from the regex list corresponding to the PII.

### Claim 5 (depends on 1)

The device of claim 1, wherein the predefined value is one.

### Claim 6 (depends on 1)

The device of claim 1, the processor further operable to:
provide a normalized vector to the machine learning model or the classification model, and wherein the normalized vector is used to train the machine learning model or the classification model.

### Claim 7 (depends on 1)

The device of claim 1, wherein the at least one entity recognition system determines whether (i) one or more portions of the dataset includes personally identifiable information (PII) or (ii) classifies the one or more portions of the dataset as PII.

### Claim 8 (depends on 1)

The device of claim 1, wherein the first regex pattern defines a personally identifiable information (PII) pattern.

### Claim 9

A method, comprising:
determining, via one or more processors, whether a dataset contains a first regex pattern of a regex list;
determining, via the one or more processors, a number of occurrences of the first regex pattern in the dataset;
generating, via the one or more processors, a vector, the vector specifying a vector position and a regex value for at least the first regex pattern;
incrementing, via the one or more processors, the regex value corresponding to the first regex pattern by a predefined value for each occurrence of the first regex pattern in the dataset;
determining, via the one or more processors, a set of false matches between the first regex pattern of the regex list and the dataset;
refining, based on the set of false matches, the regex list via a machine learning model or a classification model; and
providing, via the one or more processors, the vector to at least one entity recognition system.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
determining, via the one or more processors, whether the dataset contains a second regex pattern of the regex list;
determining, via the one or more processors, a number of occurrences of the second regex pattern in the dataset; and
incrementing, via the one or more processors, a regex value corresponding to the second regex pattern by the predefined value for each occurrence of the second regex pattern in the dataset.

### Claim 11 (depends on 9)

The method of claim 9, further comprising performing a normalization on the vector.

### Claim 12 (depends on 9)

The method of claim 9, further comprising identifying personally identifiable information (PII) in the dataset and replacing the PII with a regex pattern from the regex list corresponding to the PII.

### Claim 13 (depends on 9)

The method of claim 9, wherein the predefined value is one.

### Claim 14 (depends on 9)

The method of claim 9, further comprising providing a normalized vector to the machine learning model or the classification model, and wherein the normalized vector is used to train the machine learning model or the classification model.

### Claim 15 (depends on 9)

The method of claim 9, wherein the at least one entity recognition system determines whether (i) one or more portions of the dataset includes personally identifiable information (PII) or (ii) classifies the one or more portions of the dataset as PII.

### Claim 16

A non-transitory computer-readable storage medium, the computer-readable storage medium including instructions that when executed by a processor, cause the processor to:
determine, via the processor, a number of occurrences of a first regex pattern of a regex list in a dataset;
generate, via the processor, a vector, the vector specifying a vector position and a regex value for at least the first regex pattern;
increment, via the processor, the regex value corresponding to the first regex pattern by a predefined value for each occurrence of the first regex pattern in the dataset;
determine, via the processor, a set of false matches between the first regex pattern of the regex list and the dataset;
train, based on the set of false matches, a machine learning model or a classification model, via the regex list; and
provide, via the processor, the vector to at least one entity recognition system.

### Claim 17 (depends on 16)

The computer-readable storage medium of claim 16, wherein the instructions to process the search query cause the processor to:
determine, via the one or more processors, whether the dataset contains a second regex pattern of the regex list;
determine, via the one or more processors, a number of occurrences of the second regex pattern in the dataset; and
increment, via the one or more processors, a regex value corresponding to the second regex pattern by the predefined value for each occurrence of the second regex pattern in the dataset.

### Claim 18 (depends on 16)

The computer-readable storage medium of claim 16, wherein the instructions further cause the processor to perform a normalization on the vector.

### Claim 19 (depends on 16)

The computer-readable storage medium of claim 16, wherein the instructions further cause the processor to identify personally identifiable information (PII) in the dataset and replacing the PII with a regex pattern from the regex list corresponding to the PII.

### Claim 20 (depends on 16)

The computer-readable storage medium of claim 16, wherein the instructions further cause the processor to provide a normalized vector to the machine learning model or the classification model, and wherein the normalized vector is used to train the machine learning model or the classification model.
