# US 2020/0394525 A1 · Country Identification Using Unsupervised Machine Learning on Names

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

- Number: US 2020/0394525 A1
- Document ID: US20200394525A1
- Status: Published application
- Kind: A1
- Application number: 16/440,954
- Filed: 2019-06-13
- Published: 2020-12-17
- Earliest claimed: 2019-06-13
- Assignees: Paypal, Inc.
- Applicants: PayPal, Inc.
- Inventors: Itay Margolin; Shafik Bisharat
- Web page: https://patentgrep.com/patent/US20200394525A1

## CPC

- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06F 40/253: Grammatical analysis; Style critique
- G06F 40/295: Named entity recognition
- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are described relating to identifying a country (or other item) associated with an individual based on the individual's name. These techniques rely on machine learning and artificial intelligence adaptions, according to various embodiments, and allow for better identification of country than some alternative techniques. Specifically, unsupervised machine learning techniques (e.g. using a word2vec based algorithm) allow for the handling of noisy data, which can be a significant difficulty in attempting to associate a person's name to a particular country, where it may be quite difficult or even impossible to train a supervised machine learning model that can effectively make decisions on how to associate an unknown person to a particular country. Accordingly, this disclosure includes techniques related to unsupervised machine learning that are particularly helpful for solving this problem, including using a training data set that is prepared by adding country codes (or another identifier) to names.

## Claims

### Claim 1

A method relating to using unsupervised machine learning to determine a country association based on a name, comprising:
accessing an unsupervised machine learning training data set comprising a plurality of strings generated by adding a plurality of country identifiers to at least a portion of a plurality of names corresponding to a respective plurality of individual persons;
training a machine learning classifier using the unsupervised machine learning training data set, wherein the training associates individual ones of the plurality of names to individual ones of the plurality of country identifiers within a vector space;
receiving, by a computer system, a specific individual name for a specific individual;
using a first portion of the specific individual name, the computer system producing a first vector in the vector space using the machine learning classifier; and
based on the first vector, the computer system determining a first country associated with the specific individual.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
using a second portion of the specific individual name, producing a second vector in the vector space using the machine learning classifier;
creating an average name vector by averaging the first vector with the second vector; and
wherein determining the first country associated with the specific individual is based on the average name vector.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
for a second portion of the specific individual name, determining that a second vector cannot be produced in the vector space using the machine learning classifier;
wherein determining the first country associated with the specific individual is not based on the second portion of the specific individual name.

### Claim 4 (depends on 3)

The method of claim 3, wherein determining that a second vector cannot be produced in the vector space using the machine learning classifier includes determining that the second portion of the specific individual name is unique within the plurality of individual persons in the unsupervised machine learning training data set.

### Claim 5 (depends on 1)

The method of claim 1, further comprising generating the unsupervised machine learning training data set including standardizing the plurality of names corresponding to a respective plurality of individual persons;
wherein the standardizing comprises converting the plurality of names to a same capitalization.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
comparing respective cosine similarities between the first vector and country vectors for the plurality of countries;
wherein the first country associated with the specific individual has the largest of the respective cosine similarities.

### Claim 7 (depends on 1)

The method of claim 1, wherein adding the plurality of country identifiers comprises, for each respective full name of the plurality of individual persons, appending a country identifier to that full name.

### Claim 8 (depends on 1)

The method of claim 1, wherein training the machine learning classifier using the unsupervised machine learning training data set includes using a word2vec algorithm.

### Claim 9 (depends on 1)

The method of claim 1, further comprising standardizing a format of the specific individual name prior to producing the first vector, wherein the standardizing comprises replacing at least one type of punctuation character with whitespace.

### Claim 10 (depends on 1)

The method of claim 1, further comprising standardizing a format of the specific individual name prior to producing the first vector, wherein the standardizing comprises deleting at least one type of punctuation character.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
customizing digital content for the specific individual based on the determination of the first country; and
causing the digital content to be transmitted to the specific individual.

### Claim 12 (depends on 1)

The method of claim 1, wherein the first portion of the specific individual name is the full name of the specific individual.

### Claim 13

A non-transitory computer-readable medium having stored thereon instructions that when executed by a computer system cause the computer system to perform operations comprising:
generating an unsupervised machine learning training data set comprising a plurality of strings by adding a plurality of country identifiers to at least a portion of a plurality of names corresponding to a respective plurality of individual persons;
training a machine learning classifier using the unsupervised machine learning training data set, wherein the training associates individual ones of the plurality of names to individual ones of the plurality of country identifiers within a vector space;
receiving a specific individual name for a specific individual;
using first and second portions of the specific individual name, producing an average name vector in the vector space using the machine learning classifier; and
based on the average name vector, determining a first country associated with the specific individual.

### Claim 14 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein generating the unsupervised machine learning training data set comprises standardizing the plurality of names corresponding to a respective plurality of individual persons;
wherein the standardizing comprises converting the plurality of names to a same capitalization.

### Claim 15 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein determining the first country includes determining whether a cosine similarity for the first country exceeds a threshold value.

### Claim 16 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the operations further comprise:
customizing content for the specific individual based on the determination of the first country; and
causing the content to be transmitted to the specific individual.

### Claim 17

A system, comprising:
a processor; and
a non-transitory computer-readable medium having stored thereon instructions that when executed cause the system to perform operations comprising:
generating an unsupervised machine learning training data set comprising a plurality of strings by adding a plurality of country identifiers to at least a portion of a plurality of names corresponding to a respective plurality of individual persons;
training a machine learning classifier using an unsupervised machine learning training data set, wherein the training associates individual ones of the plurality of names to individual ones of the plurality of country identifiers within a vector space;
using a first portion of a specific individual name for a specific individual, producing a first vector in the vector space using the machine learning classifier; and
based on the first vector, the computer system determining a first country associated with the specific individual.

### Claim 18 (depends on 17)

The system of claim 17, wherein the operations further comprise:
using a second portion of the specific individual name, producing a second vector in the vector space using the machine learning classifier;
creating an average name vector by averaging the first vector with the second vector; and
wherein determining the first country associated with the specific individual is based on the average name vector.

### Claim 19 (depends on 17)

The system of claim 17, wherein the operations further comprise:
for a second portion of the specific individual name, determining that a second vector cannot be produced in the vector space using the machine learning classifier;
wherein determining the first country associated with the specific individual is not based on the second portion of the specific individual name.

### Claim 20 (depends on 19)

The system of claim 19, wherein the operations further comprise:
comparing respective cosine similarities between the first vector and country vectors for the plurality of countries;
wherein the first country associated with the specific individual has the largest of the respective cosine similarities.
