# US 2020/0026961 A1 · High precision subtractive pattern recognition for image and other applications

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

- Number: US 2020/0026961 A1
- Document ID: US20200026961A1
- Status: Published application
- Kind: A1
- Application number: 16/037,223
- Filed: 2018-07-17
- Published: 2020-01-23
- Earliest claimed: 2018-07-17
- Assignees: Shutterfly, Inc.
- Applicants: Shutterfly, Inc.
- Inventors: Omer Moshe Moussaffi
- Web page: https://patentgrep.com/patent/US20200026961A1

## CPC

- G06V 10/764: using classification, e.g. of video objects
- G06F 18/217: {Validation; Performance evaluation; Active pattern learning techniques}
- G06F 18/2411: based on the proximity to a decision surface, e.g. support vector machines
- G06V 10/776: Validation; Performance evaluation
- G06V 40/172: {Classification, e.g. identification}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method includes selecting a kernel and kernel parameters for a first Support Vector Machine (SVM) model, testing the SVM model on a feature matrix T of n feature vectors of length m to produce false positive (FP) data set and false negative (FN) data set by a computer processor, wherein n and m are integer numbers, copying the feature matrix T to produce a feature matrix T_best, and checking if a ratio (T_best sample number)/(SVM support vector number) is above a threshold for the SVM model on T_best. If the ratio is above the threshold, SVM predictions are performed using the SVM model on the feature matrix T_best. The first SVM model can be used classify the faces or the objects in the images. An image-product design can be created based on the faces or the objects in the images classified by the first SVM model using the feature matrix T_best.

## Claims

### Claim 1

A computer-implemented method, comprising:
selecting a kernel and kernel parameters for a first Support Vector Machine (SVM) model;
testing the first SVM model on a feature matrix T to produce false positive (FP) data set and false negative (FN) data set by a computer processor, wherein the feature matrix T includes n feature vectors of length m, wherein n and m are integer numbers;
copying the feature matrix T to produce a feature matrix T_best;
checking if a ratio (T_best sample number)/(SVM support vector number) is above a threshold for the first SVM model on T_best; and
if the ratio is above the threshold, performing SVM predictions using the first SVM model on the feature matrix T_best.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the n feature vectors are based on faces or objects in images, wherein the first SVM model is used on the feature matrix T_best to classify the faces or the objects in the images.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, further comprising:
creating an image-product design based on the faces or the objects in the images classified by the first SVM model using the feature matrix T_best.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising:
if the ratio (T_best sample number)/(SVM model support vector number) is not above the threshold for the first SVM model on T_best, repeating the steps of selecting, testing, automatically removing, retraining, and checking to find a second SVM model having (T_best sample number)/(SVM model support vector number) ratio that exceeds the threshold.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, further comprising:
performing SVM predictions using the second SVM model on the feature matrix T_best.

### Claim 6 (depends on 4)

The computer-implemented method of claim 4, further comprising:
if a SVM model having (T_best sample number)/(SVM model support vector number) ratio that exceeds the threshold is not found, selecting a third SVM model that yields a highest (T_best sample number)/(SVM model support vector number) ratio in the step of repeating the steps of selecting, testing, automatically removing, retraining, and checking; and
performing SVM predictions using the third SVM model on the feature matrix T_best.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the threshold for the (T_best sample number)/(SVM model support vector number) ratio is ten or higher.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, comprising:
applying Grid Search on the feature matrix T to find optimal kernel parameters before the step of testing the first SVM model on a feature matrix T.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the feature vectors are based on faces or objects in images, the computer-implemented method further comprising:
classifying the objects and the faces in the images by performing SVM predictions on the feature matrix T_best.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, further comprising:
automatically creating designs for photo products based on the objects and faces classified by performing SVM predictions on the feature matrix T_best.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, further comprising:
selecting a feature vector v from the FN data set to remove from the feature matrix T_best to produce a feature matrix T_v;
retraining the first SVM model on the feature matrix T_v to produce a fourth SVM model;
calculating a benefit function to produce a benefit function value, wherein the benefit function is dependent of differences between true positives, true negatives, and numbers of support vectors generated respectively on T_best by the first SVM model and on T_v by the fourth SVM model;
removing the feature vector v from the feature matrix T_best to obtain an updated feature matrix T_best if the benefit function value meets a predetermined criterion; and
performing SVM prediction using the fourth SVM model on the updated feature matrix T_best.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, wherein the n feature vectors are based on faces or objects in images, wherein the fourth SVM model is used on the feature matrix T_best to classify the faces or the objects in the images.

### Claim 13 (depends on 12)

The computer-implemented method of claim 12, further comprising:
creating an image-product design based on the faces or the objects in the images classified by the fourth SVM model using the feature matrix T_best.

### Claim 14 (depends on 11)

The computer-implemented method of claim 11, further comprising:
repeating the steps of selecting a feature vector v, training the first SVM model, performing SVM predictions, calculating a benefit function, and removing the feature vector v from T_best by selecting and removing a different feature vector corresponding to the FN data set from feature matrix T_best,
wherein SVM predictions are performed using the feature matrix T_best that gives a highest best function value.

### Claim 15 (depends on 13)

The computer-implemented method of claim 13, wherein all the feature vectors corresponding to the FN data set are evaluated by calculating a corresponding benefic function and determined to be removed from the T_best or not depending on a value of the corresponding benefic function.

### Claim 16 (depends on 11)

The computer-implemented method of claim 11, wherein the feature vector v is not removed from the feature matrix T_best if the value of the benefit function does not meet the predetermined criterion.

### Claim 17 (depends on 11)

The computer-implemented method of claim 11, wherein the feature vectors are based on faces or objects in images, the computer-implemented method further comprising:
classifying the objects and the faces in the images by performing SVM predictions on the feature matrix T_best.
