Assessing Bi-LSTM Model’s Performance in Identifying AI Generated Text in Digital Media
Tinashe Crispen Garidzira1, William Tichaona Vambe2,3 & Courage Matobobo4 Show affiliations
- Department of Computer Science, University of Fort Hare, Alice, South Africa
- Department of Mathematical Science and Computing, Walter Sisulu University, East London, South Africa
- National Institute for Theoretical and Computational Sciences, Mthatha, South Africa
- Department of Business and Application Development, Walter Sisulu University, East London, South Africa
Journal of Computer Science, Volume 21, Issue 8, pp. 1897–1907 · doi.org/10.3844/jcssp.2025.1897.1907
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.
Licence and reuse
Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.
How to reuse this articleResponses (0)
About this article
Garidzira, T. C., Vambe, W. T. & Matobobo, C. (2025). Assessing Bi-LSTM Model’s Performance in Identifying AI Generated Text in Digital Media. Journal of Computer Science, 21(8), 1897–1907. https://doi.org/10.3844/jcssp.2025.1897.1907
- Licence
- CC BY 4.0
- Issue
- Volume 21, Issue 8
- Policies
- Editorial independenceUse of generative AIData availabilityAppeals and complaints
- Version
- Version of record
