27. Development of Models for Detection of Texts Generated by Artificial Intelligence

Authors

Keywords:

Artificial intelligence, text classification, TFIDF, XGBoost, Logistic Regression, Naïve Bayes, RoBERTa

Abstract

The aim of this paper is to demonstrate the application of machine learning techniques in the analysis of textual data, with the goal of determining whether a given text was written by a human or generated by artificial intelligence. For this purpose, the project uses a dataset obtained from the Kaggle platform. Due to the initial imbalance in the number of texts per class, we formed a dataset that included 30 000 samples from each class. In addition, the paper includes exploratory data analysis such as visualization of text length distributions and world cloud representations. For text classifications, we used several standard classical machine learning models, including logistic regression, XGBoost and Naive Bayes, as well as a pre-trained transformer model with an appropriate tokenizer. The model was trained for 10 epochs using an early stopping mechanism. Finally, additional testing was performed on manually created examples in order to evaluate the model’s ability to generalize to unseen texts.

Downloads

Published

2026-09-24