Objective
The researchers wanted to find out how engineering students use generative artificial intelligence (GenAI) tools like ChatGPT in real classes. They focused on two main questions: First, does having access to GenAI help students finish programming tasks, and what patterns of use (like how often and how well students prompt the tool) go along with success? Second, how do students judge if using GenAI is acceptable in different classroom situations, such as for learning, grading, or monitoring? This is important because GenAI is now common in engineering education, especially in programming, but there is little evidence about how students actually use these tools and what they think about their proper role. The study aimed to connect technical use (how students interact with GenAI) with ethical thinking (how students judge its use), to help guide teaching, assessment, and rules in university engineering programs.
Methods
The study took place at the Universidad Politécnica de Madrid and used two phases. In Phase 1, 340 first-year engineering students took part in a classroom experiment during a programming lab. Each student got a C code with errors and had 10 minutes to fix it, using ChatGPT (GPT-3.5) as their only outside help. Students reported if they got the code working and how many prompts they sent to ChatGPT. Teachers watched to make sure students followed the instructions. Task success was based on what students said, not on teachers checking every program after the session. Data collected included whether the code worked, the number of prompts, and any extra notes.
In Phase 2, 16 fourth-year engineering students (including four international students) took part in a role-play during an upper-level course. They acted as an ethics committee, discussing four cases involving GenAI: AI-assisted thesis writing, AI use in online exams, instructors using AI for grading, and AI-based proctoring. Each group summarized their case, listed arguments for and against, and made a group decision. After group talks, students voted on each scenario and filled out a survey with scale questions (1–5) and open-ended questions about GenAI use, risks, and rules. The survey was checked by experts. Data were analyzed using simple statistics for the numbers and grouping for the written answers. The study followed university ethics rules, and all data were anonymous.
Key Findings
The main findings cover both how students performed with GenAI in programming and how they judged its ethical use.
Phase 1: Debugging performance and interaction patterns
- Out of 340 first-year students, 170 said they solved the debugging task with ChatGPT in 10 minutes, while 150 did not succeed with ChatGPT. Three solved it without ChatGPT, and two tried without ChatGPT but did not succeed. Fifteen gave no response.
- Analysis of 301 students (who reported both outcome and prompt count) found that students who used fewer prompts were more likely to say they succeeded. The link between number of prompts and success was negative (point-biserial r = -0.489; Spearman ρ = -0.554).
- Each extra prompt was linked to about a 31% lower chance of success (odds ratio 0.691, 95% CI 0.627–0.762). This means that using fewer, well-chosen prompts was tied to better results, while sending more prompts often went along with not finishing the task in time.
- The study did not find that simply using ChatGPT more led to better results. Instead, students who could quickly write good prompts and check the AI's answers did better under time pressure.
- The results do not show that more prompts caused failure; it is possible that students who struggled with the task needed more prompts because they had less programming skill or found it harder to understand the AI's output.
Phase 2: Ethical evaluation of GenAI in education
- In the role-play, advanced students' acceptance of GenAI depended on the situation. For AI-assisted thesis writing, all 16 said it was acceptable if there was transparency and proper authorship. For AI use in online exams, the group agreed not to punish students but to change assessment design; individual votes were split (6 acceptable, 10 sanctionable).
- For instructors using AI for grading and feedback, most (11 out of 16) said this was unacceptable, saying human judgment and transparency are needed. For AI-based proctoring, 12 out of 15 (one could not vote) said it should be prohibited, with privacy and bias as main concerns.
- Survey results showed all 16 students had used GenAI for at least one academic purpose, most often for report writing (15), projects (11), coursework (10), labs (9), and exams (4). All supported some kind of rule for GenAI; 10 wanted flexible rules, 6 wanted the same rules in all cases.
- Students rated GenAI as most useful for learning new concepts (average 4.63 out of 5) and least useful for assessment (average 2.69). Main concerns were plagiarism or dependency (average 4.13), loss of skills (3.69), privacy (3.63), transparency (3.38), and bias (3.19).
- After the activity, 6 students said they felt a greater need for ethical rules for GenAI, while 10 said their view did not change. None said they felt less need for rules.
Implications
For teachers and programming instructors: The results suggest that just giving students access to GenAI tools like ChatGPT does not guarantee better results. Teaching students how to write good prompts, check AI-generated code, and manage their time is important. Teachers should also talk about the limits of GenAI and encourage students to check outputs, especially when time is short.
For curriculum designers: The findings support including both technical and ethical skills for using GenAI in engineering programs. This means teaching students how to use GenAI, how to check its answers, and how to judge when it is appropriate to use in class.
For academic integrity committees and policymakers: Students' ethical judgments changed depending on the situation. They were more open to GenAI for learning and support, but less so for grading or surveillance. Rules should make clear differences between learning support and grading, and address privacy and fairness in monitoring.
For students: Good use of GenAI means writing clear prompts and checking the AI's answers, not just asking more questions. Students should be aware of the risks, such as over-reliance and privacy issues.
For developers and researchers: The study shows the need for tools and teaching methods that help with prompt efficiency, checking answers, and thinking about ethics. More research is needed on how to help students build these skills.
Our reading (not the authors' recommendation): Letting students use GenAI without support is unlikely to help everyone. Support and guidance on both technical and ethical use are needed for responsible use of GenAI in engineering education.
Limitations
The authors note several limitations. In Phase 1, there was no control group (no comparison to students without GenAI), and task success was based on what students said, not on teachers checking every program. Only one debugging task was used, and students' earlier programming skills were not measured, so differences in results may be due to earlier knowledge as much as prompt skill. The negative link between prompt count and success does not prove cause and effect. At higher prompt counts, results are less certain because there were fewer students in that group.
In Phase 2, the sample was small (16 students), which limits how far the results can be applied elsewhere. The role-play and survey may have been influenced by group pressure or students wanting to give the 'right' answer. The use of different groups in the two phases means we cannot directly link individual students' technical behavior with their ethical views.
The paper does not mention, but the findings are from one university in Spain, and may not apply to other places or subjects. The study focused on specific tasks and situations, so results may not cover all uses of GenAI in education.
Future Directions
The authors suggest several areas for future research. Larger studies are needed to check the link between prompt efficiency and task success, with teachers checking student work and measuring earlier skills. Studies should also look at how to teach prompt writing and checking skills well. More research is needed on how students' technical use of GenAI connects to their ethical thinking, ideally by following the same students across both areas. The authors also point to the need for studies on how university rules and assessment design can change with GenAI, and how to support careful, thoughtful use in different classroom situations. More work is needed to understand how GenAI affects learning and skill building over time. The study also leaves open questions about how students' ability to check AI outputs can be improved and how rules can be adapted to fit different uses of GenAI in education.
The bottom line: Letting engineering students use generative AI like ChatGPT does not guarantee better results in programming tasks. Students who used fewer, well-chosen prompts and checked the AI's answers were more likely to finish a debugging task in time. Advanced students were open to GenAI for learning and support, but cautious about its use in grading or monitoring. The evidence is exploratory and based on self-reported outcomes and small samples, so results should be seen as a starting point. For best results, both technical and ethical guidance are needed when using GenAI in engineering education.
Comments 0
No comments yet. Be the first to share a thought.
Get new research summaries by email
Every new summary each morning, a weekly digest, or a monthly report. You choose, and you can unsubscribe in one click.