Digitala Vetenskapliga Arkivet

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
Anomaly detection using machine learning inbuilding management system: A district heating usecase
Luleå University of Technology, Department of Computer Science, Electrical and Space Engineering.
2025 (English)Independent thesis Basic level (university diploma), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Cybersecurity is becoming increasingly important as the number of IoT devices andthe adoption of Building Management Systems (BMS) in modern buildings continues to grow. Monitoring smart buildings of the future is becoming increasingly critical and BMS depends on making accurate decisions based on sensor data. This thesis investigates anomaly detection in a district heating system with a focus on set temperature that is strongly infuenced by the outside temperature. We evaluate two machine learning methods Long Short-Term Memory (LSTM) neural networks and Isolation Forest using real world BMS data from a school building in Piteå, Sweden. Performance is measured in terms of recall, precision, F1 score and computational requirements. The LSTM models employs a sliding-window approach with varied window lengths and both single-layer and stacked architectures, while the Isolation Forests model varies in tree count and contamination levels. In real-world systems such as district heating, anomalies are rare by nature. To support model evaluation synthetic anomalies are often introduced using diferent methods. In this work, anomalies were injected based on localized statistical deviations. The stacked LSTM achieved the best balance between precision, recall and system resources. LSTM detected correctly 95 of 211 anomalies with an average deviation of 1.31°C. Resource results reveal that sliding-window size and LSTM depth substantially impact memory and inference latency, highlighting trade-ofs for real-time deployment. The fndings of this study could support the implementation of real-time anomaly detection in district heating systems, improving operational efciency and security, thus enabling building managers and operators to take timely actions.

Place, publisher, year, edition, pages
2025. , p. 64
Keywords [en]
BMS, Building Management System, Building Automation Systemm IoT, ML
Keywords [sv]
AI, datavetenskap
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:ltu:diva-115223OAI: oai:DiVA.org:ltu-115223DiVA, id: diva2:2008756
Educational program
Computer Engineering, bachelor's level
Examiners
Available from: 2025-11-09 Created: 2025-10-23 Last updated: 2025-11-09Bibliographically approved

Open Access in DiVA

fulltext(4398 kB)69 downloads
File information
File name FULLTEXT02.pdfFile size 4398 kBChecksum SHA-512
2c1c8de894e71f89b4b618708a44d0d7462240ba031d6713f73826fb94aeb197376e1c76a3a4f3635f172b3e16dc3031449b1c0c5a8af1fa5ee5ee7d6ccfc1bd
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Olsson, Mattias
By organisation
Department of Computer Science, Electrical and Space Engineering
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 70 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: 106 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