Optimizing parameter selection in bidirectional encoder portrayal for transformers algorithm using particle swarm optimization for artificial intelligence generate essay detection
Open Access
- 1 December 2025
- journal article
- Published by Institute of Advanced Engineering and Science in International Journal of Electrical and Computer Engineering (IJECE)
- Vol. 15 (6) , 5543-5554
Abstract
This research proposes a novel method for detecting artificial intelligence (AI)-generated essays by integrating the bidirectional encoder representations from transformers (BERT) model with particle swarm optimization (PSO). Unlike traditional approaches that rely on manual hyperparameter tuning, this study introduces a systematic optimization technique using PSO to improve BERT’s performance in identifying AI-generated content. The key problem addressed is the lack of effective, real-time detection systems that preserve academic integrity amidst rapid AI advancements. This optimization enhances the model’s detection accuracy and operational efficiency. The research dataset consisted of 46,246 essays, which, after data cleaning, were refined to 44,868. The model was then tested on 9,250 essays. Initial evaluations showed BERT's accuracy ranging from 83% to 94%. After being optimized with PSO, the model achieved an accuracy of 98%, an F1-score of 98.31%, precision of 97.75%, and recall of 98.87%. The model was deployed using a FastAPI-based web interface, enabling real-time detection and providing users with an efficient way to quickly verify text authenticity. This research contributes a scalable, automated solution for AI-generated text detection and offers promising implications for its application in various academic and digital content verification contexts.Keywords
This publication has 36 references indexed in Scilit:
- Perceived impact of generative AI on assessments: Comparing educator and student perspectives in Australia, Cyprus, and the United StatesComputers and Education: Artificial Intelligence, 2024
- Unleashing the transformers: NLP models detect AI writing in educationJournal of Computers in Education, 2024
- Effective text classification using BERT, MTM LSTM, and DTData & Knowledge Engineering, 2024
- Deep learning for kinetics parameters identification: A novel approach for multi-variate optimizationChemical Engineering Journal, 2024
- Domain-specific language models pre-trained on construction management systems corporaAutomation in Construction, 2024
- Student perspectives on the use of generative artificial intelligence technologies in higher educationInternational Journal for Educational Integrity, 2024
- Demystifying the Role of Natural Language Processing (NLP) in Smart City Applications: Background, Motivation, Recent Advances, and Future Research DirectionsWireless Personal Communications, 2023
- Impact of word embedding models on text analytics in deep learning environment: a reviewArtificial Intelligence Review, 2023
- Application of Bio and Nature-Inspired Algorithms in Agricultural EngineeringArchives of Computational Methods in Engineering, 2022
- Particle Swarm Optimization Algorithm and Its Applications: A Systematic ReviewArchives of Computational Methods in Engineering, 2022