arXiv:2610.33737cs.CVOct 2026

Manuscript Offprint

arXiv:2610.33737

A SegFormer-based model for spatial Daylight Factor prediction with comprehensive obstruction encoding and regulatory validation

Stanislava Fedorova, Alejandro Pacheco Diéguez, Christoph Berkmiller, Alberto Floris, Libny Pacheco, Marie-Claude Dubois

Stanislava Fedorova 1^{1}, Alejandro Pacheco Diéguez 1^{1}, Christoph Berkmiller 1^{1}, Alberto Floris 2^{2}, Libny Pacheco 1^{1}, and Marie-Claude Dubois 3^{3}

1^{1} Upskiller (BIMTech Innovations AB), Solna, Sweden

2^{2} Arkion AB, Sweden

3^{3} Department of Architecture and Built Environment, Lund University (LTH), Lund, Sweden

Abstract. Daylight compliance assessment in residential buildings currently requires time-consuming raytracing simulations and specialist model preparation, limiting its integration into iterative architectural design. This paper presents a machine learning-based methodology for predicting the spatial distribution of the Daylight Factor (DF) directly within Building Information Modelling (BIM) environments, delivering results in seconds without model export or manual curation. The approach addresses five gaps not simultaneously covered by any existing model: comprehensive external obstruction encoding including balconies, own building height, variable material reflectances, non-orthogonal room geometries, and explicit regulatory validation. Two models are developed and validated: a default-materials model using fixed reflectances for preliminary design checks, and a custom-materials model with variable project-specific reflectances targeting final design verification. Both are trained on approximately 20,000 synthetic Radiance-simulated rooms and validated against a held-out synthetic dataset and 102 rooms from 18 real building models. The default-materials model achieves δ1=83.4%\delta_1 = 83.4\% and MAE = 0.11% DF on the synthetic dataset, predicting BBR (Swedish) compliance area within 4.85 pp MAE (bias +2.31 pp) and TEK17 (Norwegian) mean room DF within 0.304% DF MAE (bias +0.287% DF) on real buildings. The custom-materials variant shows 1.7–2.4× higher error across all metrics and requires further development before production use. Both models are deliberately designed to concentrate accuracy in the BBR compliance-critical zone (DF < 1%), achieving a sub-1% DF MAE of 0.105% DF and Compliance IoU of 0.883 on real-world buildings. All cases where the model overestimates compliance are genuinely borderline, within 10.7 pp of the BBR threshold (median 3.2 pp) and 0.36% DF of the TEK17 threshold (median 0.10% DF). The default-materials model is recommended as a replacement for preliminary daylight simulations; the custom-materials variant needs to be further developed before it can be used for final compliance verification.

1 Introduction

The importance of daylighting for humans has been demonstrated by decades of research [1, 2, 3], leading to its integration into building regulations and environmental certification systems. In Sweden, the Building Regulations (BBR, BFS 2024:8) require that dwellings achieve a Daylight Factor (DF) of at least 1.0% over a minimum of 50% of assessed floor area of all habitable rooms [4]; in Norway, TEK17 requires a mean room DF of at least 2.0% [5]. Both regulations also accept simplified assessment methods — the AF-method (fönsterglasandelen, referenced in SS 91 42 01) in Sweden, and a 45° obstruction angle rule in Norway — each accepted within a defined scope but with documented accuracy limitations (Section 5.3). These frameworks are under pressure from broader regulation reforms aimed at reducing construction costs and increasing housing supply — making it particularly important to demonstrate that compliance can be verified efficiently, without the time and cost burdens that have historically driven arguments for deregulation.

Current daylight compliance workflows involve three distinct simulation stages. At the urban massing stage, the Vertical Sky Component (VSC) is used to assess whether light incident on windows is likely to be sufficient [6, 7]. While useful early on, VSC does not guarantee DF compliance since it ignores window size, position, glazing transmittance, room dimensions and reflectance [8]. This is followed by preliminary DF simulations with default material assumptions, and finally by detailed simulations with project-specific materials prior to building permit application. Several studies confirm that material reflectance can introduce errors of 10–30% in DF predictions [9, 10], though for typical interior surfaces the practical range is constrained: walls and ceilings are almost always near-white, floor reflectances are stable across projects, and glazing light transmittance (LT) can be treated as a simple linear scalar adjustment.

The main bottleneck is not simulation speed alone, but decision speed: how quickly a design change can be validated and a non-compliance identified. Radiance, the reference engine for regulatory compliance, achieves bias below 15% against physical measurements [11, 12] but requires minutes to hours per simulation. Model preparation — exporting the BIM model, simplifying geometry, assigning materials, and curating the result — can take several hours of specialist work per building. Recent tools accelerate computation (ClimateStudio [13] via progressive path-tracing with AI denoising; Cyclops [14] via GPU acceleration), but neither eliminates the model preparation bottleneck.

Machine learning (ML) offers a third approach: encoding a limited set of architectural parameters to train predictive models that deliver results in real time without model export. The aim of this study is to develop and validate such a model operating directly within BIM environments, and to assess whether its accuracy is sufficient to support reliable compliance checks throughout the design process.

Two predictive models were developed: one with fixed default material reflectances (for preliminary design checks) and one with variable project-specific reflectances (targeting final compliance verification). The main research questions are: (1) To what extent can predictive ML models replicate the accuracy of raytracing simulations for DF assessment across diverse real-world architectural configurations? (2) Are the models sufficiently accurate to support reliable preliminary or final compliance verification?