NPC: Automated Tool for Detecting and Explaining ChatGPT-Generated Programs
Issued Date
2026-01-01
Resource Type
ISSN
21843589
eISSN
2184433X
Scopus ID
2-s2.0-105041708415
Journal Title
International Conference on Agents and Artificial Intelligence
Volume
5
Start Page
4714
End Page
4719
Rights Holder(s)
SCOPUS
Bibliographic Citation
International Conference on Agents and Artificial Intelligence Vol.5 (2026) , 4714-4719
Suggested Citation
Saeheng P., Boongaree N., Sriwilailak C., Ragkhitwetsagul C., Racharak T., Chuangsuwanich E. NPC: Automated Tool for Detecting and Explaining ChatGPT-Generated Programs. International Conference on Agents and Artificial Intelligence Vol.5 (2026) , 4714-4719. 4719. doi:10.5220/0014485500004052 Retrieved from: https://repository.li.mahidol.ac.th/handle/123456789/117422
Title
NPC: Automated Tool for Detecting and Explaining ChatGPT-Generated Programs
Author's Affiliation
Corresponding Author(s)
Other Contributor(s)
Abstract
The adoption of Large Language Models (LLMs) is rising in programming education, which raises concerns regarding academic dishonesty and a lack of trustworthiness in students’ programming submissions. There are recent automated techniques and tools for classifying submitted code as generated by LLMs or created by students. However, they lack an explanation of their decision, which educators often require to make informed decisions. This paper presents NPC, an approach for detecting and explaining code snippets generated by ChatGPT, employing machine learning and our proposed local neighborhood sampling strategy to build post-hoc explainability in artificial intelligence (AI). We develop our approach as a web application that not only detects ChatGPT-generated code but also provides educators with explanations in an easy-tounderstand format for each classification. The evaluation found that the explanations were clear and helpful, reinforcing the tool’s potential to support academic integrity in programming education. The video demonstration of the tool is available at https://bit.ly/ase25-npc-demo. The tool’s source code is publicly available at https://github.com/pachanitha/NPC Project.
