Objective
To develop an explainable machine learning approach for detecting ChatGPT-generated pseudocode in K-12 programming education and understand the key differences between student and AI-generated pseudocode.
Methods
- Analyzed 7,838 pseudocode submissions from 2,578 high school students (2020-2023)
- Generated 6,300 pseudocode samples using three ChatGPT models
- Developed ensemble machine learning model for detection
- Used SHAP values for model interpretability
- Conducted human evaluation of misclassified submissions
Key Findings
- Model achieved 98.97% accuracy in detecting AI-generated pseudocode
- AI-generated pseudocode uses more complex verbs and shorter sentences
- Student submissions use simpler verbs like "input," "put," "get"
- No significant increase in similarity between student and AI code across GPT versions
- AI code includes more explicit sequencing and comments
Implications
- Provides tool for detecting AI-generated code in K-12 education
- Helps teachers identify potential academic integrity issues
- Enables targeted interventions for students using AI tools
- Supports development of AI-aware programming education
Limitations
- Dataset from single online course platform
- Assumes all student submissions are non-AI generated
- Model reliance on specific keywords may not generalize
- Limited to basic pseudocode problems
Future Directions
- Examine wider variety of pseudocode problems
- Study code modified by both AI and humans
- Develop standardized guidelines for educators
- Investigate integration with learning management systems
The bottom line: A model trained on high school pseudocode flagged AI-written submissions with about 99% accuracy, hinting that detection may be possible. It came from one platform and basic problems, so teachers should not treat it as a verdict on individual students.
Comments 0
No comments yet. Be the first to share a thought.
Get new research summaries by email
Every new summary, daily at 8:00 AM Eastern (or weekly if you prefer). Unsubscribe in one click.