PlumX Metrics
Embed PlumX Metrics

Identifying AI Generated Code with Parallel KNN Weight Outlier Detection

Lecture Notes in Networks and Systems, ISSN: 2367-3389, Vol: 1140, Page: 459-470
2025
  • 0
    Citations
  • 0
    Usage
  • 0
    Captures
  • 0
    Mentions
  • 0
    Social Media
Metric Options:   Counts1 Year3 Year

Book Chapter Description

Plagiarism is an emerging issue in programming, and it becomes more difficult to identify due to generative AI; it can easily provide solutions on assignments that are supposed to be completed without any help. Many AI detectors are only focused on general text. We present an AI detector for programming based on KNN weight outlier detection. On assignments disallowing AI help, only few students still insist to use AI. Further, AI generated code is different to that of undergraduates. The detector employs six intermediate representations: text strings, token strings, generalized token strings, expanded token strings, linearized syntax trees, and linearized parse trees. According to our experiment on three data sets with MAP and processing time as the performance metrics, our detector is satisfactorily effective and efficient. The most optimal performance occurs when the intermediate representation is the token strings, the n for n-grams is 110, and the number of clusters is 3.

Provide Feedback

Have ideas for a new metric? Would you like to see something else here?Let us know