Assessing Bi-LSTM Model’s Performance in Identifying AI Generated Text in Digital Media
- 1 Department of Computer Science, University of Fort Hare, Alice, South Africa
- 2 Department of Mathematical Science and Computing, Walter Sisulu University, East London, South Africa
- 3 National Institute for Theoretical and Computational Sciences, Mthatha, South Africa
- 4 Department of Business and Application Development, Walter Sisulu University, East London, South Africa
Abstract
The rapid growth of AI-generated content from ChatGPT, Gemini, and many others poses significant challenges in digital media. There are increasing instances of text generated by machine learning models being indistinguishable from human-written text. This calls for an effective way of detecting and distinguishing text generated by AI from human text. Using a Cross-Industry Standard Process for Data Mining (CRISP-DM) methodology, a Bidirectional Long Short-Term Memory (Bi-LSTM) model for classifying AI-generated text in a digital media context was developed. A carefully curated dataset of human and AI-generated text samples was used. The Bi-LSTM model without an embedding layer was implemented, optimizing the model to capture complex linguistic patterns apparent in each text type. An experimental setup was used to evaluate the effectiveness of the model. It was noted that the model achieved a remarkable test accuracy of 99.79%, with a loss of 0.009. To facilitate practical implementation, we developed a web application using Next.js with our model served from a Flask server that enables real-time AI text detection. Our results highlight the model’s ability to accurately identify AI-generated text, providing valuable insights into deploying such models to verify content on media platforms. This study highlights the potential of neural network-based classifiers to address the pressing need for automated AI text detection in an increasingly AI-influenced digital ecosystem.
DOI: https://doi.org/10.3844/jcssp.2025.1897.1907
Copyright: © 2025 Tinashe Crispen Garidzira, William Tichaona Vambe and Courage Matobobo. This is an open access article distributed under the terms of the
Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
- 33 Views
- 5 Downloads
- 0 Citations
Download
Keywords
- AI-Generated Text Detection (ATD)
- Bi-LSTM Model
- Digital Media Classification (DM)
- Natural Language Processing (NLP)