Next Article in Journal
Micro- and Nanoplastics in Agri-Food Systems: Sources, Fate and Food Safety Implications
Next Article in Special Issue
State of the Art: Building-Integrated Photovoltaic (BIPV) Products
Previous Article in Journal
Towards Acousto-Ultrasonic Inspection of Cables Within Their Anchor Bases for Suspension Bridges
Previous Article in Special Issue
Implications of Electrifying Industrial Heat on the Irish Electricity Grid
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

MOBAPY: Modelling Household Adaptation to Summer Heat in Urban Environments Using Agent-Based Simulation

by
Mathilde Hostein
1,2,*,†,
Bassam Moujalled
1 and
Marjorie Musy
1
1
BPE Research Team, Cerema, 38080 L’Isle d’Abeau, France
2
LTDS, UMR 5513, Univ. Lyon, ENTPE, Ecole Centrale de Lyon, CNRS, 69518 Vaulx-en-Velin, France
*
Author to whom correspondence should be addressed.
Current address: Centre Scientifique et Technique du Bâtiment, 38400 Saint-Martin-d’Hères, France.
Appl. Sci. 2026, 16(15), 7742; https://doi.org/10.3390/app16157742
Submission received: 3 June 2026 / Revised: 17 July 2026 / Accepted: 24 July 2026 / Published: 4 August 2026

Abstract

With heatwaves becoming increasingly frequent and intense in recent years, summer comfort is now a major issue for the design of low-energy buildings. Currently, most French homes are not equipped with air conditioning. To prevent the widespread adoption of this energy-intensive equipment while limiting indoor thermal discomfort during heatwaves, it is crucial to accurately design and assess climate adaptation measures. Occupants actively employ various strategies to limit overheating inside their dwellings, adapting their actions on the specific constraints they face. However, they are still frequently treated as passive entities in building performance simulations. This paper introduces an agent-based model, MOBAPY, developed to simulate the summer adaptive behaviour of households in urban dwellings. Grounded in qualitative data derived from semi-structured interviews, the model integrates commonly reported actions for one occupant profile, including the operation of windows, solar shading devices, air conditioning, and fans, alongside clothing adjustments. MOBAPY is applied to one case study: an urban dwelling, simulated under multiple climate scenarios and varying behavioural constraints within a building energy modelling framework. The results highlight the significant impact of occupant behaviour on summer comfort results for this occupant profile in a well-insulated dwelling. Notably, under the most severe future climate scenario, the percentage of uncomfortable occupied time drops to 20% when behaviour is unconstrained, whereas it surges to 68% under highly constrained conditions.

1. Introduction

With climate change, extreme events such as heatwaves are expected to become more intense and more frequent. This will lead to an increased risk of overheating in both new and existing residential buildings, particularly in urban environments due to the urban heat island effect [1]. This risk can be reduced without relying on energy-intensive cooling systems, through passive cooling strategies such as solar shading and natural ventilation via window opening. However, the effectiveness of these strategies is strongly influenced by occupant behaviour (e.g., use of windows and shading devices) and the immediate environmental context.
Occupant behaviour (OB) significantly influences both the indoor environment and the energy consumption of buildings, through actions involving windows, solar shading, fans, thermostats and other devices [2]. It remains a major source of uncertainty in building performance simulation (BPS), mainly due to oversimplified assumptions [3]. In addition to emitting metabolic heat and pollutants due to their presence [4], occupants interact with their indoor environment to meet their needs and maintain comfort. However, in the building design process, occupants are still too often considered as passive elements, with limited consideration given to their adaptive behaviours in BPS [5]. The assessment of indoor comfort using a BPS should also be performed carefully by modellers. Indeed, thermal comfort indicators may not accurately reflect the variability of conditions within a space (spatial definition). This problem is exacerbated near glazed surfaces, due to simplified approaches used to determine the mean radiant temperature [6].
In order to simulate building performance while accounting for OB, it is necessary to model these behaviours and integrate them into BPS tools. Developing realistic OB models requires collecting data on occupant behaviour [7], through in situ measurements, laboratory experiments, surveys or even virtual reality studies [8]. Based on the quantitative or qualitative data collected, different types of models can be developed. These models are generally grouped into four categories: schedule-based and deterministic models, stochastic models, data-driven models and agent-based models (ABMs) [9].
Schedule-based and deterministic models are often considered too simple to represent the complexity of human behaviour. Stochastic and data-driven models rely solely on measurements without accounting for the reasons behind the behaviours. As a result, they are applicable only to the context in which the data was collected.
ABMs allow the behaviour of individual agents to be taken into account dynamically. An ABM consists of three key elements [10]: agents (autonomous entities with their own state), a topology (a set of rules governing relationships between agents) and an environment (in which agents interact with each other). ABMs are time-dependent [11], allowing the modelling of dynamic behaviour. Each agent reacts according to its perception of its environment and evolves within it [12] according to its own behavioural rules [13]. As they operate in a shared environment [14], agents may face constraints in their actions due to the presence of other agents with potentially conflicting needs. Agents can also be non-human, such as buildings [15].
ABMs offer multiple advantages: interactions between agents and with their environment can be explicitly represented; learning processes can be modelled; agent heterogeneity can be introduced; modelling is flexible; and the system represented can be complex and dynamic [12]. Many factors influencing occupant behaviour, including psychological or sociological dimensions, can also be taken into account [3].
The limitations of agent-based modelling are primarily related to its complexity, which stems from the complexity of the system being modelled, involving heterogeneous agents interacting dynamically within a variable environment. Simulation runtimes are often long, and a solid understanding of ABM principles is required [3]. Moreover, the model requires a large amount of input data [4], and assumptions must often be based on either observations or decision theories [13]. Coupling or communication with BPS tools can also be challenging, as it needs to be tailored to each simulation environment [3]. Table 1 summarizes the studies that have coupled ABMs and BPS, indicating the occupant actions modelled and the coupling method used.
Several agent-based models have been developed for building application using programming languages such as Matlab [17,18,19] or Python [16]. More general ABM platforms have also been applied to the building sector, including Repast [10,27], PMFserv [25,26,32], NetLogo [22,23,24,33] and BRAHMS [28,29]. Additionally, several ABM platforms have been developed specifically for building applications, such as Occupancy Simulator [14], SMACH [30,31], No-Mass [20,21], BOT-ABM [11], AdOCC [17], Li-BIM [34] or HABIT [18].
Considering the impact of occupants’ behaviour on the indoor environment requires the integration of human activities into physics simulations. This is particularly complex as it first requires collecting data and to integrate it in a realistic way. Data collection and OB modelling requires an interdisciplinary collaboration between social sciences and building physics. Approaches from the human and social sciences are valuable for OB modelling: there are quantitative approaches with psychological and economic theories where behaviours are based on rational logic and planning [35], as well as qualitative approaches in sociology, geography and anthropology [36,37,38]. This raises the question of how to incorporate occupants’ statements (qualitative data) into BPS (quantitative models).
Several studies have proposed agent-based models for buildings, primarily addressing energy consumption. However, they often neglect occupants’ thermal management strategies during hot periods, and the constraints they have to deal with. In summer, occupants can adopt various behavioural strategies to cope with high temperatures. They may operate windows, adjustable solar shading, fans or air conditioning. They may also adjust their clothing or activities, reduce the use of heat-generating appliances, or move within or outside the dwelling [36,39,40]. However, their behaviour may be constrained by internal or external factors, particularly in urban contexts [40,41], where thermal comfort may come into conflict with other needs. Therefore, a specific model is needed for the summer, when occupant behaviour has a very significant impact on the indoor environment. This study aims to address the gaps identified in the literature: modelling OB during the summer period, taking into account the constraints that urban households may face.
This study aims to understand and model the adaptive behaviour of occupants in urban dwellings during summer, using an agent-based approach, in order to assess the contribution of such modelling to the evaluation of building energy performance and the impact of OB representation on summer comfort. This is a first step toward incorporating occupant behaviour into BPS. The model presented therefore proposes a methodology for modelling adaptive actions within the context of a single case study, which is intended to be further developed with future studies. We begin by presenting the development of an ABM, based on eight semi-structured interviews with households, along with the coupling procedure with a TRNSYS simulation environment for the thermo-aeraulic modelling of dwellings. We then illustrate the relevance of representing the dynamics of occupant adaptive behaviour in BPS through a case study of a retrofitted dwelling.

2. Materials and Methods

