About this example
This page presents a short literature review on machine learning (ML) for Internet of Things (IoT) security, the kind of review that could open a doctoral chapter or a research proposal. It moves from the architecture of IoT systems, to the ways ML is used to protect them, to the open research challenges, and ends by stating where a new study could contribute. Each part is followed by a "What to notice" note.
The review was first published in 2021. It is a teaching model, not a complete survey; do not reuse its wording in your own work.

The example: introduction
1. Introduction
The Internet of Things connects sensors, actuators and everyday objects to networks so that they can collect and exchange data. Homes, hospitals, farms, factories and cities now rely on such devices for monitoring, control and predictive maintenance. Many devices have little memory and processing power, run firmware that is rarely updated and communicate over several protocols, which makes them attractive targets (Al-Fuqaha et al., 2015). Rule-based defences struggle with this diversity, and ML has been proposed as a way to learn what normal device behaviour looks like and to flag departures from it.
This review asks three questions. Where in an IoT architecture do security threats arise? How has ML been applied to detect them? And which problems remain open for doctoral research?
The example: architecture and attack surface
2. IoT layers and their threats
Surveys commonly describe IoT systems in layers (Al-Fuqaha et al., 2015), and the international reference architecture for IoT gives a standard vocabulary for their components and domains (ISO/IEC, 2024). A three-layer view, with middleware and cloud services between the network and the applications, is enough to locate the main threats (Table 1).
| Layer | Typical components | Example threats | Where ML has been applied |
|---|---|---|---|
| Perception (sensing) | Sensors, actuators, RFID tags, embedded controllers | Physical tampering, spoofed readings, compromised firmware | Detecting implausible sensor values and device faults |
| Network | Bluetooth, Wi-Fi, ZigBee, IEEE 802.15.4, LPWAN, cellular (LTE, 5G), IPv6 gateways | Botnet recruitment, denial of service, traffic interception | Network intrusion and anomaly detection |
| Middleware and cloud | Brokers, device management, storage and analytics services | Account takeover, data breaches, misconfiguration | Access anomaly detection, log analysis |
| Application | Smart home, health, agriculture, industrial and city services | Misuse of personal data, unsafe control actions | Behavioural profiling of users and devices |

The example: machine learning for IoT security
3. Detection with machine learning
Most studies apply ML at the network layer, training classifiers or anomaly detectors on labelled traffic. Purpose-built IoT datasets such as Bot-IoT, which simulates botnet activity in an IoT network (Koroniotis et al., 2019), and ToN_IoT (Booij et al., 2022) have largely replaced older general-purpose datasets. Booij et al. (2022) also show why results are hard to compare: datasets differ in their features and in how they name attack types, and they call for standardisation. Earlier surveys of intrusion detection data make the same point about documentation and realism (Ring et al., 2019).
Where the model runs is a design decision in its own right. Rahman et al. (2020) compare centralised training, training on each device and federated learning, in which devices train locally and share only model updates. Federated learning reduces the movement of raw data and has been widely proposed for IoT intrusion detection (Agrawal et al., 2022). A recent review adds post-quantum cryptography to ML as a second line of IoT protection (Saeed & Alqahtani, 2025).

The example: open research challenges
4.1 Data quality and realism
ML detectors are only as good as their training data. Synthetic or testbed traffic may not match real deployments, augmentation can multiply the same bias, and many published results suffer from sampling bias or evaluation only in the laboratory (Arp et al., 2022). A doctoral study that collects or documents realistic IoT traffic, or tests whether a model trained on one dataset holds on another, addresses a gap that the dataset literature itself identifies (Booij et al., 2022).
4.2 Privacy leakage
IoT data often reveal where people are and what they do. Encryption protects data in transit, but trained models can also leak information about their training data. Nasr et al. (2019) showed that inference attacks can recover information about training records from deep learning models, in both centralised and federated settings, so federated learning is not private by default. Differential privacy offers a formal guarantee of limited disclosure at some cost to accuracy (Dwork & Roth, 2014), and balancing the two on constrained devices remains open.
4.3 Keeping models up to date
Device behaviour and attacks change, so a detector trained once will decay. In malware detection, Pendlebury et al. (2019) showed that evaluations ignoring time inflate performance, and proposed time-aware evaluation. IoT models face the same drift, compounded by devices that rarely receive firmware updates. Continual (lifelong) learning on constrained devices, and safe ways to update models in the field, are open problems.
4.4 Robustness to adaptive attackers
An attacker who knows that an ML detector is in place can try to evade or poison it (Vassilev et al., 2025). Few IoT studies test their detectors against such adversaries, which is a clear opportunity.

Annotations: what was changed and why
- Dated forecasts removed. The device and market forecasts did not hold or could not be traced, so they were taken out rather than updated with unchecked numbers.
- Unsupported claims replaced. A claim that a named smart speaker exposed users' locations had no source; privacy leakage is now illustrated with peer-reviewed evidence (Nasr et al., 2019).
- Federated learning qualified. It is presented as a design option with trade-offs, not as a privacy solution (Rahman et al., 2020; Agrawal et al., 2022).
- Evaluation pitfalls added. Time and sampling biases are now part of the challenges (Pendlebury et al., 2019; Arp et al., 2022).
- Use cases kept in proportion. Industrial examples such as predictive maintenance and precision agriculture motivate the review but are not evidence for it. For running models on the devices themselves, see TinyML for researchers.

How to adapt this to your own review
- State two or three review questions and order the sections to answer them in turn.
- Choose one organising frame, such as architecture layers, and use it consistently in tables and headings.
- For every detection study, record the dataset, how it was split (including by time), the metrics and whether the model was tested on a second dataset.
- Record where each model is trained and run (cloud, edge, device or federated) and what that implies for cost and privacy.
- Date your evidence: say when a study was published and whether newer work has changed its conclusion.
- End each challenge with a candidate research question, then choose the one your data and skills can support.
A worked illustration: a candidate interested in smart-home security might narrow challenge 4.3 to the question "How quickly does a detector trained on one year of smart-home traffic lose accuracy, and does periodic retraining on recent data recover it?" That question names the data, the time dimension and the comparison, and it can be answered within a doctorate (illustrative).
Common mistakes in an IoT security review
- Opening with a market or device forecast that is out of date or untraceable.
- Describing layers and protocols at length without linking them to threats.
- Reporting accuracy figures from different datasets as if they were comparable.
- Treating federated learning or encryption as a complete answer to privacy.
- Ignoring time: testing on data from the same period as training.
- Listing challenges without saying what a study could do about them.
For a second annotated review in ML security, see adversarial attacks on machine-learning classifiers and detectors. For privacy in distributed detection, see privacy and data security in collaborative detection systems; for development methods, development methodologies for IoT-based systems; and for topic ideas, blockchain IoT security dissertation topics. Choosing metrics for your detector is covered in choosing and reporting evaluation metrics in a machine learning dissertation.
Key takeaways
- Locate threats by layer before reviewing defences (Al-Fuqaha et al., 2015; ISO/IEC, 2024).
- IoT intrusion datasets differ in features and labels, so compare results with care (Booij et al., 2022; Koroniotis et al., 2019).
- Where a model is trained is a design decision with privacy and cost trade-offs (Rahman et al., 2020; Agrawal et al., 2022).
- Trained models can leak training data, including under federated learning (Nasr et al., 2019; Dwork & Roth, 2014).
- Time-aware evaluation and adaptive attackers are open challenges worth a doctoral study (Pendlebury et al., 2019; Vassilev et al., 2025).
