Skip to main content
QUICK REVIEW

[Paper Review] It's All in the Name: A Character Based Approach To Infer Religion

Rochana Chaturvedi, Sugat Chaturvedi|arXiv (Cornell University)|Oct 27, 2020
Names, Identity, and Discrimination ResearchSocial Sciences4 citations
TL;DR

This paper proposes a character-based deep learning approach to infer religion from personal names in South Asia, leveraging linguistic patterns in names to achieve high accuracy even on unseen names. By combining names of individuals with those of parents or spouses and using layer-wise relevance propagation (LRP) to interpret predictions, the method outperforms traditional dictionary-based approaches and reveals how phonetic and orthographic features reflect religious and linguistic origins.

ABSTRACT

Demographic inference from text has received a surge of attention in the field of natural language processing in the last decade. In this paper, we use personal names to infer religion in South Asia - where religion is a salient social division, and yet, disaggregated data on it remains scarce. Existing work predicts religion using dictionary based method, and therefore, can not classify unseen names. We use character based models which learn character patterns and, therefore, can classify unseen names as well with high accuracy. These models are also much faster and can easily be scaled to large data sets. We improve our classifier by combining the name of an individual with that of their parent/spouse and achieve remarkably high accuracy. Finally, we trace the classification decisions of a convolutional neural network model using layer-wise relevance propagation which can explain the predictions of complex non-linear classifiers and circumvent their purported black box nature. We show how character patterns learned by the classifier are rooted in the linguistic origins of names.

Motivation & Objective

  • To address the scarcity of fine-grained religious demographic data in South Asia, especially at the individual level.
  • To overcome limitations of dictionary-based methods that fail to classify unseen names.
  • To develop a scalable, high-accuracy method for religion inference using character-level patterns in names.
  • To explain model decisions using layer-wise relevance propagation (LRP), reducing the black-box nature of deep learning classifiers.
  • To demonstrate the utility of name-based religion inference in large-scale social science research and policy evaluation.

Proposed method

  • The model uses character-level embeddings to learn local patterns in names, enabling generalization to unseen names.
  • A single convolutional neural network (CNN) layer with max pooling over time extracts hierarchical character-level features.
  • The model is trained with binary cross-entropy loss and balanced class weights to handle imbalanced religious class distributions.
  • Input names are zero-padded to a fixed length and converted into 29–30 dimensional character embeddings.
  • The final output is a sigmoid-activated fully connected layer producing class probabilities for each religion.
  • Layer-wise relevance propagation (LRP) is applied to interpret predictions by attributing relevance scores to input characters.

Experimental results

Research questions

  • RQ1Can character-based deep learning models infer religion from names with higher accuracy than dictionary-based methods, especially on unseen names?
  • RQ2How do linguistic and phonetic patterns in names reflect religious and linguistic origins in South Asia?
  • RQ3Can combining an individual’s name with that of a parent or spouse significantly improve religion classification accuracy?
  • RQ4To what extent can LRP explain the decision-making process of complex non-linear models like CNNs in this context?
  • RQ5How do character-level patterns in names from Hindu, Muslim, Christian, Sikh, Buddhist, and Jain communities differ?

Key findings

  • The character-based CNN model achieves significantly higher accuracy than traditional dictionary-based methods, particularly on unseen names.
  • Combining individual names with those of parents or spouses improves classification accuracy to remarkably high levels.
  • The model successfully identifies that Muslim names show higher relative frequencies of characters like 'F', 'Q', and 'Z', reflecting Arabic phonemes absent in Sanskrit.
  • Hindu, Sikh, Jain, and Buddhist names share similar character distributions due to their common Sanskrit or Prakrit roots.
  • LRP analysis confirms that the model relies on linguistically meaningful character patterns, such as 'Q' and 'Z' in Muslim names, to make predictions.
  • The use of TF-IDF with n-gram features and linear models (SVM, LR) yields strong performance, but the CNN model outperforms them, especially in handling rare or unseen names.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.