Machine learning basics
What is AI and machine learning?
The big idea behind PetalEdge in five minutes, with no maths.
On this page
The idea in one minute
Artificial intelligence (AI) is any computer system that does something we would call "smart", like recognising a face or understanding a word.
Machine learning (ML) is one way to build AI. Instead of writing the rules yourself, you show the computer many examples and let it find the rules.
- Rule-based: "If the sound is louder than 70 dB and lasts 2 seconds, it is an alarm." You must think of every rule.
- Machine learning: give the computer 200 labelled clips of alarms and 200 of other sounds. It learns what makes an alarm an alarm.
A simple example
Imagine teaching a model to recognise a hand wave:
- You record 30 waves and 30 moments of doing nothing, and label them wave and idle.
- The model looks at the examples and adjusts itself until it can tell them apart.
- You give it a new recording it has never seen. It answers wave: 92 %.
That third step, using a trained model on new data, is called inference.
Machine learning and deep learning
Deep learning is a kind of machine learning that uses neural networks: many layers of simple maths units connected together. Every learning block in PetalEdge uses a neural network.
| Term | In one sentence |
|---|---|
| Artificial intelligence | Computers doing tasks that seem smart |
| Machine learning | Learning the rules from labelled examples |
| Deep learning | Machine learning with neural networks |
| Model | The trained result that makes predictions |
| Training | The learning step, using your examples |
| Inference | Using the trained model on new data |
What "edge AI" means
The edge is the device where the data is collected: a camera, a sensor board or a small computer such as a Raspberry Pi. Edge AI means the model runs on that device, not in the cloud. This makes it:
- fast: no waiting for the internet,
- private: the data can stay on the device,
- reliable: it works without a connection.
Edge devices have little memory and power, so edge models must be small. PetalEdge helps you train models that are small enough.
Where you use this in PetalEdge
Every PetalEdge project follows the same machine-learning steps: collect examples, label them, train a model, check it, and run it on a device.