Abstract
O aumento no volume de documentos digitais associado ao seu uso no processo de verificação de aprendizagem demanda recursos computacionais para compreensão e análise de autoria. A literatura propõe distinguir os autores pelo estilo de escrita e palavras-chave. Entretanto, estes trabalhos não estão inseridos no contexto educacional e são majoritariamente em inglês. Este artigo se distingue por explorar a verificação de autoria numa base de atividades pedagógicas escritas na língua portuguesa. Devido ao baixo volume de exemplos, usamos bases jornalísticas robustas como referência. Por meio dos experimentos verificamos que em domínios restritos, representações baseadas em características de estilo são superiores à abordagens textuais, que sofrem influência do tópico em corpora mais abrangente. Este trabalho revelou que o modelo Extremely Randomized Trees associado às características de estilo propostas foi superior aos demais modelos, em todas as bases utilizadas, alcançando uma média de 70% na taxa de acerto e AUC 0.81.
Introduction
In the digital age, verifying the authorship of academic work has become increasingly complex. The rise of academic dishonesty, ranging from simple plagiarism to "contract cheating," necessitates robust computational tools for authorship attribution. While this field is well-established for English-language news and literature, there is a significant gap in research concerning the Portuguese educational context. This paper addresses this gap by comparing stylometric and textual approaches to identify authors in school assignments, where small sample sizes and high topic overlap present unique challenges.
Methodology
The researchers compared two primary methods for document representation to determine which best captures an individual's "writing fingerprint":
- Stylometric Representations (RE): A set of 74 numerical features capturing writing style. These include lexical features (sentence and paragraph length), syntactic structures (Parts-of-Speech tagging), semantic markers (Named Entity Recognition), and vocabulary richness (readability indices).
- Textual Representations (RT): Standard NLP techniques focusing on semantic content, such as TF-IDF (word frequency) and word embeddings like Word2Vec and Doc2Vec.
These representations were tested against a battery of machine learning models, including SVM, Random Forests, and Deep Learning architectures. The Extremely Randomized Trees (ET) model emerged as the most consistent and effective performer. The study utilized three datasets: a "Student" dataset (84 documents from 16 students), a "News" dataset (professional columns), and the "Varela" dataset (3,000 journalistic texts).
Results and Discussion
The core finding of the study is that stylometric features are significantly more robust in restricted educational domains. In classroom settings, students often write about the same topic, leading to a "Topic Bias" in textual models that rely on keywords.
As visualized in Figure 1, stylometric features (top row) provide much clearer author separation in the "Student" dataset compared to textual representations like TF-IDF or Doc2Vec (bottom rows). Textual models tend to group documents based on shared vocabulary, which is problematic when an entire class is assigned the same subject matter.
The Topic Bias Trap
The influence of subject matter on clustering is a critical hurdle for authorship attribution. When models focus on "what" is written rather than "how," they often fail to distinguish between different authors writing on the same topic.
Figure 4 illustrates how textual representations (left) are heavily influenced by the "Assunto" (Subject), whereas stylometric representations (right) focus more on individual writing patterns. This explains why the stylometric approach achieved an average accuracy of 70% and an AUC of 0.81 across all datasets, outperforming complex deep learning models that struggled with the small sample sizes typical of educational environments.
Conclusion
This study demonstrates that for authorship attribution in Portuguese educational settings, "how" a student writes is a more reliable indicator than "what" they write. Stylometric features, particularly when paired with Extremely Randomized Trees, provide a powerful tool for educators to verify the authenticity of student work, even in topic-restricted environments. Future research will focus on developing hybrid ensemble models and integrating these systems into Virtual Learning Environments (VLEs) to provide real-time feedback.
Summary updated