Skip to main content
To KTH's start page

Occupancy Detection of a Residential Building using Machine Learning and Integration with IDA ICE on Real-Time

Objective

This thesis develops a machine-learning approach to forecast occupancy in a residential building and integrates the resulting predictions into IDA-ICE, an indoor climate simulation tool, so that energy consumption and other building-related estimates are driven by the predicted occupancy profiles.

Background

Given that approximately 70% of Sweden’s building stock is residential, these buildings present strong potential for energy savings. Occupancy-aware recommendations are pivotal, yet challenging, because occupancy patterns are both individualized and time-varying. Leveraging environmental sensor data, machine learning and AI techniques can learn to predict apartment-level occupancy at specific time instants. Integrating these predictions into building-simulation platforms aligns energy-consumption forecasts with actual use, supporting more informed planning and operational decisions by building owners. Software platforms such as IDA-ICE enable co-simulation: a Python program predicts occupancy in real time and supplies these values as inputs to IDA-ICE, which simultaneously computes the resulting energy consumption.

Figure 1. KTH Live-In Lab

Task description

The tasks in the thesis include a literature review on co-simulation and occupancy prediction. This is followed by analysing and processing the data from a residential building (KTH Live-In Lab) and using it to train a machine learning model (LSTM, random Forest or RNN) to forecast occupancy on a day-ahead and a week-ahead basis. This program needs to be integrated with an IDA-ICE model of the building for co-simulation. The python program should also implement a real-time clock to synchronize the co-simulation. Compare and contrast energy and other estimates from IDA-ICE with and without co-simulation.

Figure 2 Co-simulation with IDA-ICE
Figure 2. Co-simulation with IDA-ICE

Learning outcomes

  1. Modelling: Train, tune, and evaluate ML models that predict apartment-level occupancy from environmental sensor data using robust time-series validation.

  2. Integration: Implement a co-simulation workflow that feeds predicted occupancy into IDA-ICE with correct time steps, units, and fault-tolerant I/O.

  3. Analysis: Quantify how predicted vs. default occupancy affects IDA-ICE energy outputs (e.g., heating, cooling, and ventilation) and assess sensitivity to prediction errors.

  4. Ethics & Reproducibility: Demonstrate GDPR-aware data handling and deliver a reproducible pipeline with documented assumptions, configurations, and code.

Prerequisites

  • Python programming

  • Basic knowledge of IDA-ICE (recommended)

Research Area

  • Energy efficiency

  • Digitalization

  • Machine Learning

  • Sustainability in buildings

Duration

The thesis is expected to begin in January 2026 and go on for 6 months.

How to apply

Interested candidates can send an email with a cover letter motivating their interest and approach on the thesis along with a CV to Supriya Mini Soman (contact below)  

Supervisor/Examiner

Supriya Mini Soman
Supriya Mini Soman doctoral student
Farzin Golzar
Farzin Golzar assistant professor
  • Examiner: Farzin Golzar (fargo@kth.se)
Page responsible:Oxana Samoteeva
Belongs to: Energy Technology
Last changed: Nov 13, 2025
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
Techno-economic evaluation: Industrial waste heat export using heat pumps
Experimental characterization of a molten salt based thermal energy storage systems for industrial process heating
Quantifying Energy Recovery Potential from Organic Food Waste in Food Processing Facilities
Mapping Energy Use and Implementing Energy Efficiency Measures in a Food Processing Facility
2D CFD investigation of diagonal flow and thermal stratification in a packed-bed PCM thermal storage tank
Smart Sharing: Optimizing Borehole Use Between a Supermarket and Residential Building
Design Optimization of Heat Pump Impellers for Sustainable Refrigerants
Experimental study on heat transfer effects of AM printed cooling channels
Experimental and numerical study on surface roughness on external surfaces by AM printed blades
Influence of Surface Roughness on Methane Pyrolysis Stability in Rocket Cooling Channels
Energy use optimization of vertical farming systems
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
Battery and Electric Vehicle Integration for Peak Power Reduction in Aging Ground Source Heat Pump Systems
Life Cycle Environmental Assessment of Renovation Strategies for Aging Ground Source Heat Pump 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
Energy Storage Technologies in Buildings and District Energy Systems for Flexible Sector Coupling (FSC)
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
Design and Techno-economic Analysis of a Cold Storage for an innovative Cooling System from IceHeart AB
Quantifying the economic value of electric heating to buildings when coupled with District heating
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
Sodium-Ion Batteries: Building the Foundation for a Greener Future via Life-Cycle Assessment and Techno-Economic modelling
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
Battery application in harbour environment
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
Eyes on the Ground: Giving Energy Access Policymakers the Right Tools to Enact Change
Are RBF programs delivering on the promise of Universal Energy Access?
Energy–Transport System Modelling for ASEAN (dual placement)
Towards Zero-Waste through a Circular Recovery Model – Lessons for Managing Municipal Solid Waste in cities
EPIC Africa CLEWs assessment supporting Burkina Faso’s development plans
Accounting for affordability constrains in geospatial modelling of clean cooking access
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