# US 8,577,814 B1 · System and method for genetic creation of a rule set for duplicate detection

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

- Number: US 8,577,814 B1
- Document ID: US8577814B1
- Status: Granted
- Kind: B1
- Application number: 13/193,285
- Filed: 2011-07-28
- Granted: 2013-11-05
- Earliest claimed: 2011-07-28
- Assignees: Amazon Technologies, Inc.
- Applicants: Jianhui Wu; Srikanth Thirumalai
- Inventors: Jianhui Wu; Srikanth Thirumalai
- Web page: https://patentgrep.com/patent/US8577814B1

## CPC

- G06N 3/126: Evolutionary algorithms, e.g. genetic algorithms or genetic programming
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Embodiments may generate a population of candidate rules including multiple rule conditions for detecting duplicates, each duplicate representing different sets of item description information that describe a common item. For each candidate rule of the population, embodiments may apply that rule to a reference data set including known duplicates and non-duplicates. Embodiments may assign each candidate rule a fitness score generated with a fitness function based on the performance of that candidate rule. Embodiments may, based on the fitness scores, select a subset of the population of candidate rules as parents for the new generation of candidate rules. Embodiments may perform crossover and/or mutation operations on the parent candidate rules to generate the new generation of candidate rules. Embodiments may select from the new generation of candidate rules (or from subsequent generations of candidate rules), rules for inclusion within a rule set for detecting duplicates within item description information.

## Claims

### Claim 1

A computer-implemented method, comprising:
generating a population of candidate rules for detecting duplicates, each duplicate representing different sets of item description information that describe a common item, wherein each candidate rule comprises multiple independent rule conditions and one or more elements for each independent rule condition specifying how a portion of one set of item description information should be compared to another set of item description information for duplicate detection;
for each candidate rule of the population, applying that rule to a reference data set including known duplicates and non-duplicates in order to determine measures of precision and recall for that candidate rule;
assigning each candidate rule a fitness score generated with a fitness function based on the measures of precision and recall determined for that candidate rule, wherein the fitness score of a given candidate rule is representative of that candidate rule's probability of being selected as a parent for a new generation of candidate rules;
based on the fitness scores, selecting a subset of the population of candidate rules as parents for the new generation of candidate rules;
performing one or more operations on the parent candidate rules to generate the new generation of candidate rules, said operations including one or more of: a crossover operation for generating a new candidate rule including different rule conditions from two different parent candidate rules, and a mutation operation for randomly or pseudo-randomly modifying a rule condition passed from a parent candidate rule to a candidate rule of the new generation, wherein modifying a rule condition comprises changing one or more elements of the rule condition; and
selecting from the new generation of candidate rules or one or more subsequent generations of candidate rules, one or more rules for inclusion within a rule set for detecting duplicates within item description information.

### Claim 2 (depends on 1)

The method of claim 1, further comprising utilizing the rule set including the one or more selected rules in order to identify duplicate sets of item description information that describe a common item.

### Claim 3 (depends on 2)

The method of claim 2, wherein the method further comprises merging the duplicate sets of item description information together to generate a single combined set of item description for the common item.

### Claim 4 (depends on 1)

The method of claim 1, wherein the method comprises generating said one or more subsequent generations, wherein said generating comprises repeating said applying, said assigning, said selecting a subset, and said performing in order to generate the one or more subsequent generations.

### Claim 5

A computer-implemented method, comprising:
generating a population of candidate rules for detecting duplicates, each duplicate representing different item description information entries that describe a common item, wherein each candidate rule comprises one or more independent rule conditions and one or more elements for each independent rule condition specifying how a portion of one set of item description information should be compared to another set of item description information for duplicate detection;
for each candidate rule of the population, applying that rule to a reference data set including known duplicates and non-duplicates in order to determine a measure of that candidate rule's performance with respect to detecting duplicates;
assigning each candidate rule a fitness score based on the respective performance measurement for that candidate rule, wherein the fitness score of a given candidate rule is representative of that candidate rule's probability of being selected as a parent for a new generation of candidate rules;
based on the fitness scores, selecting a subset of the population of candidate rules as parents for the new generation of candidate rules;
changing one or more elements of one or more rule conditions of one or more of the parent candidate rules to generate the new generation of candidate rules; and
selecting from the new generation of candidate rules or one or more subsequent generations of candidate rules, one or more rules for inclusion within a rule set for detecting duplicates within item description information.

