Automatic Authorship Identification Diana Michalek, Ross T. Sowell, Paul Kantor, Alex Genkin, David Madigan, Fred Roberts, and David D. Lewis
Acknowledgements Support –U.S. National Science Foundation Knowledge Discovery and Dissemination Program Disclaimer –The views expressed in this talk are those of the authors, and not of any other individuals or organizations.
The Authorship Problem Given: –A piece of text with unknown author –A list of possible authors –A sample of their writing Problem: –Can we automatically determine which person wrote the text?
The Authorship Problem Given: –A piece of text –A list of possible authors –A sample of their writing Problem: –Can we automatically determine which person wrote the text? Approach: –Use style markers to identify the author
Motivation and Applications Forensics Arts
Motivation and Applications Forensics –Unabomber Arts
Motivation and Applications Forensics –Unabomber Arts –Shakespeare
Motivation and Applications History
Motivation and Applications History –Federalist Papers
Motivation and Applications History –Federalist Papers
Motivation and Applications History –Federalist Papers
Motivation and Applications History –Federalist Papers 85 Total 12 Disputed
Motivation and Applications History –Federalist Papers 85 Total 12 Disputed
Motivation and Applications Counter-Terrorism
Motivation and Applications Counter-Terrorism –Osama Bin Laden
Previous Work: Mosteller and Wallace (1984) Function Words
Previous Work: Mosteller and Wallace (1984) Function Words UponAlsoAn ByOfOn ThereThisTo AlthoughBothEnough WhileWhilstAlways ThoughCommonlyConsequently Considerable(ly)AccordingApt DirectionInnovation(s)Language Vigor(ous)KindMatter(s) ParticularlyProbabilityWork(s)
Previous Work: Mosteller and Wallace (1984) Function Words UponAlsoAn ByOfOn ThereThisTo AlthoughBothEnough WhileWhilstAlways ThoughCommonlyConsequently Considerable(ly)AccordingApt DirectionInnovation(s)Language Vigor(ous)KindMatter(s) ParticularlyProbabilityWork(s) w k = number times word k appears in text T = (w 1, w 2, …, w 30 )
Previous Work: Mosteller and Wallace (1984) Bayesian Inference
Previous Work: Mosteller and Wallace (1984) Bayesian Inference Odds(1, 2 | x) = (p 1 /p 2 )[f 1 (x)/f 2 (x)] Final odds = (initial odds)(likelihood ratio)
Previous Work: Mosteller and Wallace (1984) Experiment –Use 18 Hamilton and 14 Madison papers to gather information Results
Previous Work: Mosteller and Wallace (1984) Experiment –Use 18 Hamilton and 14 Madison papers to gather information –Test: known Hamilton papers, disputed papers Results
Previous Work: Mosteller and Wallace (1984) Experiment –Use 18 Hamilton and 14 Madison papers to gather information –Test: known Hamilton papers, disputed papers Results –Strong odds in favor of Hamilton for other known Hamilton papers –Strong odds in favor of Madison for all disputed papers
Previous Work: Corney (2003) Analyzed data to determine: –minimum message length –minimum number of messages needed to model an authors’ style –which stylometric features can be used to determine authorship
Previous Work: Corney (2003) Stylometric features –Proportion of white-space –Punctuation patterns –Function word frequencies –Frequency of 2-grams – -specific features Greetings, signatures, html tags
Previous Work: Corney (2003) Conclusions: –Authorship attribution can be successfully performed – words is enough –20 data points is enough for training –Best feature: function words –Not so great: 2-grams
Our Work: Trials with the Federalist Papers Wrote scripts in Perl and Python to compute –Sentence length frequencies –Word length frequencies –Ratios of 3-letter words to 2-letter words Analyzed our data with graphing and statistics software.
Sentence Length Frequencies Step 1: Parsing the text –What constitutes a sentence? “Mrs. Jones is has been working on her Ph.D. for 8.5 years.” “I said no.” “Take the no. 7 bus downtown.” “What are you talking about ?!?!?!?!!” “Sometimes….I just feel…anxious.”
Sentence Length Frequencies Step 2: Obtain sentence length data iMH iMH ……… ……… i - sentence length M - Number of length-i sentences in known Madison papers (1139 sentences) H - Number of length-i sentences in known Hamilton papers (1142 sentences)
Sentence Length Frequencies Step 3: Graph the data
Sentence Length Distributions Step 4: Does the data show a difference between Madison and Hamilton? –View sentence lengths as sample data taken from two distributions –Apply the Kolmogorov-Smirnov test
Kolmogorov-Smirnov Test Input: –Two vectors of data values, taken from a continuous distribution. Method: –Examines maximal vertical distance between empirical cumulative distribution curves Output: –p-value AB AB
Kolmogorov-Smirnov Test Results of step 4: –p-value for sentence length frequency data is…
Kolmogorov-Smirnov Test Results of step 4: –p-value for sentence length frequency data is… Not too helpful…but there is hope! –Try more features –Try different features
Future Work Examine data Build our own authorship-identification tool Test new stylometric features for distinguishing ability