# US 2021/0174896 A1 · Automated Feature Extraction Using Genetic Programming

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

- Number: US 2021/0174896 A1
- Document ID: US20210174896A1
- Status: Published application
- Kind: A1
- Application number: 17/137,934
- Filed: 2020-12-30
- Published: 2021-06-10
- Earliest claimed: 2019-12-06
- Assignees: Natural Computation LLC
- Applicants: Natural Computation LLC
- Inventors: David James Landaeta
- Web page: https://patentgrep.com/patent/US20210174896A1

## CPC

- G06F 8/31: {Programming languages or programming paradigms}
- G16B 20/40: Population genetics; Linkage disequilibrium
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/086: using evolutionary algorithms, e.g. genetic algorithms or genetic programming
- G06N 3/126: Evolutionary algorithms, e.g. genetic algorithms or genetic programming
- G06N 20/00: Machine learning
- G16B 40/00: ICT specially adapted for biostatistics; ICT specially adapted for bioinformatics-related machine learning or data mining, e.g. knowledge discovery or pattern finding
- G16B 50/30: Data warehousing; Computing architectures
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G16B: BIOINFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR GENETIC OR PROTEIN-RELATED DATA PROCESSING IN COMPUTATIONAL MOLECULAR BIOLOGY
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method evolves generic computational building blocks. The method initializes a parent population with randomly generated programs or programs evolved by a genetic programming instance that uses randomized targets. The method also obtains a list of randomly generated test inputs. The method generates a target dataset that includes input-output pairs of randomly generated binary strings. The method also applies a fitness function to assign a fitness score to each program, based on the target dataset. The method grows a seed list by applying genetic operators, and selecting offspring that satisfy a novelty condition. The novelty condition is representative of an ability of a program to produce unique output for the list of randomly generated test inputs. The method iterates until a terminating condition has been satisfied. The terminating condition is representative of an ability of programs in the seed list to solve one or more genetic programming instances.

## Claims

### Claim 1

A method of evolving generic computational building blocks, the method comprising:
initializing a parent population with programs that encode functions by either (i) randomly generating the programs or (ii) using programs evolved by a genetic programming instance that uses randomized targets;
obtaining a list of randomly generated test inputs;
generating a target dataset that includes initial input-output pairs of randomly generated binary strings;
applying a fitness function to assign a fitness score to each program in the parent population, wherein the fitness score represents at least an ability of a respective program in the parent population to match the initial input-output pairs of the target dataset;
initializing a seed list with copies of the programs in the parent population that satisfy a novelty condition, wherein the novelty condition is representative of an ability of a program to produce distinct and unique output for the list of randomly generated test inputs;
determining if a terminating condition of the seed list has been satisfied, wherein the terminating condition is representative of an ability of one or more programs in the seed list to solve one or more genetic programming instances;
in accordance with a determination that the terminating condition has not been satisfied:
applying at least one genetic operator to the parent population to obtain a current offspring population of programs, wherein the at least one genetic operator includes operators applied to the parent population to grow the seed list, based on fitness scores of programs in the parent population, to solve the one or more genetic programming instances; and
repeating steps of:
generating a new target dataset that includes new input-output pairs of randomly generated binary strings;
applying the fitness function to assign a new fitness score to each program in the current offspring population, wherein the new fitness score represents at least an ability of a respective program in the current offspring population to match the new input-output pairs of the new target dataset;
appending, to the seed list, copies of the programs in the current offspring population that satisfy said novelty condition; and
applying the at least one genetic operator to the current offspring population to obtain a new offspring population of programs and setting the new offspring population of programs as the current offspring population;
until said termination condition is satisfied.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
using the seed list to initialize populations within a test suite of genetic programming instances representing a plurality of problems; and
determining if the termination condition has been satisfied based on test results of the test suite.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
when applying the at least one genetic operator to the current offspring population, selecting, based on a Bernoulli distribution, the programs in the seed list over the programs in the current offspring population, as parents, wherein each program in the seed list is equally likely to be selected as a parent.

### Claim 4 (depends on 1)

The method of claim 1, wherein whether a program in the parent population or the current offspring population satisfies the novelty condition is based on:
a determination that the program encodes a function that generates a sequence of outputs, for the randomly generated test inputs, that is distinct from sequences of outputs generated by functions encoded by the programs in the seed list, for the randomly generated test inputs.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
determining and storing, for each respective program in the seed list, function signatures that include sequences of outputs generated by the functions encoded by the respective program for the randomly generated test inputs; and
retrieving the function signatures;
wherein determination that the respective program encodes a function that is distinct from functions encoded by programs in the seed list is further based on:
a determination that the respective program encodes the function that generates a sequence of outputs, for the randomly generated test inputs, that is distinct from the function signatures.

### Claim 6 (depends on 1)

The method of claim 1, wherein the terminating condition depends at least on size of the seed list.

### Claim 7 (depends on 1)

The method of claim 1, wherein the terminating condition depends at least on a determination if the seed list is growing at a predetermined growth rate.

### Claim 8 (depends on 1)

The method of claim 1, further comprising breaking ties arbitrarily when applying the fitness function.

### Claim 9 (depends on 1)

The method of claim 1, further comprising discarding programs from the seed list that encode trivial functions that do not read input, when initializing the seed list and appending to the seed list.

### Claim 10 (depends on 9)

The method of claim 9, further comprising performing syntactic analysis to identify the programs in the seed list that encode the trivial functions that do not read input.

