My Machine Learning – Module 1 AI Adventure

The UMPSA STEM Lab MyMachine Learning Module is astarting point on the AI Adventure, a beginner-friendly journey through the ideas that power modern artificial intelligence. Whether you are a student, educator, or curious explorer, this module breaks down Machine Learning into clear, approachable ideas so you can understand how computers learn from experience, make predictions, … Continue reading “My Machine Learning – Module 1 AI Adventure”

The UMPSA STEM Lab MyMachine Learning Module is astarting point on the AI Adventure, a beginner-friendly journey through the ideas that power modern artificial intelligence. Whether you are a student, educator, or curious explorer, this module breaks down Machine Learning into clear, approachable ideas so you can understand how computers learn from experience, make predictions, and solve real-world problems.

What is Machine Learning?

Machine Learning (ML) is a branch of Artificial Intelligence in which a computer program improves its performance on a task by learning from data, rather than following rules written explicitly by a programmer. The core idea is elegant: instead of coding every decision, you feed the system examples and let it discover the patterns itself.

Three things make ML possible: data (the examples the system learns from), an algorithm (the method it uses to find patterns), and a model (the set of rules or parameters produced by training, which is then used to make predictions on new, unseen data).

Types of Machine Learning

Supervised Learning is the most common type. Each input is paired with a label (the correct answer) and the model learns to map inputs to outputs. Classic examples: spam filters and house price prediction.

Unsupervised Learning works without labels. The algorithm discovers hidden groupings or patterns in raw data — used for customer segmentation and anomaly detection.

Reinforcement Learning trains an agent to maximise a reward signal through trial and error — the technique behind game-playing AI such as AlphaGo and robotic control systems.

Type Labelled data? Learns from Example use
Supervised Yes Input–output pairs Image classification
Unsupervised No Raw patterns in data Customer segmentation
Reinforcement No Reward signals Game-playing agents

Key ML Concepts

Features are the measurable inputs a model uses — for a house model: floor area, rooms, location.

Labels are the correct answers the model learns to predict. In supervised learning, every training example carries one.

Training adjusts a model’s parameters to minimise prediction error on the training data.

Overfitting vs Underfitting — overfitting memorises training data but fails on new examples; underfitting is too simple to capture patterns. The goal is a model that generalises.

Evaluation measures performance on a held-out test set using metrics such as accuracy, mean squared error or F1-score.

Hyperparameters are settings chosen before training — such as learning rate or network depth — tuned by the practitioner, not learned from data.

The ML Pipeline

Building a real ML system follows a repeatable sequence of steps, often called the ML pipeline. Each stage feeds the next.

        1. Define the problem — What to predict and who will use the model.
        2. Collect and label data — Quality matters far more than quantity.
        3. Explore and clean — Spot distributions, missing values and errors (EDA).
        4. Engineer features — Transform raw inputs into informative signals.
        5. Choose and train a model — Pick an algorithm and tune hyperparameters.
        6. Evaluate — Measure performance on a held-out test set.
        7. Deploy — Serve predictions via an API, app or embedded device.
        8. Monitor and retrain — Watch for data drift and retrain periodically.

A Friendly Tour of Common Algorithms

Algorithm Type Good when
Linear Regression Supervised Predicting continuous numbers
Logistic Regression Supervised Binary or multi-class classification
Decision Tree Supervised Interpretability matters
Random Forest Supervised Tabular data, good accuracy needed
SVM Supervised High-dimensional, medium-sized datasets
K-Means Unsupervised Grouping unlabelled data
Neural Network Supervised / Unsupervised Images, text, audio, complex patterns

Real-World Applications of Machine Learning

Healthcare — ML models analyse medical images to detect tumours earlier than human radiologists, predict patient deterioration in intensive care, and accelerate drug discovery by screening millions of molecular candidates.

Education — Adaptive learning platforms tailor exercises to each student’s strengths and gaps.

Natural Language Processing (NLP) — Translation services, grammar checkers, chatbots and voice assistants all rely on ML models trained on vast text corpora.

Computer Vision — Facial recognition, autonomous vehicle perception, quality inspection on factory lines, and satellite image analysis for agriculture and disaster response all depend on deep learning applied to images.

Finance — Fraud detection systems flag unusual transactions in milliseconds.

Recommendation Systems — Every time a streaming service suggests a show or a retailer recommends a product, a collaborative filtering or content-based ML model is at work, learning your preferences from past behaviour.

Climate and Environment — ML accelerates weather forecasting, optimises the dispatch of renewable energy on the grid, and monitors deforestation through satellite imagery.

What’s Next on the AI Adventure?

