techTreksBooks

Distinguishing AI and ML

Syllabus alignment

This lesson supports the NSW Software Engineering Stage 6 syllabus:

Automation is everywhere: from self‑checkout at supermarkets to spam filters in email and smart recommendations in apps. Organisations such as banks, retailers, and tech companies increasingly use Artificial Intelligence (AI) and Machine Learning (ML) to deliver services faster, detect fraud, and improve customer experiences. This topic provides the foundations you need before we build and test simple ML-powered automations in class.

The difference between AI and ML

Artificial Intelligence (AI) aims to enable computers to perform tasks that typically require human intelligence, perception, reasoning, decision-making, and communication. AI can be built using techniques such as rules and knowledge bases, search and optimisation, planning, and machine learning. Examples include rule‑based expense approval checks, game‑playing agents, and chatbot dialogue managers.

Machine Learning (ML) is a subfield of AI in which systems learn patterns from data to improve performance on a task without being explicitly programmed with every rule. Applications include training models from data for spam filtering, demand forecasting, anomaly detection on logs/metrics, and document classification.

AI and ML work together

AI is the umbrella. AI is a broad field encompassing systems designed to perform tasks that typically require human intelligence. AI can be built using various approaches, including rule-based systems (using predefined rules and logic), search algorithms, machine learning (ML), or combinations of these methods.

ML continuum

ML can be applied at various stages of system development and use, and the interactive below shows that continuum for an AI system used for plant identification.

01 RULE-BASED AI 02 TRAINED MODEL 03 MULTI-STAGE ML 04 CONTINUAL ML

01 Rule-based key (no ML)

User answers a series of taxonomic questions; the system follows fixed rules to reach an outcome.

  • Uses fixed IF/THEN rules to guide users through decision paths; every outcome is scripted ahead of time.
  • Feedback is logged for later human review, but no automatic learning occurs until editors revise the rules offline.
  • Operates entirely on provided answers; logs help instructors audit unusual cases.
  • Brittle with messy inputs, requiring periodic human maintenance and QA to stay reliable.

02 Trained model

Pre-trained classifier predicts species from a photo without changing after deployment.

  • A static model (e.g. CNN) converts images to features and predicts species using stored weights.
  • Retraining happens in scheduled engineering cycles using curated data; users’ uploads can seed future updates.
  • Runs inference quickly without storing data unless consented; pipelines swap new weights when retrained.
  • Dashboards monitor bias and drift; human experts review uncertain or sensitive predictions.

03 Multi-stage ML

Pipeline chains models (e.g., detection → classification → post-processing) for refined output.

  • An orchestrator first classifies broad traits, then routes cases to specialised sub-models for refined scoring.
  • Data flows through multiple coordinated pipelines; automated checks catch low-confidence routes.
  • Each stage retrains on new labelled slices during MLOps rotations, with drift alerts for behaviour shifts.
  • Fallback rules and human oversight handle misrouted or uncertain samples.

04 Continual ML

System incorporates user feedback and new data to improve over time.

  • A static model (e.g. CNN) converts images to features and predicts species using stored weights.
  • Retraining happens in scheduled engineering cycles using curated data; users’ uploads can seed future updates.
  • Runs inference quickly without storing data unless consented; pipelines swap new weights when retrained.
  • Dashboards monitor bias and drift; human experts review uncertain or sensitive predictions.

Key terms

  • Artificial intelligence (AI)
    The broad field of creating machines that simulate human intelligence.
  • Machine learning (ML)
    A type of AI where systems learn and improve from data without being explicitly programmed.
  • Algorithm
    A set of instructions that a computer follows to solve a problem.
  • Automation
    Technology that performs tasks with minimal human intervention.

Summary

AI is the broad goal of intelligent systems, while ML is a way to achieve AI by learning from data.


Practice questions

Question 1
Question 01

Define Artificial Intelligence (AI) in your own words.

2 marks
Question 2
Question 02

How does machine learning differ from rule-based AI?

3 marks
Question 3
Question 03

Which of the following best describes automation?

1 marks
Question 4
Question 04

Explain how AI and ML work together to enhance automation in industry.

4 marks
Question 5
Question 05

List and briefly describe the four levels of the AI–ML continuum shown in the plant identification example.

4 marks
Question 6
Question 06

Discuss why continual learning systems are more adaptable than static trained models.

4 marks
Question 7
Question 07

A gardening app asks users to input plant characteristics such as leaf shape and colour, then follows a fixed decision tree to identify the species. Classify this system on the AI–ML continuum and justify your choice.

3 marks
Question 8
Question 08

A smartphone app identifies dog breeds from photos using a trained image-recognition model. It does not update after deployment. Classify this system on the AI–ML continuum and justify your choice.

3 marks
Question 9
Question 09

An online translation service uses multiple models — one for language detection, one for translation, and one for grammar correction — in sequence. Classify this system on the AI–ML continuum and justify your choice.

3 marks
Question 10
Question 10

A recommendation system continually updates based on user clicks and feedback to suggest new videos or music. Classify this system on the AI–ML continuum and justify your choice.

3 marks
Total: 0 / 30