### Claim 11 (depends on 1)

The method of claim 1, further comprising discarding programs from the seed list that encode functions that have abnormal runtime behavior or have abnormal resource requirements, when initializing the seed list and appending to the seed list.

### Claim 12 (depends on 1)

The method claim 1, further comprising seeding an initial population for a new instance of genetic programming using a predetermined number of programs in the seed list.

### Claim 13 (depends on 1)

The method of claim 1, wherein the at least one genetic operator is one or more of a selection operator, a mutation operator, and a crossover operator.

### Claim 14 (depends on 1)

The method of claim 1, wherein each input of the randomly generated test inputs and each input of the input-output pairs of randomly generated binary strings is generated based on an input probability distribution, and each output of the input-output pairs of randomly generated binary strings is generated based on an output probability distribution.

### Claim 15 (depends on 14)

The method of claim 14, wherein the input probability distribution is a Gaussian distribution over range of pixel intensities, and the output probability distribution is a Gaussian distribution over [0.0, 1.0].

### Claim 16 (depends on 1)

The method of claim 1, wherein the fitness function assigns same fitness score to programs that encode functions that produce bitwise opposite output for same input.

### Claim 17 (depends on 1)

The method of claim 1, wherein the fitness function assigns a fitness score between −1 and 1 to a program in order to measure a degree of match between an output of the program and a target dataset, with larger values denoting higher degree of match.

### Claim 18 (depends on 1)

The method of claim 1, wherein the one or more genetic programming instances includes a genetic programming instance for partial classification of handwritten digits, and the initial input-output pairs of randomly generated binary strings and the new input-output pairs of randomly generated binary strings are generated based on images from MNIST database, and the method further comprises terminating the method after iterating 2000 times.

### Claim 19

A computer system for generating data visualizations, comprising:
one or more processors; and
memory;
wherein the memory stores one or more programs configured for execution by the one or more processors, and the one or more programs comprising instructions for:
initializing a parent population with randomly generated programs that encode functions;
obtaining a list of randomly generated test inputs;
generating a target dataset that includes initial input-output pairs of randomly generated binary strings;
applying a fitness function to assign a fitness score to each program in the parent population, wherein the fitness score represents at least an ability of a respective program to match the initial input-output pairs of the target dataset;
initializing a seed list with copies of the programs in the parent population that satisfy a novelty condition, wherein the novelty condition is representative of an ability of a program to produce distinct and unique output for the list of randomly generated test inputs;
determining if a terminating condition of the seed list has been satisfied, wherein the terminating condition is representative of an ability of one or more programs in the seed list to solve one or more genetic programming instances;
in accordance with a determination that the terminating condition has not been satisfied:
applying at least one genetic operator to the parent population to obtain a current offspring population of programs, wherein the at least one genetic operator includes operators applied to the parent population to grow the seed list, based on fitness scores of programs in the parent population, to solve the one or more genetic programming instances; and
repeating steps of:
generating a new target dataset that includes new input-output pairs of randomly generated binary strings;
applying the fitness function to assign a new fitness score to each program in the current offspring population, wherein the new fitness score represents at least an ability of a respective program in the current offspring population to match the new input-output pairs of the new target dataset;
appending, to the seed list, copies of the programs in the current offspring population that satisfy said novelty condition; and
applying the at least one genetic operator to the current offspring population to obtain a new offspring population of programs and setting the new offspring population of programs as the current offspring population;
until said termination condition is satisfied.

### Claim 20

A non-transitory computer readable storage medium storing one or more programs configured for execution by a computer system having a display, one or more processors, and memory, the one or more programs comprising instructions for:
initializing a parent population with randomly generated programs that encode functions;
obtaining a list of randomly generated test inputs;
generating a target dataset that includes initial input-output pairs of randomly generated binary strings;
applying a fitness function to assign a fitness score to each program in the parent population, wherein the fitness score represents at least an ability of a respective program in the parent population to match the initial input-output pairs of the target dataset;
initializing a seed list with copies of the program in the parent population that satisfy a novelty condition, wherein the novelty condition is representative of an ability of a program to produce distinct and unique output for the list of randomly generated test inputs;
determining if a terminating condition of the seed list has been satisfied, wherein the terminating condition is representative of an ability of one or more programs in the seed list to solve one or more genetic programming instances;
in accordance with a determination that the terminating condition has not been satisfied:
applying at least one genetic operator to the parent population to obtain a current offspring population of programs, wherein the at least one genetic operator includes operators applied to the parent population to grow the seed list, based on fitness scores of programs in the parent population, to solve the one or more genetic programming instances; and
repeating steps of:
generating a new target dataset that includes new input-output pairs of randomly generated binary strings;
applying the fitness function to assign a new fitness score to each program in the current offspring population, wherein the new fitness score represents at least an ability of a respective program in the current offspring population to match the new input-output pairs of the new target dataset;
appending, to the seed list, copies of the programs in the current offspring population that satisfy said novelty condition; and
applying the at least one genetic operator to the current offspring population to obtain a new offspring population of programs and setting the new offspring population of programs as the current offspring population;
until said termination condition is satisfied.

### Claim 21 (depends on 14)

The method of claim 14, wherein the input probability distribution uses a sample space that is based on a training dataset for a machine learning model.

### Claim 22 (depends on 21)

The method of claim 21, further comprising extracting features of the training dataset by regarding the seed list as a set of candidate features and applying a feature selection technique to select a subset providing the extracted features.