The MyMachine Learning Module is one stop on a longer journey. As you continue through the AI Adventure, future modules will take you deeper into topics such as:

  • Deep Learning — building and training neural networks with many layers
  • Natural Language Processing — teaching machines to read, write and converse
  • Computer Vision — making sense of images and video
  • Responsible AI — understanding bias, fairness, explainability and the ethics of ML systems
  • Hands-on Projects — applying what you have learned to real datasets using Python and popular libraries such as scikit-learn, TensorFlow and PyTorch

ML is not magic — it is mathematics, data, and careful engineering. But its power to find patterns in complexity, to learn from experience, and to generalise to new situations is genuinely extraordinary. The best time to start exploring it is now.

Keep exploring. Keep asking questions. The adventure is just beginning.

Nurul

UMPSA STEM Lab

Publication 2026/4 – IEEE Transaction AI-Assisted Tiered Scaffolding

IEEE TOL – AI Tiered Scaffolding It’s Official — and It Means More Than a Publication =) I am delighted to share that this article, AI-Assisted Tiered Scaffolding for Programming Skill Development in a Problem-Based Game Development Environment, has been accepted and is now available as an Early Access article in IEEE Transactions on Education, … Continue reading “Publication 2026/4 – IEEE Transaction AI-Assisted Tiered Scaffolding”

IEEE TOL – AI Tiered Scaffolding

It’s Official — and It Means More Than a Publication =)

I am delighted to share that this article, AI-Assisted Tiered Scaffolding for Programming Skill Development in a Problem-Based Game Development Environment, has been accepted and is now available as an Early Access article in IEEE Transactions on Education, one of the most respected journals in engineering education research.

This article is a reflection on a journey that began more than six years ago, shaped by curiosity about how students learn to program, deepened through theory and careful design, and now, with the arrival of generative AI, given a new and urgent dimension.

2020: Where It All Began  (The UMP STEM Cube – LilEx)

The journey starts with a question we were asking in engineering education: how do we move students from passive learners to active makers? In 2020, we introduced the UMP STEM Cube (LilEx) a modular, hands-on learning tool strategically designed to elevate digital making skills in engineering programmes.

Grounded in Kolb’s Experiential Learning Theory, the STEM Cube was designed to close the gap between theory and practice. Students worked through programming, physical computing, and 3D modelling activities in a cycle of concrete experience, reflection, abstract conceptualisation, and active experimentation.

The findings were encouraging. Students who engaged with the STEM Cube demonstrated significant learning gains in programming competencies and physical computing skills. More than the numbers, their positive perceptions and growing confidence in digital making were what stood out, a signal that something in the design was working.

This work was published in IEEE Transactions on Education (2024): Assessing the Effectiveness of UMP STEM Cube as a Tool for Developing Digital Making Skill Sets.

2021: Designing the Scaffolding (Tiered and Intentional)

If 2020 was about the learning environment, 2021 was about the instructional design inside it. We turned to the question of how to structure activities so that learners are guided progressively, with support that gradually fades as competence grows.

 

The result was a tiered scaffolding framework, a carefully crafted sequence moving from full scaffolding toward independent work:

        1. Workout Programming step-by-step guidance through worked examples
        2. Debugging Specific Malfunctions identifying and fixing targeted errors in given code
        3. Semi-Completed Programming Tasks completing partially provided code
        4. New Programming Tasks applying concepts independently with minimal support

This design was tested in two contexts: graphical (block-based) programming and Python-based game development. Both studies confirmed that the tiered structure supported learners at different ability levels without overwhelming beginners or under-stimulating those who were ready to move ahead.

 

Related publications: Graphical programming study · Python game development study

2023–2026: What Happens When We Add AI .. Carefully =)

By 2023, generative AI tools were everywhere in education. Students were using them, often without guidance, with outcomes that raised real concerns: shallow understanding, passive reliance, and over-dependence on code generation without comprehension.

We did not want to ban AI. We wanted to embed it purposefully.

The central design question became: what does AI-assisted scaffolding look like when it is not left to chance? Our answer was to integrate AI interaction within the tiered scaffolding structure — not as a shortcut, but as a scaffold in itself. The AI interaction was framed around three modes:

      1. Code with AI, collaborating with AI to build and refine
      2. Code for AI, preparing clear prompts and specifications
      3. Code by AI, critically evaluating and adapting AI-generated output

The learning context was a Slider Game built in Pygame: a red enemy block falls from a random x-position; a green player block moves left and right to catch it. Eight structured activities (Acts) took students from orientation and game setup through movement logic, scoring, loop refinement, debugging, customisation, and reflection.

The study ran as a quasi-experimental design comparing an AI-assisted group (n = 60) against a control group (n = 55) following the same tiered scaffolding without AI access.