To understand the adaptive behaviour of occupants in urban dwellings during summer, a qualitative approach was adopted. Semi-structured interviews were conducted with eight households living in apartments located in the city of Lyon, in south-eastern France, during the summer of 2023. Even if a sample size of eight is small for a statistical analysis, this number was deliberately chosen to allow an in-depth understanding. Conducting the interviews directly inside the dwellings, combined with observations made during the visits, made it possible to deeply explore the specific context, the physical constraints, and the real motivations behind the occupants’ actions.
The households were generally composed of young adults, with at least one working member in each. The eight dwellings are located in different multi-family buildings in urban settings. All of them are equipped with natural cross-ventilation through windows, external solar shading devices, and fans. In addition, two dwellings are equipped with fixed air conditioning systems.
The analysis of these interviews highlights the adaptive strategies implemented during summer, as well as the constraints limiting occupant actions. These findings serve as the basis for the conceptual framework of the agent-based model and the definition of behavioural rules for adaptive actions. Further details on the methodology and results of the semi-structured interviews can be found in Hostein et al. [42].

2.1. Conceptualization of the Behaviour Model

The analysis of semi-structured interviews revealed how occupants behave to cope with the heat in their homes during summer [42]. In total, ten heat adaptation measures were identified among which five main strategies consistently used by the households surveyed were selected to build the model. Eleven constraints that limit the implementation of these measures were also identified. This section briefly describes the relevant adaptation behaviours and constraints that have been translated into occupant behaviour (OB) rules for integration into a BPS environment.
Almost all households reported using cross-ventilation through windows for night-time cooling and during the morning and evening, when outdoor temperatures are lower than indoors. Notably, five out of eight households are equipped with thermometers to monitor indoor air temperature, and occupants operate windows based on indoor readings and outdoor temperature forecasts. External solar shading is closed during the day depending on solar exposure on each façade. Fans are used to increase air movement when occupants feel hot during the day, and sometimes at night. Two households occasionally use air conditioning when they feel very hot. In seven out of eight households, occupants reported adjusting their clothing to cope with the heat, typically by wearing lighter and less covering garments indoors during summer, distinct from the outfits worn outside the home. These results are consistent with heat adaptive actions documented in the literature [36,40], including those reported by Hellwig et al. [39], which reinforces the relevance of the behaviours observed in this urban context.
The constraints limiting these adaptive behaviours are primarily linked to the urban outdoor environment. In addition to weather conditions (e.g., wind, rain), factors such as outdoor noise, air pollution, mosquitoes, natural light, insecurity issues and lack of privacy (e.g., direct views from neighbouring buildings) can restrict the use of windows and/or solar shading. Two additional constraints were identified inside the home: equipment noise and other occupants.
To realistically model these behaviours for integration into BPS tools, it is necessary to translate the qualitative interview data into behavioural rules that can be implemented in a numerical model. The resulting model, called MOBAPY (Modelling Occupant Behaviour using an Agent-based approach with PYthon) developed in Python 3.10.2, is presented in the following section.

2.1.1. Conceptual Framework of the MOBAPY ABM

Among existing theories to explain and model occupant behaviour, we adopted the DNAS framework proposed by Hong et al. [43] in 2015, which aims to standardize occupant behaviour models in relation to building energy use. This framework is organized around four key concepts: Drivers—Needs—Actions—Systems. Occupants react to influencing factors (Drivers) to meet their needs (Needs) by taking specific actions (Actions) involving building equipment (Systems). Figure 1 illustrates how the DNAS framework is implemented in the MOBAPY model.
Drivers are the factors that influence occupant behaviour. In this model, they are grouped into three categories: physical variables, fixed context and time. Physical variables refer to environmental inputs that change during the simulation. These include indoor environmental variables provided by the thermo-aeraulic model and outdoor conditions obtained from the weather file. Fixed context refers to information defined prior to the simulation, and kept constant throughout. It includes contextual data related to the household, the dwelling and the urban environment. Each agent represents an occupant belonging to a household, living in a specific dwelling, and located within a defined urban setting. Time evolves at each simulation step, and includes the hour of the day and the day of the week. The month of the year is not considered, as this model focuses exclusively on summer conditions.
Needs are the expectations that occupants seek to satisfy. In this model, they are divided into two categories: constraints and thermal comfort. In the original DNAS framework proposed by Hong et al. [43], needs encompass physical, biological and comfort-related expectations, as well as non-physical needs. In MOBAPY, non-physical, physiological, visual, acoustic and indoor air quality needs are integrated in a simplified form through the notion of constraints. These constraints represent restrictions imposed by the environmental context, equipment availability, or the presence of other agents within the dwelling. They also include personal constraints, such as the occupant’s activity schedule. The thermal comfort component aims to translate personal and physical environmental variables into a thermal sensation. The latter is assessed using the Physiological Equivalent Temperature (PET) index [44].
The choice of PET is supported by the results of a field measurement campaign performed by Hostein [45], which showed good agreement between perceived thermal sensation and PET predictions. It should be noted that this study involved a limited number of participants. It is a preliminary study that does not demonstrate the superiority of PET over other thermal comfort indicators. The adoption of the PET index in MOBAPY should currently be regarded as an experimental approach.
PET is based on the MEMI (Munich Energy-balance Model for Individuals). PET is equivalent to the air temperature at which, in a typical indoor environment (light wind of 0.1 m/s and mean radiant temperature equal to air temperature), the heat balance of the human body is maintained with core and skin temperatures equal to those under the conditions being assessed [46]. The model is based on a two-node model of the human thermoregulation model. The original code [44,47] was recently revised and made available in its entirety [46]. PET is primarily used to evaluate outdoor conditions [48], but has also been applied indoors, as it is valid for both types of environments [49,50,51,52,53,54]. These references are limited and are discussed in Section 4 along with the limitations of PET for this study.
To evaluate thermal sensation, a scale linking PET values to the standard ASHRAE categories must be used. The thresholds used for MOBAPY are derived from a study based on outdoor responses collected in a Mediterranean climate [55]. This scale was compared to a more traditional one based on European responses [56] in our previous field measurement campaign [45].
Actions are the means by which occupants interact with their environment to satisfy their needs. In Hong et al. [43], an action can take the form of an interaction with a system, a movement, an inaction or a complaint. In MOBAPY, actions are categorized into three types: inaction, reaction and anticipation. At each time step, the occupant decides whether to act, based on their thermal comfort. If discomfort is detected, the occupant reacts by interacting with the available systems. Only one action is taken at a time, but another action may be performed the next time step. Inaction occurs when the occupant is already in a comfortable state, or cannot act (e.g., if they are absent, asleep or if all available adaptation solutions are already in place). Finally, anticipation is implemented in the model only in specific situations: when the occupant wakes up, goes to bed, or moves to or from a room. This is based on observations showing that some actions are more frequently performed when entering or leaving a room than when remaining in it (opening/closing windows, turning on/off lights) [43].
Systems are the equipment, mechanisms or measures with which an occupant may interact to restore comfort or satisfaction with their environment [43]. In this model, all heat adaptation solutions are included under the notion of systems, which are divided into two categories: dwelling equipment, the use of which impacts the indoor environment (e.g., windows, solar shading, and air conditioning); and personal solutions that have no direct impact on other occupants (e.g., fans and clothing adjustments). The new state of the former is transmitted to the thermo-aeraulic model, while the latter is only considered in the thermal comfort calculation at the following time step.

2.1.2. Rules of Conduct

As all surveyed households present homogeneous sociodemographic background and reported similar behaviours, only one occupant profile is considered in this first version of MOBAPY. The rules of conduct implemented in MOBAPY are detailed in Appendix A. They are illustrated here through a commented diagram: Figure 2 presents the rules governing an occupant’s reaction to hot discomfort.
The occupant reacts differently to hot and cold thermal discomfort. If the agent is too hot (PET > 26 °C), they first consider adjusting the state of the window(s) in the room they are currently in. The process begins by checking whether a window is present. In this case, if the window is open and it is hotter outside than inside, the occupant closes it. If the window is closed, they check for any constraints that may prevent opening it: the outdoor temperature must be lower than the indoor temperature, and there must be no noise, mosquitoes, pollution or odours. If opening the window is not possible, the occupant then considers modifying the state of solar shading using a similar logic, taking into account direct solar radiation. If the above actions are not available, or have already been implemented and the discomfort persists in the next time step, they then consider adjusting their clothing (in 0.1 clo increments) up to a certain value (underwear or tank top depending on constraints), followed by activating the fan, and, as a last resort, using air conditioning. A hierarchy is applied to manage potential conflicts when multiple agents (i.e., occupants) disagree on actions at a given time step.
Fans are modelled as mobile agents with three power levels. They only influence perceived comfort in MOBAPY, and not sensible heat gains and electricity use. The resulting air speed is based on the Givoni diagram zones: 0, 0.5, 1 and 1.5 m/s. Fans can be moved between rooms when requested by an occupant. The default behaviour is to start with the lowest power setting and progressively increase the level at subsequent time steps if discomfort persists. When the number of fans is limited, the occupant who turned on the fan retains exclusive control over it until it is turned off. However, other occupants may benefit from the elevated air speed if they are in the same room.
Finally, agents only activate the air conditioning if their PET exceeds 28 °C, reflecting the behaviour reported by interviewed occupants in dwellings equipped with AC, who stated they only used it (set at 27 °C) when they felt sufficiently hot. AC is turned off as soon as PET falls below 26 °C, corresponding to a neutral thermal sensation. Other rules of conduct—such as responses to cold or anticipatory actions based on the time of day—are detailed in Appendix A.

