International Journal of Electrical and Computer Engineering
Vol 15, No 6: December 2025

Optimizing parameter selection in bidirectional encoder portrayal for transformers algorithm using particle swarm optimization for artificial intelligence generate essay detection

Prasetyo, Tegar Arifin (Unknown)
Chandra, Rudy (Unknown)
Siagian, Wesly Mailander (Unknown)
Siregar, Horas Marolop Amsal (Unknown)
Siahaan, Samuel Jefri Saputra (Unknown)



Article Info

Publish Date
01 Dec 2025

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.

Copyrights © 2025






Journal Info

Abbrev

IJECE

Publisher

Subject

Computer Science & IT Electrical & Electronics Engineering

Description

International Journal of Electrical and Computer Engineering (IJECE, ISSN: 2088-8708, a SCOPUS indexed Journal, SNIP: 1.001; SJR: 0.296; CiteScore: 0.99; SJR & CiteScore Q2 on both of the Electrical & Electronics Engineering, and Computer Science) is the official publication of the Institute of ...