<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="240"/><title>Evaluating Models of Latent Document Semantics in the Presence of OCR Errors</title><pubinfo>Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing,pages 240-250, MIT, Massachusetts, USA, 9-11 October 2010. ©2010 Association for Computational Linguistics</pubinfo><author surname="Walker" givenname="Daniel"><org  name="Lund University" country="Sweden"/></author><author surname="Lund" givenname="William B."><org  name="Lund University" country="Sweden"/></author><author surname="Ringger" givenname="Eric K."><org  name="Brigham Young University" country="USA" city="Provo"/></author></firstpageheader><frontmatter><p><b>Evaluating Models of Latent Document Semantics in the Presence of OCR Errors</b></p><p><b>Daniel D. Walker, William B. Lund, and Eric K. Ringger</b></p><p>Brigham Young University Provo, Utah, USA</p><p>danl4@cs.byu.edu,  bill_lund@byu.edu, ringger@cs.byu.edu</p></frontmatter><abstract>Models of latent document semantics such as the mixture of multinomials model and La­tent Dirichlet Allocation have received sub­stantial attention for their ability to discover topical semantics in large collections of text. In an effort to apply such models to noisy optical character recognition (OCR) text out­put, we endeavor to understand the effect that character-level noise can have on unsu-pervised topic modeling. We show the ef­fects both with document-level topic analy­sis (document clustering) and with word-level topic analysis (LDA) on both synthetic and real-world OCR data. As expected, experi­mental results show that performance declines as word error rates increase. Common tech­niques for alleviating these problems, such as filtering low-frequency words, are successful in enhancing model quality, but exhibit fail­ure trends similar to models trained on unpro­cessed OCR output in the case of LDA. To our knowledge, this study is the first of its kind. </abstract></header><body><section number="1" title="Introduction"><p>As text data becomes available in massive quanti­ties, it becomes increasingly difficult for human cu­rators to manually catalog and index modern docu­ment collections. To aid in the automation of such tasks, algorithms can be used to create models of the latent semantics present in a given corpus. One example of this type of analysis is document cluster­ing, in which documents are grouped into clusters by topic. Another type of topic analysis attempts to discover finer-grained topics—labeling individual words in a document as belonging to a particular topic. This type of analysis has grown in popular­ity recently as inference on models containing large numbers of latent variables has become feasible.</p><p>The modern explosion of data includes vast amounts of historical documents, made available by means of Optical Character Recognition (OCR), which can introduce significant numbers of er­rors. Undertakings to produce such data include the Google Books, Internet Archive, and HathiTrust projects. In addition, researchers are having increas­ing levels of success in digitizing hand-written man­uscripts (Bunke, 2003), though error rates remain much higher than for OCR. Due to their nature, these collections often lack helpful meta-data or labels. In the absence of such labels, unsupervised machine learning methods can reveal patterns in the data.</p><p>Finding good estimates for the parameters of models such as the mixture of multinomials docu­ment model (Walker and Ringger, 2008) and the La­tent Dirichlet Allocation (LDA) model (Blei et al., 2003) requires accurate counts of the occurrences and co-occurrences of words. Depending on the age of a document and the way in which it was created, the OCR process results in text containing many types of noise, including character-level er­rors, which distort these counts. It is obvious, there­fore, that model quality must suffer, especially since unsupervised methods are typically much more sen­sitive to noise than supervised methods. Good su­pervised learning algorithms are substantially more immune to spurious patterns in the data created by noise for the following reason: under the mostly reasonable assumption that the process contributing the noise operates independently from the class la­bels, the noise in the features will not correlate well with the class labels, and the algorithm will learn to ignore those features arising from noise. Unsu-pervised models, in contrast, have no grounding in labels to prevent them from confusing patterns that emerge by chance in the noise with the "true" pat­terns of potential interest.<page local="2" global="241"/> For example, even on clean data, LDA will often do poorly if the very sim­ple feature selection step of removing stop-words is not performed first. Though we expect model qual­ity to decrease, it is not well understood how sensi­tive these models are to OCR errors, or how quality deteriorates as the level of OCR noise increases.</p><p>In this work we show how the performance of un-supervised topic modeling algorithms degrades as character-level noise is introduced. We demonstrate the effect using both artificially corrupted data and an existing real-world OCR corpus. The results are promising, especially in the case of relatively low word error rates (e.g. less than 20%). Though model quality declines as errors increase, simple feature se­lection techniques enable the learning of relatively high quality models even as word error rates ap­proach 50%. This result is particularly interesting in that even humans find it difficult to make sense of documents with error rates of that magnitude (Munteanu et al., 2006).</p><p>Because of the difficulties in evaluating topic models, even on clean data, these results should not be interpreted as definitive answers, but they do offer insight into prominent trends. For example, proper­ties of the OCR data suggest measures that can be taken to improve performance in future work. It is our hope that this work will lead to an increase in the usefulness of collections of OCRed texts, as doc­ument clustering and topic modeling expose useful patterns to historians and other interested parties.</p><p>The remainder of the paper is outlined as follows. After an overview of related work in Section 2, Sec­tion 3 introduces the data used in our experiments, including an explanation of how the synthetic data were created and of some of their properties. Sec­tion 4 describes how the experiments were designed and carried out, and gives an analysis of the results both empirically and qualitatively. Finally, conclu­sions and future work are presented in Section 5.</p></section><section number="2" title="Related Work"><p>Topic models have been used previously to process documents digitized by OCR, including eighteenth-century American newspapers (Newmann and Block, 2006), OCRed editions of <i>Science </i>(Blei and</p><p>Lafferty, 2006), OCRed NIPS papers (Wang and</p><p>McCallum, 2006), and books digitized by the Open Content Alliance (Mimno and Mccallum, 2007). Most of this previous work ignores the presence of OCR errors or attempts to remove corrupted tokens with special pre-processing such as stop-word re­moval and frequency cutoffs. Also, there are at least two instances of using topic modeling to improve the results of an OCR algorithm (Wick et al., 2007; Farooq et al., 2009).</p><p>Similar evaluations to ours have been conducted to assess the effect of OCR errors on supervised doc­ument classification (Taghva et al., 2001; Agarwal et al., 2007), information retrieval (Taghva et al., 1994; Beitzel et al., 2003), and a more general set of natu­ral language processing tasks (Lopresti, 2008). Re­sults suggest that in these supervised tasks OCR er­rors have a minimal impact on the performance of the methods employed, though it has remained un­clear how well these results transfer to unsupervised methods.</p><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">3 Data</doubt><p>We conducted experiments on synthetic and real OCR data. As a real-world dataset, we used a cor­pus consisting of 604 of the Eisenhower World War II communiques (Jordan, 1945; Lund and Ringger, 2009) . These documents relate the daily progress of the Allied campaign from D-Day until the Ger­man surrender. They were originally produced as telegrams and were distributed as mimeographed copies. The quality of the originals is often quite poor, making them a challenging case for OCR en­gines. The communiques have been OCRed using three popular OCR engines: ABBYY FineReader (ABBYY, 2010), OmniPage Pro (Nuance Commu­nications, Inc., 2010), and Tesseract (Google, Inc., 2010) . In addition, the curator of the collection has created a "gold standard" transcription, from which it is possible to obtain accurate measures of average document word error rates (WER) for each engine, which are: 19.9%, 30.4%, and 50.1% respectively.</p><page local="3" global="242"/><p>While the real-world data is attractive as an ex­ample of just the sort of data that the questions ad­dressed here apply to, it is limited in size and scope. All of the documents in the Eisenhower corpus dis­cuss the fairly narrow topic of troop movements and battle developments taking place at the end of World War II. Neither the subject matter nor the means of conveyance allowed for a large or diverse vocabu­lary of discourse.</p><p>In an attempt to generalize our results to larger and more diverse data, we also ran experiments using synthetic OCR data. This synthetic data was created by corrupting "clean" datasets, adding character-level noise. The synthetic data was cre­ated by building a noise model based on mistakes made by the worst performing OCR engine on the Eisenhower dataset, Tesseract.</p><p>To construct the noise model, a character-level alignment between the human transcribed Eisen­hower documents and the OCR output was first com­puted. From this alignment, the contingency table Md was generated such that MX y was the count of the instances in which a character x in the transcript was aligned with a y in the OCR output. The rows in this matrix were then normalized so that each rep­resented the parameters of a categorical distribution, conditioned on <i>x.</i><i> </i>To parameterize the amount of noise being generated, the M matrix was interpo­lated with an identity matrix I using a parameter 7 so that the final interpolated parameters M' were cal­culated with the formula M' = <i>7Md</i><i> </i>+ (1 — 7)1. So that at 7 = 0, M' = I and no errors were in­troduced. At 7 = 1.0, M' = Md, and we would expect to see characters corrupted at the same rate as in the output of the OCR engine.</p><p>We then iterated over each document, choosing a new (possibly the same) character <i>y</i><i>i </i>for each orig­inal character xi according to the probability distri­bution <i>p(y</i><i>i = </i><i>w'\xl </i><i>= </i><i>w)</i><i> </i><i>= </i><i>M%ww,</i>. Our pro­cess was a one-substitution algorithm, as we did not include instances of insertions or deletions, conse­quently words were changed but not split or deleted. This allowed for a more straightforward calculation of word error rate. Segmentation errors can still occur in the learning stage, however, as the noise model sometimes replaced alphabet characters with punctuation characters, which were treated as delim­iters by our tokenizer.</p><p>Table 1: Summary of test dataset characteristics. |D| is the number of documents in the dataset. <i>K </i>is the number of human-labeled classes provided with the dataset.</p><doubt alpha="59.1" length="93" tooSmall="False" monospace="0.0">We chose three datasets to corrupt: 20 News­groups (Lang, 1995), Reuters 21578 (Lewis, 1997),</doubt><p>and the LDC-annotated portion of the Enron e-mail archive (Berry et al., 2007). Each of these datasets were corrupted at values 7 = <i>i * 0.01 </i>for i G (0,13). At this point, the word error rate of the corrupted data was near 50% and, since this was approxi­mately the WER observed for the worst OCR engine on the real-world data, we chose to stop there. The word error rate was calculated during the corruption process. Here is an example sentence corrupted at two <i>7 </i>values:</p><p>7 = 0.000 I am also attaching the RFP itself. 7 = 0.02 I am also attachEng the RFP itself. 7 = 0.10 I Jm alAo attaching the RFP itself.</p><p>Table 3 shows some basic statistics for the datasets. The values shown are for the "clean" ver­sions of the data. For an example of how noise and pre-processing techniques affect these counts see Section 4.1.</p><p>It is interesting to note that the word error rates produced by the noise model appear to be signif­icantly higher than first expected. One might as­sume that the WER should increase fairly steadily from 0% at 7 = 0 to about 50% (the error rate achieved by the Tesseract OCR engine on the Eisen­hower dataset) at 7 = 1. There are at least two sources for the discrepancy. First, the vocabulary of the Eisenhower dataset does not match well with that of any of the source datasets from which the synthetic data were generated. This means that the word and character distributions are different and so the error rates will be as well. Secondly, whereas our technique gives the same probability of corruption to all instances of a given character, errors in true OCR output are bursty and more likely to be concentrated in specific tokens, or regions, of a document. This is because most sources of noise do not affect docu­ment images uniformly.<page local="4" global="243"/> Also, modern OCR engines do not operate at just the character level. They in­corporate dictionaries and language models to pre­vent them from positing words that are highly un­likely. As a consequence, an OCR engine is much more likely to either get a whole word correct, or to miss it completely, concentrating multiple errors in a single word. This is the difference between 10 er­rors in a single word, which only contributes 1 to the numerator of the WER formula and 10 errors spread across 10 different words, which contributes 10 to the numerator. Furthermore, because content bear­ing words tend to be relatively rare, language mod­els are poorer for them than for frequent function words, meaning that the words most correlated with semantics are also the most likely to be corrupted by an OCR engine.</p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Dataset</b></p></td><td class="cell"><p>\D\</p></td><td class="cell"><p>K</p></td><td class="cell"><p><b># Types</b></p></td><td class="cell"><p><b># Tokens</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>20 News</p></td><td class="cell"><p>19997</p></td><td class="cell"><p>20</p></td><td class="cell"><p>107211</p></td><td class="cell"><p>2261805</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Reuters</p></td><td class="cell"><p>11367</p></td><td class="cell"><p>81</p></td><td class="cell"><p>29034</p></td><td class="cell"><p>747458</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Enron</p></td><td class="cell"><p>4935</p></td><td class="cell"><p>32</p></td><td class="cell"><p>60495</p></td><td class="cell"><p>2063667</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Eisenhower</p></td><td class="cell"><p>604</p></td><td class="cell"><p>N/A</p></td><td class="cell"><p>8039</p></td><td class="cell"><p>76674</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>An example of this phenomenon is easy to find. In the Enron corpus, there are 165,871 instances of the word "the" and 102 instances of the string "thc". Since "c" has a high rate of confusion with "e", we would expect at least some instances of "the" to be corrupted to "thc" by the error model. At 7 = 0.03, there are 156,663 instances of the word "the" and 513 instances of "thc". So, the noise model converts "the" to "thc" roughly 0.3% of the time. In con­trast, there are no instances of "thc" in the Tesseract OCR output even though there are 5186 instances of "the" in the transcription text, and so we would expect approximately 16 occurrences of "thc" if the errors introduced by the noise model were truly rep­resentative of the errors in the actual OCR output.</p><p>Another interesting property of the noise intro­duced by actual OCR engines and our synthetic noise model is the way in which this noise affects words distributions. This is very important, since word occurrence and co-occurrence counts are the basis for model inference in both clustering and topic modeling. As mentioned previously, one com­mon way of lessening the impact of OCR noise when training topic models over OCRed data is to apply a frequency cutoff filter to cull words that oc­cur fewer than a certain number of times. Figures 1 and 2 show the number of word types that are culled from the synthetic 20 Newsgroups OCR data and the Eisenhower OCR data, respectively, at various levels of noise. Note that the cutoff filters use a strict "less</p><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">WER</doubt><p>Figure 1: The number of word types culled with fre­quency cutoff filters applied to the 20 Newsgroups data with various levels of errors introduced.</p><p>than", so a frequency cutoff of 2 eliminates only words that occur once in the entire dataset. Also, these series are additive, as the words culled with a frequency cutoff of 2 are a subset of those culled with a frequency cutoff of <i>j &gt; </i>2.</p><p>In both cases, it is apparent that by far the largest impact that noise has is in the creation of single­tons. It seems that the most common corruptions in these scenarios is the creation of one-off word types through a unique corruption of a (most likely rare) word. This means that it is unlikely that enough evi­dence will be available to associate, through similar contexts, the original word and its corrupted forms.</p><p>Due to the fact that most clustering and topic models ignore the forms of word tokens (the charac­ters that make them up), and only take into account word identities, we believe that the similarity in the way in which real OCR engines and our synthetic OCR noise model distort word distributions is suf­ficient evidence to support the use of the synthetic data until larger and better real-world OCR datasets can be made available. Though the actual errors will take a different form, the character-level details of the errors are less relevant than the word distribution alterations for the models in question.</p></section><section number="4" title="Experimental Results"><p>We ran experiments on both the real and synthetic OCR data. In this section we explain our experi-<page local="5" global="244"/></p><p>Figure 2: Fhe number of word types culled with fre­quency cutoff filters applied to the transcript and three OCR engine outputs for the Eisenhower data.</p><p>mental methodology and present both empirical and qualitative analyses of the results.</p><subsection number="4.1" title="Methodology"><p>For the synthetic OCR datasets, we ran clustering experiments using EM on a mixture of multinomials (c.f. (Walker and Ringger, 2008)). We specified the number of clusters to be the same as the num­ber of classes provided with the data. Clusters were evaluated using several external cluster quality met­rics which compare "gold standard" labels to those created through clustering. The metrics used were Variation of Information (VI) (Meila, 2007), and the Adjusted Rand Index (ARI) (Hubert and Arabie, 1985). Other metrics were also calculated (e.g. the V-Measure (Rosenberg and Hirschberg, 2007), and Average Entropy (Liu et al., 2003)), but these results were excluded due to space constraints and the fact that their plots are similar to those shown. We did not cluster the Eisenhower data because of the ab­sence of the class labels necessary for evaluation.</p><p>For both the synthetic and non-synthetic data we also trained LDA topic models (Blei et al., 2003) us­ing Gibbs sampling. We used the implementation found in the MALLET software package (McCal-lum, 2002) with the option enabled to learn the pri­ors during sampling as discussed by Wallach et al. (2009a). Each LDA model was trained on 90% of the documents in each dataset. The trained model was used to calculate an estimate of the marginal log-likelihood of the remaining 10% of the docu­ments using the left-to-right algorithm (Wallach et al., 2009b). The number of topics used for each dataset was adjusted <i>a priori </i>according to the num­ber of documents it contained. We used 100 topics for Enron and Eisenhower, 150 for Reuters, and 200 for 20 Newsgroups.</p><p>In addition to running experiments on the "raw" synthetic data, we also applied simple unsupervised feature selectors before training in order to evalu­ate the effectiveness of such measures in mitigat­ing problems caused by OCR errors. For the topic modeling (LDA) experiments three feature selectors were used. The first method employed was a simple term frequency cutoff filter (TFCF), with a cutoff of 5 as in (Wang and McCallum, 2006). The next method employed was Term Contribution (TC), a feature selection algorithm developed for document clustering (Liu et al., 2003). Term contribution is parameterized by the number of word types that are to remain after selection. We attempted three val­ues for this parameter, 10,000, 20,000, and 50,000.</p><p>The final method we employed was a method called Top-N per Document (TNPD) (Walker and Ring­ger, 2010), which is a simple feature selection al­gorithm that first assigns each type in every doc­ument a document-specific score (e.g. its TF-IDF weight), and then selects words to include in the fi­nal vocabulary by choosing the N words with the highest score from each document in the corpus. We found that N = 1 gave the best results at the great­est reduction in word types. After the vocabulary is built, all words not in the vocabulary are culled from the documents. This does not mean that all docu­ments contain only one word after feature selection, as the top word in one document may occur in many other documents, even if it is not the top word in those documents. Likewise, if two documents would both contribute the same word, then the second doc­ument makes no contribution to the vocabulary. This process can result in vocabularies with thousands of words, leaving sufficient words in each document for analysis. For the clustering experiments, initial tests showed little difference in the performance of the feature selectors, so only the TNPD selector was used. Figures 3(a) and 3(b) show how the various pre-processing methods affect word type and token<page local="6" global="245"/></p><doubt alpha="50.0" length="2" tooSmall="True" monospace="0.0">&lt;u</doubt><doubt alpha="12.5" length="8" tooSmall="True" monospace="0.0">Ç- 30000</doubt><doubt alpha="0.0" length="16" tooSmall="False" monospace="0.0">- *— ■+ — *- ■*-</doubt><doubt alpha="23.1" length="13" tooSmall="True" monospace="0.0">A - ■ - A - A</doubt><doubt alpha="5.6" length="18" tooSmall="False" monospace="0.0">»     ♦    ♦    ♦t</doubt><doubt alpha="0.0" length="59" tooSmall="True" monospace="0.0">10       15       20       25       30       35       40 45</doubt><p>Word Error Rate</p><p>(a) The number of word types remaining after pre-processing.    (b) The number of word tokens remaining after pre-processing.</p><p>Figure 3: The effect of pre-processing on token and type counts for the 20 Newsgroups dataset at various error rates.</p><p>counts, respectively, for the 20 Newsgroups dataset. In contrast, without pre-processing the number of types scales from 107,211 to 892,983 and the num­ber of tokens from 2,261,805 to 3,073,208.</p><p>Because all of these procedures alter the number of words and tokens in the final data, log-likelihood measured on a held-out set cannot be used to accu­rately compare the quality of topic models trained on pre-processed data, as the held-out data will con­tain many unknown words. If the held-out data is also pre-processed to only include known words, then the likelihood will be greater for those proce­dures that remove the most tokens, as the product that dominates the calculation will have fewer terms. If unknown words are allowed to remain, even a smoothed model will assign them very little prob­ability and so models will be heavily penalized.</p><p>We use an alternative method for evaluating the topic models, discussed in (Griffiths et al., 2005), to avoid the aforementioned problems with an evalu­ation based on log-likelihood. Since the synthetic data is derived from datasets that have topical docu­ment labels, we are able to use the output from LDA in a classification problem with the word vectors for each document being replaced by the assigned topic vectors. This is equivalent to using LDA as a dimensionality reduction pre-process for document classification. A naive Bayes learner is trained on a portion of the topic vectors, labeled with the origi­nal document label, and then the classification accuracy on a held-out portion of the data is computed. Ten-fold cross-validation is used to control for sam­pling issues. The rationale behind this evaluation is that, even though the topics discovered by LDA will not correspond directly to the labels, there should at least be a high degree of correlation. Models that discover topical semantics that correlate well with the labels applied by humans will yield higher clas­sification accuracies and be considered better mod­els according to this metric.</p><p>To compensate for the randomness inherent in the algorithms, each experiment was replicated ten times. The results of these runs were averaged to produce the values reported here.</p></subsection><subsection number="4.2" title="Empirical Analysis"><p>Both the mixture of multinomials document model and LDA appear to be fairly resilient to character-level noise. Figures 4 and 5 show the results of the document clustering experiments with and without feature selection, respectively. Memory issues pre­vented the collection of results for the highest error rates on the Enron and Reuters data without feature selection.</p><p>With no pre-processing, the results are somewhat mixed. The Enron dataset experiences almost no quality degradation as the WER increases, yielding remarkably constant results according to the metrics. However, this may be an artifact of the relatively poor starting performance for this dataset, a result of the fact that the gold standard labels do not align<page local="7" global="246"/></p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>H-h</p></td><td class="cell"><p>tc.10000</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>A</p></td><td class="cell"><p>A</p></td><td class="cell"><p>tc.20000</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>A</p></td><td class="cell"><p>A</p></td><td class="cell"><p>tc.50000</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Y</p></td><td class="cell"><p>-Y</p></td><td class="cell"><p>tfcf.5</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>o</p></td><td class="cell"><p>O</p></td><td class="cell"><p>tnpd.l</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><doubt alpha="0.0" length="59" tooSmall="True" monospace="0.0">10       15       20       25       30       35       40 45</doubt><p>Word Error Rate</p><doubt alpha="57.1" length="42" tooSmall="False" monospace="0.0">h—h20_newsgroups - - reuters21578 *- enron</doubt><p>(a) Adjusted Rand Index results (b) Variation of Information results (lower is better)</p><p>Figure 4: Results for the clustering experiments on the three synthetic datasets <i>without </i>feature selection.</p><p>well with automatically discovered patterns because they correspond to external events. In contrast, the Reuters data appears to experience drastic degrada­tion in performance. Once feature selection occurs, however, performance remains much more stable as error rates increase.</p><p>Figure 6(a) shows the results of running LDA on the transcript and digitized versions of the Eisen­hower dataset. Log-likelihoods of the held-out set are plotted with respect to the WER observed for each OCR engine. The results support the find­ing that the WER of the OCR engine that produced the data has a significant negative correlation with model quality. Unfortunately, it was not possible to compare the performance of the pre-processing methods on this dataset, due to a lack of document topic labels and the deficiencies of log-likelihood mentioned previously.</p><p>Figure 6(b) shows the results of the LDA topic-modeling experiments on the three "raw" synthetic datasets. Similar trends are observed in this graph. LDA experiences a marked degree of performance degradation, with all of the trend lines indicating a linear decrease in log-likelihood.</p><p>Figures 7(a) through 7(c) show the results of eval­uating the various proposed pre-processing proce­dures in the context of topic modeling. In the graph "noop.0" represents no pre-processing, "tc.N" are the Term Contribution method parameterized to se­lect N word types, "tfcf.5" is the term frequency cutoff filter with a cutoff of 5 and "tnpd.1" is the Top N per Document method with N = 1. The y-axis is the average of the results for 10 distinct trials, where the output for each trial is the average of the ten ac­curacies achieved using ten-fold cross-validation as described in Section 4.1.</p><p>Here, the cross-validation accuracy metric reveals a slightly different story. These results show that topic quality on both the raw and pre-processed noisy data degrades at a rate relative to the amount of errors in the data. That is, the difference in perfor­mance between two relatively low word error rates (e.g. 5% and 7% on the Reuters data) is small, whereas the differences between two high error rates (e.g. 30% and 32% on the Reuters data) can be rela­tively quite large.</p><p>While pre-processing does improve model qual­ity, in the case of LDA this improvement amounts to a nearly constant boost; at high error rates quality is improved the same amount as at low error rates. Degradations in model quality, therefore, follow the same trends, occurring at mostly the same rate in pre-processed data as in the raw noisy data. This is in contrast to the clustering experiments where pre­processing virtually eliminates failure trends.</p></subsection><subsection number="4.3" title="Qualitative Analysis"><p>Higher values measured with automated metrics such as log-likelihood on a held-out set and the cross-validation classification metric discussed here<page local="8" global="247"/></p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>h—</b><i>v </i>20_newsgroups</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>* -a </b>reuters21578</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>*- -+ enron</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>/        ..s -    - - *-</b></p></td><td class="cell"><p><i>-l-i -</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><doubt alpha="0.0" length="3" tooSmall="True" monospace="0.0">4.5</doubt><doubt alpha="3.1" length="32" tooSmall="True" monospace="0.0">'o 10 20 30 40 502°0 10 20 30 40</doubt><p>Word Error Rate Word Error Rate</p><p>(a) Adjusted Rand Index results (b) Variation of Information results (lower is better)</p><p>Figure 5: Results for the clustering experiments on the three synthetic OCR datasets <i>with </i>TNPD feature selection.</p><p>do not necessarily indicate superior topics according to human judgement (Chang et al., 2009). In order to provide a more thorough discussion of the relative quality of the topic models induced on the OCR data versus those induced on clean data, we sampled the results of several of the runs of the LDA algorithm. In Tables 2 and 3 we show the top words for the five topics with the highest learned topic prior <i>(a</i><i> </i>in the LDA literature) learned during Gibbs sampling. This information is shown for the Reuters data first with no corruption and then at the highest error rate for which we have results for that data of 45% WER.</p><p>In general, there appears to be a surprisingly good correlation between the topics learned on the clean data and those learned on the corrupted data, given the high level of noise involved. The topics are generally cohesive, containing mostly terms relat­ing to financial market news. However, the topics trained on the clean data, though all related to finan­cial markets, are fairly distinctive. Topic 3, for ex­ample seems to be about fluctuations in stock prices, and Topics 106 and 34 about business acquisitions and mergers. The topics trained on the noisy data are fairly homogeneous and the differences between them are more difficult to identify.</p><p>In addition, it appears as though the first topic (topic 93) is not very coherent at all. This topic is significantly larger, in terms of the number of tokens assigned to it than the other topics shown in either table. In addition, the most probable words listed for the topic seem less cohesive than for the other top­ics. It contains many two-letter words that are likely a mixture of valid terms (e.g., stock exchange and ticker symbols, and parts of place names like "Rio de Janeiro") and corruptions of real words. For ex­ample, even though there are no instances of "ts" as a distinct token in the clean Reuters data, it is in the list of the top 19 words for topic 93. This is perhaps due to the fact that "is" can easily be converted to "ts" by mistaking t for i.</p><p>It is also the case that, for most topics learned on the corrupted data, the most probable words for those topics tend to be shorter, on average, than for topics learned on clean data. We believe this is due to the fact that the processes used to add noise to the data (both real OCR engines and our synthetic noise model) are more likely to corrupt long words, es­pecially in the case of the synthetic data which was created using a character-level noise model.</p><p>Examination of the data tends to corroborate this hypothesis, though even long words usually contain only a few errors. For example, in the 20 News­groups data there are 379 instances of the word "yes­terday", a long word that is not close to other English words in edit distance. When the data has been cor­rupted to a WER of 47.9%, however, there are only 109 instances of "yesterday" and 132 tokens that are within an edit distance of 1 from "yesterday".</p><p>To some extent, we would expect to observe sim­ilar trends in real-world data. However, most OCR<page local="9" global="248"/></p><p>Word Error Rate</p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">+</doubt><doubt alpha="71.4" length="7" tooSmall="True" monospace="0.0">▲ abbyy</doubt><doubt alpha="80.0" length="10" tooSmall="True" monospace="0.0">+ omnipage</doubt><doubt alpha="81.8" length="11" tooSmall="True" monospace="0.0">■ tesseract</doubt></subsection></section><section number="0" title="transcript"><doubt alpha="0.0" length="11" tooSmall="True" monospace="0.0">10 20 30 40</doubt><doubt alpha="0.0" length="10" tooSmall="False" monospace="0.0">22-2000000</doubt><doubt alpha="0.0" length="11" tooSmall="True" monospace="0.0">_, -3000000</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">■o</doubt><doubt alpha="63.4" length="41" tooSmall="True" monospace="0.0">h—h20_newsgroupsa areuters21578 * * enron</doubt><doubt alpha="0.0" length="2" tooSmall="True" monospace="0.0">10</doubt><doubt alpha="0.0" length="5" tooSmall="True" monospace="0.0">20 30</doubt><doubt alpha="0.0" length="5" tooSmall="True" monospace="0.0">40 50</doubt><p>(a) Eisenhower Communiques (b) Synthetic Data (a) 20 Newsgroups Data</p><figure caption="Figure 6: Log-likelihood of heldout data for the LDA experiments."></figure><p>Figure 7: Average ten-fold cross-validation accuracy for the LDA pre-processing experiments on the synthetic OCR data.</p><page local="10" global="249"/><p><b><u>Topic</u> </b>I <b><u>Words</u> </b>I <b><u>Tokens</u></b></p><p>Table 2: Top words for the five topics with the highest <i>a </i>prior values found using MALLET for one run of LDA on the uncorrupted Reuters data.</p><p>engines employ language models and dictionaries to attempt to mitigate OCR errors. As a result, given that a word recognition error has occurred in true OCR output, it is more likely to be an error that lies at an edit distance greater than one from the true word, or else it would have been corrected inter­nally. For example, there are 349 instances of the word "yesterday" in the Eisenhower transcripts, and 284 instances in the Tesserect OCR output and only 5 tokens within an edit distance of one, meaning that 60 corruptions of this word contained more than one error, making up 90% of the errors for that word. However, many of these errors still contain most of the letters from the original word (e.g. "yesterdj.", and "yestjkday"). In all cases, the corrupted versions of a given word are very rare, occurring usually only once or twice in the noisy output, making them use­less features for informing a model.</p></section><section number="5" title="Conclusions and Future Work"><p>The primary outcome of these experiments is an understanding regarding when clustering and LDA topic models can be expected to function well on noisy OCR data. Our results imply that clustering methods should perform almost as well on OCR data as they do on clean data, provided that a reasonable feature selection algorithm is employed. The LDA topic model degraded less gracefully in performance</p><p>Table 3: Top words for the five topics with the highest <i>a </i>prior values found using MALLET for one run of LDA on the Reuters data corrupted with the data-derived noise model to a WER of 45%.</p><p>with the addition of character level errors to its in­put, with higher error rates impacting model quality in a way that was apparent empirically in the log-likelihood and ten-fold cross-validation metrics as well as through human inspection of the produced topics. Pre-processing the data also helps model quality for LDA, yet still yields failure trends sim­ilar to those observed on unprocessed data.</p><p>We found it to be the case that even in data with high word error rates, corrupted words often share many characters in common with their uncorrupted form. This suggests an approach in which word sim­ilarities are used to cluster the unique corrupted ver­sions of a word in order to increase the evidence available to the topic model during training time and improve model quality. As the quality of models in­creases on these noisy datasets, we anticipate a con­sequent rise in their usefulness to researchers and historians as browsing the data and mining it for use­ful patterns becomes more efficient and profitable.</p></section><section title="Acknowledgments"><p>We would like to thank the Fulton Supercomput­ing Center at BYU for providing the computing re­sources required for experiments reported here.</p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Topic</b></p></td><td class="cell"><p><b>Words</b></p></td><td class="cell"><p><b>Tokens</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>93</p></td><td class="cell"><p>reuter, march, pct, year, april, ed, market, er, told, es, st, end, ts, al, de, ng, id, sa, added</p></td><td class="cell"><p>258932</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>99</p></td><td class="cell"><p>company, pct, corp, shares, stock, dlrs, share, offer, group, reuter, mln, march, unit, stake, buy, cash, bid, sale, board</p></td><td class="cell"><p>50377</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>96</p></td><td class="cell"><p>mln, cts, net, shr, qtr, dlrs, revs, reuter, note, oper, avg, march, shrs, year, mths, st, sales, corp, oct</p></td><td class="cell"><p>54659</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>141</p></td><td class="cell"><p>mln, dlrs, year, net, quarter, share, com­pany, billion, tax, sales, earnings, dlr, profit, march, income, ln, results, sale, corp</p></td><td class="cell"><p>40475</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>53</p></td><td class="cell"><p>pct, year, rose, rise, january, february, fell, march, index, december, month, figures, compared, reuter, rate, earlier, show, ago, base</p></td><td class="cell"><p>22556</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>64</p></td><td class="cell"><p>told, market, reuters, reuter, added, time, year, major, years, president, make, made, march, world, today, officials, industry,</p><p>government, move</p></td><td class="cell"><p>67159</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>3</p></td><td class="cell"><p>year, pct, prices, expected, rise, lower, higher, demand, increase, due, fall, de­cline, current, high, end, added, level, drop, market</p></td><td class="cell"><p>32907</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>106</p></td><td class="cell"><p>reuter, corp, company, unit, sale, march, dlrs, mln, sell, subsidiary, acquisition, terms, group, april, purchase, acquired, products, division, business</p></td><td class="cell"><p>22167</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>34</p></td><td class="cell"><p>shares, dlrs, company, mln, stock, pct, share, common, reuter, corp, agreement, march, shareholders, buy, cash, outstand­ing, merger, acquire, acquisition</p></td><td class="cell"><p>22668</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>7</p></td><td class="cell"><p>mln, cts, net, shr, qtr, revs, reuter, avg, shrs, march, mths, dlrs, sales, st, corp, oct, note, year, april</p></td><td class="cell"><p>18511</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table></section><references><p>ABBYY. 2010. ABBYY finereader.</p><p>http://finereader.abbyy.com.</p><page local="11" global="250"/><p>S. Agarwal, S. Godbole, D. Punjani, and Shourya Roy. 2007. How much noise is too much: A study in automatic text clas­sification. In <i>Proceedings of the Seventh IEEE Intl. Conf. on Data Mining (ICDM2007), </i>pages 3-12. Steven M. Beitzel, Eric C. Jensen, and David A. Grossman. 2003. A survey of retrieval strategies for ocr text collec­tions. In <i>In Proceedings ofthe Symposium on Document Image Understanding Technologies. </i>Michael W. Berry, Murray Brown, and Ben Signer. 2007. 2001</p><p>topic annotated Enron email data set. David M. Blei and John D. Lafferty.  2006.  Dynamic topic models. In <i>Proceedings of the 23rd Intl. Conf. on Machine Learning (ICML 2006). </i>David M. Blei, Andrew Y. Ng, and Michael I. Jordan. 2003. Latent Dirichlet allocation. <i>Journal ofMachine Learning Research, </i>3:993-1022. Horst Bunke.      2003.      Recognition of cursive roman handwriting- past, present and future. In <i>7th International Conference on Document Analysis and Recognition (ICDAR</i> <i>2003), </i>volume 1, pages 448-459.</p><p>Jonathan Chang, Jordan Boyd-Graber, Sean Gerrish, Chong Wang, and David Blei. 2009. Reading tea leaves: How humans interpret topic models. In <i>Advances in Neural Infor­mation Processing Systems 22, </i>pages 288-296. Faisal Farooq, Anurag Bhardwaj, and Venu Govindaraju. 2009. Using topic models for OCR correction. <i>Intl. Journal on Document Analysis and Recognition (IJDAR), </i>12(3), September.</p><p>Google,       Inc. 2010. Tesseract.</p><p>http://code.google.com/p/tesseract-ocr. Thomas L. Griffiths, Mark Steyvers, David M. Blei, and Joshua B. Tenenbaum. 2005. Integrating topics and syntax. In <i>In Advances in Neural Information Processing Systems </i>17, pages 537-544. MIT Press. Lawrence Hubert and Phipps Arabie. 1985. Comparing parti­tions. <i>Journal of Classification, </i>2(1):193-218, December. David Reed Jordan. 1945. Daily battle communiques, 1944­1945. Harold B. Lee Library, L. Tom Perry Special Collec­tions, MSS 2766.</p><p>Ken Lang. 1995. NewsWeeder: Learning to filter netnews. In <i>Proceedings ofthe Twelfth International Conference on Machine Learning, </i>pages 331-339. D. Lewis. 1997. Reuters-21578 text categorization test collec­tion. http://www.research.att.com/~lewis<i>. </i>Tao Liu, Shengping Liu, Zheng Chen, and Wei-Ying Ma. 2003. An evaluation on feature selection for text clustering. In <i>Pro­ceedings of the Twentieth Intl. Conf. on Machine Learning</i> <i>(ICML 2003), </i>August.</p><p>Daniel Lopresti. 2008. Optical character recognition errors and their effects on natural language processing. In <i>Proceedings of the second workshop on Analytics for noisy unstructured text data (AND 2008), </i>pages 9-16. William B. Lund and Eric. K Ringger. 2009. Improving op­tical character recognition through efficient multiple system alignment. In <i>Proceedings ofthe Joint Conf. on Digital Li­braries (JCDL'09), </i>June.</p><p>Andrew Kachites McCallum. 2002. MALLET: A machine learning for language toolkit. http://mallet.cs.umass.edu.</p><p>Marina Meila. 2007. Comparing clusterings—an informa­tion based distance. <i>Journal of Multivariate Analysis, </i>98(5):873-895.</p><p>David Mimno and Andrew Mccallum. 2007. Organizing the OCA: learning faceted subjects from a library of digital books. In <i>Proceedings ofthe Joint Conf. on Digital Libraries</i> <i>(JCDL 07), </i>pages 376-385.</p><p>Cosmin Munteanu, Ronald Baecker, Gerald Penn, Elaine Toms, and David James. 2006. The effect of speech recognition accuracy rates on the usefulness and usability of webcast archives. In <i>Proceedings of the SIGCHI conference on Hu­man Factors in computing systems, </i>pages 493-502.</p><p>David J. Newmann and Sharon Block. 2006. Probabilistic topic decomposition of an eighteenth-century american newspa­per. <i>J. Am. Soc. Inf. Sci. Technol., </i>57(6):753-767, February.</p><p>Nuance Communications, Inc. 2010. OmniPage Pro. http://www.nuance.com/imaging/products/omnipage.asp.</p><p>Andrew Rosenberg and Julia Hirschberg. 2007. V-measure: A conditional entropy-based external cluster evaluation mea­sure. In <i>Joint Conference on Empirical Methods in Natural Language Processing and Computational Language Learn­ing (EMNLP-CoNLL 2007).</i></p><p>Kazem Taghva, Julie Borsack, and Allen Condit. 1994. Results of applying probabilistic ir to ocr text. In <i>in Proc. 17th Intl. ACM/SIGIR Conf. on Research and Development in Infor­mation Retrieval, </i>pages 202-211.</p><p>Kazem Taghva, Tom Nartker, Julie Borsack, Steve Lumos, Allen Condit, and Ron Young. 2001. Evaluating text catego­rization in the presence of ocr errors. In <i>In Proc. IS&amp;T/SPIE 2001 Intl. Symp. on Electronic Imaging Science and Tech­nology, </i>pages 68-74. SPIE.</p><p>Daniel Walker and Eric Ringger. 2008. Model-based document clustering with a collapsed gibbs sampler. In <i>Proceedings of the 14th ACM SIGKDD Intl. Conf. on Knowledge Discovery and Data Mining (KDD 2008).</i></p><p>Daniel Walker and Erik K. Ringger. 2010. Top N per docu­ment: Fast and effective unsupervised feature selection for document clustering. Technical Report 6, Brigham Young University. http://nlp.cs.byu.edu/techreports/BYUNLP-</p><p>TR6.pdf.</p><p>Hanna Wallach, David Mimno, and Andrew McCallum. 2009a. Rethinking LDA: Why priors matter. In <i>Advances in Neural Information Processing Systems 22, </i>pages 1973-1981.</p><p>Hanna M. Wallach, Iain Murray, Ruslan Salakhutdinov, and David Mimno. 2009b. Evaluation methods for topic models. In <i>Proceedings ofthe 26th Annual Intl. Conf. on Machine Learning (ICML 2009), </i>pages 1105-1112.</p><p>Xuerui Wang and Andrew McCallum. 2006. Topics over time: A non-markov continuous-time model of topical trends. In <i>Proceedings of the 12th ACM SIGKDD Intl. Conf. on Knowl­edge Discovery and Data Mining (KDD 2006).</i></p><p>Michael L. Wick, Michael G. Ross, and Erik G. Learned-Miller. 2007. Context-sensitive error correction: Using topic models to improve OCR. In <i>Proceedings ofthe Ninth Intl. Conf. on Document Analysis and Recognition (ICDAR 2007), </i>pages 1168-1172.</p></references></body></article>