The Framework: Theory Doing Real Work

What holds this study together is not just the activities, but the theoretical architecture beneath them. Three foundations are woven together:

    1. Cognitive Apprenticeship provides the instructional sequence: Modeling → Coaching → Articulation → Reflection → Fading. Students are not simply given tasks; they observe expert thinking, receive guided feedback, articulate their own reasoning, reflect on their process, and progressively take ownership as scaffolding is withdrawn.
    2. AI Scaffolding is embedded within this sequence — not as an add-on, but as the mechanism through which coaching and feedback are delivered. AI suggestions are treated as materials to evaluate, not answers to copy.
    3. Problem-Based Learning anchors everything in an authentic, motivating context: building a working game. The game is not a gimmick. It provides the problem space within which every programming concept — from loops and conditionals to collision detection and scoring — earns its meaning.

The Learner–AI Programming Process cycle — Prompt → Code → Test → Debug → Reflect → (Prompt again) — describes how learners move through each activity, with AI as a responsive partner in that loop, never as a replacement for thinking.

What We Found

The numbers are hard to ignore. Students in the AI-assisted group achieved a mean learning gain of 25.51 points (SD = 13.68), compared to 6.90 points (SD = 6.16) in the control group. The effect size was large — Cohen’s d ≈ 1.86 — and the difference was highly significant: t(113) = 11.64, p < .001.

But the numbers only tell part of the story. Artifact and interaction log analysis revealed something more qualitative and perhaps more meaningful:

      1. Students in the AI-assisted group showed more systematic debugging — not random trial-and-error, but deliberate hypothesis-and-test cycles.
      2. Over time, there was a gradual shift toward critical evaluation of AI-generated suggestions, rather than passive acceptance. Students began questioning, adapting, and sometimes rejecting what AI produced.
      3. Self-efficacy and engagement were higher in the AI-assisted group — students expressed greater confidence and tackled problems more independently as the course progressed.

The core finding is that the educational value of AI depends not on the technology alone, but on the instructional framework in which it is embedded  =)

On IEEE Transaction Peer Review: Why I Treasure the Process

I want to say something that is not always said out loud in academic circles: I am genuinely grateful for the peer review process, and I mean that without reservation =).

The reviewers’ comments on this manuscript were thorough, specific, and often challenging. There were moments of “oh”, where a reviewer pointed at a gap I had convinced myself did not exist, or pressed on a claim I had made too casually. The revision process was demanding. But it was also one of the most intellectually enriching parts of this entire journey.

Working through each reviewer comment forced me to revisit assumptions, sharpen my arguments, and in several instances, go back and strengthen the research itself , not just the manuscript. That is a rare gift. The final paper is better than the first submitted, and the credit for that belongs in large part to reviewers who clearly read with care and took the work seriously. This whole journey took almost 1 year =)

This is, I believe, why peer-reviewed publication carries the weight it does. It is not simply a stamp of approval. It is a process of scrutiny that when done well, makes the work more rigorous, more honest, and more useful to others who build upon it. I came away not just with an accepted paper, but with a deeper understanding of my own research. Thank you Editor and Reviewers.

What This Means  and What Comes Next

We are at a moment in education where everyone is asking, what do we do with AI? Ban it, embrace it, ignore it and hope for the best?

This research offers a different kind of answer. The question is not whether to use AI, students are already using it. The question is how we design the instructional context in which that use happens. AI embedded within a thoughtful, theory-informed scaffolding framework can accelerate learning, deepen engagement, and develop more independent thinkers. AI used without structure can do the opposite.

The Slider Game, the tiered activities, the Cognitive Apprenticeship sequence, the Learner–AI Programming Process cycle, these are not prescriptions. They are a transferable design framework that educators can adapt for their own programming courses, their own students, their own contexts.

For me personally, this publication closes one chapter and opens another. Six years, three theoretical lenses, two learning environments, one framework, and now empirical evidence that the design works. I am proud of this body of work, and I am already thinking about where it goes next.

Thank you to my UMPSA STEM Lab colleagues, my students who gave their time and engagement to this research, the reviewers who sharpened it, and IEEE Transactions on Education for giving it a home =).

 

Read the paper: AI-Assisted Tiered Scaffolding for Programming Skill Development in a Problem-Based Game Development Environment  IEEE Transactions on Education, Early Access, 2026.

 

MyMachine Learning – 2026/1

UMPSA STEM Lab, in collaboration with the Pahang State Education Department (BSKK), held the AI Adventure: MyMachine Learning Module workshop from 11–13 November 2026, bringing together 120 participants from across Pahang (50 primary school students, 50 secondary school students and 20 teachers) as the first module of the AI Adventure series. What Participants Explored:- What … Continue reading “MyMachine Learning – 2026/1”

