[Paper Review] A Machine Learning Framework for Authorship Identification From Texts
This paper proposes a supervised machine learning framework for authorship identification using stylometric features, including part-of-speech (POS) bigrams and character n-grams, combined with text features like word unigrams and bigrams. The approach achieves 81.6% accuracy on a holdout test set with 50 authors, demonstrating that integrating linguistic stylometric features significantly improves classification performance over baseline unigram models.
Authorship identification is a process in which the author of a text is identified. Most known literary texts can easily be attributed to a certain author because they are, for example, signed. Yet sometimes we find unfinished pieces of work or a whole bunch of manuscripts with a wide variety of possible authors. In order to assess the importance of such a manuscript, it is vital to know who wrote it. In this work, we aim to develop a machine learning framework to effectively determine authorship. We formulate the task as a single-label multi-class text categorization problem and propose a supervised machine learning framework incorporating stylometric features. This task is highly interdisciplinary in that it takes advantage of machine learning, information retrieval, and natural language processing. We present an approach and a model which learns the differences in writing style between $50$ different authors and is able to predict the author of a new text with high accuracy. The accuracy is seen to increase significantly after introducing certain linguistic stylometric features along with text features.
Motivation & Objective
- To develop a robust machine learning framework for identifying authors of unseen texts using stylometric and linguistic features.
- To investigate the effectiveness of novel feature spaces, particularly POS bigrams, in improving authorship classification accuracy.
- To evaluate the impact of combining textual features (e.g., unigrams, bigrams) with stylometric features (e.g., function words, n-grams) on classification performance.
- To assess generalization performance on a holdout test set and compare optimized models against baseline models.
- To explore limitations in handling short texts and non-English corpora, and to identify directions for future work.
Proposed method
- Formulates authorship identification as a single-label multi-class text categorization problem.
- Uses a LibLINEAR SVM classifier trained on a combination of textual features (word unigrams, bigrams) and stylometric features (function words, character n-grams, POS bigrams, word-POS pairs).
- Applies 10-fold cross-validation for hyperparameter tuning and model selection, with bias term as the only tuned parameter.
- Performs feature selection to optimize the model and improve generalization.
- Employs a holdout test set for final evaluation after cross-validation and tuning.
- Uses statistical significance testing (t-test, p-value) to assess the improvement of the optimized model over the baseline.
Experimental results
Research questions
- RQ1Can the integration of part-of-speech (POS) bigrams into the feature space significantly improve authorship identification accuracy?
- RQ2How does the inclusion of stylometric features such as function words and character n-grams affect classification performance compared to baseline text features alone?
- RQ3Does the performance of the model generalize to unseen data, and how does it compare to a baseline model using only word unigrams?
- RQ4To what extent does the model generalize to short texts, such as microblog posts, or non-English corpora?
- RQ5What is the statistical significance of performance gains achieved by feature engineering and model optimization?
Key findings
- The optimized model achieved 81.6% accuracy and a Cohen’s kappa of 0.8122 on the holdout test set, outperforming the baseline model’s 79.8% accuracy and 0.7939 kappa.
- The improvement in accuracy was not statistically significant (p = 0.106, t = -1.619), indicating that while performance increased, the gain may not be reliably different from chance.
- The best-performing model used a bias term of 1, which was the default setting, indicating no need for hyperparameter tuning in this case.
- Error analysis confirmed that the inclusion of stylometric features significantly improved model performance, supporting the hypothesis that such features are strong indicators of authorial style.
- The use of POS bigrams and word-POS pairs contributed meaningfully to performance, suggesting that syntactic patterns are reliable stylistic markers.
- The model generalizes reasonably well to unseen data, with over 80% of test instances correctly classified, though limitations remain for very short texts and non-English languages.
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.