A Deep Learning Approach to Classify AI-Generated and Human-Written Texts
Source abstract
Abstract
The rapid advancement of artificial intelligence (AI) has introduced new challenges, particularly in the generation of AI-written content that closely resembles human-authored text. This poses a significant risk for misinformation, digital fraud, and academic dishonesty. While large language models (LLM) have demonstrated impressive capabilities across various languages, there remains a critical gap in evaluating and detecting AI-generated content in under-resourced languages such as Turkish. To address this, our study investigates the effectiveness of long short-term memory (LSTM) networks—a computationally efficient and interpretable architecture—for distinguishing AI-generated Turkish texts produced by ChatGPT from human-written content. LSTM was selected due to its lower hardware requirements and its proven strength in sequential text classification, especially under limited computational resources. Four experiments were conducted, varying hyperparameters such as dropout rate, number of epochs, embedding size, and patch size. The model trained over 20 epochs achieved the best results, with a classification accuracy of 97.28% and an F1 score of 0.97 for both classes. The confusion matrix confirmed high precision, with only 19 misclassified instances out of 698. These findings highlight the potential of LSTM-based approaches for AI-generated text detection in the Turkish language context. This study not only contributes a practical method for Turkish NLP applications but also underlines the necessity of tailored AI detection tools for low-resource languages. Future work will focus on expanding the dataset, incorporating other architectures, and applying the model across different domains to enhance generalizability and robustness.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Natural Language Processing Techniques · Topic Modeling
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Computer Engineering, Faculty of Engineering and Architecture, Kirsehir Ahi Evran University, 40100 Kirsehir, Turkey
College of Engineering and Technology, American University of the Middle East, Egaila 54200, Kuwait
College of Business Administration, American University of the Middle East, Egaila 54200, Kuwait
References (28)
Show source-provided references
1. Reviewing the performance of AI detection tools in differentiating between AI-generated and human-written texts: A literature and integrative hybrid review
2. Chimata, S., Bollimuntha, A.R., Devagiri, D., and Puligadda, S. (2024, January 28–29). An Investigative Analysis on Generation of AI Text Using Deep Learning Models for Large Language Models. Proceedings of the 2024 International Conference on Smart Systems for Electrical, Electronics, Communication and Computer Engineering (ICSSEECC), IEEE, Coimbatore, India.10.1109/ICSSEECC61126.2024.10649514 ↗
3. Generative artificial intelligence technology for systems engineering research: Contribution and challenges
4. Topcu, A.E., Alzoubi, Y.I., Elbasi, E., and Camalan, E. (2023). Social media zero-day attack detection using TensorFlow. Electronics, 12.10.3390/electronics12173554 ↗
5. Artificial intelligence misuse and concern for information privacy: New construct validation and future directions10.1111/isj.12544 ↗
6. Zhou, J., Müller, H., Holzinger, A., and Chen, F. (2024). Ethical ChatGPT: Concerns, challenges, and commandments. Electronics, 13.10.3390/electronics13173417 ↗
7. The ethical concerns of artificial intelligence in urban planning10.1080/01944363.2024.2355305 ↗
8. Research trends in deep learning and machine learning for cloud computing security10.1007/s10462-024-10776-5 ↗
9. Katib, I., Assiri, F.Y., Abdushkour, H.A., Hamed, D., and Ragab, M. (2023). Differentiating chat generative pretrained transformer from humans: Detecting ChatGPT-generated text and human text using machine learning. Mathematics, 11.10.3390/math11153400 ↗
10. Human vs. Machine: A Comparative Study on the Detection of AI-Generated Content10.1145/3708889 ↗
11. Evaluating the efficacy of AI content detection tools in differentiating between human and AI-generated text10.1007/s40979-023-00140-5 ↗
12. TRMOR: A finite-state-based morphological analyzer for Turkish10.3906/elk-1902-125 ↗
13. A novel hybrid algorithm for morphological analysis: Artificial Neural-Net-XMOR10.55730/1300-0632.3901 ↗
14. Wani, M.A., Abd El-Latif, A.A., ELAffendi, M., and Hussain, A. (2024). AI-based Framework for Discriminating Human-authored and AI-generated Text. IEEE Trans. Artif. Intell., 1–15.10.1109/TAI.2024.3516713 ↗
15. Latif, G., Mohammad, N., Brahim, G.B., Alghazo, J., and Fawagreh, K. (2023, January 1–3). Detection of AI-written and human-written text using deep recurrent neural networks. Proceedings of the Fourth Symposium on Pattern Recognition and Applications (SPRA 2023), Napoli, Italy.
16. A comparative analysis on question classification task based on deep learning approaches10.7717/peerj-cs.570 ↗
17. AI-generated vs human-authored texts: A multidimensional comparison10.1016/j.acorp.2023.100083 ↗
18. Kalra, M.P., Mathur, A., and Patvardhan, C. (2024, January 27–28). Detection of AI-generated Text: An Experimental Study. Proceedings of the 3rd World Conference on Applied Intelligence and Computing (AIC), IEEE, Gwalior, India.10.1109/AIC61668.2024.10731116 ↗
19. Detecting and Unmasking AI-Generated Texts through Explainable Artificial Intelligence using Stylistic Features
20. Classification of human-and ai-generated texts: Investigating features for chatgpt
21. Classification of human-and AI-generated texts for different languages and domains10.1007/s10772-024-10143-3 ↗
22. ChatGPT and academic integrity concerns: Detecting artificial intelligence generated content
23. A Comparative Study of Classification of Human-Written Text Versus AI-Generated Text
24. Alamleh, H., AlQahtani, A.A.S., and ElSaid, A. (2023, January 27–28). Distinguishing human-written and ChatGPT-generated text using machine learning. Proceedings of the 2023 Systems and Information Engineering Design Symposium (SIEDS), Charlottesville, VA, USA.10.1109/SIEDS58326.2023.10137767 ↗
25. OpenAI (2025, March 07). Open AI—ChatGPT. Available online: https://chatgpt.com/.
26. Gemini (2025, March 08). Google AI—Gemini. Available online: https://gemini.google.com/app.
27. Copilot (2025, March 09). Microsoft Copilot: Your AI companion. Available online: https://copilot.microsoft.com/.
28. Joulin, A., Cissé, M., Grangier, D., and Jégou, H. (2017, January 6–11). Efficient softmax approximation for GPUs. Proceedings of the 34th International Conference on Machine Learning, PMLR, Sydney, Australia.