UMPSA STEM Lab, in collaboration with the Pahang State Education Department (BSKK), held the AI Adventure: MyMachine Learning Module workshop from 11–13 November 2026, bringing together 120 participants from across Pahang (50 primary school students, 50 secondary school students and 20 teachers) as the first module of the AI Adventure series.

What Participants Explored:-

        1. What Machine Learning is and how it differs from traditional rule-based programming
        2. The three main types of learning — Supervised, Unsupervised and Reinforcement Learning — with real-world examples for each
        3. Key vocabulary every AI practitioner uses: features, labels, training, models, evaluation and overfitting
        4. The ML pipeline — tracing a dataset from raw collection through cleaning, feature engineering, training, evaluation and deployment
        5. Common algorithms including Linear Regression, Decision Trees, Random Forests, and Neural Networks, explored through hands-on activities
        6. Real-world applications of ML across healthcare, education, finance and everyday technology

These foundational skills equip participants to engage confidently with AI and data-driven technologies — not merely as users, but as informed, critical thinkers. By understanding how ML systems are built and where they succeed or fail, participants are better prepared to:

        1. Ask the right questions when encountering AI tools in their daily lives
        2. Identify opportunities where ML could solve real problems in their communities
        3. Continue learning through the subsequent modules of the AI Adventure series
        4. Pursue further study in computing, data science, and AI at tertiary level

UMPSA STEM Lab wishes to express sincere appreciation to Tuan Arman bin Tojid and Encik Jamil Hamzah bin Sazali from the Unit Pembangunan Bakat Murid, Sektor Pembangunan Murid, Jabatan Pendidikan Negeri Pahang, for their dedication in coordinating communication between the participants and UMPSA STEM Lab throughout the planning and execution of this programme.

Full details on the concepts covered in the UMPSA MyMachine Learning Module, including an overview of Machine Learning, its types, key vocabulary, the ML pipeline, common algorithms and real-world applications, are available in the module overview below.

MyMachine Learning Module – AI Adventure Blog

My Machine Learning – Module 1 AI Adventure

 

 

mBlock Programming 2026/4 – SK Sultan Ahmad

A synopsis of the program can be retrieved via the following link. In today’s program, 40 participants from SK Sultan Ahmad Pekan were introduced to mBlock programming, learning to use its graphical interface to create sequences of instructions. They explored sequential programming, conditional statements, and loops through hands-on tutorials. These foundational skills were applied in two … Continue reading “mBlock Programming 2026/4 – SK Sultan Ahmad”

A synopsis of the program can be retrieved via the following link.

In today’s program, 40 participants from SK Sultan Ahmad Pekan were introduced to mBlock programming, learning to use its graphical interface to create sequences of instructions. They explored sequential programming, conditional statements, and loops through hands-on tutorials. These foundational skills were applied in two projects: a Snake game and a Pac-Man game. In the Snake game, they programmed the snake’s movement, growth, and collision detection, while in the Pac-Man game, they navigated a maze, collected points, and avoided ghosts. This approach provided a comprehensive understanding of programming concepts and their practical applications.

Appreciation to Cikgu Nek and Ustazah Athirah for coordinating the communication between the participants and UMPSA STEM Lab.

Raspberry Pi Programming 2026/9 – SK Temai

*UMPSA STEM Lab Raspberry Pi Programming Synopsis can be found here. In the Raspberry Pi IoT session, 40 students and teachers from SK Temai, awere introduced to the concept of the Internet of Things (IoT) using Raspberry Pi on the UMP STEM Cube, a pico-satellite learning kit specifically designed to facilitate engineering learning. The content … Continue reading “Raspberry Pi Programming 2026/9 – SK Temai”

*UMPSA STEM Lab Raspberry Pi Programming Synopsis can be found here.

In the Raspberry Pi IoT session, 40 students and teachers from SK Temai, awere introduced to the concept of the Internet of Things (IoT) using Raspberry Pi on the UMP STEM Cube, a pico-satellite learning kit specifically designed to facilitate engineering learning.

The content covered basic digital input/output operations on onboard LEDs, as well as topics such as dashboard design using gyro meter and BMU280 sensor data, including collecting and storing data in a cloud database. Participants learned to interface sensors with Raspberry Pi boards and develop IoT applications for real-world scenarios. The session provided students with valuable insights into IoT technology and its applications in various domains.

A special appreciation is extended to Cikgu Izwan from PPD Maran for organizing and coordination in facilitating communication between the participants and the UMPSA STEM Lab :).

Nurul Nov 3rd