Skip to main content
To KTH's start page

Experimental Validation and Cross-Building Transfer of Learning-Based Occupancy Detection in KTH Undervisningshuset

Buildings in the European Union account for roughly 30% of total final energy use, and heating, ventilation, and air conditioning (HVAC) systems are among the main drivers of this consumption. HVAC performance strongly depends on occupant presence and behavior, so accurate occupancy information can improve both energy efficiency and indoor comfort.

Background

Buildings in the European Union account for roughly 30% of total final energy use, and heating, ventilation, and air conditioning (HVAC) systems are among the main drivers of this consumption. HVAC performance strongly depends on occupant presence and behavior, so accurate occupancy information can improve both energy efficiency and indoor comfort.

Installed occupancy and people-counting sensors, however, can be affected by missed detections, false detections, accumulated counting errors, crowd movement, sensor placement, calibration drift, clock synchronization issues, and communication failures. Their performance therefore needs to be validated under realistic operating conditions against an independent ground truth.

Undervisningshuset forms Testbed AH within the KTH Live-In Lab. It is an educational building with classrooms, group rooms, and individual study spaces, equipped with extensive sensing of variables such as temperature and carbon dioxide concentration. This infrastructure creates an opportunity to compare manually observed occupancy with the data produced by the building’s installed occupancy-detection or people-counting sensors.

A recent KTH study investigated non-intrusive occupancy detection in residential apartments using environmental sensor data, comparing logistic regression, support vector machines, and an attention-enhanced LSTM network, with models evaluated on apartments not seen during training. Transferring these methods from residential apartments to an educational building represents a more substantial domain shift, since the two settings differ in room volume, ventilation operation, occupancy density, and schedules.

Task description

The student is expected to (i) conduct manual ground-truth occupancy counting in selected spaces of Undervisningshuset, (ii) quantify the accuracy and limitations of the installed occupancy sensors, (iii) prepare a documented dataset suitable for public release and a data article, and (iv) assess whether previously published residential occupancy-detection methods transfer to the educational-building setting – comparing direct transfer with calibration, fine-tuning, full retraining, and, where feasible, domain-adaptation strategies.

The main research questions are:

  • How accurate are the occupancy-detection or people-counting sensors installed in selected areas of Undervisningshuset?

  • Can models trained on residential-building data detect occupancy in an educational building without retraining?

  • Which approach performs best: direct transfer, threshold calibration, fine-tuning, or complete retraining?

Learning outcomes

Upon completion of this thesis, the student will be able to:

  • Design and execute a rigorous manual ground-truth observation protocol for occupancy in real building spaces.

  • Quantitatively evaluate the accuracy and limitations of installed occupancy and people-counting sensors.

  • Prepare and document a public, reusable sensor/occupancy dataset following good data-publication practice, including a draft data article.

  • Apply and critically compare transfer-learning strategies (direct transfer, calibration, fine-tuning, full retraining, and domain adaptation) for machine learning models moved across building domains.

Prerequisites

Background in machine learning, experimental design, statistics, and/or building-energy systems; interest in field measurements; ability to work systematically with time-series sensor data.

Programming languages: Python/MATLAB, and familiarity with building-management-system (BMS) data.

Research Area

Building energy systems, machine learning, energy technology, sustainability in buildings, energy efficiency,

Duration

To be agreed with the supervisors.

How to apply

Please apply by sending the following to Mahsa Farjadnia :

your CV, transcript (Bachelor + Master), a short motivation, including the following: your current Master's programme, your thesis timeline, and what makes you a good candidate, one sentence on which task area above you are most interested in, confirm that you are eligible to register for a degree project (KTH Master requirement is to complete 60 credit points before starting the thesis).

Supervisors/Examiner

Supervisors and contact persons

Mahsa Farjadnia
Mahsa Farjadnia doctoral student
Marco Molinari
Marco Molinari researcher

Examiner

