Ambient Intelligence & Domotics · AI4ST

Lecture 1
Introduction to Ambient Intelligence

An interactive study guide built from the lecture slides and tuned to the style of the simulation exam. Read each section, test yourself on the way, then take the full quiz.

⏱ ~30 min 📚 5 sections ✅ 6 MCQ + 2 open-ended 🎯 Exam-style
1

What is Ambient Intelligence?

The core idea: technology that disappears into the environment. The environment becomes intelligent and adaptive — a network of "hidden interfaces" that understands your behavior and adapts to your needs.

The Vision · Mark Weiser, 1988
"The most profound technologies are those that disappear. They weave themselves into the fabric of everyday life until they are indistinguishable from it."
Pervasive Computing + Artificial Intelligence = Ambient Intelligence

AmI is a multidisciplinary area. Its environment is aware of the current context and ready to act on it.

The 5 components of an AmI system

📡

Sensing

Capture info about the environment & users

⚙️

Acting

Act on the environment (lights, thermostat, robots)

🧠

Reasoning

Model & recognize behavior — connects sensing to acting

🗣️

HCI

Natural interaction: gestures, speech, emotions

🔒

Security & Privacy

Protect sensitive sensed data from attacks

Distributed → Pervasive → Volatile

AmI is built on distributed pervasive systems.

  • Distributed system: a collection of connected independent computing nodes that appears to users as a single coherent system.
  • Pervasive system = distributed system that (1) includes unconventional nodes (mobile objects with computing + communication — phones, smart appliances, sensors) and (2) is adaptive (adjusts behavior to current context to optimize its goal).
  • Volatile: pervasive systems suffer device/comm failures, bandwidth changes, and constant creation/destruction of software associations.
ThinkWhat is the difference between a distributed system and a pervasive system? What two features distinguish a pervasive system?
Answer: A distributed system is just connected independent nodes that appear as a single coherent system. A pervasive system adds two things: (1) it includes unconventional nodes (mobile objects with computing & communication), and (2) it is adaptive — it adjusts its behavior based on the current context.
2

IoT & Domotics

Definition · Internet of Things
A set of physical "smart" objects equipped with sensors, software and technologies, collecting data from the environment and exchanging it over a computer network to achieve a specific goal.

Why are objects "smart"?

  • Connected to the Internet → remote access, invocation of services, cooperation
  • Run algorithms (locally or remotely) to analyze data and understand context using AI
  • Offer personalized context-aware services

The AmI / IoT processing flow

Sensors Sense Process Interpret Decide Respond Actuators

IoT layer (sense/respond) · AI & ML layer (process/interpret/decide) · HCI: speech, visual, movement, gesture

Domotics = IoT + Home

Domotics is the use of IoT devices (sensors & actuators) in the home environment, to transform it into a smart-home. The most common application is automations:

Automation example
Status: luminance in living room = low. Event: motion detected in living room. Rule: when motion detected AND luminance low → turn on light. Effect: light turns on.

But domotics is more than automations: remote healthcare monitoring, energy management, security, anomaly detection.

ThinkWhat is the single best description of what makes a device "smart" in the IoT sense?
Answer: It runs algorithms to analyze data and understand context, offering personalized context-aware services (and is Internet-connected). A touchscreen, a local connection, or low power alone do not make a device "smart".
3

Context & Context-Awareness

Heavily testable. Traditional software forces users to make all parameters explicit. AmI systems acquire context automatically.

The definition to memorize · Anind Dey, 2001
"Context is any information that can be used to characterize the situation of an entity. An entity is a person, place, or object that is considered relevant to the interaction between a user and an application."

👉 Simplified: "all the data useful to adapt a service." Early enumeration-based definitions (context = location + time + people…) were rejected because they were not general enough.

