Benefits and Challenges of Collaboration between Students and Conversational Generative Artificial Intelligence in Programming Learning: An Empirical Case Study
Abstract
:1. Introduction
1.1. Student–AI Collaboration
1.2. Gen AI on Student Programming Learning
2. Methodology
2.1. Class Design
2.2. Teaching–Learning Activities
- Prompt management: the instructor guided students to articulate their goals, roles, and the context of their interaction with Gen AI, ensuring learning was both contextual and progressive.
- Memory management in Gen AI: to preserve Gen AI’s contextual comprehension, it was advised to initiate new conversational threads at suitable junctures. This approach mitigates the risk of diminished response accuracy due to protracted dialogues.
- Developing working code: aiming to boost the self-efficacy and motivation of novice students, the recommended approach was to start with a simple, functional code and gradually refine its features. This method lays a robust foundation for further development.
- Balancing execution and understanding: the utility of Gen AI in code generation was acknowledged, but the instructor stressed the importance of understanding the generated code to effectively address challenges. Striking a balance is crucial, as an excessive focus on understanding every detail can hinder progress.
- Seeking feedback: the importance of obtaining feedback from Gen AI on programming and prompt management was underscored, facilitating a reflective learning process.
2.3. Participants of Classes
2.4. Data Collection
2.4.1. Class Observations and Questionnaire Surveys
2.4.2. Final Reports
2.4.3. Records of Dialogue with Gen AI
2.4.4. Interviews
2.5. Data Analysis
3. Results
3.1. RQ 1: How Do Students View Their Communication with Gen AI?
“1. Explicitly state my position and the purpose of what I want Gen AI to do. First, I outline what I actually want Gen AI to do and then list more detailed information in bullet points.
2. Ask questions about what I don’t understand about the responses generated by Gen AI and reiterate my intentions precisely if Gen AI’s answers differ from my own.
3. Once I understand, I ask Gen AI to evaluate what I have created according to what I have learned. In doing so, I clearly indicate to Gen AI the evaluation criteria it will use.
4. Revise according to the advice and have Gen AI evaluate it. I’ll keep repeating this until Gen AI says, ‘good’”.
“In the ChatGPT review, I heard some people say that it gives wrong answers or that the answers are inappropriate, but I felt that this is a matter of how we interact with it. I felt that it is important to consider it a companion at this stage, rather than an omniscient being that returns answers to random questions”.
“I learned that I could get effective answers from Gen AI depending on my questioning and scene-setting skills. Specifically, it was effective to present my position and Gen AI’s position and present some conditions in a concise manner. I felt that the process of obtaining an answer was also important, as writing a communicative and concise statement was in itself a learning experience”.
“When conversing with people, I had never thought about defining the other person’s position because I unconsciously select and choose questions based on their background and attributes. However, because the assumptions behind one’s thinking are hidden in this unconscious selection, I realized that it is important to face one’s own thinking when creating a prompt and verbalize the background of the question. I felt that this ability to explain the background is a skill that can be applied in group discussions as well”.
3.2. RQ 2: How Do Students Develop Their Collaboration with Gen AI in Concept Learning and App Development?
“To begin with, I think that matters that are difficult to understand on one’s own can be divided into two patterns: ‘I don’t understand X’ and ‘I don’t understand what I don’t understand in the first place’. If the points that I don’t understand are clear, I can pinpoint them and ask for clarification on my own. And, if I don’t even know what I don’t know, I just listen to the explanation and then ask for more details one by one to move from ‘I don’t know what I don’t know’ to ‘I don’t know what X is’”.
“By asking Gen AI to provide real-life examples, I am able to consolidate not only my understanding of the concept I asked, but also other concepts connected to it, and I am able to expand my knowledge”.
“By paraphrasing Gen AI’s explanations in my own words, I can organize my understanding. If there is something I cannot put into my own words during the paraphrasing process, I can solve this by asking Gen AI to elaborate on it again”.
“I think it is very suitable for me develop the application step by step. If I proceed all at once, [Gen AI may give me too much information all at once], so it would be very difficult to understand all information and to write working codes”.
“If an error occurs, working with Gen AI to determine the cause and remedy and sharing error messages as I go. If I don’t understand it, I proceed by checking the accuracy of my understanding”.
“I feel that when I get stuck, I like the approach of presenting another way, one that I can also think about”.
3.3. RQ 3: How Do Students Evaluate Gen AI in Their Learning?
3.3.1. Advantages of Gen AI
“I can increase the frequency of questions until I understand, and it doesn’t matter what time or space I ask in, and the Gen AI explains the function along with the code”.
“It was good because with Gen AI, I could ask for a change in difficulty level without any hesitation, which is something I would have had a hard time expressing to a teacher”.
“When I was learning under teachers, it was difficult to ask questions if I forgot the content of the previous lesson. However, with Gen AI, I can persistently ask questions until my trivial questions are resolved, and I can ask them anytime”.
“Unlike reference books or website articles, there is no need to retrieve information from many sources. Thus, I could effectively distinguish between necessary and unnecessary information”.
3.3.2. Impact on Learning Approach
“I used to learn in a cycle of preparation → lecture → review → problem solving, but now I have found a new way to learn that combines lecture and problem-solving using Gen AI that allows me to check my understanding through dialogue”.
“The conventional learning method is to first input knowledge and then acquire an understanding of it through practice and output. However, the use of Gen AI has changed this style to one in which knowledge input and output are performed simultaneously while learning programming in real-time through hands-on experience”.
“When learning through Gen AI, I must consider what I want to do, have Gen AI generate the code to realize it, and then learn what functions it uses. I found that learning through Gen AI is unique in that I can logically construct what I want to do and the strategy for achieving it using natural language, and then learn how to use the programming language”.
3.4. RQ4: What Kind of Challenges Are Faced by Students in Their Collaboration?
3.4.1. Difficulties to Collaborate with Gen AI in Complicated Learning Tasks
“I was able to understand what I was doing with functions and conditional branching. However, when it came to the details of functions and things that were a bit more complicated, I still didn’t understand. Also, when an error was returned, I completely relied on Gen AI. I felt it was necessary to learn by myself because I could not find out the reason when the error occurred again. I felt it was necessary to learn on my own”.
“I think Gen AI is adequate for the purpose of creating apps. However, it would take a lot of time to connect this to my deeper understanding. Personally, I found it a bit daunting”.
3.4.2. Consideration of Differences between Students
“I feel that Gen AI excels in its ability to provide humans with a great deal of knowledge. However, I feel that how well it utilizes that capability is highly dependent on humans’ ability to express itself and its logical thought processes”.
4. Discussion and Conclusions
5. Limitations
6. Implications and Future Directions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Appendix A
- Survey Prior to the Initial Lesson
- Prior to this course, have you utilized ChatGPT or BingAI?
- If affirmative, kindly enumerate instances of your utilization of these tools.
- How would you rate your comprehension of the underlying principles and mechanisms of ChatGPT and BingAI?
- What are your perceptions regarding ChatGPT and BingAI?
- To what extent do you feel confident in employing ChatGPT and BingAI effectively?
- How would you describe your expectations regarding the use of ChatGPT and BingAI?
- Please elaborate on any apprehensions you might have about utilizing ChatGPT and BingAI.
- Survey Following the Initial Lesson
- How has your understanding of Gen AI, exemplified by BingAI and ChatGPT, evolved?
- Provide a minimum of five instances where you have applied Gen AI post-lesson.
- What are your current impressions of Gen AI?
- Do you envisage incorporating Gen AI into your future endeavors?
- How confident are you now in your ability to leverage Gen AI effectively?
- Have your expectations regarding the use of ChatGPT and BingAI changed post-lesson? If so, how?
- Post-lesson, have any concerns arisen about the use of ChatGPT and BingAI? Please specify.
- What challenges have you encountered in the application of Gen AI?
- Through the utilization of Gen AI, have you encountered any novel perspectives or insights?
- Kindly offer any feedback or suggestions you might have for the enhancement of this course.
- Survey Following the Second Lesson
- To what extent has your comprehension of programming, specifically Python, been augmented through the use of Bing AI?
- In your experience, how does the learning process with Gen AI compare to that with live instructors, particularly in terms of pace, interaction, and outcomes?
- How was your experience in conducting code analysis with the assistance of Gen AI?
- How beneficial did you find Gen AI’s assistance in revisiting previous course materials?
- Would you consider employing the learning strategies facilitated by Gen AI in your future programming studies?
- Are you able to recall the content covered in the class?
- Could you articulate the Python programming concepts discussed in class in your own words?
- Are you capable of applying the knowledge acquired in class to tackle new problems?
- Can you deconstruct Python code into its constituent components and understand their functions?
- Are you able to independently construct new Python code and solve problems by synthesizing existing knowledge?
- Can you evaluate the efficiency and accuracy of Python code?
- Survey Prior to the Third Lesson
- Have you developed a personal approach to mastering challenging concepts with the aid of Gen AI?
- What learning style have you found to be most effective thus far? You may consider the instructor’s approach as a reference, but do not feel restricted by it; feel free to express your thoughts freely.
- What was the most significant or beneficial insight you gained in the previous session?
- Please feel free to share any feedback or requests you might have concerning the class.
- Survey Following the Third Lesson
- To what degree were you able to comprehend and elucidate the code of the application developed in collaboration with Gen AI?
- What inspired your approach?
- Were you successful in developing the application as intended with the assistance of Gen AI?
- Could you elucidate the reasons behind your success or the challenges you faced?
- How confident do you feel in your ability to develop applications with the support of Gen AI?
- Could you explain the basis of your confidence or lack thereof?
- How do you assess the advantages and disadvantages of collaborating with Gen AI in the learning and application of Python?
- Please share any feedback or inquiries you may have regarding the course.
- Survey Following the Fourth Lesson
- Following the completion of the four lessons, please evaluate your understanding of core programming concepts, the actual operations executed by code, and the objectives of tasks addressed by the code.
- Post these four lessons, have you attained the ability to compose code that performs as anticipated?
- Did the quartet of lessons augment your enthusiasm for mastering the Python programming language?
- Have these four lessons bolstered your confidence in learning Python programming?
- Was the incorporation of Gen AI beneficial in your Python learning journey?
- Could you elucidate the distinctions between acquiring Python programming skills through Gen AI and conventional programming education?
- How do you interpret the roles of educators and Gen AI in the context of Python programming education?
- To what degree do you believe you have grasped the functionalities of ChatGPT and BingAI subsequent to these four lessons?
- Throughout these lessons, were you successful in crafting effective prompts for ChatGPT and BingAI?
- In your view, what constitutes the critical components for generating an efficacious prompt?
- What are your strategies for integrating Gen AI into your future educational pursuits and everyday life?
- How do you assess the capabilities and potential of Gen AI?
- What are your perceptions regarding the constraints of Gen AI?
- Were the objectives and aims of the class conveyed with clarity?
- Did the pace of the class align with your learning needs?
- Were the explanations provided by the instructor comprehensible?
- How would you describe the level of interaction with the instructor during the lessons?
- Did the group discussions contribute to an enhanced learning experience?
- Was the level of difficulty of the class material appropriate?
- How satisfied are you with the educational outcomes achieved from these four sessions?
- Do you have any suggestions or remarks concerning the class?
Appendix B
References
- Sullivan, M.; Kelly, A.; McLaughlan, P. ChatGPT in higher education: Considerations for academic integrity and student learning. J. App. Learn. Teach. 2023, 6, 1–10. [Google Scholar] [CrossRef]
- van den Berg, G.; du Plessis, E. ChatGPT and Generative AI: Possibilities for Its Contribution to Lesson Planning, Critical Thinking and Openness in Teacher Education. Educ. Sci. 2023, 13, 998. [Google Scholar] [CrossRef]
- McIntire, A.; Calvert, I.; Ashcraft, J. Pressure to Plagiarize and the Choice to Cheat: Toward a Pragmatic Reframing of the Ethics of Academic Integrity. Educ. Sci. 2024, 14, 244. [Google Scholar] [CrossRef]
- Elkhatat, A.M. Evaluating the authenticity of ChatGPT responses: A study on text-matching capabilities. Int. J. Educ. Integr. 2023, 19, 15. [Google Scholar] [CrossRef]
- Gao, C.A.; Howard, F.M.; Markov, N.S.; Dyer, E.C.; Ramesh, S.; Luo, Y.; Pearson, A.T. Comparing scientific abstracts generated by ChatGPT to original abstracts using an artificial intelligence output detector, plagiarism detector, and blinded human reviewers. bioRxiv 2022. [Google Scholar] [CrossRef]
- Chen, E.; Huang, R.; Chen, H.S.; Tseng, Y.H.; Li, L.Y. GPTutor: A ChatGPT powered programming tool for code explanation. arXiv 2023, 2305, 01863. [Google Scholar]
- Lambert, J.; Stevens, M. ChatGPT and Generative AI Technology: A mixed bag of concerns and new opportunities. Comput. Sch. 2023, 1–25. Available online: https://www.tandfonline.com/doi/full/10.1080/07380569.2023.2256710 (accessed on 24 December 2023). [CrossRef]
- Steele, J.L. To GPT or not GPT? Empowering our students to learn with AI. Comput. Educ. Artif. Intell. 2023, 5, 100160. [Google Scholar] [CrossRef]
- Kasneci, E.; Seßler, K.; Küchemann, S.; Bannert, M.; Dementieva, D.; Fischer, F.; Gasser, U.; Groh, G.; Günnemann, S.; Hül-lermeier, E. ChatGPT for good? On opportunities and challenges of large language models for education. Learn. Indiv. Differ. 2023, 103, 102274. [Google Scholar] [CrossRef]
- Chan, C.K.Y. A comprehensive GEN AI policy education framework for university teaching and learning. Int. J. Educ. Technol. High. Educ. 2023, 20, 38. [Google Scholar] [CrossRef]
- OpenAI. ChatGPT. Available online: https://openai.com/chatgpt (accessed on 9 March 2024).
- Ouyang, F.; Jiao, P.C. Artificial intelligence in education: The three paradigms. Computers and Education. Artif. Intell. 2021, 2, 100020. [Google Scholar] [CrossRef]
- Baker, T.; Smith, L.; Anissa, N. Educ-AI-tion Rebooted? Exploring the Future of Artificial Intelligence in Schools and Colleges. Available online: https://www.nesta.org.uk/report/education-rebooted/ (accessed on 24 December 2023).
- Kim, J.; Lee, H.; Cho, Y.H. Learning design to support student-AI collaboration: Perspectives of leading teachers for AI in education. Educ. Inf. Technol. 2022, 27, 6069–6104. [Google Scholar] [CrossRef]
- Hwang, G.-J.; Xie, H.; Wah, B.W.; Gašević, D. Vision, challenges, roles and research issues of Artificial Intelligence in Education. Comput. Educ. Artif. Intell. 2020, 1, 100001. [Google Scholar] [CrossRef]
- Hattie, J. Visible Learning: A Synthesis of over 800 Meta-Analysis Relation to Achievement, 1st ed.; Routledge: London, UK, 2009. [Google Scholar]
- Johnson, D.W.; Maruyama, G.; Johnson, R.; Nelson, D.; Skon, L. Effects of cooperative, competitive, and individualistic goal structures on achievement: A meta-analysis. Psychol. Bull. 1981, 89, 47–62. [Google Scholar] [CrossRef]
- Johnson, D.W.; Johnson, R.T. Learning Together and Alone: Cooperative, Competitive, and Individualistic Learning, 5th ed.; Allyn and Bacon: Boston, MA, USA, 1999. [Google Scholar]
- Johnson, D.W.; Johnson, R.T. An educational psychology success story: Social interdependence theory and cooperative learning. Educ. Res. 2009, 38, 365–379. [Google Scholar] [CrossRef]
- Bruffee, K.A. Collaborative Learning: Higher Education, Interdependence, and the Authority of Knowledge, 2nd ed.; Johns Hopkins University Press: Baltimore, MD, USA, 1999. [Google Scholar]
- Bruffee, K.A. Collaborative learning and the “conversation of mankind”. Coll. Engl. 1984, 46, 635–652. [Google Scholar]
- Yang, X. A Historical Review of Collaborative Learning and Cooperative Learning. TechTrends 2023, 67, 718–728. [Google Scholar] [CrossRef]
- Sakamoto, J. What is “collaborative learning”? Lifelong Learn. Career Des. 2008, 5, 49–57. (In Japanese) [Google Scholar]
- Dillenbourg, P. What do you mean by collaborative learning? In Collaborative Learning: Cognitive and Computational Approaches; Dillenbourg, P., Ed.; Elsevier Science & Technology Books: Camrbridge, MD, USA, 1999; pp. 1–19. [Google Scholar]
- Oxford, R.L. Cooperative learning, collaborative learning, and interaction: Three communicative strands in the language classroom. Mod. Lang. J. 1997, 81, 443–456. [Google Scholar] [CrossRef]
- Kalota, F. A Primer on Generative Artificial Intelligence. Educ. Sci. 2024, 14, 172. [Google Scholar] [CrossRef]
- Yan, D. Impact of ChatGPT on learners in a L2 writing practicum: An exploratory investigation. Educ. Inf. Technol. 2023, 28, 13943–13967. [Google Scholar] [CrossRef]
- Escalante, J.; Pack, A.; Barrett, A. AI-generated feedback on writing: Insights into efficacy and ENL student preference. Int. J. Educ. Technol. High. Educ. 2023, 20, 57. [Google Scholar] [CrossRef]
- Surameery NM, S.; Shakor, M.Y. Use chatgpt to solve programming bugs. Int. J. Inf. Technol. Comput. Eng. 2023, 3, 17–22. [Google Scholar]
- Yilmaz, R.; Yilmaz, F.G.K. Augmented intelligence in programming learning: Examining student views on the use of ChatGPT for programming learning. Comput. Hum. Behav. Artif. Hum. 2023, 1, 100005. [Google Scholar] [CrossRef]
- Sun, D.; Boudouaia, A.; Zhu, C.; Li, Y. Would ChatGPT-facilitated programming mode impact college students’ programming behaviors, performances, and perceptions? An empirical study. Int. J. Educ. Technol. High. Educ. 2024, 21, 14. [Google Scholar] [CrossRef]
- Hartley, K.; Hayak, M.; Ko, U.H. Artificial Intelligence Supporting Independent Student Learning: An Evaluative Case Study of ChatGPT and Learning to Code. Educ. Sci. 2024, 14, 120. [Google Scholar] [CrossRef]
- Yilmaz, R.; Yilmaz, F.G.K. The effect of generative artificial intelligence (AI)-based tool use on students’ computational thinking skills, programming self-efficacy and motivation. Comput. Educ. Artif. Intell. 2023, 4, 100147. [Google Scholar] [CrossRef]
- Saldana, J. The Coding Manual for Qualitative Researchers, 4th ed.; Sage: London, UK, 2021. [Google Scholar]
- Jin, S.H.; Im, K.; Yoo, M.; Roll, I.; Seo, K. Supporting students’ self-regulated learning in online learning using artificial intelligence applications. Int. J. Educ. Technol. High. Educ. 2023, 20, 37. [Google Scholar] [CrossRef]
- Pintrich, P.R.; Wolters, C.A.; Baxter, G.P. Assessing metacognition and self-regulated learning. In Issues in the Measurement of Metacognition; Schraw, G., Impara, J.C., Eds.; Buros Institute of Mental Measurements: Lincoln, NE, USA, 2000; pp. 43–97. [Google Scholar]
- Flavell, J.H. Metacognition and cognitive monitoring: A new era of cognitive developmental inquiry. Am. Psychol. 1979, 34, 906–911. [Google Scholar] [CrossRef]
- Efklides, A. Metacognition: Defining its facets and levels of functioning in relation to self-regulation and co-regulation. Eur. Psychol. 2008, 13, 277–287. [Google Scholar] [CrossRef]
- Pintrich, P.R. The role of motivation in promoting and sustaining self-regulated learning. Int. J. Educ. Res. 1999, 31, 459–470. [Google Scholar] [CrossRef]
- Zimmerman, B.J. Attaining self-regulation: A social cognitive perspective. In Handbook of Self-Regulation; Boekaerts, M., Pintrich, P.R., Zeidner, M., Eds.; Academic Press: Cambridge, MD, USA, 2000; pp. 13–39. [Google Scholar]
- Mijwil, M.; Aljanabi, M. Towards artificial intelligence-based cybersecurity: The practices and ChatGPT generated ways to combat cybercrime. Iraqi J. Comput. Sci. Math. 2023, 4, 65–70. [Google Scholar] [CrossRef]
- Foroughi, B.; Senali, M.G.; Iranmanesh, M.; Khanfar, A.; Ghobakhloo, M.; Annamalai, N.; Naghmeh-Abbaspour, B. Determinants of intention to Use ChatGPT for Educational purposes: Findings from PLS-SEM and fsQCA. Int. J. Hum.-Comput. Interact. 2023, 1–20. [Google Scholar] [CrossRef]
- Pillai, R.; Sivathanu, B.; Metri, B.; Kaushik, N. Students’ adoption of AI-based teacher-bots (T-bots) for learning in higher education. Inf. Technol. People 2023, 37, 328–355. [Google Scholar] [CrossRef]
- Chen, C.M.; Wang, J.Y.; Chen, Y.-C. Facilitating English-language reading performance by a digital reading annotation system with self-regulated learning mechanisms. Educ. Technol. Soc. 2014, 17, 102–114. [Google Scholar]
Learning Task | Strategies |
---|---|
Understanding codes or concepts | Organize my own state of understanding before asking Gen AI Dialogue with Gen AI to clarify difficult areas Check the reliability of information and expand knowledge while interacting with Gen AI Paraphrase the response from Gen AI in your own words, think critically and analyze |
App development | Self-analysis before setting tasks Clarify the issue by interacting with Gen AI Setting strategies from simple to complex Seek solutions in collaboration with Gen AI rather than asking Gen AI to find a solution |
Advantages of Gen AI | Examples |
---|---|
The advantages to improve learning efficiency | Immediate response Accessibility Personalized difficulty levels Encouragement of questioning Continuity in learning Efficient information gathering |
Positive impacts on learning approach | Diversity of learning styles Integration of input and output learning Real-time programming learning Promotion of student interdependence and self-regulated learning |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Yan, W.; Nakajima, T.; Sawada, R. Benefits and Challenges of Collaboration between Students and Conversational Generative Artificial Intelligence in Programming Learning: An Empirical Case Study. Educ. Sci. 2024, 14, 433. https://doi.org/10.3390/educsci14040433
Yan W, Nakajima T, Sawada R. Benefits and Challenges of Collaboration between Students and Conversational Generative Artificial Intelligence in Programming Learning: An Empirical Case Study. Education Sciences. 2024; 14(4):433. https://doi.org/10.3390/educsci14040433
Chicago/Turabian StyleYan, Wanxin, Taira Nakajima, and Ryo Sawada. 2024. "Benefits and Challenges of Collaboration between Students and Conversational Generative Artificial Intelligence in Programming Learning: An Empirical Case Study" Education Sciences 14, no. 4: 433. https://doi.org/10.3390/educsci14040433
APA StyleYan, W., Nakajima, T., & Sawada, R. (2024). Benefits and Challenges of Collaboration between Students and Conversational Generative Artificial Intelligence in Programming Learning: An Empirical Case Study. Education Sciences, 14(4), 433. https://doi.org/10.3390/educsci14040433