2.2. Integration of MOBAPY into a Coupled Simulation Approach

2.2.1. Technical Implementation of MOBAPY in Python

MOBAPY has been developed in Python for several reasons: the widespread use and popularity of the language, the availability of numerous libraries, online support, its object-oriented programming capabilities, and the existence of several TRNSYS types that allow for coupling with Python scripts (and more generally its ease of integration with various BPS tools).
Several agent-based libraries are available in Python, including Mesa [57,58], AgentPy [59], and Melodie [60]. AgentPy (ap) was chosen for this work due to its Python-native development, ease of use, ability to simulate network-based environments, and well-documented framework with example code [61]. MOBAPY was thus developed using an object-oriented programming approach. Its UML class diagram is provided in Appendix A. The System and Occupant classes inherit from the Agent class in the AgentPy library. The ResidentialModel, Dwelling and Room classes inherit respectively from the Model, Network and AgentNode classes of AgentPy. These class attributes are used to update environmental variables based on the outputs of the dwelling’s thermo-aeraulic model, and to define the behavioural rules governing occupant conduct.
At each simulation time step, the Python code executes four processes corresponding to the DNAS framework: updating the Drivers, calculating the Needs of each occupant, determining Actions, and updating the state of Systems. In the first step, occupants are assigned to rooms according to the occupancy schedule and the environmental variables for each room are updated. The second step consists of checking the relevant constraints and calculating the thermal sensation using the PET index, computed with the pythermalcomfort package [62]. If, in step 3, occupants decide to take action, the corresponding system states are updated in step 4.

2.2.2. Constraints

As indicated above, occupants may be subject to constraints that compromise their ability to maintain thermal comfort (Figure 1). In MOBAPY, ten types of constraints are implemented (Table 2). These constraints are binary in nature. Prior to each simulation, the constraints to which agents are exposed must be specified. A given configuration corresponds to a specific combination of these constraint settings. Each agent represents an occupant living in a dwelling situated within a specific environment. Accordingly, constraints may relate to the occupant (e.g., need for privacy), the dwelling (e.g., equipment availability), or the external environment (e.g., noise, pollution).
We consider pollution caused by road traffic emissions during rush hour. During these times, occupants cannot open their windows from 7 a.m. to 10 a.m. and from 4 p.m. to 7 p.m. on weekdays [63]. If the occupants consider that there are mosquitoes in the surrounding area, they cannot open the windows from 5 p.m. to 10 p.m. every day, which corresponds to the peak activity period of the tiger mosquito [64]. We consider a constant noise nuisance, which therefore prevents night-time cooling. The other constraints are also constant. Occupants may be visible to neighbours inside their home (vis-a-vis). In that case, they will not be able to wear extremely light clothing if the solar protections are open. If they feel unsafe (insecurity), occupants will not be able to leave both a window and its solar protections open when leaving a room.

2.2.3. Interoperability with BPS

To simulate the dynamic thermo-aeraulic behaviour of a dwelling and the thermal comfort of its occupants during summer, while accounting for both the immediate external environment under different climatic scenarios and the interactions with occupants, MOBAPY must be coupled with other tools. The TRNSYS simulation environment was chosen, in combination with CONTAM, to model the thermal and airflow dynamics. Figure 3 presents the interoperability diagram between the different components (tools, input and output files) involved in this coupled approach.
This figure illustrates the feedback loop between the occupants and their environment, capturing the dynamic nature of behaviour over time. A time step of 10 min is used as a compromise between computational cost and the resolution required to capture the dynamics of thermal and aeraulic variables. Each simulation is configured with input information on occupant constraints and a meteorological file.
Each component is modelled by a ‘Type’ from the TRNSYS library. Type 15 reads weather data from EPW-format files. Type 56 simulates the hygrothermal behaviour of a multi-zone building. Mean radiant temperature used in PET is the weighted mean surface temperature of each zone, a method shown to exhibit lower errors than the zone-averaged approach, particularly near glazed surfaces [65]. It is coupled with Type 98, which computes the aeraulic behaviour of the multi-zone building using CONTAM. Type 3157 enables the coupling with the MOBAPY occupant behaviour model developed in Python.

2.3. Application of the Developed Toolchain: Description of the Case Study

To demonstrate the value of representing OB in building simulation, the proposed approach is applied to a case study of a retrofitted urban multi-family dwelling previously presented in [66]. It is a 65 m2 two-bedroom apartment located on an intermediate floor. It has two façades facing east and west, enabling natural cross-ventilation. It also has external solar shading. The building features high external thermal insulation and strong thermal inertia. A thermo-aeraulic model of the dwelling was developed, using TRNSYS and CONTAM, calibrated and validated against experimental field measurements. A set of 25 meteorological files was generated to represent the future climate of an urban district during summer and heatwave periods. As described in [66], these future weather files are derived from regional climate projections and the methodology generates complete meteorological files in which all weather variables (air temperature, humidity, wind speed, solar radiation, etc.) remain physically consistent with one another. This is essential for reliable BPS. Moreover, the method used ensures that the generated files include the intensity, duration, and temporal evolution of projected heatwaves, which are the critical periods for assessing overheating risk. The historical scenario is based on a 30-year reference period (1976–2005), consistent with standard climate modelling conventions (EURO-CORDEX). The approach also incorporates the characteristics of the urban microclimate.
Further details on the dwelling geometry, thermal characteristics and thermo-aeraulic model validation are also provided in [66].
In this study, the dwelling is occupied by a hypothetical household consisting of two adults working during the week, one of whom works from home in the office room on Tuesdays and Thursdays. Activity level depends on the activity of each occupant [67] considered constant for each room (0.8 met bedroom, 1 met living-room, 1.2 met office, 1.6 met bathroom and kitchen). The interior doors are assumed to be always open. MOBAPY is used to model the state of the windows, solar shading devices, air conditioners, fans and clothing adjustments. If a window is open while its solar shading device is closed, the effective opening area is reduced by half. To implement a household model in MOBAPY, it is necessary to enter the number of rooms and the equipment they contain, the number of occupants, and specify whether or not there are constraints at the level of the dwelling, each room, and each occupant (Table 2).
Once the models are coupled as described in Section 2.2.3, the evolution of the indoor environment and occupant behaviour is simulated under different constraint configurations, as defined in Section 2.2.2.
Indoor environment conditions are assessed from 1 June to 30 September (simulation starting two weeks earlier), using thermal comfort indicators based on the percentage of time (PTPET) and degree-hours (DHPET) during which the PET exceeds 28 °C, for a total of 2241 occupied hours. The risk indicator used in [66] is also applied here: the maximum number of successive days during which the bedroom temperature fails to drop below 26 °C (iT26°C), representing the occupants’ reduced capacity to recover from prolonged heat exposure.

3. Results

3.1. Dynamics of Adaptive Behaviour in an Unrestricted Configuration

Figure 4 presents the simulation results from the coupled models for the living room over one week, from 25 June to 2 July, under an unrestricted configuration, where all constraints listed in Table 2 are set to false. The figure displays the evolution of indoor and outdoor air temperatures, alongside occupants’ presence and their actions on the windows, solar shading, fan and AC. The meteorological file used for this example is the one constructed from IPSL/RCA4 model data between 2070 and 2099 with RCP 8.5 [66].
During this week, the outdoor air temperature fluctuates between 15 °C and 40 °C, with very hot conditions during the first three days when night-time temperatures do not fall below 20 °C. Occupants are globally present in the living room during the evenings, and throughout the day on the weekend.
Indoor air temperatures range from 18 °C to 32 °C, with higher values during the hottest days. The figure illustrates the impact of adaptive actions on indoor temperatures, particularly window opening. Windows are opened at night, at the same time as solar shading devices. The latter are opened during the day when at least one occupant is present in the room and there is no longer any direct solar radiation. In this case, the windows can also be opened if the indoor temperature exceeds the outdoor temperature. Windows and solar shading devices are typically closed each morning when the occupants wake up. Although they may not be present in the living room, they are present elsewhere in the dwelling. The fan is used when occupants feel hot, but only when they are present in the room. Air conditioning is used as a last resort and is therefore rarely turned on. Similarly, it is only turned on when occupants are present.