Key terms

  • Context-aware system: uses context to provide relevant info/services to the user (relevancy depends on the user's task). AmI systems are context-aware systems.
  • Adaptiveness: the property of adapting to a given context for a better service. Crucial because of changes in user situation, environment, network connectivity, and energy/battery.
  • Awareness mismatch: the gap between human perception and the system's perceived context. Goal: minimize it.

Taxonomy of context (U=user · S=sensors · D=device · O=other)

Primary dimensionExamples (secondary)Sources
UserIdentity, physiological, emotional, interests, preferences, social, activityU, S, O
EnvironmentWeather, temperature, humidity, light, noise, air pollution, surrounding persons/devicesS, O
LocationPhysical, symbolicS, O
TimeAbsolute, granularity-basedD, S, O
DeviceCapabilities, statusD
ConnectivityD, O

Temporal context & context history

Not only time of day/season — context history matters. Past data lets you derive new context (sequence of positions → trajectory) and predict context (recurrent trajectory at a time → predict destination).

Two levels of context data ⭐

LevelHow it's obtainedExamples
Low-levelDirectly from sensors, or by simple processing / fusion of raw dataRaw temperature; bandwidth average over a window; "Hot&Humid" if avg temp > 30°C AND humidity > 80%
High-levelDerived by applying AI modelsActivity "cooking a meal" from smart-home sensors; mood from activities + Galvanic Skin Response + face recognition
ThinkLow-level or high-level? "The system detects the user is watching TV by analyzing motion sensor patterns and TV power consumption with a neural network."
High-level. It requires applying an AI model to raw sensor data to infer a semantic activity. (Contrast: simply averaging the temperature would be low-level.)
4

Applications of AmI

🏠

Smart Homes (Domotics)

Activity analysis → automations, ambient assisted living, energy management

Smart Energy

Analyze appliance consumption → suggest strategies, save energy, optimize for smart cities

🏢

Smart Buildings

Security, fire safety, lighting, 24/7 monitoring, HVAC, energy

🚗

Pervasive Transport

Road/car sensors + V2V comms → self-driving, mobility, emission & hazard reduction

❤️

Pervasive Health

Wearables + env sensors → early detection, chronic monitoring, rehab, independent living

🌆

Smart Cities

City-scale integration of all the above

5

Challenges of AI in AmI

⭐ These six challenges connect directly to later lectures and are prime exam material.

1 · Unbalanced data

Human behavior is rarely balanced (e.g., "walking" ≫ "taking stairs"). Consequence: accuracy is misleading — a model predicting only the majority class scores high but is useless. → Use the F1 score.

2 · Labeled data scarcity

Annotating real human data is costly, time-consuming, and intrusive. Unlike computer vision (ImageNet etc.), there are no huge public datasets of real in-home behavior.

3 · Personalization

Models must be tailored to the specific subject/environment — sensor patterns vary a lot between people/homes (unlike CV where pretrained models often transfer). ⚠️ This creates a circular dependency with challenge #2: personalizing needs per-user labels, but labels are scarce.

4 · Continual learning

Behavior & environments drift over time → a model trained once isn't enough. Must update continuously without retraining from scratch. Problem: neural nets suffer catastrophic forgetting of old information.

5 · Privacy

Sensitive data (activities, habits, energy patterns, health) may leak to untrusted cloud services or attackers. Privacy must be designed in from the start.

6 · Resource-constrained devices

Models sometimes must run on phones/microcontrollers (TinyML) instead of the cloud — to reduce latency, work offline, guarantee privacy, and cut costs. Challenge: reduce model complexity while keeping accuracy.

ThinkYour fall-detection model for elderly users hits 98% accuracy on 6 months of data. Should you be satisfied?
No. Falls are rare → the dataset is heavily unbalanced. A model that always predicts "no fall" would also reach ~98%. You must check the F1 score (precision & recall) for the "fall" class.

Final Quiz — Exam Style

Answer all questions. MCQs give instant feedback; open-ended questions reveal model answers. Your MCQ score appears at the bottom.

1
Which statement about a Pervasive System is FALSE?
AIt is a type of distributed system
BIt includes unconventional nodes such as smartphones, sensors, and smart appliances
CIt is static and does not adapt its behavior based on context
DIt exhibits high volatility due to device failures and bandwidth changes
C is false — pervasive systems are adaptive by definition; that's one of their two defining features.
2
According to Anind Dey's definition, what is "context"?
AThe set of environmental sensor readings available at a given time
BAny information that can be used to characterize the situation of an entity relevant to the interaction between a user and an application
CThe history of user interactions stored in the application database
DThe network connectivity status and device capabilities of the IoT system
B — the exact Dey (2001) definition. The others describe only specific types of context, not the general concept.
3
Why is accuracy alone a poor metric for AI models in Ambient Intelligence?
AAmI datasets are always too small to compute accuracy reliably
BHuman behavior data is typically unbalanced, so a model predicting only the majority class can score high while being useless
CAccuracy cannot be computed for time-series sensor data
DDeep learning requires the F1 score by definition
B — unbalanced data makes accuracy misleading; the F1 score is preferred.
4
Which is an example of high-level context?
AThe raw temperature reading of 23.5°C from a sensor
BThe average bandwidth computed over a 10-second window
CThe activity "cooking a meal" inferred by applying an AI model to smart-home sensor data
DThe explicit user preference "heating at 21°C" stored in a profile
C — only this requires an AI model. A and D are directly acquired (low-level); B is simple fusion (low-level).
5
Which statement about Continual Learning in AmI is correct?
AA model trained once at deployment is sufficient because behavior is stable
BThe main challenge is that neural networks tend to forget old information when updated with new data
CIt is only needed when the number of sensors in the home changes
DStatic ML and Adaptive ML produce equivalent results in AmI
Bcatastrophic forgetting is the core problem continual learning must solve.
6
What is the main difference between Domotics and general IoT?
ADomotics uses wireless sensors while IoT uses wired connections
BDomotics specifically applies IoT devices in the home environment to create a smart home
CIoT does not support automations, while Domotics does
DDomotics operates without any AI, while IoT requires AI
B — domotics is simply IoT applied to the home context.
7
Open-ended · Context-Awareness
a) Give the Anind Dey (2001) definition of "context" and explain why early enumeration-based definitions were insufficient.
b) Explain the difference between low-level and high-level context, with one concrete smart-home example of each.
Model answer

