A
Spatially Optimised Sensor Networks for Efficient Urban Temperature Monitoring and Prediction
1GATE Institute, Sofia University “St. Kliment Ohridski”, 1164 Sofia, Bulgaria
Lidia L. Vitanova1, Radomir Peev1, Dessislava Petrova-Antonova1*, Tereza Trendafilova1, Dumitru Roman2
2 SINTEF Industry, POB 124, Blindern, 0314 Oslo, Norway
*Corresponding author: Dessislava Petrova-Antonova, e-mail: dessislava.petrova@gate-ai.eu;
Abstract
This research presents an integrated approach that combines a high-resolution Weather Research and Forecasting (WRF)-based experimental environment, a terrain- and land-cover-informed sensor placement algorithm, and a hybrid Random Forest–Gaussian Process model for mapping urban temperatures. It assesses the impact of the spatial arrangement of sensor stations on the reconstruction of temperature fields across complex urban terrains. The results indicate that static surface characteristics such as elevation and land use explain most of the daytime thermal variation and a significant portion at night. However, strategically placed, non-uniform stations are essential for capturing the remaining fine-scale gradients. An optimised network of around 200 sensors achieved mapping accuracy comparable to a uniformly distributed network exceeding 300 stations, proving that data-driven network optimisation can substantially reduce deployment costs. The benefits were most pronounced in topographically complex or thermally stable nocturnal conditions, where optimised layouts mitigated significant systematic errors. These outcomes emphasise that spatial intelligence in sensor placement can effectively substitute for dense measurements. However, a full representation of sub-grid processes still requires additional fine-scale meteorological inputs. The approach offers city planners a practical, open-source workflow for designing efficient temperature-monitoring networks that support resilient, data-informed, and climate-responsive urban development.
Keywords:
climate prediction
weather research and forecasting model (WRF)
urban heat island (UHI)
random forest–gaussian process model
observation sensor networks
A
1 Introduction
Urban heat islands (UHIs) represent a critical challenge in contemporary urban planning and environmental management, characterised by elevated temperatures in metropolitan areas compared to their rural surroundings [1]. The intensification of these phenomena poses significant risks to public health, energy consumption, and local ecosystems [2]. Recent advancements in urban climatology have underscored the importance of accurate heat prediction models, which can inform mitigation strategies and promote sustainable urban development [3].
City planners require temperature maps at a fine scale (≤ 250 m) for issuing heat health warnings, forecasting demand, and implementing climate-sensitive zoning. Most municipalities, including Sofia City, continue to rely on only a few official weather stations. The deployment of additional ones can be technically easy, but financially inefficient: some locations add no new information, while critical cold pools or ridge top transitions remain unsampled. The lack of fine-scale meteorological measurements (such as humidity, wind, and radiation) typically poses a challenge to making informed decisions for climate change mitigation. A possible solution is model-based sandboxing. For instance, a high-resolution Weather Research and Forecasting (WRF) model can be used as a sandbox to test network designs [4]. By stratifying a 500 m WRF output into local climate zone clusters and iteratively relocating virtual sensors while adding new ones to retain more of the original placement, the network's Root Mean Square Error (RMSE) was reduced by approximately 30%. In a different context, ensemble sensitivity analysis demonstrated that just 10 optimally placed buoys in the Arctic could reduce the 2 m air temperature analysis error by ~ 60% and even decrease the 24 h forecast error by ~ 3%, compared to having no buoys [5]. These examples show that the strategic placement of a limited number of sensors can significantly enhance field reconstruction accuracy, even approaching the performance of far denser naive networks.
Even without dynamic atmospheric data, terrain and land cover variations can be utilised to design effective sensor networks [6]. A purely static approach, using principal components of elevation, surface roughness, and vegetation structure, can capture most microclimate diversity with approximately 43 to 453 low-cost loggers per country, targeting valley floors, ridge tops, and canopy transition zones [7]. Subcanopy radiative transfer modelling alone explains 60–80% of spatial temperature variance without any atmospheric inputs, underscoring the power of static layers in predicting temperature patterns [8]. Hence, during the daytime when the boundary layer is well-mixed, static geospatial predictors such as elevation, aspect and land cover can account for most of the temperature variability.
The alternative approaches of static geospatial predictors rely on hybrid interpolation and sensor optimisation, combining statistical models with intelligent sensor selection algorithms. Using the simulated annealing (SA) method to select 5–20 optimal Gaussian Process support points (measurement locations) reduced the kriging interpolation error by half compared to using the same number of uniformly spaced points [9]. This emphasises that where the measurements are can matter more than simply how many sensors are deployed. Similarly, ensemble sensitivity experiments found that for sensor networks over complex terrain, the most informative sites are often non-intuitive, highlighting the value of objective optimisation over expert “by feel” placement [10]. A model that incorporates geostatistical estimation uncertainty and indicator formalism is used to account for a variable demand surface in the location process, which depends on the spatial arrangement of the stations [11]. This surface is also employed to express a spatial representativeness value for each network element, enabling the network to be optimally located using optimisation techniques such as SA and construction heuristics. Thus, the optimal selection of station locations requires algorithmic approaches to effectively capture spatial climate variability.
In summary, the prior studies suggest that high-resolution modelling can serve as a testbed for network design, static environmental features are surprisingly powerful proxies for temperature variation in the absence of dense meteorological data, and hybrid modelling plus optimisation (combining machine learning or geostatistics with sensor placement algorithms) yields the greatest mapping accuracy per sensor. These insights provide a base for an integrated approach to designing urban sensor networks when only sparse observations and static maps are available.
Building on these insights, this study introduces an end-to-end, city-scale workflow that unifies static geospatial modelling, Random Forest-guided residual kriging and optimisation-based station siting into a single, reproducible pipeline. Using a 250 m WRF Observing System Simulation Experiment (OSSE) as a controllable sandbox, the workflow characterises the practical ceiling of temperature mapping guided by static data only under a fixed hybrid kriging configuration and aligned elevation, land use and urban-form predictors. This evaluates the incremental gains of strategic placement over uniform layouts across network densities, as well as across elevation bands and thermal clusters (collectively referred to as strata). The city-wide and stratified performance is benchmarked, yielding decision-oriented guidance on the trade-off between sensor number and location.
The rest of the paper is organised as follows. Section 2 presents the methodology of the study, including the study area, data collection and preparation, data processing, feature engineering, and hybrid model development. Section 3 outlines the obtained results, covering the validation of the calculated surface air temperature, assessment through the defined strata and evaluation of the network accuracy. Finally, Section 4 concludes the paper and provides directions for future work.
2 Methodology
This section presents the study area and the workflow followed for urban climate predictions. The workflow, presented in Fig. 1, follows a structured sequence: (1) Dataset collection integrating spatial rasters, WRF model outputs, and sensor data; (2) Data preprocessing for spatial alignment and temporal aggregation; (3) Feature engineering to derive explanatory variables such as water proximity, residential fraction, and aspect transformations; (4) Temperature modelling using kriging and machine-learning approaches; (5) Sampling strategy optimization through stratified K-means clustering and simulated annealing to refine station placement followed by performance evaluation and network design recommendations.
Fig. 1
Study workflow.
Click here to Correct
2.1 Study area
Sofia, the capital and largest city of Bulgaria, is located in the western part of the country and encompasses an urbanised area of 245.5 km². With a population of 1,286,965 in 2023, the city has undergone substantial urban expansion and industrialisation in recent decades. This development has led to environmental challenges, including air pollution [12], traffic congestion [13], and associated health risks [14].
To address these issues, the Sofia Municipality has launched several initiatives to enhance the city's infrastructure. For example, the Strategic Integrated Project aims to support local authorities in creating the necessary administrative, organisational, technical, and financial conditions for implementing Sustainable Urban Mobility Plans (SUMPs), facilitating the transition to a climate-neutral and sustainable urban environment [15]. As part of its commitment to climate action, the Sofia Municipal Council has joined the Covenant of Mayors for Climate and Energy for the 2021–2030 period [16]. The municipality has pledged to reduce greenhouse gas emissions by 40% compared to 2007 levels and implement adaptation strategies for climate change. This commitment aligns with national regulations on energy efficiency and renewable energy. The city's action plan integrates measures for climate change mitigation, energy conservation, and the promotion of renewable energy sources to support a more sustainable future. A satellite imagery of the study area, covering Sofia city and the surrounding area, is shown in Fig. 2.
Fig. 2
A satellite imagery of the study area, outlined by the bounding box.
Click here to Correct
2.2 Data collection and preparation
This section presents data collection and preprocessing, including a description of the data sources, selection criteria, and preprocessing techniques used to structure the datasets for analysis. Land use and land cover data (see Fig. 3) are obtained from the Copernicus Urban Atlas (UA) and Corine Land Cover (CLC) for 2018. Aspect and slope images are derived from SRTM (30 m), and building heights are retrieved from the Global Human Settlement Layer - Building Height (GHS-BH, release R2020A). A 24-hour air surface temperature simulation at a 250 m resolution, performed using the WRF model and elevation data, is also employed throughout the study. Open data for the environment [17] and weather [18] were used to complete the input datasets.
Fig. 3
Land Use and Land Cover Data.
Click here to Correct
UA, available in vector format, provides detailed land use information in Europe, categorised into 17 urban and 10 rural classes. CLC provides raster land-use data with 44 thematic classes in raster format. Using the Raster to Polygon tool from ArcGIS Pro, the CLC data is transformed into vector data.
High-resolution elevation data governs lapse rate cooling by day and cold air pooling at night (see Fig. 4a). GHS-BH, shown in Fig. 4b, is a value-added product obtained by linearly regressing a composite digital elevation model, ALOS World 3D 30 m (AW3D30, 2006–2011) and NASA SRTM 30 m (11–22 February 2000), against building-shadow indicators extracted from Sentinel2 image data composite for 2018 (GHS-composite-S2, R2020A). The result is a dataset that provides building height estimates at 100 m resolution in the Mollweide projection (EPSG:54009).
Fig. 4
Elevation and Building Height Data.
Click here to Correct
Derived slope and aspect raster images flag terrain-induced processes that pure elevation misses (see Fig. 5).
Fig. 5
Slope and Aspect Data.
Click here to Correct
The WRF study area spans 59.25 × 59.25 km, subdivided into a 237 × 237 grid, with each cell measuring 250 × 250 meters. These grid cells are merged to form a polygon representing the WRF model's study area. The data collected from nine observation stations, shown in Fig. 6, are categorised by location and urban density (see Table 1). StringMeteo supplies meteorological data collected by Lozen, Orlandovtsi, and Buckton stations [19]. Sensor Community provides meteorological data for Kazichene, Ovcha Kupel 1, Bunkera, Gurmazovo, and Bustmantsi [17]. Data for the Sofia Airport meteorological station is available from the Weather Spark platform [20].
Fig. 6
Observation network.
Click here to Correct
Table 1
Observation stations.
No
Station name
Location (long, lat)
Land use type
1
Kazichene
23.466, 42.662
High-density
2
Ovcha Kupel 1
23.260, 42.690
High-density
3
Lozen
23.471, 42.604
Low-density
4
Bunkera
23.362, 42.608
High-density
5
Orlandovtsi
23.346, 42.720
High-density
6
Bukston
23.273, 42.669
Medium-residential
7
Gurmazovo
23.174, 42.744
Medium-residential
8
Sofia Airport
23.410, 42.710
High-residential
9
Busmantsi
23.432, 42.676
Medium-residential
2.3 Data processing
Crowd-sourced measurements from stations were validated for their accuracy and internal consistency from night to day. WRF temperatures were cross-checked against those of the stations for bias estimation, after which the WRF field became the sandbox “truth” on which optimisation experiments operated. Every dataset was reprojected to WGS-84 and resampled, so its cell centres coincide with WRF grid centroids.
For UA, sections of it falling inside the WRF polygon were clipped (intersection), yielding the Intersectioned UA (IUA). Gaps remain where UA provides no coverage. Then CLC was intersected with the same polygon to create the Intersectioned CLC (ICLC), which spans the entire domain. Using a disjoint operation, ICLC parts that do not overlap with the IUA were isolated and subsequently merged with the IUA, producing a seamless land use layer for the entire study area. All land use classes were harmonised and assigned numeric codes. Urban zones were further split by urban fraction ranges into Low Residential (0.01–0.50), Medium Residential (0.51–0.80), and High Residential (0.81–1.00).
The slope and aspect images are processed using OpenTopography’s clipping service. The bounding box of the research area is specified, and only the pixels inside that rectangular grid are retrieved. The portal supplies slope (in degrees) and aspect (0–360°, clockwise from north), which were calculated using a standard 3 × 3 Horn gradient kernel. Outputs were saved as GeoTIFFs. These layers’ Coordinate Reference System is WGS84, which coincides with the WRF model’s one, so no reprojecting is required.
Each clipped layer was then sampled at the WRF cell centroids and exported as a point table (longitude, latitude, data value). The terrain layers were at 30 m, so they were first aggregated to the 250 m WRF grid. The longitude and latitude coordinates of every WRF grid cell centroid were read from a CSV file containing them. Around each centroid, a square polygon measuring 250 m × 250 m was constructed. Half-widths of 125 m were converted to degrees based on Eq. (1) and Eq. (2).
 (latitudinal) (1)
