Towards AI-Generated Essay Classification Using Numerical Text Representation
The detection of essays written by AI compared to those authored by students is increasingly becoming a significant issue in educational settings. This research examines various numerical text representation techniques to improve the classification of these essays. Utilizing a diverse dataset, we undertook several preprocessing steps, including data cleaning, tokenization, and lemmatization. Our system analyzes different text representation methods such as Bag of Words, TF-IDF, and fastText embeddings in conjunction with multiple classifiers. Our experiments showed that TF-IDF weights paired with logistic regression reached the highest accuracy of 99.82%. Methods like Bag of Words, TF-IDF, and fastText embeddings achieved accuracies exceeding 96.50% across all tested classifiers. Sentence embeddings, including MiniLM and distilBERT, yielded accuracies from 93.78% to 96.63%, indicating room for further refinement. Conversely, pre-trained fastText embeddings showed reduced performance, with a lowest accuracy of 89.88% in logistic regression. Remarkably, the XGBoost classifier delivered the highest minimum accuracy of 96.24%. Specificity and precision were above 99% for most methods, showcasing high capability in differentiating between student-created and AI-generated texts. This study underscores the vital role of choosing dataset-specific text representations to boost classification accuracy.
Authors
- Jan Kozák (ORCID: https://orcid.org/0000-0002-2128-6998)
- Barbara Probierz (ORCID: https://orcid.org/0000-0002-5122-2645)
- Natalia Krawczyk (ORCID: https://orcid.org/0009-0004-7442-2123)
Institutions
- University of Economics in Katowice (PL)
- Łukasiewicz Research Network - Institute of Innovative Technologies EMAG (PL)
Publication Details
- Journal
- Applied Sciences
- Published
- 2024-10-26
- DOI
- https://doi.org/10.3390/app14219795
- Citations
- 3
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 1.04