a) Dey: "Context is any information that can be used to characterize the situation of an entity (person, place, or object) relevant to the interaction between a user and an application." Early definitions just listed attributes (location, time, surrounding people…). They were rejected because they were not general enough — any new application with different needs would require a new list, making them domain-specific and incomplete.

b) Low-level context comes directly from sensors or simple fusion — e.g., averaging temperature readings to get the room's ambient temperature. High-level context is derived by applying AI models — e.g., inferring the activity "cooking a meal" by combining motion, oven power, and smart-meter data through a classifier.

8
Open-ended · Challenges in AmI
a) Explain the labeled data scarcity challenge. Why is it harder in AmI than in domains like computer vision?
b) Explain the personalization challenge and the circular dependency it creates with labeled data scarcity.
Model answer

a) AmI analyzes data from real users in real environments. Getting labels means recruiting people, monitoring daily life, and manually annotating events — costly, time-consuming, and intrusive. Unlike computer vision, there are no massive public labeled datasets (like ImageNet) of real in-home human behavior, so each new deployment faces scarce labels.

b) Models must be personalized because sensor patterns vary strongly between subjects/environments (one person's "walking" differs from another's). But personalization needs labeled data from that specific user/environment — which is exactly what's scarce. So you need labels to personalize, yet getting per-user labels is the very problem you can't easily solve. Transfer learning and self-supervised learning aim to break this cycle.

0/6
MCQ score 0/6