2
Each 30 m slope/aspect point whose centre fell within a WRF square was identified with a point-in-polygon test. For every WRF cell, the mean of all contained 30 m values was calculated, after discarding no data codes (if there were any). The resulting 250 m aligned fields were written to two new CSV files, preserving the original WRF centroid order to guarantee one-to-one correspondence with the model grid.
Two tiles of the GHS-BH dataset, which included the research zone (R4_C20 and R4_C21), were merged and reprojected to WGS 84 geographic coordinates (EPSG: 4326), aligning horizontally with the WRF model grid. A polygon representing the study area was supplied to the clipping routine, so that only pixels lying inside the research boundary are retained. The clipped raster was saved as a GeoTIFF file. The 100 m building height layer had to be spatially aggregated so that it aligns with the WRF grid resolution of 250 m. Using a centre-in-polygon test, the 100m GHS-BH grid was sampled within each 250 m WRF cell. No data values were excluded, and the arithmetic mean of sampled pixels defined the building height value for that cell. The final result is saved in a CSV file, preserving the centroid order of the WRF grid.
2.4 Feature engineering
Each land cell is given one row of features, consisting of elevation, slope, aspect expressed as sine and cosine, merged land cover one-hots, a residential intensity index, mean building height, water proximity weights, neighbourhood residential fraction in a ~ 2.7 km radius and two cyclic hour of day variables added at model runtime. Crowd-sourced in-situ observations serve three roles. First, they provide an external bias check on the WRF run before it is adopted as the OSSE truth field. Second, their hourly temperatures are fed into the hybrid Random Forest–Kriging model, which generates a temperature field. Third, the 32 coordinates of these real sites define the geometry of the CoLoc-32 network. By sampling bias-free temperatures directly from the WRF grid for those same points, a synthetic counterpart is obtained, allowing to quantify how much sensor measurement bias influences the results.
Each land use category is one-hot encoded and supplied to the Random Forest, allowing the model to learn, for example, that densely built surfaces retain heat at night, while vegetated pixels cool rapidly. The same classes underpin the initial sensor seeding step. K-means clustering is performed in a mixed feature space that deliberately includes the five urban fractions (from UA) under a single composite variable representing residential area, ensuring that at least one sensor falls within every dominant land use regime. Additionally, a binary water body mask is derived from the data, which removes lakes and rivers from the modelling grid and yields a distance-to-water predictor that captures shoreline thermal inertia. All candidate station coordinates must fall on land pixels.
Elevation appears three times: as a direct predictor in the Random Forest (RF) trend, as the vertical dimension in the Gaussian Process kernel, and as the basis for the low, mid and high elevation strata used when the first twelve hotspot stations are seeded. In addition, steeper slopes signal potential drainage corridors, whereas aspect, which is stored as sine and cosine components to avoid the 360° wrap-around problem, modulates solar exposure and hence daytime warming.
One-hot encoding was applied to the land use data, and the following composite variable is formed (from UA’s urban fabric classes). A Residential Urban Fabric Index (RUFI) summarises residential built-up intensity per grid cell
for five Urban Atlas residential classes: continuous urban fabric (> 80%) and discontinuous urban fabric bands (50–80%, 30–50%, 10–30%, < 10%). Let
denote the indicator that the cell
belongs to the class
, with exactly one class active among the five. Assigning monotone weights
, the RUFI is defined according to Eq. 3 as follows:
3
which equals the weight of the active class for that cell. Next, the five land use components that form the upper variable are dropped. Additionally, a second composite variable, Green Vegetation Indicator (GVI), merges the principal vegetation classes, forests, natural grassland, and wetlands, into a single flag, enabling the temperature generation model to recognise cells that are predominantly natural cover. A 500 m circular convolution of the RUFI
l variable gives a neighbourhood residential fraction, which is a smooth measure of built-up intensity.
Because lake and river cells are masked in the model, we introduce an auxiliary predictor that indicates the proximity of each land cell to open water. First, the binary water mask contains a total of 744 grid cell centroids whose centres fall inside mapped water bodies. The shortest great circle distance
to the nearest water centroid is computed for every land cell centroid using the Haversine formula on a sphere of radius 6371 km. The distances are converted to a unitless proximity weight based on Eq. (4).
4
with a cut-off
.
2.5 Hybrid Model based on Random Forest and Gaussian Process
The sensor network is generated in two separate stages. A deterministic initial set of stations is generated using stratified hotspot sampling combined with multi-feature k-means clustering. This is followed by a stochastic refinement stage, in which any station may be replaced if the substitution increases the overall R², or, with a low probability, if it results in only a minor decrease, facilitating exploration of the solution space. Parameterisation is area-dependent, and no parameter is held strictly constant. Prior to implementing the sampling algorithm, we distinguish two types of station sets used throughout: OBS, the fixed set of existing, quality-controlled observation stations in the domain, and F-OBS, fictive observation station sets produced either by a rule or by the siting algorithm at specified densities. In the OSSE setting, temperatures at F-OBS locations are sampled from the WRF field and used as support for the hybrid RF-GP (Random Forest-Gaussian Process) mapper. Reconstructions are evaluated over the masked grid.
The RF-GP model follows a 3-step procedure. First, the RF model, with hyperparameters optimised for the specific set of OBS/F-OBS (including the number of trees, the number of features considered at each split, the minimum leaf size, and the maximum tree depth), was trained on the engineered predictors to produce a broad-scale estimate (Eq. (5)).
5
Next, GP residual interpolation is performed. Residuals at the station locations
are modelled as a zero-mean GP with covariance (Eq. (6)).
6
where
is the Matern kernel
.
Forty random hyperparameter draws are scored on an external validation subset, yielding the best set of horizontal length scales, Matern kernel, and vertical scale.
Finally, the lapse rate is corrected. The grid-wide residual field
is added to the RF trend and adjusted back to actual elevation with a standard lapse rate
(Eq. (7)).
7
Table 2
Datasets used for temperature generation with the RF-GF model. The first five are predefined, whereas the last three (with the prefix 'Optim') were generated through the F-OBS sampling algorithm.
Sets of
OBS/F-OBS data
Criteria of points for selection
Description
WRF
OBS
OBS-32
0
32
Initial Validated OBS.
CoLoc-32
32
0
32 F-OBS are taken in the same grid cells, where the validated OBS are, to check whether the measurements’ bias affects results.
Uniform-113
113
0
113 F-OBS are chosen from the ordered cells where every 500th one is taken.
Uniform-217
217
0
217 F-OBS are chosen from the ordered cells where every 260th one is taken.
Uniform-313
313
0
313 F-OBS are chosen from the ordered cells where every 180th one is taken.
Optim-113
113
0
113 F-OBS are chosen from the ordered cells through a stratifying + k-means + simulated annealing algorithm.
Optim-217
217
0
217 F-OBS are chosen from the ordered cells through a stratifying + k-means + simulated annealing algorithm.
Optim-313
313
0
313 F-OBS are chosen from the ordered cells through a stratifying + k-means + simulated annealing algorithm.
To ensure baseline representation of the principal thermal regimes, the study area, comprising 55,425 grid cells (with water bodies masked), was stratified into three elevation bands (0–700 m, 700–1200 m, and > 1200 m) and four nocturnal temperature clusters. The clusters were derived using k-means clustering applied to 01:00 AM temperature data, as this variable yielded the most distinct thermal groupings among all hours and mean temperature tested. Within each of the resulting twelve strata, the grid cell exhibiting the highest local nighttime temperature variance (quantified as the standard deviation within a ~ 2.7 km neighbourhood) was selected. Subsequently, a multi-feature k-means procedure was employed to expand the network to the predefined target size 𝑁 (i.e., the desired number of F-OBS stations within the study region), by embedding the remaining grid cells in an eight-dimensional feature space.
8
where longitude λ, latitude ϕ and height h describe location,
R is the relief over a ~ 2.7km radius (standard deviation of elevation in the neighbourhood),
C is the range of neighbour means in day and nighttime windows,
is the maximum eight-neighbour temperature difference over 24 h,
is the weighted residential fraction index, so built-up areas could be recognised by the model.
A k-means clustering with 𝑘=𝑁−12 was performed to generate the final set of F-OBS, producing the near-optimal network of stations required. Figure 7 illustrates the spatial stratification of the study area into discrete strata defined by elevation bands and nighttime temperature classes, excluding water bodies.
Fig. 7
Strata Map, representing the division of the research area into 12 sectors, based on 3 elevation bands and 4 nocturnal temperature clusters.
Click here to Correct
Simulated annealing refinement is performed, starting from the k-means seeds, and a one-for-one swap procedure searches the discrete space of layouts. At each iteration, one station index is replaced by a random non-member, the hybrid RF-GP model is retrained, and the mean hourly validation R2 over the full WRF field is re-computed. Improvements are accepted deterministically: declines are accepted with probability
. The temperature T decays geometrically
each step. The performance of the algorithm on a representative dataset is shown in Fig. 8.
Fig. 8
Performance of the algorithm on a representative dataset.
Click here to Correct
For each candidate network, the hybrid RF-GP model is trained only on that network’s stations and validated on the entire WRF grid, excluding those stations and the water body cells. The primary metric used for validation is the mean hourly coefficient of determination, shown in Eq. (10).
9
3 Results and discussion
3.1 Validation of the calculated surface air temperature
Firstly, the WRF model simulation has been rigorously validated against data from nine observation stations located in the city centre, the suburbs of Sofia, and the surrounding rural areas. The analysis indicates that the WRF model accurately simulates surface air temperatures on August 22, 2018, compared to measurements from observation stations, with biases across the extensive study area ranging from − 0.5 to 0.2°C, except for stations Bukston and Busmantsi, where the bias is approximately 1.0°C. The temperature distribution is illustrated in Fig. 9.
Fig. 9
Mean daily variations of surface air temperature (°C) on 15–19 July 2024 at (a) Kazichene, (b) Ovcha Kupel 1, (c) Lozen, (d) Bunkera, (e) Orlandovtsi, (f) Bukston, (g) Gurmazovo, (h) Sofia Airport and (i) Busmantsi stations. The solid red line indicates the simulated (WRF) results. Black circles show observation data.
Click here to Correct
The visualisation of the hourly observations from the OBS network confirms the presence of the UHI between 18:00 and 20:00 LST, which is also captured in the measured data (Fig. 10).
Fig. 10
Temperature observed in Sofia city from the OBS network, (a) at 14:00 LST on 22nd of August 2018, without UHI presence, and (b) at 20:00 LST on 22nd of August 2018 with UHI presence.
Click here to Correct
Secondly, the WRF model data, which are treated as reference (“truth”), were compared with the temperature fields generated by the RF-GP model for the first five predefined OBS/F-OBS networks, as well as the three F-OBS networks produced by the sampling algorithm. For clarity, visual comparisons are presented only for three representative hours: 07:00 (coldest), 14:00 (hottest), and 19:00 (when the UHI effect is observed). In addition, scatter plots are provided for each network at each hour to illustrate the correspondence between observed and predicted values. The overall performance across all networks is summarised in terms of
and presented in Table 2.
Figure 11 shows the temperature obtained by simulation with the WRF model, while Fig. 12 shows the temperature obtained from Uniform-113.
Fig. 11
Temperature obtained by simulation with the WRF model.
Click here to Correct
Fig. 12
Temperature obtained from Uniform-113 (every 500th cell from the WRF grid is taken as a sample, resulting in 113 F-OBS).
Click here to Correct
Table 2 presents the R² scores for the eight defined networks. Across all 24 hours, the performance hierarchy of the networks is consistent. The two 32-station layouts occupy the lowest tier, the three uniform networks perform at an intermediate level, and the three optimised layouts consistently achieve the highest scores across all time slices. The OBS-32 network, which is sparse and concentrated in urban areas, achieves
values of 0.70–0.76 between 11:00 and 17:00, when variance is largely explained by slope, aspect, and land-use. However, it collapses to a negative
before sunrise due to the near absence of sensors in valleys and ridge crests, where cold air drainage and radiation inversions are most pronounced.
Table 2
R² scores for the eight defined networks.
Name
OBS-32
CoLoc-32
Uniform-113
Uniform-217
Uniform-313
Optim-113
Optim-217
Optim-313
01:00
0.281
-0.005
0.705
0.772
0.778
0.784
0.811
0.820
02:00
0.221
-0.223
0.660
0.748
0.741
0.773
0.796
0.814
03:00
-0.046
-0.597
0.665
0.741
0.763
0.749
0.785
0.806
04:00
-0.092
-0.419
0.661
0.740
0.744
0.755
0.778
0.798
05:00
-0.157
-0.572
0.668
0.729
0.742
0.767
0.792
0.799
06:00
-0.305
-0.730
0.657
0.744
0.742
0.746
0.785
0.799
07:00
-0.112
-0.599
0.687
0.752
0.751
0.755
0.792
0.806
08:00
-0.133
-0.637
0.739
0.799
0.837
0.810
0.837
0.850
09:00
-0.028
-1.130
0.792
0.818
0.866
0.807
0.853
0.860
10:00
0.417
-0.523
0.839
0.856
0.890
0.848
0.886
0.893
11:00
0.607
0.380
0.875
0.899
0.917
0.901
0.921
0.928
12:00
0.761
0.786
0.911
0.925
0.937
0.921
0.933
0.943
13:00
0.716
0.840
0.919
0.930
0.940
0.930
0.939
0.947
14:00
0.690
0.841
0.919
0.929
0.939
0.929
0.938
0.947
15:00
0.704
0.805
0.925
0.932
0.940
0.934
0.939
0.949
16:00
0.626
0.793
0.931
0.939
0.945
0.939
0.945
0.953
17:00
0.489
0.798
0.931
0.941
0.948
0.940
0.949
0.955
18:00
0.335
0.723
0.932
0.940
0.947
0.939
0.948
0.954
19:00
-0.158
0.558
0.914
0.926
0.935
0.926
0.936
0.939
20:00
-0.702
0.413
0.860
0.869
0.880
0.872
0.887
0.895
21:00
0.105
0.397
0.798
0.830
0.840
0.830
0.854
0.862
22:00
0.179
0.445
0.766
0.797
0.807
0.807
0.836
0.842
23:00
0.172
0.447
0.731
0.774
0.777
0.784
0.810
0.815
24:00
0.060
0.332
0.693
0.746
0.746
0.760
0.786
0.794
mean
0.193
0.130
0.799
0.837
0.848
0.842
0.864
0.874
The CoLoc-32 network, which mitigates instrument bias by sampling WRF values at the same sites, exhibits even lower nighttime performance, indicating that spatial placement, rather than measurement error, is the primary limiting factor. Increasing the density of F-OBS in the Uniform-113 network improves nighttime
from ~ 0.1 to 0.65 and elevates the 11:00–17:00 window above 0.90. Adding another 104 stations (Uniform-217) provides only a modest mean increase (0.799 → 0.837) and negligible improvement after noon, with the performance curve flattening beyond 217 stations. The Uniform-313 network exhibits a similar daytime skill to Uniform-217, with a marginal improvement of + 0.05 at night.
In contrast, the Optim-113 network, using the same number of stations as Uniform-113, matches or exceeds the performance of Uniform-217 for every hour, demonstrating that feature-guided k-means seeding combined with annealing swaps recovers more thermal structure than uniform densification. Optim-217 provides the best overall results in terms of station count and
reaching 0.79 during the most inversion-prone hour (03:00) and 0.94 at the afternoon peak, yielding a 24-hour mean of 0.863 while using one-third fewer F-OBS than Uniform-313. Adding 96 additional F-OBS in Optim-313 yields only marginal improvements (+ 0.01–0.02 at night), highlighting the principle that, once critical gradients are instrumented, further densification offers diminishing returns.
These results suggest that a city or province could potentially reduce the number of sensors by nearly half through strategic placement. A real-world example demonstrated that in the Beijing-Tianjin-Hebei region, removing 194 of 481 weather stations, primarily those clustered on plains, and focusing on underserved mountainous and urban-edge areas resulted in negligible loss of forecast accuracy [21]. The refined 287-station network achieved 97–99% of the improvement provided by the full 481-station network for
air quality forecasts. This operational OSSE exemplifies how a sparser, yet optimally distributed network, can rival a much denser one. Our study provides a concrete temperature mapping analogue, showing that Optim-217 ≈ Uniform-313, Optim-113 ≈ Uniform-217, in terms of network performance.
3.2 Assessment through the defined strata
Figure 13 shows the distribution of the mean absolute error (24 hours) by strata for each network.
Fig. 13
Distribution of the mean absolute error (24 hours) by strata for each network.
Click here to Correct
The temperature results from the two highest-density F-OBS networks, Uniform-313 and Optim-313, are compared and visualised in Fig. 14. Similar observations are made for the other 2 pairs of F-OBS datasets.
Fig. 14
Temperature results from the two highest-density F-OBS networks, Uniform-313 and Optim-313.
Click here to Correct
Across all elevation bands, the largest discrepancies occur during nighttime hours, particularly in the early morning (01:00–06:00), when atmospheric processes such as radiative cooling, humidity-driven inversions, and wind have a strong influence on temperatures. The absence of dynamic meteorological predictors limits the accuracy of the RF-GP model during these hours, as it relies solely on static spatial data and temperature observations. By contrast, errors are markedly reduced during daylight (11:00–19:00), with MAE dropping to ~ 0.5°C and
consistently exceeding 0.9, demonstrating that under clear-sky daytime conditions, static predictors such as elevation, land use, and aspect provide sufficient explanatory power for spatial temperature variability.
The comparison between the Uniform-313 and Optim-313 networks highlights the benefits of strategic sensor placement, particularly under conditions where temporal meteorological factors dominate:
Low elevation band: Characterised by strong cold air drainage and nocturnal cooling, Uniform-313 exhibits pronounced nighttime errors exceeding 2.0°C on the coldest nights. Optim-313 reduces these errors by ~ 0.5°C, demonstrating that deliberate placement in valley bottoms effectively captures cold pools and inversion dynamics, even in the absence of direct humidity or wind measurements. This aligns with Holden’s research, finding that valley loggers in mountainous Idaho recorded distinctly colder nights due to cold air drainage [22]. Similarly, the uniform station networks in complex terrain fail to capture spatial extremes, leaving unobserved microclimates [23]. The results show that daytime uniform coverage performs adequately, but nocturnal extremes remain poorly captured without targeted siting.
Mid elevation band: Uniform-313 shows a broad nighttime error plateau of 2–3°C, particularly in the coldest nocturnal cluster. Optim-313 consistently reduces nocturnal MAE across all clusters, with the greatest gains in the coldest pools during nighttime of 1.6°C. It also eliminates a subtle late-afternoon warm bias present in the uniform network. This highlights the effectiveness of targeting contrasting microclimates and transition zones. It was identified that multiple principal components of temperature variability in complex terrain, including “topoclimate” modes related to cold air drainage and land-cover modes, which reinforces the need for a mix of sites, including valley bottoms, mid-slope clearings, and forested areas, for full coverage [22].
High elevation band: Here, spatial variability is pronounced. Uniform-313 struggles during warm nights, producing MAE of 1.0–2.0°C, whereas Optim-313 reduces errors below 0.8°C, indicating that strategic placement on ridge crests, exposed slopes, and transitional areas improves representation of temperature patterns by indirectly capturing wind-driven and inversion-related dynamics. This is consistent with Mauger’s study, which noted that optimal climate stations are often located far from settlements, yet provide maximal information gain [10]. The results confirm that even seemingly isolated peak stations significantly enhance temperature representation in mountainous terrain.
3.3 Optim-313 bias analysis versus WRF model “truth”
To evaluate how accurately the networks reproduce the WRF reference, the mean temperature difference (WRF minus generated) is mapped for four key phases of the diurnal cycle. The analysis focuses on the network with the highest
, namely Optim-313. Figure 15a corresponds to the deep-night period (01:00–06:00), when strong inversions and cold-air drainage dominate. During this interval, the largest errors, reaching up to ± 3°C, occur in valley floors and on exposed ridges, where the predictors lack information on local humidity and wind structure. Figure 15b captures the sunrise transition period (07:00–09:00), during which cold-air pool biases diminish as atmospheric mixing begins, although isolated hollows and sheltered areas remain slightly cooler than observed. Figure 15c represents the broad daylight interval (10:00–19:00), when a well-mixed boundary layer prevails. During this period, the network operates optimally, with temperature differences generally within ± 1°C, except in areas such as Vitosha and north of Sofia, where the Iskar Valley meets the first Balkan ridges. Minor anomalies are also apparent over the urban core and along forested slopes. During the evening transition (20:00–22:00), cold and warm biases reappear in downslope areas and within the urban core as the nocturnal inversion begins to reestablish (see Fig. 15d).
Fig. 15
Mean temperature difference.
Click here to Correct
The Optim-313 layout demonstrates that the hybrid model reproduces daytime temperatures accurately in regions of relatively uniform terrain, where the optimised sensor network effectively captures the limited meteorological contrasts. In areas with pronounced relief, however, residual errors indicate that even a strategically placed network cannot fully resolve fine-scale variations in wind, humidity, and radiation that are not captured by the predictors. Thus, while Optim-313 consistently outperforms a uniform grid, further improvements in complex terrain would require either additional targeted sensors or higher-resolution meteorological inputs.
In summary, the optimised F-OBS networks clearly demonstrate the value of strategic sensor placement. Stations are preferentially located in areas that capture the signatures of key processes, such as valley cold pools, slope-driven wind zones, and ridge tops, thereby resolving temperature extremes and gradients that a uniform grid often fails to represent. Consequently, an optimised layout achieves lower errors with fewer stations, particularly during nighttime conditions, when spatial temperature gradients are strongly influenced by unresolved meteorological processes. These results support the central hypothesis that intelligent siting can partially compensate for the absence of high-resolution meteorological data. By embedding sensors in critical locations, the static plus hybrid model can indirectly account for phenomena such as humidity-driven inversions and cold-air drainage, which are not explicitly included in the predictors. In contrast, simply increasing the density of uniformly spaced sensors yields diminishing returns, as many additional stations are placed in already well-characterised areas, leaving important microsites inadequately observed.
4 Conclusions
4.1 Main findings and limitations
This study combined a WRF-based sandbox, a static feature–driven sensor optimisation algorithm, and a hybrid RF-GP interpolation model to assess the potential of strategically placed sensor stations for urban temperature monitoring. The results demonstrate that terrain and land-use proxies capture the majority of spatial temperature variability during daytime and a substantial fraction at night. However, the strategic placement of sensor stations remains essential to resolve the remaining gradients. An optimised network of approximately 200 stations, selected using our algorithm, achieved near-equivalent mapping accuracy to a naïvely dense uniform grid of over 300 sensor stations, highlighting the efficiency and value of information-centric network design. The largest improvements from optimisation occurred in complex terrain and stable nocturnal conditions, where uniform networks exhibited errors of 2–3°C; targeted placement in valleys, transitional slopes, and ridge tops reduced these errors by up to half.
These findings reinforce previous research across diverse climates showing that optimal observing networks frequently require non-uniform layouts. Strategic siting can act as a partial substitute for dense measurements: a carefully designed sensor network effectively “learns” sub-grid meteorological patterns that would otherwise require high-resolution humidity, wind, or radiation data. Nevertheless, there are inherent limits. Even the Optim-313 network, while outperforming a uniform grid, could not fully resolve all sub-grid processes, particularly in the coldest valley regions, suggesting that further improvements would require additional sensors or the inclusion of fine-scale meteorological predictors. From a practical perspective, this study provides city planners with evidence that optimised sensor station deployments can produce higher-quality temperature data for the same investment. Even under resource constraints, carefully placed stations guided by terrain and land-cover analytics can capture critical microclimates, enabling the generation of high-fidelity urban heat maps for public health, energy management, and planning applications. The results show that an optimised layout, focused on key problem areas, can achieve most of the benefits of a much denser network. Open-source workflows, such as the one presented here, combine static GIS data, modelling, and optimisation to support cities in designing cost-effective, data-driven, and strategically placed observation networks, enhancing urban resilience to heat hazards prior to deployment.
4.2 Future work
Potential improvements could be achieved by enriching the sandbox with downscaled meteorological data. By incorporating kilometre-scale humidity, wind, and radiation fields that are statistically or dynamically downscaled to the 250 m grid, the hybrid RF-GP model could be retrained with these additional predictors, and station placement re-optimised. This approach would clarify whether the inclusion of high-resolution atmospheric information reduces the total number of sensors required or primarily shifts their optimal locations.
Another direction for future work is the deployment of a cost-effective, synthetic sensor layout at a reduced scale. After a full season of operation, measured temperatures could be compared with sandbox predictions (for days where weather conditions correspond to the WRF model, assuming no expansion of input data) and with denser virtual networks. Such an experiment would provide real-world validation of the optimisation framework, accounting for measurement noise and unmodeled variability, and would test whether active learning approaches, which involve adding or relocating a small subset of sensors based on initial error maps, can further enhance coverage without incurring substantial additional costs.
Consent to Publish
declaration: not applicable.
Consent to Participate
declaration: not applicable.
Ethics declaration: not applicable.
A
Data Availability
Land use and land cover data for 2018 were obtained from the Copernicus Urban Atlas (UA) and the Corine Land Cover (CLC) datasets. Aspect and slope were derived from the 30 m Shuttle Radar Topography Mission (SRTM) data, while building heights were retrieved from the Global Human Settlement Layer – Building Height (GHS-BH, release R2020A). A 24-hour air surface temperature simulation at 250 m resolution was produced using the WRF model in combination with elevation data. Open-access environmental and meteorological data were incorporated from the Sensor.Community platform (https://sensor.community/en/) and Wunderground https://www.wunderground.com/) to complete the input datasets.
A
Funding
This research is supported by the GATE project, which is funded by the Horizon 2020 WIDESPREAD-2018-2020 TEAMING Phase 2 programme under grant agreement no. 857155, and the programme "Research, Innovation and Digitalisation for Smart Transformation" 2021–2027 (PRIDST) under grant agreement no. BG16RFPR002-1.014-0010-C01, DS4SSCC-DEP project funded by the European Union Digital Europe Work Programme 2021–2022 under grant agreement no. 101123342 and the FLEdge project, funded by the Driving Urban Transitions (DUT) Partnership programme, under agreement no. KP-06-D002/5.
Acknowledgements
The authors acknowledge the provided access to the e-infrastructure of the NCHDC – part of the Bulgarian National Roadmap on RIs, with financial support by Grant No D01-168/28.07.2022 and Discoverer at Sofia Tech Park (Bulgaria).
A
Author Contribution
L.V. and R.P. defined the concept and methodology. R.P., L.V., D.P., and T.T. wrote the main manuscript text. R.P. and T.T. prepared figures. D.R. edited the manuscript text. All authors reviewed the manuscript. D.P. acquired funding.
A
Acknowledgement
The authors acknowledge the provided access to the e-infrastructure of the NCHDC – part of the Bulgarian National Roadmap on RIs, with financial support by Grant No D01-168/28.07.2022 and Discoverer at Sofia Tech Park (Bulgaria).
References
1.
Lefevre A, Malet-Damour B, Boyer H, Riviere G. Urban heat island in the tropics: A review of advances, challenges, and future directions. City Environ Interact. 2025;28:100265. https://doi.org/10.1016/j.cacint.2025.100265.
2.
Hsu A, Sheriff G, Chakraborty T, et al. Disproportionate exposure to urban heat island intensity across major US cities. Nat Commun. 2021;12:2721. https://doi.org/10.1038/s41467-021-22799-5.
3.
Snaiki R, Merabtine A. Recent advances on machine learning techniques for urban heat island applications: a review and new horizons. Sustainable Cities Soc. 2025;134:106943. https://doi.org/10.1016/j.scs.2025.106943.
4.
Chen X. (2023). Urban thermal environment at sub-kilometer scale: observation and simulation. HKUST SPD | the Institutional Repository. https://lbezone.hkust.edu.hk/rse/?p=63002
5.
Kim D, Kim HM. Design of buoy observation network over the Arctic Ocean. Cold Reg Sci Technol. 2023;218:104087. https://doi.org/10.1016/j.coldregions.2023.104087.
6.
Lembrechts JJ, Lenoir J, Scheffers BR, De Frenne P. Designing countrywide and regional microclimate networks. Glob Ecol Biogeogr. 2021b;30(6):1168–74. https://doi.org/10.1111/geb.13290.
7.
Lembrechts JJ, Lenoir J, Scheffers BR, De Frenne P. Designing countrywide and regional microclimate networks. Glob Ecol Biogeogr. 2021;30(6):1168–74. https://doi.org/10.1111/geb.13290.
8.
Zellweger F, Sulmoni E, Malle JT, Baltensweiler A, Jonas T, Zimmermann NE, Ginzler C, Karger DN, De Frenne P, Frey D, Webster C. Microclimate mapping using novel radiative transfer modelling. Biogeosciences. 2024;21(2):605–23. https://doi.org/10.5194/bg-21-605-2024.
9.
Van Nguyen L, Kodagoda S, Ranasinghe R, Dissanayake G. (2012). Simulated annealing based approach for near-optimal sensor selection in Gaussian Processes. International Conference on Control, Automation and Information Sciences (ICCAIS), Saigon, Vietnam, 2012, pp. 142–147. 10.1109/ICCAIS.2012.6466575
10.
Mauger GS, Bumbaco KA, Hakim GJ, Mote PW. Optimal design of a climatological network: beyond practical considerations. Geosci Instrum Method Data Syst. 2013;2:199–212. https://doi.org/10.5194/gi-2-199-2013.
11.
Burov A, Brezov D. (2023). Transport Emissions from Sofia’s Streets - Inventory, Scenarios, and Exposure Setting (pp. 223–233). https://doi.org/10.1007/978-3-031-26754-3_20
12.
Amorim AMT, Gonçalves AB, Nunes LM, Sousa AJ. Optimizing the location of weather monitoring stations using estimation uncertainty. Int J Climatol. 2011;32(6):941–52. https://doi.org/10.1002/joc.2317.
13.
Vitanova LL, Shirinyan E, Trendafilova T, Petrova-Antonova D. Understanding Sofia’s travel dynamics: Study of private traffic patterns and urban mobility. Transp Res Interdisciplinary Perspect. 2025;30:101352. https://doi.org/10.1016/J.TRIP.2025.101352.
14.
Vitanova L, Petrova-Antonova D, Shirinyan E. Urban digital twin for assessing and understanding urban Heat Island impacts. Urban Clim. 2025;62:102530. https://doi.org/10.1016/J.UCLIM.2025.102530.
15.
Implementation of SUMPs for Transition into Climate Neutral and Resilient Society (LIFE22-IPC-BG-LIFE-SIP CLIMA-SUMP). - Sofia Municipality. (n.d.). https://www.sofia.bg/en/web/sofia-municipality/w/5681227
16.
Sofia Municipality S, Energy. August and Climate Action Plan 2021–2030, Long-term programme of Sofia Municipality to promote the use of renewable energy and bio-fuels, 2021, https://www.sofia.bg/documents/d/guest/2023-03-09-1-secap_sofia_2021-2030-en
17.
Sensor.Community. Build your own sensor and join the worldwide civic tech network. (n.d.). https://sensor.community/en/
18.
Local weather. forecast, news and conditions, Weather Underground. (n.d.). https://www.wunderground.com/
19.
Nikolov N (n.d.), editor. StringMeteo.com, Sofia, Bulgaria. https://www.stringmeteo.com/
20.
Sofia A. climate, weather by month, Average temperature (Bulgaria) - Weather Spark. (n.d.). Weather Spark. https://weatherspark.com/y/148513/Average-Weather-at-Sofia-Airport-Bulgaria-Year-Round
21.
Yang L, Duan W, Wang Z. An approach to refining the ground meteorological observation stations for improving PM2.5 forecasts in the Beijing–Tianjin–Hebei region, Geosci. Model Dev. 2023;16:3827–48. https://doi.org/10.5194/gmd-16-3827-2023.
22.
Holden ZA, Crimmins MA, Cushman SA, Littell JS. Empirical modeling of spatial and temporal variation in warm season nocturnal air temperatures in two North Idaho mountain ranges, USA. Agric For Meteorol. 2010;151(3):261–9. https://doi.org/10.1016/j.agrformet.2010.10.006.
23.
Periago MC, Lana X, Fernández Mills G, Serra C. Optimization of the pluviometric network of Catalonia (North-East Spain) for climatological studies. Int J Climatol. 1997;18:183–98.
Total words in MS: 6539
Total words in Title: 11
Total words in Abstract: 194
Total Keyword count: 5
Total Images in MS: 15
Total Tables in MS: 3
Total Reference count: 23