### Claim 6 (depends on 5)

The method of claim 5, wherein to generate the new generation of candidate rules, the method further includes performing one or more mutation operations on rule conditions passed from parent candidate rules to candidate rules of the new generation.

### Claim 7 (depends on 5)

The method of claim 5, wherein for each candidate rule of the population, determining the measure of that candidate rule's performance comprises applying that rule to the reference data set including known duplicates and non-duplicates in order to determine measures of precision and recall for that candidate rule.

### Claim 8 (depends on 7)

The method of claim 7, wherein assigning each candidate rule a fitness score comprises determining the fitness score with a fitness function based on the measures of precision and recall for that candidate rule.

### Claim 9 (depends on 8)

The method of claim 8, wherein the fitness function is further based on one or more of: a quantity of rule conditions within the respective candidate rule, or a quantity of tokens within said rule conditions.

### Claim 10 (depends on 8)

The method of claim 8, wherein the fitness function is structured such that each candidate rule will be assigned a minimum positive score such that the each candidate rule has at least some probability of being selected as a parent.

### Claim 11 (depends on 5)

The method of claim 5, further comprising utilizing the rule set including the one or more selected rules in order to identify duplicate sets of item description information that describe a common item.

### Claim 12 (depends on 11)

The method of claim 11, wherein the method further comprises merging the duplicate sets of item description information together to generate a single combined set of item description for the common item.

### Claim 13 (depends on 5)

The method of claim 5, wherein the method comprises generating said one or more subsequent generations, wherein said generating comprises repeating said applying, said assigning, said selecting a subset, and said performing in order to generate the one or more subsequent generations.

### Claim 14

A system, comprising:
a memory; and
one or more processors coupled to the memory, wherein the memory comprises program instructions executable by the one or more processors to implement a genetic rule generator configured to:
generate a population of candidate rules for detecting duplicates, each duplicate representing different item description information entries that describe a common item, wherein each candidate rule comprises one or more independent rule conditions and one or more elements for each independent rule condition specifying how a portion of one set of item description information should be compared to another set of item description information for duplicate detection;
for each candidate rule of the population, apply that rule to a reference data set including known duplicates and non-duplicates in order to determine a measure of that candidate rule's performance with respect to detecting duplicates;
assign each candidate rule a fitness score based on the respective performance measurement for that candidate rule, wherein the fitness score of a given candidate rule is representative of that candidate rule's probability of being selected as a parent for a new generation of candidate rules;
based on the fitness scores, select a subset of the population of candidate rules as parents for the new generation of candidate rules;
change one or more elements of one or more rule conditions of one or more of the parent candidate rules to generate the new generation of candidate rules; and
select from the new generation of candidate rules or one or more subsequent generations of candidate rules, one or more rules for inclusion within a rule set for detecting duplicates within item description information.

### Claim 15 (depends on 14)

The system of claim 14, wherein to generate the new generation of candidate rules, the genetic rule generator is configured to perform one or more mutation operations on rule conditions passed from parent candidate rules to candidate rules of the new generation.

### Claim 16 (depends on 14)

The system of claim 14, wherein for each candidate rule of the population, the genetic rule generator is configured to determine the measure of that candidate rule's performance by applying that rule to the reference data set including known duplicates and non-duplicates in order to determine measures of precision and recall for that candidate rule.

### Claim 17 (depends on 16)

The system of claim 16, wherein to assign each candidate rule a fitness score the genetic rule generator is configured to determine the fitness score with a fitness function that is based on the measures of precision and recall for that candidate rule.

