New Research In
Physical Sciences
Social Sciences
Featured Portals
Articles by Topic
Biological Sciences
Featured Portals
Articles by Topic
 Agricultural Sciences
 Anthropology
 Applied Biological Sciences
 Biochemistry
 Biophysics and Computational Biology
 Cell Biology
 Developmental Biology
 Ecology
 Environmental Sciences
 Evolution
 Genetics
 Immunology and Inflammation
 Medical Sciences
 Microbiology
 Neuroscience
 Pharmacology
 Physiology
 Plant Biology
 Population Biology
 Psychological and Cognitive Sciences
 Sustainability Science
 Systems Biology
A Markov model of the Indus script

Communicated by Roddam Narasimha, Jawaharlal Nehru Centre for Advanced Scientific Research, Bangalore, India, June 15, 2009 (received for review December 26, 2008)
Abstract
Although no historical information exists about the Indus civilization (flourished ca. 2600–1900 B.C.), archaeologists have uncovered about 3,800 short samples of a script that was used throughout the civilization. The script remains undeciphered, despite a large number of attempts and claimed decipherments over the past 80 years. Here, we propose the use of probabilistic models to analyze the structure of the Indus script. The goal is to reveal, through probabilistic analysis, syntactic patterns that could point the way to eventual decipherment. We illustrate the approach using a simple Markov chain model to capture sequential dependencies between signs in the Indus script. The trained model allows new sample texts to be generated, revealing recurring patterns of signs that could potentially form functional subunits of a possible underlying language. The model also provides a quantitative way of testing whether a particular string belongs to the putative language as captured by the Markov model. Application of this test to Indus seals found in Mesopotamia and other sites in West Asia reveals that the script may have been used to express different content in these regions. Finally, we show how missing, ambiguous, or unreadable signs on damaged objects can be filled in with most likely predictions from the model. Taken together, our results indicate that the Indus script exhibits rich synactic structure and the ability to represent diverse content. both of which are suggestive of a linguistic writing system rather than a nonlinguistic symbol system.
The Indus (or Harappan) civilization flourished from ca. 2600 to 1900 B.C. in a vast region spanning what is now Pakistan and northwestern India. Its trade networks stretched to the Persian Gulf and the Middle East. The civilization emerged from the depths of antiquity in the late 19th century, when General Alexander Cunningham (1814–1893) visited a site known as Harappa and published a description (1), including an illustration of a tiny seal with characters in an unknown script. Since then, much has been learned about the Indus civilization through the work of archaeologists (see refs. 2 and 3 for reviews), but the script still remains an enigma.
More than 3,800 inscriptions in the Indus script have been unearthed on stamp seals, sealings, amulets, small tablets, and ceramics (see Fig. 1A for examples). Although there have been >60 claimed decipherments (4), none of these has been widely accepted by the community. Several obstacles to decipherment have been identified (4), including the lack of any bilinguals, the brevity of the inscriptions (the average inscription is ≈5 signs long), and our almost complete lack of knowledge of the language(s) used in the civilization.
Given these formidable obstacles to direct decipherment, we propose instead the analysis of the script's syntactical structure using techniques from the fields of statistical pattern analysis and machine learning (5). It is our belief that such an approach could provide valuable insights into the grammatical structure of the script, paving the way for a possible eventual decipherment. As a first step in this endeavor, we present here results obtained from analyzing the sequential structure of the Indus script using a simple type of probabilistic graphical model (6) known as a Markov model (7). Markov models assume that the current “state” (e.g., symbol in a text) depends only on the previous state, an assumption that renders learning and inference over sequences tractable. Although this assumption is a simplification of the complex sequential structure seen in languages, Markov models have proved to be extremely useful in analyzing a range of sequential data, including speech (8) and natural language (9). Here, we apply them to the Indus script. A major goal of this article is to provide an exposition of Markov models for those unfamiliar with them and to illustrate their usefulness in the study of an undeciphered script. We leave the application of more advanced higherorder models and grammar induction methods to other papers (10) and future work.
Markov Models for Analyzing the Indus Script.
A Markov model (also called a Markov chain) (7, 11, 12) consists of a finite set of N “states” s_{1}, s_{2}, …, s_{N} (e.g., the states could be the signs in the script) and a set of conditional (or transition) probabilities P(s_{i}  s_{j}) that determine how likely it is that state s_{i} follows state s_{j}. There is also a set of prior probabilities P(s_{i}) that denote the probability that state s_{i} starts a sequence. Fig. 1B shows an example of a “state diagram” for a Markov model with 3 states labeled A, B, and #, where A and B denote letters in a language, and # denotes the end of a text. Fig. 1B also shows the prior probabilities P(s_{i}) and the transition probabilities P(s_{i}  s_{j}), picked arbitrarily here for the purposes of illustration. Some example sequences generated by this Markov model are BAAB, ABAB, B, etc. (the terminal sign # is not shown). Texts that are not generated by this Markov model include all texts that contain a repetition of B (…BB…) and all texts that end in A, because these are precluded by the transition probability table. A more realistic example would be a Markov model for English texts involving the 26 letters of the alphabet plus space. In this case, the transition probability table (or matrix) would be of size 27 × 27. In the matrix, we would expect, for example, higher probabilities for the letter “s” to be immediately followed by letters such as “e,” “o,” or “u,” than letters such as “x” or “z,” because of the morphological structure of words in English. A Markov model learned from a corpus of English texts would capture such statistical regularities.
Markov models [and their variants, hidden Markov models (HMMs)] are special cases of a more general class of probabilistic models known as graphical models (6). Graphical models can be used to model complex relationships between states, including higherorder dependencies such as the dependence of a symbol on the past N1 symbols [equivalent to Ngram models in language modeling (9)]. In this article, we focus on firstorder Markov models. In other work (10), we have compared Ngram models for Indus texts using the informationtheoretic measure of “perplexity” (9). We have found that the bulk of the perplexity in the Indus corpus can be captured by a bigram (n = 2) model (or equivalently, a firstorder Markov model), supporting the usefulness of such models in analyzing the Indus script.
We focus in this article on 3 applications of Markov models to analyzing the Indus script: (i) Sampling: We show how new sample texts can be generated by randomly sampling from the prior probability distribution P(s_{i}) to obtain a starting sign (say S_{1}) and then sampling from the transition probabilities P(s_{i}  S_{1}) to obtain the next sign S_{2}, and so on. The string generation process can be terminated by assuming an end of text (EOT) sign that transitions to itself with probability one. (ii) Likelihood computation: If x is a string of length L and is of the form x_{1}x_{2}…x_{L}, where each x_{i} is a sign from the list of signs, the likelihood that x was generated by a Markov model M can be computed as: P(x  M) = P(x_{1}x_{2}…x_{L}  M) = P(x_{1})P(x_{2}  x_{1})P(x_{3}  x_{2})…P(x_{L}  x_{L1}). The likelihood of a string under a particular model tells us how closely the statistical properties of the given string match those of the original strings used to learn the given model. Thus, if the original strings were generated according to the statistical properties of a particular language, the likelihood is useful in ascertaining whether a given string might have been generated by the same language. (iii) Filling in missing signs: Given a learned Markov model M and an input string x with some known signs and some missing signs, one can estimate the most likely complete string x* by calculating the most probable explanation (MPE) for the unknown parts of the string (see Methods for details).
The Indus Script.
A prerequisite for understanding the sequential structure of a script is to identify and isolate its basic signs. This task is particularly difficult in the case of an undeciphered script such as the Indus script, because there is considerable variability in the rendering of the signs, making it difficult to ascertain whether 2 signs that look different are stylistic variants of the same sign or 2 independent signs. After an analysis of the positional statistics of variant signs in a corpus of known inscriptions (ca. 1977), Mahadevan arrived at a list of 417 independent signs in his concordance (13) [Parpola used similar methods to estimate a slightly shorter list of 386 signs (14)]. We used this list of 417 signs as the basis for our study. Fig. 1C shows a subset of signs from this list.
Barring a few exceptions (see p. 14 in ref. 13), the writing direction is generally accepted to be predominantly from right to left (i.e., left to right in seals and right to left in the impressions). There exists convincing external and internal evidence supporting this hypothesis (e.g., refs. 4, 13, and 14). We consequently learned the sequential structure of the Indus texts based on a righttoleft reading of their signs, although a Markov model could equally well be learned for the opposite direction.
Results
Markov Model of Indus Texts.
The learned Markov model provides several interesting insights into the nature of the Indus script. First, examining the learned prior probabilities P(s_{i}) provides information about how likely it is that a particular sign s_{i} starts a text. Fig. 2B shows this probability for the 10 most frequently occurring signs (Fig. 2A) in the corpus of Indus inscriptions.
An examination of Fig. 2B reveals that certain frequently occurring signs such as and (signs numbered 3 and 10 in Fig. 2B) are much more likely to start a text than the others. On the other hand, certain signs such as (the most frequent sign in the corpus) and are highly unlikely to start a text (they are, in fact, highly likely to end a text; see Fig. 3C and Table 1). These observations have also been made by others (13–16).
From the learned values for P(s_{i}), one can also extract the 10 most likely signs to start a text and the 10 least likely signs to do so (among signs occurring at least 20 times in the dataset) (Fig. 3A). These results suggest that some signs that look similar, such as and , subserve different functions within the script and thus cannot be considered variants of the same sign.
The matrix of transition probabilities P(s_{i}  s_{j}) learned from data is shown in Fig. 2C (only the portion corresponding to the 10 most frequent signs is shown). The learned transition probabilities for Indus sign pairs can be shown to be significant, in the sense that the null hypothesis for independence can be rejected (see ref. 10 for details). To interpret the transition probability matrix, consider the entry with the highest value (colored white in Fig. 2C). This value (≈0.8) corresponds to the probability P(s_{i} = 2  s_{j} = 3) and indicates that the sign is followed by the sign with a very high probability. Other highly probable pairs and longer sequences of signs are shown in Fig. 3B.
The transition matrix also tells us which signs are most likely to end a text (these are signs that have a high probability of being followed by the EOT symbol). Fig. 3C (top row) shows 10 signs that occur at least 20 times in the dataset, which have high probabilities (in the range 0.87–0.39) of terminating a text. Fig. 3C (bottom row) shows 10 frequently occurring signs (occurring at least 20 times in the dataset) that have the least probability of terminating a text.
The diagonal of the transition matrix [representing P(s_{i}  s_{i})] tells us how likely it is that a given sign follows itself (i.e., repeats). Fig. 3D shows 10 signs with the highest probability of repeating. The sign occurs in only one inscription where it occurs as a pair, whereas the sign occurs in 8 inscriptions, 6 times as a pair. More interestingly, the frequently occurring sign occurs as a pair in 33 of the 58 inscriptions in which it occurs. The presence of such repeating symbols in the Indus texts puts strong constraints on their semantic interpretation, because the interpretation has to remain intelligible when repeated.
The dark regions in the transition matrix in Fig. 2C indicate a transition probability that is near zero. An inspection of the transition matrix reveals that for a given sign, there exists a specific subset of signs that have a high probability of following that sign, with the rest of the entries of the transition matrix being close to zero. This suggests that the Indus texts exhibit an intermediate degree of flexibility between random and rigid symbol order: there is some amount of flexibility in what the next sign can be, but not too much flexibility. This intermediate degree of flexibility (or randomness) of strings is also exhibited by most natural languages. A comparison of the Indus script with other linguistic and nonlinguistic systems using the measure of conditional entropy to quantify this flexibility is given in ref. 17 (see also ref. 18). One way in which such structure in the transition matrix could arise is from grammarlike rules that allow only a specific subset of signs to follow any given sign. The existence of such rules makes it more likely that the Indus texts encode linguistic information, rather than being random or rigid juxtapositions of emblems or religious and political symbols (19).
Table 1 provides additional support for the hypothesis that sequences of signs in the Indus texts may be governed by specific rules. Table 1 shows that for each of the 10 most frequently occurring signs in the dataset, only a small set of signs has a high probability of following the given sign or being followed by it. The possibility of grammarlike rules is further strengthened by the observation that many of these sets of high probability signs exhibit similarities in visual appearance: for example, among the group of signs with a high probability of following the sign are the signs, , , , and , as well as and . Other such examples can be observed in Table 1 and in the full transition matrix, hinting at distinct syntactic regularities underlying the composition of Indus sign sequences.
Generating New Sample Indus Texts from the Learned Model.
The Markov model learned from the Indus inscriptions acts as a “generative” model, in that one can sample from it and obtain new sequences of signs that conform to the sequential statistics of the original inscriptions (albeit limited to pairwise statistics). Fig. 4A provides an example of a new text obtained by sampling the learned model, along with the closest matching text in the original corpus. The closest match was computed using the “string edit distance” between strings, which measures the number of additions, deletions, and replacements needed to go from one string to the other. The generated text in Fig. 4A is not identical to the closest matching Indus text but differs from it in 2 interesting ways. First, the symbol occurs as the starting symbol instead of . An examination of the transition matrix reveals that both and have a high probability of being followed by the sign . Second, the sample text contains the sign instead of in the same position. This suggests that and may have similar functional roles, given that they occur within similar contexts.
Fig. 4B (top row) gives another example of a new generated Indus text and 2 closest matching texts from the Indus dataset of inscriptions. Once again, based on their interchangeability in these and other texts, one may infer that the signs , , and share similar functional characteristics in terms of where they may appear within texts.
Filling in Incomplete Indus Inscriptions.
Many of the inscribed objects excavated at various Indus sites are damaged, resulting in inscriptions that contain missing or illegible signs. To ascertain whether the model trained on complete texts could be used to fill in the missing portion of incomplete inscriptions, we first generated an artificial dataset of “damaged” inscriptions by taking complete inscriptions from the Indus dataset and obliterating one or more signs. Fig. 4C (top row) shows an example of one such inscription. The complete inscription (middle row) predicted by the Markov model using the MPE method matched a preexisting Indus inscription (bottom row). A detailed crossvalidation study of filling in performance revealed that a firstorder Markov model can correctly predicted deleted signs with ≈74% accuracy (10), which is encouraging given that only pairwise statistics were learned. Further improvement in performance can be expected with higherorder models.
Fig. 4D (top row) shows an actual Indus text with missing signs (from ref. 14). The middle row shows the completed text generated by the MPE method, with the closest matching Indus text at the bottom. The closest matching text differs from the generated text in 2 ways: the “modifier” has been inserted and the sign is replaced by a visually similar sign . The text shown at the left of Fig. 4E is another actual Indus inscription with an unknown number of signs missing (from ref. 13). The 3 texts shown at the right are MPE outputs assuming 1, 2, or 3 signs are missing. The first and third MPE texts actually occur in the Indus corpus, whereas the middle text contains the frequently occurring pair . Additional examples of filling in of damaged texts are given in supporting information (SI) Table S1.
Testing the Likelihood of Indus Inscriptions.
The likelihood of a particular sequence of Indus signs with respect to the learned Markov model tells us how likely it is that the sign sequence belongs to the putative language encoded by the Markov model. We found that altering the order of signs in an existing Indus text typically caused the likelihood of the text to drop dramatically (SI Text and Fig. S1), supporting the hypothesis that the Indus texts are subject to specific syntactic rules determining the sequencing of signs.
Applying this analysis to Indus texts discovered outside the Indus valley, for example, in Mesopotamia and other sites in West Asia, we found that the likelihoods of most of these inscriptions are extremely low compared with their counterparts found in the Indus valley (Table 2). Indeed, the median value of likelihoods for the West Asian texts is 6.40 × 10^{−13}, which is ≈100,000 times less than the median value of 1.12 × 10^{−7} obtained for a random set of 100 texts of Indus valley origin that were excluded from the training set for comparison purposes. These findings suggest the intriguing possibility that the Indus script may have been used to represent a different language or subject matter by Indus traders conducting business in West Asia or West Asian traders sending goods back to the Indus valley. Such a possibility was earlier suggested by Parpola, who noted that the West Asian texts often contain unusual sign combinations (14). Our results provide a quantitative basis for this possibility. The low likelihoods arise from the fact that many of the West Asian texts in Table 2 contain sign combinations such as , , , , and that never appear in any texts found in the Indus valley, even though the signs themselves occur frequently in other combinations in the Indus valley texts.
Discussion
A number of researchers have made observations regarding sequential structure in the Indus script, focusing on frequently occurring pairs, triplets, and other groups of signs (13–15, 20). Koskenniemi suggested the use of pairwise frequencies of signs to construct syntax trees and segment texts, with the goal of eventually deriving a formal grammar (20). More recently, Yadav, Vahia, and colleagues (15, 16) have performed statistical analyses of the Indus texts, including explicit segmentation of texts based on most frequent pairs, triplets, and quadruplets.
In this article, we provide an investigation of sequential structure in the Indus script based on Markov models. An analysis of the transition matrix learned from a corpus of Indus texts provided important insights into which signs tend to follow particular signs and which signs do not. The transition matrix also provides a probabilistic basis for extracting common sequences and subsequences of signs in the Indus texts. We demonstrated how the learned Markov model can be used to generate new sample texts, revealing groups of signs that tend to function similarly within a text. The approach can also be used to fill in missing portions of illegible and incomplete Indus inscriptions based on the corpus of complete inscriptions. Finally, a comparison of the likelihood of Indus inscriptions discovered in West Asian sites with those from the Indus valley suggests that many of the West Asian inscriptions may represent subject matter different from Indus valley inscriptions.
Our results appear to favor the hypothesis that the Indus script represents a linguistic writing system. Our Markov analysis of sign sequences, although restricted to pairwise statistics, makes it clear that the signs do not occur in a random manner within inscriptions but appear to follow certain rules: (i) some signs have a high probability of occurring at the beginning of inscriptions whereas others almost never occur at the beginning; and (ii) for any particular sign, there are signs that have a high probability of occurring after that sign and other signs that have negligible probability of occurring after the same sign. Furthermore, signs appear to fall into functional classes in terms of their position within an Indus text, where a particular sign can be replaced by another sign in its equivalence class. Such rich syntactic structure is hard to reconcile with a nonlinguistic system. Additionally, our finding that the script may have been versatile enough to represent different subject matter in West Asia argues against the claim that the script merely represents religious or political symbols. Other arguments in favor of the linguistic hypothesis for the Indus script are provided by Parpola (21).
Our study suffers from some shortcomings that could be addressed in future work. First, our firstorder Markov model captures only pairwise dependencies between signs, ignoring important longerrange dependencies. Higherorder Markov models (10) and other types of probabilistic graphical models (6) would allow more accurate modeling of such dependencies. A second potential shortcoming is our use of an Indus corpus of texts from 1977 (13). New texts and signs have since been discovered, and new sign lists have been suggested with up to 650 signs (22). However, the types of new material that have been discovered are in the same categories as the texts in the 1977 corpus, namely, more seals, tablets, etc., exhibiting syntactic structure similar to that analyzed in this article. Also, the new signs that have been discovered are still far outnumbered by the most commonly occurring signs in the 1977 corpus, most of which also occur frequently in the newly discovered material. Therefore, we expect the variations in sign frequencies due to the new material to only slightly change the conditional probabilities in the Markov model. Nevertheless, a more complete analysis with all known texts and new sign lists remains an important objective for the future. Additionally, our analysis combined data from different geographical locations. A more detailed sitebysite analysis could shed light on the interesting question of whether there are differences in the sequential patterning of signs across regions.
In summary, the results we have presented strongly suggest the existence of specific rules governing the sequencing of Indus signs in a manner that is indicative of an underlying grammar. A formidable, but perhaps not insurmountable, challenge for the future (also articulated in refs. 14, 15, and 20) is to apply statistical and machine learning techniques to infer a grammar directly from the corpus of available Indus inscriptions.
Methods
We applied our Markov model analysis techniques to a subset of Indus texts extracted from Mahadevan's 1977 concordance (13). This dataset, called EBUDS (15), excludes all texts from Mahadevan's concordance containing ambiguous or missing signs and all texts having multiple lines on a single side of an object. In the case of duplicates of a text, only one copy is kept in the dataset. This resulted in a dataset containing 1,548 lines of text, with 7,000 sign occurrences. We used Mahadevan's list of 417 signs plus an additional EOT sign to denote the end of each text. Signs were fed to the model from right to left in each line of text, ending in the EOT sign.
Learning a Markov Model from Data.
The parameters of a Markov model include the prior probabilities P(s_{i}) and the transition probabilities P(s_{i}  s_{j}). A simple method for computing these probabilities is counting frequencies, e.g., P(s_{i}) is set equal to the number of times sign s_{i} begins a text divided by the total number of texts. This can be shown to be equivalent to maximum likelihood estimation of the parameters (9). However, such an estimate, especially for the transition probabilities P(s_{i}  s_{j}), can yield poor estimates when the dataset is small, as is the case with the Indus script, because many pairs of signs may not occur in the small dataset at all, even though their actual probabilities may be nonzero. There has been extensive research on “smoothing” techniques, which assign small probabilities to unseen pairs based on various heuristic principles (see chapter 6 in ref. 9 for an overview). For the results in this article, we used modified Kneser–Ney smoothing (23) (based on ref. 24), a technique that has been shown to outperform other smoothing techniques on a number of benchmark datasets (23).
Filling in Missing Signs.
Let x = x_{1}x_{2}…x_{L} be a string of length L where each x_{i} is a random variable whose value can be any sign from the list of signs. Let X denote the set of x_{i} for which the values are given and Y the set of x_{i} with values missing. For a general graphical model M, the MPE for the missing variables Y given the “evidence” X is computed as Y* = arg max_{Y} P(Y  X,M). For the learned Markov model, M = (α, π), where α_{i} = P(s_{i}) and π_{ij} = P(s_{i}  s_{j}). For a Markov model, we can compute the MPE Y* = arg max_{Y} P(Y  X, α, π) using a version of the “Viterbi algorithm” (25) (see refs. 8 and 12 for algorithmic details).
Acknowledgments
This work was supported by the Packard Foundation, the Sir Jamsetji Tata Trust, the Simpson Center for the Humanities at the University of Washington (UW), the UW College of Arts and Sciences, the UW College of Engineering and Computer Science and Engineering Department, and the Indus Research Centre, Chennai, India.
Footnotes
 ^{1}To whom correspondence should be addressed. Email: rao{at}cs.washington.edu

