Smarter learning: How AI is revolutionizing programming education
AI literacy is becoming essential in modern education, ensuring that students understand how AI systems work, their applications, and their implications. The study recognizes that while AI is being integrated into various fields, most K-12 curricula do not adequately cover AI topics, creating a knowledge gap that could leave students unprepared for future technological landscapes.

Artificial intelligence (AI) is no longer a futuristic concept - it is shaping industries, transforming workplaces, and influencing everyday life. As AI becomes increasingly embedded in society, AI literacy is now seen as a critical skill for future generations. However, introducing AI into K-12 education poses challenges, from teacher training and curriculum integration to maintaining student engagement.
A recent study titled “Integration of Artificial Intelligence in K-12: Analysis of a Three-Year Pilot Study” by Boško Lišnić, Goran Zaharija, and Saša Mladenović, published in AI (2025), explores the implementation of AI education in primary schools. Conducted across 12 schools in Croatia, the study focused on project-based learning using the Development of Intelligent Web Applications (RIWA) module. Over three years, students engaged in programming activities using JavaScript and the ml5.js library, resulting in 112 successfully completed AI-driven projects. The study provides key insights into how AI can be integrated into primary education without increasing instructional hours while enhancing student motivation and learning outcomes.
Bringing AI literacy to primary education
AI literacy is becoming essential in modern education, ensuring that students understand how AI systems work, their applications, and their implications. The study recognizes that while AI is being integrated into various fields, most K-12 curricula do not adequately cover AI topics, creating a knowledge gap that could leave students unprepared for future technological landscapes.
The RIWA module was designed to integrate AI concepts into the existing Informatics curriculum, rather than treating AI as a standalone subject. This approach allowed students to explore AI-driven programming projects while developing computational thinking and digital literacy skills. The curriculum followed a two-phase structure: first, students were introduced to AI through theoretical instruction and exercises, and second, they engaged in hands-on project development, applying AI concepts to real-world programming tasks.
One of the most significant findings from the study was that AI-based learning can be integrated into primary education without extending class hours. By embedding AI within existing subjects, particularly Informatics, students gained exposure to AI without increasing their workload. This method not only ensured smooth integration into school schedules but also demonstrated how AI could be leveraged as a tool to teach broader computational and problem-solving skills.
Role of project-based learning in AI education
The study highlights project-based learning (PBL) as a powerful method for teaching AI concepts. Unlike traditional instruction, PBL encourages students to engage with AI tools in a hands-on, problem-solving environment. Through this approach, students learned to build intelligent web applications that utilized machine learning for object recognition.
Over three years, 112 student projects were successfully completed, showcasing creativity and technical competence. The most commonly used programming concepts included variables, conditional branching (if-else statements), loops (for and while), and functions. More advanced students integrated webcam-based input processing and chatbot functionalities, demonstrating an ability to apply AI concepts beyond basic programming tasks.
However, the study also identified challenges, particularly in data training for AI models. Many students struggled with AI accuracy, largely due to poorly structured training datasets. For example, projects involving image classification often failed when students did not provide a diverse range of training samples. This highlighted a key takeaway: AI education must include lessons on data quality and bias in machine learning models to ensure students understand the impact of data selection on AI outcomes.
Additionally, students who participated in collaborative AI projects reported higher motivation and engagement than those working individually. The study suggests that group-based AI learning fosters problem-solving skills and encourages peer learning, making AI education more effective and enjoyable.
Teacher training and curriculum adaptation challenges
Despite the success of the RIWA module, the study underscores the need for better teacher training in AI education. One of the main obstacles was that many teachers lacked prior experience in AI, making it difficult to effectively guide students through AI-driven projects. The study found that teachers with strong programming backgrounds produced students with higher-quality AI projects, whereas teachers unfamiliar with AI concepts struggled to support student learning.
To address this gap, the study implemented teacher training workshops and online support. Teachers participated in four in-person workshops focused on AI fundamentals, programming with JavaScript and ml5.js, and project-based teaching strategies. Additionally, an online chat group was created for real-time troubleshooting and monthly feedback meetings were held to track progress and address challenges.
The study highlights that providing structured AI training materials and ongoing teacher support is critical for the successful integration of AI into classrooms. Moreover, curriculum flexibility is essential - teachers should have the freedom to adapt AI topics to their students' skill levels, ensuring a more inclusive learning experience.
Implications for the future of AI education
The findings of this study provide a blueprint for integrating AI education into K-12 curricula globally. By embedding AI into existing subjects, rather than adding new coursework, schools can effectively teach AI concepts without increasing academic pressure.
One key recommendation from the study is the importance of hands-on, practical applications of AI. The success of project-based learning in this study suggests that AI education should focus on interactive and real-world projects, where students can see tangible outcomes from their programming efforts. Future AI literacy programs should also incorporate ethical discussions on AI use, ensuring that students understand AI biases, data privacy, and the societal impact of intelligent systems.
Furthermore, scaling AI education requires stronger collaboration between educational institutions, industry experts, and policymakers. As AI technology continues to evolve, curricula must be updated to reflect the latest advancements in machine learning, data science, and automation. The study advocates for continuous teacher training, more accessible AI tools, and curriculum alignment with global AI education standards to create a sustainable AI learning framework.
By integrating AI concepts early in education, students will be better prepared for future careers in AI-driven industries, equipped with both technical programming skills and critical AI literacy. The RIWA module demonstrates that AI is not just a subject for advanced learners but can be an engaging and accessible learning tool for young students, shaping the next generation of AI-literate citizens.
- FIRST PUBLISHED IN:
- Devdiscourse