### Claim 18 (depends on 17)

The system of claim 17, wherein the fitness function is further based on one or more of: a quantity of rule conditions within the respective candidate rule, or a quantity of tokens within said rule conditions.

### Claim 19 (depends on 17)

The system of claim 17, wherein the fitness function is structured such that each candidate rule will be assigned a minimum positive score such that the each candidate rule has at least some probability of being selected as a parent.

### Claim 20 (depends on 14)

The system of claim 14, wherein the genetic rule generator is configured to utilize the rule set including the one or more selected rules in order to identify duplicate sets of item description information that describe a common item.

### Claim 21 (depends on 20)

The system of claim 20, wherein the genetic rule generator is configured to merge the duplicate sets of item description information together to generate a single combined set of item description for the common item.

### Claim 22 (depends on 14)

The system of claim 14, wherein the genetic rule generator is configured to generate said one or more subsequent generations, wherein said generating comprises repeating said applying, said assigning, said selecting a subset, and said performing in order to generate the one or more subsequent generations.

### Claim 23

A non-transitory computer-readable storage medium, storing program instructions computer-executable on a computer to implement a genetic rule generator configured to:
generate a population of candidate rules for detecting duplicates, each duplicate representing different item description information entries that describe a common item, wherein each candidate rule comprises one or more independent rule conditions and one or more elements for each independent rule condition specifying how a portion of one set of item description information should be compared to another set of item description information for duplicate detection;
for each candidate rule of the population, apply that rule to a reference data set including known duplicates and non-duplicates in order to determine a measure of that candidate rule's performance with respect to detecting duplicates;
assign each candidate rule a fitness score based on the respective performance measurement for that candidate rule, wherein the fitness score of a given candidate rule is representative of that candidate rule's probability of being selected as a parent for a new generation of candidate rules;
based on the fitness scores, select a subset of the population of candidate rules as parents for the new generation of candidate rules;
change one or more elements of one or more rule conditions of one or more of the parent candidate rules to generate the new generation of candidate rules; and
select from the new generation of candidate rules or one or more subsequent generations of candidate rules, one or more rules for inclusion within a rule set for detecting duplicates within item description information.

### Claim 24 (depends on 23)

The non-transitory computer-readable storage medium of claim 23, wherein to generate the new generation of candidate rules, the genetic rule generator is configured to perform one or more mutation operations on rule conditions passed from parent candidate rules to candidate rules of the new generation.

### Claim 25 (depends on 23)

The non-transitory computer-readable storage medium of claim 23, wherein for each candidate rule of the population, the genetic rule generator is configured to determine the measure of that candidate rule's performance by applying that rule to the reference data set including known duplicates and non-duplicates in order to determine measures of precision and recall for that candidate rule.

### Claim 26 (depends on 25)

The non-transitory computer-readable storage medium of claim 25, wherein to assign each candidate rule a fitness score the genetic rule generator is configured to determine the fitness score with a fitness function that is based on the measures of precision and recall for that candidate rule.

### Claim 27 (depends on 26)

The non-transitory computer-readable storage medium of claim 26, wherein the fitness function is further based on one or more of: a quantity of rule conditions within the respective candidate rule, or a quantity of tokens within said rule conditions.

### Claim 28 (depends on 26)

The non-transitory computer-readable storage medium of claim 26, wherein the fitness function is structured such that each candidate rule will be assigned a minimum positive score such that the each candidate rule has at least some probability of being selected as a parent.

### Claim 29 (depends on 23)

The non-transitory computer-readable storage medium of claim 23, wherein the genetic rule generator is configured to utilize the rule set including the one or more selected rules in order to identify duplicate sets of item description information that describe a common item.

### Claim 30 (depends on 29)

The non-transitory computer-readable storage medium of claim 29, wherein the genetic rule generator is configured to merge the duplicate sets of item description information together to generate a single combined set of item description for the common item.
