1. Introduction
The rapid pace of global urbanization is one of the most urgent challenges for building sustainable energy systems and climate resilience in the 21st century. Cities account for about 64% of worldwide primary energy consumption and produce over 70% of energy-related carbon emissions [
1,
2], and their expansion is reshaping Earth’s thermal environment through UHIs, in which built-up districts remain consistently hotter than their rural surroundings [
3,
4]. Rising urban temperatures elevate cooling energy demand, reduce HVAC efficiency and place cascading stress on electricity grids [
5,
6]. These pressures are most severe in arid and semi-arid regions, where intense radiation, extensive impervious surfaces and sparse vegetation can raise building cooling energy use by 30–50% [
7,
8]. What makes dryland cities distinctive, however, is that their surface energy balance is moisture-limited: with little water available for evaporation, absorbed radiation is partitioned almost entirely into sensible heat, so the scarcity of surface water is itself a first-order driver of urban warming.
Surface water and wetland features moderate urban temperatures because open water and moist surfaces dissipate incoming energy through evaporation rather than sensible heating [
9,
10]. Remote sensing offers the only practical means of observing this hydrological cooling at the metropolitan scale: water and wetness indices such as MNDWI and NDWI, derived from the same multispectral imagery that yields NDVI, NDBI and LST, allow surface moisture, vegetation, built-up density and temperature to be measured coherently across entire cities [
11,
12]. Multi-temporal satellite archives extend these observations across decades, and complementary platforms broaden them further; Bakirci [
13] showed that sensor-equipped UAVs can autonomously monitor urban environments in dense areas, reflecting a wider trend toward integrated satellite, drone and ground observation [
14,
15]. In humid and temperate cities, water indices are routinely used to map inundation and to quantify the cooling influence of lakes, rivers and wetlands on LST. In arid metropolitan regions, by contrast, surface water is intermittent and confined to ephemeral wadis and engineered blue–green corridors, and its role in moderating heat remains poorly quantified even though water is the scarcest and most contested resource in these environments.
A comprehensive understanding of how urban structure shapes the thermal environment is therefore crucial for energy-efficient planning and climate resilience [
16,
17], and it demands interdisciplinary integration across climatology, environmental science, energy engineering and urban planning [
18,
19], particularly as cities pursue climate-resilient, net-zero development [
20,
21]. Machine learning (ML) increasingly connects these observations to prediction and planning. The integration of AI with geospatial technologies, commonly termed GeoAI, enables monitoring, predictive modeling and optimization in support of climate-resilient urban systems [
22,
23], and ensemble learning has outperformed traditional methods in modeling the relationships among urban morphology, thermal patterns and energy use [
24,
25,
26]. Explainable techniques make these models auditable; SHAPs (SHapley Additive exPlanations [
27]), grounded in cooperative game theory, attribute a prediction to each input by averaging their marginal contribution over feature orderings, and contrast with traditional approaches, single-index correlation or threshold mapping and ordinary regression without spatial validation, which neither rank competing drivers nor guard against spatial optimism. Such attribution quantifies the contribution of each driver to predicted temperature, supporting zone-specific building codes and climate-responsive design [
28,
29]. Zonation and clustering approaches can translate thermal maps into planning units [
30,
31,
32,
33], yet their usefulness depends on first establishing which surface property actually governs the thermal field—greenness, built-up density, or moisture—a question that explainable models are well-suited to answer.
Despite this progress, three gaps persist. First, studies of dryland UHIs overwhelmingly emphasize vegetation and built-up indices, and surface-water wetness is rarely tested as a candidate thermal driver [
34,
35,
36,
37], even though thermal dynamics in arid regions differ fundamentally from those in temperate climates [
38,
39]. Second, machine-learning analyses are seldom validated in a spatially honest way: random cross-validation overstates transferability when neighboring samples share information [
40], and safeguards against information leakage between thermal targets and thermally derived predictors are rarely made explicit. Third, whether wetness–temperature relationships persist as arid cities densify remains underexplored, limiting their value for long-term adaptation planning [
41,
42]. To the best of our knowledge, no study has quantified the relative importance of surface-water wetness, vegetation, and built-up density as controls on LST in an arid Gulf metropolis within an explainable, spatially validated framework. Riyadh, one of the fastest-growing metropolitan areas in the Middle East, is an instructive setting for closing these gaps. Summer temperatures often surpass 45 °C, annual rainfall remains below 100 mm, and extensive sprawl places the city alongside Phoenix, Dubai, Abu Dhabi, Kuwait City and Doha among the world’s arid megacities [
43,
44]. Air-conditioning consumes over 60% of building energy, and low-density urban form with limited vegetation intensifies the thermal stress common to arid cities [
45,
46]. The city also contains a rare hydrological asset: the Wadi Hanifah corridor, rehabilitated into a linear wetland-park system, demonstrates that engineered blue–green infrastructure is feasible in this climate. Yet the contribution of surface-water wetness to thermal regulation across the wider metropolis has never been measured against vegetation and built-up density within a single predictive framework.
This study aims to quantify the role of surface-water wetness in regulating urban thermal stress in an arid metropolis and to embed that relationship in an explainable, reproducible GeoAI workflow. Specifically, we (i) derive vegetation, built-up and two surface-water indices (MNDWI, NDWI) together with LST and UHI intensity from cloud-masked Landsat 8/9 imagery for 2014 and 2024; (ii) test the strength and direction of the relationship between surface-water wetness and thermal stress relative to vegetation and built-up density; (iii) train five machine-learning algorithms to predict LST and UHI with explicit safeguards against information leakage, evaluating generalization under both random and spatially blocked cross-validation; and (iv) attribute the model predictions using SHAP to identify the dominant thermal drivers. To the best of our knowledge, this is the first study in an arid Gulf metropolis to demonstrate that surface-water wetness is the leading remotely sensed predictor of LST, providing a quantitative basis for blue–green cooling and wetland-corridor planning.
2. Materials and Methods
2.1. Methodological Framework
This study implements a four-stage analytical framework whose central purpose is to establish and quantify the linkage between surface-water wetness and urban thermal stress in an arid metropolis (
Figure 1). In the first stage, cloud-masked Landsat 8/9 Collection 2 Level-2 imagery for peak summer 2014 and 2024 is assembled in Google Earth Engine together with SRTM terrain and WorldPop population data. The second stage derives the complete set of environmental indices, placing the water and wetness indices MNDWI and NDWI alongside NDVI, NDBI, LST and UHI intensity, and extracts all variables at 2000 random sample points so that surface moisture, vegetation, built-up density and temperature are measured coherently at the same locations. The third stage interrogates the water–thermal linkage along the following two parallel pathways: a statistical pathway that quantifies wetness–temperature relationships and their temporal change, and an explainable machine-learning pathway in which five algorithms predict LST and UHI under explicit leakage safeguards and both random and spatially blocked cross-validation, with SHAP attribution identifying the dominant thermal drivers. The final stage translates this evidence into blue–green cooling and wetland-corridor planning guidance for Riyadh and comparable arid cities.
2.2. Study Area Characteristics
Riyadh, the capital of Saudi Arabia, is the focus of this GeoAI urban thermal analysis. It reflects rapid urban expansion patterns common in GCC cities, with increasing development, population, and environmental issues [
47,
48]. Located in central Saudi Arabia on the Najd Plateau at 24°15′–25°15′ N and 46°00′–47°15′ E, about 600 m above sea level, Riyadh features diverse geography. Wadi Hanifa passes through the west, while Wadi Al-Ha’ir lies in the south. The east is marked by Khashm Al-An, part of the Armah Mountain Range and Tuwaiq Mountain chain. According to the General Authority for Statistics, Riyadh’s current population is 7,009,120, a significant part of Saudi Arabia’s urban population, emphasizing the need to study urban thermal dynamics and building energy impacts [
44]. The study area covers 5992.96 km
2 within Riyadh’s development boundaries, of which 51.98% (about 3115 km
2) is urban, according to the Royal Commission for Riyadh City. The city has an arid climate with summer temperatures exceeding 45 °C, annual rainfall of less than 100 mm, and high solar radiation, leading to thermal stress that affects cooling loads and urban energy use [
7,
8].
Figure 2 shows the geographic location and extent of the study area for analysis.
2.3. Data Acquisition and Temporal Framework
This study used satellite images from Landsat 8 and 9, accessed through the USGS Earth Explorer platform (
https://earthexplorer.usgs.gov). The details of these images are shown in
Table 1, explaining the technical aspects of the data collected for analyzing the period from 2014 to 2024. To keep things consistent, the study focused on imagery from July of both 2014 and 2024, aligning with the same season to ensure reliable thermal analysis. July was carefully chosen because it reflects the peak summer heat in Riyadh, when UHI effects are strongest, and building cooling needs are at their highest—perfect for planning energy use and HVAC systems [
5,
6]. Using the same month for both years helps avoid seasonal changes affecting the comparison, allowing us to see how urban growth over a decade has influenced thermal patterns more clearly [
11]. Plus, the ten-year span from 2014 to 2024 captures significant urban expansion while staying relevant to current planning and development timelines [
48].
While we acknowledge that single-month analysis may not fully capture year-round thermal dynamics or seasonal variations in UHI intensity, peak summer conditions remain the critical design scenario for cooling infrastructure and energy demand management in arid climates where extreme heat causes maximum building energy consumption [
4,
45]. The consistent patterns seen across both July datasets, along with the high model performance in temporal validation, indicate strong thermal-structural relationships during peak stress periods [
37]. Future research will include multi-seasonal and annual data to explore seasonal UHI variability and verify the framework’s applicability throughout the year, focusing on a comprehensive temporal analysis of thermal-energy dynamics. The decade-long temporal span facilitates a comprehensive assessment of the impacts of urban transformation on thermal patterns, thereby supporting both retrospective analyses and predictive modeling applications pertinent to long-term energy infrastructure planning [
41]. This period selection is consistent with established methodologies in urban thermal analysis, as the summer months offer optimal conditions for detecting the UHI owing to minimal rainfall, decreased cloud cover, and peak temperature readings [
38,
49].
2.4. Data Preprocessing and Quality Assurance
Data preprocessing adhered to rigorous protocols established in the recent remote sensing literature to guarantee data quality and analytical reliability [
39,
50]. Initial radiometric and geometric corrections were conducted using Erdas Imagine 2023 software, followed by systematic preprocessing of spectral bands to ensure data quality and consistency across both temporal datasets. The preprocessing workflow encompassed atmospheric correction to mitigate atmospheric interference effects, geometric rectification to ensure spatial accuracy and alignment between temporal datasets, and radiometric normalization to compensate for sensor differences between Landsat 8 and 9 platforms, thereby facilitating valid temporal comparisons [
11,
21].
Images from each study year were carefully combined through mosaicking to make sure the entire area was covered. This approach helped us account for the big changes in urban development and greenery over the decade-long period we studied [
51]. Cloud masking techniques were used to remove any remaining cloud cover or atmospheric effects, ensuring our analysis was accurate and reliable. The cleaned and processed images then provided a solid foundation for both traditional remote sensing methods and innovative ML techniques. To ensure the highest data quality, we followed strict validation steps, including visual inspections, statistical checks, and verifying consistency across different parts of the analysis [
50]. When handling missing data, we adhered to proven protocols, using spatial interpolation where needed and maintaining quality flags throughout the process.
2.5. Environmental Indices Calculation
The quantitative analysis of urban environmental conditions used four main indices, each with specific roles in describing urban thermal and vegetation patterns. The calculation method for these indices follows established procedures, with recent updates for better accuracy in arid urban areas [
51,
52].
NDVI is the key indicator for assessing vegetation cover and health across the study area [
21]. The index is calculated using the standard formula shown in Equation (1):
where NIR and RED are the reflectance values in the near-infrared and red spectral bands, respectively. NDVI values range from −1 to +1, with values near −1 indicating non-vegetative surfaces, values close to 0 representing sparse vegetation, and values near +1 signifying dense, healthy vegetation cover [
50]. The interpretation scheme for NDVI is outlined in
Table 2, providing standardized categories for vegetation density, from very low to very high.
The NDBI serves as a key indicator for detecting and measuring built-up areas based on the spectral features of impervious surfaces [
39]. Its calculation uses the formula shown in Equation (2):
where NIR and SWIR denote reflectance values in the near-infrared and shortwave-infrared spectral bands, respectively. NDBI values range from −1 to +1, with positive values indicating built-up areas and negative values signifying non-built-up areas, sparse development, water bodies, or vegetated regions [
46].
Table 2 details the classification scheme for NDBI interpretation, allowing systematic categorization of urban density from very low to very high built-up intensity.
Complementing the vegetation and built-up indices, surface water and wetness were represented by two further indices computed from the green, near-infrared (NIR) and shortwave-infrared (SWIR1) bands of the Landsat 8/9 surface-reflectance product. The Modified Normalized Difference Water Index enhances open-water and moist surfaces while suppressing built-up signal, as defined in Equation (3) [
9]:
NDWI, introduced by McFeeters [
10], emphasizes the contrast between water and terrestrial surfaces, shown in Equation (4):
Both indices range from −1 to +1; values approaching and exceeding zero denote increasing surface wetness or open water, whereas strongly negative values indicate dry, built-up or bare desert surfaces.
LST calculation is a vital component for understanding thermal interactions between the Earth and atmosphere. It also provides the basis for assessing UHI intensity [
41,
53]. The method uses thermal infrared bands (Band 10 for Landsat 8 and 9) following established procedures for Level 1 imagery processing. The LST calculation involves several steps carried out through systematic radiometric and thermal conversion algorithms [
11].
Initially, Digital Number (DN) values are converted to Top of Atmosphere (TOA) spectral radiance (Lλ) using Equation (5):
where ML is the band-specific rescaling factor, AL is the band-specific additive rescaling factor, and Qcal are the thermal band DN values.
Next, TOA spectral radiance is converted to Top of Atmosphere Brightness Temperature (TC) using Equation (6):
where K1 and K2 are thermal conversion constants specific to each band, and the temperature is converted from Kelvin to Celsius by subtracting 273.15.
Vegetation proportion (PV) is calculated using the relationship in Equation (7), which is crucial for determining surface vegetation proportions across the study area:
where NDVI
min and NDVI
max are the minimum and maximum NDVI values observed in the study area.
Thermal Emissivity (E) is calculated according to Equation (8), considering surface emissivity variations based on vegetation cover density:
Finally, LST is obtained using the comprehensive equation in Equation (9):
where λ is the wavelength of emitted radiance (10.9 μm for Landsat 8/9 Band 10), and ρ = 1.438 × 10
−2 m·K, the second radiation constant of Planck’s law [
11,
51].
UHI intensity measures the temperature difference between urban areas and nearby rural regions, serving as a standard for evaluating thermal stress and building energy impacts [
5,
30]. The calculation uses the formula in Equation (10):
where Ts is the LST at a specific pixel, and Tm is the average LST across the entire study area. The UHI intensity thresholds are outlined in
Table 2, which classifies thermal stress levels from low to extremely high. This classification supports applications like zone-specific building energy modeling and HVAC system optimization [
32].
2.6. GeoAI Framework Implementation
2.6.1. Dataset Generation and Feature Engineering
Conventional remote-sensing outputs were transformed into a point dataset suitable for ML. From the cloud-masked composites, we drew 2000 spatially representative random sample points, evenly split between the two study years (1000 in 2014 and 1000 in 2024), and extracted every variable at each point at 30 m resolution. This balanced design supports temporally consistent model training and validation.
The predictors comprise the spectral indices (NDVI, NDBI, MNDWI and NDWI), terrain attributes (elevation, slope and aspect from the 30 m SRTM digital elevation model), gridded population density (WorldPop), the geometric distance of each point from the city center, and the acquisition year. LST and UHI intensity were treated solely as prediction targets and were never supplied as predictors of one another, nor of the thermal-stress class derived from them, which removes information leakage by construction.
The point dataset supports the following three modeling targets reported here: regression of LST, regression of UHI intensity, and a UHI thermal-stress classification in which the class-defining UHI value is excluded from the predictors (
Table 3).
2.6.2. ML Algorithm Selection and Implementation
We trained the following five tree-based ensemble algorithms that are well-established for non-linear environmental prediction: Random Forest, Extremely Randomized Trees (Extra Trees), Gradient Boosting, Histogram-based Gradient Boosting and XGBoost. These complementary bagging and boosting methods capture non-linear relationships among the spectral, terrain and population predictors without assuming a functional form, and were implemented in Python 3.14 (scikit-learn and XGBoost). Their hyperparameters are listed in
Table 4.
2.6.3. Explainable ML and Validation Protocol
Predictive performance was assessed on a 70/30 train-test split and confirmed with five-fold cross-validation, reporting the coefficient of determination (R2), root-mean-square error (RMSE) and mean absolute error (MAE) on the held-out set. To evaluate spatial generalization rather than mere interpolation, models were additionally tested with spatially blocked cross-validation, in which the study area was partitioned into a 4 × 4 grid of contiguous blocks so that test samples were always spatially disjoint from training samples; sensitivity to 3 × 3 and 5 × 5 grids was also examined. Model predictions were attributed using SHAP (SHapley Additive exPlanations), a game-theoretic method that assigns each feature its average marginal contribution to a prediction, preferred here over single-tree or permutation importance because it is locally consistent and model-agnostic.
2.7. Spatial Clustering Analysis
2.7.1. Clustering Algorithm Selection and Implementation
Spatial clustering grouped the 2000 sample points into thermal-environmental zones from their standardized values of the following six variables: NDVI, NDBI, MNDWI, NDWI, LST, and UHI intensity. K-means was used as the primary algorithm and DBSCAN as a density-based check for irregular structure and noise.
2.7.2. Optimal Cluster Determination and Validation
The number of zones was selected using three internal validity criteria evaluated for k = 2 to 8: the silhouette coefficient (cluster cohesion versus separation), the Davies–Bouldin index (lower values indicate better separation) and the Calinski–Harabasz index. The solution that maximized the silhouette coefficient was retained as optimal.
2.7.3. Cluster Characterization
The retained zones were first mapped in geographic and feature spaces and then characterized by the mean of each variable, yielding an interpretable description of each thermal-environmental zone prior to any planning interpretation.
This characterization supports blue-green planning by distinguishing hotter, drier districts, which are priority targets for moisture-led cooling, from cooler, moister districts where the marginal cooling benefit is smaller.
2.8. Statistical Analysis and Integration
Statistical analysis comprised five components, all implemented in Python (scikit-learn, XGBoost, SHAP and statsmodels). First, Pearson correlation coefficients quantified bivariate relationships among the indices and thermal variables. Second, temporal differences between 2014 and 2024 were tested with Welch’s t-test, chosen because it does not assume equal variances between the two yearly samples; the conclusions were unchanged under the non-parametric Mann–Whitney U test. Third, because the four spectral indices are built from overlapping spectral bands and are therefore collinear, we computed variance inflation factors (VIFs) and the condition index and supported the bivariate findings with partial correlations (controlling for NDVI and NDBI) and a reduced multivariable regression in which collinearity was acceptable (all VIF below 9). Fourth, the slope of LST on MNDWI was estimated by ordinary least squares with 95% confidence intervals and re-estimated separately by year and by spatial block. Fifth, to translate the wetness signal into corridor-design terms, the distance of each sample point to the Wadi Hanifah corridor (approximated from its mapped course) was computed, and LST, UHI and MNDWI were summarized across distance bands.
2.9. Point Sampling and Data Integration in Google Earth Engine
Image processing and sampling were implemented in Google Earth Engine. For each epoch (July 2014 and July 2024) we filtered Landsat 8 (and Landsat 9 from 2022) Collection 2 Level-2 scenes over the study-area bounding box (24°15′–25°15′ N, 46°00′–47°15′ E), masked cloud, cloud-shadow, cirrus and dilated-cloud pixels using the QA_PIXEL band, applied the Collection 2 scaling factors, and reduced the collection to a median composite. From each composite, we computed NDVI, NDBI, MNDWI, NDWI, and LST. LST was taken from the atmospherically corrected Collection 2 Level-2 surface-temperature band and converted to degrees Celsius; UHI intensity was derived from LST following Equation (10). We added terrain attributes (elevation, slope and aspect from the 30 m SRTM digital elevation model), gridded population (WorldPop, 100 m), and the geometric distance of each point from the city center. We then drew 1000 random sample points per epoch (2000 in total) and extracted all variables at 30 m resolution. Because the WorldPop 100 m series ends in 2020, the 2024 points use the 2020 population layer; this is noted as a limitation. The following two complementary LST pathways underlie the paper: the emissivity-based retrieval of Equations (5)–(9) supports the LST maps, whereas the point dataset uses the Collection 2 Level-2 surface-temperature product; both derive from the thermal band acquired at 100 m and distributed resampled to 30 m, and all point extractions were performed at 30 m.
5. Conclusions
This research repositions surface-water wetness as the central, measurable lever of urban heat mitigation in an arid metropolis. Using 2000 real Landsat sample points for 2014 and 2024, five ensemble algorithms predicted LST with R2 of 0.71–0.76 under random cross-validation and 0.44–0.50 under spatially blocked validation, and SHAP attribution identified MNDWI as the dominant thermal driver, ahead of elevation, vegetation and built-up density. Each 0.1 increase in surface wetness was associated with approximately 2.2 °C lower surface temperature, while point-level LST rose by 1.99 °C over the decade, and very-high UHI intensity areas expanded from 13.70% to 32.49% of the study area. The absence of open water across all samples quantifies the hydrological deficit underlying Riyadh’s intensifying heat.
For planners and policymakers, the recommendations are concrete: protect and rehydrate wadi-wetland corridors, prioritize moisture-led interventions in districts that combine high built-up density with low wetness, and adopt MNDWI and NDWI as routine monitoring indicators of cooling capacity. The workflow extends to other arid cities via free global data and cloud-based processing, with spatially constrained validation providing an honest measure of where predictions can be trusted. The principal limitations, peak-summer scope, an approximated 2024 population layer, and reduced extrapolation skill across unsampled blocks, define the agenda for future work, particularly SAR-based hydroperiod monitoring and in situ validation. As arid cities grow hotter, water, not greenness alone, is the resource on which their thermal resilience depends.