3.2. Impact of Occupant Behaviour Under Various Constraint Configurations

To assess the impact of behavioural adaptation on summer comfort for urban dwelling occupants, several constraint configurations were simulated with MOBAPY. Five climate scenarios were considered, including a historical climate and future climates for the periods 2035–2064 under 2070–2099 and RCP 4.5 and 8.5 [66]. The RCP 4.5 and RCP 8.5 scenarios are the most commonly used in climate change impact studies [68]. The RCP 4.5 scenario is considered the most probable [69]. The RCP 8.5 scenario is the most pessimistic and represents the future climate if nothing changes [70].
Figure 5 illustrates the thermal comfort results for a non-air-conditioned dwelling, focusing on the two constraints that have the most significant impact: absence of a fan, constant external noise, as well as their cumulative effect.
Each graph corresponds to the bar chart of a thermal comfort indicator. The configurations are indicated on the x-axis, while the five climate scenarios are distinguished by different colours. The height of each bar represents the average value of the indicator across five combinations of climate models, and the black error bars indicate the range (the results obtained with the hottest and coldest climate models).
It was chosen to focus on the two most critical constraints identified (the absence of a fan and constant outside noise) since they affect different adaptive actions, and thus, their combination further exacerbates thermal discomfort. Even under historical climate conditions, the PTPET indicator shows an average of 21% of uncomfortable occupied time for dwellings without fans and exposed to constant noise. This percentage increases to 68% under the worst-case climate scenario (2070–2099 RCP 8.5). In contrast, in an unrestricted configuration, the average PTPET remains around 20% under the same climate scenario.
DHPET exhibits a similar trend, with more pronounced results under constrained configurations. The iT26°C risk indicator highlights the benefits of night-time window opening, which helps to reduce the duration heat peaks. Without the noise constraint, the average iT26°C remains below 6 days, except for the most extreme climate scenario (14 days on average). However, when night-time ventilation is restricted due to noise, the indicator value doubles. Notably, under the worst climate scenario, there is substantial variability between the climate models.
These results underline the importance of accounting for constraints affecting occupant behaviour when assessing the summer comfort performance of dwellings.

4. Discussion

The model presented in this article is an initial version based on a limited number of semi-structured interviews. It is intended to be expanded upon through further research, particularly on the following points. A comparison with in situ measurements is one of the approaches missing from this study, which could be one of the key priorities for future work.
MOBAPY accounts for occupant adaptive behaviour regarding five systems: windows, solar shading devices, clothing, fans and air conditioning. However, other adaptive actions reported during the interviews, such as taking showers, limiting the use of heat-generating appliances, or temporarily leaving or isolating parts of the dwelling, were not integrated into the current version of the model [42]. To limit computational complexity, a fixed occupancy schedule was also used. A potential improvement would be to introduce flexibility into this schedule, enabling the representation of a wider array of adaptive strategies. Additionally, certain environmental constraints, such as wind or rain, were not considered, though they could be incorporated using inputs from meteorological files.
This approach was applied to a household of two occupants living in a two-bedroom apartment. Thanks to its object-oriented programming architecture, MOBAPY can accommodate a variable number of rooms and occupants without requiring code modification. This structure also facilitates future extensions.
Thermal sensation in MOBAPY is evaluated using the Physiological Equivalent Temperature (PET) index, based on the MEMI thermo-physiological model, with thresholds derived from a study based on outdoor responses. However, the model could be adapted to use any other thermal comfort indicator that incorporates the six fundamental parameters of comfort. The methodology adopted here aligns with a hybrid comfort modelling approach [71], i.e., based on adaptive comfort theory while explicitly representing adaptation processes. Physiological adaptation is considered thanks to the MEMI thermo-physiological model embedded in the PET calculation, and behavioural adaptation is integrated through the dynamic coupling with MOBAPY. However, psychological adaptation is not yet addressed. Incorporating this aspect, as done in the ATHB model [72], would represent a valuable extension.
It should be noted that the PET index currently implemented in MOBAPY is primarily used for outdoor environments. PET has also been applied for indoor studies [49,50,51,52,53,54] although their objectives differed from this study’s (transition between thermal comfort and discomfort). Two-thirds are focused on heat stress issues rather than thermal comfort [49,50,52,53]. Two doctoral dissertations concern the French context [49,52], whereas the other studies examine different types of climates. Two studies cover educational buildings [53,54], not residential buildings as this work does. Two studies focus on indoor and outdoor conditions [49,54], and Jiang et al. [51] explores short-term dynamic thermal perception under transient indoor–outdoor conditions.
Further work is needed to demonstrate that PET accurately represents occupants’ thermal perception in indoor environments. The choice of this indicator was based on a preliminary study with a limited number of respondents. New experimental campaigns involving different types of households, buildings, and climates are thus needed to validate it. Future research plans to explore the use of other comfort indicators in MOBAPY (such as PMV, aPMV, or ePMV, SET, ATHB, or DTS) as well as the associated thresholds that trigger occupant actions. These indicators consider the effects of temperatures, humidity, air velocity, clothing, and metabolism on thermal comfort. The PMV is one of the most widely recognized and commonly used indicators in the field of building science, and is included in the ISO 7730 standard for air-conditioned buildings [67]. Since some studies have found that it tends to overestimate hot discomfort [73], an adaptative approach is preconized for naturally ventilated building in EN 16798-1 [74] and ASHRAE 55 [75] standards, by establishing a link between the moving average outdoor temperature and the indoor operative temperature range considered comfortable. However, this simplified approach considers only the indoor operative temperature. Indicators applying statistical corrections on PMV have been developed to implicitly incorporate adaptive mechanisms, such as aPMV [76] or ePMV [77]. SET is used more frequently in indoor environments than PET and is based on the Gagge model [78]. The latter has recently been improved to calculate a Dynamic Thermal Sensation (DTS) [79]. Finally, ATHB combines the adaptive approach with the heat balance method [72].
In its current form, MOBAPY simplifies the consideration of non-thermal comfort dimensions (e.g., physiological, visual, acoustic, and indoor air quality) by integrating them merely as binary constraints. A next step would be to develop specific models for these comfort domains, similar to the thermal comfort model, to enable a more comprehensive and subjective representation of occupant perception. Similarly, while factors like noise and air pollution in the urban environment are currently treated as static daily scenarios, they could eventually be modelled as dynamic, continuous variables.
The adaptive actions themselves are also accounted for using a simplified approach (windows and solar shading devices open/closed, clothing increments of 0.1 clo, fan speeds corresponding to Givoni zones, air conditioning on/off). One potential future development for MOBAPY could be working on refining these actions with percentage of opening, clothing sets, setpoint temperature variations, etc. Figure 4 shows the changes over time—spanning one week—in temperature and some adaptive actions illustrated in simplified form, for a single model configuration without constraints. The goal is to provide insight into how the current model works. It might be interesting to examine the details (changes in fan speed, clothing increments, and PET for each occupant) or other configurations to improve the model. Data is available from the existing simulation outputs.
Only a single occupant profile is currently implemented in MOBAPY, based on a unified set of behavioural rules. This simplification is justified by the homogeneous sociodemographic background and declared behaviours of the eight interviewed households, all of whom reported environmentally conscious attitudes, particularly regarding air conditioning use. Extending the model to include a broader diversity of profiles would be beneficial. It could be achieved by conducting interviews with a larger and more diverse sample of households. It would also be relevant to apply the methodology to other building types and urban contexts.
Although one profile was implemented based on eight semi-structured interviews, a large-scale socioeconomic survey (1072 respondents) was conducted as part of the CREATIV project [80]. It allows for the heterogeneity of housing and households to be contextualized within a representative sample. Overall, households adjust their windows more frequently than their shutters, followed by fans, and lastly air conditioning (no questions were asked about clothing). This observed frequency hierarchy perfectly mirrors the sequence of actions implemented in MOBAPY’s decision tree. The analysis also identified three main clusters. The second cluster (31.2% of the sample) consists of households that adopt a ventilation-based adaptation strategy, whose behaviour is similar to that reported in the eight semi-structured interviews in our study. This large-scale survey thus supports the actions implemented in MOBAPY, which are based on reports from eight households belonging to the second cluster. Future work could include the integration of the two other clusters.
MOBAPY is only applied to one case study: a highly insulated, cross-ventilated apartment occupied by a hypothetical two-adult household with a fixed schedule. Results are expected to differ for other building typologies. A less insulated building would likely be more affected by solar protections use. The effectiveness of night-time ventilation will also be significantly reduced in single-sided dwellings or those equipped with window screens (which restrict airflow). Finally, this household profile is particularly active in terms of summer thermal comfort; the impact of OB is expected to be less significant for other profiles.

