[Paper Review] Nationality Classification Using Name Embeddings
This paper introduces NamePrism, a nationality and ethnicity classifier that uses name embeddings derived from homophily patterns in 57 million contact lists to achieve state-of-the-art performance. By leveraging communication network structures to learn robust name representations, it achieves an F1 score of 0.795 on a 13-class benchmark, significantly outperforming prior methods like Ethnea (0.580).
Nationality identification unlocks important demographic information, with many applications in biomedical and sociological research. Existing name-based nationality classifiers use name substrings as features and are trained on small, unrepresentative sets of labeled names, typically extracted from Wikipedia. As a result, these methods achieve limited performance and cannot support fine-grained classification. We exploit the phenomena of homophily in communication patterns to learn name embeddings, a new representation that encodes gender, ethnicity, and nationality which is readily applicable to building classifiers and other systems. Through our analysis of 57M contact lists from a major Internet company, we are able to design a fine-grained nationality classifier covering 39 groups representing over 90% of the world population. In an evaluation against other published systems over 13 common classes, our F1 score (0.795) is substantial better than our closest competitor Ethnea (0.580). To the best of our knowledge, this is the most accurate, fine-grained nationality classifier available. As a social media application, we apply our classifiers to the followers of major Twitter celebrities over six different domains. We demonstrate stark differences in the ethnicities of the followers of Trump and Obama, and in the sports and entertainments favored by different groups. Finally, we identify an anomalous political figure whose presumably inflated following appears largely incapable of reading the language he posts in.
Motivation & Objective
- Address the limited performance and coarse granularity of existing name-based nationality classifiers trained on small, unrepresentative datasets.
- Overcome the reliance on substring features and poor generalization to non-Latin scripts by introducing a data-driven embedding approach.
- Develop a fine-grained, publicly accessible classifier covering 39 nationalities representing over 90% of the world population.
- Enable accurate demographic inference in privacy-sensitive domains like biomedical and sociological research using only names.
- Demonstrate practical utility through social media analysis, revealing ethnic composition differences among followers of high-profile Twitter celebrities.
Proposed method
- Leverage the homophily principle—people associate with similar others—to derive name embeddings from 57 million anonymized contact lists.
- Train word embeddings (e.g., Skip-gram) on name co-occurrence patterns within contact lists to learn representations encoding gender, ethnicity, and nationality.
- Construct a hierarchical taxonomy of 39 nationalities using labels from 118 countries, with ground truth from U.S. Census data and global name distributions.
- Apply Bayesian inference to estimate ethnicity distributions for rare first names by linking them to common last names with known ethnicities.
- Use name embeddings as features in a Naive Bayes classifier for nationality and ethnicity prediction.
- Extend the model to handle non-U.S. names by combining U.S.-based estimates with global name labels from email and Twitter data.
Experimental results
Research questions
- RQ1Can communication network structures be exploited to learn more robust name representations that encode nationality and ethnicity?
- RQ2Can name embeddings derived from large-scale contact lists improve the accuracy of nationality and ethnicity classification compared to substring-based methods?
- RQ3To what extent does a fine-grained, globally representative nationality taxonomy enhance classification performance across diverse name sets?
- RQ4How do the ethnic compositions of followers differ across high-profile Twitter celebrities in distinct domains (e.g., politics, entertainment)?
- RQ5Can nationality classification detect anomalies in social media follower networks, such as mismatched language and follower demographics?
Key findings
- NamePrism achieves an F1 score of 0.795 on a 13-class nationality classification benchmark, significantly outperforming Ethnea (0.580), HMM (0.364), and EthnicSeer (0.571).
- The name embeddings produce spatial maps in embedding space that align with real-world national boundaries, demonstrating meaningful semantic structure.
- Analysis of Twitter followers shows that Trump’s followers are substantially overrepresented by White individuals, while Obama and Clinton have higher proportions of minority followers.
- Followers of Indian celebrities (e.g., Bollywood stars) are overwhelmingly of Indian ethnicity, while Hispanic followers disproportionately favor sports like soccer and boxing.
- Anomalously, an Indonesian politician with only 45K Google search results has 50% of followers with British, Russian, or Indian names, despite posting exclusively in Indonesian—indicating potential bot or inauthentic activity.
- The model successfully estimates ethnicity distributions for rare first names by linking them to last names with known U.S. Census ethnicity labels, improving coverage beyond common names.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.