City-Oriented Modeling for Observational Radiative Thermal comfort
CONCEPT
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-218.png)
The idea behind C.O.M.F.O.R.T is to provide an effective tool for architects and urban planners to design cooler and more sustainable cities, leveraging the power of machine learning and AI technologies.
![](https://blog.iaac.net/wp-content/uploads/2024/09/image_2024-09-22_145120702.png)
FACTORS OF IMPACT
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-219.png)
To create COMFORT we had to study the different factors of impact which links the Urban Blocks to the micro-climate
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-220-1024x570.png)
We also took a look on the different Urban Blocks compositions
BARCELONA
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-221.png)
After a lot of research we chose the city of Barcelona as our case study especially with its distinctive grid composition and its unique Mega Block approach
METHODODLY
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-222.png)
To reach our goal we followed a specific methodological approach. Each steps required its own tools and process.
1. BLOCKS GENERATION
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-223.png)
First step was to create our own parametric Urban Blocks to do so we had to encode different parameters including :
- Plot size
- Buildings Height
- Courtyard Area
- Trees
- Materials
The whole process of Urban Blocks creation was parametric and AUTOMATIVE relying on python scripts to randomize the parameters inputs within a given set of range.
![](https://blog.iaac.net/wp-content/uploads/2024/09/Blocks_Generation.gif)
In order to use the blocks generation as inputs we needed to have at least 1000 samples
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-224.png)
Here’s a visual representation of the parametric inputs.
2. COLOR CODING
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-225-1024x581.png)
In order for the user to understand the information and parameters from each sample we used RGB channels to encode these elements:
- Red Channel: Represents the Buildings Height
- Green Channel: Represents the Area of the Softscape and Courtyard
- Blue Channel: Represents the Canopy area of cover
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-226.png)
3. SIMULATIONS
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-227.png)
![](https://blog.iaac.net/wp-content/uploads/2024/09/blocks.gif)
To run our simulations we have exported the previous parameters into CSV and used them as inputs to re-generate the same geometry to be used as a base for UTCI simulations on honeybee , we have used the epw file of the city of Barcelona which may produce inappropriate results in case our trained model was used for cities with different climate types. The simulation conducted were on the 15th of August between 12 and 13 O’clock instead of simulating the whole summer for faster simulations.
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-228-1024x574.png)
We’ve also studies the weights of the different shading elements, on the top left corner we ran the simulation without any shading elements, on the bottom left we ran the same simulation with trees added and at last we have ran it with trees and canopy on the courtyard periphery.
![](https://blog.iaac.net/wp-content/uploads/2024/09/Heatmap-1024x821.gif)
It is notable to mention that the whole simulation process of the 1000 samples is Automated too using python loops.
![](https://blog.iaac.net/wp-content/uploads/2024/09/plans-ezgif.com-optimize.gif)
1000 UTCI analysis conducted
4. MODEL TRAINING
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-229.png)
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-230.png)
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-231.png)
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-232.png)
LOCAL TRAINING
![](https://blog.iaac.net/wp-content/uploads/2024/09/Local_Training-copy-1024x442.png)
We ran multiple pix2pix training attempts, with multiple hyper parameters settings, the local training was taking too much time approximately 30mins per 1000 steps making it time and computational consuming for us trying to tune the different hyper-parameters. However we got some decent results running it locally with 10K steps.
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-233.png)
On the other hand the Cloud Training offered faster results but with limited computational power, these two training attempts were done on 7.5K and 20K steps respectively trying to over-tune the model for better results
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-234.png)
As we can see from the training results the Discriminator was able to overcome the generator in both attempts creating a disbalance between them this may due to a shortage in the number of sample. On the other hand the 7.5k model was more balanced than the 20k steps model.
5. APPLICATION
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-235.png)
COMFORT app is dedicated for Architects and Urban Planners making it rational to use Grasshopper and Rhino to deploy our application, since most of the user should be already familiar with it . The Application have 2 parts the Frontend and Backend
Frontend
- Human UI plugin in Grasshopper
Backend
- HOPS Component in Grasshopper
- Rhino Compute
- Python
- .Keras Model
The HOPS and Rhino Compute will allow us to deploy our model into different webapps and software in the future. Utilizing cloud computing and Vue.js
Our App is composed of 2 different tabs the Geometry Tab were the user’s only concern is to generate its desired geometry and export it as a png file. The second Tab entitled Heatmap, The user should import the exported image and press the heatmap button to generate automatically the correspondent heatmap of the input image. This was made possible through the use of two different python scripts.:
- First Py Script: Located on the users computer, responsible for locating the keras model generator and generator weights
- Second PY Script: Located In Grasshopper Responsible for triggering the first background Script which will save the file back in the corresponded folder
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-238.png)
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-239.png)
The Result Button Utilizes a specific C sharp Component similar to image sampler where we can plug in the image path as an input automating the process of image sampling. This will allow us to extract the colors from the image and remap them according to legend that we trained our model with and take the average number as average temperature.
CONCLUSION
![](https://blog.iaac.net/wp-content/uploads/2024/09/image-240.png)
In conclusion we have found ground proof results of the impact of the Urban Blocks on the micro-climate. The Courtyards play a major role too in reducing the built environment and hosting shading elements which can produce cooler environments beneficial to the user physical and mental wellbeing. The machine learning and Computational modeling played a major role in achieving these results.