5. Conclusions

Developing behavioural models for summer or hot weather is a major research area for assessing the efficiency of occupant-dependent passive cooling strategies. Agent-based systems are particularly well suited to represent the complexity of occupants’ overall behaviour and to model their adaptive actions, thereby allowing for the assessment of their impact on buildings’ thermal performance. Several agent-based models for the building context have been developed in other studies, focusing mainly on energy consumption, and are therefore less adapted to study thermal management strategies employed by occupants during hot periods. To define rules of conduct adapted to this context, semi-structured interviews were conducted with households in Lyon during the summer of 2023. Based on these results, an agent-based model called MOBAPY was developed to represent the summer behaviour of occupants in an urban dwelling. It models the use of windows, solar shading devices, air conditioning, fans and clothing under different constraints (external disturbances, configuration of the dwelling and availability of equipment, personal preferences). It is coded in Python, a widely used programming language, and can be easily coupled with building performance simulation tools.
MOBAPY is coupled with a thermo-aeraulic dwelling model built with TRNSYS and CONTAM to illustrate the value of representing adaptive behaviour. The evolution of the indoor environment is simulated under several climatic hypotheses with different configurations, representing constraints impacting the adaptive behaviour of the occupants. The results show that occupant behaviour is crucial in energy-efficient dwellings. For the worst climate scenario, PTPET can fall to 20% without behavioural constraints, whereas it reaches 68% with constraints. This contrast raises a critical question: is it truly possible for occupants to act in the most thermally efficient manner, taking into account personal or external constraints, particularly in an urban context? Simulations under different constraint configurations reveal the beneficial effects of opening windows: the confinement caused by constant external nuisance leads to long periods during which the indoor temperature remains high (for this well-insulated case study dwelling). A fan is also a solution that greatly reduces thermal discomfort, thanks to the increased air speeds it generates.
Beyond the specific findings of this case study, the application shows that the representation of occupancy behaviour has a strong impact on the evaluation of the building’s thermal performance and possible energy consumption linked to the use of air conditioning. Carefully representing occupant behaviour, according to their profile and the constraints to which they are subject, is therefore a major challenge in assessing the resilience of buildings to climate change and establishing robust adaptation strategies.

Author Contributions

Conceptualization, M.H., B.M. and M.M.; methodology, M.H., B.M. and M.M.; software, M.H.; validation, B.M. and M.M.; formal analysis, M.H.; investigation, M.H. and B.M.; resources, B.M.; data curation, M.H.; writing—original draft preparation, M.H.; writing—review and editing, M.H., B.M. and M.M.; visualization, M.H.; supervision, B.M. and M.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work was carried out as part of a PhD funded by the French Ministry of Ecological Transition. Data was collected as part of the CREATIV project funded by ADEME under agreement number 2062C0002.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study (simulation results) are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ABMAgent-Based Models
ACAir Conditioning
ASHRAEAmerican Society of Heating, Refrigerating and Air-Conditioning Engineers
ATHBAdaptive Thermal Heat Balance
BPSBuilding Performance Simulation
CONTAMMulti-zone airflow and contaminant transport analysis programme
DHDegree-Hour
DHPETDegree-Hours during which PET exceeds 28 °C
DNASDrivers—Needs—Actions—Systems
DTSDynamic Thermal Sensation
EPWEnergyPlus Weather file
iT26°CMaximum number of successive days during which the bedroom temperature fails to drop below 26 °C
MEMIMunich Energy-balance Model for Individuals
MOBAPYModelling Occupant Behaviour using an Agent-based approach with PYthon
OBOccupant Behaviour
PETPhysiological Equivalent Temperature
PTPercentage of Time
PTPETPercentage of Time during which PET exceeds 28 °C
RCPRepresentative Concentration Pathway
TRNSYSTransient System Simulation
UMLUnified Modelling Language

Appendix A

This appendix contains all the diagrams related to the development of MOBAPY.
Figure A1. UML diagram of MOBAPY.
Figure A1. UML diagram of MOBAPY.
Applsci 16 07742 g0a1
Figure A2. Agent decision rules in MOBAPY when checking that no constraint appeared at the beginning of each time step.
Figure A2. Agent decision rules in MOBAPY when checking that no constraint appeared at the beginning of each time step.
Applsci 16 07742 g0a2
Figure A3. Agent decision rules in MOBAPY when choosing between inaction, reaction and anticipation.
Figure A3. Agent decision rules in MOBAPY when choosing between inaction, reaction and anticipation.
Applsci 16 07742 g0a3
Figure A4. Agent decision rules in MOBAPY when reacting to cold discomfort (PET< 19 °C).
Figure A4. Agent decision rules in MOBAPY when reacting to cold discomfort (PET< 19 °C).
Applsci 16 07742 g0a4
Figure A5. Agent decision rules in MOBAPY when reacting to hot discomfort (PET > 26 °C).
Figure A5. Agent decision rules in MOBAPY when reacting to hot discomfort (PET > 26 °C).
Applsci 16 07742 g0a5
Figure A6. Agent decision rules in MOBAPY when anticipating (changing location).
Figure A6. Agent decision rules in MOBAPY when anticipating (changing location).
Applsci 16 07742 g0a6
Figure A7. Agent decision rules in MOBAPY when anticipating while going to bed (upon arrival in the bedroom).
Figure A7. Agent decision rules in MOBAPY when anticipating while going to bed (upon arrival in the bedroom).
Applsci 16 07742 g0a7

References

  1. IPCC. Climate Change 2022: Impacts, Adaptation and Vulnerability. Contribution of Working Group II to the Sixth Assessment Report of the Intergovernmental Panel on Climate Change; Cambridge University Press: Cambridge, UK, 2022. [Google Scholar]
  2. Yan, D.; Hong, T.; Dong, B.; Mahdavi, A.; D’Oca, S.; Gaetani, I.; Feng, X. IEA EBC Annex 66: Definition and simulation of occupant behavior in buildings. Energy Build. 2017, 156, 258–270. [Google Scholar] [CrossRef]
  3. Li, J.; Yu, Z.J.; Haghighat, F.; Zhang, G. Development and improvement of occupant behavior models towards realistic building performance simulation: A review. Sustain. Cities Soc. 2019, 50, 101685. [Google Scholar] [CrossRef]
  4. Gaetani, I. A Strategy for Fit-for-Purpose Occupant Behavior Modelling in Building Energy and Comfort Performance Simulation. Ph.D. Thesis, Technische Universiteit Eindhoven, Eindhoven, The Netherlands, 2019. [Google Scholar] [CrossRef]
  5. IEA EBC. Annex 79 Final Report: Occupant-Centric Building Design and Operation; Karlsruhe Institute of Technology: Karlsruhe, Germany; Carleton University: Ottawa, ON, Canada, 2024. [Google Scholar]
  6. d’Ambrosio Alfano, F.R.; Olesen, B.W.; Pepe, D.; Palella, B.I. Working with Different Building Energy Performance Tools: From Input Data to Energy and Indoor Temperature Predictions. Energies 2023, 16, 743. [Google Scholar] [CrossRef]
  7. Harputlugil, T.; de Wilde, P. The interaction between humans and buildings for energy efficiency: A critical review. Energy Res. Soc. Sci. 2021, 71, 101828. [Google Scholar] [CrossRef]
  8. Wagner, A.; O’Brien, W.; Dong, B. (Eds.) Exploring Occupant Behavior in Buildings; Springer International Publishing: Cham, Switzerland, 2018. [Google Scholar]
  9. Carlucci, S.; De Simone, M.; Firth, S.K.; Kjærgaard, M.B.; Markovic, R.; Rahaman, M.S.; Annaqeeb, M.K.; Biandrate, S.; Das, A.; Dziedzic, J.W.; et al. Modeling occupant behavior in buildings. Build. Environ. 2020, 174, 106768. [Google Scholar] [CrossRef]
  10. Alfakara, A.; Croxford, B. Using Agent-Based Modelling to Simulate Occupants’ Behaviours in Response to Summer Overheating. In Proceedings of the 2014 Symposium on Simulation for Architecture and Urban Design (SimAUD 2014); Society for Modeling and Simulation International (SCS): Tampa, FL, USA, 2014; Available online: http://www.simaud.org/2014/ (accessed on 7 April 2021).
  11. Dziedzic, J.; Yan, D.; Novakovic, V. Framework for a transient energy-related occupant behavior agent-based model. REHVA J. 2019, 5, 39–46. [Google Scholar] [CrossRef]
  12. Bonabeau, E. Agent-based modeling: Methods and techniques for simulating human systems. Proc. Natl. Acad. Sci. USA 2002, 99, 7280–7287. [Google Scholar] [CrossRef] [PubMed]
  13. Berger, C.; Mahdavi, A. Review of current trends in agent-based modeling of building occupants for energy and indoor-environmental performance analysis. Build. Environ. 2020, 173, 106726. [Google Scholar] [CrossRef]
  14. IEA EBC. Annex 66 Final Report: Definition and Simulation of Occupant Behavior in Buildings; Lawrence Berkeley National Laboratory: Berkeley, CA, USA; Tsinghua University: Beijing, China, 2018. [Google Scholar]
  15. Albouys-Perrois, J. Simulation Multi-Agent de L’autoconsommation Collective de L’énergie à L’échelle du Quartier en Lien Avec L’activité Humaine et la Consommation Énergétique des Bâtiments; Université de La Rochelle: La Rochelle, France, 2021. [Google Scholar]
  16. Vellei, M.; Martinez, S.; Le Dréau, J. Agent-based stochastic model of thermostat adjustments: A demand response application. Energy Build. 2021, 238, 110846. [Google Scholar] [CrossRef]
  17. Moujalled, B. Modélisation Dynamique du Confort Thermique dans les Bâtiments Naturellement Ventilés. Doctoral Thesis, INSA de Lyon, Lyon, France, 2007. Available online: https://www.theses.fr/2007ISAL0005 (accessed on 29 October 2021).
  18. Langevin, J.; Wen, J.; Gurian, P.L. Including occupants in building performance Simulation: Integration of an agent-based occupant behavior algorithm with Energyplus. In Proceedings of the ASHRAE/IBPSA-USA 2014 Simulation Conference; ASHRAE/IBPSA-USA: Atlanta, GA, USA, 2014; Available online: https://www.researchgate.net/publication/265849822_Including_Occupants_in_Building_Performance_Simulation_Integration_of_an_Agent-Based_Occupant_Behavior_Algorithm_with_EnergyPlus (accessed on 10 January 2022).
  19. Lee, Y.S.; Malkawi, A.M. Simulating multiple occupant behaviors in buildings: An agent-based modeling approach. Energy Build. 2014, 69, 407–416. [Google Scholar] [CrossRef]
  20. Chapman, J.; Siebers, P.-O.; Robinson, D. Multi-agent stochastic simulation of occupants for building simulation. In Proceedings of the 15th IBPSA Conference, San Francisco, CA, USA, 7–9 August 2017; Available online: https://nottingham-repository.worktribe.com/output/876941 (accessed on 20 January 2022).
  21. Darakdjian, Q. Prédiction des Performances Énergétiques des Bâtiments Avec Prise en Compte du Comportement des Usagers. Ph.D. Thesis, Université de La Rochelle, La Rochelle, France, 2017. Available online: https://tel.archives-ouvertes.fr/tel-01753830 (accessed on 14 April 2022).
  22. Kim, D.-W.; Kim, J.-H.; Park, S.-L.; Kim, K.-C.; Park, C.-S. Traditional Vs. Cognitive agent simulation. In Proceedings of the 13th Conference of International Building Performance Simulation Association, BS2013, Chambéry, France, 26–28 August 2013. [Google Scholar]
  23. Putra, H.C.; Andrews, C.; Senick, J. An agent-based model of building occupant behavior during load shedding. Build. Simul. 2017, 10, 845–859. [Google Scholar] [CrossRef]
  24. Berger, C.; Regnath, F.; Mahdavi, A. Agent-based modelling and energy performance assessment: A co-simulation case study. E3S Web Conf. 2022, 362, 07001. [Google Scholar] [CrossRef]
  25. Jia, M.; Srinivasan, R.S.; Ries, R.; Bharathy, G. A framework of occupant behavior modeling and data sensing for improving building energy simulation. In Proceedings of the Symposium on Simulation for Architecture and Urban Design, SIMAUD ’18; Society for Computer Simulation International: San Diego, CA, USA, 2018; pp. 1–8. [Google Scholar]
  26. Jia, M.; Srinivasan, R. Building Performance Evaluation Using Coupled Simulation of EnergyPlusTM and an Occupant Behavior Model. Sustainability 2020, 12, 4086. [Google Scholar] [CrossRef]
  27. Alfakara, A.; Corxford, B. Towards Better Buildings Performance Estimations? A Framework for Integrating Dynamic Occupant Behaviour in Dynamic Buildings Simulation Tools. In Proceedings of the 15th IBPSA Conference, San Francisco, CA, USA, 7–9 August 2017; p. 10. [Google Scholar]
  28. Gaaloul, S.; Dang, H.-A.; Kashif, A.; Delichant, B.; Wurtz, F. A new co-simulation architecture for mixing dynamic building simulation and agent oriented approach for users behaviour modelling. In Proceedings of the 13th International Conference of the International Building Performance Simulation Association (IBPSA), BS2013, Chambéry, France, 26–28 August 2013. [Google Scholar]
  29. Kashif, A. Modelling of Human Reactive and Deliberative Behaviour Using a Multi-Agent Approach for Energy Management in Home Settings. Ph.D. Thesis, Université de Grenoble, Saint-Martin-d’Hères, France, 2014. Available online: https://tel.archives-ouvertes.fr/tel-01304290 (accessed on 13 April 2022).
  30. Plessis, G.; Amouroux, E.; Haradji, Y. Coupling occupant behaviour with a building energy model—A FMI application. In Proceedings of the 10th International Modelica Conference, Lund, Sweden, 10–12 March 2014; pp. 321–326. [Google Scholar]
  31. Schumann, M.; Reynaud, Q.; Sabouret, N.; Sempé, F.; Haradji, Y.; Charrier, B.; Albouys, J.; Inard, C. Multi-Agent based simulation of human activity for building and urban scale assessment of residential load curves and energy use. In Proceedings of the Building Simulation 2021 Conference, Bruges, Belgium, 1–3 September 2021; Available online: https://hal.archives-ouvertes.fr/hal-03505242 (accessed on 3 February 2022).
  32. Jia, M.; Srinivasan, R.; Ries, R.; Bharathy, G.; Silverman, B.; Weyer, N. An Agent-Based Model Approach for Simulating Interactions between Occupants and Building Systems. In Proceedings of the 15th IBPSA Conference, San Francisco, CA, USA, 7–9 August 2017. [Google Scholar]
  33. Andrews, C.J.; Yi, D.; Krogmann, U.; Senick, J.A.; Wener, R.E. Designing Buildings for Real Occupants: An Agent-Based Approach. IEEE Trans. Syst. Man Cybern.—Part A Syst. Hum. 2011, 41, 1077–1091. [Google Scholar] [CrossRef]
  34. Micolier, A.; Taillandier, F.; Taillandier, P.; Bos, F. Li-BIM, an agent-based approach to simulate occupant-building interaction from the Building-Information Modelling. Eng. Appl. Artif. Intell. 2019, 82, 44–59. [Google Scholar] [CrossRef]
  35. Heydarian, A.; McIlvennie, C.; Arpan, L.; Yousefi, S.; Syndicus, M.; Schweiker, M.; Jazizadeh, F.; Rissetto, R.; Pisello, A.L.; Piselli, C.; et al. What drives our behaviors in buildings? A review on occupant interactions with building systems from the lens of behavioral theories. Build. Environ. 2020, 179, 106928. [Google Scholar] [CrossRef]
  36. Subrémon, H. Le climat du chez-soi. Une fabrication saisonnière. Ethnol. Fr. 2010, 40, 707. [Google Scholar] [CrossRef]
  37. Sovacool, B.K. What are we doing here? Analyzing fifteen years of energy scholarship and proposing a social science research agenda. Energy Res. Soc. Sci. 2014, 1, 1–29. [Google Scholar] [CrossRef]
  38. Allagnat, M. Habiter la Périphérie Urbaine en Périodes de Fortes Chaleurs: Les Vécus Habitants, Leurs Dilemmes et les Inégalités Socio-Spatiales Amplifiées. Doctoral Thesis, Nantes Université, Nantes, France, 2022. Available online: https://www.theses.fr/2022NANU2030 (accessed on 20 July 2023).
  39. Hellwig, R.T.; Teli, D.; Schweiker, M.; Choi, J.-H.; Lee, M.C.J.; Mora, R.; Rawal, R.; Wang, Z.; Al-Atrash, F. A framework for adopting adaptive thermal comfort principles in design and operation of buildings. Energy Build. 2019, 205, 109476. [Google Scholar] [CrossRef]
  40. Molina, G.; Allagnat, M. Les habitants, la météorologie et le climat. Expériences climatiques, modes de vie et territoires. Séminaire les lyonnais, la météorologie et le climat. In Proceedings of the Séminaire chercheurs—Collectivité territoriale “ Les Lyonnais, la Météorologie et le Climat”, Lyon, France, 19 September 2019; Available online: https://hal.archives-ouvertes.fr/hal-03327869 (accessed on 24 February 2022).
  41. von Grabe, J. How do occupants decide their interactions with the building? From qualitative data to a psychological framework of human-building-interaction. Energy Res. Soc. Sci. 2016, 14, 46–60. [Google Scholar] [CrossRef]
  42. Hostein, M.; Moujalled, B.; Musy, M.; Gernoutti, S. How do occupants adapt to the heat in their homes: Lessons learned from semi-structured interviews and in-situ measurements in urban dwellings. In Proceedings of the 5th international conference on Comfort at the Extremes (CATE 2024), Seville, Spain, 20–22 November 2024. [Google Scholar]
  43. Hong, T.; D’Oca, S.; Turner, W.J.N.; Taylor-Lange, S.C. An ontology to represent energy-related occupant behavior in buildings. Part I: Introduction to the DNAs framework. Build. Environ. 2015, 92, 764–777. [Google Scholar] [CrossRef]
  44. Höppe, P. The physiological equivalent temperature—A universal index for the biometeorological assessment of the thermal environment. Int. J. Biometeorol. 1999, 43, 71–75. [Google Scholar] [CrossRef] [PubMed]
  45. Hostein, M. Évaluation de L’impact du Changement Climatique sur le Confort Thermique des Bâtiments en Tenant Compte du Comportement des Occupants et du Contexte Urbain—Application aux Stratégies Passives D’amélioration du Confort Thermique D’été. Ph.D. Thesis, Université de Lyon, Lyon, France, 2024. [Google Scholar]
  46. Walther, E.; Goestchel, Q. The P.E.T. comfort index: Questioning the model. Build. Environ. 2018, 137, 1–10. [Google Scholar] [CrossRef]
  47. Höppe, P.; Mayer, H. Planungsrelevante Bewertung der thermischen Komponente des Stadtklimas. Landsch. Stadt 1987, 19, 22–29. [Google Scholar]
  48. Deb, C.; Alur, R. The significance of Physiological Equivalent Temperature (PET) in outdoor thermal comfort studies. Int. J. Eng. Sci. Technol. 2010, 2, 2825–2828. [Google Scholar]
  49. Barone, F. Numerical Assessment of Heat Stress in Dwellings and Immediate Surroundings: Development of a Microclimate Zonal Model Coupled to Buildings Models. Ph.D. Thesis, INSA de Lyon, Villeurbanne, France, 2024. [Google Scholar]
  50. Nouri, A.S.; Charalampopoulos, I.; Matzarakis, A. The application of the physiologically equivalent temperature to determine impacts of locally defined extreme heat events within vulnerable dwellings during the 2020 summer in Ankara. Sustain. Cities Soc. 2022, 81, 103833. [Google Scholar] [CrossRef]
  51. Jiang, Y.; Xie, Y.; Niu, J. Short-term dynamic thermal perception and physiological response to step changes between real-life indoor and outdoor environments. Build. Environ. 2024, 251, 111223. [Google Scholar] [CrossRef]
  52. Sondaz, C. Vers une Qualification Interdisciplinaire de la Vulnérabilité Sanitaire Individuelle et des Vécus Face Aux Fortes Chaleurs: Croisement et Mise à L’épreuve de la Modélisation du Stress et des Astreintes Thermiques Avec le Terrain Ethnographique. Ph.D. Thesis, INSA de Lyon, Villeurbanne, France, 2025. [Google Scholar]
  53. Lucas, F.; Bozonnet, E.; Boulic, M.; Lodzinski, V. Projet TROPIC pour l’étude du rafraîchissement passif des écoles polynésiennes dans un contexte de changement climatique: Confort thermique, qualité de l’air, santé cognitive et réduction des consommations électriques. In Proceedings of the IBPSA France, La Rochelle and Île d’Oléron, France, 13–17 May 2024; p. 413. Available online: https://hal.science/hal-04587632 (accessed on 16 July 2026).
  54. Morakinyo, T.E.; Dahanayake, K.K.C.; Adegun, O.B.; Balogun, A.A. Modelling the effect of tree-shading on summer indoor and outdoor thermal condition of two similar buildings in a Nigerian university. Energy Build. 2016, 130, 721–732. [Google Scholar] [CrossRef]
  55. Cohen, P.; Potchter, O.; Matzarakis, A. Human thermal perception of Coastal Mediterranean outdoor urban environments. Appl. Geogr. 2013, 37, 1–10. [Google Scholar] [CrossRef]
  56. Matzarakis, A.; Mayer, H. Another kind of environmental stress: Thermal stress. WHO Newsl. 1996, 18, 7–10. [Google Scholar]
  57. Masad, D.; Kazil, J. Mesa: An Agent-Based Modeling Framework. In Proceedings of the Python in Science Conference, Austin, TX, USA, 6–12 July 2015; pp. 51–58. [Google Scholar]
  58. Kazil, J.; Masad, D.; Crooks, A. Utilizing Python for Agent-Based Modeling: The Mesa Framework. In Social, Cultural, and Behavioral Modeling; Thomson, R., Bisgin, H., Dancy, C., Hyder, A., Hussain, M., Eds.; Lecture Notes in Computer Science; Springer International Publishing: Cham, Switzerland, 2020; pp. 308–317. [Google Scholar]
  59. Foramitti, J. AgentPy: A package for agent-based modeling in Python. J. Open Source Softw. 2021, 6, 3065. [Google Scholar] [CrossRef]
  60. Yu, S.; Hou, Z. Melodie: Agent-based Modeling in Python. J. Open Source Softw. 2023, 8, 5100. [Google Scholar] [CrossRef]
  61. Antelmi, A.; Cordasco, G.; D’Ambrosio, G.; De Vinco, D.; Spagnuolo, C. Experimenting with Agent-Based Model Simulation Tools. Appl. Sci. 2023, 13, 13. [Google Scholar] [CrossRef]
  62. Tartarini, F.; Schiavon, S. pythermalcomfort: A Python package for thermal comfort research. SoftwareX 2020, 12, 100578. [Google Scholar] [CrossRef]
  63. TomTom. Lyon Traffic. Available online: https://www.tomtom.com/traffic-index/lyon-traffic/ (accessed on 28 July 2024).
  64. Moustique Tigre. Available online: https://www.ville-schiltigheim.fr/vie-quotidienne/habitat-environnement/nuisibles/moustique-tigre/ (accessed on 28 July 2024).
  65. d’Ambrosio Alfano, F.R.; Pepe, D.; Riccio, G.; Vio, M.; Palella, B.I. On the effects of the mean radiant temperature evaluation in the assessment of thermal comfort by dynamic energy simulation tools. Build. Environ. 2023, 236, 110254. [Google Scholar] [CrossRef]
  66. Hostein, M.; Musy, M.; Moujalled, B.; El Mankibi, M. Generating meteorological files of future climates with heatwaves in urban context to evaluate building overheating: An energy-efficient dwelling case study. Build. Environ. 2024, 263, 111874. [Google Scholar] [CrossRef]
  67. ISO 7730; Ergonomie des Ambiances Thermiques—Détermination Analytique et Interprétation du Confort Thermique par le Calcul des Indices PMV et PPD et par des Critères de Confort Thermique Local. AFNOR: Saint-Denis, France, 2025.
  68. Ramon, D.; Allacker, K.; van Lipzig, N.P.M.; De Troyer, F.; Wouters, H. Future Weather Data for Dynamic Building Energy Simulations: Overview of Available Data and Presentation of Newly Derived Data for Belgium. In Energy Sustainability in Built and Urban Environments; Motoasca, E., Agarwal, A.K., Breesch, H., Eds.; Energy, Environment, and Sustainability; Springer: Singapore, 2019; pp. 111–138. [Google Scholar]
  69. Silvero, F.; Lops, C.; Montelpare, S.; Rodrigues, F. Impact assessment of climate change on buildings in Paraguay—Overheating risk under different future climate scenarios. Build. Simul. 2019, 12, 943–960. [Google Scholar] [CrossRef]
  70. Liu, S.; Kwok, Y.T.; Lau, K.K.-L.; Tong, H.W.; Chan, P.W.; Ng, E. Development and application of future design weather data for evaluating the building thermal-energy performance in subtropical Hong Kong. Energy Build. 2020, 209, 109696. [Google Scholar] [CrossRef]
  71. Yao, R.; Zhang, S.; Du, C.; Schweiker, M.; Hodder, S.; Olesen, B.W.; Toftum, J.; Romana d’Ambrosio, F.; Gebhardt, H.; Zhou, S.; et al. Evolution and performance analysis of adaptive thermal comfort models—A comprehensive literature review. Build. Environ. 2022, 217, 109020. [Google Scholar] [CrossRef]
  72. Schweiker, M. Combining adaptive and heat balance models for thermal sensation prediction: A new approach towards a theory and data-driven adaptive thermal heat balance model. Indoor Air 2022, 32, e13018. [Google Scholar] [CrossRef] [PubMed]
  73. Djongyang, N.; Tchinda, R.; Njomo, D. Thermal comfort: A review paper. Renew. Sustain. Energy Rev. 2010, 14, 2626–2640. [Google Scholar] [CrossRef]
  74. EN 16798-1; Performance Énergétique des Bâtiments—Ventilation des Bâtiments—Partie 1: Données D’entrées D’ambiance Intérieure Pour la Conception et L’évaluation de la Performance Énergétique des Bâtiments Couvrant la Qualité de l’air Intérieur, L’ambiance Thermique, L’éclairage et L’acoustique. AFNOR: Saint-Denis, France, 2019.
  75. ANSI/ASHRAE Standard 55-2020; Thermal Environmental Conditions for Human Occupancy. ASHRAE: Peachtree Corners, GA, USA, 2020.
  76. Yao, R.; Li, B.; Liu, J. A theoretical adaptive model of thermal comfort—Adaptive Predicted Mean Vote (aPMV). Build. Environ. 2009, 44, 2089–2096. [Google Scholar] [CrossRef]
  77. Fanger, O.P.; Toftum, J. Extension of the PMV model to non-air-conditioned buildings in warm climates. Energy Build. 2002, 34, 533–536. [Google Scholar] [CrossRef]
  78. Gagge, A.P.; Fobelets, A.P.; Berglund, L.G. A standard predictive index of human response to the thermal environment. ASHRAE Trans. 1986, 92, 709–731. [Google Scholar]
  79. Vellei, M.; Le Dréau, J. On the prediction of dynamic thermal comfort under uniform environments. In Proceedings of the 11th Windsor Conference 2020, Windsor, UK, 16–19 April 2020; pp. 424–439. Available online: https://hal-univ-rochelle.archives-ouvertes.fr/hal-02556047 (accessed on 15 June 2021).
  80. Gernouti, S.; Moujalled, B.; Ach-Chakar, M.; Travers, M.; Appere, G.; Junique, S.; Tabard-Fortecoef, V. CREATIV: Confort, Qualité de l’air & Vagues de Chaleur–Rapport de Synthèse n°3; Technical Report No. 2062C0002; ADEME: Angers, France, 2025; unpublished work. [Google Scholar]