Author contributions: R.P.N.R., N.Y., M.N.V., H.J., and R.A. designed research; R.P.N.R., N.Y., H.J., and R.A. performed research; I.M. contributed new reagents/analytic tools; R.P.N.R., N.Y., M.N.V., H.J., and R.A. analyzed data; and R.P.N.R., M.N.V., and R.A. wrote the paper.

The authors declare no conflict of interest.

This article contains supporting information online at www.pnas.org/cgi/content/full/0906237106/DCSupplemental

Freely available online through the PNAS open access option.
References
 ↵
 Cunningham A
 ↵
 Kenoyer JM
 ↵
 Possehl GL
 ↵
 Possehl GL
 ↵
 Bishop C
 ↵
 Jordan MI
 ↵
 Markov AA
 ↵
 Jelenik F
 ↵
 Manning C,
 Schütze H
 ↵
 Yadav N,
 et al.
 ↵
 Drake AW
 ↵
 ↵
 Mahadevan I
 ↵
 Parpola A
 ↵
 Yadav N,
 Vahia MN,
 Mahadevan I,
 Joglekar H
 ↵
 Yadav N,
 Vahia MN,
 Mahadevan I,
 Joglekar H
 ↵
 Rao RPN,
 et al.
 ↵
 ↵
 Farmer S,
 Sproat R,
 Witzel M
 ↵
 Koskenniemi K
 ↵
 Parpola A
 ↵
 Wells BK
 ↵
 Chen SF,
 Goodman J
 ↵
 Kneser R,
 Ney H
 ↵
Citation Manager Formats
More Articles of This Classification
Physical Sciences
Computer Sciences
Social Sciences
Related Content
 No related articles found.
Cited by...
 No citing articles found.