The impact of AI-assisted pair programming on student motivation, programming anxiety, collaborative learning, and programming performance: a comparative study with traditional pair programming and individual approaches

被引:1
作者
Fan, Guangrui [1 ]
Liu, Dandan [2 ]
Zhang, Rui [1 ]
Pan, Lihu [1 ]
机构
[1] Taiyuan Univ Sci & Technol, Sch Comp Sci & Technol, 66 Waliu Rd, Taiyuan 030024, Shanxi, Peoples R China
[2] Univ Malaya, Fac Arts & Social Sci, Dept Media & Commun Studies, Kuala Lumpur 50603, Wilayah Perseku, Malaysia
来源
INTERNATIONAL JOURNAL OF STEM EDUCATION | 2025年 / 12卷 / 01期
关键词
AI-assisted pair programming; Intrinsic motivation; Programming anxiety; Collaborative learning; Programming performance; TECHNOLOGY ACCEPTANCE MODEL; COMPUTATIONAL THINKING; INFORMATION; EXTENSION;
D O I
10.1186/s40594-025-00537-3
中图分类号
G40 [教育学];
学科分类号
040101 ; 120403 ;
摘要
Purpose This study investigates the impact of AI-assisted pair programming on undergraduate students' intrinsic motivation, programming anxiety, and performance, relative to both human-human pair programming and individual programming approaches. Methods A quasi-experimental design was conducted over two academic years (2023-2024) with 234 undergraduate students in a Java web application development course. Intact class sections were randomly assigned to AI-assisted pair programming (using GPT-3.5 Turbo in 2023 and Claude 3 Opus in 2024), human-human pair programming, or individual programming conditions. Data on intrinsic motivation, programming anxiety, collaborative perceptions, and programming performance were collected at three time points using validated instruments. Results Compared to individual programming, AI-assisted pair programming significantly increased intrinsic motivation (p < .001, d = 0.35) and reduced programming anxiety (p < .001), producing outcomes comparable to human-human pair programming. AI-assisted groups also outperformed both individual and human-human groups in programming tasks (p < .001). However, human-human pair programming fostered the highest perceptions of collaboration and social presence, surpassing both AI-assisted and individual conditions (p < .001). Mediation analysis revealed that perceived usefulness of the AI assistant significantly mediated the relationship between the programming approach and student outcomes, highlighting the importance of positive perceptions in leveraging AI tools for educational benefits. No significant differences emerged between the two AI models employed, indicating that both GPT-3.5 Turbo and Claude 3 Opus provided similar benefits. Conclusion While AI-assisted pair programming enhances motivation, reduces anxiety, and improves performance, it does not fully match the collaborative depth and social presence achieved through human-human pairing. These findings highlight the complementary strengths of AI and human interaction: AI support can bolster learning outcomes, yet human partners offer richer social engagement. As AI capabilities advance, educators should integrate such tools thoughtfully, ensuring that technology complements rather than replaces the interpersonal dynamics and skill development central to effective programming education.
引用
收藏
页数:17
相关论文
共 58 条
[1]   Large Language Models in Medical Education: Opportunities, Challenges, and Future Directions [J].
Abd-alrazaq, Alaa ;
AlSaad, Rawan ;
Alhuwail, Dari ;
Ahmed, Arfan ;
Healy, Padraig Mark ;
Latifi, Syed ;
Aziz, Sarah ;
Damseh, Rafat ;
Alrazak, Sadam Alabed ;
Sheikh, Javaid .
JMIR MEDICAL EDUCATION, 2023, 9
[2]   Conversational agents for fostering curiosity-driven learning in children [J].
Abdelghani, Rania ;
Oudeyer, Pierre-Yves ;
Law, Edith ;
de Vulpillieres, Catherine ;
Sauzeon, Helene .
INTERNATIONAL JOURNAL OF HUMAN-COMPUTER STUDIES, 2022, 167
[3]   The effect of smartphone use on mental effort, learning, and creativity [J].
Aru, Jaan ;
Rozgonjuk, Dmitri .
TRENDS IN COGNITIVE SCIENCES, 2022, 26 (10) :821-823
[4]   Grounded Copilot: How Programmers Interact with Code-Generating Models [J].
Barke, Shraddha ;
James, Michael B. ;
Polikarpova, Nadia .
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (OOPSLA)
[5]   Cooperative Learning Instructional Methods for CS1: Design, Implementation, and Evaluation [J].
Beck, Leland ;
Chizhik, Alexander .
ACM TRANSACTIONS ON COMPUTING EDUCATION, 2013, 13 (03)
[6]   Programming Is Hard - Or at Least It Used to Be: Educational Opportunities and Challenges of AI Code Generation [J].
Becker, Brett A. ;
Denny, Paul ;
Finnie-Ansley, James ;
Luxton-Reilly, Andrew ;
Prather, James ;
Santos, Eddie Antonio .
PROCEEDINGS OF THE 54TH ACM TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION, VOL 1, SIGCSE 2023, 2023, :500-506
[7]   CONTROLLING THE FALSE DISCOVERY RATE - A PRACTICAL AND POWERFUL APPROACH TO MULTIPLE TESTING [J].
BENJAMINI, Y ;
HOCHBERG, Y .
JOURNAL OF THE ROYAL STATISTICAL SOCIETY SERIES B-STATISTICAL METHODOLOGY, 1995, 57 (01) :289-300
[8]  
Bird Christian, 2022, ACM Queue, P35, DOI 10.1145/3582083
[9]   Changing a Generation's Way of Thinking: Teaching Computational Thinking Through Programming [J].
Buitrago Florez, Francisco ;
Casallas, Rubby ;
Hernandez, Marcela ;
Reyes, Alejandro ;
Restrepo, Silvia ;
Danies, Giovanna .
REVIEW OF EDUCATIONAL RESEARCH, 2017, 87 (04) :834-860
[10]   Generative Artificial Intelligence Assistants in Software Development Education: A Vision for Integrating Generative Artificial Intelligence Into Educational Practice, Not Instinctively Defending Against It [J].
Bull, Christopher ;
Kharrufa, Ahmed .
IEEE SOFTWARE, 2024, 41 (02) :52-59