Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Data Collection for Building Management System Network Traffic and Machine Learning Based Anomaly Detection
Luleå University of Technology, Department of Computer Science, Electrical and Space Engineering.
2026 (English)Independent thesis Advanced level (degree of Master (One Year)), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Abstract

Building Management Systems (BMS) are essential for modern smart buildings, managing services such as HVAC, lighting, and access control. However, their reliance on open communication protocols like BACnet makes them vulnerable to faults and cyberattacks. Detecting anomalies in BMS traffic is therefore important for maintaining both security and reliability.

This thesis investigates the use of machine learning, specifically the Isolation Forest algorithm, for anomaly detection in BMS network traffic. Five weeks of real traffic data were collected from a live BMS using a Raspberry Pi configured as a passive sniffer. The captured pcap files were converted into CSV format, with features such as IP addresses, protocols, and packet lengths extracted for analysis. Isolation Forest was then trained and tested under four time-window configurations (1h, 6h, 24h, 7d) to evaluate how temporal granularity influences detection outcomes.

The results show that the algorithm successfully modeled the stable and repetitive baseline of BMS communication. Shorter windows identified more fluctuations, demonstrating higher sensitivity, while longer windows produced highly stable baselines but flagged few or no anomalies. No anomalies were strongly associated with specific protocols, and the overall traffic composition remained consistent across the dataset.

The findings highlight that even in the absence of labeled data, unsupervised learning can provide valuable insights into BMS traffic. While anomalies were limited in this case, the study demonstrates the potential of Isolation Forest as a lightweight baseline tool for anomaly detection, and it underlines the trade-off between sensitivity and stability in configuring such systems.

Place, publisher, year, edition, pages
2026. , p. 41
Keywords [en]
Data, Data Collection, Building Management System, Machine Learning
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:ltu:diva-116725OAI: oai:DiVA.org:ltu-116725DiVA, id: diva2:2045819
Educational program
Master Programme in Data Science
Supervisors
Examiners
Available from: 2026-04-07 Created: 2026-03-13 Last updated: 2026-04-07Bibliographically approved

Open Access in DiVA

fulltext(1160 kB)19 downloads
File information
File name FULLTEXT02.pdfFile size 1160 kBChecksum SHA-512
397fcc4ba10403f460694739751ac6fc1cebf19b8fd476daffb63bd2745bcb52502d23291e854df3298d5c67ddcec3a21692b6dd9afd85611bbb6c8d09a12e4a
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Habte-Medhanie, Daniel
By organisation
Department of Computer Science, Electrical and Space Engineering
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 19 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 80 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf