Simple logic: if (time == 8:00) water_on(); — Rigid, blind, and efficient.
Edge AI
05
The Evolution
Remote Control
Adding Connectivity: Control
Edge AI
06
Local Intelligence
Autonomous Sense & React + Collecting Data
Adding local compute: ESP32-S3 — Smart farmer happens on the device.
Edge AI
07
The Challenge
Embedded Constraints
🔋
Power
Milliwatts (mW) budget. Running on a coin cell for years, not hours.
💾
Memory
Kilobytes (kB) of RAM. No swapping. Flash is your only ocean.
⚡
Speed
Real-time or bust. Sub-millisecond jitter. Clocked in MHz, not GHz.
📏
Size
Fingernail-sized silicon. BOM cost matters down to the penny.
Shipping AI on the edge is the art of fitting a gallon into a thimble.
Edge AI
08
Edge AI
When AI lives inside the thing.
From the milliwatt microcontroller in your earbud to the camera on a factory floor — what it takes to ship intelligence outside the cloud.
Edge AI
09
// RIGHT NOW, WHILE YOU HEAR ME
The earbuds in your pocket
run a neural network.
No cloud. No Wi-Fi. No latency. Just a tiny chip, a microphone, and a model small enough to live there. That is Edge AI — and it's eating the world quietly.
Edge AI
10
Roadmap
Build your way up.
01
Foundations
What & why of Edge AI
02
Cloud · Fog · Edge
Where compute lives
03
Vocabulary
Cheat-sheet for the rest
04
Use cases
Where it's already shipping
05
The pipeline
Sensor → action
06
Sensors & features
Fusion, FFT, MFCC
07
Modeling & tools
Models, optims, frameworks
08
KWS demo
Edge-Impulse
?Questions welcome at any step — write in the chat whenever an idea sparks.
Edge AI
11
Definition
What is Edge AI?
In one sentence
Running AI inference on the device that produced the data — instead of sending it to a server.
تشغيل استدلال الذكاء الاصطناعي على الجهاز الذي أنتج البيانات — بدلاً من إرسالها إلى خادم.
The model was probably trained in the cloud. (Huge dataset)
It runs locally (Small model).
That asymmetry is the whole point.
Old way · Cloud AI
📱
network ↑↓
☁ AI
New way · Edge AI
📱 + AI
☁ optional
Edge AI
12
Where compute lives
Cloud · Fog · Edge.
Same data, very different physics.
↓ farthest from sensor
☁ Cloud
AWS, GCP, Azure datacenters
↓ in between
🌫 Fog
Gateways, local servers, on-prem
↓ on the device
⚡ Edge
MCUs, phones, sensors
Latency
100–500 ms
10–100 ms
< 10 ms
Bandwidth
Streams everything ↑
Aggregates locally
Sends only decisions
Privacy
Data leaves device
Stays on premise
Never leaves the chip
Cost / scale
$$ per inference
$ once, then free
Free after BOM
Compute budget
Effectively unlimited
CPU/GPU on a box
kB of RAM, mW of power
Reality: most products are hybrid — train in cloud, fuse in fog, decide at edge.
📷 Traffic camera
Stores raw 4K footage · trains next model version · city-wide flow analytics
Local server aggregates 40 cameras · runs plate OCR · flags incidents
Detects red-light violation in <5 ms, on-chip — no network needed
Edge AI
13
Why now
Four forces moving AI off the cloud.
01
⚡
Latency
A car braking for a child can't wait 200 ms for a round-trip.
< 10 ms or it's useless
02
🔒
Privacy
Your microphone, your camera, your heart — should stay local.
data never leaves
03
📶
Bandwidth
A 4K camera @ 30 fps = 12 Gbps raw. Nobody pays for that.
send decisions, not pixels
04
📡
Offline reliability
Tractors, drones, oil rigs, wearables. Network is a luxury.
works when Wi-Fi doesn't
Edge AI
14
The spectrum
"The edge" is not one place.
📱 Phone / SBC
Apple Neural Engine, Pixel (Google Tensor), Raspberry Pi 5
~5–50 W GB of RAM
🛜 Gateway
Industrial PCs, smart cameras, edge servers in a closet
~1–20 W 100s of MB
🔲 MCU / TinyML
ESP32-S3, Cortex-M4/M7, nRF52840
~10–500 mW kB to MB
🧫 In-sensor
Sony IMX500, BMI270 — compute on the silicon itself
µW range fixed function
Same model class, totally different engineering. The constraints get much tighter as you move right.
Edge AI
15
Cheat-sheet
Vocabulary, fast.
Keep this map in your head for the next 25 minutes.
training vs inference
التدريب مقابل الاستدلال
Training learns the weights (cloud, hours). Inference runs them (device, ms).
model · weights
النموذج · الأوزان
Architecture is the recipe. Weights are the numbers it cooked into.