Figure 1. A conceptual diagram of the MOBAPY agent-based model and its interactions with physical models. The arrow colours show the different model outputs.
Figure 1. A conceptual diagram of the MOBAPY agent-based model and its interactions with physical models. The arrow colours show the different model outputs.
Applsci 16 07742 g001
Figure 2. Agent decision rules in MOBAPY when reacting to hot discomfort.
Figure 2. Agent decision rules in MOBAPY when reacting to hot discomfort.
Applsci 16 07742 g002
Figure 3. A diagram of the coupling of the different models.
Figure 3. A diagram of the coupling of the different models.
Applsci 16 07742 g003
Figure 4. Evolution over one week of indoor air temperature in the living room and associated adaptative actions under an unrestricted configuration (IPSL/RCA4 2070-2099 RCP 8.5 from 25 June to 2 July midnight). The light grey colour indicates one occupant present, and the dark grey colour indicates two occupants present.
Figure 4. Evolution over one week of indoor air temperature in the living room and associated adaptative actions under an unrestricted configuration (IPSL/RCA4 2070-2099 RCP 8.5 from 25 June to 2 July midnight). The light grey colour indicates one occupant present, and the dark grey colour indicates two occupants present.
Applsci 16 07742 g004
Figure 5. The thermal comfort results for a dwelling without air conditioning under different constraint configurations and various climate scenarios.
Figure 5. The thermal comfort results for a dwelling without air conditioning under different constraint configurations and various climate scenarios.
Applsci 16 07742 g005
Table 1. Studies coupling ABM and BPS software.
Table 1. Studies coupling ABM and BPS software.
ReferenceABMBPSModelled ActionsCoupling Method
Vellei et al. [16]PythonDIMOSIMHVAC, ClothesNot available
Moujalled [17]Matlab 7.x (AdOCC)TRNSYS 16Windows, HVAC, Fan, ClothesDirectly in Matlab
Langevin et al. [18]Matlab (HABIT)EnergyPlusWindows, HVAC, Fan, ClothesBCVTB
Lee and Malkawi [19]MatlabEnergyPlus v7.1Occupancy, Blinds, Windows, Doors, HVAC, Fan, ClothesBCVTB and MLE+
Chapman et al. [20]No-MassEnergyPlusOccupancy, Artificial light, Blinds, Windows, HVAC, ClothesFMI
Darakdjian [21]No-MassEnergyPlus v8.2Occupancy, Artificial light, Blinds, Windows, HVACFMI
Kim et al. [22]NetLogoEnergyPlusOccupancy, Artificial light, Windows, Doors, HVACBCVTB
Putra et al. [23]NetLogoEnergyPlusArtificial light, Blinds, HVAC, Fan, ClothesNot available
Berger et al. [24]NetLogoEnergyPlusOccupancy, Artificial light, Blinds, Windows, HVAC, ClothesBCVTB/Python
Jia et al. [25,26]PMFservEnergyPlusBlinds, Windows, DoorsManually then BCVTB
Alfakara and Croxford [27]RepastEnergyPlusOccupancy, Windows, HVAC, FanFMI
Alfakara and Croxford [10]RepastTasWindows, HVACNot available
Gaaloul et al. [28]BRAHMSMatlab/SimulinkOccupancy, Appliances, HVACICAr
Kashif [29]BRAHMSMatlab/SimulinkOccupancy, Appliances, Windows, HVAC, ClothesNot available
Plessis et al. [30]
Schumann et al. [31]
SMACHBuildSysPro ModelicaOccupancy, Appliances, Blinds, Windows, HVACFMI
Table 2. Attributes representing constraints in MOBAPY.
Table 2. Attributes representing constraints in MOBAPY.
ConstraintPython ClassUsed NameNatureVariable or Parameter Description
PollutionRoom (Outdoor object)pollutionPlanningOutdoor environment polluted
MosquitoRoom (Outdoor object)mosquitoPlanningPresence of mosquito in the external environment
NoiseRoom (Outdoor object)noisePlanningOutdoor environment noisy
FanResidentialModelnumber_fansFixedNumber of fans in the dwelling
Air conditioningRoomavailabilityFixedExistence of air conditioning in the room
Direct viewsRoomvis-a-visFixedPresence of direct views for the room
InsecurityRoominsecurityFixedFeeling of insecurity in the room
ViewOccupantwant_viewFixedThe occupant wants to see outside
PrivacyOccupantwant_privacyFixedThe occupant does not want to be seen from outside
DarknessOccupantwant_darknessFixedThe occupant wants to sleep with the shutters closed
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hostein, M.; Moujalled, B.; Musy, M. MOBAPY: Modelling Household Adaptation to Summer Heat in Urban Environments Using Agent-Based Simulation. Appl. Sci. 2026, 16, 7742. https://doi.org/10.3390/app16157742

AMA Style

Hostein M, Moujalled B, Musy M. MOBAPY: Modelling Household Adaptation to Summer Heat in Urban Environments Using Agent-Based Simulation. Applied Sciences. 2026; 16(15):7742. https://doi.org/10.3390/app16157742

Chicago/Turabian Style

Hostein, Mathilde, Bassam Moujalled, and Marjorie Musy. 2026. "MOBAPY: Modelling Household Adaptation to Summer Heat in Urban Environments Using Agent-Based Simulation" Applied Sciences 16, no. 15: 7742. https://doi.org/10.3390/app16157742

APA Style

Hostein, M., Moujalled, B., & Musy, M. (2026). MOBAPY: Modelling Household Adaptation to Summer Heat in Urban Environments Using Agent-Based Simulation. Applied Sciences, 16(15), 7742. https://doi.org/10.3390/app16157742

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop