Automatic detection of Gen-AI texts: A comparative framework of neural models
Organizations: Sapienza University in Rome Latina
Abstract
The rapid proliferation of Large Language Models has significantly increased the difficulty of distinguishing between human-written and AI generated texts, raising critical issues across academic, editorial, and social domains. This paper investigates the problem of AI generated text detection through the design, implementation, and comparative evaluation of multiple machine learning based detectors. Four neural architectures are developed and analyzed: a Multilayer Perceptron, a one-dimensional Convolutional Neural Network, a MobileNet-based CNN, and a Transformer model. The proposed models are benchmarked against widely used online detectors, including ZeroGPT, GPTZero, QuillBot, Originality.AI, Sapling, IsGen, Rephrase, and Writer. Experiments are conducted on the COLING Multilingual Dataset, considering both English and Italian configurations, as well as on an original thematic dataset focused on Art and Mental Health. Results show that supervised detectors achieve more stable and robust performance than commercial tools across different languages and domains, highlighting key strengths and limitations of current detection strategies.
Figures & tables
| Text | Label |
|---|---|
| Gli Amanti (Magritte) | |
| Questo quadro mi ha sempre fatto un effetto strano. Due persone che si baciano ma hanno la testa coperta da dei teli… è romantico e inquietante allo stesso tempo. […] | 0 |
| Il Bacio (Hayez) | |
| L’opera di Francesco Hayez incarna l’ideale romantico dell’amore patriottico, dove il gesto intimo tra i due amanti assume significati politici legati al Risorgimento italiano. […] | 1 |
| Text | Label |
|---|---|
| Era un martedì mattina qualunque. Stavo preparando la colazione e all’improvviso ho iniziato a piangere senza motivo. Non riuscivo a smettere. […] | 0 |
| Secondo gli studi, la prevenzione del suicidio funziona meglio quando si usano controlli regolari e aiuti immediati durante le crisi. […] | 1 |
| Detector | Accuracy(%) | Human(%) | GenAI(%) |
|---|---|---|---|
| MLP | 85.0 | 97.1 | 68.0 |
| CNN 1D | 70.0 | 0.0 | 100.0 |
| MobileNet CNN | 91.67 | 83.33 | 95.24 |
| Transformer | 88.3 | 97.3 | 73.9 |
| GPTZero | 90.0 | 100.0 | 81.2 |
| Sapling | 83.3 | 100.0 | 68.8 |
| Detector | Accuracy (%) | Human (%) | GenAI (%) |
|---|---|---|---|
| MLP | 100.0 | 0.0 | 100.0 |
| CNN 1D | 100.0 | 0.0 | 100.0 |
| Writer | 100.0 | 0.0 | 100.0 |
| Rephrase | 80.0 | 20.0 | 80.0 |
| QuillBot | 76.7 | 23.3 | 76.7 |
| Sapling | 75.0 | 25.0 | 75.0 |
| Detector | Accuracy(%) | Human(%) | GenAI(%) |
|---|---|---|---|
| CNN 1D ( ART&MH ) | 92.35 | 0.0 | 92.35 |
| MLP ( ART&MH ) | 90.07 | 0.0 | 90.07 |
| MLP ( dtEN ) | 91.32 | 0.0 | 91.32 |
| Transformer ( dtEN ) | 88.66 | 0.0 | 88.66 |
| MobileNet ( dtEN ) | 85.35 | 0.0 | 85.35 |
| Detector | Accuracy(%) | Human(%) | GenAI(%) |
|---|---|---|---|
| CNN 1D | 98.3 | 96.8 | 100.0 |
| MLP | 98.3 | 100.0 | 96.8 |
| ZeroGPT | 100.0 | 100.0 | 100.0 |
| GPTZero | 100.0 | 100.0 | 100.0 |
| QuillBot | 100.0 | 100.0 | 100.0 |
| Originality | 100.0 | 100.0 | 100.0 |
AI-Generated Text Detection
AI-generated text detection develops methods to distinguish human-written, machine-generated, and AI-edited text.
See all 167 papers