AI Literacy in Code: Identifying and Explaining ChatGPT-Generated Programs in Educational Settings
Issued Date
2025-01-01
Resource Type
Scopus ID
2-s2.0-105036441069
Journal Title
Standards Based AI Innovation for the Learning Ecosystem
Start Page
213
End Page
259
Rights Holder(s)
SCOPUS
Bibliographic Citation
Standards Based AI Innovation for the Learning Ecosystem (2025) , 213-259
Suggested Citation
Racharak T., Boongaree N., Ragkhitwetsagul C., Sriwilailak C., Saeheng P., Chuangsuwanich E. AI Literacy in Code: Identifying and Explaining ChatGPT-Generated Programs in Educational Settings. Standards Based AI Innovation for the Learning Ecosystem (2025) , 213-259. 259. doi:10.4018/979-8-3373-2235-3.ch007 Retrieved from: https://repository.li.mahidol.ac.th/handle/123456789/116439
Title
AI Literacy in Code: Identifying and Explaining ChatGPT-Generated Programs in Educational Settings
Author's Affiliation
Corresponding Author(s)
Other Contributor(s)
Abstract
The growing use of Generative Pre-trained Transformers (GPTs) or large language models (LLMs) in programming education has raised concerns about academic dishonesty and the trustworthiness of student submissions. To support educators in evaluating programming skills, it is crucial to identify whether code is written by students or generated by models like ChatGPT. This chapter introduces a framework consisting of two key components: (1) a supervised learning-based detector that distinguishes between human-written and ChatGPT-generated code, and (2) a novel post-hoc explanation mechanism that leverages GPT models to produce humanreadable justifications for each classification. By combining accurate detection with interpretable explanations, the framework enhances assessment transparency, fosters educator trust, and supports academic integrity in AI-assisted learning environments.
