[Paper Review] Stylometry Analysis of Human and Machine Text for Academic Integrity
The paper presents a stylometry-based NLP framework to tackle four tasks—distinguishing machine vs. human text, single vs. multi-authored classification, author-change detection within multi-authored documents, and author recognition—using Gemini-generated machine text embedded into human-written data, with datasets and code publicly available.
This work addresses critical challenges to academic integrity, including plagiarism, fabrication, and verification of authorship of educational content, by proposing a Natural Language Processing (NLP)-based framework for authenticating students' content through author attribution and style change detection. Despite some initial efforts, several aspects of the topic are yet to be explored. In contrast to existing solutions, the paper provides a comprehensive analysis of the topic by targeting four relevant tasks, including (i) classification of human and machine text, (ii) differentiating in single and multi-authored documents, (iii) author change detection within multi-authored documents, and (iv) author recognition in collaboratively produced documents. The solutions proposed for the tasks are evaluated on two datasets generated with Gemini using two different prompts, including a normal and a strict set of instructions. During experiments, some reduction in the performance of the proposed solutions is observed on the dataset generated through the strict prompt, demonstrating the complexities involved in detecting machine-generated text with cleverly crafted prompts. The generated datasets, code, and other relevant materials are made publicly available on GitHub, which are expected to provide a baseline for future research in the domain.
Motivation & Objective
- Address academic integrity challenges arising from AI-generated content (plagiarism, authorship verification).
- Propose a stylometry-driven framework for four tasks: machine vs human text, single vs multi-authored classification, author change detection, and author recognition.
- Create large-scale benchmark datasets by embedding Gemini-generated machine text into human-authored documents.
- Provide publicly available datasets and code to baseline future stylometry research in education.
Proposed method
- Dataset creation by generating machine text with Gemini under two prompts (normal and strict) and embedding it into human-authored documents.
- Data pre-processing including null/duplicate checks and class-weight-based balancing.
- Text classification using four transformer models (BERT-base, ALBERT, DistilBERT, RoBERTa) with fine-tuning and dropout configurations.
- Four evaluation tasks: machine-vs-human text, single-vs-multi-authored documents, author change detection, and author recognition (multi-label).
- Hyperparameters and training setup include batch size 32, gradient accumulation x2, learning rate 1e-5 with cosine decay and warmup steps, weight decay 0.01, 5 epochs, fp16, and 70/15/15 train/val/test split.

Experimental results
Research questions
- RQ1Can machine-generated text be reliably distinguished from human-written text across prompts and datasets?
- RQ2Can single-authored vs multi-authored documents be accurately classified when machine text is embedded into human work?
- RQ3Can we detect which paragraphs in a multi-authored document involve author changes?
- RQ4Can we identify the individual authors (including AI as an author) for multi-authored documents?
- RQ5How do prompt design and embedding strategies affect stylometric detection performance?
Key findings
- Machine-vs-human text classification achieves near-perfect accuracy across models and prompts (approaching 0.999 accuracy).
- Single-vs-multi-authored classification also yields high accuracy, demonstrating robustness to embedded machine text.
- Author-change detection performance remains challenging, with F1-scores around 0.68–0.70 on normal vs strict prompts.
- Author recognition in multi-authored documents shows low F1-scores overall and notable class-level imbalance, with some authors detected reliably (e.g., Author 1) and others poorly (e.g., Authors 2–4).
- Prompt design (normal vs strict) significantly impacts the detectability of machine text and the intra-/inter-class separability in embeddings.
- Public availability of datasets and code (GitHub) provides baselines for future research in academic integrity stylometry.

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.