Hatef Madani Larijani
Hatef Madani Larijani professor
Page responsible:Oxana Samoteeva
Belongs to: Energy Technology
Last changed: Sep 24, 2026
Mapping Energy Use and Implementing Energy Efficiency Measures in a Food Processing Facility
Oskarshamn heavy-duty EV charging strategy
Development of Plug-and-Play Building Energy Models Based on Building Archetypes
Dynamic Modelling and Performance Characterization of a Hybrid Energy Storage System in Modelica
Multiphysics study of next-generation receiver designs for solar applications
System Modelling and Performance Assessment of an Integrated Power-to-Methanol Pilot Plant
Heat Exchanger Design for Large-Scale Natural-Refrigerant Heat Pumps in District Heating
Single-Stage, Two-Stage or Cascade? Hydrocarbon Heat Pumps for District Heating
Techno-Economic Assessment of Renewable Energy Integration for Cost-Effective Electrification of the Frit Smelting Process
Measurement and verification framework for a 10 MW steam MVR heat pump
Flexible industrial heat production with high-temperature heat pumps and molten salt storage: experiments, modelling and design
Advanced energy conversion systems for flexible nuclear molten salt reactors in modern electricity grids
Development and Experimental Validation of a Parabolic Trough Solar Collector Laboratory Exercise
Experimental Characterisation and Optimisation of a Steady-State Solar Simulator
Experimental and Techno-Economic Assessment of Catalytic Methane Pyrolysis for Low-Emission Hydrogen Production
Experimental Investigation of Surface Roughness Effects on Methane Pyrolysis and Carbon Deposition in Rocket Cooling Channels
Sustainable Living with Karma: Non-Monetary Demand Response in the KTH Live-In Lab
Benchmarking of Energy Performance in Sports Facilities
Electric Load Forecasting in Sports Facilities using AI / ML
Experimental Investigation and Performance Optimisation of a Vertical Electric Particle Heater for CSP and Thermal Energy Storage
Experimental and CFD Investigation of Airfoil-Inspired Designs for Granular Moving-Bed Electric Heaters
Development and Experimental Validation of Advanced PV Testing and Control Laboratory Methods
Development and Validation of an Automated Battery Laboratory Test Rig
Experimental Validation and Cross-Building Transfer of Learning-Based Occupancy Detection in KTH Undervisningshuset
Techno-Economic Assessment of the Electrification of the Brick Firing Process
Thermo-physical Characterisation of Solid Media and Insulation for Solid-Media Thermal Energy Storage (SMTES) for GeoSUSTAIN project
Analysis of advanced power conversion systems for flexible nuclear energy applications
Battery thermal management system for Electric Vehicles – A CFD based scoping study of various liquid cooling configurations
Real-Time Optimization for Predictive Thermal Management of Electric Vehicles
LCA-based Environmental Impact Assessment of Industrial Decarbonisation Systems via Development of Scalable Life-Cycle Inventory (LCI) Models
Occupancy Detection of a Residential Building using Machine Learning and Integration with IDA ICE on Real-Time
Vill du verkligen göra skillnad? Då är det här projektet för dig!
Energy Mapping and Waste Heat Utilization Potential in Industrial Drying: A Gypsum Board Production Facility
Definition and evaluation of control objectives for predictive thermal management of electric vehicles
Techno-economic analysis of integrated energy systems for spray drying applications
Experimental characterization of a molten salt based thermal energy storage systems for industrial process heating
Design Optimization of Heat Pump Impellers for Sustainable Refrigerants
Experimental study on heat transfer effects of AM printed cooling channels
Influence of Surface Roughness on Methane Pyrolysis Stability in Rocket Cooling Channels
Techno-economic analysis and experimental pre-study of hydrogen production with improved catalytic process
Development of a Comparative Battery Chemistry Test Rig for Charge–Discharge Characterization and Efficiency Analysis
Development and Experimental Validation of a Compact I–V Curve Tracer and PWM/MPPT Load Simulator for PV Systems
Surface Roughness Effects in TPMS Solar Heat Exchangers: Experiments and CFD
CFD and experimental based study of TPMS based heat exchanger for solar applications
Boiling inside rectangular microchannels: Investigating the use of high-speed IR camera for temperature readings
Grid Planning for Sustainable Harbour Electrification in Oskarshamn
Experimental Investigation and Optimisation of Granular Flow Dynamics in Gravity-Driven Moving Bed Electric Heaters for CSP and Energy Storage Applications
Experimental Investigation of a Vertical Electric Heater Concept for Powder Particles in CSP and Energy Storage Applications
Techno-Economic Analysis of Transport Cooling Technologies in the Nordic and European Cold Chain
Evaluation of Temperature-Based Occupancy Detection in Residential Buildings: An Experimental Study in a Lab Environment
Towards Zero-Waste through a Circular Recovery Model – Lessons for Managing Municipal Solid Waste in cities
Predicting Occupant Behavior in Fully Automated Energy Communities
Feasibility study on Component Test Bed for Cryogenic Renewable Fuels (CTB-cryo)
Techno-economic analysis and experimental pre-study of hydrogen production with improved catalytic process
Optimal control of networks of borehole heat exchangers with machine learning
CFD analysis of an air-based waste heat recovery solution for telecommunication base stations
Experimental analysis of waste heat recovery systems for telecommunication base stations
Safe Use of Flammable Refrigerants: Evaluating Refrigerant Leakage Flow Rate in Small Heat Pumps
Development of AI-Based Data-Driven Aging Model for Li-Ion Batteries
Investigations on heat-transfer in a rotating heat-pump
Numerical Simulations of a supersonic multiphase ejector for high-temperature heat-pumps
Development of remotely accessible battery laboratory exercise test rig
CFD based design study of heat exchangers for high temperature heat pump applications.
Biogas production/storage for lessened dependency on oil
Refurbishment Strategy Based on Smart Radiator Controllers
Heat Propagation in High-Temperature Geothermal Wells
Experimental evaluation of advanced features of a modern heat pumping system
Rethinking Capacity Development in Energy Modeling: Integrating Local and Indigenous Knowledge Systems in Transboundary Contexts
Optimizing Waste Treatment Pathways for Sustainable District Heating Development: Integrating Material Flow and District Heating Models in OSeMOSYS
Social Life-cycle impact assessment of innovative cascade PCM based thermal energy storage solutions
Water Demand Forecasting from Multipurpose Reservoirs in Cochabamba, Bolivia, to 2050: A Sustainable Energy Perspective
Electrification of the heating sector in Europe
Safe use of flammable refrigerants-literature review
Safe use of flammable refrigerants-Modeling concentrations of the leaked refrigerants in case of accidental emissions in different scenarios
Characteristics and kinetic study on catalytic and non-catalytic pyrolysis of PVC and wind blades in molten salts via thermogravimetric analysis
Predictive model control design for a small-scale steam engine based multi-source CHP system
Solar hydrogen production by photocatalytic reforming of cellulose with concentrated sunlight
Circularity of batteries
Empowering the Future: Innovating Sustainable Energy with Digital Heat Pump Solutions
Optimizing Energy Performance in Existing Urban Building Stocks: A Comprehensive Analysis and Strategic Approach for Sustainable Operation
Techno-economic and feasibility assessment for nuclear plants combination with CO2 sequestration and green fuels production units
Techno-economic and feasibility assessment for nuclear plants integration in flexible future energy systems for grid balancing and ancillary services
Life-cycle impact assessment of innovative cascade PCM based thermal energy storage solutions
Techno-economic assessment and optimization of seasonal thermal energy storage in district heating networks
Final Commissioning and Experimental Performance Characterization of a Bench-scale Thermochemical Heat Storage System (SEU/SPG)
Renewables and Demand Side Management
Experimental Investigation of Optimal Flow in Borehole Heat Exchanger at KTH Live-in Lab
Low Global Warming Potential Refrigerants for high temperature heat pumps
Comparative analysis of thermal storage options for industrial steam generation in a solar thermal integrated system
Development, Implementation & Evaluation of an optimized operation algorithm for a Li-Ion battery Energy Management System (EMS) at Tezpur University
Smart and Sustainable Oskarshamn: Energy Management and urban system analysis
Modelling the Cost of Lasting Off-Grid Solar Access in Sub-Saharan Africa
Endogenous agricultural and forestry energy technologies in Sweden
Endogenous Swedish transport technology choices, vehicle fleets and energy demand
Endogenous industrial technology transitions, electrification and hydrogen in Sweden
Endogenous modelling of commercial buildings, services and small-scale business energy use
Endogenous modelling of Sweden’s residential building stock, renovation and energy technologies
From Stove Emissions to Real Exposure: Using Mass-Balance Modeling and GIS Air Quality Data in the Open-Source Spatial Clean Cooking assessment tool (OnStove)
Geospatial Identification of Clean Cooking Priority Investment Zones Based on Gendered Health Vulnerability and Demographics
Beyond Household Energy - Spatial Modelling of Institutional Clean Cooking transition
Geospatial Mini-Hydropower Potential Assessments for OnSSET Electrification Planning
Integrating Household Fuel Stacking Dynamics into High-Resolution Spatial Clean Cooking Assessment (OnStove)
InCLEWsIve: increasing Accessibility to the Modelling Process
Political Economy and Agricultural Development: Insights from a Zambian Case Study on Climate Impact and Food Security
Geospatial and Optimization Modeling of Solid Waste Management Options: Environmental, Social, and Energy Assessment
10 MSc Thesis Positions in Energy Systems Modelling with OSeMBE
Energy–Transport System Modelling for ASEAN (dual placement)
Towards Zero-Waste through a Circular Recovery Model – Lessons for Managing Municipal Solid Waste in cities